/* ============================================================
   TypeFlow — editorial monochrome
   ============================================================ */

:root {
  --bg: #FAFAF6;
  --bg-grey: #F1EFEA;
  --ink: #0A0A0A;
  --ink-2: #1F1E1B;
  --mute: #6B6760;
  --mute-2: #9A958B;
  --line: #E4E1D9;
  --line-2: #D6D2C8;
  --card: #FFFFFF;
  --accent: #0A0A0A;
  --accent-on: #FFFFFF;

  /* aurora colors */
  --au-rec-1: #FF6B9D;
  --au-rec-2: #FFB46B;
  --au-rec-3: #C39BFF;
  --au-trans-1: #6BB7FF;
  --au-trans-2: #9B7BFF;
  --au-trans-3: #6BFFEB;
  --au-clean-1: #C39BFF;
  --au-clean-2: #FF9BD2;
  --au-clean-3: #6BB7FF;
  --au-insert-1: #6BFFA8;
  --au-insert-2: #6BB7FF;
  --au-insert-3: #C9FF6B;
  --au-idle-1: #C8C5BD;
  --au-idle-2: #B0ACA2;
  --au-idle-3: #DEDAD0;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
}

/* Theme variants */
html[data-theme="cream"] { --bg: #FAF6E8; --bg-grey: #F1EBD7; --line: #E2DCC4; --line-2: #D2CAA8; --card: #FFFCF0; }
html[data-theme="dark"] {
  --bg: #0E0D0B; --bg-grey: #161513; --ink: #F4F1E8; --ink-2: #E7E3D8;
  --mute: #9A958B; --mute-2: #6B6760; --line: #232220; --line-2: #2E2C28;
  --card: #161513; --accent: #F4F1E8; --accent-on: #0A0A0A;
}
html[data-waveform="off"] .hero-wave { display: none; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

/* Tweaks panel */
#tweaks-fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; }
#tweaks-open { font: 500 13px/1 "Geist", sans-serif; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.10); }
#tweaks-panel { position: fixed; right: 18px; bottom: 18px; z-index: 91; width: 280px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,0.18); padding: 14px; font-family: "Geist", sans-serif; }
.tw-head { display: flex; justify-content: space-between; align-items: center; font: 600 13px/1 "Geist", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tw-head button { background: none; border: 0; font-size: 16px; cursor: pointer; color: var(--mute); }
.tw-section { margin-bottom: 14px; }
.tw-label { display: block; font: 500 11px/1 "Geist Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.tw-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.tw-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.tw-swatch.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg) inset; }
.tw-seg { display: flex; gap: 4px; background: var(--bg-grey); padding: 3px; border-radius: 10px; }
.tw-seg button { flex: 1; padding: 7px 10px; border: 0; background: transparent; border-radius: 8px; font: 500 12px/1 "Geist", sans-serif; cursor: pointer; color: var(--mute); }
.tw-seg button.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--ink); color: var(--bg); }

/* ============ TYPE ============ */
.h2, h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.h2 em, h2 em { font-style: italic; color: var(--mute); font-weight: 400; }

.kicker {
  display: inline-block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
}

.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--mute);
  max-width: 640px;
  margin: 22px auto 0;
}

kbd {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.85em;
  padding: 2px 7px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  color: var(--ink);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-primary {
  background: var(--ink);
  color: var(--accent-on);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 6px 18px -8px rgba(0,0,0,0.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 12px 28px -10px rgba(0,0,0,0.55); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(0,0,0,0.04); border-color: var(--ink); }
.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); }

/* ============ NAV ============ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 24px 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 12px 10px 22px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 30px -16px rgba(0,0,0,0.18);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px; height: 30px;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.footer-brand .brand-mark { width: 34px; height: 34px; }
img.brand-mark { background: transparent; }
.brand-name { font-weight: 400; }

.nav-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 2px;
  margin-left: auto;
  position: relative;
}
.nav-links .nav-magic {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 32px;
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
  transform: translateY(-50%);
  transition:
    transform 0.38s cubic-bezier(.55,.1,.2,1),
    width 0.38s cubic-bezier(.55,.1,.2,1),
    opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.nav-links.has-hover .nav-magic { opacity: 1; }
.nav-links li { position: relative; z-index: 1; }
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--mute);
  border-radius: 999px;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--ink); background: transparent; }
.nav-cta { padding: 9px 16px; font-size: 13.5px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============ SECTION ============ */
.section {
  padding: 120px 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.section-tight { padding: 80px 24px; }
.section-mid { padding: 110px 24px; }
.section-grey {
  background: var(--bg-grey);
  max-width: none;
  margin: 0;
  padding: 120px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-grey > * { max-width: 1240px; margin-left: auto; margin-right: auto; }

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 36px 24px 64px;
  max-width: 1480px;
  margin: 0 auto;
  text-align: center;
  /* fill the viewport so the active-app pill section that follows is
     pushed below the fold on every screen size */
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 600px) {
  .hero { min-height: calc(100vh - 80px); padding: 24px 20px 36px; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--mute);
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 4px 12px -6px rgba(0,0,0,0.08);
}
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-live { background: #15c46f; box-shadow: 0 0 0 3px rgba(21,196,111,0.18); animation: pulse 1.6s ease-in-out infinite; }
.dot-rec  { background: #e84a5f; box-shadow: 0 0 0 3px rgba(232,74,95,0.22); animation: pulse 1.4s ease-in-out infinite; }

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.18); opacity: 0.7; }
}

.hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  /* scales generously on huge / high-DPI screens without overflowing
     on small ones — min 44px keeps mobile readable, max 156px fills
     a 4K hero confidently */
  font-size: clamp(44px, 9vw, 156px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0 0 30px;
}
.hero-title em { font-style: italic; color: var(--ink); position: relative; }
.hero-title em::after {
  content: '';
  position: absolute;
  left: 4%; right: 4%;
  bottom: 0.04em;
  height: 0.08em;
  background: var(--ink);
  border-radius: 0.04em;
  transform-origin: left;
  animation: scaleIn 1.1s 0.4s cubic-bezier(.6,0,.3,1) both;
}
@keyframes scaleIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-sub {
  font-size: clamp(15px, 1.15vw, 21px);
  line-height: 1.5;
  color: var(--mute);
  max-width: clamp(440px, 50vw, 660px);
  margin: 0 auto 26px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.hero-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute-2);
  margin: 0;
}

.hero-pill-wrap {
  margin: 64px auto 0;
  max-width: 520px;
  text-align: center;
}
.hero-pill-label {
  margin-top: 22px;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mute);
  display: inline-flex; align-items: center; gap: 8px;
}

/* aurora pill */
.aurora-pill {
  position: relative;
  width: 380px;
  max-width: 88vw;
  height: 76px;
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.4),
    0 30px 60px -22px rgba(0,0,0,0.3),
    0 12px 30px -16px rgba(0,0,0,0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  isolation: isolate;
}
.aurora-pill-lg { width: 460px; height: 92px; }

.aurora-blob {
  position: absolute;
  width: 70%; height: 220%;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.85;
  mix-blend-mode: screen;
  z-index: -1;
}
.aurora-blob.a1 { background: var(--au-rec-1); top: -50%; left: -10%; animation: drift1 8s ease-in-out infinite; }
.aurora-blob.a2 { background: var(--au-rec-2); top: -40%; left: 30%;  animation: drift2 10s ease-in-out infinite; }
.aurora-blob.a3 { background: var(--au-rec-3); top: -60%; left: 60%;  animation: drift3 12s ease-in-out infinite; }

[data-phase="transcribing"] .aurora-blob.a1 { background: var(--au-trans-1); }
[data-phase="transcribing"] .aurora-blob.a2 { background: var(--au-trans-2); }
[data-phase="transcribing"] .aurora-blob.a3 { background: var(--au-trans-3); }
[data-phase="cleaning"] .aurora-blob.a1 { background: var(--au-clean-1); }
[data-phase="cleaning"] .aurora-blob.a2 { background: var(--au-clean-2); }
[data-phase="cleaning"] .aurora-blob.a3 { background: var(--au-clean-3); }
[data-phase="inserting"] .aurora-blob.a1 { background: var(--au-insert-1); }
[data-phase="inserting"] .aurora-blob.a2 { background: var(--au-insert-2); }
[data-phase="inserting"] .aurora-blob.a3 { background: var(--au-insert-3); }
[data-phase="idle"] .aurora-blob.a1 { background: var(--au-idle-1); }
[data-phase="idle"] .aurora-blob.a2 { background: var(--au-idle-2); }
[data-phase="idle"] .aurora-blob.a3 { background: var(--au-idle-3); }
[data-phase] .aurora-blob { transition: background 0.9s ease; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30%,10%) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-20%,8%) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30%,-6%) scale(1.2); } }

.aurora-wave {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 1;
}
.aurora-wave span {
  display: inline-block;
  width: 3px;
  background: rgba(0,0,0,0.55);
  border-radius: 3px;
  animation: wave 1.1s ease-in-out infinite;
}
.aurora-wave-lg span { width: 4px; }
.aurora-wave span:nth-child(1)  { height: 12px; animation-delay: 0.00s; }
.aurora-wave span:nth-child(2)  { height: 22px; animation-delay: 0.05s; }
.aurora-wave span:nth-child(3)  { height: 16px; animation-delay: 0.10s; }
.aurora-wave span:nth-child(4)  { height: 30px; animation-delay: 0.15s; }
.aurora-wave span:nth-child(5)  { height: 20px; animation-delay: 0.20s; }
.aurora-wave span:nth-child(6)  { height: 38px; animation-delay: 0.25s; }
.aurora-wave span:nth-child(7)  { height: 14px; animation-delay: 0.30s; }
.aurora-wave span:nth-child(8)  { height: 26px; animation-delay: 0.35s; }
.aurora-wave span:nth-child(9)  { height: 34px; animation-delay: 0.40s; }
.aurora-wave span:nth-child(10) { height: 18px; animation-delay: 0.45s; }
.aurora-wave span:nth-child(11) { height: 28px; animation-delay: 0.50s; }
.aurora-wave span:nth-child(12) { height: 42px; animation-delay: 0.55s; }
.aurora-wave span:nth-child(13) { height: 16px; animation-delay: 0.60s; }
.aurora-wave span:nth-child(14) { height: 24px; animation-delay: 0.65s; }
.aurora-wave span:nth-child(15) { height: 36px; animation-delay: 0.70s; }
.aurora-wave span:nth-child(16) { height: 14px; animation-delay: 0.75s; }
.aurora-wave span:nth-child(17) { height: 22px; animation-delay: 0.80s; }
.aurora-wave span:nth-child(18) { height: 30px; animation-delay: 0.85s; }
.aurora-wave span:nth-child(19) { height: 18px; animation-delay: 0.90s; }
.aurora-wave span:nth-child(20) { height: 26px; animation-delay: 0.95s; }
.aurora-wave span:nth-child(21) { height: 14px; animation-delay: 1.00s; }
.aurora-wave span:nth-child(22) { height: 32px; animation-delay: 1.05s; }
.aurora-wave span:nth-child(23) { height: 20px; animation-delay: 1.10s; }
.aurora-wave span:nth-child(24) { height: 28px; animation-delay: 1.15s; }
.aurora-wave span:nth-child(25) { height: 16px; animation-delay: 1.20s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
  50%      { transform: scaleY(1.1); opacity: 1; }
}

[data-phase="idle"] .aurora-wave span { animation-play-state: paused; opacity: 0.3; transform: scaleY(0.3); }

/* hero ribbons (curved transcript) */
.hero-ribbon {
  position: absolute;
  pointer-events: none;
  width: 700px;
  max-width: 80vw;
  height: 220px;
  opacity: 0.55;
}
.hero-ribbon-1 { top: 18%; left: -180px; transform: rotate(-8deg); }
.hero-ribbon-2 { bottom: 8%; right: -160px; transform: rotate(4deg); opacity: 0.45; }
@media (max-width: 900px) { .hero-ribbon { display: none; } }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 28px 0 14px;
  overflow: hidden;
  margin: 40px 0 0;
}
.marquee-track {
  display: flex;
  gap: 28px;
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  color: var(--mute-2);
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee-track span:nth-child(even) { color: var(--line-2); font-size: 28px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-caption {
  text-align: center;
  margin: 16px 0 0;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute-2);
  padding-bottom: 14px;
}

/* ============ DEMO WINDOW ============ */
.demo-window {
  max-width: 920px;
  margin: 0 auto;
  background: #0e0d0b;
  color: #e7e3d8;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5), 0 12px 30px -16px rgba(0,0,0,0.2);
  border: 1px solid #1c1a16;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 14px;
}
.demo-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #1c1a16;
  background: #0a0907;
}
.dotw { width: 11px; height: 11px; border-radius: 50%; }
.dotw.r { background: #ff5f57; }
.dotw.y { background: #febc2e; }
.dotw.g { background: #28c840; }
.demo-title {
  margin-left: 14px;
  color: #93908a;
  font-size: 12.5px;
}
.demo-hint {
  margin-left: auto;
  color: #6e6a62;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.demo-hint kbd { background: #1c1a16; color: #e7e3d8; border-color: #2a2722; }

.demo-body {
  padding: 38px 32px 28px;
  min-height: 280px;
  position: relative;
}
.demo-row { display: flex; gap: 14px; padding: 6px 0; }
.demo-label { color: #6e6a62; width: 56px; }
.demo-val { color: #e7e3d8; }
.demo-divider { height: 1px; background: #1c1a16; margin: 14px 0 22px; }
.demo-text {
  min-height: 70px;
  font-size: 15px;
  line-height: 1.7;
  color: #e7e3d8;
  letter-spacing: 0.005em;
}
.caret {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: #e7e3d8;
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.demo-pill-wrap {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}
.demo-trigger {
  appearance: none;
  border: 1px solid #2a2722;
  background: linear-gradient(180deg, #1a1814, #0e0d0b);
  color: #e7e3d8;
  padding: 14px 34px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}
.demo-trigger:hover { background: linear-gradient(180deg, #221f1a, #14130f); border-color: #3a362f; }
.demo-trigger[aria-pressed="true"] {
  background: linear-gradient(180deg, #3a2d22, #1a1814);
  border-color: #6b4f33;
  box-shadow: 0 0 0 4px rgba(232,74,95,0.18), 0 0 24px rgba(255,107,157,0.25);
}
.demo-foot {
  display: flex; gap: 14px; justify-content: center;
  padding: 14px;
  background: #07060a;
  border-top: 1px solid #1c1a16;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: #6e6a62;
}
.d-sep { color: #3a362f; }

/* ============ STEPS ============ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  gap: 0 24px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px 32px;
  text-align: left;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(0,0,0,0.18); }
.step-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: var(--ink);
}
.step-icon svg { width: 22px; height: 22px; }
.step-num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin-bottom: 10px;
}
.step-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  margin: 0 0 12px;
}
.step-body { color: var(--mute); margin: 0; font-size: 14px; line-height: 1.55; }

/* connecting line between steps — gray base, fills to black on scroll */
.step-link {
  position: relative;
  align-self: center;
  height: 24px;
  width: 100%;
  display: block;
}
.step-link-rail,
.step-link-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  transform: translateY(-50%);
}
.step-link-rail { background: var(--line-2); }
.step-link-fill {
  background: var(--ink);
  transform-origin: left center;
  transform: translateY(-50%) scaleX(0);
  transition: transform 0.18s linear;
  z-index: 1;
}
/* leading-edge pulse — kept at fill endpoint so it never runs past the black */
.step-link-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.18s ease, left 0.18s linear;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(10,10,10,0.08);
  pointer-events: none;
}

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step-link { display: none; }
}

/* ============ ENGINE (LOCAL VS CLOUD) ============ */
.engine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 880px) { .engine-grid { grid-template-columns: 1fr; } }

.engine-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.engine-card-cloud { background: linear-gradient(180deg, #fff, #f7f5ee); }
.engine-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.engine-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 8px;
}
.pip { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); display: inline-block; }
.pip-cloud { background: linear-gradient(135deg, #6BB7FF, #C39BFF); }
.pip-rec { background: var(--au-rec-1); }
.pip-trans { background: var(--au-trans-2); }
.pip-clean { background: var(--au-clean-2); }
.pip-insert { background: var(--au-insert-1); }
.pip-idle { background: var(--au-idle-2); }

.engine-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
  margin: 0;
}
.badge {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.badge-default { background: var(--ink); color: var(--accent-on); }
.badge-optional { background: #f0ede4; color: var(--mute); border: 1px solid var(--line-2); }

.engine-lede { color: var(--mute); margin: 0 0 24px; line-height: 1.55; }

.model-list, .provider-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.model-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.model-name { font-weight: 500; font-size: 15px; }
.model-meta { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--mute-2); }
.tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0ede4;
  color: var(--ink);
}
.tag-faint { background: transparent; color: var(--mute); border: 1px solid var(--line-2); }

.provider-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.prov-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.prov-name { font-weight: 500; font-size: 15px; }
.prov-row code {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--mute);
  background: rgba(0,0,0,0.04);
  padding: 3px 9px;
  border-radius: 6px;
}
.prov-meta { color: var(--mute-2); font-size: 12.5px; margin: 4px 0 0; }

.engine-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
  margin-top: auto;
}
.check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink);
}
.check svg { color: #15c46f; }

.engine-note {
  text-align: center;
  margin: 36px auto 0;
  font-size: 14px;
  color: var(--mute);
  max-width: 640px;
}

/* ============ WPM ============ */
.wpm-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 760px) { .wpm-grid { grid-template-columns: 1fr; } }
.wpm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px 36px;
}
.wpm-flow {
  background: #0e0d0b;
  color: #f4f1e8;
  border-color: #0e0d0b;
}
.wpm-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0 0 8px;
}
.wpm-flow .wpm-label { color: rgba(244,241,232,0.5); }
.wpm-num {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 84px;
  line-height: 1;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.wpm-num em { font-style: italic; }
.wpm-unit {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  color: var(--mute);
  margin-left: 8px;
  font-style: italic;
}
.wpm-flow .wpm-unit { color: rgba(244,241,232,0.6); }
.wpm-foot { color: var(--mute); margin: 0 0 22px; font-size: 14px; }
.wpm-flow .wpm-foot { color: rgba(244,241,232,0.6); }
.wpm-bar {
  height: 6px;
  background: var(--bg-grey);
  border-radius: 999px;
  overflow: hidden;
}
.wpm-bar span {
  display: block; height: 100%;
  background: var(--ink);
  border-radius: 999px;
  animation: barIn 1.5s 0.2s cubic-bezier(.6,0,.3,1) both;
  transform-origin: left;
}
.wpm-bar-flow { background: rgba(255,255,255,0.08); }
.wpm-bar-flow span {
  background: linear-gradient(90deg, #FF6B9D, #FFB46B, #C39BFF, #6BB7FF);
}
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.wpm-tag {
  margin: 14px 0 0;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(244,241,232,0.7);
}

/* ============ FEATURES ============ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -22px rgba(0,0,0,0.18);
  border-color: var(--line-2);
}
.feature-glyph {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--bg-grey);
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: var(--ink);
}
.feature-glyph svg { width: 22px; height: 22px; }
.feature-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 10px;
}
.feature-body { color: var(--mute); margin: 0; font-size: 14.5px; line-height: 1.55; }
.feature-accent {
  background: #0e0d0b;
  color: #f4f1e8;
  border-color: #0e0d0b;
}
.feature-accent .feature-glyph { background: rgba(255,255,255,0.06); color: #f4f1e8; }
.feature-accent .feature-body { color: rgba(244,241,232,0.65); }

/* ============ SMART TYPING ============ */
.smart-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 900px) { .smart-grid { grid-template-columns: 1fr; } }
.smart-main {
  background: #0e0d0b;
  color: #f4f1e8;
  border-radius: var(--r-lg);
  padding: 38px 36px;
  position: relative;
  overflow: hidden;
}
.smart-main::before {
  content: '';
  position: absolute;
  inset: -50% -20% auto auto;
  width: 70%; height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 60%);
  pointer-events: none;
}
.smart-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,232,0.6);
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 18px;
}
.smart-eyebrow .pip { background: #ffffff; }
.smart-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.smart-body { color: rgba(244,241,232,0.75); margin: 0 0 30px; max-width: 380px; }
.smart-said, .smart-out {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.smart-out {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.smart-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,232,0.5);
  margin: 0 0 8px;
}
.smart-raw { margin: 0; line-height: 1.6; color: rgba(244,241,232,0.75); }
.smart-raw s { color: rgba(244,241,232,0.35); text-decoration-thickness: 2px; }
.smart-clean { margin: 0; line-height: 1.6; color: #f4f1e8; font-weight: 500; }

.smart-side { display: flex; flex-direction: column; gap: 18px; }
.smart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
}
.smart-card-num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0 0 8px;
}
.smart-card-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 8px;
}
.smart-card-body { color: var(--mute); margin: 0 0 14px; font-size: 14.5px; }
.filler-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filler {
  font-family: 'Geist Mono', monospace;
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-grey);
  color: var(--mute);
}
.filler s { text-decoration-thickness: 1.5px; }

/* ============ DICTIONARY ============ */
.dict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 760px) { .dict-grid { grid-template-columns: 1fr; } }
.dict {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
}
.dict header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.dict h4 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 28px; margin: 0; }
.dict-count {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute-2);
}
.dict-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dt {
  font-size: 13px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-grey);
  border: 1px solid transparent;
}
.dict-names .dt { background: #f0ede4; color: #4a3f2e; }
.dict-tech .dt { background: #e6effa; color: #1d3a66; }
.dict-medical .dt { background: #fbe8e8; color: #6e2828; }
.dict-legal .dt { background: #fbf1de; color: #6a4d11; }

.dict-callout {
  max-width: 720px;
  margin: 36px auto 0;
  text-align: center;
  padding: 22px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  font-size: 15px;
  line-height: 1.6;
}
.dict-callout strong { color: var(--ink); display: block; margin-bottom: 4px; }
.dict-callout span { color: var(--mute); }

/* ============ PHASE PILL ============ */
.phase-stage {
  display: grid; place-items: center;
  padding: 60px 0 30px;
  position: relative;
}
.phase-stage::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  max-width: 100vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,10,10,0.05), transparent 65%);
  z-index: 0;
}
.phase-stage .aurora-pill { position: relative; z-index: 1; }

.phase-meta { text-align: center; margin: 20px 0 30px; }
.phase-step {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 8px;
}
.phase-name {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  margin: 0 0 8px;
}
.phase-desc { color: var(--mute); margin: 0; }

.phase-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}
.phase-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s ease;
}
.phase-tab:hover { background: var(--bg); border-color: var(--line-2); }
.phase-tab.active {
  background: var(--ink);
  color: var(--accent-on);
  border-color: var(--ink);
}

/* ============ COMPARE TABLE ============ */
.cmp-wrap { max-width: 1100px; margin: 0 auto; overflow-x: auto; }
.cmp {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 14.5px;
}
.cmp th, .cmp td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.cmp th:first-child, .cmp td:first-child { text-align: left; min-width: 240px; }
.cmp thead th {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  background: var(--bg);
  font-weight: 500;
}
.cmp thead th.cmp-us { color: var(--ink); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:hover { background: var(--bg); }
.cmp .cmp-us { background: rgba(0,0,0,0.025); font-weight: 500; }
.cmp-y { color: #15c46f; font-size: 18px; }
.cmp-n { color: var(--line-2); font-size: 18px; }
.cmp-p { color: #d99135; font-size: 16px; }
.cmp-legend {
  display: flex; gap: 20px; justify-content: center;
  margin-top: 20px;
  font-size: 12.5px; color: var(--mute);
}

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 22px 4px;
  font: 400 19px/1.3 'Instrument Serif', Georgia, serif;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  text-align: left;
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--mute); }
.faq-ic {
  width: 28px; height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--mute);
  flex-shrink: 0;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.3s ease;
}
.faq-ic::before,
.faq-ic::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(.6,0,.2,1), opacity 0.25s ease;
}
.faq-ic::before { width: 12px; height: 1.6px; }   /* horizontal bar */
.faq-ic::after  { width: 1.6px; height: 12px; }   /* vertical bar */
.faq-item.is-open .faq-q .faq-ic {
  background: var(--ink);
  color: var(--accent-on);
  border-color: var(--ink);
  transform: rotate(180deg);
}
.faq-item.is-open .faq-q .faq-ic::after { transform: scaleY(0); opacity: 0; }

.faq-a {
  overflow: hidden;
  height: 0;
  transition: height 0.36s cubic-bezier(.6,0,.2,1);
}
.faq-a-inner {
  padding: 0 4px 22px;
  max-width: 680px;
}
.faq-a-inner p {
  margin: 0;
  color: var(--mute);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ============ CTA ============ */
.cta {
  background: #0a0a0a;
  color: #f4f1e8;
  text-align: center;
  padding: 140px 24px 120px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  width: 800px; height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}
.cta::after {
  content: '';
  position: absolute;
  bottom: -300px; left: 50%;
  width: 1000px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255,255,255,0.04), transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 820px; margin: 0 auto; }
.cta-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(60px, 10vw, 140px);
  line-height: 1;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  color: #f4f1e8;
}
.cta-title em { font-style: italic; color: rgba(244,241,232,0.6); }
.cta-sub { font-size: 18px; color: rgba(244,241,232,0.7); margin: 0 0 36px; line-height: 1.5; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-meta {
  margin: 36px 0 0;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(244,241,232,0.45);
}
.cta .btn-primary { background: #f4f1e8; color: #0a0a0a; }
.cta .btn-primary:hover { background: #fff; }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-grey);
  padding: 80px 24px 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto 60px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-tag { color: var(--mute); margin: 12px 0 0; font-size: 14px; max-width: 280px; }
.footer-col h5 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink); font-size: 14.5px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--mute); }
.footer-bottom {
  display: flex; justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--mute-2);
}
.footer-mark {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(120px, 24vw, 360px);
  line-height: 0.85;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  letter-spacing: -0.02em;
  margin-top: 20px;
  user-select: none;
  pointer-events: none;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
}

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ============================================================
   ACTIVE-APP PILL (hero + phase section)
   white glassmorphism — fits content, subtle border, soft shadow
   ============================================================ */
.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.06);
  color: var(--ink);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 1px 2px rgba(0,0,0,0.04),
    0 6px 18px -10px rgba(0,0,0,0.08);
  position: relative;
  isolation: isolate;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  font-family: 'Geist', sans-serif;
  /* fixed width so the pill never shrinks/expands as the phase label
     changes — keeps the layout perfectly stable */
  width: 210px;
  text-align: left;
}
.app-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 220% at 0% 0%, rgba(255,255,255,0.55), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.05));
  pointer-events: none;
  z-index: -1;
}
html[data-theme="dark"] .app-pill {
  background: rgba(28,28,28,0.65);
  border-color: rgba(255,255,255,0.10);
  color: #f4f1e8;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 1px 2px rgba(0,0,0,0.25),
    0 6px 18px -10px rgba(0,0,0,0.5);
}

.app-pill-icon {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50%;
  flex: 0 0 34px;
  display: grid; place-items: center;
  overflow: hidden;
  background: transparent;
}
.app-pill-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.app-pill-text {
  display: inline-flex;
  align-items: baseline;
  /* tiny gap between the status word and its 3-dot indicator — they
     read as a single "label · activity" unit */
  gap: 1px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: inherit;
  position: relative;
  white-space: nowrap;
  justify-content: flex-start;
}
.app-pill-status {
  display: inline-block;
  position: relative;
  text-align: left;
  transition: opacity 0.3s ease;
}
.app-pill[data-phase="cleaning"] .app-pill-status {
  background: linear-gradient(110deg, currentColor 20%, rgba(255,255,255,0.25) 45%, rgba(0,0,0,0.5) 55%, currentColor 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: pill-shimmer 1.6s linear infinite;
}
@keyframes pill-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

.app-pill-dots {
  display: inline-flex;
  gap: 2px;
  margin-left: 1px;
  align-items: baseline;
}
.app-pill-dots i {
  width: 3px; height: 3px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.25;
  animation: pill-dot 1.3s ease-in-out infinite;
}
.app-pill-dots i:nth-child(2) { animation-delay: 0.15s; }
.app-pill-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pill-dot {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(-2px); }
}

/* Cleaning shimmer — a soft aurora band (purple → pink → blue) glides
   across the status word. Light, on-brand, and only fires on this one
   phase so it actually *means* something. */
.app-pill[data-phase="cleaning"] .app-pill-status {
  background:
    linear-gradient(110deg,
      var(--ink) 0%,
      var(--ink) 36%,
      #b59cff 46%,
      #f0a8d4 50%,
      #8ec7ff 54%,
      var(--ink) 64%,
      var(--ink) 100%
    );
  background-size: 240% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: pill-shimmer 2s linear infinite;
}
.app-pill[data-phase="idle"] .app-pill-dots i { animation-play-state: paused; opacity: 0.18; }

/* large variant for phase section */
.app-pill-lg {
  padding: 8px 26px 8px 8px;
  gap: 12px;
  font-size: 16px;
}
.app-pill-lg .app-pill-icon { width: 40px; height: 40px; flex-basis: 40px; }
.app-pill-lg .app-pill-text { font-size: 16px; }

/* idle phase fades slightly so the pill reads as "resting" — no
   scale tweaks per-phase, the pill width stays rock-solid. */
.app-pill[data-phase="idle"] { opacity: 0.85; }

/* The active-app pill lives in its own section AFTER the hero, so it
   never crowds the front screen — it only appears once the visitor
   starts scrolling. */
.hero-pill-section {
  padding: 56px 24px 12px;
  max-width: 1240px;
  margin: 0 auto;
}
.hero-pill-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
@media (max-width: 600px) {
  .hero-pill-section { padding: 40px 24px 4px; }
}
.hero-meta-inline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
  margin: 0;
}

/* phase stage tweaks for new pill */
#phasePillStage { padding: 50px 0 28px; min-height: 120px; }
#phasePillStage::before {
  width: 360px; height: 200px;
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.06), transparent 70%);
}

/* ============================================================
   SMART TYPING — Self-corrections row
   ============================================================ */
.smart-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1180px;
  margin: 18px auto 0;
}
@media (max-width: 900px) { .smart-grid-bottom { grid-template-columns: 1fr; } }

.self-corr-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.self-corr-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  margin: 2px 0 0;
  letter-spacing: -0.005em;
}
.self-corr-title em { font-style: italic; color: var(--mute); }
.self-corr-body { color: var(--mute); margin: 0; font-size: 14.5px; line-height: 1.55; }
.self-corr-body em { font-style: italic; color: var(--ink); }

.self-corr-said {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.self-corr-raw {
  margin: 0;
  line-height: 1.65;
  color: var(--ink-2);
  font-size: 15px;
}
.self-corr-raw s {
  color: var(--mute-2);
  text-decoration-color: var(--mute-2);
  text-decoration-thickness: 1.5px;
}
.self-corr-raw b {
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(21,196,111,0.22) 62%);
  padding: 0 2px;
  border-radius: 2px;
}

.self-corr-out {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0 2px;
}
.self-corr-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--accent-on);
  flex-shrink: 0;
}
.self-corr-clean {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

/* right-side extras: stays private + toggle */
.smart-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) { .smart-extras { grid-template-columns: 1fr; } }

.extra-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.extra-private { background: linear-gradient(180deg, #fff, #f4f1e8); }
.extra-glyph {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-grey);
  color: var(--ink);
  margin-bottom: 6px;
}
.extra-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
  margin: 0;
}
.extra-body {
  color: var(--mute);
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.extra-body strong { color: var(--ink); font-weight: 600; }

.extra-toggle-head {
  display: flex; justify-content: space-between; align-items: center;
}
.extra-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-2);
}
.extra-toggle .extra-body strong { color: var(--ink); }

/* Real toggle button */
.tf-toggle {
  position: relative;
  width: 46px; height: 26px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  --on-bg: var(--ink);
  --off-bg: #d8d4c8;
}
.tf-toggle-track {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: var(--off-bg);
  transition: background 0.28s ease;
}
.tf-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 0 0 0.5px rgba(0,0,0,0.04);
  transition: transform 0.28s cubic-bezier(.6,0,.2,1);
}
.tf-toggle[aria-checked="true"] .tf-toggle-track { background: var(--on-bg); }
.tf-toggle[aria-checked="true"] .tf-toggle-thumb { transform: translateX(20px); }
.tf-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 999px; }

/* dimmed extras when smart typing toggled off — only affects the
   self-corrections card; the big black "Speak. We polish." card
   is always shown in its polished state */
.smart-off .self-corr-out,
.smart-off .self-corr-clean { opacity: 0.45; }
.smart-off .self-corr-raw s { text-decoration: none; color: var(--ink-2); }

/* ============================================================
   PUNCTUATION compare (smart-card 02)
   ============================================================ */
.punct-compare {
  margin-top: 6px;
  display: grid;
  gap: 8px;
}
.punct-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.4;
}
.punct-row .punct-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-2);
}
.punct-row .punct-text {
  margin: 0;
  color: var(--ink);
}
.punct-before {
  background: rgba(225,90,90,0.06);
  border: 1px dashed rgba(225,90,90,0.35);
}
.punct-before .punct-label { color: #b54a4a; }
.punct-before .punct-text { color: var(--mute); }
.punct-after {
  background: rgba(21,196,111,0.06);
  border: 1px solid rgba(21,196,111,0.35);
}
.punct-after .punct-label { color: #1b8a5a; }
.punct-hi {
  background: rgba(21,196,111,0.28);
  color: var(--ink);
  padding: 0 3px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(21,196,111,0.45);
  font-weight: 600;
}

/* punct compare: single pair now — give it a bit of breathing room */
.punct-row { padding: 11px 14px; }

/* ============================================================
   DOWNLOAD BUTTON GLYPH — snappy 4-square scramble on hover
   ============================================================ */
.btn .dl-icon {
  width: 14px; height: 14px;
  display: inline-block;
  flex-shrink: 0;
  overflow: visible;
}
.btn-lg .dl-icon { width: 15px; height: 15px; }
.btn .dl-icon rect {
  transform-origin: center center;
  transition:
    transform 0.42s cubic-bezier(.55,.1,.2,1.2),
    opacity 0.28s ease;
}
.btn:hover .dl-icon rect {
  animation: dl-shuffle 0.7s cubic-bezier(.55,.1,.2,1) both;
}
.btn:hover .dl-icon rect:nth-of-type(1) { animation-delay: 0s;    }
.btn:hover .dl-icon rect:nth-of-type(2) { animation-delay: 0.06s; }
.btn:hover .dl-icon rect:nth-of-type(3) { animation-delay: 0.12s; }
.btn:hover .dl-icon rect:nth-of-type(4) { animation-delay: 0.18s; }
@keyframes dl-shuffle {
  0%   { transform: translate(0,0)   rotate(0deg)  scale(1);    opacity: 1;   }
  35%  { transform: translate(3px,-3px) rotate(45deg) scale(0.6); opacity: 0.55; }
  70%  { transform: translate(-2px,2px) rotate(-25deg) scale(1.15); opacity: 1; }
  100% { transform: translate(0,0)   rotate(0deg)  scale(1);    opacity: 1;   }
}

/* arrow form: snappy press + bounce on hover for the ghost "Watch demo" button */
.btn-ghost svg,
.btn-ghost-light svg {
  transition: transform 0.32s cubic-bezier(.55,.1,.2,1.2);
}
.btn-ghost:hover svg,
.btn-ghost-light:hover svg {
  animation: btn-mic-tap 0.55s cubic-bezier(.55,.1,.2,1) both;
}
@keyframes btn-mic-tap {
  0%   { transform: translateY(0)    rotate(0); }
  35%  { transform: translateY(-3px) rotate(-8deg); }
  70%  { transform: translateY(1px)  rotate(4deg); }
  100% { transform: translateY(0)    rotate(0); }
}

/* ============================================================
   SMART-MAIN illustration (top-right of dark "Speak. We polish.")
   ============================================================ */
.smart-main { position: relative; }
.smart-illu {
  position: absolute;
  top: 10px;
  right: 10px;
  /* bigger so it reads as part of the composition, lower opacity so
     it sits softly behind the headline without competing with it */
  width: 320px;
  height: 320px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: smart-illu-float 9s ease-in-out infinite;
}
.smart-illu svg { width: 100%; height: 100%; display: block; }
.smart-main > *:not(.smart-illu) { position: relative; z-index: 1; }
@keyframes smart-illu-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-6px) rotate(2deg); }
}
@media (max-width: 760px) {
  .smart-illu { width: 180px; height: 180px; top: 6px; right: 6px; opacity: 0.4; }
}

/* ============================================================
   FINAL CTA illustrations (left + right)
   ============================================================ */
.cta-illu {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 480px;
  pointer-events: none;
  z-index: 0;
}
.cta-illu svg { width: 100%; height: 100%; display: block; }
/* Mascot sits a bit further inside on the left; both illustrations
   are softer now so they don't fight the headline. */
.cta-illu-left  { left: -20px; width: 280px; height: 360px; opacity: 0.85; animation: cta-illu-drift 14s ease-in-out infinite; }
.cta-illu-right { right: -40px; opacity: 0.55; animation: cta-illu-drift 16s ease-in-out -3s infinite reverse; }
.cta-mascot { animation-name: cta-mascot-bob; }
@keyframes cta-mascot-bob {
  0%, 100% { transform: translateY(-50%) translateX(0) rotate(0); }
  50%      { transform: translateY(-52%) translateX(6px) rotate(2deg); }
}
@keyframes cta-illu-drift {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(-46%) translateX(10px); }
}
.cta-inner { position: relative; z-index: 1; }
@media (max-width: 900px) { .cta-illu { display: none; } }

/* ============================================================
   MARQUEE — icon + name pairs
   ============================================================ */
.marquee-track {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  color: var(--ink);
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  width: max-content;
}
.m-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  font-size: 26px;
  color: var(--ink);
  font-weight: 400;
}
.m-ico {
  width: 26px; height: 26px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: #fff;
  flex-shrink: 0;
}
.m-ico svg { width: 100%; height: 100%; display: block; }
.m-sep {
  color: var(--line-2);
  font-size: 22px;
  font-family: 'Geist Mono', monospace;
}


/* ============================================================
   MOBILE RESPONSIVENESS — global polish for narrow viewports.
   ============================================================ */
@media (max-width: 880px) {
  .nav { padding: 8px 10px 8px 18px; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 9px 12px; }
}

@media (max-width: 720px) {
  /* Section padding tightens up so content has room to breathe */
  .section, .section-mid, .section-tight, .section-grey { padding: 72px 20px; }
  .section-head { margin-bottom: 40px; }
  .lede { font-size: 16px; margin-top: 16px; }

  /* Hero — keep buttons full-width-ish, stacked */
  .hero-cta { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-eyebrow-row { gap: 6px; }
  .key-pill { font-size: 11px; padding: 5px 11px; }

  /* Demo window — smaller chrome + body padding */
  .demo-window { font-size: 12.5px; }
  .demo-body { padding: 24px 20px 20px; }
  .demo-chrome { padding: 10px 12px; }
  .demo-hint { display: none; }

  /* Marquee — tighter type so it doesn't overwhelm small screens */
  .marquee-track { font-size: 22px; gap: 18px; }
  .m-app { font-size: 20px; }
  .m-ico { width: 22px; height: 22px; }

  /* WPM stack — keep numbers readable */
  .wpm-card { padding: 28px 24px; }
  .wpm-num { font-size: 68px; }

  /* Engine card padding */
  .engine-card { padding: 28px 22px; }
  .engine-title { font-size: 30px; }

  /* Smart cards — tighter padding */
  .smart-main { padding: 28px 22px; }
  .smart-title { font-size: 44px; }
  .smart-card { padding: 22px 22px; }

  /* Phase pill section */
  .phase-name { font-size: 36px; }
  .phase-tabs { gap: 5px; }
  .phase-tab { padding: 8px 12px; font-size: 12.5px; }

  /* Compare table — give the first column room so labels don't wrap awful */
  .cmp th, .cmp td { padding: 12px 12px; font-size: 13px; }
  .cmp th:first-child, .cmp td:first-child { min-width: 180px; }

  /* FAQ — slightly smaller question text */
  .faq-q { font-size: 17px; padding: 20px 4px; }

  /* CTA — softer padding, hide BOTH mascots so the copy owns the space */
  .cta { padding: 96px 20px 88px; }
  .cta-illu { display: none; }
  .cta-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .cta-sub br { display: none; }

  /* Steps connector hidden already; ensure cards stack roomy */
  .step { padding: 26px 22px 28px; }
  .step-title { font-size: 28px; }

  /* Footer brand grid stacks tighter */
  .footer { padding: 56px 20px 0; }
  .footer-grid { gap: 30px; }
  .footer-mark { font-size: 22vw; }
}

@media (max-width: 480px) {
  /* Nav — keep brand + CTA only; nav-links already hidden < 880px */
  .nav { gap: 12px; padding: 8px 8px 8px 14px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 24px; height: 24px; }

  /* Hero polish */
  .hero-title { margin-bottom: 22px; }
  .hero-meta { font-size: 11px; }

  /* Engine list rows simplify */
  .model-list li, .provider-list li { grid-template-columns: 1fr auto; gap: 8px; }
  .model-list .tag { display: none; }

  /* Phase tabs — only show 3 most important, wrap others */
  .phase-tabs { max-width: 100%; }

  /* Compare — make the table scroll horizontally cleanly */
  .cmp-wrap { margin: 0 -20px; padding: 0 20px; }
  .cmp { font-size: 12.5px; }

  /* Dict callout */
  .dict-callout { padding: 18px 20px; font-size: 14px; }

  /* Smart-illu shrink further */
  .smart-illu { width: 140px; height: 140px; opacity: 0.32; }

  /* Hero pill section heading slightly tighter */
  .hero-pill-heading { font-size: 28px; }
  .hero-pill-lede { font-size: 14.5px; }
}

/* Reduced motion — kill the decorative aside + mascot animations */
@media (prefers-reduced-motion: reduce) {
  .hero-aside,
  .hero-aside-wave i,
  .hero-aside-pill-text i,
  .cta-mascot,
  .smart-illu,
  .marquee-track {
    animation: none !important;
  }
}


/* ============================================================
   HERO — single badge eyebrow (restored)
   ============================================================ */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.04em;
  color: var(--mute);
  padding: 7px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0 0 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 4px 12px -6px rgba(0,0,0,0.08);
  text-wrap: nowrap;
  max-width: 100%;
}
@media (max-width: 480px) {
  .hero-eyebrow { font-size: 10.5px; padding: 6px 12px; }
  .hero-eyebrow span:last-child { font-size: 10.5px; }
}

/* ============================================================
   HERO — in-hero pill + hotkey hint row.
   Replaces the standalone pill section that used to sit below the
   fold. Now first-time visitors see it without scrolling.
   ============================================================ */
.hero-pill-inline {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-pill-inline .app-pill { animation: hero-pill-rise 0.7s 0.4s cubic-bezier(.55,.1,.2,1) both; }
@keyframes hero-pill-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Drop the old min-height that pushed the pill section below the
   fold — the hero now contains the pill itself. */
.hero { min-height: auto !important; padding-top: 36px !important; padding-bottom: 80px !important; }
@media (max-width: 600px) {
  .hero { padding-top: 24px !important; padding-bottom: 56px !important; }
}

/* ============================================================
   HERO TITLE — tighter mobile clamp so it never feels tiny.
   ============================================================ */
.hero-title {
  /* Mobile floor bumped to 56px (from 44px) so the headline still
     dominates the small-screen hero. */
  font-size: clamp(56px, 9.5vw, 156px);
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(48px, 13vw, 72px); margin-bottom: 18px; }
  .hero-sub { font-size: 15px; }
}

/* ============================================================
   NAV — mobile menu toggle + expanding panel
   ============================================================ */
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin-left: auto;
  width: 40px; height: 40px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.nav-toggle:hover { background: rgba(0,0,0,0.04); }
.nav-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav-toggle-box {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.nav-toggle-bar {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transform-origin: center;
  transition:
    transform 0.36s cubic-bezier(.6,0,.2,1),
    opacity 0.2s ease,
    width 0.28s ease;
  margin-left: -9px;
}
.nav-toggle-bar-1 { top: 14px; }
.nav-toggle-bar-2 { top: 50%; margin-top: -1px; }
.nav-toggle-bar-3 { top: 24px; }

/* Open state — morph to an X */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar-1 {
  transform: translateY(5.8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar-2 {
  opacity: 0;
  transform: scaleX(0.3);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar-3 {
  transform: translateY(-5.2px) rotate(-45deg);
}

/* Mobile menu panel — expands DOWN from the nav with smooth height
   + opacity transition, items stagger in from below. */
.nav-mobile {
  position: absolute;
  left: 12px; right: 12px;
  top: calc(100% + 6px);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 50px -22px rgba(0,0,0,0.18);
  overflow: hidden;
  transform-origin: top center;
  /* closed state */
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    max-height 0.42s cubic-bezier(.6,0,.2,1),
    opacity 0.22s ease;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile.is-open {
  max-height: 420px;
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-list {
  list-style: none;
  margin: 0; padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile-list li {
  /* per-item stagger via --i (set inline on each <li>) */
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.32s ease,
    transform 0.42s cubic-bezier(.55,.1,.2,1);
  transition-delay: calc(var(--i, 0) * 50ms);
}
.nav-mobile.is-open .nav-mobile-list li {
  opacity: 1;
  transform: translateY(0);
}
.nav-mobile-list a {
  display: block;
  padding: 12px 16px;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--ink);
  border-radius: 14px;
  transition: background 0.2s ease;
}
.nav-mobile-list a:hover { background: rgba(0,0,0,0.04); }
.nav-mobile-cta { margin-top: 8px; padding: 0 6px; }
.nav-mobile-cta .btn { width: 100%; justify-content: center; padding: 14px 18px; font-size: 14.5px; font-family: 'Geist', sans-serif; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ============================================================
   CTA — floating pill silhouettes on BOTH sides (lighter)
   ============================================================ */
.cta-pills {
  width: 280px;
  height: 480px;
  opacity: 0.7;
}
.cta-illu-left.cta-pills  { left:  clamp(-20px, 1vw, 24px); animation: cta-pills-drift 16s ease-in-out infinite; }
.cta-illu-right.cta-pills { right: clamp(-20px, 1vw, 24px); animation: cta-pills-drift 18s ease-in-out -4s infinite reverse; }

@keyframes cta-pills-drift {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(calc(-50% - 6px)) translateX(6px); }
}

@media (max-width: 880px) {
  .cta-illu { display: none; }
}

/* WPM heading sits a little tighter than other section heads */
.wpm-head { margin-bottom: 40px; }
