/* ============================================================
   pravaani.ai landing site: "Vani, flowing" (landing/docs/redesign-2026-10.md).
   Every colour, size and weight comes from tokens.css (loaded first);
   landing/fx/scripts/check-design.mjs enforces it. A deep night band carries
   the voice river; paper bands around it. Product accents identify products:
   Agents peacock, Studio sindoor, Speech indigo. Marigold is the signal.
   ============================================================ */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  font-weight: var(--weight-regular);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 var(--space-4); }
h1, h2, h3, h4 { margin: 0; font-weight: var(--weight-semibold); text-wrap: balance; hyphens: manual; }
p, li, dd, figcaption, summary { text-wrap: pretty; }
table, .budget-seg, .section-nav__count, code, .sample-time, .proof-strip strong { font-variant-numeric: tabular-nums; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: var(--weight-semibold); }
code, pre { font-family: var(--font-mono); }
code { font-size: var(--text-caption); }
.plain-list { list-style: none; }
.icon { width: 20px; height: 20px; flex: none; }
::selection { background: var(--marigold); color: var(--night); }

/* Shaped scripts: no tracking or case transforms, room for marks above and stacks below,
   no faked weights, words never broken inside. */
:lang(hi), :lang(mr), :lang(ne), :lang(sa), :lang(brx), :lang(doi), :lang(gom), :lang(mai),
:lang(bn), :lang(as), :lang(ta), :lang(te), :lang(kn), :lang(ml), :lang(gu), :lang(pa),
:lang(or), :lang(sat), :lang(mni), :lang(ks), :lang(sd), :lang(ar) {
  letter-spacing: normal; text-transform: none; line-height: var(--leading-script);
  font-synthesis-weight: none; word-break: keep-all; line-break: strict; hyphens: none;
}
:lang(hi-Latn) { line-height: inherit; font-style: italic; }
:lang(ur) { font-family: var(--font-nastaliq); line-height: var(--leading-nastaliq); letter-spacing: normal; font-synthesis-weight: none; word-break: keep-all; hyphens: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.on-night :focus-visible { outline-color: var(--focus-on-night); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--ink); color: var(--ink-inverse);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-control);
  font-weight: var(--weight-semibold); text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: calc(var(--w-page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type roles ---------- */
.hero-title, .t-display, .h1, main h1 {
  font-family: var(--font-display); font-stretch: var(--display-width); font-weight: var(--weight-display);
  font-size: var(--text-6xl); line-height: var(--leading-6xl); letter-spacing: var(--tracking-display);
}
.h2 {
  font-family: var(--font-display); font-stretch: var(--display-width); font-weight: var(--weight-display);
  font-size: var(--text-5xl); line-height: var(--leading-5xl); letter-spacing: var(--tracking-display);
}
.h3, .t-card-lg {
  font-family: var(--font-display); font-stretch: var(--display-width-narrow); font-weight: var(--weight-display);
  font-size: var(--text-2xl); line-height: var(--leading-2xl); letter-spacing: var(--tracking-tight);
}
main h3 { font-size: var(--text-lg); line-height: var(--leading-2xl); }
/* Indic text inside a display heading: the Anek face for its script, and room for matras and stacks. */
:is(.hero-title, .h1, .h2, .h3, main h1, main h2, main h3) :lang(hi), :is(.hero-title, .h1, .h2, .h3, main h1, main h2, main h3) :lang(te),
:is(.hero-title, .h1, .h2, .h3, main h1, main h2, main h3) :lang(ta), :is(.hero-title, .h1, .h2, .h3, main h1, main h2, main h3) :lang(bn) {
  line-height: var(--leading-script-display);
}
.accent {
  font-family: var(--accent-family); font-style: var(--accent-style); font-weight: var(--accent-weight);
  font-stretch: 100%; letter-spacing: 0; color: var(--accent-ink);
}
.on-night .accent { color: var(--accent-ink-night); }
.lead { font-size: var(--text-lg); line-height: var(--leading-lg); color: var(--ink-muted); max-width: 38em; }
.note { font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink-muted); }
.caption { font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--ink-muted); }
.source { font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--ink-muted); }
.on-night .lead, .on-night .note, .on-night .caption, .on-night .source { color: var(--on-night-muted); }
.on-night-subtle { color: var(--on-night-subtle); }
/* Light cards placed on a night band keep paper text colours. */
.on-night :is(.sample-card, .call-card, .fan-source, .ld-node) :is(.lead, .note, .caption, .source) { color: var(--ink-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-4);
  font-family: var(--eyebrow-font); font-size: var(--eyebrow-size); line-height: var(--leading-caption);
  font-weight: var(--weight-medium); color: var(--ink-muted);
  text-transform: var(--eyebrow-case); letter-spacing: var(--tracking-eyebrow);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px; flex: none;
  background: var(--grad-thread);
}
.eyebrow .icon { width: 14px; height: 14px; }
.eyebrow--agents { color: var(--agents); }
.eyebrow--studio { color: var(--studio); }
.eyebrow--speech { color: var(--speech); }
.eyebrow--agents::before { background: var(--agents); }
.eyebrow--studio::before { background: var(--studio); }
.eyebrow--speech::before { background: var(--speech); }
.eyebrow--night { color: var(--on-night-muted); }
.eyebrow--night::before { background: var(--grad-glow); }
.ink { color: var(--ink); }
.plain-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.plain-link:hover { text-decoration-thickness: 2px; }

/* Below the fold, sections are laid out and painted only as they near the viewport, so the
   fonts of the scripts they show load then, not with the first screen. Sizes are remembered
   once rendered (auto), so the page does not jump back. */
main > section:nth-of-type(n+3), .site-footer { content-visibility: auto; contain-intrinsic-size: auto 760px; }
@media print { main > section, .site-footer { content-visibility: visible; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); border-bottom: 1px solid var(--line-faint);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  view-transition-name: site-header;
}
.header-inner { display: flex; align-items: center; gap: var(--space-3); min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: var(--space-3);
  text-decoration: none; min-height: 44px; margin-right: auto; border-radius: var(--radius-control);
}
.brand img { flex: none; width: 34px; height: 34px; border-radius: 10px; }
.brand-word {
  font-family: var(--font-display); font-stretch: var(--display-width); font-weight: var(--weight-bold);
  font-size: var(--text-xl); line-height: var(--leading-xl); letter-spacing: var(--tracking-tight);
}
.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav-list { display: flex; align-items: center; gap: var(--space-1); list-style: none; }
.nav-link, .menu-button {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-3);
  border: 0; border-radius: var(--radius-control); background: transparent;
  color: var(--ink); font: inherit; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.nav-link:hover, .menu-button:hover, .menu-button[aria-expanded="true"] { background: var(--paper-muted); }
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-color: var(--marigold); }
.chev { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.menu-button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu { position: relative; }
.menu-panel {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 340px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-raised);
  padding: var(--space-2); list-style: none; z-index: 60;
}
.menu-panel[hidden] { display: none; }
/* Closed from the first paint: site.js (deferred) sets [hidden] only after the page has
   drawn, so without this every menu flashed open on load. The button says it is closed
   in the markup, so the panel stays hidden until it is opened. */
.js .menu-button[aria-expanded="false"] + .menu-panel { display: none; }
.menu--left .menu-panel { left: 0; right: auto; }
.menu-item {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-3); min-height: 44px; border-radius: var(--radius-control);
  text-decoration: none; color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.menu-item:hover, .menu-item[aria-current="page"] { background: var(--paper-muted); }
.menu-item strong { display: block; font-size: var(--text-sm); line-height: var(--leading-sm); }
.menu-item span.desc { display: block; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink-muted); }
.menu-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; }
.menu-ic .icon { width: 18px; height: 18px; }
.menu-ic--agents { background: var(--agents-tint); color: var(--agents-ink); }
.menu-ic--studio { background: var(--studio-tint); color: var(--studio-ink); }
.menu-ic--speech { background: var(--speech-tint); color: var(--speech-ink); }
.no-js .menu:hover .menu-panel, .no-js .menu:focus-within .menu-panel { display: block; }
.nav-toggle { display: none; }
.header-cta { margin-left: var(--space-2); }
@media (max-width: 879px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: var(--space-2);
    min-height: 44px; min-width: 44px; padding: 0 var(--space-3);
    border: 1px solid var(--line-strong); border-radius: var(--radius-control);
    background: var(--panel); color: var(--ink);
    font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold); cursor: pointer;
  }
  .nav-toggle .icon { width: 20px; height: 20px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-raised);
    padding: var(--space-3) var(--gutter) var(--space-5);
    flex-direction: column; align-items: stretch;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .nav[data-open="false"] { display: none; }
  .no-js .nav { position: static; box-shadow: none; }
  .no-js .nav-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link, .menu-button { width: 100%; justify-content: space-between; font-size: var(--text-base); line-height: var(--leading-base); }
  .menu-panel { position: static; box-shadow: none; min-width: 0; margin: var(--space-1) 0 var(--space-2); }
  .header-cta { order: 1; margin-left: 0; }
}
@media (max-width: 479px) { .site-header .header-cta { display: none; } .brand-word { font-size: var(--text-lg); } }

/* ---------- Buttons and links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 50px; padding: 0 var(--space-5); border: 1px solid transparent; border-radius: var(--radius-control);
  font: inherit; font-size: var(--text-base); line-height: var(--leading-sm); font-weight: var(--weight-semibold);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { min-height: 44px; padding: 0 var(--space-4); font-size: var(--text-sm); }
.btn--sm .icon { width: 16px; height: 16px; }
.btn--ink { background: var(--ink); color: var(--ink-inverse); }
.btn--ink:hover { background: var(--ink-strong); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--paper-muted); border-color: var(--ink); }
.btn--agents { background: var(--agents); color: var(--ink-inverse); }
.btn--agents:hover { background: var(--agents-strong); }
.btn--studio { background: var(--studio); color: var(--ink-inverse); }
.btn--studio:hover { background: var(--studio-strong); }
.btn--speech { background: var(--speech); color: var(--ink-inverse); }
.btn--speech:hover { background: var(--speech-strong); }
.btn--glow { background: var(--marigold); color: var(--night); box-shadow: 0 0 0 0 transparent; }
.btn--glow:hover { background: var(--marigold-glow); box-shadow: 0 10px 40px -8px var(--marigold); }
.btn--light { background: var(--on-night); color: var(--night); }
.btn--light:hover { background: var(--on-night-muted); }
.btn--ghost-light { background: var(--scrim-night); color: var(--on-night); border-color: var(--line-on-night); }
.btn--ghost-light:hover { border-color: var(--on-night); background: var(--glass-night); }
.btn-mark { width: 22px; height: 22px; border-radius: 6px; }
.magnetic { transform: translate(var(--mx, 0), var(--my, 0)); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.btn-row--stack { align-items: stretch; }
.text-link {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  color: var(--ink); font-weight: var(--weight-semibold); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-decoration-thickness var(--dur-fast), gap var(--dur) var(--ease-out);
}
.text-link .icon { width: 16px; height: 16px; }
.text-link:hover { text-decoration-thickness: 2px; gap: var(--space-3); }
.text-link--agents { color: var(--agents); }
.text-link--studio { color: var(--studio); }
.text-link--speech { color: var(--speech); }
.text-link--night { color: var(--marigold-glow); }

/* ---------- Sections and bands ---------- */
.section { position: relative; padding-block: var(--section-y); }
.band-paper { background: var(--paper); }
.band-muted { background: var(--paper-muted); }
.band-mist { background: var(--band-mist); }
.band-saffron { background: var(--band-saffron); }
.band-lilac { background: var(--band-lilac); }
.band-night, .cta-band, .hero-river { background: var(--grad-night); border-block: 1px solid var(--night-edge); }
.band-night--deep { background: var(--night-2); }
.on-night { color: var(--on-night); }
/* The flow texture: faint river lines behind the paper bands (a mask, so it takes the theme's line colour). */
:is(.band-paper, .band-muted, .band-mist, .band-saffron, .band-lilac)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: var(--line);
  -webkit-mask: url(../img/flow-tile.svg) 0 0 / 480px 240px repeat; mask: url(../img/flow-tile.svg) 0 0 / 480px 240px repeat;
  -webkit-mask-composite: source-in;
}
.band-muted::after { -webkit-mask-position: 120px 60px; mask-position: 120px 60px; }
:is(.band-paper, .band-muted, .band-mist, .band-saffron, .band-lilac) > .container { position: relative; z-index: 1; }
/* Technical style: a hairline grid behind the paper bands. */
:root[data-style="technical"] :is(.band-paper, .band-muted, .band-mist, .band-saffron, .band-lilac)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-faint) 1px, transparent 1px), linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, black, transparent 75%);
}
:root[data-style="technical"] :is(.band-paper, .band-muted, .band-mist, .band-saffron, .band-lilac)::after { display: none; }
.section-head { margin-bottom: var(--space-7); max-width: 52rem; }
.section-head > .h2 { margin-bottom: var(--space-4); }
.section-head > .lead:last-child, .section-head > .note:last-child { margin-bottom: 0; }
.section-head--tight { margin-bottom: var(--space-5); }
.section-intro { display: grid; gap: var(--space-4) var(--space-8); margin-bottom: var(--space-7); align-items: end; }
.section-intro .h2 { margin: 0; }
.section-intro .lead { margin: 0; }
@media (min-width: 1024px) { .section-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.split { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-9); align-items: start; } }
.prose > p { max-width: 62ch; }
.prose-lead { font-size: var(--text-xl); line-height: var(--leading-xl); color: var(--ink); }
.m-0 { margin: 0; } .mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mb-6 { margin-bottom: var(--space-6); }


/* ============================================================
   Home: the voice river hero
   ============================================================ */
.hero-river { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--space-8) var(--space-6); }
.river { position: absolute; inset: 0; z-index: -1; display: block; }
.river-poster { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 1.2s var(--ease-out); }
.rp { fill: none; stroke-width: 1.4; stroke-linecap: round; opacity: .7; stroke-dasharray: 2 10; animation: river-flow 18s linear infinite; }
.rp-a { stroke: var(--river-a); stroke-width: 2.2; stroke-dasharray: none; opacity: .85; }
.rp-b { stroke: var(--river-b); animation-duration: 22s; }
.rp-c { stroke: var(--river-c); animation-duration: 26s; }
.rp-d { stroke: var(--river-d); animation-duration: 30s; opacity: .55; }
.rp-e { stroke: var(--river-b); animation-duration: 34s; opacity: .4; }
.rp-dots circle { fill: var(--river-a); }
@keyframes river-flow { to { stroke-dashoffset: -240; } }
.river-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.river[data-live="true"] .river-canvas { opacity: 1; }
.river[data-live="true"] .river-poster { opacity: .18; }
.river[data-formed="true"] .river-glyph { opacity: 0; }
.river-glyph {
  position: absolute; right: max(4vw, calc((100vw - var(--w-page)) / 2)); top: 50%; transform: translateY(-58%);
  font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-glyph); line-height: 1;
  color: transparent; background: var(--grad-glow); -webkit-background-clip: text; background-clip: text;
  opacity: .92; filter: drop-shadow(0 0 40px var(--glass-night));
  transition: opacity .6s var(--ease-out), transform .9s var(--ease-out);
  pointer-events: none; user-select: none;
}
.river-glyph.is-swapping { opacity: 0; transform: translateY(-54%) scale(.94); }
.hero-grid { position: relative; z-index: 1; }
.hero-copy { max-width: 46rem; padding-block: var(--space-5) var(--space-6); }
.hero-title { margin: 0 0 var(--space-4); }
/* "Hears 22 · Speaks 22": the both-ways claim, linking to the per-language proof. */
.hero-badge {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 var(--space-4);
  padding: 7px 16px; border-radius: 999px; text-decoration: none; color: var(--on-night);
  background: color-mix(in srgb, var(--on-night) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--marigold-glow) 45%, transparent);
}
.hero-badge:hover, .hero-badge:focus-visible { background: color-mix(in srgb, var(--on-night) 12%, transparent); border-color: var(--marigold-glow); }
.hero-badge__main { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-lg); letter-spacing: -0.01em; }
.hero-badge__main b { color: var(--marigold-glow); font-weight: var(--weight-display); }
.hero-badge__sub { font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--on-night-muted); }
/* Short laptop screens: the badge shrinks to one line so the hero still fits one screen. */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero-badge { padding: 2px 12px; margin-bottom: var(--space-2); }
  .hero-badge__main { font-size: var(--text-sm); }
  .hero-badge__sub { font-size: var(--text-micro); letter-spacing: 0.04em; }
}
/* 720-tall laptops: the fine print under the buttons gives way to the badge (pricing and the demo stay one scroll below). */
@media (min-width: 1024px) and (max-height: 740px) { .hero-fine { display: none; } }
.lang-word { display: block; position: relative; min-height: 1.25em; color: var(--marigold-glow); }
.lang-word__base { display: inline-block; transition: opacity .5s var(--ease-out), filter .5s var(--ease-out), font-stretch .8s var(--ease-out); }
.lang-word__live { display: none; }
.lang-word.is-cycling .lang-word__base { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-word.is-cycling .lang-word__live { display: inline-block; line-height: var(--leading-script-display); transition: opacity .45s var(--ease-out), filter .45s var(--ease-out), transform .6s var(--ease-out); }
.lang-word__live.is-out { opacity: 0; filter: blur(8px); transform: translateY(.12em); }
.lang-word__live:lang(ur) { font-family: var(--font-nastaliq); line-height: 1.6; }
.hero-lead { font-size: var(--text-lg); line-height: var(--leading-lg); color: var(--on-night-muted); max-width: 42rem; margin-bottom: var(--space-5); }
.listen-btn {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 50px; padding: 0 var(--space-4);
  border: 1px dashed var(--line-on-night); border-radius: var(--radius-control); background: transparent; color: var(--on-night);
  font: inherit; font-size: var(--text-sm); font-weight: var(--weight-medium); cursor: pointer;
}
.listen-btn:hover { border-style: solid; }
.listen-btn[aria-pressed="true"] { background: var(--marigold); color: var(--night); border-color: var(--marigold); }
.listen-btn[hidden], .river-note[hidden] { display: none; }
.river-note { margin: var(--space-3) 0 0; max-width: 36rem; color: var(--on-night-subtle); }
.proof-strip {
  position: relative; z-index: 1; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-on-night); margin-top: var(--space-4);
}
.proof-strip li { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-4) var(--space-4) var(--space-2) 0; }
.proof-strip strong {
  font-family: var(--font-display); font-stretch: var(--display-width); font-size: var(--text-3xl); line-height: var(--leading-3xl);
  font-weight: var(--weight-semibold); color: var(--marigold-glow); letter-spacing: var(--tracking-tight);
}
.proof-strip span { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--on-night-muted); }
@media (min-width: 900px) {
  .proof-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .proof-strip li + li { padding-left: var(--space-4); border-left: 1px solid var(--line-on-night); }
}
@media (max-width: 899px) {
  .river-glyph { top: var(--space-6); right: var(--gutter); transform: none; font-size: var(--text-7xl); opacity: .5; }
  .river-glyph.is-swapping { transform: scale(.94); }
  .hero-copy { padding-top: var(--space-4); }
}

/* ============================================================
   Home: Why (people decide in the language they think in)
   ============================================================ */
.why-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .why-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } }
.why-title { margin-bottom: var(--space-5); }
.lang-word--inline { display: inline-block; min-height: 0; color: var(--accent-ink); font-family: var(--accent-family); font-style: var(--accent-style); font-weight: var(--accent-weight); font-stretch: 100%; letter-spacing: 0; }
.lang-word--inline.is-cycling .lang-word__live { font-family: var(--font-display); font-style: normal; font-weight: var(--weight-semibold); line-height: 1.2; }
.lang-word--inline .lang-word__live:lang(ur) { font-family: var(--font-nastaliq); line-height: 1.2; }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin: 0 0 var(--space-4); }
.stat dd { margin: 0; display: grid; gap: var(--space-2); padding-top: var(--space-3); border-top: 2px solid var(--ink); }
.stat-num {
  font-family: var(--font-display); font-stretch: var(--display-width); font-weight: var(--weight-bold);
  font-size: var(--text-6xl); line-height: .95; letter-spacing: var(--tracking-display); color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat:first-child .stat-num { color: var(--studio); }
.stat-label { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink-muted); max-width: 16rem; }
.stat-label sup { margin-left: 2px; }
.stat-label sup a, .footnotes a { color: var(--ink); }
.stat-label sup a { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: var(--text-micro); text-decoration: none; position: relative; top: -0.55em; }
.stat-label sup a:hover { background: var(--ink); color: var(--ink-inverse); }
.why-lead { font-size: var(--text-base); line-height: var(--leading-base); color: var(--ink); max-width: 36rem; margin-bottom: var(--space-4); }
.footnotes { list-style: none; counter-reset: fn; display: grid; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.footnotes li { counter-increment: fn; display: grid; grid-template-columns: 18px 1fr; gap: var(--space-2); font-size: var(--text-caption); line-height: var(--leading-sm); color: var(--ink-muted); }
.footnotes li::before { content: counter(fn); font-family: var(--font-mono); font-size: var(--text-caption); color: var(--ink); }
.footnotes cite { font-style: normal; color: var(--ink); font-weight: var(--weight-semibold); }
.footnotes li:target { background: var(--marigold-tint); border-radius: 6px; }
.why-visual { display: grid; gap: var(--space-5); }
@media (min-width: 1024px) { .why-visual { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--space-4); } }
.people { list-style: none; display: grid; gap: var(--space-3); }
@media (min-width: 640px) and (max-width: 1023px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 var(--space-3); align-items: start;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-card); background: var(--panel); border: 1px solid var(--line-faint); box-shadow: var(--shadow-soft);
}
.person-pin {
  position: absolute; top: -9px; right: var(--space-4); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--night); color: var(--marigold-glow); font-family: var(--font-mono); font-size: var(--text-micro); font-weight: var(--weight-semibold);
}
.person-art { grid-row: span 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; }
.person-art .icon { width: 22px; height: 22px; }
.person--ta .person-art { background: var(--agents-tint); color: var(--agents-ink); }
.person--pa .person-art { background: var(--marigold-tint); color: var(--marigold-ink); }
.person--as .person-art { background: var(--studio-tint); color: var(--studio-ink); }
.person-place { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); margin: 0; font-size: var(--text-sm); line-height: var(--leading-sm); }
.person-place strong { font-family: var(--font-display); font-size: var(--text-lg); }
.person-place span { font-family: var(--font-mono); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--ink-muted); }
.person-hello { margin: 0; font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-2xl); line-height: var(--leading-script-display); color: var(--ink); }
.person-what { margin: 0; font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink-muted); }
.why-map { position: relative; margin: 0; }
.map-dots, .map-flow { width: 100%; aspect-ratio: 612 / 696; }
.map-dots {
  background: var(--ink-muted); opacity: .5;
  -webkit-mask: url(../img/india-dots.svg) center / contain no-repeat; mask: url(../img/india-dots.svg) center / contain no-repeat;
}
.map-flow { position: absolute; inset: 0; overflow: visible; }
.mf { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 9; animation: river-flow 14s linear infinite; }
.mf-a { stroke: var(--speech); } .mf-b { stroke: var(--studio); } .mf-c { stroke: var(--agents); }
.mf-pulse { fill: var(--marigold); opacity: 0; filter: drop-shadow(0 0 6px var(--marigold)); }
.why-map.is-flowing .mf-pulse { opacity: 1; }
.mf-halo { fill: var(--marigold); opacity: .28; transform-box: fill-box; transform-origin: center; animation: halo 2.4s var(--ease-out) 3; animation-fill-mode: forwards; }
.mf-dot { fill: var(--night); stroke: var(--marigold); stroke-width: 2.5; }
.mf-num { fill: var(--marigold-glow); font-family: var(--font-mono); font-size: var(--text-base); font-weight: var(--weight-semibold); text-anchor: middle; }
.mf-label { fill: var(--ink); font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--weight-semibold); paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
.mf-label--end { text-anchor: end; }
@keyframes halo { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.8); opacity: 0; } }
.why-map figcaption { margin-top: var(--space-2); }
@media (max-width: 1023px) { .why-map { max-width: 460px; margin-inline: auto; } }
@media (min-width: 1024px) and (max-height: 820px) {
  .stat-num { font-size: var(--text-5xl); }
  .why-title { margin-bottom: var(--space-4); }
  .why-lead { margin-bottom: var(--space-3); }
  .stat dd { padding-top: var(--space-2); gap: var(--space-1); }
  .person { padding-block: var(--space-2); }
}
@media (prefers-reduced-motion: reduce) { .mf, .mf-halo { animation: none !important; } .mf-pulse { display: none; } }

/* ============================================================
   Home: Hear it (voice sampler) and the river of words
   ============================================================ */
.hear-grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1024px) { .hear-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } }
.hear-grid .section-head { margin-bottom: 0; }
.sampler {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel);
  box-shadow: var(--shadow-raised); padding: var(--space-5);
}
@media (min-width: 640px) { .sampler { padding: var(--space-6); } }
.sampler-tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-control); background: var(--paper-sunken); }
.sampler-tabs.fx-island { display: flex; }
.sampler-tab {
  position: relative; z-index: 1; flex: 1 1 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 56px; padding: var(--space-1) var(--space-3); border: 0; border-radius: calc(var(--radius-control) - 4px);
  background: transparent; color: var(--ink-muted); font: inherit; font-size: var(--text-base); line-height: var(--leading-sm); cursor: pointer;
}
.sampler-tab .tab-en { font-size: var(--text-caption); line-height: var(--leading-caption); }
.sampler-tab[aria-selected="true"] { color: var(--ink); font-weight: var(--weight-semibold); }
.sampler-tabs:not([data-fx-mounted]) .sampler-tab[aria-selected="true"] { background: var(--panel); box-shadow: var(--shadow-soft); }
.no-js .sampler-tabs { display: none; }
.no-js .sample-panel[hidden] { display: block; }
.sample-panel { padding-top: var(--space-5); }
.sample-player { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); }
.sample-play {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--studio); color: var(--ink-inverse); box-shadow: var(--shadow-raised);
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur-fast);
}
.sample-play:hover { background: var(--studio-strong); transform: scale(1.05); }
.sample-play .icon { width: 26px; height: 26px; grid-area: 1 / 1; }
.sample-play .icon + .icon, .sample-play.is-playing .icon:first-child { display: none; }
.sample-play.is-playing .icon + .icon { display: block; }
.no-js .sample-player { display: none; }
.js .sample-panel audio { display: none; }
.sample-panel audio { width: 100%; margin-bottom: var(--space-3); }
.wave { display: flex; align-items: center; gap: 2px; height: 72px; min-width: 0; overflow: hidden; }
@media (max-width: 479px) { .wave { gap: 1px; } .wave i:nth-child(even) { display: none; } .sample-play { width: 56px; height: 56px; } .sample-player { gap: var(--space-3); } }
.wave i { flex: 1 1 0; min-width: 2px; height: calc(var(--h) * 1%); min-height: 4px; border-radius: 3px; background: var(--line-strong); opacity: .55; transition: background-color .15s, opacity .15s; }
.wave i.is-on { background: var(--studio); opacity: 1; }
.sample-time { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--ink-muted); min-width: 3.5em; text-align: right; }
.sample-line { margin: var(--space-5) 0 var(--space-2); font-size: var(--text-xl); line-height: var(--leading-xl); color: var(--ink); }
.sample-line:lang(hi), .sample-line:lang(te) { line-height: var(--leading-script); }
.sample-en { margin: 0; color: var(--ink-muted); font-size: var(--text-prose); line-height: var(--leading-prose); }
.sampler-proof { margin: var(--space-5) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line-faint); }
.word-river { margin-top: var(--space-7); overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.word-river__track { display: flex; gap: var(--space-7); width: max-content; animation: words 70s linear infinite; }
.word-river span {
  font-family: var(--font-display); font-size: var(--text-4xl); line-height: var(--leading-script-display); white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
}
.word-river span:nth-child(3n+1) { color: var(--ink); -webkit-text-stroke: 0; }
.word-river span:lang(ur) { font-family: var(--font-nastaliq); line-height: 1.6; }
@keyframes words { to { transform: translateX(-50%); } }

/* ============================================================
   Home: products
   ============================================================ */
.product-grid { display: grid; gap: var(--space-5); }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product-panel {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--space-3) var(--space-3) var(--space-5);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.product-panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }
.product-panel > :not(.pp-visual) { margin-inline: var(--space-3); }
.pp-visual { position: relative; height: 128px; border-radius: calc(var(--radius-panel) - 8px); overflow: hidden; margin-bottom: var(--space-5); }
.pp-visual--agents { background: var(--agents-tint); }
.pp-visual--studio { background: var(--studio-tint); }
.pp-visual--speech { background: var(--speech-tint); }
.pp-bubble {
  position: absolute; max-width: 80%; padding: 6px 12px; border-radius: 14px; font-size: var(--text-caption); line-height: var(--leading-sm);
  background: var(--panel); color: var(--ink); box-shadow: var(--shadow-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pp-bubble--in { left: 14px; top: 14px; border-bottom-left-radius: 4px; }
.pp-bubble--out { right: 14px; top: 56px; background: var(--agents); color: var(--ink-inverse); border-bottom-right-radius: 4px; }
.pp-wave { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 3px; align-items: center; height: 26px; }
.pp-wave i { width: 3px; height: 100%; border-radius: 3px; background: var(--agents-ink); transform: scaleY(.4); animation: bar 1.1s var(--ease-in-out) infinite alternate; }
.pp-wave i:nth-child(2n) { animation-delay: -.3s; } .pp-wave i:nth-child(3n) { animation-delay: -.6s; } .pp-wave i:nth-child(4n) { animation-delay: -.9s; }
@keyframes bar { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.pp-frame { position: absolute; width: 46%; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--panel); box-shadow: var(--shadow-raised); border: 1px solid var(--line); }
.pp-frame::before { content: ""; position: absolute; left: 10%; right: 30%; top: 22%; height: 10%; border-radius: 4px; background: var(--studio); opacity: .8; }
.pp-frame::after { content: ""; position: absolute; left: 10%; right: 45%; top: 44%; height: 7%; border-radius: 4px; background: var(--line); box-shadow: 0 10px 0 var(--line); }
.pp-frame--a { left: 8%; top: 18%; transform: rotate(-5deg); }
.pp-frame--b { left: 28%; top: 12%; transform: rotate(2deg); }
.pp-frame--c { left: 48%; top: 22%; transform: rotate(6deg); }
.pp-chips { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.pp-chips b { padding: 0 10px; border-radius: var(--radius-pill); background: var(--studio); color: var(--ink-inverse); font-size: var(--text-caption); font-weight: var(--weight-regular); line-height: var(--leading-script); }
.pp-code { display: block; margin: 16px 16px 0; font-size: var(--text-caption); color: var(--speech-ink); white-space: nowrap; overflow: hidden; }
.pp-code .k { font-weight: var(--weight-bold); }
.pp-stream { position: absolute; left: 16px; right: 16px; bottom: 14px; padding: 6px 12px; border-radius: 10px; background: var(--panel); font-size: var(--text-sm); color: var(--ink); box-shadow: var(--shadow-soft); white-space: nowrap; overflow: hidden; }
.pp-stream b { color: var(--speech); animation: blink 1s steps(2) infinite; font-weight: var(--weight-regular); }
@keyframes blink { 50% { opacity: 0; } }
.product-name { display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); font-family: var(--font-mono); font-size: var(--text-micro); line-height: var(--leading-caption); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); font-weight: var(--weight-medium); }
.product-name .icon { width: 16px; height: 16px; }
.product-panel--agents .product-name { color: var(--agents); }
.product-panel--studio .product-name { color: var(--studio); }
.product-panel--speech .product-name { color: var(--speech); }
.product-panel h3 { font-family: var(--font-display); font-stretch: var(--display-width-narrow); font-size: var(--text-2xl); line-height: var(--leading-2xl); margin-bottom: var(--space-4); }
.mini-steps { list-style: none; counter-reset: s; display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.mini-steps li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; gap: var(--space-2); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink-muted); }
.mini-steps li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: var(--text-micro); color: var(--ink); }
.product-panel .btn-row { margin-top: auto; }

/* ============================================================
   Home: inside a call (pipeline) and the latency budget
   ============================================================ */
.pipeline { list-style: none; position: relative; display: grid; gap: var(--space-5); }
@media (min-width: 1024px) {
  .pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); }
  .pipeline::before {
    content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--on-night-subtle), var(--agents-glow), var(--speech-glow), var(--studio-glow), var(--marigold-glow));
    opacity: .6;
  }
  .pipeline::after {
    content: ""; position: absolute; left: 28px; top: 22px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--marigold-glow); box-shadow: 0 0 18px 4px var(--marigold);
    animation: pulse-travel 5s var(--ease-in-out) infinite;
  }
}
@keyframes pulse-travel { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(calc(min(100vw, var(--w-page)) - 2 * var(--gutter) - 70px)); opacity: 0; } }
.stage { position: relative; display: flex; flex-direction: column; gap: var(--space-2); }
.stage-node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--night-raised); border: 1px solid var(--night-line); color: var(--marigold-glow); margin-bottom: var(--space-2);
}
.stage-node .icon { width: 22px; height: 22px; }
.stage h3 { font-family: var(--font-display); font-size: var(--text-lg); line-height: var(--leading-2xl); }
.stage p { margin: 0; font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--on-night-muted); }
.stage-sample {
  margin-top: auto; padding: var(--space-3); border-radius: var(--radius-control);
  background: var(--glass-night); border: 1px solid var(--line-on-night); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--on-night);
}
.stage-sample:lang(hi) { line-height: var(--leading-script); }
.stage--asr .stage-node { color: var(--agents-glow); } .stage--llm .stage-node { color: var(--speech-glow); } .stage--tts .stage-node { color: var(--studio-glow); }
.night-foot { margin: var(--space-6) 0 0; }
.night-foot .text-link { margin-left: var(--space-2); min-height: 0; }
.latency-grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1024px) { .latency-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } .latency-grid .section-head { margin-bottom: 0; } }
.budget { margin: 0; padding: var(--space-6); border-radius: var(--radius-panel); background: var(--glass-night); border: 1px solid var(--line-on-night); }
.budget-ruler { display: flex; justify-content: space-between; margin-bottom: var(--space-2); font-family: var(--font-mono); font-size: var(--text-micro); color: var(--on-night-subtle); width: calc(100% * 1000 / 1100); }
.budget-bar { display: flex; height: 72px; gap: 3px; border-radius: var(--radius-control); overflow: hidden; }
.budget-seg {
  flex: var(--ms) 1 0; display: flex; align-items: flex-end; padding: var(--space-2) var(--space-3); color: var(--night);
  transform-origin: left; transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 180ms);
}
.latency-grid > * { min-width: 0; }
.budget-seg { min-width: 0; overflow: hidden; }
@media (max-width: 479px) { .budget { padding: var(--space-4); } .budget-seg { padding: var(--space-2) 6px; } .budget-seg b { font-size: var(--text-micro); } .budget-ruler span:nth-child(even) { visibility: hidden; } }
.budget-seg b { font-family: var(--font-mono); font-size: var(--text-caption); font-weight: var(--weight-semibold); white-space: nowrap; }
.reveal-ready .budget:not(.is-visible) .budget-seg { transform: scaleX(0); }
.seg--net { background: var(--marigold); } .seg--asr { background: var(--agents-glow); } .seg--llm { background: var(--speech-glow); } .seg--tts { background: var(--studio-glow); }
.budget-legend { list-style: none; display: grid; gap: var(--space-3); margin: var(--space-5) 0 var(--space-4); }
@media (min-width: 640px) { .budget-legend { grid-template-columns: 1fr 1fr; } }
.budget-legend li { display: flex; gap: var(--space-3); font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--on-night-muted); }
.budget-legend strong { color: var(--on-night); display: block; }
.swatch { flex: none; width: 14px; height: 14px; border-radius: 4px; margin-top: 3px; }
.swatch--net { background: var(--marigold); } .swatch--asr { background: var(--agents-glow); } .swatch--llm { background: var(--speech-glow); } .swatch--tts { background: var(--studio-glow); }
.budget figcaption { margin: 0; }

/* ============================================================
   Home + Studio: before/after scrubber, flow chips, Shorts teaser
   ============================================================ */
.studio-grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1024px) { .studio-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } .studio-grid .section-head { margin-bottom: 0; } }
.flow-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-5) 0; counter-reset: f; }
.flow-chips li {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-3);
  border-radius: var(--radius-chip); background: var(--studio-tint); color: var(--studio-ink); font-size: var(--text-sm); font-weight: var(--weight-medium);
}
.flow-chips li + li::before { content: ""; width: 10px; height: 1px; background: var(--studio-ink); margin-left: calc(-1 * var(--space-2) - 4px); margin-right: 2px; }
.flow-chips .icon { width: 16px; height: 16px; }
.scrub { margin: 0; }
.scrub-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-panel); overflow: hidden;
  background: var(--paper-sunken); box-shadow: var(--shadow-raised); border: 1px solid var(--line); touch-action: pan-y;
}
.scrub-stage:has(.scrub-range:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.scrub-after, .scrub-before { position: absolute; inset: 0; }
.scrub-after img, .scrub-before img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.scrub-before { clip-path: inset(0 calc(100% - var(--pos) * 1%) 0 0); background: var(--panel); }
.scrub-before img { filter: saturate(.6); }
.scrub-tag {
  position: absolute; left: var(--space-3); bottom: var(--space-3); display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 12px; border-radius: var(--radius-pill); background: var(--night); color: var(--on-night); font-size: var(--text-caption); line-height: var(--leading-caption); font-weight: var(--weight-semibold);
}
.scrub-tag .icon { width: 14px; height: 14px; }
.scrub-tag--after { left: auto; right: var(--space-3); background: var(--studio); color: var(--ink-inverse); }
.scrub-memo { position: absolute; left: var(--space-3); top: var(--space-3); display: flex; align-items: center; gap: 3px; height: 36px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--night); color: var(--marigold-glow); }
.scrub-memo .icon { width: 16px; height: 16px; margin-right: 4px; }
.scrub-memo i { width: 3px; height: 100%; border-radius: 2px; background: var(--marigold-glow); transform: scaleY(.4); animation: bar 1s var(--ease-in-out) infinite alternate; }
.scrub-memo i:nth-child(odd) { animation-delay: -.4s; } .scrub-memo i:nth-child(3n) { animation-delay: -.7s; }
.scrub-handle {
  position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 3px; margin-left: -1.5px; background: var(--on-night);
  box-shadow: 0 0 0 1px var(--night), 0 0 24px var(--glass-night); pointer-events: none;
}
.scrub-handle .icon {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; padding: 11px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: var(--on-night); color: var(--night); box-shadow: var(--shadow-raised);
}
.scrub-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.scrub-langs { display: flex; gap: var(--space-2); margin: var(--space-4) 0 var(--space-2); }
.scrub-langs button {
  min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-chip); border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink); font: inherit; font-size: var(--text-sm); cursor: pointer;
}
.scrub-langs button[aria-checked="true"] { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.no-js .scrub-langs, .no-js .scrub-handle { display: none; }
.no-js .scrub-before { clip-path: none; position: relative; aspect-ratio: auto; display: none; }
.shorts-teaser { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); }
.shorts-teaser-thumbs { display: flex; gap: var(--space-2); flex: none; }
.shorts-teaser-thumbs img { width: 36px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid var(--night); background: var(--night); }
.shorts-teaser-thumbs img + img { transform: rotate(6deg) translateY(4px); }
.shorts-teaser p { margin: 0; flex: 1; min-width: 0; }
.shorts-teaser .text-link { flex: none; }
@media (max-width: 639px) { .shorts-teaser { flex-wrap: wrap; } .shorts-teaser p { flex-basis: calc(100% - 120px); } }

/* ============================================================
   Languages: the delta (22 scheduled languages by script and product)
   ============================================================ */
.delta-legend { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-5); font-size: var(--text-sm); color: var(--ink-muted); }
.delta-legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.delta-key:first-of-type { margin-left: auto; }
.delta-groups { list-style: none; columns: 1; column-gap: var(--space-5); }
@media (min-width: 640px) { .delta-groups { columns: 2; } }
@media (min-width: 1024px) { .delta-groups { columns: 3; } }
@media (min-width: 1280px) { .delta-groups { columns: 4; } }
.script-group {
  break-inside: avoid; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 var(--space-3); margin-bottom: var(--space-4);
  padding: var(--space-3); border-radius: var(--radius-card); background: var(--panel); border: 1px solid var(--line-faint);
}
.script-glyph {
  grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--night); color: var(--marigold-glow); font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-2xl); line-height: 1.2;
}
.script-glyph:lang(ur) { font-family: var(--font-nastaliq); line-height: 1.2; }
.script-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); margin: 0 0 var(--space-1); font-size: var(--text-sm); line-height: var(--leading-sm); }
.script-name span { color: var(--ink-muted); font-size: var(--text-caption); }
.script-langs { list-style: none; display: grid; gap: 2px; }
.script-langs li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); font-size: var(--text-sm); line-height: var(--leading-script); }
.script-langs li.is-planned .lang-name { color: var(--ink-muted); }
.lang-name > span { margin-right: 4px; }
.pips { display: inline-flex; gap: 4px; flex: none; }
.pip { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--pip, var(--ink)); }
.pip--studio { --pip: var(--studio); } .pip--agents { --pip: var(--agents); } .pip--speech { --pip: var(--speech); } .pip--key { --pip: var(--ink-muted); }
.pip--available { background: var(--pip); }
.pip--beta { background: linear-gradient(90deg, var(--pip) 50%, transparent 50%); }
.pip--planned { background: transparent; border-color: var(--line-strong); }
.delta-note { margin: var(--space-3) 0 0; max-width: 72rem; }

/* ============================================================
   Industries (tabs), trust, developers, FAQ, CTA
   ============================================================ */
.ind-tabs { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-5); }
.ind-tab {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4);
  border-radius: var(--radius-chip); border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font: inherit; font-size: var(--text-sm); font-weight: var(--weight-medium); cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast);
}
.ind-tab .icon { width: 18px; height: 18px; }
.ind-tab:hover { background: var(--paper-muted); }
.ind-tab[aria-selected="true"] { background: var(--night); color: var(--on-night); border-color: var(--night); }
.no-js .ind-tabs { display: none; }
.no-js .ind-panel[hidden] { display: grid; margin-top: var(--space-5); }
.ind-panel { display: grid; gap: var(--space-5); padding: var(--space-6); border-radius: var(--radius-panel); background: var(--panel); border: 1px solid var(--line); }
.ind-panel[hidden] { display: none; }
@media (min-width: 1024px) { .ind-panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); } }
.ind-story h3 { font-family: var(--font-display); font-stretch: var(--display-width-narrow); font-size: var(--text-3xl); line-height: var(--leading-3xl); margin-bottom: var(--space-4); }
.ind-story p { color: var(--ink-muted); }
.outcome-line { margin: 0; padding-left: var(--space-4); border-left: 3px solid var(--marigold); color: var(--ink) !important; }
.ind-roles { display: grid; gap: var(--space-3); margin-bottom: var(--space-4); }
.ind-roles li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; font-size: var(--text-prose); line-height: var(--leading-prose); }
.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--radius-chip); font-size: var(--text-caption); line-height: var(--leading-caption); font-weight: var(--weight-semibold); }
.tag--agents { background: var(--agents-tint); color: var(--agents-ink); }
.tag--studio { background: var(--studio-tint); color: var(--studio-ink); }
.tag--speech { background: var(--speech-tint); color: var(--speech-ink); }
.ind-langs-label { margin: 0 0 var(--space-2); }
.ind-langs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ind-langs li { padding: 0 var(--space-3); border-radius: var(--radius-chip); background: var(--paper-muted); font-size: var(--text-base); }
.trust-grid { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; } .trust-grid .section-head { margin-bottom: 0; } }
.trust-run-label { margin: var(--space-5) 0 var(--space-2); font-weight: var(--weight-semibold); }
.run-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.run-chips li { padding: 4px 12px; border-radius: var(--radius-chip); border: 1px solid var(--line-strong); font-size: var(--text-caption); line-height: var(--leading-caption); }
.pillars { list-style: none; display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillars { align-content: start; }
.pillars li { padding: var(--space-5); border-radius: var(--radius-card); background: var(--panel); border: 1px solid var(--line-faint); }
.pillars .icon { width: 28px; height: 28px; color: var(--speech); margin-bottom: var(--space-3); }
.pillars h3 { font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-2); }
.pillars p { margin: 0; font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink-muted); }
.trust-note { margin: var(--space-4) 0 0; }
.dev-grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1024px) { .dev-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } .dev-grid .section-head { margin-bottom: 0; } }
.endpoints { list-style: none; display: grid; gap: var(--space-2); margin: var(--space-5) 0; }
.endpoints li { display: grid; gap: 2px; padding: var(--space-2) 0; border-bottom: 1px solid var(--line-faint); }
.endpoints code { color: var(--speech); }
.endpoints span { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink-muted); }
.code-panel { border-radius: var(--radius-panel); background: var(--night); color: var(--on-night); box-shadow: var(--shadow-night); overflow: hidden; border: 1px solid var(--night-line); }
.code-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line-on-night); }
.code-tabs { display: flex; gap: var(--space-1); }
.code-tab { min-height: 40px; padding: 0 var(--space-3); border: 0; border-radius: 8px; background: transparent; color: var(--on-night-muted); font: inherit; font-family: var(--font-mono); font-size: var(--text-caption); cursor: pointer; }
.code-tab[aria-selected="true"] { background: var(--night-raised); color: var(--on-night); }
.code-dots { display: flex; gap: 6px; } .code-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-line); }
.no-js .code-tabs { display: none; }
/* Four sample tabs (Python, OpenAI SDK, cURL, Streaming) on a phone: drop the window dots and
   tighten the tabs so the row fits without scrolling sideways. */
.code-tab { white-space: nowrap; }
@media (max-width: 479px) {
  .code-dots { display: none; }
  .code-top { padding-inline: var(--space-3); }
  .code-tabs { gap: 0; }
  .code-tab { padding: 0 var(--space-2); }
}
.no-js .code-body[hidden] { display: block; border-top: 1px solid var(--line-on-night); }
.code-body { position: relative; }
.code-block { margin: 0; padding: var(--space-5); overflow: auto; max-height: 420px; font-size: var(--text-caption); line-height: 1.75; color: var(--on-night); tab-size: 4; }
.code-block code { font-size: var(--text-caption); }
.code-block .k { color: var(--speech-glow); } .code-block .s { color: var(--agents-glow); } .code-block .c { color: var(--on-night-subtle); font-style: italic; }
.copy-btn {
  position: absolute; top: var(--space-3); right: var(--space-3); display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 36px; padding: 0 var(--space-3); border-radius: 8px; border: 1px solid var(--line-on-night); background: var(--night-raised);
  color: var(--on-night); font: inherit; font-size: var(--text-caption); cursor: pointer;
}
.copy-btn .icon { width: 14px; height: 14px; }
.no-js .copy-btn { display: none; }
.code-body--stream { padding: var(--space-5); }
.stream-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); color: var(--on-night-muted); font-size: var(--text-sm); }
.stream-head .icon { color: var(--agents-glow); }
.stream-head code { color: var(--on-night); }
.stream { list-style: none; display: grid; gap: var(--space-3); min-height: 210px; margin-bottom: var(--space-4); }
.stream-line { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-3); align-items: baseline; font-size: var(--text-lg); color: var(--on-night); }
.stream-tag { font-family: var(--font-mono); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--agents-glow); }
.stream-line.is-partial { color: var(--on-night-muted); }
.stream-line.is-partial .stream-tag { color: var(--marigold-glow); }
.faq-grid { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-8); } .faq-grid .section-head { margin-bottom: 0; } }
.faq { display: grid; gap: var(--space-2); }
.faq details { border-radius: var(--radius-card); background: var(--panel); border: 1px solid var(--line-faint); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 56px; padding: var(--space-3) var(--space-5);
  cursor: pointer; list-style: none; font-weight: var(--weight-semibold);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); font-family: var(--font-mono); transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 var(--space-5) var(--space-4); color: var(--ink-muted); }
.faq .answer p { margin: 0; max-width: 36em; }
.cta-band { overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 140%; background: radial-gradient(closest-side, var(--marigold), transparent); opacity: .12; pointer-events: none; }
.cta-grid { position: relative; z-index: 1; display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-8); } }
.cta-band .h2 { margin-bottom: var(--space-4); }
.cta-band .lead { margin: 0; }
.cta-band .btn-row--stack { flex-direction: column; }
.cta-band .btn-row--stack .btn { width: 100%; }


/* ============================================================
   Product pages: night hero, sample cards, cards, steps, tables
   ============================================================ */
.hero--product { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--space-8); background: var(--grad-night); color: var(--on-night); }
.hero--product .river { opacity: .9; }
.hero--product .river-glyph { display: none; }
.hero--product::after {
  content: ""; position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -18vw; top: -24vw; border-radius: 50%;
  background: radial-gradient(closest-side, var(--hero-glow, var(--speech-glow)), transparent); opacity: .22; pointer-events: none;
}
.hero--agents { --hero-glow: var(--agents-glow); }
.hero--studio { --hero-glow: var(--studio-glow); }
.hero--speech { --hero-glow: var(--speech-glow); }
.hero--languages, .hero--about, .hero--listen { --hero-glow: var(--marigold-glow); }
.hero-inner { position: relative; z-index: 1; display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-8); } .hero-inner--single { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); } }
.hero--product h1, .notfound h1 { margin-bottom: var(--space-5); font-size: var(--text-5xl); line-height: var(--leading-5xl); }
.hero--product .lead { color: var(--on-night-muted); margin-bottom: var(--space-6); }
.hero--product .note { color: var(--on-night-muted); }
.hero-note { margin: var(--space-4) 0 0; }
.hero-note .text-link { min-height: 0; color: var(--marigold-glow); }
.hero-glyphs { display: none; }
@media (min-width: 1024px) {
  .hero-glyphs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); justify-items: center; font-family: var(--font-display); font-size: var(--text-6xl); line-height: 1.3; color: transparent; background: var(--grad-glow); -webkit-background-clip: text; background-clip: text; }
  .hero-glyphs span:lang(ur) { font-family: var(--font-nastaliq); line-height: 1.3; }
}
.sample-card { position: relative; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-night); padding: var(--space-5); }
@media (min-width: 480px) { .sample-card { padding: var(--space-6); } }
.sample-label {
  display: inline-flex; align-items: center; gap: var(--space-2); margin: 0;
  background: var(--marigold-tint); color: var(--marigold-ink); border-radius: var(--radius-pill); padding: 4px 12px;
  font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-semibold);
}
.sample-label .icon { width: 14px; height: 14px; }
.sample-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.sample-channel { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink-muted); margin: 0; }
.turns { list-style: none; margin: var(--space-5) 0; display: grid; gap: var(--space-3); }
.turn { display: flex; align-items: flex-end; gap: var(--space-2); }
.turn--caller { justify-content: flex-end; }
.turn-time { font-family: var(--font-mono); font-size: var(--text-micro); color: var(--ink-muted); padding-bottom: 6px; }
.bubble { max-width: 86%; padding: 10px 16px; border-radius: 18px; margin: 0; }
.turn--agent .bubble { background: var(--agents-tint); border-bottom-left-radius: 6px; }
.turn--caller .bubble { background: var(--paper); border: 1px solid var(--line); border-bottom-right-radius: 6px; }
.speaker { display: flex; align-items: center; font-size: var(--text-caption); line-height: var(--leading-caption); font-weight: var(--weight-semibold); color: var(--ink-muted); margin-bottom: 2px; }
.outcome { display: flex; gap: var(--space-3); align-items: flex-start; background: var(--success-tint); border-radius: var(--radius-control); padding: var(--space-3) var(--space-4); }
.outcome .icon { flex: none; width: 22px; height: 22px; color: var(--success); margin-top: 1px; }
.outcome p { margin: 0; }
.sample-card .caption { margin: var(--space-3) 0 0; }
.code-card pre { margin: var(--space-4) 0 0; }
.steps { list-style: none; display: grid; gap: var(--space-4); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.steps--4 { position: relative; }
@media (min-width: 1100px) {
  .steps--4::before { content: ""; position: absolute; left: 40px; right: 40px; top: 40px; height: 2px; background: var(--grad-thread); opacity: .5; }
}
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-5); }
.step-num {
  position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--night); color: var(--marigold-glow); font-family: var(--font-mono); font-size: var(--text-caption); line-height: 1; font-weight: var(--weight-semibold); margin-bottom: var(--space-4);
}
.step h3 { font-family: var(--font-display); font-size: var(--text-lg); line-height: var(--leading-2xl); margin-bottom: var(--space-2); }
.step p { color: var(--ink-muted); margin: 0; font-size: var(--text-prose); line-height: var(--leading-prose); }
.card-grid { list-style: none; display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-5); height: 100%;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-raised); }
.card h3 { font-family: var(--font-display); font-size: var(--text-lg); line-height: var(--leading-2xl); margin-bottom: var(--space-2); }
.card p { color: var(--ink-muted); margin: 0; font-size: var(--text-prose); line-height: var(--leading-prose); }
.icon-tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--space-4); flex: none; }
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile--agents { background: var(--agents-tint); color: var(--agents-ink); }
.icon-tile--studio { background: var(--studio-tint); color: var(--studio-ink); }
.icon-tile--indigo { background: var(--speech-tint); color: var(--speech-ink); }
.icon-tile--ink { background: var(--night); color: var(--marigold-glow); }
.card .meta { display: block; margin-top: var(--space-3); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink-muted); }
.io { display: grid; gap: var(--space-1); margin: var(--space-3) 0 0; font-size: var(--text-sm); line-height: var(--leading-sm); }
.io div { display: grid; grid-template-columns: 36px 1fr; gap: var(--space-2); }
.io dt { font-family: var(--font-mono); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--ink-muted); padding-top: 2px; }
.io dd { margin: 0; color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--panel); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; padding: var(--space-4) var(--space-5) 0; font-weight: var(--weight-semibold); }
th, td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line-faint); vertical-align: top; }
thead th { font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--ink-muted); font-family: var(--font-mono); font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: .06em; background: var(--panel); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--paper); }
tbody th { font-weight: var(--weight-regular); min-width: 150px; }
tbody th .native { display: block; font-size: var(--text-lg); }
tbody th .english { display: block; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink-muted); }
td.script { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink-muted); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--radius-chip); font-size: var(--text-caption); line-height: var(--leading-caption); font-weight: var(--weight-semibold); white-space: nowrap; }
.badge .icon { width: 12px; height: 12px; }
.badge--available { background: var(--success-tint); color: var(--success); }
.badge--pack { background: var(--agents-tint); color: var(--agents-ink); }
.badge--beta { background: var(--marigold-tint); color: var(--marigold-ink); }
.badge--planned { background: var(--paper-sunken); color: var(--ink-muted); }
.two-col { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.lang-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-2); }
.lang-chip { display: grid; padding: var(--space-3) var(--space-4); border-radius: var(--radius-card); background: var(--panel); border: 1px solid var(--line-faint); transition: border-color var(--dur-fast), transform var(--dur) var(--ease-out); }
.lang-chip:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.lang-chip .native { font-family: var(--font-display); font-size: var(--text-xl); line-height: var(--leading-script); }
.lang-chip .native:lang(ur), .lang-chip .native:lang(ar) { font-family: var(--font-nastaliq); }
.lang-chip .english { font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--ink-muted); }
.integrations { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .integrations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .integrations { grid-template-columns: repeat(3, 1fr); } }
.integrations .card { display: grid; grid-template-columns: auto 1fr; gap: 0 var(--space-4); align-items: start; }
.integrations .icon-tile { grid-row: span 2; margin: 0; }
.principles { list-style: none; display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .principles--4 { grid-template-columns: repeat(4, 1fr); } .principles--3 { grid-template-columns: repeat(3, 1fr); } }
.principles li { padding: var(--space-5); border-radius: var(--radius-card); background: var(--panel); border: 1px solid var(--line-faint); }
.principles .icon { width: 26px; height: 26px; color: var(--speech); margin-bottom: var(--space-3); }
.principles h3 { font-family: var(--font-display); font-size: var(--text-lg); line-height: var(--leading-2xl); margin-bottom: var(--space-2); }
.principles p { margin: 0; color: var(--ink-muted); font-size: var(--text-prose); line-height: var(--leading-prose); }

/* ---------- Languages page: per-language cards ---------- */
.lang-cards { list-style: none; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (min-width: 1280px) { .lang-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.lang-card { padding: var(--space-3) var(--space-4); border-radius: var(--radius-card); background: var(--panel); border: 1px solid var(--line-faint); }
.lang-card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); margin-bottom: var(--space-2); font-family: var(--font-display); font-size: var(--text-lg); }
.lang-card h3 span:first-child { font-size: var(--text-2xl); line-height: var(--leading-script-display); }
.lang-card p { margin: 0; font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink-muted); }
.lang-card .badges { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-3); }

/* ---------- About ---------- */
.facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.fact { display: grid; gap: var(--space-1); padding: var(--space-4); border-radius: var(--radius-card); background: var(--glass-night); border: 1px solid var(--line-on-night); }
.fact-num { font-family: var(--font-display); font-stretch: var(--display-width); font-size: var(--text-5xl); line-height: 1; font-weight: var(--weight-semibold); color: var(--marigold-glow); }
.fact-label { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--on-night); }
.fact-src { font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--on-night-subtle); }
.mvp { list-style: none; display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .mvp { grid-template-columns: repeat(3, 1fr); } }
.mvp li { padding: var(--space-6); border-radius: var(--radius-panel); background: var(--panel); border: 1px solid var(--line-faint); }
.mvp h3 { font-family: var(--eyebrow-font); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--studio); margin-bottom: var(--space-3); }
.mvp p { margin: 0; font-family: var(--font-display); font-stretch: var(--display-width-narrow); font-size: var(--text-2xl); line-height: var(--leading-2xl); color: var(--ink); }
.values { list-style: none; display: grid; gap: var(--space-3); }
.values li { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.values strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); }
.path { list-style: none; position: relative; display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .path { grid-template-columns: repeat(4, 1fr); } .path::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--grad-thread); } }
.path li { position: relative; padding-top: var(--space-6); }
.path li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--studio); }
.path li:last-child::before { border-style: dashed; border-color: var(--ink-muted); }
.path time, .path .when { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--ink-muted); }
.path h3 { font-family: var(--font-display); font-size: var(--text-xl); margin: var(--space-1) 0 var(--space-2); }
.path p { margin: 0; color: var(--ink-muted); font-size: var(--text-prose); line-height: var(--leading-prose); }
.name-art { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3) var(--space-5); margin-bottom: var(--space-5); font-family: var(--font-display); font-stretch: var(--display-width); font-size: var(--text-6xl); line-height: 1.25; }
.name-art .plus { color: var(--ink-muted); font-family: var(--font-mono); font-size: var(--text-3xl); }
.name-art .part { display: grid; }
.name-art .part small { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--ink-muted); line-height: var(--leading-caption); }
.name-art .result { color: var(--studio); }

/* ---------- 404 and asleep ---------- */
.notfound { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; background: var(--grad-night); color: var(--on-night); }
.notfound h1 { margin-bottom: var(--space-4); }
.notfound .lead { color: var(--on-night-muted); }
.notfound .note { color: var(--on-night-muted); }
.notfound .eyebrow { color: var(--on-night-muted); }
.notfound .river-glyph { opacity: .35; }
.notfound .btn--outline { color: var(--on-night); border-color: var(--line-on-night); background: var(--scrim-night); }
.notfound .btn--outline:hover { border-color: var(--on-night); background: var(--glass-night); }
.notfound .btn--ink { background: var(--marigold); color: var(--night); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-2); color: var(--on-night); padding: var(--space-8) 0 var(--space-6); border-top: 1px solid var(--night-edge); }
.footer-top { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .footer-top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); font-family: var(--font-display); font-stretch: var(--display-width); font-size: var(--text-2xl); line-height: var(--leading-2xl); font-weight: var(--weight-bold); }
.footer-brand img { width: 40px; height: 40px; border-radius: 12px; }
.footer-tag { color: var(--on-night); }
.footer-sub { color: var(--on-night-subtle); font-size: var(--text-sm); line-height: var(--leading-sm); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-footer h2 { font-family: var(--font-mono); font-size: var(--text-micro); line-height: var(--leading-caption); font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--on-night-subtle); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; display: grid; gap: var(--space-1); }
.site-footer li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--on-night-muted); text-decoration: none; font-size: var(--text-sm); line-height: var(--leading-sm); }
.site-footer li a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 4px; }
.footer-scripts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-8) 0 var(--space-5); font-family: var(--font-display); font-size: var(--text-2xl); color: var(--on-night-subtle); opacity: .7; }
.footer-scripts span:lang(ur) { font-family: var(--font-nastaliq); }
.footer-legal { margin: 0 0 var(--space-4); }
.site-footer .footer-legal ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--line-on-night); font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--on-night-subtle); }


/* ============================================================
   Product pages: dubbing fan-out, streaming, voice layer, about visuals
   ============================================================ */
.on-night .scrub-langs button { color: var(--on-night); border-color: var(--line-on-night); }
.on-night .scrub-langs button[aria-checked="true"] { background: var(--marigold); color: var(--night); border-color: var(--marigold); }
.hero--product .scrub-stage { box-shadow: var(--shadow-night); border-color: var(--night-line); }
.proof-strip--3 { margin-top: var(--space-6); }
@media (min-width: 900px) { .proof-strip--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dub-grid, .stream-grid, .layer-grid, .gap-grid, .name-grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1024px) {
  .dub-grid, .stream-grid, .layer-grid, .gap-grid, .name-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); }
  :is(.dub-grid, .stream-grid, .layer-grid, .gap-grid, .name-grid) .section-head { margin-bottom: 0; }
}
.fan { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); align-items: center; margin: 0; }
.fan-source { display: grid; gap: var(--space-2); justify-items: start; padding: var(--space-4); border-radius: var(--radius-card); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-raised); }
.fan-thumb img { width: 100%; height: auto; border-radius: 10px; }
.fan-source strong { font-family: var(--font-display); font-size: var(--text-lg); }
.fan-lines { width: 100%; height: 100%; }
.fan-line { fill: none; stroke: var(--studio); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 2 5; opacity: .8; animation: river-flow 9s linear infinite; animation-delay: calc(var(--i) * -0.6s); }
.fan-langs { list-style: none; display: grid; grid-template-rows: repeat(12, 1fr); gap: 4px; }
.fan-langs li {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); padding: 2px var(--space-3);
  border-radius: var(--radius-chip); background: var(--panel); border: 1px solid var(--line-faint); font-size: var(--text-sm); line-height: var(--leading-script);
}
.fan-langs li > span:first-child { font-family: var(--font-display); }
.fan-langs li > span:lang(ur) { font-family: var(--font-nastaliq); line-height: 1.6; }
.fan-en { font-size: var(--text-caption); color: var(--ink-muted); }
.fan figcaption { grid-column: 1 / -1; margin-top: var(--space-3); }
.reveal-ready .fan:not(.is-visible) .fan-langs li { opacity: 0; transform: translateX(-10px); }
.fan-langs li { transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--i) * 50ms); }
@media (max-width: 639px) { .fan { grid-template-columns: 1fr; } .fan-lines { display: none; } .fan-langs { grid-template-columns: 1fr 1fr; grid-template-rows: none; margin-top: var(--space-3); } }
.endpoints--night li { border-bottom-color: var(--line-on-night); }
.endpoints--night code { color: var(--agents-glow); }
.endpoints--night span { color: var(--on-night-muted); }
.on-night code { color: var(--marigold-glow); }
.wave2text { margin: 0; display: grid; grid-template-columns: minmax(0, 4fr) auto minmax(0, 7fr); align-items: center; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-panel); background: var(--glass-night); border: 1px solid var(--line-on-night); }
.w2t-wave { display: flex; align-items: center; gap: 2px; height: 140px; }
.w2t-wave i { flex: 1 1 0; min-width: 2px; height: calc(var(--h) * 1%); border-radius: 3px; background: var(--agents-glow); opacity: .85; animation: w2t 1.6s var(--ease-in-out) infinite alternate; animation-delay: calc(var(--h) * -20ms); }
@keyframes w2t { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.w2t-arrow .icon { width: 28px; height: 28px; color: var(--marigold-glow); }
.wave2text .stream { min-height: 220px; margin: 0; }
.wave2text figcaption { grid-column: 1 / -1; margin: 0; }
@media (max-width: 767px) { .wave2text { grid-template-columns: 1fr; } .w2t-arrow { transform: rotate(90deg); justify-self: center; } .w2t-wave { height: 90px; } }
.layer-diagram { margin: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 5fr); align-items: stretch; }
.ld-sources { list-style: none; display: grid; grid-template-rows: repeat(3, 1fr); gap: var(--space-3); }
.ld-node { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-card); background: var(--panel); border: 1px solid var(--line); }
.ld-node .icon { width: 26px; height: 26px; flex: none; }
.ld-node span { display: grid; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink-muted); }
.ld-node strong { font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink); }
.ld-node--agents .icon { color: var(--agents); } .ld-node--studio .icon { color: var(--studio); } .ld-node--app .icon { color: var(--speech); }
.ld-lines { width: 100%; height: 100%; }
.ld-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 3 6; animation: river-flow 6s linear infinite; }
.ld-line--agents { stroke: var(--agents); } .ld-line--studio { stroke: var(--studio); } .ld-line--app { stroke: var(--speech); }
.ld-core { display: grid; align-content: center; justify-items: start; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-panel); background: var(--night); color: var(--on-night); box-shadow: var(--shadow-night); }
.ld-core strong { font-family: var(--font-display); font-stretch: var(--display-width); font-size: var(--text-2xl); line-height: var(--leading-2xl); }
.ld-core-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--speech); color: var(--ink-inverse); }
.ld-core-mark .icon { width: 26px; height: 26px; }
.ld-caps { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1); }
.ld-caps li { padding: 2px 10px; border-radius: var(--radius-chip); border: 1px solid var(--line-on-night); font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--on-night-muted); }
.ld-core .caption { color: var(--on-night-subtle); margin: 0; }
@media (max-width: 767px) { .layer-diagram { grid-template-columns: 1fr; } .ld-lines { display: none; } .ld-core { margin-top: var(--space-4); } }
.gap-figure { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-4); }
.gap-card { padding: var(--space-5); border-radius: var(--radius-panel); border: 1px solid var(--line); background: var(--panel); min-height: 220px; display: grid; align-content: space-between; gap: var(--space-3); }
.gap-card--before { background: var(--paper-sunken); }
.gap-card--after { background: var(--night); color: var(--on-night); border-color: var(--night-line); box-shadow: var(--shadow-night); }
.gap-tag { margin: 0; font-family: var(--font-mono); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--ink-muted); }
.gap-card--after .gap-tag { color: var(--marigold-glow); }
.gap-line { margin: 0; font-family: var(--font-display); font-size: var(--text-2xl); line-height: var(--leading-2xl); }
.gap-card--before .gap-line { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--studio); text-decoration-thickness: 2px; }
.gap-card--after .gap-line { font-size: var(--text-4xl); line-height: var(--leading-script-display); color: var(--marigold-glow); }
.gap-result { display: flex; gap: var(--space-2); align-items: center; margin: 0; font-size: var(--text-sm); line-height: var(--leading-sm); }
.gap-result .icon { width: 18px; height: 18px; }
.gap-arrow .icon { width: 28px; height: 28px; color: var(--studio); }
.gap-figure figcaption { grid-column: 1 / -1; margin: 0; }
@media (max-width: 639px) { .gap-figure { grid-template-columns: 1fr; } .gap-arrow { transform: rotate(90deg); justify-self: center; } }
.value-cards { list-style: none; display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .value-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .value-cards { grid-template-columns: repeat(5, 1fr); } }
.value-cards li { position: relative; overflow: hidden; padding: var(--space-5); border-radius: var(--radius-card); background: var(--panel); border: 1px solid var(--line-faint); }
.value-art { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: var(--space-4); background: var(--night); color: var(--marigold-glow); box-shadow: 0 0 0 6px var(--marigold-tint); }
.value-art .icon { width: 26px; height: 26px; }
.value-cards h3 { font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-2); }
.value-cards p { margin: 0; font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink-muted); }
.name-art .part > span:lang(hi) { line-height: var(--leading-script-display); }
.faq-ask { display: flex; gap: var(--space-4); align-items: center; margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-card); background: var(--night); color: var(--on-night); }
.faq-ask p { margin: 0; font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--on-night-muted); }
.faq-ask strong { display: block; color: var(--on-night); font-family: var(--font-display); font-size: var(--text-lg); }
.faq-ask .icon-tile { margin: 0; background: var(--marigold); color: var(--night); }
.faq-ask .text-link { color: var(--marigold-glow); min-height: 0; }
/* Shorts showcase: the source in a browser frame, the Short in a tilted phone */
.shorts-source video { border-radius: 12px; border: 6px solid var(--night); box-shadow: var(--shadow-raised); }
.phone { transform: perspective(1200px) rotateY(-8deg) rotateX(2deg); transition: transform .8s var(--ease-out); }
.phone:hover { transform: none; }
.shorts-arrow { color: var(--studio); }
/* The call card: a device, with a sound-wave idle state */
.call-card { border-radius: var(--radius-panel); }
.call-soon-art { display: flex; align-items: center; gap: 5px; height: 64px; margin-bottom: var(--space-4); }
/* Static on purpose: no motion that suggests a live call while the demo is off. */
.call-soon-art span { width: 6px; border-radius: 4px; background: var(--agents); height: 30%; }
.call-soon-art span:nth-child(2) { height: 55%; } .call-soon-art span:nth-child(3) { height: 85%; } .call-soon-art span:nth-child(4) { height: 60%; } .call-soon-art span:nth-child(5) { height: 95%; } .call-soon-art span:nth-child(6) { height: 50%; } .call-soon-art span:nth-child(7) { height: 25%; }
.try-notes .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--agents); }
.notfound--asleep .river-glyph { font-family: var(--font-accent); font-style: italic; }
@media (prefers-reduced-motion: reduce) { .fan-line, .w2t-wave i, .ld-line, .phone { animation: none !important; transform: none !important; } }

/* ---------- Platform: 3D stack (ported from Agents' PlatformStack3D: CSS 3D, no WebGL) ---------- */
.platform-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .platform-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-8); } }
.ps3d-col { container-type: inline-size; min-width: 0; }
.ps3d-stage {
  --ps-s: 176px; --ps-gap: 58px; --ps-t: 8px; --ps-lift: 12px; --ps-tilt: 52deg;
  --ps-w: 257.9px; --ps-h: 350px; --ps-cx: 128.45px; --ps-cy: 266px;
  position: relative; margin-inline: auto; width: var(--ps-w); max-width: 100%; height: var(--ps-h);
}
@container (min-width: 340px) {
  .ps3d-stage { --ps-s: 232px; --ps-gap: 92px; --ps-t: 12px; --ps-lift: 14px; --ps-tilt: 55deg;
    --ps-w: 336.1px; --ps-h: 462px; --ps-cx: 168.05px; --ps-cy: 346px; }
}
.ps3d-scene { position: absolute; left: var(--ps-cx); top: var(--ps-cy); width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(var(--ps-tilt)) rotateZ(-45deg); }
.ps3d-plate {
  position: absolute; left: calc(var(--ps-s) / -2); top: calc(var(--ps-s) / -2); width: var(--ps-s); height: var(--ps-s);
  transform-style: preserve-3d; transform: translateZ(calc(var(--i) * var(--ps-t)));
  transition: transform 460ms cubic-bezier(.22, .8, .26, 1) calc(var(--i) * 80ms);
}
.ps3d-stage[data-state="open"] .ps3d-plate, .no-js .ps3d-plate { transform: translateZ(calc(var(--i) * var(--ps-gap))); }
.ps3d-stage[data-state="open"] .ps3d-plate[data-active="true"] { transform: translateZ(calc(var(--i) * var(--ps-gap) + var(--ps-lift))); }
.ps3d-stage[data-settled="true"] .ps3d-plate { transition: transform 180ms ease-out; }
.ps3d-face {
  position: absolute; inset: 0; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  padding: var(--space-3) 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card);
  transition: border-color 150ms ease; overflow: hidden;
}
.ps3d-plate[data-active="true"] .ps3d-face { border-color: var(--ink); }
.ps3d-face strong { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink); }
.ps3d-face span { font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--ink-muted); }
.ps3d-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: auto; }
.ps3d-tiles i { display: block; height: 40px; border-radius: 8px; }
.ps3d-tiles i:nth-child(1) { background: var(--agents-glow); }
.ps3d-tiles i:nth-child(2) { background: var(--studio-glow); }
.ps3d-tiles i:nth-child(3) { background: var(--speech-glow); }
.ps3d-plate--voice .ps3d-face { background: var(--speech-tint); }
.ps3d-plate--wallet .ps3d-face { background: var(--marigold-tint); }
.ps3d-plate--account .ps3d-face { background: var(--paper-muted); }
.ps3d-plate--products .ps3d-face { background: var(--night); border-color: var(--night-line); }
.ps3d-plate--products .ps3d-face strong { color: var(--on-night); }
.ps3d-plate--products .ps3d-face span { color: var(--on-night-muted); }
.ps3d-plate--products[data-active="true"] .ps3d-face { border-color: var(--marigold); }
.ps3d-side { position: absolute; background: var(--paper-sunken); border: 1px solid var(--line); }
.ps3d-side-b { left: 0; top: 100%; width: 100%; height: var(--ps-t); transform-origin: top; transform: rotateX(-90deg); }
.ps3d-side-l { left: 0; top: 0; width: var(--ps-t); height: 100%; transform-origin: left; transform: rotateY(90deg); }
.ps3d-legend { list-style: none; border-top: 1px solid var(--line); }
.ps3d-legend li { border-bottom: 1px solid var(--line); padding: var(--space-4) var(--space-3); transition: background-color 150ms ease; }
.ps3d-legend li[data-active="true"] { background: var(--panel); }
.ps3d-legend button {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 32px; padding: 0;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left;
  font: inherit; font-family: var(--font-display); font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold);
  border-radius: 6px;
}
.ps3d-legend p { margin: var(--space-1) 0 0 var(--space-5); color: var(--ink-muted); max-width: 46ch; font-size: var(--text-prose); line-height: var(--leading-prose); }
.swatch--products { background: var(--grad-thread); }
.swatch--voice { background: var(--speech); }
.swatch--wallet { background: var(--marigold); }
.swatch--account { background: var(--ink); }
.product-grid .fx-host { height: 100%; }

/* ---------- 3D conversation flow (agents.html: three.js island over an SVG poster) ---------- */
.flow3d { margin: 0; }
.flow3d-stage { position: relative; width: 100%; aspect-ratio: var(--ar, 16 / 9); border-radius: var(--radius-panel); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.flow3d-poster, .flow3d-host { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow3d-poster { transition: opacity var(--dur-slow) var(--ease-out); }
.flow3d[data-live="true"] .flow3d-poster { opacity: 0; }
.flow3d-poster * { vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.f-top { fill: var(--panel); stroke: var(--line-strong); stroke-width: 1; }
.f-right { fill: var(--paper-muted); stroke: var(--line-strong); stroke-width: 1; }
.f-front { fill: var(--paper-sunken); stroke: var(--line-strong); stroke-width: 1; }
.f-band { fill: var(--speech-tint); stroke: var(--speech); stroke-width: 1; }
.f-packet { fill: var(--studio); }
.f-wire { stroke: var(--line-strong); stroke-width: 1.2; fill: none; }
.flow3d-labels { position: absolute; inset: 0; pointer-events: none; }
.flow3d-label {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-size: var(--text-caption); line-height: var(--leading-caption); font-weight: var(--weight-semibold); color: var(--ink-muted);
  background: var(--panel); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line);
  transition: color 150ms ease, border-color 150ms ease;
}
.flow3d-label[data-on="true"] { color: var(--ink); border-color: var(--ink); }
.flow3d-caption { margin-top: var(--space-4); min-height: 112px; }
.flow3d-caption .step-now { margin: 0; font-weight: var(--weight-semibold); }
.flow3d-caption .said { margin: var(--space-1) 0 0; font-size: var(--text-xl); }
.flow3d-caption .said-en { margin: var(--space-1) 0 0; }
.flow3d-controls { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-top: var(--space-3); }
.no-js .flow3d-controls, .flow3d-controls[hidden] { display: none; }
.flow3d-list { margin-top: var(--space-5); }


.flow3d-labels .flow3d-label { left: var(--x); top: var(--y); transform: translate(-50%, 8px); }
.flow3d-labels [data-label^="dest"] { transform: translate(10px, -50%); }
.flow3d[data-live="true"] .flow3d-label { left: 0; top: 0; }
@media (max-width: 639px) {
  .flow3d-stage { aspect-ratio: 4 / 3; }
  .flow3d:not([data-live="true"]) .flow3d-label { display: none; }
  .flow3d[data-live="true"] .flow3d-label[data-on="false"] { opacity: 0; }
}

/* ---------- At most one screen per section (desktop and laptop) ----------
   From 1024px wide and 600px tall no top-level section is taller than one
   screen below the sticky header (landing/fx/test/fit.test.mjs measures it at
   1440x900, 1366x768 and 1280x720). Sections are as tall as their content,
   with clamp()-based padding: no forced full-screen bands. Phones scroll freely. */
@media (min-width: 1024px) and (min-height: 600px) {
  main > section { scroll-margin-top: var(--header-h); }
  main > section:not(.cta-band) > .container { width: 100%; }
  main > section .section-head, main > section .section-intro { margin-bottom: var(--space-6); }
  .hero-river { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }
  .hero-river { padding-block: var(--space-5) var(--space-4); }
  .hero-river .hero-copy { padding-block: var(--space-4); }
  /* The 3D call figure: caption and controls beside the stage, which scales as a whole. */
  .flow3d { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); column-gap: var(--space-6); align-items: start; }
  .flow3d > .flow3d-stage { grid-column: 2; grid-row: 1 / span 4; width: 100%; max-width: calc((100svh - var(--header-h) - 2 * var(--fit-y) - 230px) * var(--ar-n, 2.5)); justify-self: end; }
  .flow3d > :not(.flow3d-stage) { grid-column: 1; }
  .flow3d-caption { min-height: 0; margin-top: 0; }
  .hero--product .sample-card { padding: var(--space-5); }
  .hero--product .turns { margin: var(--space-4) 0; gap: var(--space-2); }
  .hero--product .bubble { padding: 8px 14px; }
  .ps3d-legend li { padding: var(--space-3); }
  /* Long tables scroll inside their own region, header row pinned. */
  .table-wrap { max-height: calc(100svh - var(--header-h) - 2 * var(--fit-y) - 340px); min-height: 240px; overflow: auto; }
  .table-wrap thead th { position: sticky; top: 0; z-index: 1; }
  .table-wrap caption { position: sticky; left: 0; }
  /* Rails: a row of cards that scrolls sideways, three (or four) in view. */
  .rail { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 2 * var(--space-5)) / 3);
    gap: var(--space-5); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding: var(--space-1) var(--space-1) var(--space-3); margin-inline: calc(-1 * var(--space-1)); scrollbar-width: thin; }
  .rail--4 { grid-auto-columns: calc((100% - 3 * var(--space-5)) / 4); }
  .rail > li { scroll-snap-align: start; }
  .rail--wall { grid-template-rows: repeat(2, auto); grid-auto-columns: calc((100% - 4 * var(--space-3)) / 5); gap: var(--space-3); }
  .rail-controls { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); }
}
.rail-controls { display: none; }
@media (min-width: 1024px) and (min-height: 600px) { .js .rail-controls { display: flex; } }


/* Laptops and short desktop windows: the same layout, tighter type and spacing, so a
   section still fits one screen. */
@media (min-width: 1024px) and (max-height: 900px) {
  .h2 { font-size: var(--text-4xl); line-height: var(--leading-4xl); }
  main > section .section-head, main > section .section-intro { margin-bottom: var(--space-5); }
  .section-head > .h2, .section-intro .h2 { margin-bottom: var(--space-3); }
  .section-intro .h2 { margin-bottom: 0; }
  .eyebrow { margin-bottom: var(--space-3); }
  .lead { font-size: var(--text-base); line-height: var(--leading-base); }
  .pp-visual { height: 100px; margin-bottom: var(--space-4); }
  .product-panel h3 { font-size: var(--text-xl); line-height: var(--leading-xl); margin-bottom: var(--space-3); }
  .mini-steps { margin-bottom: var(--space-4); }
  .word-river { margin-top: var(--space-5); }
  .word-river span { font-size: var(--text-3xl); }
  .sample-line { margin-top: var(--space-4); font-size: var(--text-lg); }
  .sampler { padding: var(--space-5); }
  .pillars li { padding: var(--space-4); }
  .pillars .icon { width: 24px; height: 24px; margin-bottom: var(--space-2); }
  .ps3d-legend li { padding: var(--space-2) var(--space-3); }
  .ps3d-legend p { font-size: var(--text-caption); line-height: var(--leading-caption); }
  .ps3d-stage { --ps-s: 176px; --ps-gap: 58px; --ps-t: 8px; --ps-lift: 12px; --ps-tilt: 52deg; --ps-w: 257.9px; --ps-h: 350px; --ps-cx: 128.45px; --ps-cy: 266px; }
  .script-group { padding: var(--space-2) var(--space-3); margin-bottom: var(--space-3); }
  .delta-legend { margin-bottom: var(--space-3); }
  .card, .step { padding: var(--space-4); }
  .icon-tile { width: 40px; height: 40px; margin-bottom: var(--space-3); }
  .faq summary { min-height: 48px; padding-block: var(--space-2); }
  .stage-sample { padding: var(--space-2) var(--space-3); }
  .budget { padding: var(--space-5); }
  .ind-panel { padding: var(--space-5); }
  .ind-story h3 { font-size: var(--text-2xl); line-height: var(--leading-2xl); }
  .code-block { max-height: 360px; padding: var(--space-4); }
  .hero--product { padding-block: var(--space-6); }
  .hero--product h1 { font-size: var(--text-4xl); line-height: var(--leading-4xl); }
  .hero--product .lead { margin-bottom: var(--space-4); }
  .wave2text { padding: var(--space-4); }
  .gap-card { min-height: 0; padding: var(--space-4); }
  .lang-card p:first-of-type { font-size: var(--text-caption); line-height: var(--leading-caption); }
}

@media (min-width: 1024px) and (max-height: 780px) {
  .hero-title { font-size: var(--text-5xl); line-height: var(--leading-5xl); }
  .pp-visual { height: 80px; }
  .pp-bubble--out { top: 44px; }
  .product-panel h3 { font-size: var(--text-lg); line-height: var(--leading-2xl); }
  .mini-steps { gap: var(--space-1); }
  .script-langs li { line-height: 1.5; font-size: var(--text-caption); }
  .pip { width: 10px; height: 10px; }
  .script-glyph { width: 44px; height: 44px; font-size: var(--text-xl); }
  .script-group { grid-template-columns: 44px minmax(0, 1fr); }
  .delta-note { font-size: var(--text-caption); line-height: var(--leading-caption); }
  .script-name { margin-bottom: 0; }
  .script-group { margin-bottom: var(--space-2); }
  .delta-note { margin-top: var(--space-2); }
  .pillars p { font-size: var(--text-caption); line-height: var(--leading-caption); }
  .pillars h3 { margin-bottom: var(--space-1); }
  .trust-run-label { margin-top: var(--space-3); }
  .lang-card { padding: var(--space-2) var(--space-3); }
  .lang-card h3 { margin-bottom: var(--space-1); }
  .product-panel .btn-row { flex-wrap: nowrap; gap: var(--space-3); }
  .product-panel .btn { min-height: 44px; padding: 0 var(--space-4); font-size: var(--text-sm); }
  .product-panel .text-link { font-size: var(--text-sm); }
  .pp-code + .pp-code { display: none; }
}

/* ---------- Section navigator (ported from Agents' SectionNavigator) ----------
   Back to top, previous, "3 / 12", next, go to the end. From 1280px a vertical
   panel in the right gutter; below that, or when the content leaves no gutter,
   one 44px "Open sections menu" button bottom-right that opens the four actions.
   site.js owns the behaviour (sectionNavCore's model, window scroller only). */
.section-nav {
  position: fixed; z-index: 40; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 2px; padding: 4px;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-raised);
  transition: opacity var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
}
.section-nav[hidden] { display: none; }
.section-nav--at-top { opacity: 0; visibility: hidden; }
.section-nav__actions { display: flex; align-items: center; gap: 2px; }
.section-nav__actions[hidden] { display: none; }
.section-nav__count { display: none; }
.section-nav__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--radius-control); background: transparent; color: inherit; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.section-nav__btn svg { width: 20px; height: 20px; }
.section-nav__btn[hidden] { display: none; }
.section-nav__btn:hover:not([aria-disabled="true"]), .section-nav__toggle[aria-expanded="true"] { background: var(--paper-muted); }
.section-nav__btn[aria-disabled="true"] { color: var(--ink-muted); opacity: .55; cursor: default; }
.section-nav__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.section-nav__live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 1280px) {
  .section-nav:not(.section-nav--compact) { top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: column; }
  .section-nav:not(.section-nav--compact) .section-nav__actions { flex-direction: column; }
  /* At the top (the hero) the navigator stays hidden in both layouts, so it never covers hero content. */
  .section-nav:not(.section-nav--compact) .section-nav__count {
    display: block; padding: 2px 0; text-align: center; font-variant-numeric: tabular-nums;
    font-size: var(--text-caption); line-height: var(--leading-caption); font-weight: var(--weight-semibold); color: var(--ink-muted);
  }
}
body:has(.section-nav--compact:not([hidden])) .site-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
body:has(.section-nav--compact:not([hidden])) .site-footer .container { padding-inline-end: 74px; }

/* ---------- Effects (fx islands, landing/fx) ----------
   An island is an element with data-fx; landing/fx/src/boot.ts mounts the
   Agents app's own effect components into it. Without JS, or if a chunk
   fails, only these first rules apply and the page lays out exactly as the
   plain HTML: a block island is a one-cell grid that stretches its single
   child, an inline island is an empty (or logo-sized) inline box. */
div.fx-island { display: grid; min-width: 0; }
span.fx-island { display: inline-flex; vertical-align: middle; line-height: 0; }
.speaker > .fx-island, h3 > .fx-island { margin-inline-start: 6px; margin-block: -6px; }
.fx-slot { display: contents; }

/* Copied from agent/ui/src/components/fx/fx.css (the copies' `import "./fx.css"`
   is dropped by the landing build, so the rules live here). */
.fx-orb { display: inline-block; flex: none; vertical-align: middle; line-height: 0; }
.fx-orb > canvas { display: block; }
.fx-host { position: relative; display: grid; min-width: 0; }
.fx-host--isolate { isolation: isolate; }
.fx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.fx-layer[data-place="behind"] { z-index: -1; }
.fx-layer[data-place="under"] { z-index: 0; }
.fx-layer__shape { display: block; width: 100%; height: 100%; }
.fx-voice-on > :first-child { position: relative; z-index: 1; background: transparent !important; }
.fx-layer--indicator { overflow: visible; }
.fx-indicator { position: absolute; left: 0; top: 0; display: block; }
.fx-avatar { display: inline-block; flex: none; line-height: 0; vertical-align: middle; }
.fx-avatar__still { display: block; border-radius: 9999px; background: var(--muted); }
/* Landing addition: the original children sit in a display:contents slot,
   so the voice glow's "first child" is the slot's first child. */
.fx-voice-on > .fx-slot > :first-child { position: relative; z-index: 1; background: transparent !important; }
/* Landing override: the copied rule's --muted is an app token the site does not define. */
.fx-avatar__still { background: var(--paper-sunken); }
/* Landing addition: the greeting tab list is also an island; keep it a flex row. */
.greet-tabs.fx-island { display: flex; }
/* Landing addition: the liquid indicator's surface keeps the tab radius. */
.greet-tabs .fx-indicator { border-radius: 9px; }


/* ---------- Motion ----------
   One-time reveals (site.js adds .is-visible; children of [data-stagger] follow
   70ms apart), the ambient river and word loops, scroll-linked accents where the
   browser has scroll-driven animations, and cross-page view transitions.
   Reduced motion turns all of it off and shows the settled state. */
.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(12px); }
.reveal-ready [data-reveal] { transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
/* Headings and copy read immediately; only figures and widgets enter. */
.reveal-ready :is(.section-head, .section-intro, .faq, .ahead-list)[data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
.reveal-ready [data-stagger]:not(.is-visible) > * { opacity: 0; transform: translateY(14px); }
.reveal-ready [data-stagger] > * { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-ready .pipeline:not(.is-visible) .stage { opacity: 0; transform: translateY(16px); }
.pipeline .stage { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms); }
@supports (animation-timeline: view()) {
  .section-head .eyebrow::before, .section-intro .eyebrow::before { animation: thread-grow linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; transform-origin: left; }
  @keyframes thread-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .hero-river .hero-copy { animation: hero-drift linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
  @keyframes hero-drift { to { transform: translateY(-40px); opacity: .4; } }
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > *, .pipeline .stage { opacity: 1 !important; transform: none !important; transition: none !important; }
  .rp, .word-river__track, .pp-wave i, .scrub-memo i, .pipeline::after, .pp-stream b, .call-soon-art span { animation: none !important; }
  .word-river__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .word-river__track span:nth-child(n+13) { display: none; }
  .budget-seg { transform: none !important; }
  .btn:active, .product-panel:hover, .card:hover, .lang-chip:hover { transform: none; }
  .magnetic { transform: none !important; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

@media print {
  .site-header, .nav-toggle, .river, .section-nav, .word-river { display: none; }
  .hero-river, .band-night, .cta-band, .hero--product, .notfound, .site-footer { background: none; color: black; }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Theme chooser (header; drawn by site.js, same options as Agents and Studio) ---------- */
.theme-menu { position: relative; flex: none; }
.no-js .theme-menu { display: none; }
.theme-button {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--radius-control); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.theme-button:hover, .theme-button[aria-expanded="true"] { background: var(--paper-muted); }
.theme-button svg { width: 20px; height: 20px; }
.theme-panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  width: 20rem; max-width: calc(100vw - 16px); max-height: calc(100svh - var(--header-h) - 16px); overflow-y: auto;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-raised); padding: var(--space-4);
}
.theme-panel[hidden] { display: none; }
.theme-label { margin: 0 0 var(--space-2); font-size: var(--text-caption); line-height: var(--leading-caption); font-weight: var(--weight-semibold); color: var(--ink-muted); }
.theme-label:not(:first-child) { margin-top: var(--space-4); }
.theme-modes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.theme-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.theme-palettes { display: grid; gap: var(--space-1); }
.theme-tile, .theme-row, .theme-reset {
  font: inherit; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.theme-tile {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-2);
  border: 1px solid var(--line); border-radius: var(--radius-control); background: transparent;
}
.theme-tile svg { width: 16px; height: 16px; }
.theme-tile:hover, .theme-row:hover, .theme-reset:hover { background: var(--paper-muted); }
.theme-tile[aria-checked="true"] { border-color: var(--ink); background: var(--paper-muted); font-weight: var(--weight-semibold); }
.theme-tile--style { flex-direction: column; gap: var(--space-1); min-height: 64px; padding: var(--space-2) var(--space-1); font-size: var(--text-caption); line-height: var(--leading-caption); }
.theme-tile--style[data-value="technical"] { border-radius: 2px; }
.theme-tile--style[data-value="soft"] { border-radius: 14px; }
.theme-aa { font-size: var(--text-xl); line-height: 1; font-weight: var(--weight-semibold); font-family: var(--font-sans); }
.theme-aa { font-family: var(--font-display); }
.theme-tile--style[data-value="editorial"] .theme-aa { font-family: var(--font-accent); font-style: italic; font-weight: var(--weight-regular); }
.theme-tile--style[data-value="technical"] .theme-aa { font-stretch: 84%; }
.theme-row {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 44px; padding: 6px var(--space-2);
  border: 0; border-radius: var(--radius-control); background: transparent; text-align: start;
}
.theme-row[aria-checked="true"] { background: var(--paper-muted); }
.theme-row-text { flex: 1; min-width: 0; }
.theme-row-name { display: block; }
.theme-row[aria-checked="true"] .theme-row-name { font-weight: var(--weight-semibold); }
.theme-row-desc { display: block; font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--ink-muted); }
.theme-check { width: 18px; height: 18px; flex: none; color: var(--speech); visibility: hidden; }
.theme-check svg { width: 18px; height: 18px; }
.theme-row[aria-checked="true"] .theme-check { visibility: visible; }
.theme-swatch { position: relative; flex: none; width: 40px; height: 28px; border-radius: 6px; border: 1px solid var(--line); overflow: hidden; }
.theme-swatch span { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 8px; border-radius: 3px; }
.theme-swatch--ivory { background: var(--sw-ivory); } .theme-swatch--ivory span { background: var(--sw-ivory-dot); }
.theme-swatch--white { background: var(--sw-white); } .theme-swatch--white span { background: var(--sw-white-dot); }
.theme-swatch--lilac { background: var(--sw-lilac); } .theme-swatch--lilac span { background: var(--sw-lilac-dot); }
.theme-swatch--blush { background: var(--sw-blush); } .theme-swatch--blush span { background: var(--sw-blush-dot); }
.theme-swatch--mint { background: var(--sw-mint); } .theme-swatch--mint span { background: var(--sw-mint-dot); }
.theme-device { margin: var(--space-2) 0 0; }
.theme-device[hidden] { display: none; }
.theme-reset {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; margin-top: var(--space-4); padding: 0 var(--space-2);
  border: 0; border-radius: var(--radius-control); background: transparent; color: var(--ink-muted);
}
.theme-reset svg { width: 16px; height: 16px; }
@media (max-width: 879px) {
  .theme-menu { order: 2; } .nav-toggle { order: 3; }
  .theme-panel { position: fixed; top: calc(var(--header-h) + 4px); left: var(--space-2); right: var(--space-2); width: auto; max-width: none; max-height: calc(100svh - var(--header-h) - 16px); }
}

/* ---------- Segmented language tabs (Shorts showcase, voice demo) ---------- */
.seg-tabs { display: inline-flex; flex-wrap: wrap; gap: var(--space-1); padding: var(--space-1); background: var(--paper-sunken); border-radius: var(--radius-control); }
.no-js .seg-tabs { display: none; }
.seg-tab {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-3);
  border: 0; border-radius: calc(var(--radius-control) - 3px); background: transparent; color: var(--ink-muted);
  font: inherit; font-size: var(--text-sm); line-height: var(--leading-sm); cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.seg-tab:hover { color: var(--ink); }
.seg-tab[aria-selected="true"] { color: var(--ink); font-weight: var(--weight-semibold); background: var(--panel); box-shadow: var(--shadow-soft); }
.btn--sm { min-height: 44px; padding: 0 var(--space-4); font-size: var(--text-sm); line-height: var(--leading-sm); }
.btn--sm svg { width: 16px; height: 16px; }

/* ---------- Shorts showcase (studio.html): the 16:9 source beside the 9:16 Short ---------- */
.shorts-grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1024px) { .shorts-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } }
.shorts-copy .lead { margin: var(--space-4) 0 var(--space-5); }
.shorts-proof { margin: var(--space-4) 0 0; max-width: 52ch; }
.shorts-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-4); }
.shorts-panel[hidden] { display: none; }
.shorts-panel figure { margin: 0; min-width: 0; }
.shorts-panel figcaption { margin-top: var(--space-2); }
.shorts-source video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-control); border: 1px solid var(--line); background: var(--night); box-shadow: var(--shadow-raised);
}
.shorts-arrow { width: 40px; height: 20px; color: var(--studio); }
.phone {
  height: min(520px, calc(100svh - var(--header-h) - 2 * var(--fit-y) - 64px)); aspect-ratio: 9 / 16;
  padding: 8px; border-radius: 28px; background: var(--night); box-shadow: var(--shadow-raised), 0 0 0 1px var(--line);
}
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 21px; background: var(--night); }
.shorts-phone figcaption { text-align: center; }
@media (max-width: 1023px) {
  .shorts-panel { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .shorts-source { width: 100%; }
  .shorts-arrow { transform: rotate(90deg); }
  .phone { height: min(520px, 70svh); }
}

/* Home: a compact pointer to the showcase, under the Studio flow. */
.shorts-teaser { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-4); padding: var(--space-2) var(--space-4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); }
.shorts-teaser-thumbs { display: flex; gap: var(--space-2); flex: none; }
.shorts-teaser-thumbs img { width: 32px; height: 57px; object-fit: cover; border-radius: 6px; border: 2px solid var(--night); background: var(--night); }
.shorts-teaser p { margin: 0; flex: 1; min-width: 0; }
.shorts-teaser .text-link { flex: none; }
@media (max-width: 639px) { .shorts-teaser { flex-wrap: wrap; } .shorts-teaser p { flex-basis: calc(100% - 120px); } }

/* ---------- Try a voice agent (index.html, agents.html #try) ----------
   site.js drives it from /config.js (agentsDemo*): without a demo token the card
   shows "coming soon"; with one, the Agents widget loads (headless) only after
   Start call, and data-call-state follows the call for the orb and voice glow. */
.try-grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1024px) { .try-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); } }
.try-copy .lead { margin: var(--space-4) 0 var(--space-5); }
.try-notes { display: grid; gap: var(--space-3); max-width: 56ch; }
.try-notes li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink); }

.call-card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-panel); box-shadow: var(--shadow-raised); padding: var(--space-5);
}
@media (min-width: 480px) { .call-card { padding: var(--space-6); } }
.call-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-4); }
.call-title { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-lg); line-height: var(--leading-lg); }
.call-status {
  margin: 0; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--paper-muted); color: var(--ink);
  font-size: var(--text-caption); line-height: var(--leading-caption); font-weight: var(--weight-semibold);
}
.call-card[data-call-state="listening"] .call-status, .call-card[data-call-state="speaking"] .call-status { background: var(--agents-tint); color: var(--agents-ink); }
.call-card[data-call-state="thinking"] .call-status, .call-card[data-call-state="connecting"] .call-status { background: var(--speech-tint); color: var(--speech-ink); }
.call-card[data-call-state="error"] .call-status { background: var(--studio-tint); color: var(--studio-ink); }
.call-status[hidden], .try-notes li[hidden] { display: none; }
.call-live[hidden], .call-soon[hidden], .call-timer[hidden], .call-error[hidden] { display: none; }
.call-label { margin: 0 0 var(--space-2); font-size: var(--text-caption); line-height: var(--leading-caption); font-weight: var(--weight-semibold); color: var(--ink-muted); }
.call-langs { display: flex; }
.call-langs .seg-tab { min-height: 36px; padding: 0 10px; }
.call-langs .seg-tab[aria-checked="true"] { color: var(--ink); font-weight: var(--weight-semibold); background: var(--panel); box-shadow: var(--shadow-soft); }
.call-langs .seg-tab:disabled { cursor: default; opacity: .6; }
.call-main { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); margin: var(--space-5) 0 var(--space-4); }
.call-mic {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1);
  width: 112px; height: 112px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--agents); color: var(--ink-inverse); box-shadow: var(--shadow-raised);
  font: inherit; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-semibold);
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.call-mic svg { width: 32px; height: 32px; }
.call-mic:hover { background: var(--agents-strong); transform: scale(1.03); }
.call-mic:disabled { cursor: default; transform: none; opacity: .75; }
.call-card:not([data-call-state="idle"]):not([data-call-state="ended"]):not([data-call-state="error"]) .call-mic { background: var(--studio); }
.call-timer { margin: 0; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
/* The orb (islands/voiceorb, the Agents live view's VoiceOrb) around the call button; without
   effects (reduced motion, no JS) the button stands alone. */
.call-voiceorb { display: grid; place-items: center; width: 232px; height: 232px; max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .call-voiceorb { width: auto; height: auto; } }
.call-card[data-live] .call-main { margin: var(--space-2) 0 var(--space-3); }
/* The exchange in progress: the caller's words small and quoted, the agent's reply large. */
.call-turn { display: grid; gap: var(--space-2); max-height: 13rem; overflow-y: auto; margin: 0 0 var(--space-4); text-align: center; }
.call-turn[hidden], .call-history[hidden] { display: none; }
.call-turn p { margin: 0; overflow-wrap: anywhere; }
.call-turn-caller { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink-muted); }
.call-turn-caller:empty { display: none; }
.call-turn-caller.is-interim { font-style: italic; }
.call-turn-reply { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-medium); color: var(--ink); }
.call-turn-reply.is-hint { font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-regular); color: var(--ink-muted); }
.call-turn p:not(:lang(en)) { line-height: var(--leading-script); }
.call-history { margin: 0 0 var(--space-3); }
.call-history summary { display: inline-flex; align-items: center; min-height: 36px; cursor: pointer; font-size: var(--text-caption); line-height: var(--leading-caption); font-weight: var(--weight-semibold); color: var(--ink-muted); }
.call-history[open] summary { margin-bottom: var(--space-2); }
.call-transcript { list-style: none; display: grid; gap: var(--space-2); min-height: 0; max-height: 180px; overflow-y: auto; margin: 0; padding: 0; }
.call-transcript:empty { display: none; }
.call-transcript li { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink); }
.call-transcript li:lang(hi), .call-transcript li:lang(te), .call-transcript li:lang(ta), .call-transcript li:lang(kn), .call-transcript li:lang(ml),
.call-transcript li:lang(bn), .call-transcript li:lang(mr), .call-transcript li:lang(gu), .call-transcript li:lang(pa) { line-height: var(--leading-script); }
.call-transcript .who { font-weight: var(--weight-semibold); color: var(--ink-muted); margin-right: var(--space-2); }
.call-transcript .is-interim { color: var(--ink-muted); }
/* Tool results on the live demo call (site.js voiceDemo): the "Your details" form and the weather. */
.call-cards { display: grid; gap: var(--space-3); margin: 0 0 var(--space-3); }
.call-cards:empty { display: none; }
.call-details, .call-weather { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--panel); }
.call-details { gap: var(--space-3); }
.call-details-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.call-details-head .call-label { margin: 0; }
.call-details .field-grid { gap: var(--space-3); }
.call-details--done p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-sm); }
.call-weather-place { margin: 0; font-weight: var(--weight-semibold); color: var(--ink); }
.call-weather-now { margin: var(--space-1) 0 var(--space-2); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink); }
.call-weather-days { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-2); padding: 0; }
.call-weather-days li { padding: var(--space-1) var(--space-2); border: 1px solid var(--line); border-radius: 999px; font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--ink-muted); }
.call-error { margin: 0 0 var(--space-3); padding: var(--space-3); border-radius: var(--radius-control); background: var(--studio-tint); color: var(--studio-ink); font-size: var(--text-sm); line-height: var(--leading-sm); }
.call-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line-faint); }
.call-foot .caption { margin: 0; flex: 1; min-width: 12rem; }
.call-soon { padding: var(--space-4) 0 var(--space-2); }
.call-soon-title { margin: 0 0 var(--space-2); font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-semibold); }
.call-soon .btn-row { margin-top: var(--space-4); }
/* ---------- Speech: how Pravaani compares (speech.html #compare to #compare-notes; home #compare-teaser) ----------
   Charts in HTML and CSS, drawn from custom properties (--v a value, --max the scale, --i the
   order), coloured only through the --cmp-* tokens; labels and values are real text, and every
   chart has a "Data table". Bars grow in the first time a chart is seen and again when a tab
   shows it; under reduced motion they are simply drawn (see Motion). */
.cmp-card { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--space-5); --cmp-label-w: 11rem; --cmp-val-w: 3.25rem; }
.cmp-head { margin: 0 0 var(--space-4); }
.cmp-head h3, .cmp-head h2 { margin: 0 0 var(--space-1); font-family: var(--font-display); font-stretch: var(--display-width-narrow); font-weight: var(--weight-display); font-size: var(--text-lg); line-height: var(--leading-2xl); }
.cmp-head .caption { margin: 0; }
.cmp-ref { margin-left: 2px; line-height: 0; vertical-align: baseline; }
.cmp-ref a { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 9px; border: 1px solid var(--line-strong); color: var(--ink); font-family: var(--font-mono); font-size: var(--text-micro); line-height: 1; text-decoration: none; position: relative; top: -0.55em; }
.cmp-ref a:hover { background: var(--ink); color: var(--ink-inverse); }
.cmp-take { margin: var(--space-4) 0 0; font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink-muted); }
.cmp-take strong { color: var(--ink); font-weight: var(--weight-semibold); }
.cmp-split { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 1024px) { .cmp-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } }
.cmp-split > .section-head { margin-bottom: 0; }
.cmp-split > .section-head .note { margin: var(--space-4) 0 0; max-width: 34rem; }
.cmp-tabs { margin-top: var(--space-5); }
.cmp-tabs .icon { width: 16px; height: 16px; }
.no-js .cmp-panel[hidden] { display: block; margin-top: var(--space-5); }

/* Headline figures */
.cmp-hero { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 1024px) { .cmp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); } }
.cmp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin: 0; }
.cmp-stat { display: grid; gap: var(--space-2); align-content: start; padding-top: var(--space-3); border-top: 2px solid var(--ink); }
.cmp-stat:first-child { border-top-color: var(--speech); }
.cmp-stat-num { font-family: var(--font-display); font-stretch: var(--display-width); font-weight: var(--weight-bold); font-size: var(--text-5xl); line-height: 1; letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.cmp-stat:first-child .cmp-stat-num { color: var(--speech); }
.cmp-stat dd { margin: 0; max-width: 18rem; font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink-muted); }
.cmp-stat dd strong { color: var(--ink); font-weight: var(--weight-semibold); }
.cmp-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-5); }
.cmp-stats--3 .cmp-stat-num { font-size: var(--text-3xl); }
.cmp-stats--3 dd { font-size: var(--text-caption); line-height: var(--leading-caption); }

/* Bars */
.cmp-bars { list-style: none; display: grid; gap: var(--space-3); margin: 0; padding: 0; }
.cmp-row { display: grid; grid-template-columns: var(--cmp-label-w) minmax(0, 1fr) var(--cmp-val-w); align-items: center; gap: var(--space-3); }
.cmp-row--p { --cmp-c: var(--cmp-pravaani); } .cmp-row--s { --cmp-c: var(--cmp-sarvam); } .cmp-row--g { --cmp-c: var(--cmp-gnani); } .cmp-row--o { --cmp-c: var(--cmp-other); }
.cmp-label { min-width: 0; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink); }
.cmp-sub { display: block; font-weight: var(--weight-regular); font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--ink-muted); }
.cmp-row.is-us .cmp-label { font-weight: var(--weight-semibold); }
.cmp-track { position: relative; height: 22px; border-radius: 6px; background: var(--paper-sunken); overflow: hidden; }
.cmp-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) / var(--max) * 100%); border-radius: inherit; background: var(--cmp-c, var(--cmp-other)); transform-origin: left center; transition: transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.cmp-val { font-family: var(--font-mono); font-size: var(--text-sm); line-height: var(--leading-sm); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.cmp-row.is-us .cmp-val { color: var(--speech); font-weight: var(--weight-semibold); }
.cmp-bars--mini { gap: var(--space-2); }
.cmp-bars--mini .cmp-track { height: 16px; }
.cmp-axis { position: relative; height: 18px; margin: var(--space-1) calc(var(--cmp-val-w) + var(--space-3)) 0 calc(var(--cmp-label-w) + var(--space-3)); }
.cmp-axis span { position: absolute; top: 0; left: calc(var(--t) / var(--max) * 100%); transform: translateX(-50%); font-family: var(--font-mono); font-size: var(--text-micro); line-height: 18px; color: var(--ink-muted); }

/* Per-language character error (shravan-1) with the median */
.cmp-chart--cer { --cmp-label-w: 6rem; --cmp-val-w: 3rem; }
.cmp-cer { position: relative; padding-top: var(--space-5); }
.cmp-bars--cer { gap: 2px; }
.cmp-bars--cer .cmp-label { font-size: var(--text-caption); line-height: var(--leading-caption); }
.cmp-bars--cer .cmp-val { font-size: var(--text-caption); line-height: var(--leading-caption); }
.cmp-bars--cer .cmp-track { height: 10px; border-radius: 3px; }
.cmp-median { position: absolute; top: 0; bottom: 0; left: calc(var(--cmp-label-w) + var(--space-3) + (100% - var(--cmp-label-w) - var(--cmp-val-w) - 2 * var(--space-3)) * var(--v) / var(--max)); border-left: 2px dashed var(--ink); pointer-events: none; }
.cmp-median span { position: absolute; top: 0; left: var(--space-2); white-space: nowrap; font-family: var(--font-mono); font-size: var(--text-micro); line-height: 16px; color: var(--ink); }

/* Phone calls: one row per language, IndicConformer and Sarvam Audio on one scale */
.cmp-panel { --cmp-label-w: 7rem; --cmp-val-w: 6.75rem; }
.cmp-panel.cmp-chart--wer { --cmp-label-w: 13rem; --cmp-val-w: 3.5rem; }
.cmp-dbs { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0; }
.cmp-db { display: grid; grid-template-columns: var(--cmp-label-w) minmax(0, 1fr) var(--cmp-val-w); align-items: center; gap: var(--space-3); }
.cmp-db .cmp-label { font-size: var(--text-caption); line-height: 20px; }
.cmp-db .cmp-val { font-size: var(--text-caption); line-height: 20px; color: var(--ink-muted); }
.cmp-db .cmp-val b { font-weight: var(--weight-semibold); color: var(--ink); }
.cmp-db.is-ahead .cmp-val b { color: var(--speech); }
.cmp-db.is-ahead .cmp-label { font-weight: var(--weight-semibold); }
.cmp-plot { position: relative; height: 20px; background: linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 100% repeat-x; }
.cmp-plot::before { content: ""; position: absolute; top: 50%; height: 2px; margin-top: -1px; left: calc(var(--lo) / var(--max) * 100%); width: calc((var(--hi) - var(--lo)) / var(--max) * 100%); background: var(--line-strong); }
.cmp-pin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--cmp-pravaani); box-shadow: 0 0 0 2px var(--panel); transition: transform .6s var(--ease-spring); transition-delay: calc(var(--i, 0) * 40ms + 200ms); }
.cmp-pin--s { border-radius: 3px; background: var(--cmp-sarvam); }
.cmp-plot .cmp-pin { position: absolute; top: 50%; margin: -6px 0 0 -6px; }
.cmp-plot .cmp-pin--p { left: calc(var(--a) / var(--max) * 100%); z-index: 1; }
.cmp-plot .cmp-pin--s { left: calc(var(--b) / var(--max) * 100%); }
.cmp-split > .section-head .cmp-improving { padding-left: var(--space-3); border-left: 2px solid var(--cmp-sarvam); }

/* Legends and the language-by-language matrix */
.cmp-legend { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: var(--space-2) 0 0; padding: 0; font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--ink-muted); }
.cmp-legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.cmp-dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--cmp-c); vertical-align: middle; }
.cmp-dot--p { --cmp-c: var(--cmp-pravaani); }
.cmp-dot--s { --cmp-c: var(--cmp-sarvam); border-radius: 3px; }
.cmp-dot--g { --cmp-c: var(--cmp-gnani); border-radius: 2px; transform: rotate(45deg) scale(.86); }
.cmp-dot--no { width: 11px; height: 11px; background: transparent; border: 1.5px solid var(--line-strong); }
.cmp-only-key { display: inline-block; width: 16px; height: 12px; border-radius: 3px; background: var(--speech-tint); border: 1px solid var(--speech); }
.cmp-matrix-pair { display: grid; gap: 0 var(--space-5); }
@media (min-width: 560px) { .cmp-matrix-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cmp-matrix th, .cmp-matrix td { padding: 2px var(--space-2); border-bottom: 1px solid var(--line-faint); vertical-align: middle; }
.cmp-matrix thead th { padding-bottom: var(--space-1); text-align: center; text-transform: none; }
.cmp-matrix thead abbr { text-decoration: none; font-weight: var(--weight-semibold); color: var(--ink); }
.cmp-matrix td { width: 2.5rem; text-align: center; }
.cmp-matrix tbody th { min-width: 0; font-size: var(--text-sm); line-height: var(--leading-script); }
.cmp-matrix tbody tr:hover { background: transparent; }
.cmp-matrix tr.is-only :is(th, td) { background: var(--speech-tint); }
.cmp-matrix tr.is-only th { color: var(--speech-ink); font-weight: var(--weight-semibold); }
.cmp-matrix-card > .caption { margin: var(--space-3) 0 0; }

/* Data tables (collapsed by default, always in the page) */
.cmp-data { margin-top: var(--space-3); }
.cmp-data summary { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 32px; cursor: pointer; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cmp-data summary:hover { text-decoration-thickness: 2px; }
.cmp-data-wrap { max-height: 15rem; overflow: auto; margin-top: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--panel); }
.cmp-table caption { padding: var(--space-2) var(--space-3) var(--space-1); font-size: var(--text-sm); line-height: var(--leading-sm); }
.cmp-table th, .cmp-table td { padding: var(--space-1) var(--space-3); font-size: var(--text-caption); line-height: var(--leading-caption); font-variant-numeric: tabular-nums; }
.cmp-table thead th { position: sticky; top: 0; z-index: 1; white-space: normal; }
.cmp-table tbody th { min-width: 0; }

/* How to read this, sources */
.cmp-notes { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 1024px) { .cmp-notes { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); } }
.cmp-notes .h2 { margin-bottom: var(--space-5); }
.cmp-caveats { list-style: none; display: grid; gap: var(--space-3) var(--space-5); margin: 0; padding: 0; }
@media (min-width: 768px) { .cmp-caveats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cmp-caveats li { padding-left: var(--space-3); border-left: 2px solid var(--speech); font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink-muted); }
.cmp-caveats strong { color: var(--ink); font-weight: var(--weight-semibold); }
.cmp-sources-title { margin: 0 0 var(--space-3); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-lg); line-height: var(--leading-2xl); }
.cmp-sources a { color: var(--ink); overflow-wrap: anywhere; }
.cmp-download { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-5) 0 var(--space-3); font-size: var(--text-prose); line-height: var(--leading-prose); }
.cmp-download .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--speech); }

/* Home teaser */
.cmp-teaser { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1024px) { .cmp-teaser { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); } }
.cmp-teaser > .section-head { margin-bottom: 0; }
.cmp-teaser .lead { max-width: 34em; } /* under 80 characters a line at 1920 */
.cmp-teaser-card { --cmp-label-w: 9.5rem; --cmp-val-w: 2rem; }

/* Speech languages: 22 + 2 chips in one screen */
.lang-grid--dense { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 6px; }
.lang-grid--dense .lang-chip { padding: var(--space-2) var(--space-3); }
.lang-grid--dense .lang-chip .native { font-size: var(--text-lg); }

/* Motion: grow on first sight and when a tab shows the panel */
.reveal-ready :is(.cmp-chart, .cmp-panels):not(.is-visible) .cmp-fill { transform: scaleX(0); }
.reveal-ready :is(.cmp-chart, .cmp-panels):not(.is-visible) .cmp-plot .cmp-pin { transform: scale(0); }
.cmp-panel.is-entering .cmp-fill { animation: cmp-grow .8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.cmp-panel.is-entering .cmp-plot .cmp-pin { animation: cmp-pop .5s var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 40ms + 150ms); }
@keyframes cmp-grow { from { transform: scaleX(0); } }
@keyframes cmp-pop { from { transform: scale(0); } }
@media (prefers-reduced-motion: reduce) { .cmp-fill, .cmp-pin { transform: none !important; animation: none !important; } }

@media (max-width: 639px) {
  .cmp-card { padding: var(--space-4); --cmp-label-w: 7.5rem; }
  .cmp-panel { --cmp-label-w: 5.75rem; --cmp-val-w: 6.25rem; }
  .cmp-panel.cmp-chart--wer { --cmp-label-w: 8rem; --cmp-val-w: 3.25rem; }
  .cmp-chart--cer { --cmp-label-w: 5rem; }
  /* Phones: label and value on one line, the bar or the two pins full width below. */
  .cmp-bars:not(.cmp-bars--cer) .cmp-row, .cmp-db { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-1); }
  .cmp-bars:not(.cmp-bars--cer) .cmp-track, .cmp-db .cmp-plot { grid-column: 1 / -1; grid-row: 2; }
  .cmp-dbs { gap: var(--space-2); }
  .cmp-chart--wer .cmp-axis, .cmp-dbs + .cmp-axis { margin-inline: 0; }
  .cmp-stats--3 { gap: var(--space-3); }
  .cmp-stats--3 .cmp-stat-num { font-size: var(--text-2xl); }
}
@media (min-width: 1024px) and (max-height: 900px) {
  .cmp-card { padding: var(--space-4) var(--space-5); }
  .cmp-stat-num { font-size: var(--text-4xl); }
  .cmp-stats { gap: var(--space-4); }
  .cmp-head { margin-bottom: var(--space-3); }
  .cmp-take { margin-top: var(--space-3); }
}
@media (min-width: 1024px) and (max-height: 780px) {
  .cmp-bars { gap: var(--space-2); }
  .cmp-bars--cer { gap: 1px; }
  .cmp-bars--cer .cmp-label, .cmp-bars--cer .cmp-val { line-height: 15px; }
  .cmp-db .cmp-label, .cmp-db .cmp-val { line-height: 18px; }
  .cmp-plot { height: 18px; }
  .cmp-take, .cmp-improving { font-size: var(--text-caption); line-height: var(--leading-caption); }
  .cmp-caveats li { font-size: var(--text-caption); line-height: var(--leading-caption); }
  .cmp-split > .section-head .note { font-size: var(--text-caption); line-height: var(--leading-caption); }
}

/* ---------- Touch targets (ui-ux-pro-max touch-target-size, touch-spacing) ----------
   Below 1024px, or on any touch screen, every control is at least 44x44 with 8px
   between neighbours. Source numbers inside a sentence keep their small chip and get a
   44px hit area around it (--hit-area is what fx/test/ux.test.mjs reads). Desktop
   pointers keep the compact sizes the one-screen rule was tuned with. */
.stat-label sup a, .cmp-ref a { position: relative; }
.stat-label sup a::after, .cmp-ref a::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); --hit-area: 44;
}
.cmp-ref a { min-width: 24px; height: 24px; border-radius: 12px; }
.cmp-ref + .cmp-ref { margin-left: var(--space-1); }
@media (max-width: 1023px), (pointer: coarse) {
  .code-tab, .seg-tab, .call-langs .seg-tab, .call-history summary, .copy-btn, .ps3d-legend button, .cmp-data summary { min-height: 44px; }
  .code-tabs, .seg-tabs, .sampler-tabs { gap: var(--space-2); }
  .site-footer ul { gap: var(--space-2); }
  .site-footer li a { min-height: 44px; }
  .text-link, .hero-note .text-link, .night-foot .text-link, .faq-ask .text-link { min-height: 44px; }
  .cmp-sources li a, .footnotes li > a, .footnotes li > span > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
  .card h3 > .plain-link:only-child { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- Line length (ui-ux-pro-max line-length-control): prose stays near 60-75
   characters a line even where its column is wider. */
.note, .path p, .footnotes li, p.caption, .cmp-take { max-width: 36em; }
/* The languages legend note is long and must stay two lines tall at 1280x720 (one-screen
   rule): on wide screens it is set in columns instead of one 180-character line. The
   platform legend keeps its 60ch (two short lines). */
.note.delta-note { max-width: 72rem; }
@media (min-width: 1024px) { .note.delta-note { columns: 2; column-gap: var(--space-6); } }
@media (min-width: 1360px) { .note.delta-note { columns: 3; } }

/* ============================================================
   Flagship round (October 2026): header start link, footer languages,
   pricing, compare, per-language pages
   ============================================================ */
.header-start {
  display: none; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  border-radius: var(--radius-control); color: var(--ink); text-decoration: none;
  font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-semibold);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.header-start:hover { background: var(--paper-muted); }
@media (min-width: 1180px) { .header-start { display: inline-flex; } }

.footer-langs { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line-on-night); }
.footer-langs ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--space-2); }
.footer-langs li a { min-height: 44px; min-width: 44px; width: 100%; }
@media (min-width: 1024px) and (pointer: fine) { .footer-langs ul { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); } .footer-langs li a { min-height: 32px; width: auto; } }

/* Shared: small sub-label inside table headers and cells */
.lp-sub { display: block; font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--ink-muted); font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-weight: var(--weight-regular); }

/* ---------- Pricing ---------- */
.hero--pricing { --hero-glow: var(--studio-glow); }
.hero--compare { --hero-glow: var(--agents-glow); }
.price-glance { display: grid; gap: 0; margin: 0; border-radius: var(--radius-panel); background: var(--glass-night); border: 1px solid var(--line-on-night); box-shadow: var(--shadow-night); overflow: hidden; }
.price-glance div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-4); align-items: baseline; padding: var(--space-5); }
.price-glance div + div { border-top: 1px solid var(--line-on-night); }
.price-glance dt { font-family: var(--eyebrow-font); font-size: var(--eyebrow-size); letter-spacing: var(--tracking-eyebrow); text-transform: var(--eyebrow-case); color: var(--on-night-subtle); }
.price-glance dd { margin: 0; color: var(--on-night-muted); font-size: var(--text-prose); line-height: var(--leading-prose); }
.price-glance strong { display: block; font-family: var(--font-display); font-stretch: var(--display-width); font-size: var(--text-3xl); line-height: var(--leading-3xl); font-weight: var(--weight-semibold); color: var(--marigold-glow); letter-spacing: var(--tracking-tight); }

.plans { list-style: none; display: grid; gap: var(--space-4); margin-bottom: var(--space-5); }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan {
  display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6) var(--space-5);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel);
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.plan:hover { box-shadow: var(--shadow-raised); border-color: var(--line-strong); }
.plan--feature { border-color: var(--studio); box-shadow: inset 0 0 0 1px var(--studio); }
.plan-name { font-family: var(--font-display); font-stretch: var(--display-width); font-size: var(--text-xl); line-height: var(--leading-xl); }
.plan-price { display: grid; gap: var(--space-1); margin: 0; }
.plan-price strong { font-family: var(--font-display); font-stretch: var(--display-width); font-size: var(--text-5xl); line-height: var(--leading-5xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); color: var(--ink-strong); }
.plan-price span { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink-muted); }
.plan-lines { list-style: none; display: grid; gap: var(--space-2); align-content: start; flex: 1; padding-top: var(--space-4); border-top: 1px solid var(--line-faint); }
.plan-lines li { position: relative; padding-left: var(--space-5); font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink); }
.plan-lines li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--studio); transform: rotate(45deg); }
.plan-cta { justify-content: center; }
.plans-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-7); }
.plans-head .section-head { margin-bottom: 0; }
@media (min-width: 1024px) { .plans-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-6); } }
@media (min-width: 1024px) and (max-height: 820px) { .plans-head { margin-bottom: var(--space-4); } }
@media (min-width: 1024px) { .faq-grid--wide { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); } .faq-grid--wide .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.billing-toggle { justify-self: start; }
.billing-toggle .seg-tab { min-height: 44px; }
.billing-toggle .seg-tab[aria-checked="true"] { color: var(--ink); font-weight: var(--weight-semibold); background: var(--panel); box-shadow: var(--shadow-soft); }
.plan-price[hidden] { display: none; }
.credits-side { display: grid; gap: var(--space-4); align-content: start; }
.credits-side .section-head, .credits-side .note { margin-bottom: 0; }
.credits-side .table-wrap { min-height: 0; }
#topups .table-wrap { max-height: none; }
/* Agents plans: heading and lead on the left, the call-minute rate card on the right. */
.agents-head { display: grid; gap: var(--space-5); margin-bottom: var(--space-5); }
.agents-head .section-head { margin-bottom: 0; }
@media (min-width: 1024px) { .agents-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; } }
.rate-card { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--panel); padding: var(--space-4) var(--space-5); }
.rate-card__title { margin: 0 0 var(--space-3); font-weight: var(--weight-semibold); }
.rate-card__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin: 0; }
.rate-card__grid dt { font-size: var(--text-sm); color: var(--ink-muted); line-height: var(--leading-caption); }
.rate-card__grid dd { margin: var(--space-1) 0 0; font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-xl); font-variant-numeric: tabular-nums; }
.rate-card__note { margin: var(--space-3) 0 0; font-size: var(--text-sm); color: var(--ink-muted); }
@media (max-width: 599px) { .rate-card__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rate-card__note, .rate-card__grid dt { font-size: var(--text-base); } }

.credits-grid { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 1024px) { .credits-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } .credits-grid .section-head { margin-bottom: 0; } }
.rate-table td, .plan-table td { font-variant-numeric: tabular-nums; }
.rate-table tbody th { font-weight: var(--weight-semibold); }
.rate-product { display: block; font-family: var(--eyebrow-font); font-size: var(--text-caption); line-height: var(--leading-caption); letter-spacing: var(--tracking-eyebrow); text-transform: var(--eyebrow-case); font-weight: var(--weight-medium); }
.rate-product--speech { color: var(--speech-ink); }
.rate-product--agents { color: var(--agents-ink); }
.rate-product--studio { color: var(--studio-ink); }
.credits-grid .caption, .credits-grid .table-wrap + .caption { padding: var(--space-3) var(--space-5) var(--space-4); margin: 0; color: var(--ink-muted); }
.plan-table thead th:not(:first-child), .plan-table td { text-align: center; }

/* ---------- Compare ---------- */
.cmpx { min-width: 980px; }
.cmpx th, .cmpx td { font-size: var(--text-prose); line-height: var(--leading-prose); }
.cmpx thead th { white-space: normal; }
.cmpx tbody th { position: sticky; left: 0; z-index: 1; background: var(--panel); font-weight: var(--weight-semibold); min-width: 130px; }
.cmpx tr.is-us th, .cmpx tr.is-us td { background: var(--marigold-tint); }
.cmpx tr.is-us th { color: var(--ink-strong); }
.cmpx .yes { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--success); font-weight: var(--weight-semibold); }
.cmpx .yes .icon { width: 16px; height: 16px; }
.cmpx .no { color: var(--ink-muted); }
.cmpx-wrap + .caption { margin-top: var(--space-4); max-width: 60em; }

.diff-bento { list-style: none; display: grid; gap: var(--space-4); }
@media (min-width: 900px) {
  .diff-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .diff--lang { grid-column: span 7; grid-row: span 2; }
  .diff--platform { grid-column: span 5; }
  .diff--bench { grid-column: span 5; }
  .diff--price { grid-column: span 12; }
}
.diff {
  display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel);
}
.diff h3 { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-stretch: var(--display-width); font-size: var(--text-xl); line-height: var(--leading-xl); }
.diff h3 .icon { width: 22px; height: 22px; flex: none; color: var(--studio-ink); }
.diff p { margin: 0; color: var(--ink-muted); font-size: var(--text-prose); line-height: var(--leading-prose); max-width: 38em; }
.diff .text-link { margin-top: auto; }
.diff--lang { background: var(--night); border-color: var(--night-line); color: var(--on-night); }
.diff--lang p { color: var(--on-night-muted); }
.diff--lang h3 .icon { color: var(--marigold-glow); }
.diff--lang .text-link { color: var(--marigold-glow); }
.diff-glyphs { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-4) 0; font-family: var(--font-display); font-size: var(--text-5xl); line-height: var(--leading-script-display); color: transparent; background: var(--grad-glow); -webkit-background-clip: text; background-clip: text; }
.diff-glyphs span:lang(ur), .diff-glyphs span:lang(ks-Arab), .diff-glyphs span:lang(sd-Arab) { font-family: var(--font-nastaliq); line-height: var(--leading-nastaliq); }
.diff--price { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; background: var(--paper-muted); }
.diff--price .text-link { margin-top: 0; }

.ahead-grid { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 1024px) { .ahead-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-8); } .ahead-grid .section-head { margin-bottom: 0; } }
.ahead-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .ahead-list { grid-template-columns: 1fr 1fr; column-gap: var(--space-6); } }
.ahead-list li { padding: var(--space-5) 0; border-bottom: 1px solid var(--line-faint); }
.ahead-list h3 { font-size: var(--text-lg); line-height: var(--leading-lg); margin-bottom: var(--space-2); }
.ahead-list p { margin: 0; color: var(--ink-muted); font-size: var(--text-prose); line-height: var(--leading-prose); }
.cmpx-sources { columns: 1; }
@media (min-width: 900px) { .cmpx-sources { columns: 2; column-gap: var(--space-7); } }
.cmpx-sources li { break-inside: avoid; }

/* ---------- Per-language pages ---------- */
.hero--lang { --hero-glow: var(--marigold-glow); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-5); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--on-night-subtle); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-1); color: var(--on-night-subtle); }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--on-night-muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-on-night); }
.crumbs a:hover { color: var(--on-night); }
.crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-night); }
@media (min-width: 1024px) and (pointer: fine) { .crumbs a, .crumbs [aria-current] { min-height: 32px; } }
.lp-glyph { display: none; margin: 0; }
@media (min-width: 1024px) {
  .lp-glyph { display: block; justify-self: center; font-family: var(--font-display); font-size: var(--text-7xl); line-height: var(--leading-script-display); color: transparent; background: var(--grad-glow); -webkit-background-clip: text; background-clip: text; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
  .lp-glyph span:lang(ur), .lp-glyph span:lang(ks-Arab), .lp-glyph span:lang(sd-Arab) { font-family: var(--font-nastaliq); line-height: var(--leading-nastaliq); }
}
.lp-products { list-style: none; display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .lp-products { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: auto auto; } .lp-product--speech { grid-row: span 2; } }
.lp-product { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.lp-product h3 { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-stretch: var(--display-width); font-size: var(--text-xl); line-height: var(--leading-xl); }
.lp-product h3 .icon { width: 22px; height: 22px; }
.lp-product p { margin: 0; color: var(--ink-muted); font-size: var(--text-prose); line-height: var(--leading-prose); }
.lp-product .text-link { margin-top: auto; }
.lp-product--speech { border-top: 4px solid var(--speech); }
.lp-product--speech h3 .icon { color: var(--speech-ink); }
.lp-product--agents { border-top: 4px solid var(--agents); }
.lp-product--agents h3 .icon { color: var(--agents-ink); }
.lp-product--studio { border-top: 4px solid var(--studio); }
.lp-product--studio h3 .icon { color: var(--studio-ink); }
.lp-status { display: flex; gap: var(--space-2); }
.lp-measured, .lp-try { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 1024px) {
  .lp-measured { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); }
  .lp-try { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: center; }
  :is(.lp-measured, .lp-try) .section-head { margin-bottom: 0; }
}
.lp-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-table td:nth-child(2) { font-weight: var(--weight-semibold); color: var(--ink-strong); }
.lp-weak { padding: var(--space-4); border-left: 3px solid var(--marigold); background: var(--marigold-tint); border-radius: 0 var(--radius-control) var(--radius-control) 0; color: var(--ink); }
.lp-code { margin: 0; padding: var(--space-5); overflow: auto; border-radius: var(--radius-panel); background: var(--night); color: var(--on-night); border: 1px solid var(--night-line); box-shadow: var(--shadow-night); font-size: var(--text-caption); line-height: 1.75; }
.lp-code code { font-size: var(--text-caption); }
.lp-pager { display: flex; gap: var(--space-5); margin: var(--space-4) 0 0; }
.lp-pager a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-night-muted); }
.lp-pager a[rel="prev"]::before { content: "\2190"; margin-right: var(--space-2); }
.lp-pager a[rel="next"]::after { content: "\2192"; margin-left: var(--space-2); }
.cx-hero-chart { box-shadow: var(--shadow-night); color: var(--ink); }
.cx-hero-chart .cmp-head h2 { color: var(--ink-strong); }
.cx-hero-chart .caption { color: var(--ink-muted); }
.lp-facts { display: grid; gap: 0; margin: var(--space-2) 0 var(--space-4); border-top: 1px solid var(--line-faint); }
.lp-facts div { display: grid; gap: var(--space-1); padding: var(--space-3) 0; border-bottom: 1px solid var(--line-faint); }
@media (min-width: 640px) { .lp-facts div { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-4); } }
.lp-facts dt { font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-semibold); color: var(--ink); }
.lp-facts dd { margin: 0; font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink-muted); }

/* ---------- Home hero, flagship: copy left, a real voice-over on the right ---------- */
.hero-fine { margin: var(--space-4) 0 0; font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--on-night-muted); }
.hero-fine .plain-link { color: var(--on-night); }
.hero-hear { position: relative; margin-bottom: var(--space-5); max-width: 36rem; }
.hero-hear__title { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); font-family: var(--font-sans); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-semibold); color: var(--on-night); letter-spacing: 0; }
.hero-hear__title .icon { width: 18px; height: 18px; color: var(--marigold-glow); }
.sampler--hero { padding: var(--space-4); box-shadow: var(--shadow-night); }
.sampler--hero .sampler-tab { min-height: 44px; }
.sampler--hero .sample-panel { padding-top: var(--space-4); }
.sampler--hero .sample-play { width: 52px; height: 52px; }
.sampler--hero .sample-play:active { transform: scale(.97); }
.sampler--hero .wave { height: 52px; }
.sampler--hero .sample-line { margin: var(--space-3) 0 var(--space-1); font-size: var(--text-lg); line-height: var(--leading-script); }
.sampler--hero .sample-en { font-size: var(--text-prose); line-height: var(--leading-prose); }
.sampler--hero .sampler-proof { margin-top: var(--space-3); padding-top: var(--space-3); }
@media (min-width: 1024px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7); align-items: end; }
  .hero-hear { justify-self: end; width: 100%; }
  .hero-river .river-glyph { top: 34%; }
}
.proof-strip--4 { margin-top: 0; }
@media (min-width: 900px) { .proof-strip--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.proof-strip .plain-link { color: var(--on-night); }
.river-tools { position: absolute; z-index: 2; right: max(var(--gutter), calc((100vw - var(--w-page)) / 2 + var(--gutter))); top: var(--space-4); display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); max-width: 22rem; }
.river-tools .listen-btn { min-height: 44px; border-style: solid; background: var(--glass-night); }
.river-tools .river-note { margin: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); background: var(--night-raised); color: var(--on-night-muted); text-align: right; opacity: 0; transform: translateY(-4px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); pointer-events: none; }
.river-tools:is(:hover, :focus-within) .river-note, .river-tools:has(.listen-btn[aria-pressed="true"]) .river-note { opacity: 1; transform: none; }
@media (max-width: 1023px) { .river-tools { position: static; align-items: flex-start; margin: 0 var(--gutter) var(--space-4); max-width: none; } .river-tools .river-note { text-align: left; } }
@media (prefers-reduced-motion: reduce) { .river-tools .river-note { transition: none; } }
.sampler--hero { color: var(--ink); }
.sampler--hero .caption { color: var(--ink-muted); }
@media (min-width: 1024px) { .hero-grid .hero-title { font-size: var(--text-5xl); line-height: var(--leading-5xl); } }

@media (min-width: 1024px) and (max-height: 780px) { .hero-grid .hero-title { font-size: var(--text-5xl); line-height: var(--leading-5xl); } }
.why-points { list-style: none; display: grid; gap: var(--space-3); margin: 0 0 var(--space-5); }
.why-points li { position: relative; padding-left: var(--space-5); font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink-muted); max-width: 38em; }
.why-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--speech); }
.why-points strong { color: var(--ink); }
/* Products: not three equal cards. Agents (the call) leads a little wider. */
@media (min-width: 1024px) { .product-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); } }
/* Products: heading and lead stacked (no corner paragraph); keeps the .section-intro hook the tests focus. */
#products .section-intro { display: block; }
#products .section-intro .h2 { margin-bottom: var(--space-3); }
@media (min-width: 1024px) { .hero--compare .hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero--compare h1, .hero--pricing h1, .hero--lang h1 { text-wrap: balance; }
/* One screen per section on laptops (fit.test: 1366x768, 1280x720) */
@media (min-width: 1024px) and (max-height: 820px) {
  .plan { padding: var(--space-4); gap: var(--space-3); }
  .plan-price strong { font-size: var(--text-4xl); line-height: var(--leading-4xl); }
  .plan-lines { gap: var(--space-1); padding-top: var(--space-3); }
  .plan-lines li { font-size: var(--text-sm); line-height: var(--leading-sm); }
  #studio-plans .note { margin-bottom: 0; }
  .diff-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .diff--lang { grid-column: span 6; grid-row: span 2; }
  .diff--platform { grid-column: span 6; }
  .diff--bench, .diff--price { grid-column: span 3; }
  .diff--price { flex-direction: column; align-items: flex-start; }
  .diff { padding: var(--space-5); gap: var(--space-2); }
  .diff-glyphs { font-size: var(--text-3xl); margin: var(--space-2) 0; }
  .lp-product { padding: var(--space-5); gap: var(--space-2); }
  .lp-facts div { padding: var(--space-2) 0; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .plan-price { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
  #studio-plans .section-head { margin-bottom: var(--space-4); }
  #differences .section-head { margin-bottom: var(--space-4); }
  .diff p { font-size: var(--text-sm); line-height: var(--leading-sm); }
}
@media (min-width: 1024px) and (max-height: 740px) {
  .plan { gap: var(--space-2); }
  #studio-plans .note { font-size: var(--text-caption); line-height: var(--leading-caption); margin-top: var(--space-2); }
  .plans { margin-bottom: var(--space-2); }
  .diff { padding: var(--space-4); }
  .diff-glyphs { font-size: var(--text-2xl); }
}
@media (min-width: 1024px) and (max-height: 740px) {
  .diff h3 { font-size: var(--text-lg); line-height: var(--leading-lg); }
  .diff-bento { gap: var(--space-3); }
}
@media (min-width: 1024px) and (max-height: 740px) { .diff { padding: var(--space-3) var(--space-4); } .diff-glyphs { margin: var(--space-1) 0; } }

/* ---------- Home hero, layout v2 (owner review): nothing overlaps ----------
   The section is a stage (river, copy, the letter's own slot, the Hear it card, and the river's
   lane at the bottom) above a separate proof band. The river (poster lines and WebGL) only draws
   inside the stage, and its flow stays in the lane below the copy ([data-river-lane]); the letter
   forms inside [data-river-anchor] (river.ts reads both boxes), so no text or card sits on a line
   or covers the letter. Where the slot is too small (short laptops) the letter is not drawn. */
.hero-river { --river-lane: clamp(64px, 11svh, 112px); display: flex; flex-direction: column; padding-block: 0; }
.hero-stage { position: relative; isolation: isolate; flex: 1 1 auto; display: flex; flex-direction: column; padding-top: var(--space-6); }
.hero-stage > .hero-grid { flex: 1 1 auto; }
.hero-stage > .river { inset: 0; }
.hero-stage .river-poster { inset: auto 0 0 0; height: var(--river-lane); -webkit-mask-image: linear-gradient(transparent, black 30%); mask-image: linear-gradient(transparent, black 30%); }
.hero-stage .rp { vector-effect: non-scaling-stroke; }
.river-lane { flex: none; height: var(--river-lane); pointer-events: none; }
.hero-proof { position: relative; z-index: 1; border-top: 1px solid var(--line-on-night); padding-bottom: var(--space-4); }
.hero-proof .proof-strip { border-top: 0; margin-top: 0; }
/* The section navigator (site.js) is a 54px-wide control 12px from the right edge, bottom-right in its
   compact form. On the first screen of laptops the proof strip's last item reached under it (1440x900:
   6px; 1280x720: 18px), so the strip keeps 74px (12 + 54 + 8 clearance) clear of the viewport's right
   edge, plus 10px for a classic scrollbar, which 100vw includes. Wide screens have the room already. */
@media (min-width: 1024px) {
  body:has(.section-nav:not([hidden])) .hero-proof .proof-strip { margin-inline-end: max(0px, calc(84px - (100vw - 100%) / 2)); }
}
.hero-river .hero-copy { padding-block: var(--space-2); animation: none; }
.hero-side { display: flex; flex-direction: column; gap: var(--space-3); min-height: 0; }
.river-tools, .river-tools.river-tools { position: relative; right: auto; top: auto; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); min-height: 44px; max-width: none; margin: 0; }
.river-tools .river-note { position: absolute; top: calc(100% + var(--space-1)); right: 0; z-index: 3; max-width: 22rem; }
.river-anchor { position: relative; flex: 1 1 0; min-height: 0; container-type: size; }
.river-anchor .river-glyph {
  position: absolute; inset: 0; top: 0; right: 0; display: grid; place-items: center; transform: none;
  font-size: var(--text-anchor); line-height: 1; opacity: .92;
}
.river-anchor .river-glyph.is-swapping { transform: scale(.94); }
@container (max-height: 95px) { .river-anchor .river-glyph { display: none; } }
.hero-river:has(.river[data-formed="true"]) .river-glyph { opacity: 0; }
.hero-hear { margin-bottom: 0; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7); align-items: stretch; }
  .hero-copy { align-self: center; }
  .hero-hear { justify-self: auto; }
}
@media (max-width: 1023px) {
  .hero-side { margin-top: var(--space-5); }
  .river-tools, .river-tools.river-tools { align-items: flex-start; }
  .river-tools .river-note { left: 0; right: auto; }
  .river-anchor { flex: none; height: 160px; }
}
/* Short laptops: a compact card leaves room for the letter. */
@media (min-width: 1024px) and (max-height: 820px) {
  .sampler--hero .sample-en, .sampler--hero .sampler-proof { display: none; }
  .sampler--hero .sampler-tab { min-height: 44px; padding-block: 2px; }
  .sampler--hero .sampler-tab .tab-en { display: none; }
}
/* No layout shift while the page streams in: the stage's height and the lane's space do not depend
   on elements parsed after the hero copy (the lane sits in reserved padding; on desktop the proof
   band has a fixed minimum height that the stage subtracts). */
.hero-stage { padding-bottom: var(--river-lane); }
.river-lane { position: absolute; left: 0; right: 0; bottom: 0; }
@media (min-width: 1024px) and (min-height: 600px) {
  .hero-river { --hero-proof-h: 136px; min-height: 0; }
  /* 2px: the section's top and bottom hairlines */
  .hero-stage { flex: none; min-height: calc(100svh - var(--header-h) - var(--hero-proof-h) - 2px); }
  .hero-proof { max-height: var(--hero-proof-h); overflow: hidden; }
  .hero-proof { min-height: var(--hero-proof-h); }
}
/* The card keeps its size while the script font and the tab island arrive (no layout shift). */
.sampler--hero .sample-line { min-height: calc(2em * var(--leading-script)); }
.sampler--hero .sample-en { min-height: calc(2em * var(--leading-prose)); }
.sampler--hero .sampler-tabs { min-height: calc(44px + 2 * var(--space-1)); }

/* ---------- Lead forms: book-demo.html and waitlist.html ----------
   A night intro panel (what happens, who to email) beside the form on paper. The one
   bold element is the product picker: three cards in each product's own colour. */
.lead-page { padding-block: var(--space-7) var(--section-y); background: var(--paper); }
.lead-grid { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 1024px) { .lead-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } }
.lead-intro {
  position: relative; overflow: hidden; isolation: isolate; padding: var(--space-6);
  border-radius: var(--radius-panel); background: var(--grad-night); color: var(--on-night);
}
@media (min-width: 1024px) { .lead-intro { position: sticky; top: calc(var(--header-h) + var(--space-5)); padding: var(--space-7) var(--space-6); } }
.lead-intro .river { position: absolute; inset: auto 0 0 0; height: 45%; z-index: -1; opacity: .55; }
/* Phones: the form comes sooner; the steps are repeated in the done state. */
@media (max-width: 639px) { .lead-intro { padding: var(--space-5); } .lead-intro .lead-steps, .lead-intro .lead-points, .lead-intro .river { display: none; } }
.lead-intro h1 { margin: var(--space-3) 0 var(--space-4); font-size: var(--text-4xl); line-height: var(--leading-4xl); }
.lead-intro .lead { color: var(--on-night-muted); margin: 0 0 var(--space-5); }
.lead-steps { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: var(--space-3); counter-reset: step; }
.lead-steps li { position: relative; padding-left: var(--space-7); font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--on-night); counter-increment: step; }
.lead-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: var(--radius-chip); border: 1px solid var(--line-on-night); color: var(--marigold-glow);
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: var(--weight-medium);
}
.lead-points { margin: 0 0 var(--space-5); padding-left: var(--space-5); display: grid; gap: var(--space-2); font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--on-night); }
.lead-contact { margin: 0; font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--on-night-muted); }
.lead-contact a { color: var(--on-night); }

.lead-panel { padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--panel); box-shadow: var(--shadow-soft); }
@media (max-width: 599px) { .lead-panel { padding: var(--space-5) var(--space-4); } }
.lead-form { display: grid; gap: var(--space-5); }
.lead-form .note { margin: 0; }
.field-grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field { display: grid; gap: var(--space-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-semibold); color: var(--ink); }
.field .opt { font-weight: var(--weight-regular); color: var(--ink-muted); }
.field-hint { margin: 0; font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong);
  border-radius: var(--radius-control); background: var(--paper); color: var(--ink);
  font: inherit; font-size: var(--text-base); line-height: var(--leading-base);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 112px; resize: vertical; }
.field select { appearance: none; padding-right: var(--space-7); }
.field--select { position: relative; }
.field--select::after {
  content: ""; position: absolute; right: var(--space-4); bottom: 20px; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: rotate(45deg);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); border-radius: var(--radius-control); }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.field-error { margin: 0; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); color: var(--danger); }
.field-error:empty { display: none; }

/* Product picker: a checkbox card per product, in its own colour. */
.product-picks { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .product-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product-pick {
  --pick: var(--ink); --pick-tint: var(--paper-muted); --pick-ink: var(--ink);
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start;
  min-height: 44px; padding: var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-card);
  background: var(--paper); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.product-pick--agents { --pick: var(--agents); --pick-tint: var(--agents-tint); --pick-ink: var(--agents-ink); }
.product-pick--studio { --pick: var(--studio); --pick-tint: var(--studio-tint); --pick-ink: var(--studio-ink); }
.product-pick--speech { --pick: var(--speech); --pick-tint: var(--speech-tint); --pick-ink: var(--speech-ink); }
.product-pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.product-pick .pick-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-control); background: var(--pick-tint); color: var(--pick-ink); }
.product-pick .pick-ic .icon { width: 20px; height: 20px; }
.product-pick strong { display: block; font-size: var(--text-base); line-height: var(--leading-base); color: var(--ink); }
.product-pick .desc { display: block; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink-muted); }
.product-pick .pick-check {
  position: absolute; top: var(--space-3); right: var(--space-3); width: 22px; height: 22px; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-chip); color: var(--ink-inverse); background: var(--paper);
}
.product-pick .pick-check .icon { width: 14px; height: 14px; opacity: 0; }
.product-pick:hover { border-color: var(--pick); }
.product-pick:has(input:checked) { border-color: var(--pick); background: var(--pick-tint); box-shadow: inset 0 0 0 1px var(--pick); }
.product-pick:has(input:checked) .pick-check { background: var(--pick); border-color: var(--pick); }
.product-pick:has(input:checked) .pick-check .icon { opacity: 1; }
.product-pick:has(input:checked) .desc { color: var(--pick-ink); }
.product-pick:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.product-picks[data-invalid] .product-pick { border-color: var(--danger); }

.consent { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; min-height: 44px; font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink); cursor: pointer; }
/* The real checkbox covers the whole label (a 44px target); the box beside the text is drawn. */
.consent input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.consent-box { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--paper); color: var(--ink-inverse); }
.consent-box .icon { width: 14px; height: 14px; opacity: 0; }
.consent:has(input:checked) .consent-box { background: var(--ink); border-color: var(--ink); }
.consent:has(input:checked) .consent-box .icon { opacity: 1; }
.consent:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.lead-privacy { font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink-muted); }
.lead-privacy a { color: var(--ink); }
.lead-form__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.lead-form__actions .btn { min-width: 12rem; }
.lead-form[aria-busy="true"] .lead-form__actions .btn { opacity: .7; cursor: progress; }
.lead-hp { display: none; }
.lead-alert { margin: 0; padding: var(--space-4); border-radius: var(--radius-control); background: var(--danger-tint); color: var(--danger); font-size: var(--text-prose); line-height: var(--leading-prose); }
.lead-alert:focus { outline: 2px solid var(--danger); outline-offset: 2px; }
.lead-alert a { color: inherit; font-weight: var(--weight-semibold); }
.lead-alert ul { margin: var(--space-2) 0 0; padding-left: var(--space-5); }
.lead-alert[hidden] { display: none; }
.lead-status { margin: 0; min-height: 1px; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--ink-muted); }

/* Done state: replaces the form, focus moves to its heading. */
.lead-done { display: grid; gap: var(--space-4); }
.lead-done[hidden] { display: none; }
.lead-done h2 { font-size: var(--text-3xl); line-height: var(--leading-3xl); }
.lead-done h2:focus { outline: none; }
.lead-done .done-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-chip); background: var(--success-tint); color: var(--success); }
.lead-done .done-mark .icon { width: 26px; height: 26px; }
.lead-done p { margin: 0; }
.lead-done ol { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); font-size: var(--text-prose); line-height: var(--leading-prose); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .lead-done:not([hidden]) .done-mark { animation: done-pop var(--dur-slow) var(--ease-spring) both; }
}
@keyframes done-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lead-form .consent + .lead-privacy { margin-top: calc(-1 * var(--space-3)); }
.cta-trust { margin: 0; color: var(--on-night-muted); }

/* ---------- Hear Pravaani (listen.html) ----------
   Players written by scripts/listen_samples.py; behaviour in widgets.js ("Listen players").
   One audio file per player; a conversation shows one lane per speaker (agent above,
   caller below) under a shared playhead. Without JS the native <audio controls> shows. */
.lx-convos { display: grid; gap: var(--space-6); }
.lx-convo, .lx-card, .lx-take {
  margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.lx-convo { padding: var(--space-5); }
@media (min-width: 768px) { .lx-convo { padding: var(--space-6); } }
.lx-head-row { margin-bottom: var(--space-4); }
.lx-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.lx-tag, .lx-badge {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 var(--space-3); border-radius: var(--radius-chip);
  font-size: var(--text-caption); line-height: var(--leading-caption); font-weight: var(--weight-semibold);
}
.lx-tag { background: var(--speech-tint); color: var(--speech-ink); }
.lx-badge {
  background: var(--marigold-tint); color: var(--marigold-ink); font-family: var(--font-mono);
  letter-spacing: .04em; font-weight: var(--weight-medium);
}
.lx-title { margin: var(--space-3) 0 var(--space-1); font-family: var(--font-display); font-size: var(--text-2xl); line-height: var(--leading-2xl); font-weight: var(--weight-display); }
.lx-note { margin: 0; color: var(--ink-muted); font-size: var(--text-prose); line-height: var(--leading-prose); max-width: 48rem; }

.lx-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); }
.lx-play {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: var(--speech); color: var(--ink-inverse); box-shadow: var(--shadow-raised);
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur-fast);
}
.lx-play:hover { background: var(--speech-strong); transform: scale(1.05); }
.lx-play .icon { width: 24px; height: 24px; grid-area: 1 / 1; }
.lx-play .icon + .icon, .lx-play.is-playing .icon:first-child { display: none; }
.lx-play.is-playing .icon + .icon { display: block; }
.lx-lanes { --p: 0; position: relative; display: grid; gap: var(--space-2); min-width: 0; cursor: pointer; border-radius: 6px; }
.lx-lane { display: grid; gap: 2px; min-width: 0; }
.lx-legend { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); margin: 0 0 var(--space-3); font-family: var(--font-mono); font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--ink-muted); }
.lx-key { display: inline-flex; align-items: center; gap: var(--space-2); }
.lx-key::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--speech); }
.lx-key--caller::before { background: var(--agents); }
.lx-wave { display: flex; align-items: center; gap: 2px; height: 40px; min-width: 0; overflow: hidden; }
.lx-wave i {
  flex: 1 1 0; min-width: 1px; height: calc(var(--h) * 1%); min-height: 3px; border-radius: 2px;
  background: var(--line-strong); opacity: .5; transition: background-color .15s, opacity .15s;
}
.lx-lane--agent .lx-wave i.is-on, .lx-lane--one .lx-wave i.is-on { background: var(--speech); opacity: 1; }
.lx-lane--caller .lx-wave i.is-on { background: var(--agents); opacity: 1; }
.lx-head {
  position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100%); width: 2px; margin-left: -1px;
  background: var(--ink); border-radius: 1px; opacity: 0; pointer-events: none;
}
.lx-lanes.is-started .lx-head { opacity: .8; }
.lx-time { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--ink-muted); min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; }
.no-js .lx-stage { display: none; }
.js [data-lx-player] audio { display: none; }
[data-lx-player] audio { width: 100%; margin-top: var(--space-3); }
@media (max-width: 599px) {
  .lx-wave i:nth-child(even) { display: none; }
  .lx-stage { gap: var(--space-3); }
  .lx-play { width: 48px; height: 48px; }
  /* A conversation's two lanes get the full width under the play button and the clock. */
  .lx-convo .lx-stage { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "play time" "lanes lanes"; }
  .lx-convo .lx-play { grid-area: play; }
  .lx-convo .lx-time { grid-area: time; text-align: left; }
  .lx-convo .lx-lanes { grid-area: lanes; }
}

.lx-caption { min-height: 4.5em; margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); background: var(--paper-muted); }
.lx-caption:empty { display: none; }
.no-js .lx-caption { display: none; }
.lx-caption .lx-native { display: block; font-size: var(--text-lg); line-height: var(--leading-script); color: var(--ink); }
.lx-caption .lx-gloss { display: block; margin-top: var(--space-1); }
.lx-gloss { color: var(--ink-muted); font-size: var(--text-prose); line-height: var(--leading-prose); }
.lx-native[dir="rtl"], .lx-said[dir="rtl"] { font-family: var(--font-nastaliq); line-height: var(--leading-nastaliq); text-align: right; }

.lx-script { margin-top: var(--space-4); }
.lx-script summary { cursor: pointer; font-weight: var(--weight-semibold); min-height: 44px; display: flex; align-items: center; }
.lx-script ol { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.lx-script li {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0 var(--space-3); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-control); transition: background-color var(--dur-fast);
}
.lx-script li.is-now { background: var(--speech-tint); }
.lx-script .lx-speaker { grid-row: span 2; font-family: var(--font-mono); font-size: var(--text-caption); line-height: var(--leading-script); color: var(--ink-muted); }
.lx-script li[data-who="caller"] .lx-speaker { color: var(--agents-ink); }
.lx-script .lx-native { line-height: var(--leading-script); }

.lx-sentence { margin: 0 0 var(--space-5); max-width: 52rem; }
.lx-sentence .lx-badge { margin-top: var(--space-2); }
.lx-said { margin: 0; font-size: var(--text-xl); line-height: var(--leading-script); color: var(--ink); }
.lx-sentence .lx-gloss { margin: var(--space-1) 0 0; }
.lx-takes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.lx-takes--2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.lx-take { padding: var(--space-4); }
.lx-take-name { margin: 0 0 var(--space-3); font-weight: var(--weight-semibold); }
.lx-take-note { margin: var(--space-3) 0 0; color: var(--ink-muted); font-size: var(--text-prose); line-height: var(--leading-prose); }
.lx-take .lx-wave, .lx-card .lx-wave { height: 36px; }
.lx-take .lx-play, .lx-card .lx-play { width: 44px; height: 44px; }
.lx-take .lx-play .icon, .lx-card .lx-play .icon { width: 20px; height: 20px; }
.lx-sub { margin: var(--space-7) 0 var(--space-4); font-family: var(--font-display); font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-display); }
.lx-how-grid .lx-sub { margin-top: 0; }

.lx-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.lx-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); scroll-margin-top: 96px; }
.lx-card-head { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: baseline; justify-content: space-between; }
.lx-lang { margin: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-2); align-items: baseline; font-size: var(--text-lg); line-height: var(--leading-xl); font-weight: var(--weight-semibold); }
.lx-lang-native { font-family: var(--font-display); }
.lx-lang-native[dir="rtl"] { font-family: var(--font-nastaliq); }
.lx-lang-en { color: var(--ink-muted); font-size: var(--text-sm); font-weight: var(--weight-regular); }
.lx-card .lx-said { font-size: var(--text-base); }
.lx-card .lx-gloss { margin: 0; }
.lx-heard { margin: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); background: var(--paper-muted); font-size: var(--text-sm); line-height: var(--leading-script); }
.lx-heard--off { color: var(--ink-muted); line-height: var(--leading-sm); }
.lx-label { display: block; font-family: var(--font-mono); font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--ink-muted); }
.lx-meta { margin: auto 0 0; font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--ink-muted); }
.lx-how-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.lx-how-grid p { margin: 0; color: var(--ink-muted); }
.lx-take .mono, .lx-card .mono { font-family: var(--font-mono); }

/* ============================================================
   Legal pages (privacy, terms, refunds, cookies, contact)
   Long-form text on paper: one readable column, numbered h2s,
   tables that scroll on their own, and two markers that must stay
   visible until a lawyer signs off: the draft notice and every
   [TO FILL] placeholder.
   ============================================================ */
.hero--legal { padding-block: var(--space-7) var(--space-6); }
.hero--legal h1 { font-size: var(--text-4xl); line-height: var(--leading-4xl); }
.legal-draft {
  display: flex; gap: var(--space-3); align-items: flex-start; margin: 0; max-width: 46rem;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-control);
  background: var(--marigold-tint); color: var(--marigold-ink);
  font-size: var(--text-sm); line-height: var(--leading-sm);
}
.legal-draft strong { font-weight: var(--weight-semibold); }
.legal-draft .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.legal-meta { margin: var(--space-4) 0 0; }
.legal-doc { max-width: 46rem; }
.legal-doc h2 {
  margin: var(--space-7) 0 var(--space-3); scroll-margin-top: 96px;
  font-family: var(--font-display); font-stretch: var(--display-width-narrow); font-weight: var(--weight-display);
  font-size: var(--text-2xl); line-height: var(--leading-2xl); letter-spacing: var(--tracking-tight);
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { margin: var(--space-5) 0 var(--space-2); font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold); }
.legal-doc p, .legal-doc li { font-size: var(--text-base); line-height: var(--leading-base); color: var(--ink); }
.legal-doc p { margin: 0 0 var(--space-3); }
.legal-doc ul, .legal-doc ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
.legal-doc li { margin-bottom: var(--space-2); }
.legal-doc a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc .table-wrap { margin: var(--space-4) 0 var(--space-5); max-height: none; min-height: 0; }
.legal-doc table { width: 100%; border-collapse: collapse; }
.legal-doc caption { padding: var(--space-3) var(--space-4); text-align: left; font-weight: var(--weight-semibold); }
.legal-doc th, .legal-doc td { padding: var(--space-2) var(--space-4); border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-size: var(--text-sm); line-height: var(--leading-sm); }
.legal-doc thead th { font-weight: var(--weight-semibold); background: var(--paper-muted); }
.legal-doc code { font-family: var(--font-mono); font-size: var(--text-sm); }
.legal-toc { margin: 0 0 var(--space-7); padding: var(--space-4) var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--panel); }
.legal-toc h2 { margin: 0 0 var(--space-2); font-family: var(--font-sans); font-stretch: 100%; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-semibold); letter-spacing: 0; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; columns: 2 14rem; column-gap: var(--space-6); }
.legal-toc li { margin: 0 0 var(--space-1); font-size: var(--text-sm); line-height: var(--leading-sm); break-inside: avoid; }
.to-fill { padding: 0 var(--space-1); border-radius: 4px; background: var(--marigold-tint); color: var(--marigold-ink); font-family: var(--font-mono); font-size: var(--text-sm); }
