/* ═══════════════════════════════════════════════════════════════
   Voz — landing page.

   Identity notes (see DESIGN.md):
   · Type is the macOS system stack. Zero webfont requests, and it
     makes the page feel native to the product it sells.
   · One accent only: the red → violet → blue brand gradient.
   · Motion runs on a single duration — --t: 400ms — which is the
     product's own transcription latency. Everything on the page
     resolves in the time Voz takes to think.
   · Shape language is the logo's: stadium/pill. Panels are 20px,
     deliberately tighter than the 36px superellipse look, so the
     pills carry the identity.
   ═══════════════════════════════════════════════════════════════ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { text-size-adjust: none; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, pre { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, svg, canvas { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- tokens ---------- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --grey-0: #fff;
  --grey-10: #f7f8fa;
  --grey-15: #f1f2f5;
  --grey-20: #eceef2;
  --grey-50: #e3e6ec;
  --grey-100: #d9dde4;
  --grey-300: #aeb4bf;
  --grey-600: #6b7180;
  --grey-800: #45474d;
  --grey-900: #2c2d31;
  --grey-1000: #1e1f23;
  --grey-1100: #131418;
  --grey-1200: #0c0d10;

  --voz-red: #e82039;
  --voz-violet: #8d2ce0;
  --voz-blue: #2b3cf2;
  --voz-grad: linear-gradient(100deg, #e82039 0%, #8d2ce0 52%, #2b3cf2 100%);

  --surface: var(--grey-0);
  --on-surface: var(--grey-1200);
  --on-surface-variant: var(--grey-800);
  --surface-container: var(--grey-10);
  --surface-container-high: var(--grey-20);
  --surface-container-higher: var(--grey-50);
  --outline: rgba(28, 29, 34, .12);
  --outline-variant: rgba(28, 29, 34, .07);
  --inverse-outline-variant: rgba(230, 234, 240, .08);
  --secondary-button: rgba(120, 130, 160, .09);
  --nav-button-hover: rgba(120, 130, 160, .14);

  /* the whole motion system: one duration, the product's latency */
  --t: .4s;
  --ease: cubic-bezier(.2, .7, .3, 1);

  --hw: 600;  /* display weight for SF */

  --landing-main-size: 82px;
  --landing-main-lh: 1.03;
  --landing-main-ls: -3.4px;
  --h1-size: 76px;  --h1-lh: 1.03;  --h1-ls: -3px;
  --h2-size: 56px;  --h2-lh: 1.05;  --h2-ls: -2px;
  --h3-size: 44px;  --h3-lh: 1.08;  --h3-ls: -1.4px;
  --h4-size: 34px;  --h4-lh: 1.1;   --h4-ls: -1px;
  --h5-size: 27px;  --h5-lh: 1.15;  --h5-ls: -0.6px;
  --md-size: 19px;  --md-lh: 1.4;   --md-ls: -0.3px;
  --base-size: 17px;   --base-lh: 1.55; --base-ls: -0.1px;
  --sm-size: 14.5px;   --sm-lh: 1.5;    --sm-ls: -0.05px;
  --xs-size: 12px;     --xs-lh: 1.3;    --xs-ls: .02em;

  --grid-gutter: 56px;
  --page-margin: 64px;
  --breakpoint-max: 1500px;

  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 9999px;

  --sp-xs: 4px; --sp-sm: 8px; --sp-md: 16px; --sp-lg: 24px; --sp-xl: 36px;
  --sp-2xl: 48px; --sp-3xl: 60px; --sp-4xl: 80px; --sp-5xl: 88px;
  --sp-6xl: 120px; --sp-7xl: 160px;

  --nav-height: 56px;
}
@media (max-width: 1500px) {
  :root { --landing-main-size: 66px; --landing-main-ls: -2.6px; --h1-size: 60px; --h1-ls: -2.2px; --grid-gutter: 44px; }
}
@media (max-width: 1024px) {
  :root {
    --landing-main-size: 46px; --landing-main-ls: -1.6px;
    --grid-gutter: 36px; --page-margin: 36px;
    --h1-size: 34px; --h1-ls: -1px;
    --h2-size: 32px; --h2-ls: -0.9px;
    --h3-size: 28px; --h3-ls: -0.7px;
    --h4-size: 26px; --h4-ls: -0.5px;
    --h5-size: 23px; --h5-ls: -0.4px;
    --base-size: 16px;
  }
}
@media (max-width: 767px) {
  :root { --landing-main-size: 36px; --landing-main-ls: -1.1px; --grid-gutter: 16px; --page-margin: 20px; }
  .hidden-xs { display: none !important; }
}

/* ---------- base type ---------- */
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { font-weight: var(--hw); line-height: 1.05; }
::selection { background: rgba(141, 44, 224, .16); }
.mono { font-family: var(--font-mono); }

.landing-main-header { font-size: var(--landing-main-size); line-height: var(--landing-main-lh); letter-spacing: var(--landing-main-ls); font-weight: var(--hw); }
.heading-1 { font-size: var(--h1-size); line-height: var(--h1-lh); letter-spacing: var(--h1-ls); font-weight: var(--hw); }
.heading-2 { font-size: var(--h2-size); line-height: var(--h2-lh); letter-spacing: var(--h2-ls); font-weight: var(--hw); }
.heading-3 { font-size: var(--h3-size); line-height: var(--h3-lh); letter-spacing: var(--h3-ls); font-weight: var(--hw); }
.heading-4 { font-size: var(--h4-size); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); font-weight: var(--hw); }
.heading-5 { font-size: var(--h5-size); line-height: var(--h5-lh); letter-spacing: var(--h5-ls); font-weight: var(--hw); }
.heading-9 { font-size: var(--md-size); line-height: var(--md-lh); letter-spacing: var(--md-ls); font-weight: 560; }
.body { font-size: var(--base-size); line-height: var(--base-lh); letter-spacing: var(--base-ls); }
.caption { font-size: var(--sm-size); line-height: var(--sm-lh); letter-spacing: var(--sm-ls); }
.small { font-size: var(--xs-size); line-height: var(--xs-lh); letter-spacing: var(--xs-ls); font-weight: 500; }
.call-to-action { font-size: var(--base-size); font-weight: 510; }
.call-to-action--nav { font-size: var(--sm-size); font-weight: 500; }

kbd {
  font-family: var(--font-mono); font-size: .92em; font-weight: 500;
  background: var(--grey-15); border: 1px solid var(--outline-variant);
  border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--grey-1000);
}

/* inline icon sprite */
.ic { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: -0.28em; color: inherit; }

/* ---------- layout ---------- */
.container { max-width: calc(1660px + var(--page-margin) * 2); padding: 0 var(--page-margin); margin: 0 auto; }
.grid-container { width: 100%; max-width: calc(var(--breakpoint-max) + var(--page-margin) * 2); padding: 0 var(--page-margin); margin: 0 auto; }
.grid-row { display: flex; flex-flow: row wrap; margin-inline: calc(var(--grid-gutter) / -2); }
.grid-col { padding-inline: calc(var(--grid-gutter) / 2); flex: auto; }
.col-xs-2 { flex-basis: 50%; max-width: 50%; }
.col-xs-4 { flex-basis: 100%; max-width: 100%; }
@media (min-width: 1024px) {
  .col-md-3 { flex-basis: 25%; max-width: 25%; }
  .col-md-4 { flex-basis: 33.3333%; max-width: 33.3333%; }
  .col-md-6 { flex-basis: 50%; max-width: 50%; }
  .col-md-8 { flex-basis: 66.6667%; max-width: 66.6667%; }
  .col-md-10 { flex-basis: 83.3333%; max-width: 83.3333%; }
  .order-md-1 { order: 1; }
  .order-md-2 { order: 2; }
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); border: 1px solid transparent;
  padding: 11px 22px; height: fit-content; white-space: nowrap;
  font-family: var(--font-sans); font-weight: 510;
  font-size: var(--base-size); line-height: 1.4;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), transform var(--t) var(--ease);
  text-align: center; cursor: pointer;
}
.button:active { transform: scale(.98); }
.button-compact { min-block-size: 34px; padding: 6px 15px; font-size: var(--sm-size); }
.button-primary { background: var(--on-surface); color: var(--grey-0); }
.button-primary:hover, .button-primary:focus-visible { background: var(--grey-900); outline: none; }
.button-secondary { color: var(--on-surface); background: var(--secondary-button); border-color: var(--outline-variant); }
.button-secondary:hover, .button-secondary:focus-visible { background: var(--grey-15); outline: none; }
.button-primary-inverse { background: var(--grey-0); color: var(--grey-1200); }
.button-primary-inverse:hover { background: var(--surface-container-high); }
.button-secondary-inverse { color: var(--grey-0); background: rgba(150, 160, 190, .18); border-color: var(--inverse-outline-variant); }
.button-secondary-inverse:hover { background: rgba(160, 170, 200, .28); }
.button-nav { font-size: var(--sm-size); font-weight: 500; color: var(--on-surface-variant); background: none; padding: 7px 13px; }
.button-nav:hover, .button-nav:focus-visible { color: #000; background: var(--nav-button-hover); outline: none; }
.cta-flex { display: inline-flex; align-items: center; gap: 9px; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: transform var(--t) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.header.hidden { transform: translateY(-100%); }
.header.scrolled { border-bottom-color: var(--outline-variant); }
.header.menu-open { background: #fff; }
.header-main { display: flex; align-items: center; gap: var(--sp-xl); padding: 12px 0; position: relative; }
.logo-link { display: inline-flex; align-items: center; position: relative; }
.logo-lockup { overflow: visible; }
.lockup-product { font: 640 20px var(--font-sans); letter-spacing: -0.8px; fill: var(--grey-1200); }
.header-actions { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav { display: flex; align-items: center; gap: 2px; }
.header-actions-right { display: flex; align-items: center; gap: var(--sp-md); }
.menu-toggle { display: none; margin-left: auto; }

.logo-context-menu {
  position: absolute; top: calc(100% + 6px); left: var(--page-margin); z-index: 1001;
  background: #fff; border: 1px solid var(--outline); border-radius: 14px;
  min-width: 232px; padding: 7px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .13), 0 2px 8px rgba(0, 0, 0, .05);
  opacity: 0; transform: translateY(-6px) scale(.97); pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  display: flex; flex-direction: column; gap: 2px;
}
.logo-context-menu.visible { opacity: 1; transform: none; pointer-events: auto; }
.context-menu-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  border-radius: 9px; padding: 8px 11px; font-size: 13.5px; font-weight: 500;
  color: #1e1f23; white-space: nowrap; transition: background-color var(--t) var(--ease); text-align: left;
}
.context-menu-item:hover { background: var(--grey-15); color: #000; }
.context-menu-item .item-ic { width: 17px; height: 17px; color: var(--grey-600); }
.context-menu-divider { height: 1px; background: var(--outline-variant); margin: 4px 6px; }
.item-status { display: none; margin-left: auto; color: #17803d; font-size: 11.5px; font-weight: 600; }
.context-menu-item.copied .item-status { display: inline-block; }

.mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; z-index: 99; }
.mobile-menu.open { display: block; }
.mobile-menu-content { border-top: 1px solid var(--surface-container-higher); height: 100vh; padding-bottom: var(--sp-2xl); overflow-y: auto; }
.mobile-nav-item {
  display: flex; align-items: center; width: 100%;
  padding: var(--sp-lg); font-size: 1.1rem; font-weight: 520;
  border-bottom: 1px solid var(--surface-container-higher); color: var(--on-surface);
}
@media (max-width: 1024px) {
  .header-actions { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- word-burst typing ---------- */
/* dictation commits in phrases, not characters — so words land in clumps,
   and uncertain ones settle out of a blur the way a real decoder resolves them */
[data-burst] .w {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(.14em);
  transition: opacity .34s var(--ease), filter .34s var(--ease), transform .34s var(--ease);
}
[data-burst] .w.settling { opacity: .55; filter: blur(2.4px); transform: none; }
[data-burst] .w.on { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-burst] .w { opacity: 1; filter: none; transform: none; transition: none; }
}

/* ---------- hero ---------- */
.welcome-wrapper {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 100svh; padding-top: var(--nav-height); overflow: hidden;
}
.hero-ascii { position: absolute; inset: 0; z-index: 0; }
.hero-ascii canvas, .download-ascii canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.welcome-section { position: relative; z-index: 1; width: 100%; padding-block: var(--sp-4xl); }
.hero-copy { max-width: 880px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
@keyframes breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
.landing-main-header { max-inline-size: 14ch; text-wrap: balance; }
.hero-sub { max-inline-size: 50ch; color: var(--on-surface-variant); margin-top: var(--sp-lg); }
.welcome-cta { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: var(--sp-xl); }
.hero-note { color: var(--grey-600); margin-top: var(--sp-lg); }
[data-hero-sub], [data-hero-cta], [data-hero-note] { opacity: 0; transform: translateY(10px); }

/* subpage first sections clear the fixed header */
.page-hero { padding-top: calc(var(--nav-height) + var(--sp-2xl)); }

/* ---------- trust strip ---------- */
.trust-strip { border-block: 1px solid var(--outline-variant); background: var(--surface-container); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gutter); padding-block: var(--sp-xl); }
.trust-item { display: flex; flex-direction: column; gap: 6px; }
.trust-num { font-size: 30px; font-weight: 500; letter-spacing: -1px; color: var(--on-surface); }
.trust-label { font-size: var(--sm-size); color: var(--on-surface-variant); max-width: 30ch; }
.trust-verify {
  font: inherit; font-size: inherit; margin-left: 8px; color: var(--voz-blue);
  border-bottom: 1px solid currentColor; transition: opacity var(--t) var(--ease);
}
.trust-verify:hover { opacity: .6; }
.trust-item.is-offline .trust-num { color: var(--voz-red); }
@media (max-width: 1024px) { .trust-row { grid-template-columns: 1fr; gap: var(--sp-lg); } }

/* ---------- demo panel ---------- */
.landing-video-section { display: flex; justify-content: center; width: 100%; padding-top: var(--sp-6xl); }
.landing-video-section .container { width: 100%; }
.video-wrapper {
  position: relative; width: 100%;
  border-radius: var(--r-xl); overflow: hidden; line-height: 0;
  border: 1px solid var(--outline-variant);
}
.landing-video { width: 100%; aspect-ratio: 1920 / 1080; background: #0a0b0f; }
.video-control-button {
  position: absolute; right: 18px; bottom: 18px; width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .13); backdrop-filter: blur(16px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), background-color var(--t) var(--ease);
}
.video-control-button:hover { background: rgba(255, 255, 255, .22); }
.demo-note { color: var(--grey-600); margin-top: var(--sp-md); max-width: 70ch; }

/* ---------- caret cursor ---------- */
[data-caret-zone] { cursor: none; }
.caret-cursor {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  width: 2px; height: 26px; border-radius: 2px;
  background: var(--voz-grad); opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity var(--t) var(--ease);
}
.caret-cursor.on { opacity: 1; animation: caretblink 1.06s step-end infinite; }
@keyframes caretblink { 0%, 45% { opacity: 1; } 50%, 95% { opacity: .12; } 100% { opacity: 1; } }
@media (hover: none), (pointer: coarse) { [data-caret-zone] { cursor: auto; } .caret-cursor { display: none; } }

/* ---------- privacy statement + app marquee ---------- */
.agent-first-section { position: relative; padding: var(--sp-7xl) 0 var(--sp-6xl); z-index: 1; }
.agent-first-grid { margin-bottom: var(--sp-6xl); }
.agent-first-text .heading-1 { text-wrap: pretty; max-inline-size: 22ch; }
.marquee { position: relative; }
.marquee-viewport { position: relative; overflow: hidden; }
.marquee-viewport::before, .marquee-viewport::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none;
}
.marquee-viewport::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee-viewport::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.app-tile {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px; border-radius: var(--r-pill);
  border: 1px solid var(--outline-variant); background: var(--grey-10);
  font-size: var(--base-size); font-weight: 510; color: var(--grey-1000);
  white-space: nowrap;
}
.app-tile .ic { color: var(--grey-600); }
.tile-caret {
  display: inline-block; width: 2px; height: 1.05em; border-radius: 2px;
  background: var(--voz-grad); margin-left: 2px; opacity: 0;
}
.app-tile.typing .tile-caret { opacity: 1; animation: caretblink 1.06s step-end infinite; }
.app-tile.typing { border-color: rgba(141, 44, 224, .35); background: #fff; }
.marquee-note { color: var(--grey-600); margin-top: var(--sp-lg); padding-inline: var(--page-margin); }

/* ---------- features ---------- */
.feature-explorer-section { padding: var(--sp-6xl) 0; }
.feature-list { display: flex; flex-direction: column; gap: var(--sp-5xl); }
.feature-item .grid-row { align-items: center; }
.feature-copy { display: flex; flex-direction: column; gap: var(--sp-md); }
.feature-description { color: var(--on-surface-variant); max-inline-size: 40ch; }
/* the copy is "dictated" onto the page — a small voice strip speaks under it */
.feature-voice {
  display: inline-flex; align-items: center; gap: 4px; height: 22px;
  margin-top: var(--sp-sm); opacity: .45;
  transition: opacity var(--t) var(--ease);
}
.feature-voice i {
  width: 3px; height: 18px; border-radius: 99px;
  background: var(--c, var(--grey-300));
  transform: scaleY(.22);
  transition: transform .35s var(--ease);
}
.feature-voice.speaking { opacity: 1; }
.feature-voice.speaking i { animation: voicebob .9s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes voicebob { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.feature-cta-wrap { margin-top: var(--sp-lg); }
.feature-media {
  border-radius: var(--r-xl); overflow: hidden; width: 100%; line-height: 0; position: relative;
  border: 1px solid var(--outline-variant);
}
[data-feature-item] { opacity: 0; transform: translateY(18px); }
[data-feature-item].in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (max-width: 1024px) {
  .feature-list { gap: var(--sp-4xl); }
  .feature-copy { margin-bottom: var(--sp-lg); }
  .feature-description { max-inline-size: none; }
}

/* mock: shared */
.mock { width: 100%; aspect-ratio: 1268 / 852; position: relative; overflow: hidden; font-size: clamp(8px, 1.02vw, 15px); line-height: 1.5; }

/* mock 1: memo — scrolling voice-memo waveform + live transcription */
.mock-memo { background:
  radial-gradient(120% 90% at 0% 100%, rgba(232, 32, 57, .09), transparent 48%),
  radial-gradient(120% 90% at 100% 0%, rgba(43, 60, 242, .09), transparent 48%),
  #f7f8fb; }
.memo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.memo-mic {
  position: absolute; top: 4.5%; right: 4%;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px);
  border: 1px solid var(--outline-variant); border-radius: var(--r-pill);
  padding: 8px 15px; font-size: var(--sm-size); font-weight: 510; color: var(--grey-1000);
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.memo-mic:hover { background: #fff; border-color: rgba(141, 44, 224, .35); }
.memo-mic .ic { width: 16px; height: 16px; }
.memo-mic.live { border-color: rgba(232, 32, 57, .45); }
.memo-mic.live .ic { color: var(--voz-red); animation: breathe 1.4s ease-in-out infinite; }
.memo-note { position: absolute; right: 4%; bottom: 4.5%; color: var(--grey-600); letter-spacing: .02em; }
.vocab-caret {
  display: inline-block; width: .14em; height: 1.05em; border-radius: 99px;
  background: var(--voz-grad); vertical-align: text-bottom; margin-left: .15em;
  animation: caretblink 1.06s step-end infinite;
}

/* mock 2: terminal */
.mock-net { background: #08090d; }
.mock-term {
  position: absolute; inset: 9% 11% auto; background: #12141a;
  border: 1px solid rgba(255, 255, 255, .07); border-radius: .8em;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); padding: 1em 1.5em 1.6em;
  font-family: var(--font-mono);
}
.mock-term-bar { display: flex; gap: .5em; margin-bottom: 1.1em; }
.mock-term-bar span { width: .8em; height: .8em; border-radius: 50%; background: #ff5f57; }
.mock-term-bar span:nth-child(2) { background: #febc2e; }
.mock-term-bar span:nth-child(3) { background: #28c840; }
.mock-ascii { color: #9aa0a6; font-size: .78em; line-height: 1.12; margin: 0 0 1.1em; white-space: pre; text-align: left; }
.mock-term-body p { color: #dfe3ea; white-space: pre; font-size: .92em; padding: .1em 0; }
.mock-term-body .t-cmd { color: #8d93a1; margin-bottom: .6em; }
.mock-term-body .t-ok { color: #2bd97c; }
.mock-term-body .t-done { color: #2bd97c; margin-top: .9em; }

/* mock 3: speed + live race */
.mock-speed { background: #07080c; display: flex; align-items: center; justify-content: center; }
.speed-ring {
  position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; left: 14%; top: -6%;
  background: radial-gradient(closest-side, transparent 54%, rgba(232, 32, 57, .38) 65%, rgba(141, 44, 224, .72) 71%, rgba(43, 60, 242, .42) 78%, transparent 90%);
  filter: blur(15px);
}
.speed-stack { position: relative; text-align: center; width: 62%; }
.speed-big {
  font-size: 6.4em; font-weight: 620; letter-spacing: -.05em; line-height: 1;
  background: var(--voz-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.speed-big span { font-size: .5em; }
.speed-sub { color: #c6cbd6; margin-top: .5em; font-size: 1.2em; }
.speed-race { display: flex; flex-direction: column; gap: .55em; margin-top: 2em; }
.race-row { display: flex; align-items: center; gap: .9em; }
.race-label { color: #6b7180; font-size: .82em; width: 5.4em; text-align: right; }
.race-bar { flex: 1; height: .5em; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.race-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--voz-grad); }
.race-bar i[data-race="type"] { background: #3a3f4d; }
.race-val { color: #c6cbd6; font-size: .82em; width: 3.2em; text-align: left; }
.speed-meta { color: #6b7180; font-size: .78em; margin-top: 1.4em; }

/* mock 4: vocab */
.mock-vocab { background:
  radial-gradient(110% 80% at 100% 100%, rgba(43, 60, 242, .07), transparent 50%),
  radial-gradient(110% 80% at 0% 0%, rgba(232, 32, 57, .06), transparent 50%),
  #f7f8fb;
  display: flex; align-items: center; justify-content: center; }
.vocab-card {
  width: 54%; background: #fff; border: 1px solid var(--outline-variant);
  border-radius: 1em; box-shadow: 0 14px 44px rgba(12, 13, 16, .08); padding: 1.2em 1.4em 1.3em;
}
.vocab-head { display: flex; align-items: center; justify-content: space-between; font-weight: 560; color: var(--grey-1100); padding-bottom: .8em; border-bottom: 1px solid var(--outline-variant); }
.vocab-head .ic { width: 1.15em; height: 1.15em; color: #9aa0ab; }
.vocab-row { display: flex; align-items: center; gap: .9em; padding: .78em 0; border-bottom: 1px solid var(--outline-variant); }
.v-word { font-weight: 510; color: var(--grey-1000); }
.v-tag { font-size: .8em; color: var(--grey-600); background: var(--grey-15); border-radius: 99px; padding: .15em .7em; }
.tgl { margin-left: auto; width: 2.5em; height: 1.45em; border-radius: 99px; background: #d7dbe3; position: relative; flex: 0 0 auto; }
.tgl::after { content: ""; position: absolute; width: 1.05em; height: 1.05em; border-radius: 50%; background: #fff; top: .2em; left: .2em; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.tgl.on { background: var(--voz-grad); }
.tgl.on::after { left: 1.25em; }
.vocab-add { display: flex; align-items: center; gap: .5em; margin-top: 1em; padding: .6em .9em; border: 1px dashed var(--grey-100); border-radius: .6em; color: var(--grey-1000); font-weight: 510; }
.vocab-add .ic { width: 1.15em; height: 1.15em; color: var(--grey-600); }

/* ---------- the anti-feature wall ---------- */
.nothing-section { background: var(--grey-1200); color: #fff; padding-block: var(--sp-7xl); }
.nothing-eyebrow { color: var(--grey-600); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--sp-xl); }
.nothing-list { display: flex; flex-direction: column; }
.nothing-list li {
  display: flex; align-items: baseline; gap: var(--sp-lg);
  font-size: var(--h2-size); line-height: 1.35; letter-spacing: var(--h2-ls);
  font-weight: var(--hw); color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .09); padding-block: .28em;
  opacity: 0; transform: translateY(14px);
}
.nothing-list li.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.no-mark { width: .5em; height: 2px; background: var(--voz-grad); border-radius: 2px; flex: 0 0 auto; align-self: center; }
.nothing-note { color: var(--grey-300); margin-top: var(--sp-2xl); max-inline-size: 58ch; }
.nothing-note em { color: #fff; font-style: normal; font-weight: 560; }

/* ---------- pricing ---------- */
.pricing-section { padding-block: var(--sp-7xl); border-bottom: 1px solid var(--outline-variant); }
.pricing-head { max-inline-size: 46ch; margin-bottom: var(--sp-3xl); }
.pricing-head .body { color: var(--on-surface-variant); margin-top: var(--sp-md); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-lg); }
.price-card {
  border: 1px solid var(--outline); border-radius: var(--r-xl);
  padding: var(--sp-xl); display: flex; flex-direction: column; gap: var(--sp-md);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.price-card:hover { border-color: rgba(141, 44, 224, .4); box-shadow: 0 18px 50px rgba(12, 13, 16, .07); transform: translateY(-3px); }
.price-card-quiet { background: var(--surface-container); }
.price-kind { color: var(--grey-600); text-transform: uppercase; letter-spacing: .1em; }
.price-amount { font-size: var(--h3-size); font-weight: var(--hw); letter-spacing: var(--h3-ls); display: flex; align-items: baseline; gap: .4em; }
.price-per { font-size: var(--base-size); font-weight: 400; color: var(--grey-600); letter-spacing: 0; }
.price-list { display: flex; flex-direction: column; gap: 10px; margin-top: var(--sp-sm); }
.price-list li { position: relative; padding-left: 24px; font-size: var(--base-size); color: var(--on-surface-variant); }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 11px; height: 2px;
  border-radius: 2px; background: var(--voz-grad);
}
.price-cta { margin-top: var(--sp-md); align-self: flex-start; }
.price-foot { color: var(--grey-600); }
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-section { background: var(--surface-container); padding-block: var(--sp-6xl); }
.faq-heading { margin-bottom: var(--sp-lg); }
.faq-lede { color: var(--on-surface-variant); max-inline-size: 34ch; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--surface-container-higher); }
.faq-item:first-child { border-top: 1px solid var(--surface-container-higher); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-lg);
  width: 100%; text-align: left; padding: var(--sp-lg) 0;
  transition: color var(--t) var(--ease);
}
.faq-q:hover { color: var(--voz-violet); }
.faq-ic { position: relative; width: 18px; height: 18px; flex: 0 0 auto; transition: transform var(--t) var(--ease); }
.faq-ic::before, .faq-ic::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1.6px; margin-top: -.8px;
  background: var(--on-surface-variant); border-radius: 2px;
}
.faq-ic::after { transform: rotate(90deg); }
.faq-item.open .faq-ic { transform: rotate(135deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a-inner .body { color: var(--on-surface-variant); max-inline-size: 68ch; padding-bottom: var(--sp-lg); }
.faq-a-inner em { font-style: italic; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
@media (max-width: 1024px) {
  .faq-heading br { display: none; }
  .faq-lede { margin-bottom: var(--sp-xl); max-inline-size: none; }
}

/* ---------- download ---------- */
.download-section-container { display: flex; justify-content: center; width: 100%; padding-block: var(--sp-6xl); }
.download-container { width: 100%; }
.download-section { position: relative; width: 100%; padding-block: 200px; }
.download-section-backdrop {
  position: absolute; inset: 0; border-radius: var(--r-xl);
  background: #0b0c10; overflow: hidden;
}
.download-ascii { position: absolute; inset: 0; }
.download-section-content { position: relative; z-index: 1; }
.download-copy { width: fit-content; max-width: 100%; }
.download-header { color: var(--grey-0); max-width: 16ch; }
.download-section-cta { display: flex; align-items: center; gap: 10px; margin-top: var(--sp-xl); flex-wrap: wrap; }
.download-note { color: rgba(230, 234, 240, .5); margin-top: var(--sp-lg); font-size: var(--xs-size); }
@media (max-width: 1024px) {
  .download-section { padding-block: 120px; }
  .download-section-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- footer: one block, wordmark left, links right ---------- */
.footer { border-top: 1px solid var(--outline-variant); background: var(--surface-container); }
.footer-grid {
  display: flex; align-items: center; justify-content: flex-start;
  gap: clamp(20px, 3vw, 56px); padding-block: 48px 40px; flex-wrap: wrap;
}
.footer-wordmark {
  font-size: clamp(150px, 25vw, 420px); line-height: .8; letter-spacing: -0.055em; font-weight: 700;
  white-space: nowrap; margin-left: -0.04em;
  background: var(--voz-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: grayscale(1) brightness(0.28);
  transition: filter 1.1s var(--ease);
  cursor: default; flex: 0 1 auto;
}
/* colors up when scrolled into view (class set by JS); hover keeps it lit too */
.footer-wordmark.lit, .footer-wordmark:hover { filter: none; }
.footer-cols { display: flex; gap: clamp(32px, 4.5vw, 80px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; min-width: 118px; }
.footer-col .caption { color: var(--grey-600); font-weight: 500; margin-bottom: var(--sp-md); }
.footer-col a { font-size: var(--sm-size); font-weight: 500; color: var(--on-surface); padding: 4px 0; }
.footer-col a:hover { text-decoration: underline; }
.footer-base {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md);
  border-top: 1px solid var(--outline-variant); padding-block: 18px 24px; color: var(--grey-600);
}
@media (max-width: 1024px) {
  .footer-grid { flex-direction: column; align-items: flex-start; gap: var(--sp-2xl); }
}

/* ---------- subpage sections ---------- */
.req-section, .privacy-detail { padding-block: var(--sp-6xl); }
.req-lede, .privacy-para { color: var(--on-surface-variant); }
.req-lede { max-inline-size: 34ch; margin-top: var(--sp-md); }
.privacy-para { max-inline-size: 62ch; }
.req-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-xl) var(--grid-gutter); }
.req-item { display: flex; flex-direction: column; gap: var(--sp-md); }
.req-title { font-size: var(--md-size); font-weight: 560; letter-spacing: var(--md-ls); }
.req-link { color: var(--voz-blue); border-bottom: 1px solid currentColor; }
.req-link:hover { opacity: .65; }
@media (max-width: 1024px) {
  .req-grid { grid-template-columns: 1fr; }
  .req-lede { margin-bottom: var(--sp-xl); max-inline-size: none; }
  .privacy-detail .heading-3 { margin-bottom: var(--sp-lg); }
}

/* ---------- forms, notices, commerce ----------
   Added for the support page, the post-purchase page and the gated download.
   Everything here stays on the one duration (--t) and the one accent, so a
   form field resolves in exactly the time a hover does. */

.notice {
  margin-top: var(--sp-lg);
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: var(--sm-size);
  line-height: var(--sm-lh);
  border: 1px solid var(--outline);
  background: var(--surface-container);
  color: var(--on-surface-variant);
  max-inline-size: 62ch;
}
/* The accent carries meaning here rather than decoration: red is a dead end,
   blue is "still working", and success stays quiet. */
.notice-error   { border-color: rgba(232, 32, 57, .3);  color: var(--on-surface); }
.notice-pending { border-color: rgba(43, 60, 242, .28); color: var(--on-surface); }
.notice-ok      { border-color: rgba(28, 29, 34, .18);  color: var(--on-surface); }
.notice a { color: var(--voz-blue); border-bottom: 1px solid currentColor; }
.notice a:hover { opacity: .65; }

/* dark panels (thanks / download hero) invert the notice */
.download-section .notice,
.thanks-panel .notice {
  background: rgba(255, 255, 255, .06);
  border-color: var(--inverse-outline-variant);
  color: rgba(230, 234, 240, .78);
}
.download-section .notice a,
.thanks-panel .notice a { color: #fff; }

.form-grid {
  display: grid;
  gap: var(--sp-lg);
  max-inline-size: 56ch;
  margin-top: var(--sp-xl);
}
.field { display: flex; flex-direction: column; gap: var(--sp-sm); }
.field > label {
  font-size: var(--sm-size);
  letter-spacing: var(--sm-ls);
  font-weight: 520;
}
.field-hint {
  font-size: var(--xs-size);
  letter-spacing: var(--xs-ls);
  color: var(--on-surface-variant);
}

.input, .textarea, .select {
  width: 100%;
  font: inherit;
  font-size: var(--base-size);
  color: var(--on-surface);
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--r-md);
  padding: 13px 15px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.input:hover, .textarea:hover, .select:hover { border-color: rgba(28, 29, 34, .24); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--voz-blue);
  box-shadow: 0 0 0 3px rgba(43, 60, 242, .13);
}
.input::placeholder, .textarea::placeholder { color: var(--grey-500, #9aa0ab); }

.select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

/* Honeypot. Off-screen rather than display:none — some bots skip hidden
   fields, and the point is for them to fill it in. */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.button.is-busy { opacity: .6; pointer-events: none; }

/* segmented "what kind of message is this" control */
.kind-row { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.kind-opt { position: relative; }
.kind-opt input {
  position: absolute; opacity: 0; width: 100%; height: 100%;
  margin: 0; cursor: pointer;
}
.kind-opt span {
  display: block;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--outline);
  font-size: var(--sm-size);
  color: var(--on-surface-variant);
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease),
              background-color var(--t) var(--ease);
}
.kind-opt input:hover + span { border-color: rgba(28, 29, 34, .26); }
.kind-opt input:checked + span {
  color: var(--surface);
  background: var(--on-surface);
  border-color: var(--on-surface);
}
.kind-opt input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(43, 60, 242, .18);
}

/* support page layout */
.support-section { padding-block: var(--sp-6xl); }
.support-lede { color: var(--on-surface-variant); max-inline-size: 40ch; margin-top: var(--sp-md); }
.support-aside { display: flex; flex-direction: column; gap: var(--sp-xl); }
.support-aside-item { display: flex; flex-direction: column; gap: var(--sp-sm); }
.support-aside-item p:last-child { color: var(--on-surface-variant); font-size: var(--sm-size); }

/* thanks page */
.thanks-panel { position: relative; }
.thanks-meta {
  color: rgba(230, 234, 240, .7);
  font-size: var(--sm-size);
  line-height: var(--sm-lh);
  margin-top: var(--sp-lg);
  max-inline-size: 52ch;
}
.thanks-meta strong { color: #fff; font-weight: 520; }
.thanks-next { margin-top: var(--sp-4xl); }
.thanks-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-xl) var(--grid-gutter);
  margin-top: var(--sp-2xl);
  counter-reset: step;
}
.thanks-step { display: flex; flex-direction: column; gap: var(--sp-sm); }
.thanks-step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-mono);
  font-size: var(--xs-size);
  letter-spacing: var(--xs-ls);
  color: var(--voz-blue);
}
.thanks-step p:last-child { color: var(--on-surface-variant); font-size: var(--sm-size); }

.download-left {
  color: rgba(230, 234, 240, .6);
  font-size: var(--xs-size);
  letter-spacing: var(--xs-ls);
  margin-top: var(--sp-md);
}

@media (max-width: 1024px) {
  .thanks-steps { grid-template-columns: 1fr; }
  .support-aside { margin-top: var(--sp-2xl); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-hero-sub], [data-hero-cta], [data-hero-note] { opacity: 1; transform: none; }
  [data-feature-item], .nothing-list li { opacity: 1; transform: none; }
}
