/* Fonts are served from this site (CSP font-src 'self'). Licences: fonts/*-OFL.txt */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%; src: url(/fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
/* Layout: product-led, with the Concierge voice moving behind it. A fixed particle canvas sits under <main> and morphs with scroll. The portal switches between five fictional businesses and plays its newest call live. A short thesis sits over a live, working portal; quiet editorial sections follow. */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --sunk: #f9fafc;
  --line: #dfe2ec;
  --line-2: #c8cddd;
  --fg: #0d1020;
  --fg-2: #41475e;
  --fg-3: #5d637a;
  --accent: #5443ff;
  --accent-ink: #ffffff;
  --accent-soft: #ecebff;
  --accent-line: #c4beff;
  --band: #ebedfb;
  --booked: #15803d;
  --answered: #0369a1;
  --transferred: #b45309;
  --message: #a21caf;
  --shadow: 0 1px 2px rgba(16,20,48,.06), 0 30px 70px -34px rgba(16,20,48,.32);
  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --row-h: 62px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c14; --surface: #10131f; --surface-2: #171b2a; --sunk: #0d1019;
    --line: #222739; --line-2: #343b55; --fg: #eceef8; --fg-2: #aab0c6; --fg-3: #8a90a8;
    --accent: #9a8fff; --accent-ink: #0a0c14; --accent-soft: #1d1b3d; --accent-line: #4a43a0; --band: #141731;
    --booked: #4ade80; --answered: #38bdf8; --transferred: #fbbf24; --message: #f0abfc;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 40px 80px -30px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0c14; --surface: #10131f; --surface-2: #171b2a; --sunk: #0d1019;
  --line: #222739; --line-2: #343b55; --fg: #eceef8; --fg-2: #aab0c6; --fg-3: #8a90a8;
  --accent: #9a8fff; --accent-ink: #0a0c14; --accent-soft: #1d1b3d; --accent-line: #4a43a0; --band: #141731;
  --booked: #4ade80; --answered: #38bdf8; --transferred: #fbbf24; --message: #f0abfc;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 40px 80px -30px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font: 400 15px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--accent);
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
::selection { background: var(--accent); color: var(--accent-ink); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; text-wrap: balance; margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; }
.wrap { max-width: 1200px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14.5px/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, var(--fg)); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn .ic { width: 16px; height: 16px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); cursor: pointer; }
.icon-btn:hover { color: var(--fg); border-color: var(--line-2); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .25s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 19px/1 var(--f-display); letter-spacing: -0.03em; }
.mark-bg { fill: var(--accent); }
.mark-fg { fill: var(--accent-ink); }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { text-decoration: none; color: var(--fg-2); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--fg); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.signin { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--fg-2); padding: 8px 6px; }
.signin:hover { color: var(--fg); }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px 56px; align-items: end; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: .98; letter-spacing: -0.038em; font-variation-settings: "opsz" 96; }
.hero h1 span { color: var(--fg-3); }
.hero-side { display: grid; gap: 22px; padding-bottom: 8px; }
.lede { font-size: 17px; line-height: 1.55; color: var(--fg-2); max-width: 44ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.managed-note { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--fg-3); }
.managed-note .ic { width: 16px; height: 16px; color: var(--accent); }

/* Product window */
.stage { margin-top: clamp(36px, 5vw, 64px); }
.window { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.url { display: inline-flex; align-items: center; gap: 6px; font: 400 12.5px/1 var(--f-mono); color: var(--fg-3); }
.url .ic { width: 13px; height: 13px; }
.sample-tag { margin-left: auto; font: 500 11.5px/1 var(--f-mono); color: var(--fg-2); background: var(--surface-2); border: 1px solid var(--line); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tb-title { display: grid; gap: 1px; margin-right: auto; }
.tb-title strong { font: 700 17px/1.2 var(--f-display); letter-spacing: -0.02em; }
.tb-title span { font-size: 12.5px; color: var(--fg-3); }
.live { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--f-mono); color: var(--fg-2); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--booked); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--booked); opacity: 0; animation: ping 1.8s cubic-bezier(.16,1,.3,1) infinite; }
.pulse.accent { background: var(--accent); }
.pulse.accent::after { border-color: var(--accent); }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); font: 500 12.5px/1 var(--f-body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fchip:hover { border-color: var(--line-2); color: var(--fg); }
.fchip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.fchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--o, var(--fg-3)); }

.app-body { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); height: 548px; }
.list-pane { border-right: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.list-head { display: grid; grid-template-columns: 72px minmax(0,1fr) auto 48px; gap: 12px; padding: 10px 18px; font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.list-head span:last-child { text-align: right; }
.list { list-style: none; margin: 0; padding: 6px; display: grid; align-content: start; gap: 2px; min-height: calc(7 * var(--row-h) + 26px); }
.row-li { position: relative; }
.row {
  width: 100%; height: var(--row-h); display: grid; grid-template-columns: 72px minmax(0,1fr) auto 48px; align-items: center; gap: 12px;
  padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer;
  transition: background .2s;
}
.row:hover { background: var(--surface-2); }
.row[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.r-time { font: 400 12.5px/1 var(--f-mono); color: var(--fg-3); }
.r-main { display: grid; gap: 3px; min-width: 0; }
.r-intent { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-sub { font: 400 12px/1.2 var(--f-mono); color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-dur { font: 400 12.5px/1 var(--f-mono); color: var(--fg-2); text-align: right; }
.chip { --o: var(--fg-3); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font: 600 12px/1 var(--f-body); color: var(--o); background: color-mix(in oklab, var(--o) 11%, var(--surface)); white-space: nowrap; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--o); }
.o-booked { --o: var(--booked); } .o-answered { --o: var(--answered); } .o-transferred { --o: var(--transferred); } .o-message { --o: var(--message); }
.chip.o-live { --o: var(--accent); }
.row.ringing .r-intent { color: var(--accent); }
.list-empty { padding: 28px 16px; color: var(--fg-3); font-size: 14px; text-align: center; }

.detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }
.d-head { padding: 18px 22px 14px; display: grid; gap: 8px; }
.d-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.d-title { font-size: 21px; line-height: 1.2; letter-spacing: -0.025em; }
.d-meta { font-size: 12.5px; color: var(--fg-3); }
.player { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; margin: 0 22px; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); }
.play { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.play .ic { width: 16px; height: 16px; }
.wave-wrap { height: 40px; cursor: pointer; touch-action: none; }
.wave { width: 100%; height: 100%; display: block; }
.p-time { font-size: 12px; color: var(--fg-2); white-space: nowrap; }
.p-note { margin: 8px 22px 0; font-size: 12px; color: var(--fg-3); }
.tabs { display: flex; gap: 2px; margin: 14px 22px 0; border-bottom: 1px solid var(--line); }
.tab { position: relative; padding: 10px 12px; border: 0; background: none; color: var(--fg-3); font: 600 13.5px/1 var(--f-body); cursor: pointer; }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.panel { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px 18px; position: relative; }
.transcript { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ln { display: grid; grid-template-columns: 2.8rem minmax(0,1fr); column-gap: 10px; padding: 8px 10px; border-radius: 10px; transition: opacity .3s, background .3s, box-shadow .3s; }
.ln-t { grid-row: span 2; font: 400 11.5px/1.7 var(--f-mono); color: var(--fg-3); }
.ln-who { font-size: 12px; font-weight: 600; color: var(--fg-3); line-height: 1.5; }
.ln-a .ln-who { color: var(--accent); }
.ln p { font-size: 14px; line-height: 1.55; color: var(--fg); }
.ln-x { align-items: center; }
.ln-x .ln-t { grid-row: auto; }
/* each spoken turn sits on a faint card: indigo for the agent, neutral for the caller */
.ln-c { background: color-mix(in srgb, var(--fg) 3.5%, transparent); }
.ln-a { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.act { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; justify-self: start; padding: 5px 10px; border-radius: 8px; border: 1px dashed var(--line-2); font: 500 12px/1.4 var(--f-mono); color: var(--fg-2); }
.act .ic { width: 14px; height: 14px; color: var(--accent); }
.act-v { color: var(--fg); }
.is-playing .ln.ahead { opacity: .3; }
.ln.now { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.summary { display: grid; gap: 14px; padding: 6px; }
.summary p { font-size: 15px; line-height: 1.6; max-width: 60ch; }
.next { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-2); padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.next .ic { color: var(--accent); margin-top: 2px; }
.fields { margin: 0; display: grid; padding: 4px 6px; }
.fields div { display: grid; grid-template-columns: 9.5rem minmax(0,1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.fields dt { font-size: 13px; color: var(--fg-3); }
.fields dd { margin: 0; font: 500 13.5px/1.45 var(--f-mono); color: var(--fg); }
.fields dd.muted { color: var(--fg-3); font-weight: 400; }
.sent { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 13.5px; }
.sent .ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--booked) 14%, var(--surface)); color: var(--booked); }
.sent .ok .ic { width: 14px; height: 14px; }
.sent .mono { margin-left: auto; color: var(--fg-3); font-size: 12.5px; }
.live-state { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 40px 28px; text-align: center; }
.live-state h3 { font-size: 20px; }
.live-state p { color: var(--fg-2); font-size: 14px; max-width: 36ch; }
.eq { display: flex; gap: 4px; align-items: center; height: 36px; }
.eq span { width: 4px; height: 100%; border-radius: 4px; background: var(--accent); animation: eq 1s ease-in-out infinite; transform-origin: center; }
.eq span:nth-child(2) { animation-delay: -.2s; } .eq span:nth-child(3) { animation-delay: -.45s; } .eq span:nth-child(4) { animation-delay: -.7s; } .eq span:nth-child(5) { animation-delay: -.35s; }
@keyframes eq { 0%,100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.stage-caption { margin-top: 14px; font-size: 13px; color: var(--fg-3); display: flex; gap: 8px; align-items: center; }

/* Sections */
.sec { padding-block: clamp(80px, 11vw, 140px) 0; }
.sec h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.04; letter-spacing: -0.034em; font-variation-settings: "opsz" 72; }
.sec-lede { font-size: 17px; line-height: 1.6; color: var(--fg-2); max-width: 46ch; margin-top: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px 64px; align-items: start; }
.figure { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; position: relative; }
.fig-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fig-head strong { font: 700 16px/1.2 var(--f-display); letter-spacing: -0.015em; }
.fig-head span { font: 400 12px/1 var(--f-mono); color: var(--fg-3); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-band { fill: var(--band); }
.c-bar { fill: var(--accent); transition: opacity .15s; }
.chart.hovering .c-bar { opacity: .45; }
.chart.hovering .c-bar.on { opacity: 1; }
.c-label { fill: var(--fg-3); font: 400 11px var(--f-mono); }
.c-band-label { fill: var(--fg-2); font: 500 11px var(--f-mono); }
.c-hit { fill: transparent; cursor: crosshair; }
.tip { position: absolute; pointer-events: none; background: var(--fg); color: var(--bg); font: 500 12px/1.3 var(--f-mono); padding: 7px 9px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity .12s; }
.tip.show { opacity: 1; }
.stack { margin-top: 22px; display: grid; gap: 10px; }
.stack-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; }
.stack-bar span { background: var(--o); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--fg-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--o); }
.legend b { font: 500 12.5px var(--f-mono); color: var(--fg); }
.fig-note { margin-top: 14px; font-size: 12.5px; color: var(--fg-3); }

.flow-wrap { margin-top: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.flow { display: block; width: 100%; min-width: 760px; height: auto; }
.f-box { fill: var(--sunk); stroke: var(--line-2); stroke-width: 1; }
.f-core { fill: var(--accent); }
.f-core-ink { fill: var(--accent-ink); }
.f-t { fill: var(--fg); font: 500 14px var(--f-body); }
.f-s { fill: var(--fg-3); font: 400 11.5px var(--f-mono); }
.f-h { fill: var(--fg-2); font: 500 11.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.f-core-t { fill: var(--accent-ink); font: 700 18px var(--f-display); letter-spacing: -0.02em; }
.f-core-s { fill: var(--accent-ink); font: 400 11.5px var(--f-mono); opacity: .85; }
.f-line { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.f-flow { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 9; stroke-linecap: round; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.f-arrow { fill: var(--line-2); }
.f-eq rect { fill: var(--accent-ink); transform-box: fill-box; transform-origin: center; animation: eq 1.1s ease-in-out infinite; }
.f-eq rect:nth-child(2) { animation-delay: -.3s; } .f-eq rect:nth-child(3) { animation-delay: -.6s; } .f-eq rect:nth-child(4) { animation-delay: -.15s; } .f-eq rect:nth-child(5) { animation-delay: -.45s; }
.flow-note { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }
.knows-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 64px; margin-top: 40px; }
.knows-cols p { color: var(--fg-2); max-width: 52ch; }
.knows-cols strong { color: var(--fg); font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0,1fr); gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font: 500 13px/1 var(--f-mono); color: var(--fg-2); }
.steps h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.3; }
.steps p { color: var(--fg-2); max-width: 54ch; }
.sticky-col { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); }

.fit-statement { font: 600 clamp(1.6rem, 3.1vw, 2.5rem)/1.2 var(--f-display); letter-spacing: -0.028em; max-width: 30ch; text-wrap: balance; }
.fit-statement em { font-style: normal; color: var(--accent); }
.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px 64px; margin-top: 44px; }
.fit-grid h3 { font: 600 13px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.fit-grid ul { list-style: none; margin: 0; padding: 0; display: grid; }
.fit-grid li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; display: flex; gap: 12px; align-items: baseline; }
.fit-grid li .ic { width: 15px; height: 15px; transform: translateY(2px); }
.fit-yes .ic { color: var(--booked); }
.fit-no .ic { color: var(--fg-3); }

.final { padding-block: clamp(96px, 12vw, 160px); }
.final-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); }
.final h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -0.038em; }
.final-side { display: grid; gap: 20px; }
.final-side p { color: var(--fg-2); font-size: 16.5px; }

footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 13px; color: var(--fg-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { text-decoration: none; color: var(--fg-2); }
footer a:hover { color: var(--fg); }

/* Dialog */
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
dialog::backdrop { background: color-mix(in oklab, var(--bg) 40%, rgba(5,6,14,.55)); backdrop-filter: blur(3px); }
.dlg { padding: 24px; display: grid; gap: 18px; }
.dlg-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.dlg-head h2 { font-size: 26px; letter-spacing: -0.03em; }
.dlg-head p { color: var(--fg-2); font-size: 14px; margin-top: 6px; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; color: var(--fg-2); }
.field input, .field select, .field textarea { width: 100%; font: 400 15px/1.4 var(--f-body); color: var(--fg); background: var(--sunk); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.dlg-done { display: grid; gap: 14px; }
.dlg-done p { color: var(--fg-2); }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row code { font: 500 15px/1 var(--f-mono); padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); user-select: all; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .hero-grid, .split, .final-inner { grid-template-columns: minmax(0,1fr); }
  .sticky-col { position: static; }
}
@media (max-width: 859px) {
  :root { --row-h: 66px; }
  .app-body { grid-template-columns: minmax(0,1fr); height: auto; }
  .list-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .list-head { display: none; }
  .row { grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; row-gap: 6px; padding: 10px 12px; }
  .r-time { grid-column: 2; grid-row: 2; text-align: right; }
  .r-main { grid-column: 1; grid-row: 1 / span 2; }
  .row .chip { grid-column: 2; grid-row: 1; justify-self: end; }
  .r-dur { display: none; }
  .panel { max-height: 380px; }
  .knows-cols, .fit-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  .signin, .theme-btn { display: none; }
  .top .wrap { gap: 12px; }
  .form-row { grid-template-columns: minmax(0,1fr); }
  .sample-tag { font-size: 10.5px; padding: 5px 7px; }
  .url span { display: none; }
  .fields div { grid-template-columns: minmax(0,1fr); gap: 2px; }
  .player { margin: 0 14px; } .d-head { padding: 16px 14px 12px; } .tabs, .p-note { margin-left: 14px; margin-right: 14px; } .panel { padding: 10px 8px 14px; }
  .toolbar { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse::after, .eq span, .f-flow, .f-eq rect { animation: none; }
  .f-flow { stroke-dasharray: none; opacity: .5; }
}

/* background voice */
#voice-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, footer { position: relative; z-index: 1; }
/* the big product surfaces are frosted, so the voice moves behind the data without hurting legibility */
.window, .figure, .flow-wrap { background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); }
.detail { background: transparent; }
.win-bar { background: color-mix(in srgb, var(--sunk) 78%, transparent); }

[hidden] { display: none !important; }
/* the promise is the accented part of the headline */
.hero h1 em { font-style: normal; color: var(--accent); }
/* merged portal: pick a business, watch the newest call happen, the agent's steps inline in the transcript */
.biz-bar { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--sunk) 72%, transparent); }
.biz-bar::-webkit-scrollbar { display: none; }
.biz { flex: none; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--fg-2); font: 500 13px/1 var(--f-body); cursor: pointer; }
.biz:hover { color: var(--fg); }
.biz[aria-selected="true"] { background: var(--surface); border-color: var(--line-2); color: var(--fg); box-shadow: 0 1px 2px rgba(16, 20, 48, .1); }
.biz:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 859px) { .biz-bar { -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); padding-right: 28px; } }
.act { max-width: 100%; }
.act-k { font: 600 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.k-rule .act-k, .k-rule .act .ic, .k-transfer .act-k, .k-transfer .act .ic { color: var(--transferred); }
.k-action .act-k, .k-action .act .ic { color: var(--booked); }
.act-v { color: var(--fg); overflow-wrap: anywhere; }
.act .spin { display: inline-block; width: 10px; height: 10px; border: 1.5px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: pspin .7s linear infinite; vertical-align: -1px; margin-right: 6px; }
@keyframes pspin { to { transform: rotate(360deg); } }
.ln .caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: pblink 1s steps(1) infinite; }
@keyframes pblink { 50% { opacity: 0; } }
.ln.speaking .ln-who { color: var(--accent); }
#detail.is-live .player { display: none; }
/* more room for the transcript: a taller window, and less stacked above the transcript */
@media (min-width: 860px) { .app-body { height: clamp(600px, 76vh, 720px); } }
#detail.is-live .p-note { display: none; }
.d-head { padding: 16px 22px 8px; gap: 6px; }
.p-note { margin-top: 6px; font-size: 11.5px; }
.tabs { margin-top: 8px; }
@media (max-width: 859px) { .panel { max-height: 460px; } }
@media (prefers-reduced-motion: reduce) { .act .spin, .ln .caret { animation: none; } }

/* fully managed: three phases on one quiet panel, and one row of calls that shifts to Callhand as you scroll */
#managed .mg-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; }
#managed .mg-head .sec-lede { margin-top: 0; }
.mg { margin-top: 44px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); }
.mg-track { position: relative; padding: 32px 32px 30px; }
.mg-rail { position: absolute; left: 32px; right: 32px; top: 39px; height: 2px; background: var(--line); }
.mg-rail i { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; transform: scaleX(var(--p, 1)); }
.mg-phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; position: relative; }
.mg-phase { position: relative; padding-top: 34px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.mg-phase::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); transition: background .3s, border-color .3s; }
.mg-phase.on::before { background: var(--accent); border-color: var(--accent); }
.mg-phase h3 { font-size: 21px; letter-spacing: -0.025em; line-height: 1.2; }
.mg-lead { font-size: 15.5px; color: var(--fg); margin-top: 4px; }
.mg-text { font-size: 14.5px; color: var(--fg-2); max-width: 34ch; }
.mg-roll { margin: 0; padding: 22px 32px 24px; border-top: 1px solid var(--line); }
.mg-calls { display: grid; grid-template-columns: repeat(40, minmax(0, 1fr)); gap: 4px; height: 30px; }
.mg-calls i { border-radius: 2px; background: var(--surface-2); transition: background .4s; }
.mg-calls i.on { background: var(--accent); }
.mg-legend { display: flex; gap: 18px; margin-top: 12px; font-size: 12.5px; color: var(--fg-3); }
.mg-legend span { display: inline-flex; align-items: center; gap: 7px; }
.mg-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--surface-2); border: 1px solid var(--line-2); }
.mg-legend i.a { background: var(--accent); border-color: var(--accent); }
@media (max-width: 899px) {
  #managed .mg-head { grid-template-columns: minmax(0, 1fr); }
  .mg-track { padding: 24px 20px 24px 46px; }
  .mg-rail { left: 27px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; }
  .mg-rail i { transform-origin: center top; transform: scaleY(var(--p, 1)); }
  .mg-phases { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .mg-phase { padding-top: 0; }
  .mg-phase::before { left: -26px; top: 4px; }
  .mg-roll { padding: 18px 20px 20px; }
  .mg-calls { gap: 2px; height: 26px; }
  .mg-legend { flex-wrap: wrap; gap: 6px 14px; }
}
@media (prefers-reduced-motion: reduce) { .mg-calls i, .mg-phase::before { transition: none; } }

/* who it's for: one index of the five businesses, each opening its live calls in the portal */
#fit .fit-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; }
#fit .fit-statement { max-width: 22ch; }
.fit-note { font-size: 15px; line-height: 1.6; color: var(--fg-2); max-width: 46ch; }
.fit-biz { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.fit-biz li { border-bottom: 1px solid var(--line); }
.fit-biz button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; border: 0; background: transparent; color: var(--fg-2); cursor: pointer; text-align: left;
  font: 600 clamp(1.35rem, 2.6vw, 2.1rem)/1.15 var(--f-display); letter-spacing: -0.025em; transition: color .2s; }
.fit-go { display: inline-flex; align-items: center; gap: 8px; flex: none; font: 500 13.5px/1 var(--f-body); letter-spacing: 0; color: var(--fg-3); transition: color .2s; }
.fit-go .ic { width: 16px; height: 16px; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.fit-biz button:hover, .fit-biz button:focus-visible { color: var(--fg); }
.fit-biz button:hover .fit-go, .fit-biz button:focus-visible .fit-go { color: var(--accent); }
.fit-biz button:hover .fit-go .ic { transform: translateX(4px); }
.fit-biz button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
@media (max-width: 859px) {
  #fit .fit-head { grid-template-columns: minmax(0, 1fr); }
  .fit-go span, .fit-go { font-size: 0; gap: 0; }
  .fit-go .ic { width: 18px; height: 18px; }
}

/* the team: few clients, one team each. Kept quiet: a headline and three plain rows */
#team .tm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px 72px; align-items: start; }
#team .tm-head h2 { max-width: 16ch; }
.tm-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tm-list li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.tm-list h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.3; }
.tm-list p { font-size: 15px; line-height: 1.6; color: var(--fg-2); max-width: 52ch; }
@media (max-width: 859px) { #team .tm { grid-template-columns: minmax(0, 1fr); } }

/* site-only parts */
.brand-mark { width: 28px; height: 28px; flex: none; }
.final-mail { margin-top: 14px; font-size: 14px; color: var(--fg-3); }
.final-mail a { color: var(--fg-2); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--fg); color: var(--bg); }
.skip:focus { left: 12px; }
/* the 404 page */
.nf { min-height: 100vh; display: grid; place-content: center; gap: 18px; padding: 40px 20px; text-align: center; justify-items: center; }
.nf h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.035em; }
.nf p { color: var(--fg-2); max-width: 40ch; }
/* replaced inline styles */
[data-st="1"] { position:absolute !important; }
[data-st="2"] { width:16px !important; height:16px !important; }
[data-st="3"] { --o:var(--booked) !important; }
[data-st="4"] { --o:var(--answered) !important; }
[data-st="5"] { --o:var(--transferred) !important; }
[data-st="6"] { --o:var(--message) !important; }
[data-st="7"] { display:contents; }
[data-st="8"] { width:15px !important; height:15px !important; }
[data-st="9"] { margin:0 !important; }
[data-st="10"] { width:6px !important; height:6px !important; }

/* ---------- phones (CAL-23) ---------- */
.flow-m, .cta-short { display: none; }
@media (max-width: 859px) {
  /* How it works: below the desktop layout the wide diagram becomes a column (scaled down, its text would shrink to ~5px) */
  .flow-wrap { overflow: visible; }
  .flow { display: none; }
  .flow-m { display: grid; gap: 10px; padding: 20px 16px 18px; }
  .flow-m-h { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
  .flow-m-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .flow-m-list li { display: grid; gap: 3px; padding: 11px 14px; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line-2); }
  .flow-m-list b { font: 500 14px/1.35 var(--f-body); color: var(--fg); }
  .flow-m-list span { font: 400 12px/1.4 var(--f-mono); color: var(--fg-3); }
  .flow-m-core { position: relative; display: grid; justify-items: center; gap: 4px; margin: 18px 0; padding: 18px 16px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); text-align: center; }
  .flow-m-core::before, .flow-m-core::after { content: ""; position: absolute; left: 50%; height: 18px; border-left: 1.5px dashed var(--accent); }
  .flow-m-core::before { top: -19px; } .flow-m-core::after { bottom: -19px; }
  .flow-m-core b { font: 700 18px/1.2 var(--f-display); letter-spacing: -0.02em; }
  .flow-m-core span { font: 400 12px/1.3 var(--f-mono); opacity: .85; }
  .flow-m-eq { display: inline-flex; align-items: center; gap: 4px; height: 26px; margin-bottom: 4px; }
  .flow-m-eq i { width: 4px; height: 22px; border-radius: 2px; background: var(--accent-ink); animation: eq 1.1s ease-in-out infinite; }
  .flow-m-eq i:nth-child(2) { animation-delay: -.3s; } .flow-m-eq i:nth-child(3) { animation-delay: -.6s; } .flow-m-eq i:nth-child(4) { animation-delay: -.15s; } .flow-m-eq i:nth-child(5) { animation-delay: -.45s; }
  .flow-m-note { margin-top: 6px; font: 400 12px/1.5 var(--f-mono); color: var(--fg-3); text-align: center; }
}
@media (max-width: 859px) and (prefers-reduced-motion: reduce) { .flow-m-eq i { animation: none; } }
@media (max-width: 640px) {
  /* header: keep the theme toggle; the button says less */
  .top .theme-btn { display: inline-grid; }
  .brand { padding-block: 6px; }
  .cta-long { display: none; } .cta-short { display: inline; }

  /* tap targets of at least 40px, labels of at least 11px */
  .biz { height: 40px; padding: 0 15px; }
  .fchip { height: 38px; padding: 0 13px; font-size: 13px; }
  .tab { padding: 14px 12px; }
  .sample-tag { font-size: 11px; }
  .act-k { font-size: 11px; }
  footer nav { margin-left: 0; gap: 4px 16px; flex-wrap: wrap; }
  footer nav a, .final-mail a { display: inline-block; padding: 10px 2px; }
}
