/*
  Marketing site · components and layout.
  Every colour, size, radius and motion value comes from ../directions/combined/tokens.css (linked, never copied),
  so a fix in the design system reaches the site. Values defined here are marketing-only roles built from those
  tokens (fluid display sizes, section rhythm, the field palette helpers).

  The rules the site keeps from the system:
    people and actions are ink; the AI (Kavitha) is jamun, and on the jamun field the AI is rose. Nothing else is.
    hatching means "not real" (Practice, samples); the mark's right half is the calling-state lamp.
  What the site adds: bigger type, the jamun field as a Committed brand surface, purposeful motion.
*/

/* ------------------------------------------------------------------ marketing roles (from tokens) */
:root {
  --m-gutter: clamp(1rem, 0.4rem + 3vw, 2.5rem);
  --m-max: var(--content-max);                       /* 78rem, 1248 px */
  --m-section: clamp(4rem, 2.6rem + 5.4vw, 8rem);    /* vertical rhythm between sections */
  --m-d1: clamp(2.625rem, 1.15rem + 4.6vw, 5.75rem); /* hero, 42 to 92 px (ceiling < 6rem) */
  --m-d2: clamp(2rem, 1.35rem + 2.2vw, 3.375rem);    /* section heads, 32 to 54 px */
  --m-d3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);  /* sub heads, 22 to 28 px */
  --m-lede: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --m-body: 1.125rem;                                /* 18 px prose: Anek sets small */
  --m-quote: clamp(1.75rem, 1.15rem + 1.9vw, 3rem);  /* the buyer's words at section scale */

  /* the field (jamun brand surface): people are white, the AI is rose, nothing is grey */
  --f-bg: var(--color-ai-field);
  --f-ink: var(--color-on-ai-field);
  --f-ai: var(--color-on-ai-field-2);
  --f-line: color-mix(in oklch, var(--color-on-ai-field) 24%, var(--color-ai-field));
  --f-soft: color-mix(in oklch, var(--color-on-ai-field) 10%, var(--color-ai-field));
  --f-ai-dim: color-mix(in oklch, var(--color-on-ai-field-2) 76%, var(--color-ai-field)); /* the AI's words not spoken yet: 4.9:1 (dark 5.3:1) */
  --f-lamp-off: color-mix(in oklch, var(--color-on-ai-field) 42%, var(--color-ai-field)); /* a switched-off lamp: 3.4:1 */
  --mast-h: 76px;
}

/* Dark: the site's page is jamun-black, not the category's near-black (#151012 sits 3.0 from Vapi's theme colour).
   Only the page, sunk, surface, hover and line greys move toward jamun; ink, the AI ink and the field are the
   system's own dark tokens. Same selectors as tokens.css, so this follows the same theme switch. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-page: oklch(0.180 0.040 358);    /* #1F0911  ink 16.4:1, ink-3 7.6:1, AI ink 9.6:1 */
    --color-sunk: oklch(0.150 0.034 358);    /* #16050B */
    --color-surface: oklch(0.225 0.030 358); /* #27161C */
    --color-hover: oklch(0.250 0.035 358);
    --color-line: oklch(0.310 0.030 358);
    --color-line-strong: oklch(0.390 0.030 358);
    --color-hatch: oklch(0.390 0.030 358);
  }
}
:root[data-theme="dark"] {
  --color-page: oklch(0.180 0.040 358);
  --color-sunk: oklch(0.150 0.034 358);
  --color-surface: oklch(0.225 0.030 358);
  --color-hover: oklch(0.250 0.035 358);
  --color-line: oklch(0.310 0.030 358);
  --color-line-strong: oklch(0.390 0.030 358);
  --color-hatch: oklch(0.390 0.030 358);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { min-height: 100dvh; overflow-x: clip; font-size: var(--m-body); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
p, h1, h2, h3, h4, dl, dd, ol, ul, figure, blockquote, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: var(--weight-head); }
p, li, dd { text-wrap: pretty; }
html:lang(ta) body { line-height: var(--leading-indic); }
main:focus { outline: none; }
[hidden] { display: none !important; }
b, strong { font-weight: var(--weight-head); }   /* the system has no 700 */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -100px; z-index: var(--z-review); background: var(--color-ink); color: var(--color-on-ink); padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); }
.skip:focus { top: var(--space-2); }

/* one language at a time; the brand name before the script runs */
html[lang="ta"] [data-l="en"], html[lang="en"] [data-l="ta"] { display: none !important; }
html[data-mode="live"] [data-when]:not([data-when~="live"]),
html[data-mode="practice"] [data-when]:not([data-when~="practice"]),
html[data-mode="paused"] [data-when]:not([data-when~="paused"]) { display: none !important; }
[data-brand-name]:empty::before { content: var(--brand-name); }

.i { width: 20px; height: 20px; flex: none; }
.i--s { width: 16px; height: 16px; }
.i--l { width: 24px; height: 24px; }

.wrap { width: 100%; max-width: calc(var(--m-max) + 2 * var(--m-gutter)); margin-inline: auto; padding-inline: var(--m-gutter); }
.sec { padding-block: var(--m-section); }
.sec:not(.field):not(.sunk) + .sec:not(.field):not(.sunk) { padding-top: 0; }
.sunk { background: var(--color-sunk); }

/* ------------------------------------------------------------------ type */
.d1 { font-size: var(--m-d1); font-stretch: var(--width-display); font-weight: var(--weight-strong); line-height: 1.02; letter-spacing: -0.022em; }
.d2 { font-size: var(--m-d2); font-stretch: var(--width-display); font-weight: var(--weight-strong); line-height: 1.08; letter-spacing: -0.016em; }
.d3 { font-size: var(--m-d3); font-stretch: 92%; font-weight: var(--weight-head); line-height: 1.22; letter-spacing: -0.008em; }
.lede { font-size: var(--m-lede); line-height: 1.5; }
.prose { font-size: var(--m-body); line-height: 1.6; max-width: 38rem; }
.prose + .prose { margin-top: var(--space-4); }
.label { font-size: var(--text-label); line-height: 1.45; }
.meta { font-size: var(--text-caption); line-height: 1.45; color: var(--color-ink-3); }
.muted { color: var(--color-ink-2); }
.ai-ink { color: var(--color-ai); }
:lang(ta) .d1, :lang(ta).d1 { font-size: clamp(2rem, 0.38rem + 4.1vw, 4.125rem); line-height: 1.36; letter-spacing: 0; }
:lang(ta) .d2, :lang(ta).d2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.875rem); line-height: 1.38; letter-spacing: 0; }
:lang(ta) .d3, :lang(ta).d3 { font-size: clamp(1.3125rem, 1.15rem + 0.55vw, 1.625rem); line-height: 1.4; letter-spacing: 0; }
/* a Tamil span inside a Tamil-page heading keeps the heading's leading (tokens.css gives every :lang(ta) 1.7) */
html[lang="ta"] :is(.d1, .d2, .d3) [lang="ta"] { line-height: inherit; }
/* a Tamil word inside an English heading: the whole heading takes the Indian-script heading leading (1.35, as the
   tokens ask), so every line is spaced the same */
html[lang="en"] :is(.d1, .d2, .d3):has([data-l="en"] [lang="ta"]) { line-height: 1.35; }
html[lang="en"] :is(.d1, .d2, .d3) [data-l="en"] [lang="ta"] { line-height: inherit; }
:lang(ta) .lede, :lang(ta).lede { line-height: 1.7; }
:lang(ta) .prose, :lang(ta).prose { line-height: 1.75; }
.sec-head { display: grid; gap: var(--space-4); max-width: 48rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.sec-head .lede { color: var(--color-ink-2); }
.field .sec-head .lede { color: var(--f-ink); }

/* the buyer's own words, set in the display voice (from the app's .quote) */
.q { font-stretch: var(--width-display); font-weight: var(--weight-label); quotes: "\201C" "\201D"; }
.q::before { content: open-quote; }
.q::after { content: close-quote; }
.q:lang(ta), :lang(ta) .q { letter-spacing: 0; }

/* text links with a 44 px hit area that does not move layout */
.tlink { position: relative; display: inline-flex; align-items: center; gap: var(--space-1); font-weight: var(--weight-label); text-decoration: underline; text-decoration-color: var(--color-line-strong); text-underline-offset: 0.25em; }
.tlink::after { content: ""; position: absolute; inset: -12px -6px; }
.tlink:hover { text-decoration-color: currentColor; }
.tlink .i { width: 16px; height: 16px; transition: transform var(--duration-fast) var(--ease-out); }
.tlink:hover .i { transform: translateX(2px); }
.field .tlink { text-decoration-color: color-mix(in oklch, var(--f-ink) 45%, var(--f-bg)); }

/* ------------------------------------------------------------------ keys (the app's keys) */
.key {
  --k-bg: var(--color-surface); --k-ink: var(--color-ink); --k-line: var(--color-line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--hit); padding: 0 var(--space-4); border-radius: var(--radius-control);
  background: var(--k-bg); color: var(--k-ink); box-shadow: inset 0 0 0 1px var(--k-line);
  font-size: var(--text-body); font-weight: var(--weight-label); line-height: 1.2; text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-press) var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.key:hover { --k-bg: var(--color-hover); }
.key:active { transform: translateY(1px); }
.key[aria-busy="true"] { cursor: progress; opacity: 0.75; }
.key .i { width: 20px; height: 20px; }
.key--ink { --k-bg: var(--color-ink); --k-ink: var(--color-on-ink); --k-line: transparent; }
.key--ink:hover { --k-bg: color-mix(in oklch, var(--color-ink) 86%, var(--color-page)); }
.key--quiet { --k-bg: transparent; --k-line: transparent; color: var(--color-ink-2); }
.key--danger { --k-bg: var(--color-danger); --k-ink: var(--color-on-danger); --k-line: transparent; }
.key--danger:hover { --k-bg: color-mix(in oklch, var(--color-danger) 88%, black); }
.key--big { min-height: var(--hit-big); padding: 0 var(--space-6); font-size: var(--text-lead); font-weight: var(--weight-strong); border-radius: 12px; }
.key--big .i-arrow-r, .key .i:last-child:not(:first-child) { margin-right: -4px; }
.key--safety { min-height: var(--hit-safety); }
/* from the app: safety keys and every outline key in sunlight take the control outline (4.1:1), so a key reads as a key */
.key--safety:not(.key--ink):not(.key--danger) { --k-line: var(--color-control); }
.key--wide { width: 100%; }
.key--onfield { --k-bg: var(--f-ink); --k-ink: var(--f-bg); --k-line: transparent; }
.key--onfield:hover { --k-bg: color-mix(in oklch, var(--f-ink) 88%, var(--f-bg)); }
.key--linefield { --k-bg: transparent; --k-ink: var(--f-ink); --k-line: color-mix(in oklch, var(--f-ink) 55%, var(--f-bg)); }
.key--linefield:hover { --k-bg: var(--f-soft); }
:lang(ta) .key { line-height: var(--leading-indic-tight); padding-block: 6px; white-space: normal; }
.field :focus-visible, .mast :focus-visible { outline-color: var(--f-ink); }
@media (pointer: coarse) {
  :root { --hit: 48px; }
  .key:not(.key--big) { min-height: var(--hit-touch); }
  .key:not(.key--ink):not(.key--quiet):not(.key--danger):not(.key--onfield):not(.key--linefield) { --k-line: var(--color-control); }
  .tlink::after { inset: -14px -6px; }
}


/* tags: the shaped AI tag (bottom-left corner cut square, like the tail of the speech mark) and Sample */
.ai-tag { display: inline-flex; align-items: center; justify-content: center; height: 22px; min-width: 28px; padding: 0 6px; border-radius: 6px 6px 6px 1px; box-shadow: inset 0 0 0 1.5px var(--color-ai); color: var(--color-ai); font: var(--weight-head) 0.875rem/1 var(--font-sans); font-stretch: var(--width-display); letter-spacing: 0.04em; white-space: nowrap; }
.field .ai-tag { box-shadow: inset 0 0 0 1.5px var(--f-ai); color: var(--f-ai); }
.sample { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 9px; border-radius: var(--radius-tag); box-shadow: inset 0 0 0 1px var(--color-line-strong); color: var(--color-ink-2); font-size: var(--text-caption); font-weight: var(--weight-label); line-height: 1.2; white-space: nowrap;
  background: repeating-linear-gradient(135deg, var(--color-hatch) 0 1px, transparent 1px 6px), var(--color-surface); }
.sample .i { width: 14px; height: 14px; }
:lang(ta) .sample { line-height: 1.4; }
.mono { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-round); background: var(--color-surface); box-shadow: inset 0 0 0 1.5px var(--color-ai); color: var(--color-ai); font-family: var(--font-ta); font-weight: var(--weight-head); font-size: 1.125rem; line-height: 1.35; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-round); background: var(--color-sunk); box-shadow: inset 0 0 0 1px var(--color-line); color: var(--color-ink-2); font-size: var(--text-caption); font-weight: var(--weight-head); }

/* ------------------------------------------------------------------ the mark and the lamp (from the app) */
@property --mark-ai-fill { syntax: "<color>"; inherits: true; initial-value: transparent; }
/* The final logo's mark states (2026-11-13), the same rules as the app: every state is a filled shape. Live = the lamp lit
   with its cone of light; Practice = the lamp outlined (--mark-hollow); Paused = grey and unlit, no cone of light. */
.mark { width: auto; height: 1em; flex: none; color: var(--color-ink); --mark-ai-fill: var(--color-lamp); --mark-solid: inline; --mark-hollow: none; --mark-beam: inline;
  transition: --mark-ai-fill var(--duration-slow) var(--ease-out); }
html[data-mode="practice"] .mark { --mark-ai-fill: var(--color-lamp); --mark-solid: none; --mark-hollow: inline; }
html[data-mode="paused"] .mark { --mark-ai-fill: var(--color-lamp-off); --mark-beam: none; }
.field .mark, .mast .mark { color: var(--f-ink); --mark-person: var(--f-ink); --mark-ai-fill: var(--f-ai); }
html[data-mode="practice"] .field .mark, html[data-mode="practice"] .mast .mark { --mark-ai-fill: var(--f-ai); --mark-solid: none; --mark-hollow: inline; }
html[data-mode="paused"] .field .mark, html[data-mode="paused"] .mast .mark { --mark-ai-fill: var(--f-lamp-off); --mark-beam: none; }
/* the small form, drawn for every place the mark is under 32 px high */
.status .sw .mark, .lang-when .mark, .road .road-when .mark, .day-head .with .mark, .mark--s { --mark-form-mk-full: none; --mark-form-mk-small: inline; }
/* the lockup geometry of logo/final/USAGE.md, never re-spaced: mark 0.957 em high, the wordmark's top 0.2378 em down so its
   baseline sits 0.9 em from the top, a 0.319 em gap */
.wordmark { display: inline-flex; align-items: flex-start; gap: 0.319em; color: inherit; text-decoration: none; font-size: 1.625rem; line-height: 1; min-height: var(--hit); padding-block: 9px 0; }
.wordmark .mark { height: 0.957em; margin-top: 0; }
.wm-name { display: block; flex: none; width: auto; height: 0.8357em; margin-top: 0.2378em; color: inherit; }   /* the outlined wordmark, 3.0754 em wide */
.wordmark:focus-visible { border-radius: 6px; }

/* the status line: the calling state in words (from the app) */
.status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-height: 44px; padding: 8px 16px; background: var(--color-sunk); box-shadow: inset 0 -1px 0 var(--color-line); font-size: var(--text-label); line-height: 1.35; color: var(--color-ink); }
.status b { font-weight: var(--weight-head); }
.status .sw { display: inline-grid; place-items: center; width: 30px; height: 22px; flex: none; border-radius: 5px; }
.status .sw .mark { height: 15px; }
.status--practice .sw { background: repeating-linear-gradient(135deg, var(--color-hatch) 0 1.2px, transparent 1.2px 4.5px); box-shadow: inset 0 0 0 1px var(--color-line-strong); }
.status--practice .sw .mark { --mark-ai-fill: var(--color-lamp); --mark-solid: none; --mark-hollow: inline; --mark-beam: inline; }
.status--live .sw .mark { --mark-ai-fill: var(--color-lamp); --mark-solid: inline; --mark-hollow: none; --mark-beam: inline; }
.status--paused { background: var(--color-paused); color: var(--color-on-paused); box-shadow: none; padding-block: 10px; }
.status--paused .sw .mark { color: var(--color-on-paused); --mark-ai-fill: var(--color-lamp-off); --mark-solid: inline; --mark-hollow: none; --mark-beam: none; }
.status--paused .key { --k-bg: var(--color-on-paused); --k-ink: var(--color-paused); --k-line: transparent; margin-left: auto; }
.status .grow { flex: 1 1 14rem; }
:lang(ta) .status { line-height: 1.5; }

/* ------------------------------------------------------------------ the field (jamun brand surface) */
.field { background: var(--f-bg); color: var(--f-ink); }
.field ::selection { background: var(--f-ink); color: var(--f-bg); }

/* header */
.mast { background: var(--f-bg); color: var(--f-ink); position: relative; z-index: var(--z-bar); }
@media (min-width: 900px) {
  /* the header stays in view on a laptop, so the lamp in its logo is seen to change when calls are paused */
  .mast { position: sticky; top: 0; box-shadow: 0 1px 0 var(--f-line); }
  html { scroll-padding-top: calc(var(--mast-h) + 24px); }
  :root { --stick: calc(var(--mast-h) + var(--space-8)); }   /* sticky headings sit below the sticky header */
}
.mast-bar { display: flex; align-items: center; gap: var(--space-6); min-height: 76px; }
.mast .wordmark { font-size: 1.75rem; }
.nav { display: flex; align-items: center; gap: var(--space-1); margin-left: var(--space-4); }
.nav a { display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 var(--space-3); border-radius: var(--radius-control); font-size: var(--text-body); font-weight: var(--weight-label); text-decoration: none; color: var(--f-ink); transition: background-color var(--duration-fast) var(--ease-out); }
.nav a:hover { background: var(--f-soft); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.mast-tools { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.langsw { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-control); background: var(--f-soft); box-shadow: inset 0 0 0 1px var(--f-line); }
.langsw button { position: relative; min-height: 40px; min-width: 52px; padding: 0 var(--space-3); border-radius: 7px; color: var(--f-ink); font-size: var(--text-label); font-weight: var(--weight-label); line-height: 1.3; }
.langsw button::after { content: ""; position: absolute; inset: -3px 0; }
.langsw button[aria-pressed="true"] { background: var(--f-ink); color: var(--f-bg); }
.langsw button:lang(ta) { font-family: var(--font-ta); }
.menu-key { display: none; align-items: center; gap: var(--space-2); min-height: var(--hit); padding: 0 var(--space-3); border-radius: var(--radius-control); color: var(--f-ink); font-weight: var(--weight-label); box-shadow: inset 0 0 0 1px var(--f-line); }
.menu-key .i { width: 20px; height: 20px; }
.menu-key[aria-expanded="false"] .mk-close, .menu-key[aria-expanded="true"] .mk-open { display: none; }
.menu { border-top: 1px solid var(--f-line); }
.menu[hidden] { display: none; }
.menu nav { display: grid; padding-block: var(--space-2) var(--space-4); }
.menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 var(--space-1); border-bottom: 1px solid var(--f-line); font-size: var(--text-lead); font-weight: var(--weight-label); text-decoration: none; color: var(--f-ink); }
.menu nav a .i { width: 20px; height: 20px; }
.menu .menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding-bottom: var(--space-5); }

/* hero: the promise on the left; the AI's own line, playable in each voice, on the right. Named areas let a phone
   read promise, lede, key, then the line, then the vows. */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(4rem, 2.5rem + 5vw, 7.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto auto 1fr;
  grid-template-areas: ". say" "h say" "lede say" "acts say" "vow say" ". say"; column-gap: clamp(3rem, 1rem + 5vw, 6.5rem); }
.hero-h { grid-area: h; max-width: 15ch; }
.hero-lede { grid-area: lede; margin-top: var(--space-6); max-width: 33rem; }
.hero-acts { grid-area: acts; margin-top: var(--space-8); }
.hero-vow { grid-area: vow; }
.hero-say { grid-area: say; align-self: center; }
html[lang="ta"] .hero-h { max-width: none; }
@media (min-width: 1024px) { html[lang="ta"] .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.vow { display: grid; gap: var(--space-3); margin-top: var(--space-8); max-width: 31rem; font-size: var(--text-label); line-height: 1.5; }
.vow li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); }
.vow .i { margin-top: 2px; }

/* the AI's line with its voices: proof beside the promise. No card: the words sit on the field, opened by the AI's
   half of the mark, as every speaker's words do on this site. */
.say { display: grid; gap: var(--space-4); align-content: start; container-type: inline-size; }
.say-k { font-size: var(--text-label); font-weight: var(--weight-label); }
.vkeys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.vkey { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-3);
  border-radius: var(--radius-control); color: var(--f-ink); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--f-ink) 45%, var(--f-bg));
  font-size: var(--text-body); font-weight: var(--weight-label); line-height: 1.2; white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-press) var(--ease-out); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.vkey:hover { background: var(--f-soft); }
.vkey:active { transform: translateY(1px); }
.vkey .i { width: 18px; height: 18px; flex: none; }
.vkey .i-pause, .vkey[aria-pressed="true"] .i-play { display: none; }
.vkey[aria-pressed="true"] .i-pause { display: block; }
.vkey[data-current] { background: var(--f-ink); color: var(--f-bg); box-shadow: none; }
.vkey:lang(ta), :lang(ta) .vkey { font-size: var(--text-label); }
.say-prog { height: 2px; border-radius: 1px; background: var(--f-line); overflow: hidden; }
.say-prog .bar { display: block; height: 100%; background: var(--f-ai); transform-origin: left; transform: scaleX(0); }
.say-who { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); font-size: var(--text-label); line-height: 1.4; }
.say-who b { color: var(--f-ai); font-weight: var(--weight-head); }
.say-who .clock { margin-left: auto; font-variant-numeric: lining-nums tabular-nums; }
.say-turn { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: var(--space-3); }
.say-turn .half { width: auto; height: 2.4rem; margin-top: 0.45rem; --mark-ai-fill: var(--f-ai); }
.say-line { font-size: clamp(1.25rem, 1.05rem + 0.55vw, 1.625rem); font-weight: var(--weight-label); line-height: 1.62; color: var(--f-ai-dim); }
/* a sentence lights up when the voice reaches it; the first one is lit before you press play */
.say-line .s { transition: color var(--duration-base) var(--ease-out); text-decoration: underline 2px transparent; text-underline-offset: 0.42em; text-decoration-skip-ink: auto; }
.say-line .s:first-child, .say-line .s[data-said] { color: var(--f-ai); }
.say-line[data-playing] .s:first-child:not([data-said]) { color: var(--f-ai-dim); }
.say-line .s[data-now] { text-decoration-color: color-mix(in oklch, var(--f-ai) 70%, transparent); }
.say-gloss { font-size: var(--text-label); line-height: 1.55; max-width: 34rem; }
.say-note { font-size: var(--text-caption); line-height: 1.5; max-width: 34rem; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--space-2); }
.say-note .i { width: 16px; height: 16px; margin-top: 2px; }
.say--mast .say-line { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); }
/* a narrow column (a phone, or the Tamil hero at 1024): each voice key puts its name under the play icon */
@container (max-width: 470px) {
  .vkeys { gap: 6px; }
  .vkey { flex-direction: column; gap: 4px; min-height: 64px; padding: var(--space-2) 4px; font-size: var(--text-label); }
}

/* ------------------------------------------------------------------ product fragments ("screens") */
.screen { position: relative; border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: var(--ring-float), var(--shadow-float); overflow: hidden; color: var(--color-ink); font-size: var(--text-body); }
.screen-head { display: flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: 0 var(--space-4); box-shadow: inset 0 -1px 0 var(--color-line); }
.screen-head .wordmark { font-size: 1.25rem; min-height: 0; padding: 0; color: var(--color-ink); }
.screen-head .wordmark .mark { color: var(--color-ink); --mark-person: var(--color-ink); }
.screen-head .sample { margin-left: auto; }
.screen-body { padding: var(--space-5) var(--space-5) var(--space-6); display: grid; gap: var(--space-4); }
.rows > li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--color-line); }
.rows > li:last-child { border-bottom: 1px solid var(--color-line); }
.rows .t { font-weight: var(--weight-label); line-height: 1.35; }
.rows .m { font-size: var(--text-caption); color: var(--color-ink-3); line-height: 1.4; margin-top: 2px; }
.rows .ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-round); background: var(--color-sunk); color: var(--color-ink-2); }
.rows .ic .i { width: 18px; height: 18px; }
.rows .key { min-height: 40px; padding: 0 var(--space-3); font-size: var(--text-label); }
.mini-h { display: flex; align-items: baseline; gap: var(--space-2); font-size: var(--text-title); font-weight: var(--weight-head); }
.mini-h .n { color: var(--color-ink-3); font-weight: var(--weight-label); }

/* live text (two inks) */
.tx { display: grid; gap: var(--space-3); }
.tx li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.tx .who { display: flex; align-items: center; gap: 4px; padding-top: 3px; font-size: var(--text-label); font-weight: var(--weight-head); white-space: nowrap; }
.tx .who .ai-tag { height: 20px; min-width: 26px; font-size: 0.875rem; }
.tx .said { font-size: 1.125rem; line-height: 1.55; }
.tx .said:lang(ta), .tx [lang="ta"].said { font-size: 1.1875rem; line-height: var(--leading-indic); }
.tx .ai .who, .tx .ai .said { color: var(--color-ai); }
.tx-note { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--space-2); font-size: var(--text-label); color: var(--color-ink-2); }
.tx-note .i { width: 18px; height: 18px; margin-top: 2px; }

/* ------------------------------------------------------------------ how it works: three real steps */
.steps { display: grid; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5.5rem); align-items: center; padding-block: clamp(2.5rem, 2rem + 2.4vw, 4.5rem); border-top: 1px solid var(--color-line); }
.step:last-child { border-bottom: 1px solid var(--color-line); }
.step-t { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) var(--space-5); align-content: start; }
.step-n { grid-row: span 2; font-size: clamp(2.75rem, 2rem + 2.4vw, 4.25rem); font-stretch: var(--width-display); font-weight: var(--weight-label); line-height: 0.9; color: var(--color-ink); min-width: 1.1ch; }
.step-t .d3 { align-self: end; }
.step-t .prose { grid-column: 2; color: var(--color-ink-2); }
.step-t .acts { grid-column: 2; margin-top: var(--space-3); }
@media (min-width: 1180px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: clamp(1.5rem, 0.5rem + 1.6vw, 2.5rem); }
  .step { grid-row: span 2; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: start; padding-block: var(--space-4) 0; border-top: 0; border-bottom: 0 !important; }
  .step > .screen { align-self: stretch; }
  .step-t { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .step-n { grid-row: auto; display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-2); }
  .step-n::after { content: ""; flex: 1; margin-right: calc(-1 * clamp(1.5rem, 0.5rem + 1.6vw, 2.5rem)); border-top: 1.5px dashed var(--color-line-strong); }
  .step:last-child .step-n::after { visibility: hidden; }
  .step-t .prose { grid-column: auto; }
  .steps .tx li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .steps .rows > li { grid-template-columns: 40px minmax(0, 1fr); }
  .steps .rows > li > .key { grid-column: 2; justify-self: start; }
}

/* ------------------------------------------------------------------ every lead: the routing tree
   One lead (left) reaches the AI (hub), and a jamun spine branches to six plain outcomes. The lines are the AI's
   work, so they are jamun; the buyer's words on each branch are ink. Pure CSS, so it holds at any text length. */
.route { --hub: 40px; --tick: 2.1rem; display: grid; grid-template-columns: minmax(0, 3.3fr) minmax(0, 8.7fr); gap: 0 clamp(2.5rem, 1rem + 4vw, 5rem); align-items: start; }
.route-src { position: relative; }
.route-src::after { content: ""; position: absolute; top: var(--hub); left: calc(100% + 12px); width: calc(clamp(2.5rem, 1rem + 4vw, 5rem) - 24px); height: 1.5px; background: var(--color-ink-3); }
.route-src::before { content: ""; position: absolute; top: calc(var(--hub) - 4px); left: calc(100% + clamp(2.5rem, 1rem + 4vw, 5rem) - 18px); width: 8px; height: 8px; border-top: 1.5px solid var(--color-ink-3); border-right: 1.5px solid var(--color-ink-3); transform: rotate(45deg); }
.lead-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-3); align-items: center; min-height: 80px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: var(--ring-float); }
.lead-card .avatar { width: 44px; height: 44px; }
.lead-card .t { font-weight: var(--weight-head); line-height: 1.3; }
.lead-card .m { font-size: var(--text-caption); color: var(--color-ink-3); line-height: 1.45; margin-top: 2px; }
.route-main { padding-top: 18px; }
.route-ai { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; font-size: var(--text-body); line-height: 1.4; }
.route-ai .mono { width: 44px; height: 44px; position: relative; z-index: 1; }
.route-ai b { color: var(--color-ai); font-weight: var(--weight-head); }
.route-out { margin-left: calc(var(--hub) - 0.75px); }
.outcome { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-2) var(--space-6); align-items: baseline; padding: var(--space-4) 0 var(--space-4) 3.25rem; }
.outcome + .outcome { box-shadow: inset 0 1px 0 var(--color-line); }
.outcome::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1.5px; background: var(--color-ai); transform-origin: top; }
.outcome:last-child::before { bottom: auto; height: var(--tick); }
.outcome::after { content: ""; position: absolute; left: 0; top: var(--tick); width: 2.25rem; height: 1.5px; background: var(--color-ai); transform-origin: left; }
.outcome .dot { position: absolute; left: calc(2.25rem - 3px); top: calc(var(--tick) - 3px); width: 7.5px; height: 7.5px; border-radius: 50%; background: var(--color-ai); }
.outcome .q { font-size: var(--m-d3); line-height: 1.3; color: var(--color-ink); }
.outcome .none { font-size: var(--m-d3); line-height: 1.3; color: var(--color-ink-3); font-stretch: var(--width-display); font-weight: var(--weight-label); }
.outcome .then { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); font-size: var(--text-body); line-height: 1.5; color: var(--color-ink-2); }
.outcome .then .i { margin-top: 3px; color: var(--color-ink-2); }
.outcome .then b { font-weight: var(--weight-head); color: var(--color-ink); }
:lang(ta) .outcome .then, .outcome .then:lang(ta) { line-height: 1.65; }
.route-foot { margin-top: var(--space-10); display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); max-width: 46rem; font-size: var(--text-body); line-height: 1.55; }
.route-foot .i { margin-top: 3px; }
/* Everything is drawn from the first paint. When the figure scrolls into view, one lit pulse runs down the spine
   once, and each outcome's dot answers as the pulse reaches it: the lead travels to where it ends up. */
.route-out { position: relative; }
.route-pulse { position: absolute; left: -2.25px; top: 0; width: 6px; height: 64px; border-radius: 3px; opacity: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--color-ai)); }
@media (prefers-reduced-motion: no-preference) {
  .route.run .route-pulse { animation: travel var(--travel, 1600ms) var(--ease-out) both; }
  .route.run .outcome .dot { animation: answer 900ms var(--ease-out) both; animation-delay: var(--at, 0ms); }
}
@keyframes travel { 0% { opacity: 0; transform: translateY(-40px); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--spine, 600px)); } }
@keyframes answer { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--color-ai) 55%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

/* ------------------------------------------------------------------ honesty (field): the exchange, two halves of the mark */
.honest-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 1rem + 5vw, 6rem); align-items: start; }
.turns { display: grid; gap: var(--space-8); }
.turn { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: var(--space-2) var(--space-4); }
.turn .half { grid-row: span 3; width: auto; height: 3.15rem; margin-top: 0.55rem; }
.turn--them .half { --mark-person: var(--f-ink); color: var(--f-ink); }
.turn--ai .half { --mark-ai-fill: var(--f-ai); }
.turn-who { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-label); }
.turn-said { font-size: var(--m-quote); font-stretch: var(--width-display); font-weight: var(--weight-label); line-height: 1.34; }
.turn--ai .turn-said { font-size: clamp(1.375rem, 1.05rem + 0.95vw, 2.125rem); line-height: 1.5; }
.turn--them .turn-said { color: var(--f-ink); }
.turn--ai .turn-said, .turn--ai .turn-who b { color: var(--f-ai); }
.turn-gloss { font-size: var(--text-label); line-height: 1.55; }
.checks { display: grid; gap: 0; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-3); padding-block: var(--space-4); border-top: 1px solid var(--f-line); font-size: var(--text-body); line-height: 1.55; }
.checks li:last-child { border-bottom: 1px solid var(--f-line); }
.checks .i { width: 22px; height: 22px; margin-top: 1px; }
.checks b { font-weight: var(--weight-head); display: block; }

/* the print of words: one sample call drawn as turns that carry their first words (Kavitha above the line, the buyer
   below), with the honest moment pinned. It shows a window of the call: 0:08-0:36 on a laptop, 0:16-0:30 on a phone.
   A turn's words fade out where the turn ends; a turn too short for words is drawn as a plain segment. */
.print { --w0: 8; --wl: 28; margin-top: var(--space-12); }
.print-pin { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-2); min-height: 32px; padding: 5px var(--space-3); border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--f-ink); font-size: var(--text-caption); font-weight: var(--weight-label); line-height: 1.35;
  --x: max(0px, calc((19 - var(--w0)) / var(--wl) * 100% - 20px)); margin-left: var(--x); max-width: calc(100% - var(--x)); margin-bottom: 10px; }
.print-pin .tc { font-variant-numeric: lining-nums tabular-nums; }
.wp { position: relative; display: grid; grid-template-rows: 44px 1px 44px auto; row-gap: 6px; overflow: hidden; }
.wp-lane { position: relative; }
.wp-t { position: absolute; top: 0; bottom: 0; container-type: inline-size;
  left: calc(max(0, var(--a) - var(--w0)) / var(--wl) * 100%);
  width: calc((min(var(--b), var(--w0) + var(--wl)) - max(var(--a), var(--w0))) / var(--wl) * 100% - 3px); }
.wp-t > span { display: block; padding: 0 var(--space-3); overflow: hidden; white-space: nowrap; font-size: var(--text-label); font-weight: var(--weight-label); line-height: 44px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
@container (max-width: 60px) { .wp-t > span { visibility: hidden; } }
.wp-lane--ai .wp-t { color: var(--f-ai); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--f-ai) 70%, var(--f-bg)); border-radius: 8px 8px 8px 2px; }
.wp-lane--p .wp-t { color: var(--f-ink); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--f-ink) 55%, var(--f-bg)); border-radius: 2px 8px 8px 8px; }
.wp-axis { background: var(--f-line); }
.wp-pin { position: absolute; top: -10px; bottom: 26px; left: calc((var(--a) - var(--w0)) / var(--wl) * 100%); width: 0; border-left: 1.5px dashed var(--f-ink); }
.wp-ticks { position: relative; height: 22px; font-size: var(--text-caption); font-variant-numeric: lining-nums tabular-nums; }
.wp-tick { position: absolute; top: 2px; left: calc((var(--a) - var(--w0)) / var(--wl) * 100%); transform: translateX(-50%); }
.wp-tick--narrow { display: none; }
.print-cap { margin-top: var(--space-3); font-size: var(--text-caption); line-height: 1.5; max-width: 46rem; }
@media (max-width: 760px) {
  .print { --w0: 16.4; --wl: 13.8; }
  .wp-tick--wide { display: none; }
  .wp-tick--narrow { display: block; }
  .wp-t > span { padding: 0 var(--space-2); }
}

/* ------------------------------------------------------------------ your list: the vault figure */
.own-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 1rem + 4vw, 5.5rem); align-items: center; }
.vault { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: var(--space-4); align-items: stretch; }
.vault-yours { position: relative; z-index: 1; display: grid; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: var(--ring-float), var(--shadow-float); }
.vault-yours .vt { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-title); font-weight: var(--weight-head); line-height: 1.3; }
.vault-yours .vt .i { width: 26px; height: 26px; }
.vault-yours ul { display: grid; gap: 0; }
.vault-yours li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--space-3); padding-block: var(--space-3); border-top: 1px solid var(--color-line); font-size: var(--text-body); line-height: 1.45; }
.vault-yours li .i { width: 18px; height: 18px; margin-top: 3px; color: var(--color-ink-2); }
.vault-others { display: grid; gap: var(--space-3); }
.vault-others > span { display: grid; place-items: center; align-content: center; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-panel); box-shadow: inset 0 0 0 1px var(--color-line-strong); color: var(--color-ink-3); font-size: var(--text-caption); line-height: 1.35; text-align: center; }
.vault-others .i { width: 20px; height: 20px; margin-inline: auto; }
.vault figcaption, .vault-cap { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-label); color: var(--color-ink-2); }

/* the control demo: the real status line and Pause all calls */
.ctl { margin-top: clamp(4rem, 3rem + 3vw, 6rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 1rem + 4vw, 5.5rem); align-items: center; }
.ctl-app { border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: var(--ring-float), var(--shadow-float); overflow: hidden; }
.ctl-bar { display: flex; align-items: center; gap: var(--space-3); min-height: 60px; padding: 0 var(--space-4); box-shadow: inset 0 -1px 0 var(--color-line); }
.ctl-bar .wordmark { font-size: 1.375rem; min-height: 0; padding: 0; color: var(--color-ink); }
.ctl-bar .wordmark .mark { color: var(--color-ink); --mark-person: var(--color-ink); }
html[data-mode="live"] .ctl-bar .mark { --mark-ai-fill: var(--color-lamp); }
.ctl-bar .key { margin-left: auto; }
.ctl-body { padding: var(--space-5) var(--space-5) var(--space-6); display: grid; gap: var(--space-3); font-size: var(--text-label); color: var(--color-ink-2); }
.ctl-body b { color: var(--color-ink); font-weight: var(--weight-head); }
.ctl .d3 { margin-bottom: var(--space-4); }
.ctl-tip { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-5); font-size: var(--text-label); color: var(--color-ink-2); }
.ctl-tip .i { margin-top: 2px; }

/* sheets (native dialog, the app's confirm) */
dialog.sheet { width: min(30rem, calc(100vw - 2rem)); padding: 0; border: 0; border-radius: var(--radius-panel); background: var(--color-surface); color: var(--color-ink); box-shadow: var(--shadow-float); }
dialog.sheet::backdrop { background: var(--color-scrim); }
.sheet-in { display: grid; gap: var(--space-5); padding: var(--space-8); }
.sheet-in .d3 { font-size: var(--text-h2); }
.sheet-in p { font-size: var(--text-body); line-height: 1.55; color: var(--color-ink-2); }
.sheet .grip { display: none; }
.sheet-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-3); margin-top: var(--space-2); }
@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open] { animation: rise var(--duration-slow) var(--ease-snap); }
  dialog.sheet[open]::backdrop { animation: fade var(--duration-slow) var(--ease-out); }
}
@media (max-width: 640px) {
  dialog.sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 18px 18px 0 0; }
  .sheet-in { padding: var(--space-3) var(--gutter-phone) calc(var(--space-6) + env(safe-area-inset-bottom)); gap: var(--space-4); }
  .sheet .grip { display: block; justify-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--color-line-strong); }
  .sheet-acts { flex-direction: column-reverse; align-items: stretch; }
  .sheet-acts .key { width: 100%; }
}

/* do-not-call demo (the app's complete sheet, inline) */
.dnc { display: grid; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: var(--ring-float), var(--shadow-float); max-width: 30rem; }
.dnc-title { display: flex; align-items: flex-start; gap: var(--space-3); font-size: 1.5rem; font-weight: var(--weight-head); line-height: 1.3; }
.dnc-title .i { width: 24px; height: 24px; color: var(--color-danger); margin-top: 0.2em; }
:lang(ta) .dnc-title, .dnc-title:lang(ta) { font-size: 1.3125rem; line-height: 1.45; }
.dnc p { color: var(--color-ink-2); line-height: 1.55; }
.dnc .acts { display: grid; gap: var(--space-2); }
.dnc .acts .key { width: 100%; }
.dnc [data-dnc-ask] { display: grid; gap: var(--space-4); }
.dnc [data-dnc-done] { display: none; }
.dnc[data-dnc="done"] [data-dnc-ask] { display: none; }
.dnc[data-dnc="done"] [data-dnc-done] { display: grid; }
.dnc-done { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.dnc-done .i { color: var(--color-success); width: 22px; height: 22px; margin-top: 2px; }

/* ------------------------------------------------------------------ the future: languages in their own scripts */
.langs { display: grid; gap: 0; border-top: 1px solid var(--color-line); }
.langs--more { border-top: 0; }
/* a fold that is open on a laptop and closed on a phone (site.js); without the script it stays open */
.fold > summary { display: none; }
@media (max-width: 760px) {
  .fold > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 56px; margin-top: var(--space-4);
    padding: 0 var(--space-4); border-radius: var(--radius-control); box-shadow: inset 0 0 0 1px var(--color-control); cursor: pointer; list-style: none;
    font-weight: var(--weight-label); }
  .fold > summary::-webkit-details-marker { display: none; }
  .fold > summary .i { transition: transform var(--duration-base) var(--ease-out); }
  .fold[open] > summary .i { transform: rotate(180deg); }
  .fold[open] > summary .fk-more, .fold:not([open]) > summary .fk-less { display: none; }
  .fold[open] > summary { margin-bottom: var(--space-2); }
}
.lang-row { display: grid; grid-template-columns: minmax(0, 1fr) 10rem; gap: var(--space-2) var(--space-6); align-items: baseline; padding-block: var(--space-5); border-bottom: 1px solid var(--color-line); }
.lang-names { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-8); }
.lang-names span { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); font-weight: var(--weight-label); line-height: 1.4; letter-spacing: 0; }
.lang-names span:lang(en) { font-stretch: var(--width-display); line-height: 1.15; }
.lang-row--now .lang-names span { color: var(--color-ink); }
.lang-row--next .lang-names span { color: var(--color-ink-2); }
.lang-row--later .lang-names span { color: var(--color-ink-3); font-size: clamp(1.625rem, 1.1rem + 1.8vw, 2.625rem); }
.lang-when { display: flex; align-items: center; gap: var(--space-2); justify-content: flex-end; font-size: var(--text-label); font-weight: var(--weight-label); color: var(--color-ink-2); text-align: right; }
.lang-row--now .lang-when { color: var(--color-ink); }
.lang-when .mark { height: 0.85em; }
:lang(te) { font-family: "Anek Telugu", var(--font-sans); }
:lang(kn) { font-family: "Anek Kannada", var(--font-sans); }
:lang(ml) { font-family: "Anek Malayalam", var(--font-sans); }
:lang(bn) { font-family: "Anek Bangla", var(--font-sans); }
:lang(gu) { font-family: "Anek Gujarati", var(--font-sans); }
:lang(mr), :lang(hi) { font-family: var(--font-hi); }
/* the lamp grammar outside the calling state: lit = works today, outlined = not yet */
.langs .mark.lamp-now, .road .mark.lamp-now { --mark-ai-fill: var(--color-lamp); --mark-solid: inline; --mark-hollow: none; --mark-beam: inline; }
.langs .mark.lamp-later, .road .mark.lamp-later { --mark-ai-fill: var(--color-ink-3); --mark-solid: none; --mark-hollow: inline; --mark-beam: inline; }
/* the road, without dates: four stops on one line */
.road { position: relative; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--color-line-strong) 0 6px, transparent 6px 11px); }
.road li { position: relative; display: grid; gap: var(--space-3); align-content: start; padding-right: var(--space-2); }
.road .road-when { display: inline-flex; align-items: center; gap: var(--space-2); justify-self: start; padding-right: var(--space-3); background: var(--color-page); font-weight: var(--weight-head); font-size: var(--text-body); line-height: 28px; }
.road .road-when .mark { height: 22px; }
.road li p:last-child { color: var(--color-ink-2); line-height: 1.55; }
.road .road-now p:last-child { color: var(--color-ink); }
.road .road-now::after { content: ""; position: absolute; left: 0; top: 13px; width: 100%; height: 1.5px; background: var(--color-ai); z-index: -1; }
.nodates { margin-top: var(--space-10); display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); max-width: 44rem; font-size: var(--text-label); line-height: 1.55; color: var(--color-ink-2); }
.nodates .i { margin-top: 2px; }

/* ------------------------------------------------------------------ call to action band (field) */
.cta { padding-block: clamp(4.5rem, 3rem + 5vw, 8rem); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8) clamp(2rem, 1rem + 4vw, 5rem); align-items: end; }
.cta h2 { max-width: 19ch; }
html[lang="ta"] .cta h2 { max-width: 22ch; }
.cta .lede { margin-top: var(--space-5); max-width: 34rem; }
.cta .acts { justify-content: flex-start; }
.cta-side { display: grid; gap: var(--space-4); }
.cta-side .label { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); }
.cta-side .label .i { margin-top: 2px; }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--color-sunk); color: var(--color-ink); padding-block: var(--space-12) var(--space-10); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-10); }
.foot .wordmark { color: var(--color-ink); font-size: 1.625rem; }
.foot .wordmark .mark { color: var(--color-ink); --mark-person: var(--color-ink); }
.foot-say { margin-top: var(--space-3); max-width: 24rem; color: var(--color-ink-2); font-size: var(--text-label); line-height: 1.55; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--space-6); }
.foot-cols h2 { font-size: var(--text-label); font-weight: var(--weight-head); margin-bottom: var(--space-2); }
.foot-cols a { display: inline-flex; align-items: center; min-height: var(--hit); min-width: var(--hit); padding-right: var(--space-2); color: var(--color-ink-2); text-decoration: none; font-size: var(--text-label); }
.foot-cols a:hover { color: var(--color-ink); text-decoration: underline; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-control); background: var(--color-page); box-shadow: inset 0 0 0 1px var(--color-line); }
.seg button { position: relative; min-height: var(--hit); min-width: 52px; padding: 0 var(--space-3); border-radius: 7px; color: var(--color-ink-2); font-size: var(--text-label); font-weight: var(--weight-label); line-height: 1.3; }
.seg button::after { content: ""; position: absolute; inset: -3px 0; }
.seg button[aria-pressed="true"] { background: var(--color-surface); color: var(--color-ink); box-shadow: 0 0 0 1px var(--color-line-strong); }
.foot-ctl { display: grid; gap: var(--space-3); margin-top: var(--space-2); justify-items: start; }
.foot-ctl .seg { flex-wrap: nowrap; }
.foot-ctl .row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-size: var(--text-label); color: var(--color-ink-2); }
.foot-legal { margin-top: var(--space-10); padding-top: var(--space-5); border-top: 1px solid var(--color-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6); font-size: var(--text-caption); color: var(--color-ink-3); }

/* the phone dock: Book a demo in thumb reach once the hero's keys have scrolled away */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); display: none; gap: var(--space-2); padding: var(--space-2) var(--m-gutter) calc(var(--space-2) + env(safe-area-inset-bottom)); background: var(--color-page); box-shadow: 0 -1px 0 var(--color-line); transform: translateY(110%); transition: transform var(--duration-slow) var(--ease-snap); }
.dock .key { flex: 1 1 0; min-height: 52px; font-weight: var(--weight-strong); }
.dock[data-show] { transform: none; }
.mast:has(.menu-key[aria-expanded="true"]) ~ .dock { transform: translateY(110%); }   /* the open menu has its own key */

/* ------------------------------------------------------------------ inner-page mastheads */
.masthead { padding-block: clamp(2rem, 1.2rem + 3vw, 4rem) clamp(3.5rem, 2.4rem + 4vw, 6.5rem); }
.masthead h1 { max-width: 15ch; }
html[lang="ta"] .masthead h1 { max-width: 20ch; }
.masthead .lede { margin-top: var(--space-6); max-width: 38rem; }
.masthead .acts { margin-top: var(--space-8); }
.crumb { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); font-size: var(--text-label); }
.toc { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.toc a { display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 var(--space-4); border-radius: var(--radius-control); box-shadow: inset 0 0 0 1px var(--f-line); color: var(--f-ink); text-decoration: none; font-size: var(--text-label); font-weight: var(--weight-label); }
.toc a:hover { background: var(--f-soft); }

/* ------------------------------------------------------------------ real estate: a sales day, two ways */
.day { display: grid; border-top: 1px solid var(--color-line); }
.day-head, .day-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2) clamp(1.5rem, 1rem + 2vw, 3.5rem); }
.day-head { padding-block: var(--space-4); border-bottom: 1px solid var(--color-line); font-size: var(--text-label); font-weight: var(--weight-head); }
.day-head .with { display: flex; align-items: center; gap: var(--space-2); color: var(--color-ai); }
.day-head .with .mark { height: 0.85em; }
.day-row { padding-block: var(--space-6); border-bottom: 1px solid var(--color-line); }
.day-t { font-size: var(--m-d3); font-stretch: var(--width-display); font-weight: var(--weight-label); line-height: 1.1; white-space: nowrap; }
.day-t small { display: block; margin-top: var(--space-2); font-size: var(--text-caption); font-stretch: 100%; color: var(--color-ink-3); white-space: normal; line-height: 1.4; font-weight: var(--weight-text); }
.day-t { grid-row: span 2; }
.day-what { grid-column: 2 / -1; font-size: var(--text-title); font-weight: var(--weight-head); line-height: 1.35; margin-bottom: var(--space-1); }
.day-without { grid-column: 2; }
.day-with { grid-column: 3; }
.day-cell { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); line-height: 1.55; }
.day-cell .i { margin-top: 3px; }
.day-cell .lab { display: none; }
.day-without { color: var(--color-ink-2); }
.day-without .i { color: var(--color-ink-3); }
.day-with { color: var(--color-ink); }
.day-with .ai { color: var(--color-ai); font-weight: var(--weight-label); }
.day-with .i { color: var(--color-ai); }

/* site visit trail: words -> visit -> reminders */
.trail { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr) auto minmax(0, 0.9fr); gap: var(--space-4); align-items: center; }
.trail-arrow { color: var(--color-ink-3); }
.trail-arrow .i { width: 28px; height: 28px; }
.trail-words .q { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.625rem); line-height: 1.25; }
.trail-words .meta { margin-top: var(--space-3); }
.visit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) var(--space-4); padding: var(--space-5); border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: var(--ring-float), var(--shadow-float); }
.visit-t { font-size: 1.375rem; font-stretch: var(--width-display); font-weight: var(--weight-strong); line-height: 1.1; white-space: nowrap; }
.visit-t small { display: block; margin-top: 4px; font-size: var(--text-caption); font-stretch: 100%; color: var(--color-ink-3); font-weight: var(--weight-text); }
.visit-b b { font-weight: var(--weight-head); }
.visit-b p { font-size: var(--text-label); color: var(--color-ink-2); line-height: 1.45; }
.visit-flag { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-label); color: var(--color-ink-2); padding-top: var(--space-3); border-top: 1px solid var(--color-line); }
.reminder { display: grid; gap: var(--space-2); }
.reminder li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--space-3); font-size: var(--text-label); line-height: 1.45; color: var(--color-ink-2); }
.reminder .i { width: 18px; height: 18px; margin-top: 2px; }

/* the 24-hour dial: answers all day, calls out only in calling hours */
.dial-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 1rem + 4vw, 5.5rem); align-items: center; }
.dial { position: relative; width: min(100%, 27rem); margin-inline: auto; padding: 2rem 3.25rem; }
.dial svg { width: 100%; height: auto; overflow: visible; }
.dial-h { position: absolute; font-size: var(--text-caption); font-weight: var(--weight-label); line-height: 1; color: var(--color-ink-3); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.dial-h--t { top: 0.5rem; left: 50%; transform: translateX(-50%); }
.dial-h--b { bottom: 0.5rem; left: 50%; transform: translateX(-50%); }
.dial-h--r { right: 0; top: 50%; transform: translateY(-50%); }
.dial-h--l { left: 0; top: 50%; transform: translateY(-50%); }
.dial-c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.dial-c .mono { width: 64px; height: 64px; font-size: 1.75rem; }
.dial .tick { stroke: var(--color-line-strong); stroke-width: 1.5; fill: none; }
.dial .in, .dial .out { fill: none; }
.legend { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.legend li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); align-items: start; font-size: var(--text-label); line-height: 1.45; }
.legend .sw2 { width: 28px; height: 8px; border-radius: 4px; margin-top: 0.45em; }
:lang(ta) .legend .sw2, .legend :lang(ta) .sw2 { margin-top: 0.62em; }
.legend .sw2--cb { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--color-ink); margin-left: 7px; margin-top: 0.25em; }
:lang(ta) .legend .sw2--cb { margin-top: 0.45em; }
.pts { display: grid; gap: 0; }
.pts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-3); padding-block: var(--space-4); border-top: 1px solid var(--color-line); line-height: 1.55; }
.pts li:last-child { border-bottom: 1px solid var(--color-line); }
.pts .i { width: 22px; height: 22px; margin-top: 1px; color: var(--color-ink-2); }
.pts b { font-weight: var(--weight-head); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 1rem + 4vw, 5.5rem); align-items: center; }
.split--flip > :first-child { order: 2; }

/* ------------------------------------------------------------------ trust page: a calm document */
.doc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 4vw, 5.5rem); padding-block: var(--m-section); border-top: 1px solid var(--color-line); }
.doc:first-of-type { border-top: 0; }
.doc-h { align-self: start; position: sticky; top: var(--stick, var(--space-8)); display: grid; gap: var(--space-3); }
.doc-h .n { font-size: var(--text-label); color: var(--color-ink-3); }
.doc-b { display: grid; gap: var(--space-6); max-width: 46rem; }
.doc-b .prose { max-width: none; }
.words { display: grid; gap: var(--space-3); padding: var(--space-6); border-radius: var(--radius-panel); background: var(--color-sunk); }
.words .lab { font-size: var(--text-label); color: var(--color-ink-2); display: flex; align-items: center; gap: var(--space-2); }
.words .ta { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.6; color: var(--color-ai); font-weight: var(--weight-label); }
.words .en { font-size: var(--text-body); line-height: 1.55; color: var(--color-ai); }
.words .them { color: var(--color-ink); }
.words .en.them { color: var(--color-ink-2); }
.steps-list { display: grid; gap: 0; counter-reset: c; }
.steps-list li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--space-3); padding-block: var(--space-4); border-top: 1px solid var(--color-line); line-height: 1.55; counter-increment: c; }
.steps-list li::before { content: counter(c); font-stretch: var(--width-display); font-weight: var(--weight-head); font-size: 1.25rem; line-height: 1.3; color: var(--color-ink); }
.steps-list li:last-child { border-bottom: 1px solid var(--color-line); }
.limit { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-3); padding-block: var(--space-5); border-top: 1px solid var(--color-line-strong); border-bottom: 1px solid var(--color-line-strong); line-height: 1.55; }
.limit .i { width: 22px; height: 22px; margin-top: 1px; }
.limit b { font-weight: var(--weight-head); }
.ph { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) var(--space-5); border-radius: var(--radius-control); border: 1.5px dashed var(--color-control); background: var(--color-surface); color: var(--color-ink-2); font-size: var(--text-label); line-height: 1.55; }
.ph .i { width: 20px; height: 20px; margin-top: 2px; }
.ph b { color: var(--color-ink); font-weight: var(--weight-head); }
.ctl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }

/* ------------------------------------------------------------------ pricing */
.pilot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 1rem + 4vw, 5.5rem); align-items: start; }
.terms { display: grid; gap: 0; border-top: 1px solid var(--color-line); }
.terms > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--space-2) var(--space-6); padding-block: var(--space-5); border-bottom: 1px solid var(--color-line); }
.terms dt { font-weight: var(--weight-head); line-height: 1.45; }
.terms dd { color: var(--color-ink-2); line-height: 1.6; }
.price-note { display: grid; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-panel); background: var(--color-sunk); }
.price-note .big { font-size: var(--m-d3); font-stretch: var(--width-display); font-weight: var(--weight-strong); line-height: 1.2; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.logos li { display: grid; place-items: center; min-height: 104px; padding: var(--space-3); border-radius: var(--radius-control); box-shadow: inset 0 0 0 1px var(--color-line-strong); background: repeating-linear-gradient(135deg, var(--color-hatch) 0 1px, transparent 1px 8px), var(--color-surface); color: var(--color-ink-2); font-size: var(--text-label); text-align: center; line-height: 1.4; }
.logos li > span { padding: 4px 10px; border-radius: var(--radius-tag); background: var(--color-surface); }
.faq { display: grid; border-top: 1px solid var(--color-line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; padding-block: var(--space-3); cursor: pointer; list-style: none; font-size: var(--text-title); font-weight: var(--weight-head); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform var(--duration-base) var(--ease-out); color: var(--color-ink-2); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding-bottom: var(--space-5); max-width: 44rem; color: var(--color-ink-2); line-height: 1.6; }
.faq summary:focus-visible { outline-offset: 4px; border-radius: 6px; }

/* ------------------------------------------------------------------ demo form */
.book { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 1rem + 4vw, 5.5rem); align-items: start; }
.form { display: grid; gap: var(--space-6); max-width: 38rem; }
.fld { display: grid; gap: var(--space-2); }
.fld > label, .fld legend { font-size: var(--text-label); font-weight: var(--weight-head); line-height: 1.4; padding: 0; }
.fld .opt { font-weight: var(--weight-text); color: var(--color-ink-3); }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-control); background: var(--color-surface); color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-control); font-size: var(--text-body); line-height: 1.4; transition: box-shadow var(--duration-fast) var(--ease-out); }
.textarea { min-height: 112px; padding-block: var(--space-3); resize: vertical; }
.select { appearance: none; padding-right: 48px; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap .i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--color-ink-2); }
.input:hover, .select:hover, .textarea:hover { box-shadow: inset 0 0 0 1px var(--color-ink-2); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; box-shadow: inset 0 0 0 1px var(--color-ink); }
.input::placeholder, .textarea::placeholder { color: var(--color-ink-3); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--color-danger); }
.tel { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.tel .cc { display: inline-flex; align-items: center; padding: 0 var(--space-4); border-radius: var(--radius-control) 0 0 var(--radius-control); background: var(--color-sunk); box-shadow: inset 0 0 0 1px var(--color-control); color: var(--color-ink-2); font-variant-numeric: lining-nums tabular-nums; }
.tel .input { border-radius: 0 var(--radius-control) var(--radius-control) 0; margin-left: -1px; }
.err { display: none; grid-template-columns: 18px minmax(0, 1fr); gap: var(--space-2); font-size: var(--text-label); color: var(--color-danger); line-height: 1.4; }
.err .i { width: 18px; height: 18px; margin-top: 1px; }
.fld[data-invalid] .err { display: grid; }
.hint { font-size: var(--text-caption); color: var(--color-ink-3); line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips label { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-control); box-shadow: inset 0 0 0 1px var(--color-control); cursor: pointer; font-weight: var(--weight-label); }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--color-ink); background: var(--color-sunk); }
.chips label:has(input:checked)::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-ink); }
.chips label:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); align-items: start; cursor: pointer; line-height: 1.5; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--color-ink); }
.check { min-height: 48px; padding-block: var(--space-2); }
.fld > .check { font-weight: var(--weight-text); font-size: var(--text-body); }
.mock-note { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) var(--space-5); border-radius: var(--radius-control); border: 1.5px dashed var(--color-control); background: var(--color-surface); font-size: var(--text-label); line-height: 1.5; color: var(--color-ink); }
.mock-note .i { width: 20px; height: 20px; margin-top: 2px; }
.field .mock-note { background: var(--f-soft); border-color: color-mix(in oklch, var(--f-ink) 55%, var(--f-bg)); color: var(--f-ink); }
.done { display: none; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: var(--ring-float), var(--shadow-float); }
.done[data-show] { display: grid; }
/* status panels that receive focus from the script are not controls: no focus ring (the keys inside keep theirs) */
.done:focus, [data-dnc-done]:focus { outline: none; }
.done .d3 { display: flex; align-items: center; gap: var(--space-3); }
.done .d3 .i { width: 28px; height: 28px; color: var(--color-success); }
.next-steps { display: grid; gap: 0; counter-reset: n; }
.next-steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: var(--space-3); padding-block: var(--space-4); border-top: 1px solid var(--color-line); line-height: 1.55; counter-increment: n; color: var(--color-ink-2); }
.next-steps li::before { content: counter(n); font-weight: var(--weight-head); font-stretch: var(--width-display); font-size: 1.25rem; line-height: 1.3; color: var(--color-ink); }
.next-steps li:last-child { border-bottom: 1px solid var(--color-line); }
.next-steps b { color: var(--color-ink); font-weight: var(--weight-head); }
.aside-block { display: grid; gap: var(--space-4); }
.aside-block + .aside-block { margin-top: var(--space-10); }

/* ------------------------------------------------------------------ small pieces used across pages */
.screen-title { font-weight: var(--weight-head); font-size: var(--text-body); }
.voice-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-3); align-items: center; font-size: var(--text-label); line-height: 1.45; }
.voice-row b { font-weight: var(--weight-head); }
.voice-row .ai-tag { height: 20px; min-width: 26px; font-size: 0.875rem; vertical-align: 1px; }
.screen .key[aria-hidden="true"] { cursor: default; pointer-events: none; }
.honest-more { margin-top: var(--space-8); }
.own-head { margin-bottom: 0; }
.own-head .tlink { margin-top: var(--space-2); }
.ctl-body p { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-3); align-items: center; }
.ctl-body .mono { width: 32px; height: 32px; font-size: 0.95rem; }
.sheet-demo { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--space-2); color: var(--color-ink-3); }
.sheet-demo .i { margin-top: 3px; }
.ctl-bar .sample { margin-left: var(--space-2); }

/* inner-page masthead with a product figure beside it */
.mast-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center; }
.kick { font-size: var(--text-label); font-weight: var(--weight-label); margin-bottom: var(--space-4); display: inline-flex; align-items: center; gap: var(--space-2); }
.mast-fig { display: grid; gap: var(--space-5); }
.mast-fig .visit { color: var(--color-ink); }
.turn--s { grid-template-columns: 1.9rem minmax(0, 1fr); gap: var(--space-1) var(--space-3); }
.turn--s .half { width: 1.6rem; margin-top: 0.35rem; }
.turn--s .turn-said { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.36; }
.masthead--short { padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.masthead--short .mock-note { margin-top: var(--space-6); max-width: 38rem; }

/* two-turn transcript (site visit trail) */
.tx--two { display: grid; gap: var(--space-4); }
.tx-l { display: grid; gap: 2px; }
.tx-l .who { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-label); font-weight: var(--weight-head); }
.tx-l .who .ai-tag { height: 20px; min-width: 26px; font-size: 0.875rem; }
.tx-l .said, .tx .tx-l .said:lang(ta) { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-stretch: var(--width-display); font-weight: var(--weight-label); line-height: 1.36; }
.tx-l.ai .who, .tx-l.ai .said { color: var(--color-ai); }
.trail-words .meta { margin-top: var(--space-4); }

/* facts to check, and the AI's honest "I'll check" line */
.rows--q .t { font-size: var(--text-lead); font-weight: var(--weight-label); }
.said-now { display: grid; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-control); background: var(--color-sunk); }
.said-now .lab { font-size: var(--text-caption); color: var(--color-ink-3); }
.ai-line { color: var(--color-ai); font-size: var(--text-lead); line-height: 1.6; font-weight: var(--weight-label); }
.screen-body > .key { justify-self: start; }

/* one call in the app */
.call-t { font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem); font-stretch: var(--width-display); font-weight: var(--weight-strong); line-height: 1.2; }
.screen-body > .m { font-size: var(--text-caption); color: var(--color-ink-3); line-height: 1.5; }
.screen-body > .m .ai-tag { height: 20px; min-width: 26px; font-size: 0.875rem; vertical-align: 1px; }
.chapters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chapters .key { min-height: 40px; padding: 0 var(--space-3); font-size: var(--text-label); gap: 6px; }
.chapters .key .i { width: 16px; height: 16px; }
.chapters .tc { color: var(--color-ink-3); font-weight: var(--weight-text); }
.summary { display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--color-line); font-size: var(--text-label); line-height: 1.55; color: var(--color-ink-2); }
.summary .lab { display: flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-head); color: var(--color-ink); }
.summary .ai-tag { height: 20px; min-width: 26px; font-size: 0.875rem; }
.askq { display: block; margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: 14px 14px 14px 3px; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line-strong); color: var(--color-ink); font-size: var(--text-lead); line-height: 1.6; }

/* the dial: all of it is the AI's work, so all of it is jamun */
.dial-fig { display: grid; gap: var(--space-2); }
.dial .in { stroke: var(--color-ai); stroke-width: 12; }
.dial .out { stroke: var(--color-ai); stroke-width: 12; stroke-dasharray: 3 5; }
.dial .cb { fill: var(--color-page); stroke: var(--color-ai); stroke-width: 2.5; }
.legend .sw2--in { background: var(--color-ai); }
.legend .sw2--out { background: repeating-linear-gradient(90deg, var(--color-ai) 0 3px, transparent 3px 7px); }
.legend .sw2--cb { box-shadow: inset 0 0 0 2.5px var(--color-ai); }

/* forms and the trust document */
.form-acts { display: grid; gap: var(--space-3); justify-items: start; margin-top: var(--space-2); }
.book-aside { position: sticky; top: var(--stick, var(--space-8)); align-self: start; }
.doc-h .meta { margin-top: var(--space-2); }
.doc-b .d3 { margin-top: var(--space-2); }
.price-note .acts { margin-top: var(--space-2); }
.dnc-msg:empty { display: none; }
.dnc-done .d3 { font-size: 1.375rem; margin-bottom: var(--space-2); }
.dnc-done > div { display: grid; gap: var(--space-3); justify-items: start; }
.ctl-row .prose p + p { margin-top: var(--space-4); }
.doc .ctl-app { margin-top: var(--space-2); }

/* trust masthead: the three lamp states, fixed (they do not follow the page's calling state) */
.lamps { display: grid; gap: var(--space-4); }
.lamps ul { display: grid; gap: 0; border-top: 1px solid var(--f-line); }
.lamps li { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: var(--space-4); align-items: start; padding-block: var(--space-4); border-bottom: 1px solid var(--f-line); }
.lamps .mark { height: 2.6rem; width: auto; margin-top: 0.15rem; }
.lamps p { display: grid; gap: 2px; font-size: var(--text-body); line-height: 1.45; }
.lamps p b { font-size: var(--text-title); font-weight: var(--weight-head); }
.lamps figcaption { font-size: var(--text-label); line-height: 1.5; }
.field .lamps .mark.lamp-live { --mark-ai-fill: var(--f-ai); --mark-solid: inline; --mark-hollow: none; --mark-beam: inline; }
.field .lamps .mark.lamp-practice { --mark-ai-fill: var(--f-ai); --mark-solid: none; --mark-hollow: inline; --mark-beam: inline; }
.field .lamps .mark.lamp-paused { --mark-ai-fill: var(--f-lamp-off); --mark-solid: inline; --mark-hollow: none; --mark-beam: none; }
.lamps ol { display: grid; gap: 0; border-top: 1px solid var(--f-line); }
.lamps ol li { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: var(--space-4); align-items: start; padding-block: var(--space-4); border-bottom: 1px solid var(--f-line); }
.path-ic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin: 0.15rem 0 0 0.55rem; border-radius: var(--radius-round); box-shadow: inset 0 0 0 1.5px var(--f-ink); }
.path-ic .i { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ review strip (these mockups only, not product) */
.review { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); padding: var(--space-2) var(--m-gutter); background: repeating-linear-gradient(135deg, var(--color-sunk) 0 8px, var(--color-page) 8px 16px); color: var(--color-ink-2); font-size: var(--text-caption); box-shadow: inset 0 -1px 0 var(--color-line); position: relative; z-index: var(--z-review); }
.review b { color: var(--color-ink); font-weight: var(--weight-head); }
.review .grp { display: inline-flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.review .seg button { min-height: 32px; min-width: 0; font-size: var(--text-caption); }
.review a { color: var(--color-ink-2); }
.review a[aria-current] { color: var(--color-ink); font-weight: var(--weight-head); }
html[data-bare] .review { display: none; }

/* ------------------------------------------------------------------ motion */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes focus-in { from { opacity: 0; filter: blur(8px); transform: translateY(0.16em); } to { opacity: 1; filter: none; transform: none; } }
@keyframes light { from { color: var(--f-ai-dim); } to { color: var(--f-ai); } }
@media (prefers-reduced-motion: no-preference) {
  /* One orchestrated entrance: the promise comes into focus, then the lede and key, then the proof, whose first
     sentence lights last, waiting to be heard. It runs only when site.js sets html.enter (the tab is visible and motion
     is allowed) and the class is removed after 2.2 s, so a throttled tab or a headless capture never shows a
     half-faded page: without the class everything is simply there. */
  html.enter .hero-h, html.enter .masthead h1 { animation: focus-in 820ms var(--ease-snap) both; }
  html.enter .hero-lede, html.enter .masthead .lede { animation: rise 640ms var(--ease-snap) both 140ms; }
  html.enter .hero-acts, html.enter .masthead .acts { animation: rise 640ms var(--ease-snap) both 240ms; }
  html.enter .hero-vow { animation: rise 640ms var(--ease-snap) both 340ms; }
  html.enter .hero-say, html.enter .mast-grid > figure, html.enter .mast-grid > .say { animation: rise 760ms var(--ease-snap) both 300ms; }
  html.enter .say-line .s:first-child { animation: light 700ms var(--ease-out) both 1000ms; }
  .status { transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .nav { margin-left: var(--space-2); }
  .nav a { padding: 0 var(--space-2); }
}
@media (max-width: 1023px) {
  .hero-grid, .honest-grid, .own-grid, .ctl, .cta-grid, .dial-grid, .split, .pilot, .book, .foot-grid, .mast-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-rows: none; grid-template-areas: "h" "lede" "acts" "say" "vow"; }
  html[lang="ta"] .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-say { margin-top: var(--space-10); }
  .say--mast { display: none; }   /* on a phone the demo page goes straight to the form; the voices are on the home page */
  .hero-h { max-width: 20ch; }
  html[lang="ta"] .hero-h { max-width: none; }
  .book-aside { position: static; }
  .split--flip > :first-child { order: 0; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .route { grid-template-columns: minmax(0, 1fr); }
  .route-src { padding-right: 0; margin-bottom: var(--space-8); }
  .route-src::after { left: calc(var(--hub) - 0.75px); top: 100%; width: 1.5px; height: var(--space-8); }
  .route-src::before { left: calc(var(--hub) - 4.5px); top: calc(100% + var(--space-8) - 9px); transform: rotate(135deg); }
  .route-main { padding-top: 0; }
  .route { --hub: 22px; }
  .trail { grid-template-columns: minmax(0, 1fr); }
  .trail-arrow { transform: rotate(90deg); justify-self: start; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-h { position: static; }
}
@media (max-width: 899px) {
  .nav, .mast-tools .key--onfield, .mast-tools .langsw { display: none; }
  .menu-key { display: inline-flex; }
  .mast-tools .langq { display: inline-flex; }
  .mast-bar { min-height: 64px; gap: var(--space-3); }
  .mast .wordmark { font-size: 1.5rem; }
  .dock { display: flex; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}
.langq { display: none; align-items: center; min-height: var(--hit); padding: 0 var(--space-3); border-radius: var(--radius-control); box-shadow: inset 0 0 0 1px var(--f-line); color: var(--f-ink); font-weight: var(--weight-label); font-size: var(--text-label); }
.langq:lang(ta) { font-family: var(--font-ta); }
@media (max-width: 760px) {
  /* the road on a phone: one fixed column for the lamps, so every stop's words start at the same edge */
  .road { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .road::before { left: 11px; right: auto; top: 14px; bottom: 14px; width: 1.5px; height: auto; background: repeating-linear-gradient(180deg, var(--color-line-strong) 0 6px, transparent 6px 11px); }
  .road li { grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 2px var(--space-4); padding-right: 0; }
  .road .road-when { display: contents; }
  .road .road-when .mark { grid-column: 1; grid-row: 1 / span 2; height: 22px; margin-top: 3px; background: var(--color-page); box-shadow: 0 0 0 4px var(--color-page); }
  .road .road-when > span { grid-column: 2; font-weight: var(--weight-head); line-height: 28px; }
  .road li > p:last-child { grid-column: 2; }
  .road .road-now::after { display: none; }
  .foot-cols > div:last-child { grid-column: 1 / -1; }
  .foot-ctl { justify-items: stretch; }
  .foot-ctl .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
  .foot-ctl .seg button { min-width: 0; padding: 0 var(--space-2); }
  .ctl-bar { flex-wrap: wrap; padding-block: var(--space-2); }
  .ctl-bar .key { margin-left: 0; width: 100%; }
  .outcome { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); min-height: 0; }
  .day-head { display: none; }
  .day-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .day-t { grid-row: auto; }
  .day-what, .day-without, .day-with { grid-column: auto; }
  .day-cell .lab { display: block; font-size: var(--text-caption); font-weight: var(--weight-head); color: var(--color-ink-3); margin-bottom: 2px; }
  .day-with .lab { color: var(--color-ai); }
  .vault { grid-template-columns: minmax(0, 1fr); }
  .vault-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vault-others > span { min-height: 72px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-row { grid-template-columns: minmax(0, 1fr); }
  .lang-when { justify-content: flex-start; text-align: left; }
  .terms > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctl-row { grid-template-columns: minmax(0, 1fr); }
  .tx li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rows > li { grid-template-columns: 40px minmax(0, 1fr); }
  .rows > li > .key, .rows > li > .acts-r { grid-column: 2; justify-self: start; }
  .status--paused .key { margin-left: 0; }
}
@media (max-width: 420px) {
  .hero .acts .key, .masthead .acts .key, .cta .acts .key { flex: 1 1 100%; }
  .step-t { grid-template-columns: minmax(0, 1fr); }
  .step-n { grid-row: auto; }
  .step-t .prose, .step-t .acts { grid-column: auto; }
}
@media (pointer: coarse) {
  .langsw button, .seg button, .review .seg button { min-height: 48px; }
  .rows .key { min-height: 48px; }
}
