/* Hallmark · shape: Walkthrough (the owner's order kept, every section recomposed) · genre: modern-minimal · theme: Dose (deal 3/3, seed brochure-explaining-clinics-hospitals-1b8f·be891901·2026-11-18·r0) · redesign: full
 * hero: Stage (the head on seven columns, the call hub on a mint plastic tray on five) · nav: edge-aligned running head, the wordmark, the section you are in, one link · footer: mast, the wordmark large over the disclaimer · imagery: none, the product drawn as its own diagrams · signature: the call hub, live on a plastic tray in the hero · dose: white
 * axes: light/grotesk-sans/chromatic-green · posture: committed · contrast: pass · fold: pass · job: hire (email us) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: R, eight plastic bands could read as a toy; held them to four pale tints, white labels and one green for every signal */
/* Hallmark · finish-review: subagent · fix · 8 findings · 7 resolved 1 partial (the hub's three outputs stay icon-over-label tiles inside the diagram, now paper labels with a tear rule) · gap: the contents list moved below the hero */
/* Hallmark · reworded "New patient · Dermatology" to "New patient, Dermatology" and joined meta strings with commas · 63 names middle-dot meta */
/* Hallmark · reworded straight quotes and apostrophes in eight headings to typographic ones (they’re, patient’s, caller’s, it’s) · F1 names straight quotes */
/* Hallmark · reworded "Call A/B/C" tags into a key beside each heading, the words kept for screen readers · 54 names the eyebrow */
/* Hallmark · dropped the 01 to 07 section numbers over the headings, the order lives on in the contents list · 54 names ordinal eyebrows */
/* Hallmark · dismissed 59 · eleven blocks are the owner's seven chapters plus contents, contact, hero and footer; nothing was added */
/* Hallmark · dismissed 3 · capabilities and phases are hairline-topped text with a small inline icon, no tiles */
/* Hallmark · dismissed 23 · the call rail is a 2px line, never a fill */
/* Hallmark · dismissed 41 · on-ink text only ever sits on the ink band and ink bubbles */
/* Hallmark · waive 47c · plastic trays and paper labels are Dose's own material, each holding a real step of the booking call · the clinic call is drawn, not photographed */

@import url("./tokens.css");
@import url("./base.css");

/* ---------- Fonts (self-hosted; the CSP allows nothing else) ---------- */
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/noto-sans-telugu-sub.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0C00-0C7F, U+200C-200D; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/noto-sans-devanagari-sub.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0900-097F, U+200C-200D; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Page tokens ---------- */
:root {
  --color-surface: oklch(99.3% 0.006 90);
  --color-on-ink: oklch(96.5% 0.01 160);
  --color-on-ink-2: oklch(84% 0.022 160);
  --color-rule-ink: oklch(36% 0.022 170);
  --color-wire: oklch(72% 0.03 150);
  --color-brand-navy: oklch(27% 0.05 268);
  --color-brand-paper: oklch(97.6% 0.008 85);
  --color-brand-teal: oklch(61% 0.1 190);
  --nav-h: 64px;
  --radius-label: 10px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --arrow-head: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7'%3E%3Cpath d='M0 0 6 7 12 0Z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--nav-h) + var(--space-lg)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background-color: var(--color-paper); background-image: var(--grain); font-size: var(--text-md); }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure { margin: 0; }
b, strong { font-weight: 700; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; font-size: 0.94em; }
a:hover { text-decoration-color: var(--color-accent); }
.lead { color: var(--color-ink-2); }
.lead strong { color: var(--color-ink); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-on-ink); border-radius: var(--radius-input); }
.skip:focus-visible { top: var(--space-md); }

/* Plastic: Dose's surface. A pale tint, a glint on the top edge, a deeper shade at the foot. */
.plastic {
  --t: var(--p-thu);
  position: relative;
  border-radius: var(--radius-card);
  background:
    linear-gradient(color-mix(in oklab, var(--glint) 34%, transparent), transparent 18%),
    color-mix(in oklab, var(--t) 62%, var(--color-paper));
  box-shadow:
    inset 0 1.5px 0 var(--glint),
    inset 0 -24px 36px -28px color-mix(in oklab, var(--t) 45%, var(--color-ink)),
    0 28px 40px -34px color-mix(in oklab, var(--t) 70%, var(--color-ink));
}

/* A label: grained paper on plastic. */
.label {
  border-radius: var(--radius-label);
  background-color: var(--color-surface);
  background-image: var(--grain);
  box-shadow: var(--shadow-lift);
}

/* ---------- Controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 52px;
  padding: 0 var(--space-lg);
  border: 0;
  border-radius: var(--radius-input);
  font: 500 var(--text-md)/1 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.btn .ico { width: 1.2em; height: 1.2em; }
.btn-primary {
  background: var(--color-accent-deep);
  color: var(--color-accent-ink);
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--glint) 40%, transparent), 0 0 0 1px var(--color-accent-deep), 0 3px 0 var(--color-accent-deep);
}
.btn-primary:hover { background: var(--color-ink); text-decoration: none; }
.btn-quiet {
  background: transparent;
  color: var(--color-ink);
  box-shadow: 0 0 0 1px var(--color-muted), 0 3px 0 var(--color-rule);
}
.btn-quiet:hover { background: color-mix(in oklab, var(--color-surface) 70%, transparent); text-decoration: none; }
.btn:active { transform: translateY(3px); }
.btn-primary:active { box-shadow: 0 0 0 1px var(--color-accent-deep), 0 0 0 var(--color-accent-deep); }
.btn-quiet:active { box-shadow: 0 0 0 1px var(--color-muted), 0 0 0 var(--color-rule); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ---------- Top bar: a running head ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background: color-mix(in oklab, var(--color-paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-rule);
}
.topbar-row { display: flex; align-items: center; gap: var(--space-lg); min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-ink); text-decoration: none; border-radius: var(--radius-input); }
.brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark rect { fill: var(--color-brand-navy); }
.brand-mark path { fill: none; stroke: var(--color-brand-paper); stroke-width: 5.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark circle { fill: var(--color-brand-teal); }
.brand-name { font: 700 1.125rem/1 var(--font-display); letter-spacing: -0.02em; }
.topbar-now { flex: 1; min-width: 0; font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-input);
  background: transparent;
  box-shadow: 0 0 0 1px var(--color-rule);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.topbar-cta:hover { background: var(--color-paper-2); }
.topbar-cta:active { transform: translateY(1px); }
.topbar-cta:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.topbar-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.topbar-progress span { display: block; height: 100%; background: var(--color-accent); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Hero ---------- */
.intro {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: calc(100dvh - var(--nav-h));
  padding-block: var(--space-xl) var(--space-2xl);
}
/* Window light: four soft panes across the paper, still. */
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 8%, var(--light) 8% 17%, transparent 17% 20%, var(--light) 20% 29%, transparent 29% 52%, var(--light) 52% 60%, transparent 60% 63%, var(--light) 63% 71%, transparent 71%);
  opacity: 0.85;
  filter: blur(26px);
}
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center; }
.intro-text { display: grid; gap: var(--space-lg); justify-items: start; }
.intro h1 { font-size: var(--text-display-s); max-width: 17ch; line-height: 1.02; }
.intro .lead { max-width: 40ch; }
.intro .actions { margin-top: var(--space-xs); }

/* The hub diagram on its tray */
.hub { justify-self: center; width: 100%; max-width: 30rem; padding: var(--space-lg) var(--space-lg) var(--space-2xl); }
@media (prefers-reduced-motion: reduce) { .hub { padding-bottom: var(--space-lg); } }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram text { font-family: var(--font-body); }
.hub { box-shadow: inset 0 2px 0 var(--glint), inset 0 -40px 60px -40px color-mix(in oklab, var(--p-thu) 40%, var(--color-ink)), 0 30px 44px -32px color-mix(in oklab, var(--p-thu) 60%, var(--color-ink)); }
.hub .node { fill: var(--color-surface); stroke: color-mix(in oklab, var(--p-thu) 60%, var(--color-ink) 14%); stroke-width: 1; filter: drop-shadow(0 6px 7px color-mix(in oklab, var(--color-ink) 16%, transparent)); }
.hub .tear { fill: none; stroke: var(--color-wire); stroke-width: 1; stroke-dasharray: 3 3; }
.hub .node-icon-bg { fill: var(--color-accent-soft); }
.hub .node-icon { color: var(--color-accent-deep); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.t-strong { font-size: 14px; font-weight: 700; fill: var(--color-ink); }
.t-small { font-size: 12px; fill: var(--color-ink-2); }
.t-label { font-size: 11.5px; font-weight: 500; fill: var(--color-accent-deep); }
.t-num { font-family: var(--font-outlier); font-size: 13px; font-weight: 500; fill: var(--color-accent-deep); }
.t-num.on-dark { fill: var(--color-accent-ink); }
.t-agent { font-size: 12px; font-weight: 500; fill: var(--color-on-ink); text-anchor: middle; }
.mid { text-anchor: middle; }
.wire { fill: none; stroke: var(--color-accent); stroke-width: 2; stroke-linecap: round; }
.agent-core { fill: var(--color-ink); }
.halo-1 { fill: color-mix(in oklab, var(--color-accent-soft) 60%, transparent); stroke: var(--color-accent); stroke-width: 1; }
.wave rect { fill: var(--color-accent-soft); }
.pulse { fill: var(--color-accent); stroke: var(--color-surface); stroke-width: 2; }

.loop-toggle {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-md);
  min-height: 44px;
  padding: 0 var(--space-md);
  border: 0;
  border-radius: var(--radius-input);
  background: color-mix(in oklab, var(--color-surface) 88%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--p-thu) 60%, var(--color-ink) 18%);
  color: var(--color-ink);
  font: 500 var(--text-sm)/1 var(--font-body);
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.loop-toggle:hover { background: var(--color-surface); }
.loop-toggle:active { transform: translateY(1px); }
.loop-toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.loop-toggle:disabled { opacity: 0.55; cursor: not-allowed; }
html:not(.js) .loop-toggle { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .wave rect { transform-box: fill-box; transform-origin: center; animation: wave 1.1s var(--ease-in-out) infinite alternate; }
  .wave rect:nth-child(2) { animation-delay: -0.2s; }
  .wave rect:nth-child(3) { animation-delay: -0.45s; }
  .wave rect:nth-child(4) { animation-delay: -0.1s; }
  .wave rect:nth-child(5) { animation-delay: -0.6s; }
  .wave rect:nth-child(6) { animation-delay: -0.3s; }
  .wave rect:nth-child(7) { animation-delay: -0.75s; }
  .halo-1 { transform-box: fill-box; transform-origin: center; animation: halo 2.8s var(--ease-out) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .pulses, .loop-toggle { display: none; }
}
[data-loop]:not(.is-running) :not(.draw), [data-loop]:not(.is-running) *::before, [data-loop]:not(.is-running) *::after { animation-play-state: paused !important; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes wave { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }
@keyframes halo { 0% { transform: scale(0.92); opacity: 0.9; } 100% { transform: scale(1.14); opacity: 0; } }

/* ---------- Reveal (one system, visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .caps > :nth-child(3n + 2), .js .guards > :nth-child(2n), .js .branches > :nth-child(2), .js .phases > :nth-child(3n + 2) { transition-delay: 60ms; }
  .js .caps > :nth-child(3n), .js .branches > :nth-child(3), .js .phases > :nth-child(3n) { transition-delay: 120ms; }
  .js [data-reveal] .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-out); }
  .js [data-reveal].in .draw { stroke-dashoffset: 0; }
  .js .hub .draw { stroke-dasharray: 1; animation: draw 1.2s var(--ease-out) both; }
  .js .hub .draw:nth-of-type(n + 2) { animation-delay: 0.35s; }
}

/* ---------- Sections ---------- */
.section { margin-block-start: var(--section-gap); }
.head { margin-block-end: var(--space-2xl); display: grid; gap: var(--space-md); }
.head-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--space-2xl); align-items: end; }
.head-split .lead { max-width: 46ch; }
.head-call, .head-build { max-width: 52rem; }

/* Contents */
.index { padding-block: var(--section-gap-s) 0; }
.index-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; padding-top: var(--space-2xl); border-top: 1px solid var(--color-rule); }
.index-text { display: grid; gap: var(--space-lg); }
.index-text h2 { max-width: 14ch; }
.facts { display: grid; gap: var(--space-sm); margin-top: var(--space-xs); }
.facts li { display: flex; align-items: center; gap: var(--space-sm); font-weight: 500; }
.facts .ico { color: var(--color-accent-deep); width: 1.3em; height: 1.3em; }
.toc ol { counter-reset: toc; border-top: 1px solid var(--color-ink); }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--color-rule); }
.toc a {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: baseline;
  padding-block: var(--space-md);
  font: 700 var(--text-title)/1.2 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-decoration: none;
  transition: color var(--dur-short) var(--ease-out);
}
.toc a::before { content: counter(toc); font: 500 var(--text-md)/1 var(--font-outlier); color: var(--color-muted); }
.toc a:hover { color: var(--color-accent-deep); }
.toc a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }

/* What it does */
#what { margin-block-start: var(--section-gap-s); }
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.cap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; column-gap: var(--space-sm); row-gap: var(--space-xs); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.cap-ico { width: 24px; height: 24px; margin-top: 0.15em; color: var(--color-accent-deep); }
.cap p { grid-column: 2; color: var(--color-ink-2); max-width: 36ch; }

.connects { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: center; margin-top: var(--space-2xl); padding: var(--space-lg) 0; border-block: 1px solid var(--color-ink); }
.connects-title { display: flex; align-items: center; gap: var(--space-sm); font-weight: 500; }
.connects-title .ico { color: var(--color-accent-deep); }
.systems { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); }
.systems li { font: 700 var(--text-lg)/1.3 var(--font-display); letter-spacing: -0.015em; }

/* ---------- Booking call ---------- */
.legend { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); color: var(--color-ink-2); }
.legend li { display: inline-flex; align-items: center; gap: var(--space-xs); }
.key { width: 22px; height: 15px; flex: none; border-radius: 6px; }
.key-agent { background: var(--color-ink); border-top-left-radius: 2px; }
.key-caller { background: var(--color-surface); box-shadow: 0 0 0 1px var(--color-rule); border-top-right-radius: 2px; }
.key-system { background: var(--color-surface); box-shadow: 0 0 0 1px var(--color-accent), 0 3px 6px -2px var(--color-rule); border-radius: 3px; }

.call { position: relative; display: grid; gap: var(--space-lg); padding-inline-start: var(--space-2xl); }
.call-rail { position: absolute; left: calc(var(--space-2xl) / 2 - 1px); top: var(--space-xl); bottom: var(--space-2xl); width: 2px; border-radius: 2px; background: var(--color-rule); }
.rail-fill { position: absolute; inset: 0; border-radius: 2px; background: var(--color-accent); transform-origin: top; transform: scaleY(var(--p, 1)); }
.rail-pulse { display: none; }
.js .rail-pulse { display: block; position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 14px; height: 14px; border-radius: 50%; background: var(--color-surface); box-shadow: 0 0 0 3px var(--color-accent); transform: translate(-50%, -50%); }

.step {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-areas: "marker behind" "title behind" "talk behind";
  grid-template-rows: auto auto 1fr;
  column-gap: var(--space-2xl);
  row-gap: var(--space-md);
  padding: var(--space-xl);
  align-items: start;
}
.step:nth-child(4n + 2) { --t: var(--p-thu); }
.step:nth-child(4n + 3) { --t: var(--p-wed); }
.step:nth-child(4n) { --t: var(--p-fri); }
.step:nth-child(4n + 1) { --t: var(--p-tue); }
.step-marker {
  grid-area: marker;
  font: 700 clamp(3rem, 2rem + 3vw, 5.25rem)/0.85 var(--font-display);
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
  transition: color var(--dur-long) var(--ease-out);
}
.js .step:not(.is-past) .step-marker { color: color-mix(in oklab, var(--t) 52%, var(--color-ink) 30%); }
.step-title { grid-area: title; max-width: 24ch; }

.talk { grid-area: talk; display: flex; flex-direction: column; gap: var(--space-sm); align-self: start; }
.say { max-width: 34rem; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card); line-height: 1.5; }
.say .who { display: block; margin-bottom: var(--space-2xs); font-size: var(--text-sm); font-weight: 500; }
.say.agent { align-self: flex-start; margin-right: var(--space-lg); background: var(--color-ink); color: var(--color-on-ink); border-top-left-radius: 4px; }
.say.agent .who { color: var(--color-accent-soft); }
.say.caller { align-self: flex-end; margin-left: var(--space-lg); background: var(--color-surface); color: var(--color-ink); border-top-right-radius: 4px; box-shadow: 0 1px 2px color-mix(in oklab, var(--color-ink) 12%, transparent); }
.say.caller .who { color: var(--color-muted); }
.say.caller { min-width: min(13rem, 100%); }
.say.is-muted { background: transparent; box-shadow: none; outline: 1.5px dashed color-mix(in oklab, var(--t) 40%, var(--color-ink) 45%); outline-offset: -1.5px; color: var(--color-ink-2); }
.say :lang(te) { display: block; font-size: 1.04em; line-height: 1.7; }
.say .tr { display: block; margin-top: var(--space-2xs); font-size: var(--text-sm); line-height: 1.45; }
.say.agent .tr { color: var(--color-on-ink-2); }
.say.caller .tr { color: var(--color-muted); }

.behind { grid-area: behind; align-self: start; display: grid; gap: var(--space-md); padding: var(--space-lg); border-radius: var(--radius-label); background-color: var(--color-surface); background-image: var(--grain); box-shadow: var(--shadow-lift); }
.behind-label { font-size: var(--text-sm); font-weight: 500; color: var(--color-accent-deep); }
.note { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.45; }

.chain { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-xs); }
.chain li:not(.chain-arrow) { display: flex; justify-content: center; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-input); box-shadow: 0 0 0 1px var(--color-rule); font-size: var(--text-sm); font-weight: 500; text-align: center; line-height: 1.2; }
.chain li.is-on { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: none; }
.chain-arrow { color: var(--color-wire); }

.ticks { display: grid; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.ticks li { display: flex; gap: var(--space-xs); align-items: start; line-height: 1.45; }
.ticks .ico { color: var(--color-accent); margin-top: 0.1em; }

.record { display: grid; border-radius: var(--radius-input); box-shadow: 0 0 0 1px var(--color-rule); overflow: clip; }
.record div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-xs) var(--space-sm); align-items: baseline; }
.record div + div { border-top: 1px solid var(--color-rule); }
.record dt { font-size: var(--text-sm); color: var(--color-muted); }
.record dd { font-weight: 500; }

.screen { display: grid; gap: var(--space-2xs); }
.screen li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-input); background: var(--color-paper-2); font-size: var(--text-sm); }
.screen b { font: 500 var(--text-sm)/1.2 var(--font-outlier); padding: var(--space-3xs) var(--space-xs); border-radius: 6px; background: var(--color-accent-soft); color: var(--color-accent-deep); }
.verdict { display: flex; gap: var(--space-xs); align-items: start; padding: var(--space-sm); border-radius: var(--radius-input); font-size: var(--text-sm); line-height: 1.45; }
.verdict .ico { margin-top: 0.1em; }
.verdict.ok { background: var(--color-accent-soft); color: var(--color-ink); font-weight: 500; }
.verdict.ok .ico { color: var(--color-accent-deep); }
.verdict.warn { background: var(--color-paper); color: var(--color-ink-2); outline: 1px dashed var(--color-muted); outline-offset: -1px; }
.verdict.warn a { color: var(--color-accent-deep); font-weight: 500; }

.vflow { display: grid; gap: var(--space-md); }
.vflow li { position: relative; display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-input); box-shadow: 0 0 0 1px var(--color-rule); font-size: var(--text-sm); line-height: 1.4; }
.vflow li .ico { color: var(--color-accent-deep); }
.vflow li + li::before { content: ""; position: absolute; top: calc(-1 * var(--space-md)); left: 22px; width: 2px; height: var(--space-md); background: var(--color-wire); }
.vflow li.is-on { background: var(--color-accent-soft); box-shadow: none; }

.lang-switch { --idx: 2; position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 15rem; padding: var(--space-2xs); border-radius: var(--radius-input); background: var(--color-paper-2); box-shadow: inset 0 1px 2px color-mix(in oklab, var(--color-ink) 10%, transparent); }
.lang-switch::before { content: ""; position: absolute; top: var(--space-2xs); bottom: var(--space-2xs); left: var(--space-2xs); width: calc((100% - 2 * var(--space-2xs)) / 3); z-index: -1; border-radius: 7px; background: var(--color-accent); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--glint) 35%, transparent), 0 2px 0 var(--color-accent-deep); transform: translateX(calc(var(--idx) * 100%)); }
.lang-switch span { padding-block: var(--space-xs); text-align: center; font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-2); }
.lang-switch span:first-child { font-family: var(--font-outlier); }
.lang-switch .on { color: var(--color-accent-ink); }
.js .step:not(.is-in) .lang-switch { --idx: 0; }
.js .step:not(.is-in) .lang-switch span:first-child { color: var(--color-accent-ink); }
.js .step:not(.is-in) .lang-switch .on { color: var(--color-ink-2); }
@media (prefers-reduced-motion: no-preference) { .lang-switch::before { transition: transform 0.7s var(--ease-in-out) 0.5s; } .lang-switch span { transition: color 0.25s var(--ease-out) 1s; } }

.slots { display: grid; gap: var(--space-sm); padding: var(--space-sm); border-radius: var(--radius-input); background: var(--color-paper); box-shadow: 0 0 0 1px var(--color-rule); }
.slots-head { display: flex; justify-content: space-between; gap: var(--space-md); font-size: var(--text-sm); font-weight: 700; }
.slots-head span:last-child { font-weight: 500; color: var(--color-muted); }
.slots ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xs); }
.slots li { display: grid; place-items: center; min-height: 44px; border-radius: 8px; font: 500 var(--text-sm)/1.1 var(--font-outlier); text-align: center; }
.slots li small { font-size: 0.75rem; color: var(--color-muted); }
.slots .taken { color: var(--color-muted); background: repeating-linear-gradient(-45deg, var(--color-paper-2) 0 5px, var(--color-rule) 5px 6px); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--color-muted) 60%, transparent); }
.slots .offer { background: var(--color-accent-soft); color: var(--color-accent-deep); box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.slots .pick { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: 0 3px 0 var(--color-accent-deep); }
.slots .short { box-shadow: inset 0 0 0 1.5px var(--color-rule); outline: 1.5px dashed var(--color-wire); outline-offset: -1.5px; color: var(--color-muted); }
.slots-key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.kk { display: inline-flex; align-items: center; gap: var(--space-2xs); white-space: nowrap; }
.k { width: 14px; height: 14px; flex: none; border-radius: 4px; }
.k-taken { background: repeating-linear-gradient(-45deg, var(--color-paper-2) 0 2px, var(--color-wire) 2px 3px); }
.k-offer { background: var(--color-accent-soft); box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.k-short { outline: 1.5px dashed var(--color-wire); outline-offset: -1.5px; }
@media (prefers-reduced-motion: no-preference) {
  .js .step .slots .offer { transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
  .js .step:not(.is-in) .slots .offer { transform: scale(0.85); box-shadow: none; }
  .js .step .slots .offer:nth-child(6) { transition-delay: 0.15s; }
}

.saved { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm); border-radius: var(--radius-input); background: var(--color-accent-soft); }
.saved-ico { width: 44px; height: 44px; flex: none; padding: var(--space-sm); border-radius: 8px; background: var(--color-accent); color: var(--color-accent-ink); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.saved-title { font-weight: 700; }
.saved-meta { font-size: var(--text-sm); color: var(--color-ink-2); }

/* The message, on a mint tray (no drawn phone) */
.phone { width: min(100%, 20rem); display: grid; gap: var(--space-xs); padding: var(--space-md); border-radius: 22px; background: color-mix(in oklab, var(--p-thu) 45%, var(--color-surface)); box-shadow: inset 0 1px 0 var(--glint); }
.phone-from { text-align: center; font-size: var(--text-sm); color: var(--color-ink-2); }
.bubble { display: grid; gap: var(--space-2xs); margin-right: var(--space-md); padding: var(--space-sm); border-radius: 4px var(--radius-card) var(--radius-card) var(--radius-card); background: var(--color-surface); font-size: var(--text-sm); line-height: 1.45; box-shadow: 0 1px 2px color-mix(in oklab, var(--color-ink) 12%, transparent); }
.bubble-title { display: flex; align-items: center; gap: var(--space-2xs); font-weight: 700; color: var(--color-accent-deep); }
.bubble-foot { padding-top: var(--space-2xs); border-top: 1px solid var(--color-rule); color: var(--color-muted); }
.bubble-later .bubble-title { color: var(--color-ink-2); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .js .step .bubble { transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
  .js .step:not(.is-in) .bubble { opacity: 0; transform: translateY(10px); }
  .js .step .bubble-later { transition-delay: 0.5s; }
}

.behind-bare { padding: 0; background: none; box-shadow: none; }
.behind-bare .phone { background-color: var(--color-surface); background-image: var(--grain); box-shadow: var(--shadow-lift); border-radius: var(--radius-label); }
.behind-bare .bubble { background: var(--color-paper-2); box-shadow: none; }
.behind-bare .note { color: var(--color-ink-2); }

.call-end p { display: flex; gap: var(--space-sm); align-items: start; padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); background: var(--color-ink); color: var(--color-on-ink); line-height: 1.5; }
.call-end .ico { color: var(--color-accent-soft); margin-top: 0.2em; }
.call-end a { color: var(--color-accent-soft); font-weight: 500; }
.call-end a:focus-visible { outline-color: var(--color-accent-soft); }

/* ---------- Other calls: three flowcharts ---------- */
#other { margin-block-start: var(--section-gap-l); }
.branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.branch { display: grid; gap: var(--space-lg); padding-inline: var(--space-xl); border-left: 1px solid var(--color-rule); }
.branch:first-child { padding-left: 0; border-left: 0; }
.branch:last-child { padding-right: 0; }
.branch-head { display: flex; align-items: center; gap: var(--space-sm); }
.branch-key { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--radius-input); background: color-mix(in oklab, var(--p-thu) 62%, var(--color-paper)); box-shadow: inset 0 1.5px 0 var(--glint), 0 2px 0 color-mix(in oklab, var(--p-thu) 60%, var(--color-ink) 25%); font: 700 var(--text-lg)/1 var(--font-display); }
.branch-urgent .branch-key { background: var(--color-ink); color: var(--color-on-ink); box-shadow: 0 2px 0 var(--color-ink-2); }

.flow, .lane { --gap-h: var(--space-lg); display: flex; flex-direction: column; align-items: stretch; }
.flow > li, .lane > li { position: relative; }
.flow > li + li, .lane > li + li { margin-top: var(--gap-h); }
.flow > li + li::before, .lane > li + li::before {
  content: "";
  position: absolute;
  top: calc(var(--gap-h) * -1 - 1px);
  left: 50%;
  width: 12px;
  height: var(--gap-h);
  transform: translateX(-50%);
  background: var(--color-wire);
  -webkit-mask: var(--arrow-head) center bottom / 10px 6px no-repeat, linear-gradient(var(--color-ink) 0 0) center top / 2px calc(100% - 5px) no-repeat;
  mask: var(--arrow-head) center bottom / 10px 6px no-repeat, linear-gradient(var(--color-ink) 0 0) center top / 2px calc(100% - 5px) no-repeat;
}
.fnode { padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-input); background: var(--color-surface); box-shadow: 0 0 0 1px var(--color-rule); font-size: var(--text-sm); line-height: 1.4; text-align: center; }
.fnode.start { padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-on-ink); box-shadow: none; font: 700 var(--text-md)/1.35 var(--font-display); letter-spacing: -0.01em; }
.fnode.decision { display: flex; justify-content: center; box-shadow: none; outline: 1.5px dashed var(--color-accent); outline-offset: -1.5px; font-weight: 700; color: var(--color-accent-deep); }
.fnode.decision span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.fnode.decision span::before { content: ""; width: 9px; height: 9px; flex: none; transform: rotate(45deg); box-shadow: inset 0 0 0 1.5px currentColor; }
.fnode.alert { background: var(--color-ink-2); color: var(--color-on-ink); box-shadow: none; font-weight: 500; }
.fnode.good { background: var(--color-accent-soft); box-shadow: none; font-weight: 500; }
.fnode.merge:not(.good) { box-shadow: none; outline: 1.5px dashed var(--color-wire); outline-offset: -1.5px; background: transparent; color: var(--color-ink-2); }

.fsplit { --leg: calc(25% - 3px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.flow > li.fsplit { margin-top: var(--space-xl); }
.flow > li.fsplit::before { top: calc(-1 * var(--space-xl)); height: calc(var(--space-xl) / 2); -webkit-mask: linear-gradient(var(--color-ink) 0 0) center / 2px 100% no-repeat; mask: linear-gradient(var(--color-ink) 0 0) center / 2px 100% no-repeat; }
.fsplit::after { content: ""; position: absolute; top: calc(-1 * var(--space-xl) / 2); left: var(--leg); right: var(--leg); height: calc(var(--space-xl) / 2); border: 2px solid var(--color-wire); border-bottom: 0; border-radius: 10px 10px 0 0; }
.lane { --gap-h: var(--space-md); }
.lane::after { content: ""; flex: 1 0 var(--space-xs); width: 2px; align-self: center; background: var(--color-wire); }
.lane-label { align-self: center; padding: var(--space-3xs) var(--space-xs); border-radius: 6px; background: var(--color-paper); box-shadow: 0 0 0 1px var(--color-wire); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); text-align: center; }
.lane .fnode { padding: var(--space-xs); }
.flow > li.merge { margin-top: var(--space-xl); }
.flow > li.merge::before { top: calc(-1 * var(--space-xl) / 2 - 1px); height: calc(var(--space-xl) / 2); }
.flow > li.merge::after { content: ""; position: absolute; top: calc(-1 * var(--space-xl) - 1px); left: calc(25% - 4px); right: calc(25% - 4px); height: calc(var(--space-xl) / 2); border: 2px solid var(--color-wire); border-top: 0; border-radius: 0 0 10px 10px; }

/* ---------- Reception: labels on a tray ---------- */
.desk { --t: var(--p-wed); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-lg); align-items: start; padding: var(--space-xl); }
.desk-side { display: grid; gap: var(--space-lg); }
.summary { display: grid; gap: var(--space-md); padding: var(--space-xl); }
.summary-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-sm); }
.stamp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: 8px;
  color: var(--color-accent-deep);
  font: 500 var(--text-md)/1.2 var(--font-outlier);
  box-shadow: inset 0 0 0 2px var(--color-accent), 0 0 0 3px var(--color-surface), 0 0 0 4.5px var(--color-accent);
  transform: rotate(-2deg);
}
@media (prefers-reduced-motion: no-preference) {
  .js .summary .stamp { transition: transform 0.45s var(--ease-out) 0.35s, opacity 0.3s var(--ease-out) 0.35s; }
  .js .summary:not(.in) .stamp { opacity: 0; transform: rotate(-9deg) scale(1.35); }
}
.summary-time { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.summary-title { font-size: var(--text-2xl); }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-lg); border-top: 1px solid var(--color-rule); }
.summary-grid div { display: grid; align-content: start; gap: var(--space-3xs); padding-block: var(--space-sm); border-bottom: 1px solid var(--color-rule); }
.summary-grid dt { font-size: var(--text-sm); color: var(--color-muted); }
.summary-foot { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); padding-top: var(--space-md); border-top: 1.5px dashed var(--color-wire); font-size: var(--text-sm); color: var(--color-ink-2); }
.summary-foot span { display: inline-flex; align-items: center; gap: var(--space-xs); }

.day, .callbacks { display: grid; gap: var(--space-sm); padding: var(--space-lg); }
.day-head { display: flex; justify-content: space-between; gap: var(--space-md); font-weight: 700; }
.day-head .mono { font-weight: 400; color: var(--color-muted); }
.day-list li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: baseline; gap: var(--space-sm); padding-block: var(--space-xs); border-top: 1px solid var(--color-rule); }
.day-list .mono { font-size: var(--text-lg); }
.day-list .is-new { margin-inline: calc(-1 * var(--space-xs)); padding-inline: var(--space-xs); border-radius: 8px; border-top-color: transparent; background: var(--color-accent-soft); }
.day-list .is-new + li { border-top-color: transparent; }
.day-list em { display: block; font-style: normal; font-size: var(--text-sm); color: var(--color-accent-deep); }
.callbacks li { display: flex; gap: var(--space-sm); align-items: start; padding-block: var(--space-xs); border-top: 1px solid var(--color-rule); font-size: var(--text-sm); line-height: 1.45; }
.callbacks .ico { color: var(--color-muted); margin-top: 0.1em; }
.callbacks .cb-high .ico { color: var(--color-accent-deep); }

/* ---------- How we build it ---------- */
#build { margin-block-start: var(--section-gap-l); }
.build-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; margin-bottom: var(--space-3xl); }
.build-top .head { margin-bottom: 0; }
.road { width: 100%; max-width: 40rem; justify-self: end; }
.road-line { fill: none; stroke: color-mix(in oklab, var(--color-accent) 45%, var(--color-paper)); stroke-width: 2.5; stroke-linecap: round; }
.road-loop, .road-loop-head { fill: none; stroke: var(--color-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.road-nodes circle { fill: var(--color-surface); stroke: var(--color-accent); stroke-width: 2; }
.road-nodes circle.road-live { fill: var(--color-accent); }
.road .t-strong { font-size: 11px; }
.road .t-label { font-size: 10px; }

.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.phase { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: var(--space-md); padding-top: var(--space-lg); border-top: 1px solid var(--color-ink); }
.phase-head { display: flex; align-items: baseline; gap: var(--space-sm); }
.phase-num { font: 700 var(--text-2xl)/1 var(--font-display); color: var(--color-accent-deep); font-variant-numeric: tabular-nums; }
.phase-ico { width: 22px; height: 22px; flex: none; margin-left: auto; align-self: center; color: var(--color-muted); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.phase > p { color: var(--color-ink-2); }
.phase-meta { display: grid; align-content: start; }
.phase-meta div { display: grid; gap: var(--space-3xs); padding: var(--space-sm) 0; border-top: 1px solid var(--color-rule); }
.phase-meta dt { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.phase-meta dd { font-size: var(--text-sm); line-height: 1.5; }
.phase-meta .hard { padding-inline: var(--space-sm); border-top: 0; border-radius: var(--radius-input); background: color-mix(in oklab, var(--p-wed) 50%, var(--color-paper)); box-shadow: inset 0 1px 0 var(--glint); }
.phase-meta .hard dt { color: var(--color-ink-2); }
.phase-live { padding: var(--space-lg); border-top: 0; border-radius: var(--radius-card); background: var(--color-ink); color: var(--color-on-ink); }
.phase-live .phase-num { color: var(--color-accent-soft); }
.phase-live .phase-ico, .phase-live > p { color: var(--color-on-ink-2); }
.phase-live .phase-meta div { border-top-color: var(--color-rule-ink); }
.phase-live .phase-meta dt { color: var(--color-on-ink-2); }
.phase-live .phase-meta .hard { background: var(--color-ink-2); box-shadow: none; }
.phase-live .phase-meta .hard dt { color: var(--color-accent-soft); }

/* ---------- Safety: the ink band ---------- */
.section-ink { padding-block: var(--section-gap-s); background: var(--color-ink); color: var(--color-on-ink); }
.section-ink .lead { color: var(--color-on-ink-2); }
.safety-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.outcomes { --gap-h: var(--space-lg); display: flex; flex-direction: column; align-items: center; padding: var(--space-xl); border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px var(--color-rule-ink); }
.outcomes-cap { margin-bottom: var(--space-md); font-size: var(--text-sm); color: var(--color-on-ink-2); }
.outcomes-src, .outcomes-rules { position: relative; display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-input); font-weight: 700; }
.outcomes-src { background: var(--color-ink-2); box-shadow: inset 0 0 0 1px var(--color-rule-ink); }
.outcomes-rules { margin-top: var(--gap-h); background: var(--color-accent); color: var(--color-accent-ink); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--glint) 30%, transparent), 0 3px 0 var(--color-accent-deep); }
.outcomes-rules::before, .outcomes-list::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 12px;
  height: var(--gap-h);
  transform: translateX(-50%);
  background: var(--color-on-ink-2);
  -webkit-mask: var(--arrow-head) center bottom / 10px 6px no-repeat, linear-gradient(var(--color-ink) 0 0) center top / 2px calc(100% - 5px) no-repeat;
  mask: var(--arrow-head) center bottom / 10px 6px no-repeat, linear-gradient(var(--color-ink) 0 0) center top / 2px calc(100% - 5px) no-repeat;
}
.outcomes-list { position: relative; width: 100%; margin-top: var(--gap-h); display: grid; gap: var(--space-xs); }
.outcomes-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-sm); align-items: center; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-input); background: var(--color-ink-2); }
.outcomes-list .ico { grid-row: span 2; width: 24px; height: 24px; color: var(--color-accent-soft); }
.outcomes-list span { font-size: var(--text-sm); color: var(--color-on-ink-2); line-height: 1.4; }
.outcomes-list li.human { box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.guards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.guards li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; column-gap: var(--space-sm); row-gap: var(--space-xs); padding-block: var(--space-lg); border-top: 1px solid var(--color-rule-ink); }
.guard-ico { width: 22px; height: 22px; margin-top: 0.1em; color: var(--color-accent-soft); }
.guards h3 { font-size: var(--text-lg); }
.guards p { grid-column: 2; color: var(--color-on-ink-2); max-width: 38ch; }

/* ---------- FAQ: rows beside a held head ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + var(--space-lg)); }
.faq { border-top: 1px solid var(--color-ink); }
.faq details { border-bottom: 1px solid var(--color-rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding-block: var(--space-lg); list-style: none; font: 700 var(--text-title)/1.25 var(--font-display); letter-spacing: -0.02em; cursor: pointer; border-radius: 4px; transition: color var(--dur-short) var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 16px; height: 16px; flex: none; background: linear-gradient(currentColor 0 0) center / 16px 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 16px no-repeat; color: var(--color-accent-deep); transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-accent-deep); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.faq-body { padding-bottom: var(--space-lg); }
.faq-body p { color: var(--color-ink-2); max-width: 60ch; }

/* ---------- Contact ---------- */
.contact { margin-block-start: var(--section-gap); }
.contact-tray { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center; padding: var(--space-3xl) var(--space-2xl); }
.contact-text { display: grid; gap: var(--space-md); }
.contact-text p { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 44ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: flex-end; }

/* ---------- Footer: a mast ---------- */
.footer { margin-top: var(--section-gap); padding-block: var(--space-2xl) var(--space-3xl); border-top: 1px solid var(--color-rule); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg) var(--gap-columns); align-items: center; }
.brand-lg { gap: var(--space-sm); }
.brand-lg .brand-mark { width: 52px; height: 52px; }
.brand-lg .brand-name { font-size: var(--text-section); letter-spacing: var(--tracking-display); }
.footer-link { justify-self: end; display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--color-ink); border-radius: 4px; }
.footer-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.footer-note { grid-column: 1 / -1; max-width: 70ch; font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- Narrower screens ---------- */
@media (max-width: 60rem) {
  .intro { min-height: 0; padding-block: var(--space-2xl); }
  .intro-grid, .index-grid, .head-split, .build-top, .connects, .desk, .safety-grid, .faq-grid, .contact-tray { grid-template-columns: minmax(0, 1fr); }
  .intro-grid { gap: var(--space-xl); }
  .hub { max-width: 26rem; }
  .index-grid { gap: var(--space-xl); }
  .caps, .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .call { padding-inline-start: var(--space-xl); }
  .call-rail { left: calc(var(--space-xl) / 2 - 1px); }
  .step { grid-template-columns: minmax(0, 1fr); grid-template-areas: "marker" "title" "talk" "behind"; grid-template-rows: none; padding: var(--space-lg); }
  .branches { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xl); }
  .branch, .branch:first-child, .branch:last-child { padding-inline: 0; border-left: 0; }
  .branch + .branch { padding-top: var(--space-2xl); border-top: 1px solid var(--color-rule); }
  .faq-head { position: static; }
  .contact-tray { padding: var(--space-xl) var(--space-lg); }
  .contact-actions { justify-content: flex-start; }
}
@media (max-width: 40rem) {
  .topbar-now { display: none; }
  .topbar-row { justify-content: space-between; }
  .caps, .phases, .guards, .summary-grid { grid-template-columns: minmax(0, 1fr); }
  .call { padding-inline-start: var(--space-lg); }
  .call-rail { left: calc(var(--space-lg) / 2 - 1px); }
  .step { padding: var(--space-md); }
  .say.agent { margin-right: 0; }
  .say.caller { margin-left: var(--space-md); }
  .desk { padding: var(--space-sm); }
  .summary { padding: var(--space-lg); }
  .systems li, .systems li:first-child { padding: var(--space-2xs) 0; border-left: 0; width: 100%; }
  .actions .btn, .contact-actions .btn { width: 100%; justify-content: center; }
  .hub { padding: var(--space-sm) var(--space-sm) var(--space-2xl); }
  .hub .t-strong { font-size: 15.5px; }
  .hub .t-small { font-size: 13px; }
  .hub .t-label, .hub .t-agent { font-size: 13.5px; }
  .road .t-strong { font-size: 14px; }
  .road .t-label { font-size: 13px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-link { justify-self: start; }
  .toc a { grid-template-columns: 2rem minmax(0, 1fr); font-size: var(--text-md); white-space: nowrap; }
  .toc a::before { font-size: var(--text-sm); }
}

/* ---------- Print / save as PDF ---------- */
@media print {
  .topbar, .loop-toggle, .call-rail, .skip, .pulses { display: none !important; }
  .js [data-reveal], .js .step .bubble { opacity: 1 !important; transform: none !important; }
  .intro { min-height: 0; }
  .step, .branch, .phase, .label, .faq details { break-inside: avoid; }
  .section-ink, .plastic, .say.agent, .fnode.start, .fnode.alert, .phase-live, .call-end p, .btn-primary { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .faq-head { position: static; }
}
