:root {
  --download-bg: #f6f7fb;
  --download-paper: #fff;
  --download-ink: #171923;
  --download-muted: #525969;
  --download-accent: #4434c9;
  --download-accent-hover: #3526aa;
  --download-border: #e2e4ec;
  --download-soft: #efedff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--download-ink);
  background: var(--download-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--download-bg); color: var(--download-ink); line-height: 1.55; }
a { color: inherit; }
button, select { font: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #897df2; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 10; padding: 10px 14px; transform: translateY(-150%); background: #fff; color: #171923; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(100% - 48px, 1000px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; color: var(--download-ink); text-decoration: none; font-size: 17px; font-weight: 750; letter-spacing: -.035em; }
.brand-link img { display: block; border-radius: 11px; }
.language-control select { min-height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--download-border); border-radius: 8px; color: var(--download-ink); background: var(--download-paper); }
.intro { max-width: 760px; padding: clamp(48px, 9vw, 94px) 0 48px; }
.intro-lead { margin: 0 0 14px; color: var(--download-accent); font-size: clamp(16px, 2vw, 19px); font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 16px; font-size: clamp(40px, 7vw, 68px); line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
.intro-copy { max-width: 660px; margin-bottom: 0; color: var(--download-muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.6; }
.install-action { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.install-button { min-height: 48px; padding: 0 21px; border: 0; border-radius: 8px; background: var(--download-accent); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color 140ms ease, transform 140ms ease; }
.install-button:hover { background: var(--download-accent-hover); }
.install-button:active { transform: translateY(1px); }
.install-status { min-height: 24px; margin: 0; color: var(--download-muted); font-size: 14px; }
.platforms { padding: 28px 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; letter-spacing: -.035em; }
.section-heading p { max-width: 420px; margin: 0; color: var(--download-muted); font-size: 14px; }
.platform-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.platform { min-width: 0; padding: 20px 22px 18px; border-radius: 12px; background: var(--download-paper); }
.platform h3 { margin: 0 0 5px; font-size: 19px; line-height: 1.2; letter-spacing: -.025em; }
.platform > p { margin: 0 0 11px; color: var(--download-muted); font-size: 14px; }
.platform ol { margin: 0; padding-left: 20px; color: var(--download-ink); font-size: 14px; }
.platform li { padding-left: 3px; }
.platform li + li { margin-top: 6px; }
.platform-android h3 { color: #28734d; }
.platform-linux h3 { color: #7e4c12; }
.platform-mac h3 { color: #4a43a7; }
.platform-windows h3 { color: #165c91; }
.pwa-note { margin-top: 19px; padding: 16px 19px; border-radius: 10px; background: var(--download-soft); }
.pwa-note p { margin: 0; color: #2d2859; font-size: 14px; line-height: 1.55; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0 36px; color: var(--download-muted); font-size: 13px; }
.site-footer a { color: var(--download-accent); font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* The app-wide install nudge is injected by pwa-install.js. */
.pwa-install-nudge { position: fixed; z-index: 1000; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 18px; width: min(410px, calc(100vw - 32px)); padding: 17px 18px; border-radius: 12px; background: #fff; color: #171923; box-shadow: 0 12px 38px rgba(23, 25, 35, .19); animation: nudge-arrive 180ms ease-out both; }
.pwa-install-nudge[hidden] { display: none; }
.pwa-nudge-copy { min-width: 0; }
.pwa-nudge-title { margin: 0 0 3px; font-size: 15px; font-weight: 750; }
.pwa-nudge-text { margin: 0; color: #525969; font-size: 13px; line-height: 1.4; }
.pwa-nudge-close { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; display: grid; place-items: center; width: 38px; height: 38px; margin: -7px -7px 0 0; border: 0; border-radius: 8px; background: transparent; color: #525969; font-size: 23px; line-height: 1; cursor: pointer; }
.pwa-nudge-close:hover { background: #f0f1f5; color: #171923; }
.pwa-nudge-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 3px; }
.pwa-nudge-actions a, .pwa-nudge-actions button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 0; border-radius: 7px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.pwa-nudge-actions a { color: #383244; background: transparent; }
.pwa-nudge-actions button { color: #fff; background: var(--download-accent); }
.pwa-nudge-actions button:hover { background: var(--download-accent-hover); }
@keyframes nudge-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 660px) {
  .page-shell { width: min(100% - 32px, 1000px); }
  .site-header { min-height: 68px; }
  .intro { padding: 52px 0 36px; }
  h1 { font-size: clamp(38px, 12vw, 54px); }
  .section-heading { display: block; }
  .section-heading p { margin-top: 7px; }
  .platform-list { grid-template-columns: 1fr; gap: 9px; }
  .platform { padding: 17px 18px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding-bottom: 26px; }
  .pwa-install-nudge { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
