/* WhisprTyper marketing site
   Surfaces: warm paper canvas, white, soft lavender, warm amber, deep near-black.
   Type: SF system stack, semibold tight headlines. Max width 1200, compact rhythm. */

:root {
  --ink: #1d1d1f;
  --ink-soft: #4c4a46;
  --ink-faint: #7a766f;
  --paper: #f7f4ed;
  --paper-deep: #efeadf;
  --white: #ffffff;
  --lavender: #e8e3f7;
  --lavender-deep: #d8d0f0;
  --accent: #6f63e0;
  --amber: #f7ddc0;
  --amber-deep: #efcfa8;
  --dark: #1d1d1f;
  --dark-warm: #241f1a;
  --hairline: rgba(29, 29, 31, 0.12);
  --ivory: rgb(247 247 235); /* pill bars: RGB .97/.97/.92 */
  --wrap: 1200px;
  --gutter: clamp(12px, 2.5vw, 24px);
  --section-gap: clamp(56px, 7vw, 88px);
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-soft: 0 12px 32px rgba(29, 24, 16, 0.1);
  --glass-nav-fill: rgba(246, 243, 237, 0.68);
  --glass-nav-fill-top: rgba(255, 255, 255, 0.78);
  --glass-nav-solid: #f1efea;
  --glass-nav-border: rgba(255, 255, 255, 0.78);
  --glass-nav-edge: rgba(29, 29, 31, 0.1);
  --glass-nav-highlight: rgba(255, 255, 255, 0.88);
  --glass-nav-shadow: 0 18px 48px rgba(40, 32, 20, 0.14), 0 3px 10px rgba(40, 32, 20, 0.07);
  --glass-nav-blur: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

kbd {
  font-family: inherit;
  font-size: 0.85em;
  font-weight: 600;
  background: rgba(29, 29, 31, 0.07);
  border: 1px solid var(--hairline);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 7px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.button:active { transform: translateY(1px); }

.button-ink {
  color: var(--paper);
  background: linear-gradient(to bottom, #333336, #1a1a1c);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.button-ink:hover { background: linear-gradient(to bottom, #3d3d40, #232325); }

.button-ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--hairline);
}
.button-ghost:hover { background: rgba(29, 29, 31, 0.05); }

.button-paper {
  color: var(--ink);
  background: linear-gradient(to bottom, #ffffff, #efe9dc);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.button-paper:hover { background: linear-gradient(to bottom, #ffffff, #f7f3ea); }

.button-lg { min-height: 50px; padding: 10px 28px; font-size: 17px; }

.text-link {
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.text-link-light { color: #f2ede2; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.eyebrow-light { color: #b6abf5; }

/* ---------- Layout rhythm ---------- */

main > section, main > aside {
  max-width: var(--wrap);
  margin: var(--section-gap) auto 0;
  padding-inline: var(--gutter);
}
main > .hero { margin-top: 0; }
main > .scene-section { margin-top: clamp(28px, 4vw, 44px); }
main > .cta-strip { margin-top: clamp(28px, 4vw, 44px); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 10px;
  z-index: 50;
  padding: 0 var(--gutter);
  pointer-events: none;
}

.nav {
  position: relative;
  isolation: isolate;
  max-width: var(--wrap);
  margin: 0 auto;
  min-height: 60px;
  padding: 7px 8px 7px 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  overflow: hidden;
  border: 1px solid var(--glass-nav-border);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--glass-nav-fill-top), var(--glass-nav-fill));
  -webkit-backdrop-filter: blur(var(--glass-nav-blur)) saturate(175%);
  backdrop-filter: blur(var(--glass-nav-blur)) saturate(175%);
  box-shadow: var(--glass-nav-shadow), inset 0 0 0 1px var(--glass-nav-edge);
  pointer-events: auto;
}

.nav::before,
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}

.nav::before {
  background:
    radial-gradient(110% 100% at 14% -28%, rgba(255, 255, 255, 0.76), transparent 52%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.2), transparent 38%, rgba(255, 255, 255, 0.08) 72%, transparent);
  box-shadow: inset 0 1px 0 var(--glass-nav-highlight), inset 1px 0 0 rgba(255, 255, 255, 0.48);
}

.nav::after {
  box-shadow: inset 0 -1px 0 rgba(29, 29, 31, 0.06);
}

.nav > * {
  position: relative;
  z-index: 1;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 8px 0 4px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}
.nav-brand img {
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.52), 0 2px 8px rgba(52, 43, 29, 0.14);
}
.nav-brand:hover {
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66), 0 1px 5px rgba(40, 32, 20, 0.07);
}

.nav a:focus-visible { border-radius: 999px; }

.nav-cta { margin-left: auto; }
.nav-links + .nav-cta { margin-left: 0; }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding-top: clamp(40px, 6vw, 72px);
}

/* Near-full-viewport hero on desktop; min-height only, so short
   viewports and zoomed text stay content-height safe. */
@media (min-width: 761px) and (min-height: 560px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 132px);
    min-height: calc(100svh - 132px);
    padding-top: clamp(24px, 4vh, 56px);
    padding-bottom: 12px;
  }
  .hero > * { width: 100%; }
}

.hero-title {
  font-size: clamp(44px, 8.2vw, 94px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.01;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: clamp(18px, 2.3vw, 22px);
  color: var(--ink-soft);
  max-width: 660px;
  margin: 0 auto 8px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0;
}

/* ---------- Hero word-flow stage ----------
   Spoken lower-case fragments travel a curved incoming path into a strong
   dark glass pill; the finalized sentence exits along a mirrored outgoing
   path. Positions are viewBox percentages (0–100) written to --x/--y; the
   inline defaults in index.html form a complete static diagram, so the
   scene reads fully without JavaScript or with reduced motion. */

.hero-flow {
  margin: clamp(30px, 5vh, 54px) 0 0;
  width: 100%;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(280px, 36vh, 400px);
  border-radius: var(--radius-lg);
  background: radial-gradient(62% 58% at 50% 52%, rgba(111, 99, 224, 0.09), transparent 72%);
}

.stage-curves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage-curves path {
  fill: none;
  stroke: rgba(29, 29, 31, 0.26);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 0.001 2.4;
  vector-effect: non-scaling-stroke;
}

.hero-letter {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  opacity: var(--o, 1);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
}

/* Blinking caret on the last lit letter while typing. */
.hero-letter.is-caret::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: currentColor;
  opacity: 0.85;
}
@keyframes hero-caret { 0%, 49% { opacity: 0.85; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-stage.is-animated .hero-letter.is-caret::after { animation: hero-caret 0.7s steps(1) infinite; }
}

.hero-out {
  position: absolute;
  z-index: 1;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-55%, -50%);
  opacity: var(--o, 1);
  width: min(420px, 46%);
  background: linear-gradient(to bottom, #333336, #1a1a1c);
  color: var(--ivory);
  border-radius: 18px;
  padding: 10px 18px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
  box-shadow: 0 14px 34px rgba(29, 24, 16, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Strong dark glass over the stage; the faint dotted paths blur beneath it. */
.voice-pill.hero-pill {
  --s: 1.35;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  margin-top: 0;
  cursor: default;
  touch-action: auto;
  background: linear-gradient(to bottom, rgba(46, 44, 40, 0.9), rgba(22, 21, 19, 0.94));
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 20px 44px rgba(29, 24, 16, 0.35), 0 2px 8px rgba(29, 24, 16, 0.18);
}
.hero-pill .pill-spinner {
  width: calc(16px * var(--s));
  height: calc(16px * var(--s));
}
/* Static waveform unless the JS loop is actually running. */
.voice-pill.hero-pill[data-state="recording"] .pill-wave i { animation: none; }
/* The hero finalizing spinner only animates while the JS loop is on screen. */
.voice-pill.hero-pill[data-state="finalizing"] .pill-spinner { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-stage.is-animated .hero-pill[data-state="recording"] .pill-wave i {
    animation: pill-bar 1.35s ease-in-out infinite alternate;
  }
  .hero-stage.is-animated .voice-pill.hero-pill[data-state="finalizing"] .pill-spinner {
    animation: pill-spin 1s linear infinite;
  }
}
@keyframes pill-spin { to { transform: rotate(360deg); } }

.pill-check {
  display: none;
  width: calc(17px * var(--s, 1));
  height: calc(17px * var(--s, 1));
}
.pill-check path {
  fill: none;
  stroke: var(--ivory);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.voice-pill[data-state="inserted"] .pill-wave { display: none; }
.voice-pill[data-state="inserted"] .pill-check { display: block; }

.hero-stage-label {
  position: absolute;
  left: 50%;
  top: 80%;
  margin: 0;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.voice-pill.hero-pill[data-state="inserted"] ~ .hero-stage-label { opacity: 0; }

.hero-stage-tag {
  position: absolute;
  bottom: 7%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-tag-in { left: 2.5%; }
.hero-tag-out { right: 2.5%; }

.hero-stage-caption {
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- Product scene ---------- */

.demo-heading {
  max-width: 720px;
  margin: 0 auto 22px;
  text-align: center;
}
.demo-heading h2 {
  font-size: clamp(30px, 4.4vw, 48px);
}
.demo-heading > p:last-child {
  color: var(--ink-soft);
  margin: 0;
}

.scene {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #221a12 url("assets/desk-backdrop.jpg") center / cover no-repeat;
  box-shadow: 0 24px 60px rgba(35, 24, 12, 0.35);
}
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(58, 36, 16, 0.05), rgba(20, 12, 6, 0.45) 78%),
    linear-gradient(to bottom, rgba(24, 15, 8, 0.18), rgba(16, 10, 5, 0.42));
  pointer-events: none;
}

.scene-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(44px, 7vw, 96px) clamp(16px, 5vw, 64px);
}

.compose-card {
  width: min(560px, 100%);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(10, 6, 2, 0.5);
  overflow: hidden;
}

.compose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.09);
}
.compose-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
.demo-badge {
  border-radius: 999px;
  background: var(--lavender);
  color: #51479b;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compose-input {
  display: block;
  width: 100%;
  min-height: 132px;
  margin: 0;
  border: 0;
  resize: none;
  background: var(--white);
  padding: 18px 20px 22px;
  font: inherit;
  font-size: clamp(15.5px, 1.9vw, 17.5px);
  line-height: 1.6;
  color: var(--ink);
  caret-color: var(--accent);
}
.compose-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  border-radius: 0 0 14px 14px;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent);
}
.caret-ink { background: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: caret-blink 1.1s steps(2, start) infinite; }
}
@keyframes caret-blink { to { visibility: hidden; } }

/* The WhisprTyper voice pill, matching the app's recording pill.
   Base geometry: 100×42 capsule, black 0.28 fill over dark glass, 1px top-lit rim
   (white 28% → 6%), 10 center-aligned ivory bars 2px wide with 2.5px gaps in a
   22px-high waveform area, active heights 3–20px. --s scales it proportionally. */

.voice-pill {
  --s: 1;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 2;
  width: calc(100px * var(--s));
  height: calc(42px * var(--s));
  border-radius: calc(21px * var(--s));
  margin-top: calc(-8px * var(--s));
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(18px) brightness(0.72) saturate(1.25);
  backdrop-filter: blur(18px) brightness(0.72) saturate(1.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 44px rgba(8, 5, 2, 0.55);
  cursor: pointer;
  touch-action: none;
  color: var(--ivory);
}
.voice-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.pill-wave {
  display: flex;
  align-items: center;
  gap: calc(2.5px * var(--s));
  height: calc(22px * var(--s));
}
.pill-wave i {
  --h: 3px;
  width: calc(2px * var(--s));
  height: calc(var(--h) * var(--s));
  border-radius: calc(1px * var(--s));
  background: var(--ivory);
}
.voice-pill[data-state="recording"] .pill-wave i:nth-child(1)  { --h: 6px; }
.voice-pill[data-state="recording"] .pill-wave i:nth-child(2)  { --h: 11px; }
.voice-pill[data-state="recording"] .pill-wave i:nth-child(3)  { --h: 17px; }
.voice-pill[data-state="recording"] .pill-wave i:nth-child(4)  { --h: 20px; }
.voice-pill[data-state="recording"] .pill-wave i:nth-child(5)  { --h: 14px; }
.voice-pill[data-state="recording"] .pill-wave i:nth-child(6)  { --h: 9px; }
.voice-pill[data-state="recording"] .pill-wave i:nth-child(7)  { --h: 16px; }
.voice-pill[data-state="recording"] .pill-wave i:nth-child(8)  { --h: 19px; }
.voice-pill[data-state="recording"] .pill-wave i:nth-child(9)  { --h: 12px; }
.voice-pill[data-state="recording"] .pill-wave i:nth-child(10) { --h: 7px; }

.pill-spinner {
  display: none;
  width: 16px;
  height: 16px;
  overflow: visible;
}
.pill-spinner circle {
  fill: none;
  stroke: var(--ivory);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 72 28;
}
.voice-pill[data-state="finalizing"] .pill-wave { display: none; }
.voice-pill[data-state="finalizing"] .pill-spinner { display: block; }

/* The hero spinner only animates while the JS loop is actually running; the
   interactive #product demo spinner keeps spinning under finalizing on its own. */
.voice-pill.hero-pill[data-state="finalizing"] .pill-spinner { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .voice-pill[data-state="recording"] .pill-wave i { animation: pill-bar 1.35s ease-in-out infinite alternate; }
  .voice-pill[data-state="recording"] .pill-wave i:nth-child(1)  { animation-delay: -0.15s; animation-duration: 1.2s; }
  .voice-pill[data-state="recording"] .pill-wave i:nth-child(2)  { animation-delay: -0.62s; }
  .voice-pill[data-state="recording"] .pill-wave i:nth-child(3)  { animation-delay: -0.31s; animation-duration: 1.5s; }
  .voice-pill[data-state="recording"] .pill-wave i:nth-child(4)  { animation-delay: -0.94s; }
  .voice-pill[data-state="recording"] .pill-wave i:nth-child(5)  { animation-delay: -0.47s; animation-duration: 1.25s; }
  .voice-pill[data-state="recording"] .pill-wave i:nth-child(6)  { animation-delay: -1.1s; }
  .voice-pill[data-state="recording"] .pill-wave i:nth-child(7)  { animation-delay: -0.2s;  animation-duration: 1.45s; }
  .voice-pill[data-state="recording"] .pill-wave i:nth-child(8)  { animation-delay: -0.78s; }
  .voice-pill[data-state="recording"] .pill-wave i:nth-child(9)  { animation-delay: -0.55s; animation-duration: 1.3s; }
  .voice-pill[data-state="recording"] .pill-wave i:nth-child(10) { animation-delay: -0.08s; }
  .hero-stage.is-animated .voice-pill.hero-pill[data-state="finalizing"] .pill-spinner { animation: pill-spin 0.8s linear infinite; }
  .voice-pill:not(.hero-pill)[data-state="finalizing"] .pill-spinner { animation: pill-spin 0.8s linear infinite; }
}
@keyframes pill-bar {
  from { transform: scaleY(1); }
  to   { transform: scaleY(0.5); }
}
@keyframes pill-spin { to { transform: rotate(360deg); } }

.demo-status {
  margin: 12px 0 0;
  border-radius: 999px;
  background: rgba(13, 9, 5, 0.62);
  color: #f8f3e8;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.scene-caption {
  max-width: var(--wrap);
  margin: 14px auto 0;
  text-align: center;
  font-size: 15px;
  color: var(--ink-faint);
}

/* ---------- CTA strip ---------- */

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: linear-gradient(to bottom, var(--amber), var(--amber-deep));
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3.5vw, 34px);
}
.cta-strip p {
  margin: 0;
  font-weight: 600;
  font-size: clamp(16px, 2vw, 18px);
  letter-spacing: -0.01em;
  max-width: 640px;
  text-wrap: pretty;
}

/* ---------- Works where you type ---------- */

.apps-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 48px) clamp(18px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.apps-card h2 { font-size: clamp(26px, 3.6vw, 38px); }
.apps-sub { color: var(--ink-soft); margin-bottom: 24px; }

.app-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.app-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
}
.app-strip svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-strip .app-any {
  background: var(--lavender);
  border-color: transparent;
  color: var(--ink);
}

/* ---------- How it works ---------- */

.how-inner {
  background: linear-gradient(to bottom, var(--lavender), #ded7f3);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px) clamp(18px, 4vw, 56px);
}
.how-inner h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 26px; }

.how-steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.how-steps li {
  counter-increment: step;
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}
.how-steps h3 { font-size: 20px; margin: 14px 0 6px; }
.how-steps h3::before {
  content: counter(step) ". ";
  color: var(--accent);
}
.how-steps p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

.step-key {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}
.step-key kbd {
  background: var(--white);
  border-color: rgba(29, 29, 31, 0.16);
  font-size: 14px;
  padding: 4px 12px;
}

.step-key-wave { gap: 3px; }
.step-key-wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.step-key-wave i:nth-child(1) { height: 10px; }
.step-key-wave i:nth-child(2) { height: 20px; }
.step-key-wave i:nth-child(3) { height: 26px; }
.step-key-wave i:nth-child(4) { height: 16px; }
.step-key-wave i:nth-child(5) { height: 9px; }
@media (prefers-reduced-motion: no-preference) {
  .step-key-wave i { animation: pill-bar 1.2s ease-in-out infinite alternate; }
  .step-key-wave i:nth-child(2) { animation-delay: -0.4s; }
  .step-key-wave i:nth-child(3) { animation-delay: -0.8s; }
  .step-key-wave i:nth-child(4) { animation-delay: -0.25s; }
  .step-key-wave i:nth-child(5) { animation-delay: -0.6s; }
}

.how-footnote {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- Feature bento ---------- */

.bento h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  text-align: center;
  margin-bottom: 26px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.bento-card {
  border-radius: var(--radius-md);
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
}
.bento-card h3 { font-size: clamp(19px, 2.2vw, 23px); }
.bento-card p { font-size: 15.5px; color: var(--ink-soft); }

.bento-local    { grid-column: span 4; }
.bento-modes    { grid-column: span 2; }
.bento-insert   { grid-column: span 3; }
.bento-password { grid-column: span 3; }
.bento-memory   { grid-column: span 3; }
.bento-menubar  { grid-column: span 3; }

.bento-white { background: var(--white); box-shadow: var(--shadow-soft); }
.bento-paper { background: var(--paper-deep); }
.bento-lavender { background: var(--lavender); }
.bento-amber { background: linear-gradient(to bottom, var(--amber), var(--amber-deep)); }
.bento-dark {
  background: linear-gradient(to bottom, #2a2a2d, var(--dark));
  color: #f2ede2;
}
.bento-dark h3 { color: #ffffff; }
.bento-dark p { color: #c9c4ba; }

/* engine mock (dark card) */
.engine-mock {
  margin-top: auto;
  padding-top: 18px;
  display: grid;
  gap: 8px;
}
.engine-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14.5px;
}
.engine-row-active { border-color: rgba(182, 171, 245, 0.55); }
.engine-check {
  width: 18px;
  color: #b6abf5;
  font-weight: 700;
}
.engine-name { font-weight: 600; color: #ffffff; }
.engine-note { color: #a39d92; font-size: 13px; margin-left: auto; }

/* capture modes mock (lavender card) */
.capture-mock {
  margin-top: auto;
  padding-top: 18px;
  display: grid;
  gap: 7px;
}
.capture-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 11px;
  padding: 9px 13px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.capture-radio {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(29, 29, 31, 0.35);
  flex: none;
}
.capture-row-active { color: var(--ink); background: var(--white); }
.capture-row-active .capture-radio {
  border-color: var(--accent);
  background: radial-gradient(circle at center, var(--accent) 0 42%, transparent 46%);
}

/* insert mock (white card) */
.insert-mock {
  margin-top: auto;
  padding-top: 18px;
  position: relative;
  min-height: 132px;
}
.mini-window {
  border-radius: 12px;
  padding: 10px 14px 14px;
  display: grid;
  gap: 8px;
}
.mini-back {
  position: absolute;
  top: 18px; right: 0;
  width: 62%;
  background: var(--paper-deep);
  opacity: 0.9;
}
.mini-front {
  position: absolute;
  left: 0; bottom: 0;
  width: 74%;
  background: var(--white);
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 24px rgba(29, 24, 16, 0.14);
}
.mini-bar {
  height: 6px;
  width: 40%;
  border-radius: 3px;
  background: rgba(29, 29, 31, 0.14);
}
.ghost-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(29, 29, 31, 0.1);
}
.ghost-line.short { width: 60%; }
.insert-field {
  border: 1.5px solid var(--accent);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 13.5px;
  color: var(--ink);
}
.insert-badge {
  position: absolute;
  right: 12px; bottom: -10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
}

/* password mock (amber card) */
.refused-mock {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 12px 16px;
}
.refused-dots { letter-spacing: 3px; font-weight: 700; color: var(--ink-soft); }
.refused-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8c2f22;
  background: rgba(140, 47, 34, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
}

/* menu mock (paper card) */
.menu-mock {
  margin-top: auto;
  padding-top: 18px;
  display: grid;
  gap: 2px;
}
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 13px;
}
.menu-item:first-child { border-radius: 11px 11px 4px 4px; }
.menu-item:last-child { border-radius: 4px 4px 11px 11px; }
.menu-item-active { background: var(--lavender); font-weight: 600; }
.menu-note { font-size: 12px; color: var(--ink-faint); }

/* menubar mock (white card) */
.menubar-mock {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  background: linear-gradient(to bottom, #f2eee6, #e8e3d8);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.menubar-wave {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 16px;
}
.menubar-wave i {
  width: 2.5px;
  border-radius: 2px;
  background: var(--ink);
}
.menubar-wave i:nth-child(1) { height: 6px; }
.menubar-wave i:nth-child(2) { height: 12px; }
.menubar-wave i:nth-child(3) { height: 15px; }
.menubar-wave i:nth-child(4) { height: 10px; }
.menubar-wave i:nth-child(5) { height: 5px; }

.cta-inline {
  text-align: center;
  margin: 26px 0 0;
}

/* ---------- Use cases ---------- */

.usecases h2 {
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
  margin-bottom: 24px;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.usecase-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.usecase-card h3 { font-size: 19px; }
.usecase-card p { font-size: 15px; color: var(--ink-soft); }
.usecase-example {
  margin-top: auto;
  padding: 10px 13px;
  background: var(--paper);
  border-radius: 11px;
  font-size: 13.5px;
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------- Privacy ---------- */

.privacy-inner {
  background: linear-gradient(145deg, #26262a, var(--dark) 60%);
  color: #e8e3d8;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px) clamp(18px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.privacy-copy h2 { color: #ffffff; font-size: clamp(28px, 4vw, 42px); }
.privacy-copy p { color: #bdb8ad; }
.privacy-copy .text-link { display: inline-flex; align-items: center; min-height: 44px; }

.privacy-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.privacy-facts li {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #f2ede2;
}

/* ---------- FAQ ---------- */

.faq { max-width: min(var(--wrap), 880px); }
.faq h2 {
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
  margin-bottom: 22px;
}

.faq-list { display: grid; gap: 8px; }

.faq-list details {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid rgba(29, 29, 31, 0.08);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-faint);
  flex: none;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  padding: 0 18px 16px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---------- Download ---------- */

.download-inner {
  background:
    radial-gradient(110% 130% at 85% -10%, rgba(214, 148, 78, 0.28), transparent 55%),
    linear-gradient(to bottom, #2b241d, var(--dark-warm));
  color: #ece6da;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5.5vw, 64px) clamp(18px, 4vw, 56px);
  text-align: center;
}
.download-inner h2 {
  color: #ffffff;
  font-size: clamp(30px, 4.4vw, 46px);
}
.download-sub {
  color: #beb6a8;
  max-width: 560px;
  margin: 0 auto 28px;
  text-wrap: pretty;
}

.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.channel-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.channel-card h3 { color: #ffffff; font-size: 21px; margin-bottom: 2px; }
.channel-card p { color: #b5ad9f; font-size: 15px; }
.channel-status {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #eec89a;
  background: rgba(238, 200, 154, 0.13);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 8px;
}
.channel-card .button,
.channel-card .text-link { margin-top: 12px; }
.channel-card .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.download-fine {
  margin: 22px 0 0;
  font-size: 13.5px;
  color: #968e80;
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--wrap);
  margin: var(--section-gap) auto 0;
  padding: 0 var(--gutter) 34px;
}

.footer-inner {
  display: flex;
  gap: clamp(24px, 5vw, 72px);
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
  padding-top: 30px;
}

.footer-brand p {
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 14.5px;
}

.footer-cols {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  flex-wrap: wrap;
}
.footer-cols h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
}
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }

.footer-fine {
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- Scroll reveal (decorative only; content is never hidden) ---------- */

.js .reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js .reveal.is-visible { animation: reveal-in 0.5s ease both; }
  @keyframes reveal-in {
    from { opacity: 0.72; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .nav-brand,
  .nav-links a,
  .nav-cta { transition: none; }
  .nav-cta:hover,
  .nav-cta:active { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .bento-local, .bento-modes, .bento-insert,
  .bento-password, .bento-memory, .bento-menubar { grid-column: span 3; }
  .usecase-grid { grid-template-columns: 1fr 1fr; }
  .privacy-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header {
    top: 8px;
    padding-inline: 10px;
  }
  .nav {
    row-gap: 0;
    column-gap: 8px;
    min-height: 0;
    padding: 6px 8px;
    border-radius: 30px;
  }
  .nav-brand { padding-left: 4px; }
  .nav-cta {
    margin-left: auto !important;
    padding-inline: 16px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    margin: 2px 0 0;
    padding-top: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid rgba(29, 29, 31, 0.06);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .how-steps { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .cta-strip { justify-content: center; text-align: center; }

  /* Simplified hero stage: taller curves, fewer fragments, smaller pill,
     ribbon pulled left so it stays inside the clipped stage. */
  .hero-stage { height: clamp(280px, 82vw, 340px); }
  .hero-letter { font-size: 12.5px; }
  .hero-letter[data-i="0"],
  .hero-letter[data-i="2"] { display: none; }
  .voice-pill.hero-pill { --s: 1.05; }
  .hero-out {
    width: min(190px, 52%);
    transform: translate(-60%, -18%);
    font-size: 13px;
    padding: 8px 14px;
  }
  .hero-stage-label { display: none; }
}

@media (max-width: 620px) {
  .bento-local, .bento-modes, .bento-insert,
  .bento-password, .bento-memory, .bento-menubar { grid-column: span 6; }
  .usecase-grid { grid-template-columns: 1fr; }
  .privacy-facts { grid-template-columns: 1fr 1fr; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav { background: var(--glass-nav-solid); }
}

@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--glass-nav-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 10px 28px rgba(40, 32, 20, 0.12), inset 0 0 0 1px rgba(29, 29, 31, 0.08);
  }
  .nav::before { opacity: 0.28; }
  .hero-pill {
    background: #1f1e1b;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .nav {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .nav::before,
  .nav::after { display: none; }
  .nav-brand:hover,
  .nav-links a:hover {
    color: HighlightText;
    background: Highlight;
    box-shadow: none;
  }
  .hero-stage { background: none; }
  .stage-curves path { stroke: CanvasText; }
  .hero-letter,
  .hero-stage-label,
  .hero-stage-tag { color: CanvasText; }
  .hero-out {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
    box-shadow: none;
  }
  .hero-pill {
    background: Canvas;
    border: 1px solid CanvasText;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .hero-pill .pill-wave i { background: CanvasText; }
  .hero-pill .pill-spinner circle,
  .hero-pill .pill-check path { stroke: CanvasText; }
}

@media print {
  .site-header {
    position: static;
    padding: 0;
  }
  .nav {
    background: #fff;
    border: 1px solid #000;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .nav::before,
  .nav::after { display: none; }
}
