/* AutoWhisper landing — neutral, type-led, light/dark.
   Shares the --aw- token vocabulary with the settings UI
   (design/design-system.md); one block, schemes via light-dark(). */
:root {
  color-scheme: light dark;
  --aw-paper-0: light-dark(oklch(0.985 0 0), oklch(0.135 0 0));
  --aw-paper-1: light-dark(oklch(0.955 0 0), oklch(0.185 0 0));
  --aw-ink-0: light-dark(oklch(0.205 0 0), oklch(0.95 0 0));
  --aw-ink-2: light-dark(oklch(0.45 0 0), oklch(0.70 0 0));
  --aw-ink-3: light-dark(oklch(0.525 0 0), oklch(0.640 0 0));
  --aw-line: light-dark(oklch(0.90 0 0), oklch(0.26 0 0));
  --aw-shadow-1: 0 18px 60px light-dark(oklch(0 0 0 / 0.10), oklch(0 0 0 / 0.55));
  --aw-focus-ring: 0 0 0 3px light-dark(oklch(0.620 0.150 252 / 0.38), oklch(0.620 0.150 252 / 0.50));
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--aw-paper-0);
  color: var(--aw-ink-0);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p a { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--aw-focus-ring); }
h1, h2 { text-wrap: balance; }
main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--aw-ink-0); color: var(--aw-paper-0);
  padding: 10px 16px; border-radius: 999px; z-index: 10;
}
.skip-link:focus { left: 16px; top: 12px; }

.site-header {
  max-width: 1080px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px;
}
.brand { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; color: var(--aw-ink-2); }
.nav-links a { padding: 8px 6px; margin: -8px 0; }
.nav-links a:hover { color: var(--aw-ink-0); }

.hero { padding: 96px 0 64px; text-align: center; }
.hero h1 {
  font-size: clamp(56px, 11vw, 112px);
  line-height: 0.98;
  letter-spacing: -.035em;
  font-weight: 700;
}
.hero-copy {
  max-width: 34em; margin: 28px auto 0; color: var(--aw-ink-2);
  font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5;
}
.hero-actions {
  margin-top: 36px; display: flex; gap: 22px; justify-content: center;
  align-items: center; flex-wrap: wrap;
}
.button {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px;
}
.button-primary { background: var(--aw-ink-0); color: var(--aw-paper-0); }
.button-primary:hover { opacity: .85; }
.button-quiet { color: var(--aw-ink-2); font-size: 16px; padding: 8px 4px; margin: -8px 0; }
.button-quiet:hover { color: var(--aw-ink-0); }
.release-note { margin-top: 22px; font-size: 13px; color: var(--aw-ink-3); }

.product { padding: 48px 0; text-align: center; }
.product img {
  width: 100%; max-width: 980px; height: auto; display: block; margin: 0 auto;
  border-radius: 14px; border: 1px solid var(--aw-line); box-shadow: var(--aw-shadow-1);
}
.img-note, .section-copy, figcaption { color: var(--aw-ink-3); font-size: 14px; }
.img-note { margin-top: 16px; }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  padding: 72px 0; border-top: 1px solid var(--aw-line);
}
.facts h2 { font-size: 19px; letter-spacing: -.015em; margin-bottom: 8px; }
.facts p { color: var(--aw-ink-2); font-size: 15px; }

.mobile-previews { border-top: 1px solid var(--aw-line); padding-top: 72px; }
.mobile-previews h2 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -.03em; }
.section-copy { max-width: 36em; margin: 14px auto 0; font-size: 16px; }
.preview-row {
  margin-top: 44px; display: flex; gap: 36px; justify-content: center;
  align-items: flex-end; flex-wrap: wrap;
}
.preview-row figure { margin: 0; }
.preview-row img {
  max-width: 100%; height: auto; display: block; border: 0;
  border-radius: 0; box-shadow: none;
}
.preview-row figure:nth-child(1) img,
.preview-row figure:nth-child(2) img { width: min(440px, 88vw); }
.preview-row figure:nth-child(3) img { width: 170px; }
figcaption { margin-top: 12px; }

.install { padding: 72px 0; border-top: 1px solid var(--aw-line); text-align: center; }
.install h2 { font-size: clamp(28px, 4.4vw, 38px); letter-spacing: -.028em; margin-bottom: 26px; }
.download-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin: 0 auto 18px; max-width: 920px; text-align: left;
}
.download-card {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  padding: 22px; border: 1px solid var(--aw-line); border-radius: 14px;
  background: var(--aw-paper-1);
}
.download-card h3 { font-size: 17px; letter-spacing: -.012em; }
.download-card p { color: var(--aw-ink-2); font-size: 14px; }
.download-card .button {
  font-size: 13px; padding: 10px 16px; max-width: 100%;
  overflow-wrap: anywhere; text-align: left;
}
.download-meta { color: var(--aw-ink-3); font-size: 13px; margin-top: 6px; }
.download-meta a { text-decoration: underline; text-underline-offset: 3px; }
.install-sub { font-size: 18px; letter-spacing: -.012em; margin: 40px 0 18px; }

.faq { padding: 72px 0; border-top: 1px solid var(--aw-line); max-width: 760px; margin: 0 auto; }
.faq h2 { font-size: clamp(28px, 4.4vw, 38px); letter-spacing: -.028em; margin-bottom: 22px; text-align: center; }
.faq details {
  border-bottom: 1px solid var(--aw-line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px;
  padding: 14px 4px; border-radius: 8px;
  list-style-position: outside;
}
.faq summary:hover { color: var(--aw-ink-2); }
.faq details p { color: var(--aw-ink-2); font-size: 15px; padding: 0 4px 16px; max-width: 60ch; }

.feedback { padding: 72px 0; border-top: 1px solid var(--aw-line); text-align: center; }
.feedback h2 { font-size: clamp(28px, 4.4vw, 38px); letter-spacing: -.028em; }
.feedback-actions {
  margin-top: 28px; display: flex; gap: 22px; justify-content: center;
  align-items: center; flex-wrap: wrap;
}
.install pre {
  display: inline-block; text-align: left; background: var(--aw-paper-1);
  border: 1px solid var(--aw-line); border-radius: 14px; padding: 22px 28px;
  font-size: 14.5px; line-height: 1.8; overflow-x: auto; max-width: 100%;
}
.install code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.privacy { padding: 72px 0 96px; border-top: 1px solid var(--aw-line); text-align: center; }
.privacy h2 { font-size: clamp(28px, 4.4vw, 38px); letter-spacing: -.028em; }
.privacy p { max-width: 38em; margin: 16px auto 0; color: var(--aw-ink-2); overflow-wrap: anywhere; }

.site-footer {
  max-width: 1080px; margin: 0 auto; padding: 26px 24px 44px;
  display: flex; gap: 18px; font-size: 14px;
  color: var(--aw-ink-3); border-top: 1px solid var(--aw-line);
}
.site-footer span { margin-right: auto; }
.site-footer a { padding: 8px 6px; margin: -8px -6px; }
.site-footer a:hover { color: var(--aw-ink-0); }

@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 64px 0 40px; }
}

/* Motion — research: design/research/2026-06-12-motion-platform-research.md.
   One-time hero entrance; below-the-fold sections reveal on scroll entry
   (scroll-driven animations: Chrome/Edge 115+, Safari 26; Firefox sees the
   static page). Everything gated on prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero h1,
  .hero-copy,
  .hero-actions,
  .release-note {
    animation: rise-in 600ms cubic-bezier(.16, 1, .3, 1) backwards;
  }
  .hero-copy { animation-delay: 90ms; }
  .hero-actions { animation-delay: 170ms; }
  .release-note { animation-delay: 240ms; }

  .button, .button-quiet, .nav-links a {
    transition: opacity 120ms ease-out, color 120ms ease-out, transform 120ms ease-out;
  }
  .button-primary:active { transform: scale(.98); }

  @supports (animation-timeline: view()) {
    /* No `backwards` fill here: if the view timeline is inactive (page fits
       the scrollport — tall monitors, print, fullPage capture), a backwards
       fill would freeze sections at opacity 0. Without it they simply
       render visible and the reveal only plays when scrolling happens. */
    .product picture img,
    .facts > div,
    .preview-row figure,
    .install pre,
    .privacy h2 {
      animation: rise-in linear;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
    .facts > div:nth-child(2) { animation-range: entry 10% entry 50%; }
    .facts > div:nth-child(3) { animation-range: entry 15% entry 55%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
