/* ============================================================
   Inkvox v2 — Premium + GSAP  (PROTOTYPE css)
   Brand tokens preserved from the original v1 stylesheet. Components rebuilt.
   ============================================================ */

@font-face {
  font-family: 'Aspekta';
  src: url('https://cdn.jsdelivr.net/gh/ivodolenc/aspekta@2.000/fonts/variable/AspektaVF.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0D0D0D;
  --bg-2: #1A1A1A;
  --bg-3: #333333;
  --text: #FFFFFF;
  --text-sub: rgba(255, 255, 255, .70);
  --text-dis: rgba(255, 255, 255, .30);
  --border: rgba(255, 255, 255, .10);
  --wash-1: rgba(255, 255, 255, .03);
  --wash-2: rgba(255, 255, 255, .05);

  --accent: #2B6CFF;
  --accent-hover: #1F54D6;
  --accent-active: #1843AD;
  --glow-sm: 0 0 6px rgba(43, 108, 255, .50);
  --glow-lg: 0 0 24px rgba(43, 108, 255, .35);
  --success: #3DD68C;

  --sans: 'Aspekta', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', monospace;

  /* radii — MIX decision: sharp on small, soft on big cards */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-xl: 8px;
  --r-card: 14px;      /* large cards only */
  --r-card-in: 9px;    /* inner core of a double-bezel card */
  --r-full: 9999px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-smooth: cubic-bezier(.32, .72, 0, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --elevation: 0 4px 24px rgba(0, 0, 0, .5);
  --scrub-from: rgba(255, 255, 255, .14);
  --scrub-to: #ffffff;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain — fixed, on top, pointer-safe (preserved from brand) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--text); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 84px); line-height: 1.0; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: 19px; letter-spacing: -0.01em; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.accent-ink { color: var(--accent); }

/* macro whitespace — sections breathe (gpt-taste / high-end) */
.section { padding-block: clamp(96px, 14vh, 200px); position: relative; }

/* ---- mono eyebrow tag ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-sub);
  padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--wash-1);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--success); box-shadow: 0 0 8px var(--success); }

/* ============================ BUTTONS ============================ */
.btn {
  --pad-y: 13px;
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 15px/1 var(--sans); letter-spacing: -0.01em;
  padding: var(--pad-y) 18px; border-radius: var(--r-full);
  cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease-out), background .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(.975); }

.btn-primary { background: var(--accent); color: #fff; padding-right: 7px; box-shadow: var(--glow-lg); }
.btn-primary:hover { background: var(--accent-hover); }
/* button-in-button trailing icon */
.btn-ico {
  width: 30px; height: 30px; border-radius: var(--r-full);
  display: grid; place-items: center; background: rgba(255,255,255,.15);
  transition: transform .4s var(--ease-out), background .3s var(--ease-out);
}
.btn-primary:hover .btn-ico { transform: translate(2px, -2px); background: rgba(255,255,255,.25); }
.btn-ico svg { width: 14px; height: 14px; }

.btn-ghost { background: var(--wash-1); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--wash-2); border-color: rgba(255,255,255,.2); }

.btn-sm { font-size: 14px; --pad-y: 9px; padding-inline: 14px; }
.btn-sm.btn-primary { padding-right: 5px; }
.btn-sm .btn-ico { width: 26px; height: 26px; }

/* ============================ NAV (glass island) ============================ */
/* centered via auto margins, NOT translateX — a transform here would turn the
   nav into the containing block of .nav-overlay (position: fixed) and pin the
   mobile menu to the island instead of the viewport */
.nav {
  position: fixed; top: 18px; left: 0; right: 0; margin-inline: auto;
  z-index: 100; width: min(var(--container), calc(100% - 32px));
}
.nav-inner {
  /* above .nav-overlay (z 99) so the burger stays clickable while the menu is open */
  position: relative; z-index: 101;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 10px 10px 20px;
  background: rgba(20,20,20,.55); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border); border-radius: var(--r-full);
  box-shadow: 0 8px 40px rgba(0,0,0,.45);
  transition: padding .4s var(--ease-out), background .4s var(--ease-out);
}
.nav.scrolled .nav-inner { padding-block: 7px; background: rgba(14,14,14,.78); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.wordmark img { width: 20px; height: 20px; filter: drop-shadow(var(--glow-sm)); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--text-sub); transition: color .25s var(--ease-out); position: relative; }
.nav-links a::after { content:''; position:absolute; left:0; bottom:-6px; height:1px; width:0; background: var(--accent); transition: width .3s var(--ease-out); box-shadow: var(--glow-sm); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-burger { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 36px; height: 36px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--wash-1); color: var(--text-sub); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; transition: color .25s var(--ease-out), border-color .25s var(--ease-out), background .25s var(--ease-out); }
.theme-toggle:hover { color: var(--text); border-color: rgba(255,255,255,.22); background: var(--wash-2); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .ic-moon { display: none; }
[data-theme="light"] .theme-toggle .ic-sun { display: none; }
[data-theme="light"] .theme-toggle .ic-moon { display: block; }
[data-theme="light"] .theme-toggle:hover { border-color: rgba(27, 24, 19, .28); }

/* ============================ HERO ============================ */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; padding-top: 92px; padding-bottom: 40px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 50% -6%, rgba(43,108,255,.26), transparent 62%),
    radial-gradient(40% 40% at 82% 30%, rgba(43,108,255,.10), transparent 70%);
}
.hero-ink {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('../assets/ink-bloom.jpg') center/cover no-repeat;
  opacity: .14; mix-blend-mode: screen; mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 2; text-align: center; }
.hero .eyebrow { margin-bottom: 14px; }
.hero-title { max-width: 17ch; margin-inline: auto; font-size: clamp(38px, 6.0vw, 66px); line-height: 1.0; }
.hero-title .ln { display: block; }
.hero-title .w { display: inline-block; }       /* per-word stagger target */
.hero-lead { max-width: 58ch; margin: 14px auto 0; color: var(--text-sub); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.5; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* demo island — double-bezel (outer shell + inner core) */
.demo-wrap { margin: 28px auto 0; max-width: 640px; position: relative; z-index: 2; }
.demo-shell {
  padding: 8px; border-radius: var(--r-card);
  background: var(--wash-1); border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.demo-core {
  position: relative; border-radius: var(--r-card-in);
  background: linear-gradient(180deg, #141414, #0f0f0f);
  border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  padding: 14px 18px 26px;
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 9px; height: 9px; border-radius: var(--r-full); background: var(--bg-3); display: block; }
.demo-screen { margin-top: 14px; text-align: left; min-height: 42px; font-family: var(--mono); font-size: 13.5px; line-height: 1.5; }
.demo-line { color: var(--text); white-space: pre-wrap; }
.demo-cursor { display: inline-block; width: 7px; height: 15px; margin-left: 1px; background: var(--accent); vertical-align: -2px; box-shadow: var(--glow-sm); animation: blink 1s steps(1) infinite; }

/* the real Inkvox pill (200x46), faithful to the app overlay (src/pill/Pill.tsx) */
.rpill {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  height: 46px; min-width: 200px; padding: 0 16px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(180deg, rgba(26,26,26,.92), rgba(13,13,13,.94));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 16px 34px rgba(0,0,0,.55);
  border-radius: 23px; cursor: pointer;
  animation: pill-in 200ms var(--ease-out) both;
}
.rpill-meta { display: inline-flex; align-items: center; gap: 7px; }
.rpill-dot { width: 6px; height: 6px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 6px rgba(43,108,255,.7); animation: breathe 1.6s ease-in-out infinite; }
.rpill-time { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--text-sub); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.rpill-bars { display: inline-flex; align-items: center; gap: 5px; height: 30px; }
.rpill-bars i { width: 3px; height: 3px; border-radius: 2px; display: block; background: linear-gradient(180deg, #5A8AFF, #2B6CFF); box-shadow: 0 0 6px rgba(43,108,255,.5); }
.rpill-badge { display: none; align-items: baseline; gap: 1px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-md); box-shadow: 0 0 8px rgba(43,108,255,.4); }
.rpill-badge span { animation: dot-cycle 1.2s ease-in-out infinite; }
.rpill-badge span:nth-child(2) { animation-delay: .18s; }
.rpill-badge span:nth-child(3) { animation-delay: .36s; }
.rpill[data-state="transcribing"] .rpill-meta { display: none; }
.rpill[data-state="transcribing"] .rpill-bars i { background: rgba(255,255,255,.30); box-shadow: none; }
.rpill[data-state="transcribing"] .rpill-badge { display: inline-flex; }
.demo-note { text-align: center; margin-top: 26px; font-family: var(--mono); font-size: 11px; color: var(--text-dis); letter-spacing: .04em; }

@keyframes pill-in { from { opacity: 0; transform: translateX(-50%) scale(.92); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes dot-cycle { 0%, 20% { opacity: .25; } 40% { opacity: 1; } 100% { opacity: .25; } }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* ============================ HOW IT WORKS (sticky pin + stack) ============================ */
.how-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.how-sticky { position: sticky; top: 22vh; }
.how-sticky .eyebrow { margin-bottom: 22px; }
.how-sticky p { color: var(--text-sub); margin-top: 18px; max-width: 36ch; }
.how-progress { margin-top: 32px; height: 2px; background: var(--border); border-radius: var(--r-full); overflow: hidden; }
.how-progress span { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: var(--glow-sm); }

.steps { display: flex; flex-direction: column; gap: 26px; }
.step {
  padding: 8px; border-radius: var(--r-card); background: var(--wash-1); border: 1px solid var(--border);
}
.step-core {
  border-radius: var(--r-card-in); background: linear-gradient(180deg, var(--bg-2), #131313);
  border: 1px solid var(--border); padding: 30px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.step-verb { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.step h3 { margin: 14px 0 10px; font-size: 26px; }
.step p { color: var(--text-sub); }
.step-num { float: right; font-family: var(--mono); font-size: 13px; color: var(--text-dis); }

/* ============================ PRIVACY (scrub word reveal) ============================ */
.privacy { text-align: center; }
.privacy-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(50% 60% at 50% 50%, rgba(43,108,255,.16), transparent 65%); }
.privacy .container { position: relative; z-index: 2; }
.privacy .eyebrow { margin-bottom: 30px; }
.scrub-line {
  font-size: clamp(30px, 5.2vw, 64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12;
  max-width: 20ch; margin-inline: auto; text-wrap: balance;
}
.scrub-line .w { display: inline-block; --lit: 0; color: color-mix(in srgb, var(--scrub-from), var(--scrub-to) calc(var(--lit) * 100%)); transition: none; }

/* ---- reveal util (entry) — gated behind .js so no-JS always shows content ---- */
html.js .reveal { opacity: 0; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 880px) {
  .how-grid { grid-template-columns: 1fr; gap: 36px; }
  .how-sticky { position: static; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { padding-left: 16px; }
  .hero { padding-top: 120px; }
  .demo-core { flex-direction: column; align-items: stretch; }
  .demo-pill { width: 100%; height: 52px; }
}

/* ============================================================
   FULL BUILD — additional sections
   ============================================================ */

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-md); }
.skip-link:focus { left: 12px; top: 12px; }
.eyebrow .dot.blue { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.section > .container > .eyebrow { margin-bottom: 16px; }
.section > .container > h2 { margin-bottom: 8px; }
.footnote { margin-top: 34px; font-family: var(--mono); font-size: 11px; color: var(--text-dis); max-width: 64ch; line-height: 1.6; }
sup { font-size: .6em; }

/* ---- nav mobile ---- */
.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--wash-1); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger span { width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.nav-overlay { position: fixed; inset: 0; z-index: 99; background: rgba(13,13,13,.94); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.nav-overlay[hidden] { display: none; }
.nav-overlay a { font-size: 22px; color: var(--text-sub); }
.nav-overlay a:hover { color: var(--text); }

/* ---- apps marquee ---- */
.apps-head { text-align: center; max-width: 780px; margin-inline: auto; }
.apps-head .eyebrow { margin-bottom: 16px; }
.marquee { display: flex; flex-direction: column; gap: 16px; margin-top: 54px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 46s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.app-chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--wash-1); white-space: nowrap; font-size: 15px; color: var(--text-sub); transition: color .3s var(--ease-out), border-color .3s var(--ease-out); }
.app-chip img { width: 20px; height: 20px; }
.app-chip:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.app-chip.more { font-family: var(--mono); font-size: 13px; color: var(--text-dis); }

/* ---- proof / speed (centered focal + bento stats) ---- */
.proof { overflow: hidden; text-align: center; }
.proof-wash { position: absolute; inset: 0; background: url('../assets/ink-bloom.jpg') center/cover no-repeat; opacity: .10; mix-blend-mode: screen; mask-image: radial-gradient(72% 80% at 50% 32%, #000, transparent 72%); pointer-events: none; }
.proof .container { position: relative; z-index: 2; }
.proof .eyebrow { margin-bottom: 30px; }
.proof-top { display: flex; flex-direction: column; align-items: center; }
.proof-num { font-size: clamp(92px, 17vw, 208px); font-weight: 600; letter-spacing: -.05em; line-height: .82; font-variant-numeric: tabular-nums; text-shadow: 0 0 70px rgba(43,108,255,.28); }
.proof-num em { font-style: normal; font-size: .34em; color: var(--accent); margin-left: 2px; }
.proof-big-label { color: var(--text-sub); margin-top: 16px; font-size: clamp(16px, 2vw, 20px); }
.race { margin: 44px auto 0; display: flex; flex-direction: column; gap: 14px; max-width: 540px; }
.race-row { display: grid; grid-template-columns: 104px 1fr auto; align-items: center; gap: 16px; font-family: var(--mono); font-size: 12px; }
.race-key { color: var(--text-sub); text-align: left; }
.race-bar { height: 10px; background: var(--wash-2); border-radius: var(--r-full); overflow: hidden; }
.race-bar i { display: block; height: 100%; width: 0; background: var(--bg-3); border-radius: var(--r-full); transition: width 1.1s var(--ease-out); }
.race-bar i.ink { background: var(--accent); box-shadow: var(--glow-sm); }
.race-val { color: var(--text); }
.proof-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 60px; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; text-align: left; }
.proof-stats .pstat { padding: 30px 26px; background: var(--wash-1); border-right: 1px solid var(--border); }
.proof-stats .pstat:last-child { border-right: 0; }
.pstat-num { font-size: 38px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.keycap { font-family: var(--mono); font-size: 14px; font-weight: 500; padding: 6px 11px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: var(--r-md); background: var(--wash-2); color: var(--text); }
.pstat-text { color: var(--text-sub); margin-top: 8px; font-size: 14px; line-height: 1.5; }
.pstat-zero { font-family: var(--mono); font-size: 11px; color: var(--success); margin-top: 8px; }

/* ---- languages ---- */
.langs-head { text-align: center; max-width: 680px; margin-inline: auto; }
.langs-head .eyebrow { margin-bottom: 16px; }
.langs-lead { color: var(--text-sub); margin-top: 16px; }
.langs-stage { position: relative; height: 400px; margin-top: 40px; }
.lang-chip { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--r-full); background: rgba(20,20,20,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 14px; color: var(--text-sub); white-space: nowrap; animation: floaty var(--bd) ease-in-out var(--bdel) infinite; }
.flag { width: 18px; height: 13px; background-size: cover; background-position: center; border-radius: 2px; display: inline-block; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.lang-live { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 11px; padding: 15px 24px; border: 1px solid var(--accent); border-radius: var(--r-full); background: rgba(13,13,13,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--glow-lg); font-size: 19px; color: var(--text); }
.lang-live .flag { width: 26px; height: 18px; }
.lang-caret { width: 2px; height: 19px; background: var(--accent); box-shadow: var(--glow-sm); animation: blink 1s steps(1) infinite; }
@keyframes floaty { 0%,100% { transform: translate(-50%,-50%) translateY(0); } 50% { transform: translate(-50%,-50%) translateY(-13px); } }

/* ---- privacy (grid + terminal) ---- */
.privacy { text-align: left; overflow: hidden; }
.privacy-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.privacy .eyebrow { margin-bottom: 18px; }
.privacy-copy .scrub-line { font-size: clamp(30px, 4.2vw, 50px); max-width: 16ch; margin: 0 0 22px; line-height: 1.05; }
.privacy-copy p { color: var(--text-sub); margin-top: 14px; max-width: 52ch; line-height: 1.6; }
.terminal { border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: linear-gradient(180deg, #121212, #0d0d0d); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.terminal-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--wash-1); }
.terminal-title { font-family: var(--mono); font-size: 12px; color: var(--text-dis); }
.terminal-body { margin: 0; padding: 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.95; white-space: pre; overflow-x: auto; }
.t-line { display: block; }
.t-dim { color: var(--text-dis); }
.t-ok { color: var(--success); }
.t-zero { color: var(--accent); }

/* ---- features flow ---- */
.feat-lead { color: var(--text-sub); margin-top: 14px; max-width: 50ch; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; margin-top: 48px; }
.flow-node { padding: 28px 24px; border-radius: var(--r-card); background: linear-gradient(180deg, var(--bg-2), #131313); border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: transform .4s var(--ease-out), border-color .3s var(--ease-out); }
.flow-node:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
.flow-ico { height: 50px; display: flex; align-items: center; margin-bottom: 18px; color: var(--accent); }
.flow-ico svg { width: 40px; height: 40px; }
.flow-node h3 { font-size: 19px; margin-bottom: 8px; }
.flow-node p { color: var(--text-sub); font-size: 14px; line-height: 1.55; }
.flow-zero { font-family: var(--mono); font-size: 12px; color: var(--text-sub); margin-top: 12px; }
.flow-zero b { color: var(--accent); font-weight: 500; }
.flow-link { display: flex; align-items: center; justify-content: center; }
.flow-link span { width: 30px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: var(--glow-sm); }
.voice-bars, .flow-pill { display: inline-flex; align-items: center; gap: 4px; height: 34px; }
.flow-pill { gap: 5px; padding: 0 14px; border-radius: var(--r-full); background: linear-gradient(180deg, rgba(26,26,26,.92), rgba(13,13,13,.94)); border: 1px solid var(--border); }
.voice-bars i, .flow-pill i { width: 3px; height: 20px; border-radius: 2px; display: block; transform-origin: center; background: linear-gradient(180deg, #5A8AFF, #2B6CFF); box-shadow: 0 0 6px rgba(43,108,255,.5); animation: vbar 1.1s ease-in-out infinite; }
.voice-bars i:nth-child(2), .flow-pill i:nth-child(2) { animation-delay: .15s; }
.voice-bars i:nth-child(3), .flow-pill i:nth-child(3) { animation-delay: .3s; }
.voice-bars i:nth-child(4), .flow-pill i:nth-child(4) { animation-delay: .45s; }
.voice-bars i:nth-child(5), .flow-pill i:nth-child(5) { animation-delay: .6s; }
@keyframes vbar { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
/* mobile: the stacked feature cards read better as compact rows — icon in a
   small bordered badge on the left, copy on the right (desktop keeps the
   tall 3-column cards with large icons) */
@media (max-width: 700px) {
  .flow { margin-top: 36px; gap: 12px; }
  .flow-node { display: grid; grid-template-columns: auto 1fr; column-gap: 15px; row-gap: 3px; padding: 18px; align-items: start; }
  .flow-ico {
    grid-row: 1 / span 4; min-width: 46px; height: 46px; padding: 0 11px; margin-bottom: 0;
    border: 1px solid var(--border); border-radius: 12px; background: var(--wash-1);
    display: flex; align-items: center; justify-content: center;
  }
  .flow-ico svg { width: 22px; height: 22px; }
  .flow-ico .voice-bars { height: 18px; gap: 3px; }
  .flow-ico .voice-bars i, .flow-ico .flow-pill i { width: 2.5px; height: 12px; }
  .flow-ico .flow-pill { height: 28px; padding: 0 9px; gap: 3px; }
  .flow-node h3 { font-size: 16px; margin-bottom: 3px; }
  .flow-node p { font-size: 13.5px; }
  .flow-zero { margin-top: 6px; }
}

.works-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 54px; padding: 22px 26px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--wash-1); }
.works-label { font-family: var(--mono); font-size: 11px; color: var(--text-dis); text-transform: uppercase; letter-spacing: .1em; }
.works-logos { display: inline-flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.works-logos img { width: 22px; height: 22px; transition: transform .3s var(--ease-out); }
.works-logos img:hover { transform: scale(1.15); }

/* ---- pro ---- */
.pro-head { max-width: 760px; }
.pro-lead { color: var(--text-sub); margin-top: 14px; }
.pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; align-items: stretch; }
.pro-card, .pro-meter { padding: 28px; border-radius: var(--r-card); border: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-2), #131313); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.rw-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dis); }
.rw-before { color: var(--text-dis); font-style: italic; margin-top: 10px; line-height: 1.6; }
.rw-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.rw-divider::before, .rw-divider::after { content: ''; height: 1px; flex: 1; background: var(--border); }
.rw-divider span { font-family: var(--mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.rw-after { color: var(--text); font-weight: 500; line-height: 1.5; font-size: 17px; }
.pro-tokens { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-family: var(--mono); font-size: 12px; }
.tok { padding: 5px 10px; border-radius: var(--r-md); border: 1px solid var(--border); }
.tok-raw { color: var(--text-dis); }
.tok-pro { color: var(--accent); border-color: rgba(43,108,255,.4); }
.tok-arrow { color: var(--text-dis); }
.pro-meter h3 { font-size: 24px; margin-bottom: 12px; }
.pro-meter > p { color: var(--text-sub); font-size: 14px; line-height: 1.55; }
.meter { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.meter-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; font-family: var(--mono); font-size: 12px; }
.meter-key { color: var(--text-sub); }
.meter-bar { height: 10px; background: var(--wash-2); border-radius: var(--r-full); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; background: var(--bg-3); border-radius: var(--r-full); transition: width 1.1s var(--ease-out); }
.meter-bar i.ink { background: var(--accent); box-shadow: var(--glow-sm); }
.meter-val { color: var(--text); }
.meter-stat { display: flex; align-items: baseline; gap: 12px; margin-top: 24px; }
.meter-num { font-size: 40px; font-weight: 600; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.meter-stat-label { color: var(--text-sub); font-size: 14px; max-width: 18ch; }
.meter-note { margin-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--text-dis); }
.pro-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.ipoint { padding: 26px; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--wash-1); }
.ipoint h3 { font-size: 18px; margin-bottom: 10px; }
.ipoint p { color: var(--text-sub); font-size: 14px; line-height: 1.55; }

/* ---- comparison ---- */
.vs-lead { color: var(--text-sub); margin-top: 14px; max-width: 58ch; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; align-items: start; }
.vs-card { padding: 30px; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--wash-1); }
.vs-ink { border-color: rgba(43,108,255,.45); background: linear-gradient(180deg, rgba(43,108,255,.07), rgba(13,13,13,.4)); box-shadow: 0 0 44px rgba(43,108,255,.12), inset 0 1px 0 rgba(255,255,255,.06); }
.vs-title { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 10px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.vs-drop { width: 22px; height: 22px; filter: drop-shadow(var(--glow-sm)); }
.vs-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: start; }
.vs-row:last-child { border-bottom: 0; }
.vs-k { color: var(--text-sub); font-size: 14px; }
.vs-v { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text); }
.vs-mark { color: var(--text-dis); font-weight: 600; flex-shrink: 0; }
.vs-mark.ok { color: var(--success); }
.vs-money { font-size: 24px; font-weight: 600; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.vs-money.ink { color: var(--text); }
.vs-money.ink span { display: block; font-size: 12px; font-weight: 400; color: var(--text-sub); font-family: var(--mono); margin-top: 6px; line-height: 1.5; }

/* ---- faq ---- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-aside { position: sticky; top: 18vh; }
.faq-aside .eyebrow { margin-bottom: 16px; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--wash-1); margin-bottom: 12px; overflow: hidden; transition: border-color .3s var(--ease-out); }
.faq-list details[open] { border-color: rgba(255,255,255,.18); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 500; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-mk { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-mk::before, .faq-mk::after { content: ''; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .3s var(--ease-out); }
.faq-mk::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-mk::after { top: 0; left: 6px; width: 2px; height: 14px; }
.faq-list details[open] .faq-mk::after { transform: scaleY(0); }
.faq-list details p { padding: 0 22px 20px; color: var(--text-sub); font-size: 15px; line-height: 1.6; }

/* ---- final cta ---- */
.final { text-align: center; overflow: hidden; }
.final-glow { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 58%, rgba(43,108,255,.22), transparent 65%); pointer-events: none; }
.final-ink { position: absolute; inset: 0; background: url('../assets/ink-bloom.jpg') center/cover no-repeat; opacity: .12; mix-blend-mode: screen; mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 75%); pointer-events: none; }
.final .container { position: relative; z-index: 2; }
.final h2 { max-width: 18ch; margin-inline: auto; }
.waitlist { display: flex; gap: 12px; justify-content: center; margin: 36px auto 0; max-width: 540px; flex-wrap: wrap; }
.waitlist-input { flex: 1; min-width: 240px; padding: 15px 18px; border-radius: var(--r-full); border: 1px solid var(--border); background: rgba(20,20,20,.7); color: var(--text); font: inherit; font-size: 15px; transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.waitlist-input:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow-sm); }
.waitlist-input::placeholder { color: var(--text-dis); }
.waitlist-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.btn-lg { font-size: 16px; --pad-y: 15px; padding-inline: 24px; padding-right: 7px; }
.final-note { font-family: var(--mono); font-size: 12px; color: var(--text-dis); margin-top: 18px; letter-spacing: .04em; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-copy { font-family: var(--mono); font-size: 12px; color: var(--text-dis); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-sub); transition: color .25s var(--ease-out); }
.footer-links a:hover { color: var(--text); }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 1002; padding: 14px 20px; border-radius: var(--r-full); background: rgba(20,20,20,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--accent); box-shadow: var(--glow-lg); font-size: 14px; opacity: 0; transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================ RESPONSIVE (full build) ============================ */
@media (max-width: 960px) {
  .proof-stats { grid-template-columns: 1fr; }
  .proof-stats .pstat { border-right: 0; border-bottom: 1px solid var(--border); }
  .proof-stats .pstat:last-child { border-bottom: 0; }
  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .pro-grid, .vs { grid-template-columns: 1fr; }
  .pro-points { grid-template-columns: 1fr; gap: 16px; }
  .flow { grid-template-columns: 1fr; }
  .flow-link { display: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-aside { position: static; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
/* below ~640px the absolutely-placed chips overlap each other and the live
   pill wraps into a blob — fall back to a static, wrapping chip cloud */
@media (max-width: 640px) {
  .langs-stage { height: auto; margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .lang-chip { position: static; transform: none; animation: none; }
  .lang-live { position: static; order: -1; transform: none; width: 100%; justify-content: center; margin-bottom: 14px; font-size: 16px; padding: 13px 18px; }
  .lang-live .flag { width: 22px; height: 15px; }

  /* pro cards: at body size the raw-dictation specimen reads as a wall of
     large italic on a phone — scale the card typography down so the
     before/after comparison stays scannable */
  .pro-card, .pro-meter { padding: 20px; }
  .rw-before { font-size: 13.5px; line-height: 1.55; }
  .rw-after { font-size: 15.5px; }
  .rw-divider { margin: 14px 0; }
  .pro-meter h3 { font-size: 17px; }
  .pro-meter > p { font-size: 13.5px; line-height: 1.55; }
  .meter-num { font-size: 32px; }
  .pro-tokens { margin-top: 16px; }
}
@media (max-width: 560px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .waitlist-input { min-width: 100%; }
  .btn-lg { width: 100%; justify-content: center; }
}

/* reduced motion (full build) */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; }
  .scrub-line .w { color: var(--text) !important; }
  .marquee-track, .lang-chip, .voice-bars i, .flow-pill i, .rpill-dot, .lang-caret, .demo-cursor,
  .fm-link i, .fm-caret, .vb-bars i { animation: none !important; }
  .marquee-row { overflow-x: auto; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HOW — 3D floating app windows (ported v1 shots + float layout)
   ============================================================ */
.how-head { max-width: 640px; }
.how-head .eyebrow { margin-bottom: 16px; }
.how-lead { color: var(--text-sub); margin-top: 14px; max-width: 54ch; }

.appstage { position: relative; height: 500px; margin: 56px 0 0; perspective: 2200px; transform-style: preserve-3d; }
.appwin-wrap { position: absolute; transition: transform .55s var(--ease-out); transform-style: preserve-3d; }
.appwin-wrap.w1 { left: 0;   top: 52px; width: 32%; z-index: 2; animation: float1 11s ease-in-out infinite; }
.appwin-wrap.w2 { left: 34%; top: 0;    width: 32%; z-index: 3; animation: float2 13s ease-in-out infinite; }
.appwin-wrap.w3 { right: 0;  top: 92px; width: 32%; z-index: 1; animation: float3 12s ease-in-out infinite; }

.shot { position: relative; width: 100%; height: 308px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--elevation), 0 40px 80px -34px rgba(0,0,0,.8); transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), filter .55s var(--ease-out); transform-style: preserve-3d; will-change: transform; }
.w1 .shot { transform: rotateY(9deg) rotateX(3deg) rotateZ(-1deg); }
.w2 .shot { transform: rotateY(0deg) rotateX(3deg) rotateZ(0deg); box-shadow: var(--elevation), 0 50px 90px -34px rgba(43,108,255,.28); }
.w3 .shot { transform: rotateY(-9deg) rotateX(3deg) rotateZ(1deg); }
.appwin-wrap:hover { z-index: 6; }
.appwin-wrap:hover .shot { transform: rotateY(0) rotateX(0) rotateZ(0) translateZ(30px) scale(1.05); box-shadow: var(--elevation), 0 60px 120px -30px rgba(43,108,255,.4); }

@keyframes float1 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(-0.6deg); } }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-26px) rotate(0.5deg); } }
@keyframes float3 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(0.8deg); } }

/* window chrome */
.shot-titlebar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.shot-title { font-family: var(--mono); font-size: 12px; color: var(--text-dis); }
.shot-body { position: relative; height: calc(100% - 38px); padding: 16px 16px 56px; overflow: hidden; }
.demo-controls { display: flex; gap: 6px; }
.demo-controls i { width: 9px; height: 9px; border-radius: var(--r-full); background: var(--bg-3); display: block; }
.shot-caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: var(--accent); box-shadow: var(--glow-sm); animation: blink 1.05s steps(1) infinite; }

/* Claude Code */
.shot--claude .shot-body { background: #0A0A0A; font-family: var(--mono); font-size: 12.5px; }
.cc-welcome { display: inline-block; border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-lg); padding: 7px 12px; margin-bottom: 10px; color: var(--text); }
.cc-star { color: #D97757; margin-right: 6px; }
.cc-line { line-height: 1.9; color: var(--text-dis); }
.cc-line.ok { color: var(--text-sub); }
.cc-ok { color: var(--success); }
.cc-input { margin-top: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-lg); padding: 11px 13px; line-height: 1.6; color: var(--text); }
.cc-prompt { color: var(--text-sub); margin-right: 8px; }

/* Google Docs (light) */
.shot--docs .shot-titlebar { background: #fff; border-bottom: 1px solid #E3E6EA; }
.shot--docs .shot-title { color: #5F6368; }
.shot--docs .demo-controls i { background: #EDEFF2; }
.shot--docs .shot-body { background: #F9FBFD; padding: 12px 16px 56px; }
.docs-bar { display: flex; gap: 10px; align-items: center; }
.docs-meta { flex: 1; min-width: 0; }
.docs-ico { width: 18px; height: 24px; border-radius: 3px; background: #4285F4; flex: none; position: relative; }
.docs-ico::after { content: ''; position: absolute; inset: 7px 4px 5px; background: repeating-linear-gradient(#fff 0 2px, transparent 2px 5px); }
.docs-name { font-size: 13px; font-weight: 500; color: #1F1F1F; }
.docs-star { color: #5F6368; font-size: 11px; }
.docs-menu { font-size: 11px; color: #5F6368; letter-spacing: .02em; white-space: nowrap; overflow: hidden; }
.docs-share { flex: none; background: #C2E7FF; color: #001D35; font-size: 12px; font-weight: 500; border-radius: var(--r-full); padding: 6px 14px; }
.docs-avatar { flex: none; width: 26px; height: 26px; border-radius: var(--r-full); background: #7B1FA2; color: #fff; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
.docs-toolbar { display: flex; align-items: center; gap: 10px; background: #EDF2FA; border-radius: var(--r-full); padding: 6px 14px; margin-top: 10px; font-size: 11px; color: #444746; white-space: nowrap; overflow: hidden; }
.docs-toolbar i { width: 1px; height: 12px; background: #C7CBD1; }
.docs-toolbar .d-b { font-weight: 700; } .docs-toolbar .d-i { font-style: italic; } .docs-toolbar .d-u { text-decoration: underline; }
.docs-page { margin: 12px auto 0; max-width: 440px; min-height: 110px; background: #fff; border: 1px solid #E3E6EA; border-radius: var(--r-sm); padding: 22px 26px; box-shadow: 0 1px 3px rgba(60,64,67,.08); }
.docs-page p { font-size: 14px; line-height: 1.7; color: #1F1F1F; }
.docs-caret { background: #1A73E8; box-shadow: none; }

/* WhatsApp */
.shot--wa .shot-body { background: #111B21; padding: 0 0 56px; display: flex; flex-direction: column; }
.wa-head { display: flex; gap: 10px; align-items: center; padding: 11px 14px; background: #202C33; }
.wa-avatar { width: 30px; height: 30px; border-radius: var(--r-full); background: linear-gradient(135deg, #2B6CFF, #22D3EE); flex: none; }
.wa-name { font-size: 13px; font-weight: 500; }
.wa-status { font-size: 11px; color: var(--text-dis); }
.wa-chat { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 8px; background-color: #0B141A; background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px); background-size: 16px 16px; }
.wa-bubble { max-width: 75%; background: #202C33; border-radius: var(--r-xl); padding: 7px 10px 7px 12px; font-size: 13px; color: rgba(255,255,255,.92); box-shadow: 0 1px 1px rgba(0,0,0,.25); }
.wa-bubble.in { align-self: flex-start; border-top-left-radius: var(--r-sm); }
.wa-bubble.out { align-self: flex-end; background: #005C4B; border-top-right-radius: var(--r-sm); }
.wa-time { font-size: 10px; color: rgba(255,255,255,.45); margin-left: 8px; white-space: nowrap; }
.wa-check { color: #53BDEB; letter-spacing: -2px; }
.wa-inputbar { display: flex; align-items: center; gap: 10px; background: #202C33; padding: 8px 12px; }
.wa-glyph { color: rgba(255,255,255,.55); font-size: 20px; line-height: 1; }
.wa-mic { width: 20px; height: 20px; color: rgba(255,255,255,.55); flex: none; }
.wa-input { flex: 1; background: #2A3942; border-radius: var(--r-full); padding: 9px 16px; font-size: 13px; min-height: 36px; color: #fff; }

/* in-shot pill */
.shot-pill { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px; background: rgba(13,13,13,.9); border: 1px solid var(--border); box-shadow: var(--elevation); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.shot-pill[data-state="recording"], .shot-pill[data-state="transcribing"] { opacity: 1; }
.shot-pill .pill-bars { display: inline-flex; align-items: center; height: 20px; gap: 4px; }
.shot-pill .pill-bars i { width: 3px; border-radius: var(--r-full); background: var(--accent); box-shadow: var(--glow-sm); transform-origin: center; animation: wave 1.1s ease-in-out infinite; animation-play-state: paused; }
.shot-pill .pill-bars i:nth-child(1) { height: 6px;  animation-delay: 0s; }
.shot-pill .pill-bars i:nth-child(2) { height: 14px; animation-delay: .12s; }
.shot-pill .pill-bars i:nth-child(3) { height: 18px; animation-delay: .24s; }
.shot-pill .pill-bars i:nth-child(4) { height: 11px; animation-delay: .36s; }
.shot-pill .pill-bars i:nth-child(5) { height: 6px;  animation-delay: .48s; }
.shot-pill[data-state="recording"] .pill-bars i { animation-play-state: running; }
.shot-pill[data-state="transcribing"] .pill-bars i { animation: none; transform: scaleY(.55); background: rgba(255,255,255,.35); box-shadow: none; }
.shot-pill .pill-badge { display: none; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 3px 8px; border-radius: var(--r-sm); }
.shot-pill[data-state="transcribing"] .pill-badge { display: inline-block; }
@keyframes wave { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

/* steps strip */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.hstep { padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--wash-1); }
.hstep .step-verb { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.hstep p { color: var(--text-sub); font-size: 14px; margin-top: 10px; }
.stage-note { text-align: center; margin-top: 22px; font-family: var(--mono); font-size: 11px; color: var(--text-dis); }

/* below ~1080px the three floating windows drop under ~300px each and their
   inner content clips — swipeable snap carousel instead, next card peeking
   at the edge (also covers 150–200% desktop zoom) */
.stage-dots { display: none; }
@media (max-width: 1080px) {
  .appstage {
    height: auto; perspective: none; margin-top: 40px;
    display: flex; gap: 14px; align-items: stretch;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px;
    padding: 8px 24px; margin-inline: -24px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .appstage::-webkit-scrollbar { display: none; }
  .appwin-wrap { position: static !important; flex: 0 0 min(86%, 440px); scroll-snap-align: center; animation: none !important; }
  /* reading order in the strip: Claude → Docs → WhatsApp */
  .appwin-wrap.w1 { order: 1; } .appwin-wrap.w2 { order: 2; } .appwin-wrap.w3 { order: 3; }
  .appwin-wrap .shot { transform: none !important; height: 100%; min-height: 320px; }
  .how-steps { grid-template-columns: 1fr; }

  .stage-dots { display: flex; justify-content: center; gap: 9px; margin-top: 16px; }
  .stage-dots button {
    width: 7px; height: 7px; padding: 0; border-radius: 50%; cursor: pointer;
    background: var(--wash-2); border: 1px solid var(--border);
    transition: background .25s var(--ease-out), transform .25s var(--ease-out), border-color .25s var(--ease-out);
  }
  .stage-dots button.active { background: var(--accent); border-color: transparent; box-shadow: var(--glow-sm); transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .appwin-wrap { animation: none !important; }
  .shot-pill .pill-bars i { animation: none !important; }
}

/* ============================================================
   LIGHT THEME — white + beige variant (matches the DA)
   <html data-theme="light">. Authentic dark chrome (terminal,
   Claude/WhatsApp windows, the overlay pill) stays dark.
   ============================================================ */
[data-theme="light"] {
  color-scheme: light;
  --bg: #FBF8F2;
  --bg-2: #F3ECDF;
  --bg-3: #E4D9C6;
  --text: #1B1813;
  --text-sub: rgba(27, 24, 19, .66);
  --text-dis: rgba(27, 24, 19, .42);
  --border: rgba(27, 24, 19, .12);
  --wash-1: rgba(27, 24, 19, .025);
  --wash-2: rgba(27, 24, 19, .05);
  --accent: #2B6CFF;
  --accent-hover: #1F54D6;
  --success: #149A63;
  --glow-sm: 0 0 6px rgba(43, 108, 255, .28);
  --glow-lg: 0 0 26px rgba(43, 108, 255, .20);
  --elevation: 0 6px 30px rgba(80, 62, 38, .13);
  --scrub-from: rgba(27, 24, 19, .16);
  --scrub-to: #1B1813;
}
[data-theme="light"] body::after { opacity: .05; mix-blend-mode: multiply; }

/* nav / overlay / toast → light glass */
[data-theme="light"] .nav-inner { background: rgba(255,255,255,.66); box-shadow: 0 8px 40px rgba(80,62,38,.12); }
[data-theme="light"] .nav.scrolled .nav-inner { background: rgba(251,248,242,.88); }
[data-theme="light"] .nav-overlay { background: rgba(251,248,242,.96); }
[data-theme="light"] .toast { background: rgba(255,255,255,.96); color: var(--text); }
[data-theme="light"] .nav-burger span { background: var(--text); }

/* ambience */
[data-theme="light"] .hero-glow { background: radial-gradient(60% 50% at 50% -6%, rgba(43,108,255,.13), transparent 62%), radial-gradient(46% 46% at 82% 26%, rgba(214,196,166,.5), transparent 72%); }
[data-theme="light"] .hero-ink,
[data-theme="light"] .proof-wash,
[data-theme="light"] .final-ink { display: none; }
[data-theme="light"] .privacy-glow, [data-theme="light"] .final-glow { background: radial-gradient(60% 70% at 50% 55%, rgba(43,108,255,.12), transparent 65%); }

/* white cards on the beige page */
[data-theme="light"] .demo-core, [data-theme="light"] .step-core, [data-theme="light"] .flow-node, [data-theme="light"] .pro-card, [data-theme="light"] .pro-meter, [data-theme="light"] .histpanel, [data-theme="light"] .privacy-viz { background: linear-gradient(180deg, #fff, #FAF5EB); box-shadow: var(--elevation), inset 0 1px 0 rgba(255,255,255,.7); }
[data-theme="light"] .viz-barrier-lbl { background: #fff; }
[data-theme="light"] .pstat, [data-theme="light"] .ipoint, [data-theme="light"] .vs-card, [data-theme="light"] .faq-list details, [data-theme="light"] .works-strip, [data-theme="light"] .app-chip, [data-theme="light"] .lang-chip, [data-theme="light"] .eyebrow { background: #fff; }
[data-theme="light"] .lang-live { background: #fff; color: var(--text); }
[data-theme="light"] .waitlist-input { background: #fff; }
[data-theme="light"] .demo-shell { background: #F3ECDF; box-shadow: var(--elevation); }
[data-theme="light"] .demo-line { color: var(--text); }
[data-theme="light"] .vs-ink { background: linear-gradient(180deg, rgba(43,108,255,.06), #fff); box-shadow: 0 0 44px rgba(43,108,255,.10), var(--elevation); }

/* keep the overlay pill dark (authentic) — fix its themed text */
[data-theme="light"] .rpill-time { color: rgba(255,255,255,.72); }

/* keep terminal dark — fix its themed bits */
[data-theme="light"] .terminal-title { color: rgba(255,255,255,.42); }
[data-theme="light"] .terminal-bar { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
[data-theme="light"] .terminal .demo-dots i { background: #444; }
[data-theme="light"] .terminal-body { color: rgba(255,255,255,.80); }
[data-theme="light"] .t-dim { color: rgba(255,255,255,.40); }
[data-theme="light"] .t-ok { color: #3DD68C; }

/* keep Claude Code + WhatsApp windows dark (real apps) */
[data-theme="light"] .shot--claude, [data-theme="light"] .shot--wa { background: #1A1A1A; }
[data-theme="light"] .shot--docs { background: #fff; }
[data-theme="light"] .shot--claude .shot-titlebar, [data-theme="light"] .shot--wa .shot-titlebar { border-color: rgba(255,255,255,.1); }
[data-theme="light"] .shot--claude .shot-title, [data-theme="light"] .shot--wa .shot-title { color: rgba(255,255,255,.42); }
[data-theme="light"] .shot--claude .demo-controls i, [data-theme="light"] .shot--wa .demo-controls i { background: #3a3a3a; }
/* text inside the dark windows must stay light in light theme (tokens would flip it dark) */
[data-theme="light"] .shot--claude, [data-theme="light"] .shot--wa { color: rgba(255,255,255,.88); }
[data-theme="light"] .shot--claude .cc-welcome, [data-theme="light"] .shot--claude .cc-input { color: rgba(255,255,255,.92); }
[data-theme="light"] .shot--claude .cc-line { color: rgba(255,255,255,.42); }
[data-theme="light"] .shot--claude .cc-line.ok { color: rgba(255,255,255,.70); }
[data-theme="light"] .shot--claude .cc-ok { color: #3DD68C; }
[data-theme="light"] .shot--wa .wa-status { color: rgba(255,255,255,.45); }

/* single-colour white logos → darken so they read on the light cards.
   (notion is excluded: it already has a black N/outline that shows on white;
   darkening it would fill the whole mark black and hide the N.) */
[data-theme="light"] .app-chip img[src$="/github.svg"],
[data-theme="light"] .app-chip img[src$="/x.svg"],
[data-theme="light"] .app-chip img[src$="cursor.svg"],
[data-theme="light"] .works-logos img[src$="/github.svg"],
[data-theme="light"] .works-logos img[src$="/x.svg"],
[data-theme="light"] .works-logos img[src$="cursor.svg"] { filter: brightness(0); opacity: .82; }

/* ============================================================
   IMPACT — on-device history panel + floating stat cards
   ============================================================ */
.impact { overflow: hidden; }
.impact-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(48% 50% at 50% 42%, rgba(43,108,255,.14), transparent 70%); }
.impact .container { position: relative; z-index: 2; }
.impact-head { text-align: center; max-width: 640px; margin: 0 auto; }
.impact-head .eyebrow { margin-bottom: 16px; }
.impact-lead { color: var(--text-sub); margin-top: 14px; }

.impact-stage { position: relative; margin-top: 60px; min-height: 440px; perspective: 1700px; }

.histpanel {
  position: relative; z-index: 2; width: min(540px, 92%); margin: 0 auto;
  border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), #131313);
  box-shadow: var(--elevation), 0 50px 110px -44px rgba(0,0,0,.7);
  transform: rotateX(4deg) rotateY(-4deg); transform-style: preserve-3d;
}
.hist-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.hist-title { font-family: var(--mono); font-size: 12px; color: var(--text-dis); }
.hist-lock { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--success); border: 1px solid color-mix(in srgb, var(--success), transparent 70%); padding: 3px 9px; border-radius: var(--r-full); }
.hist-dot-ok { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); flex: none; }
.hist-list { list-style: none; padding: 8px; display: flex; flex-direction: column; }
.hist-row { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-lg); transition: background .25s var(--ease-out); }
.hist-row:hover { background: var(--wash-1); }
.hist-ico { width: 20px; height: 20px; }
.hist-snip { font-size: 13.5px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-meta { font-family: var(--mono); font-size: 11px; color: var(--text-dis); white-space: nowrap; }
.hist-foot { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 11px; color: var(--text-dis); }

.stat-float { position: absolute; z-index: 3; min-width: 168px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r-card); background: rgba(20,20,20,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--elevation); }
.sf-num { font-size: 34px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--accent); line-height: 1; }
.sf-num em { font-style: normal; font-size: .5em; color: var(--text-sub); margin-left: 1px; }
.sf-label { font-size: 12.5px; color: var(--text-sub); margin-top: 7px; line-height: 1.35; }
.sf1 { left: 0;    top: 2%;   animation: sfloat1 9s ease-in-out infinite; }
.sf2 { right: 0;   top: 28%;  animation: sfloat2 11s ease-in-out infinite; }
.sf3 { left: 5%;   bottom: 4%; animation: sfloat3 10s ease-in-out infinite; }
@keyframes sfloat1 { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-15px) rotate(-2deg); } }
@keyframes sfloat2 { 0%,100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-19px) rotate(2deg); } }
@keyframes sfloat3 { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-11px) rotate(-3deg); } }

[data-theme="light"] .stat-float { background: rgba(255,255,255,.82); }

@media (max-width: 860px) {
  .impact-stage { min-height: 0; perspective: none; }
  .histpanel { width: 100%; transform: none; }
  /* glass stat cards become a swipeable snap row (centered when they fit) */
  .stat-floats {
    display: flex; gap: 12px; margin-top: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px;
    padding: 4px 24px 12px; margin-inline: -24px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .stat-floats::-webkit-scrollbar { display: none; }
  .stat-float { position: static; animation: none; transform: none; flex: 0 0 176px; min-width: 0; scroll-snap-align: center; }
  .stat-float:first-child { margin-left: auto; }
  .stat-float:last-child { margin-right: auto; }
  .sf-num { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .stat-float { animation: none !important; }
}

/* ============================================================
   PRIVACY — animated local-vs-cloud data flow
   ============================================================ */
.privacy-viz { position: relative; border: 1px solid var(--border); border-radius: var(--r-card); background: linear-gradient(180deg, var(--bg-2), #131313); box-shadow: var(--elevation); padding: 24px 24px 22px; overflow: hidden; }

.viz-cloud { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-dis); }
.viz-cloud svg { width: 44px; height: 30px; }
.viz-cloud-lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.viz-x { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: #ff6b6b; border: 1px solid color-mix(in srgb, #ff6b6b, transparent 72%); padding: 3px 9px; border-radius: var(--r-full); }

.viz-gap { position: relative; height: 78px; margin: 2px 0; }
.viz-barrier { position: absolute; left: 8%; right: 8%; top: 52%; border-top: 1px dashed rgba(255,107,107,.5); }
.viz-barrier-lbl { position: absolute; left: 50%; top: -7px; transform: translateX(-50%); background: var(--bg-2); padding: 0 8px; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,107,107,.85); white-space: nowrap; }
.pkt { position: absolute; bottom: 2px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow-sm); opacity: 0; }
.viz-gap .pkt:nth-child(2) { animation: pktrise 2.6s ease-in infinite; }
.viz-gap .pkt:nth-child(3) { left: 40%; animation: pktrise 2.6s ease-in .9s infinite; }
.viz-gap .pkt:nth-child(4) { left: 60%; animation: pktrise 2.6s ease-in 1.8s infinite; }
@keyframes pktrise { 0% { transform: translateY(0); opacity: 0; } 14% { opacity: 1; } 44% { transform: translateY(-30px); opacity: 1; } 60% { transform: translateY(-33px) scale(.3); opacity: 0; } 100% { opacity: 0; } }

.viz-machine { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--wash-1); padding: 14px 16px 14px; }
.viz-machine-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.viz-on { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--success); }
.viz-live { font-family: var(--mono); font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.viz-pipe { display: flex; align-items: center; gap: 8px; }
.viz-node { flex: none; width: 64px; height: 52px; border: 1px solid var(--border); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; color: var(--text-sub); background: var(--bg); }
.viz-node svg { width: 22px; height: 22px; }
.viz-bars { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.viz-bars i { width: 3px; height: 18px; border-radius: 2px; background: var(--accent); box-shadow: var(--glow-sm); transform-origin: center; animation: wave 1s ease-in-out infinite; }
.viz-bars i:nth-child(2) { animation-delay: .15s; }
.viz-bars i:nth-child(3) { animation-delay: .3s; }
.viz-bars i:nth-child(4) { animation-delay: .45s; }
.viz-wire { position: relative; flex: 1; height: 2px; background: var(--wash-2); border-radius: var(--r-full); overflow: hidden; }
.viz-wire .pulse { position: absolute; top: 0; left: 0; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: wirepulse 1.6s linear infinite; }
.viz-pipe > .viz-wire:nth-child(4) .pulse { animation-delay: .8s; }
@keyframes wirepulse { from { transform: translateX(-120%); } to { transform: translateX(300%); } }
.viz-flowlbl { display: flex; justify-content: space-between; margin-top: 9px; font-family: var(--mono); font-size: 9.5px; color: var(--text-dis); }

@media (prefers-reduced-motion: reduce) {
  .pkt, .viz-wire .pulse, .viz-bars i { animation: none !important; }
  .pkt { opacity: .5; }
}

/* ---- platforms + no-account strip ---- */
.platforms { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.plat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--wash-1); font-size: 14px; color: var(--text); }
.plat svg { width: 15px; height: 15px; color: var(--text); }
.plat-sep { width: 1px; height: 18px; background: var(--border); }
.plat-note { font-family: var(--mono); font-size: 12px; color: var(--text-sub); letter-spacing: .02em; }
.os-mini { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.os-mini svg { width: 12px; height: 12px; color: var(--text-sub); }

/* ---- features heading: blue highlight sweep on scroll ---- */
.feat-title .hl { --lit: 0; background-image: linear-gradient(rgba(43,108,255,.34), rgba(43,108,255,.34)); background-repeat: no-repeat; background-position: 0 86%; background-size: calc(var(--lit) * 102%) 34%; border-radius: 2px; padding: 0 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ============================================================
   HERO flow demo — sound into the pill, words out on a wave
   ============================================================ */
.flow-demo { margin: 30px auto 0; }
.flow-stage { position: relative; height: 128px; }
.flow-demo .rpill { position: absolute; left: 50%; top: 62%; bottom: auto; transform: translate(-50%, -50%); z-index: 2; animation: pill-in-c 200ms var(--ease-out) both; }
.flow-wave { position: absolute; left: 50%; transform: translateX(-50%); width: 100vw; bottom: -6px; height: 380px; overflow: visible; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 92%, transparent); }
.flow-line { stroke: var(--accent); stroke-width: 2; opacity: .35; stroke-dasharray: 5 9; vector-effect: non-scaling-stroke; animation: dashflow 1.9s linear infinite; }
#wloop { stroke: var(--accent); fill: none; stroke-dasharray: none; animation: none; opacity: .2; stroke-width: 2.2; stroke-linecap: round; }
.gold-draw { stroke: url(#goldStroke); fill: none; stroke-width: 4.5; stroke-linecap: round; }
.flow-wave .comet { opacity: 0; }
.flow-text { fill: var(--text); font-family: var(--mono); font-size: 15.5px; font-weight: 500; letter-spacing: .01em; }
.flow-dot { fill: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); }
@keyframes dashflow { to { stroke-dashoffset: -14; } }

/* ---- hero flow, compact vertical variant (mobile + narrow windows) ----
   The 1400px-viewBox wave can't shrink below ~1000px without colliding with
   the copy, so the same story is retold vertically: mic bubble → sound dot
   travels down → pill transcribes → dot travels out → the sentence types in.
   Driven by the same JS cycle via data-fm on .flow-stage. */
.fm-link, .fm-out { display: none; }

@media (max-width: 1000px) {
  .flow-wave { display: none; }
  .flow-stage { height: auto; display: flex; flex-direction: column; align-items: center; }
  /* animation:none also kills the fill-mode translate(-50%) that would drag
     these static elements half offscreen (.flow-stage prefix outranks the
     base .voicebubble rule that sits later in the file) */
  .flow-stage .voicebubble { position: static; transform: none; animation: none; order: 1; transition: opacity .4s var(--ease-out); }
  .flow-demo .rpill { position: static; transform: none; margin: 0; animation: none; order: 3; }

  .fm-link { display: block; position: relative; order: 2; width: 8px; height: 30px; margin: 7px 0; }
  .fm-link.l-out { order: 4; }
  .fm-link::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed rgba(43, 108, 255, .38); }
  .fm-link i {
    position: absolute; left: 50%; top: -2px; width: 5px; height: 5px; margin-left: -2px;
    border-radius: 50%; background: var(--accent); box-shadow: var(--glow-sm); visibility: hidden;
  }
  [data-fm="in"] .fm-link.l-in i,
  [data-fm="out"] .fm-link.l-out i { visibility: visible; animation: fm-dot 1.1s linear infinite; }

  /* while the pill transcribes / the words come out, the mic quiets down */
  [data-fm="thru"] .voicebubble, [data-fm="out"] .voicebubble, [data-fm="done"] .voicebubble { opacity: .5; }
  [data-fm="thru"] .vb-bars i, [data-fm="out"] .vb-bars i, [data-fm="done"] .vb-bars i { animation-play-state: paused; }

  .fm-out {
    display: block; order: 5; margin-top: 2px; min-height: 2.4em; max-width: 32ch;
    font-family: var(--mono); font-size: 13px; line-height: 1.6; letter-spacing: .01em;
    color: var(--text); text-align: center; text-wrap: balance;
  }
  .fm-caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--accent); box-shadow: var(--glow-sm); animation: blink 1s steps(1) infinite; }
  [data-fm="done"] .fm-caret { animation: none; opacity: 0; }

  .demo-note { margin-top: 16px; }
}
@keyframes fm-dot { 0% { top: -2px; opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 100% { top: calc(100% - 3px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .flow-line { animation: none !important; }
}

/* hero flow choreography bits */
.inpkt { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.flow-text { transition: opacity .4s var(--ease-out); }
.flow-dot { transition: opacity .25s var(--ease-out); }


/* ---- pill: deactivated/idle state after dictation ---- */
.rpill[data-state="done"] { opacity: .62; }
.rpill[data-state="done"] .rpill-dot { animation: none; background: rgba(255,255,255,.35); box-shadow: none; }
.rpill[data-state="done"] .rpill-bars i { background: rgba(255,255,255,.20); box-shadow: none; }

/* ---- voice bubble (source-of-voice cue at the spiral origin) ---- */
.voicebubble { position: absolute; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; animation: vb-in .5s var(--ease-out) both; }
.vb-ico { display: inline-flex; color: var(--accent); }
.vb-ico svg { width: 15px; height: 15px; }
@keyframes vb-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* A — mic + live voice bars */
.vb-mic { padding: 8px 13px; border-radius: var(--r-full); background: rgba(20,20,20,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(43,108,255,.40); box-shadow: var(--glow-sm); }
[data-theme="light"] .vb-mic { background: rgba(255,255,255,.72); }
.vb-bars { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.vb-bars i { width: 2.5px; border-radius: 2px; background: var(--accent); box-shadow: var(--glow-sm); transform-origin: center; animation: vbwave 1s ease-in-out infinite; }
.vb-bars i:nth-child(1) { height: 7px; animation-delay: 0s; }
.vb-bars i:nth-child(2) { height: 13px; animation-delay: .12s; }
.vb-bars i:nth-child(3) { height: 16px; animation-delay: .24s; }
.vb-bars i:nth-child(4) { height: 9px; animation-delay: .36s; }
.vb-bars i:nth-child(5) { height: 12px; animation-delay: .48s; }
@keyframes vbwave { 0%, 100% { transform: scaleY(.42); } 50% { transform: scaleY(1); } }

/* B — dictated phrase bubble */
.vb-say { padding: 9px 14px; border-radius: 14px 14px 14px 4px; background: rgba(20,20,20,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(43,108,255,.35); box-shadow: var(--glow-sm); }
[data-theme="light"] .vb-say { background: rgba(255,255,255,.80); }
.vb-say-text { font-family: var(--sans); font-size: 13px; color: var(--text); }
.vb-cursor { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); box-shadow: var(--glow-sm); animation: blink 1s steps(1) infinite; }

/* C — pulsing mic */
.vb-pulse { width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(20,20,20,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(43,108,255,.45); box-shadow: var(--glow-sm); }
[data-theme="light"] .vb-pulse { background: rgba(255,255,255,.72); }
.vb-pulse .vb-ico svg { width: 18px; height: 18px; }
.vb-pulse::before, .vb-pulse::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); animation: vbpulse 2s ease-out infinite; }
.vb-pulse::after { animation-delay: 1s; }
@keyframes vbpulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }

@keyframes pill-in-c { from { opacity: 0; transform: translate(-50%, -50%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* ---- impact: live on-device feed (history window) ---- */
    /* ============================================================
       Impact — "Live on-device feed" (draft A)
       Self-contained. Transform/opacity only. Works light + dark.
       ============================================================ */
    .histpanel { will-change: transform; transition: transform .3s var(--ease-out); }

    /* feed becomes an absolutely-positioned, slot-driven stack so rows
       can shift purely with transforms (no layout/height animation) */
    .histpanel .hist-list {
      position: relative; padding: 0; --rh: 46px;
      height: calc(16px + 5 * var(--rh)); overflow: hidden; display: block;
    }
    .histpanel .hist-row {
      position: absolute; left: 8px; right: 8px; top: 8px;
      transform: translateY(calc(var(--slot, 0) * var(--rh)));
      transition: transform .6s var(--ease-out), opacity .5s var(--ease-out);
      will-change: transform, opacity; backface-visibility: hidden;
    }
    .histpanel .hist-row.is-enter {
      opacity: 0; transform: translateY(calc(var(--slot, 0) * var(--rh) - 14px));
    }
    .histpanel .hist-row.is-out { opacity: 0; }

    /* the live (currently-dictating) row — tail stays visible, left fades */
    .histpanel .hist-row.is-live .hist-snip {
      color: var(--text);
      display: flex; align-items: center; justify-content: flex-end; overflow: hidden;
      -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px);
              mask-image: linear-gradient(90deg, transparent 0, #000 40px);
    }
    .hist-typed { white-space: nowrap; }
    .hist-caret {
      display: inline-block; flex: none; width: 2px; height: 15px; margin-left: 2px;
      background: var(--accent); border-radius: 1px; box-shadow: var(--glow-sm);
      animation: hlCaret 1.05s steps(1) infinite;
    }
    @keyframes hlCaret { 0%,52% { opacity: 1; } 53%,100% { opacity: .15; } }

    /* recording indicator: tiny live waveform + pulse, in the meta slot */
    .hist-rec { display: inline-flex; align-items: center; gap: 7px; }
    .hist-wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
    .hist-wave i {
      width: 2.5px; height: 100%; border-radius: 2px; background: var(--accent);
      transform-origin: center bottom; transform: scaleY(.28);
      animation: hlWave 1s var(--ease-out) infinite;
    }
    .hist-wave i:nth-child(1) { animation-delay: -.90s; }
    .hist-wave i:nth-child(2) { animation-delay: -.45s; }
    .hist-wave i:nth-child(3) { animation-delay: -.20s; }
    .hist-wave i:nth-child(4) { animation-delay: -.70s; }
    @keyframes hlWave { 0%,100% { transform: scaleY(.28); } 50% { transform: scaleY(1); } }
    .rec-dot {
      width: 6px; height: 6px; border-radius: 50%; flex: none;
      background: var(--accent); box-shadow: var(--glow-sm);
      animation: hlPulse 1.5s var(--ease-out) infinite;
    }
    @keyframes hlPulse { 0%,100% { opacity: .35; transform: scale(.78); } 50% { opacity: 1; transform: scale(1); } }
    .rec-n { color: var(--text-dis); font-family: var(--mono); font-size: 11px; min-width: 30px; text-align: right; }

    @media (max-width: 860px) { .histpanel { transform: none; } }
    @media (prefers-reduced-motion: reduce) {
      .histpanel { transition: none; }
      .histpanel .hist-row { transition: none; }
      .hist-caret, .hist-wave i, .rec-dot { animation: none; }
    }
  


/* ---- "press your key" keycap (how section) ---- */
.how-key { display: inline-flex; align-items: center; gap: 13px; margin-top: 24px; }
.keycap {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; line-height: 1; color: var(--text);
  padding: 11px 15px; border-radius: 9px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 4px 0 rgba(0,0,0,.55), 0 10px 20px rgba(0,0,0,.45);
  animation: keytap 2.8s var(--ease-out) infinite; will-change: transform;
}
[data-theme="light"] .keycap {
  color: #18181b;
  background: linear-gradient(180deg, #ffffff, #ececed);
  border-color: rgba(0,0,0,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 0 #d2d2d6, 0 10px 18px rgba(0,0,0,.12);
}
.keycap .kc-glyph { font-size: 15px; opacity: .7; transform: translateY(1px); }
@keyframes keytap { 0%, 72%, 100% { transform: translateY(0); } 80% { transform: translateY(3px); } 88% { transform: translateY(0); } }
.how-key-note { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--text-sub); }
@media (prefers-reduced-motion: reduce) { .keycap { animation: none; } }
