/* DentVoice landing page — dark theme only. Tokens from the DentVoice design system (dark values). */
:root {
  --surface: #0d1110;
  --surface-raised: #141a18;
  --surface-muted: #1c2220;
  --border: #242b29;
  --ink: #eef2f7;
  --ink-muted: #8d9692;
  --brand: #a78bfa;
  --on-brand: #0d1110;
  --brand-hover: #c4b5fd;
  --brand-soft: rgba(167, 139, 250, 0.14);
  --on-brand-soft: #c4b5fd;
  --brand-deep: #7c3aed;
  --accent-sky: #5bc4ed;
  --ring: rgba(167, 139, 250, 0.4);
  --success: #3ecf8e;
  --success-soft: rgba(62, 207, 142, 0.12);
  --chart-1: #8b5cf6;
  --chart-2: #1a9fd5;
  --chart-3: #a8893a;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 6px; --r-md: 8px; --r-lg: 10px; --r-xl: 14px; --r-2xl: 18px;
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
  --shadow-brand: 0 2px 6px -1px rgba(167, 139, 250, 0.35);
  --container: 1120px;
  --gutter: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 24px;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
button { font-family: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 0; box-shadow: 0 0 0 1px var(--brand); border-radius: var(--r-md); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--brand); color: var(--on-brand); border-radius: var(--r-md); z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-weight: 500; }
.small { font-size: 12px; line-height: 16px; }
.muted { color: var(--ink-muted); }
.accent { color: var(--brand); }
.strong { color: var(--ink); }
.eyebrow, .label-caps { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { color: var(--brand); }
.label-caps { color: var(--ink-muted); }
.label-caps.accent { color: var(--brand); }
h1 { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 60ch; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon.xs { width: 12px; height: 12px; stroke-width: 2.25; }
.tile { width: 40px; height: 40px; border-radius: var(--r-lg); background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.muted-tile { background: var(--surface-muted); color: var(--ink-muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-md); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background 150ms, color 150ms, border-color 150ms; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-muted); color: var(--ink); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; line-height: 24px; box-shadow: var(--shadow-brand); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--brand); font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; }
.link-btn:hover { color: var(--brand-hover); }
.link-btn .icon { width: 16px; height: 16px; }
.tel { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 500; text-decoration: none; }
.tel.inline { gap: 6px; }
.tel .icon { width: 18px; height: 18px; }
.panel { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 16px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-sm); background: var(--surface-muted); color: var(--ink); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.badge-brand { background: var(--brand-soft); color: var(--on-brand-soft); }
.badge-ok { background: var(--success-soft); color: var(--success); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface-raised); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo img { width: 180px; height: 40px; }
.nav { display: none; }
.menu-btn { width: 44px; height: 44px; border-radius: var(--r-md); background: transparent; border: 1px solid var(--border); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.nav.is-open { display: flex; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 4px; padding: 12px var(--gutter) 16px; background: var(--surface-raised); border-bottom: 1px solid var(--border); }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 500; }
.nav.is-open a { padding: 12px 4px; }
.nav a:hover { color: var(--brand); }
.nav .nav-cta { color: var(--on-brand); }
.nav.is-open .nav-cta { margin-top: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0; }
.glow { position: absolute; pointer-events: none; border-radius: 50%; width: 560px; height: 560px; left: 50%; top: 60px; transform: translateX(-30%);
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.36), rgba(91, 196, 237, 0.10) 58%, rgba(13, 17, 16, 0) 100%); }
.hero-grid { position: relative; display: grid; gap: 32px; }
.hero-grid > *, .busy-grid > *, .outcomes > *, .charts > *, .faq-grid > * { min-width: 0; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; }
.hero-copy .tel { font-size: 16px; }
.hero-actions { display: flex; gap: 12px; }
.hero-actions .btn { height: 48px; padding: 0 24px; font-size: 16px; line-height: 24px; }

.player { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: 12px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-md); }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.callers { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 2px 12px; scrollbar-width: none; }
.callers::-webkit-scrollbar { display: none; }
.caller { flex: 0 0 200px; scroll-snap-align: start; text-align: left; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); color: var(--ink); cursor: pointer; transition: border-color 150ms, background 150ms; }
.caller:hover { border-color: var(--ink-muted); }
.caller.is-active { border-color: var(--brand); background: rgba(167, 139, 250, 0.10); }
.caller-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.caller .tile { width: 32px; height: 32px; border-radius: var(--r-md); }
.caller .tile .icon { width: 16px; height: 16px; }
.caller-title { display: block; font-size: 15px; line-height: 22px; font-weight: 600; margin-top: 8px; }
.caller-sub { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

.transcript { height: 224px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.line { display: none; flex-direction: column; gap: 4px; }
.line.is-shown { display: flex; animation: line-in 300ms var(--ease); }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.line.caller { align-items: flex-start; }
.line.voice { align-items: flex-end; }
.line .who { font-size: 12px; line-height: 16px; color: var(--ink-muted); padding: 0 4px; }
.line p { max-width: 85%; padding: 10px 14px; border-radius: var(--r-lg); font-size: 14px; line-height: 20px; }
.line.caller p { background: var(--surface-muted); }
.line.voice p { background: var(--brand-soft); }
.line.whisper { align-items: flex-end; }
.line.whisper p { background: transparent; border: 1px dashed var(--border); color: var(--ink-muted); }
.line.chip { align-items: center; }
.chip-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 9999px; background: var(--brand-soft); color: var(--on-brand-soft); font-size: 12px; line-height: 16px; font-weight: 600; }
.chip-pill .icon { width: 12px; height: 12px; stroke-width: 2.25; }

.controls { display: flex; align-items: center; gap: 12px; }
.play { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--on-brand); border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.play:hover { background: var(--brand-hover); }
.play svg { width: 16px; height: 16px; fill: currentColor; }
.play .icon-pause { display: none; }
.play.is-playing .icon-play { display: none; }
.play.is-playing .icon-pause { display: block; }
.time { white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]:focus { outline: none; }
.scrub { flex-grow: 1; height: 24px; }
.scrub::-webkit-slider-runnable-track { height: 6px; border-radius: 9999px; background: linear-gradient(90deg, var(--brand) var(--fill, 0%), var(--border) var(--fill, 0%)); }
.scrub::-moz-range-track { height: 6px; border-radius: 9999px; background: var(--border); }
.scrub::-moz-range-progress { height: 6px; border-radius: 9999px; background: var(--brand); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -4px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface-raised); }
.scrub::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface-raised); }
.scrub:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--ring); }
.scrub:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--ring); }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin-bottom: 24px; }

/* three calls */
.busy-grid { display: grid; gap: 16px; }
.panel .label-caps { display: block; margin-bottom: 12px; }
.calls { display: flex; flex-direction: column; gap: 10px; }
.call { position: relative; display: grid; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); min-height: 64px; }
.call > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 12px; }
.call-conn { justify-content: space-between; }
.call-conn > .call-text { flex-grow: 1; }
.call-text { display: flex; flex-direction: column; gap: 2px; }
.call-title { font-size: 14px; line-height: 20px; font-weight: 600; }
.call-sub { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ring-icon, .conn-icon, .vm-icon { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ring-icon .icon, .conn-icon .icon, .vm-icon .icon { width: 16px; height: 16px; }
.ring-icon { background: var(--brand-soft); color: var(--brand); }
.conn-icon { background: var(--brand); color: var(--on-brand); }
.vm-icon { background: var(--surface-muted); color: var(--ink-muted); }
.reason { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--on-brand-soft); font-size: 12px; line-height: 16px; font-weight: 600; text-align: right; max-width: 46%; }
.caption { margin-top: 12px; font-weight: 600; color: var(--ink-muted); }
.caption.strong { color: var(--ink); }
.replay-row { display: flex; justify-content: flex-end; margin-top: 16px; min-height: 20px; }

/* Three-calls sequence. Base styles = END state (what reduced-motion and finished show). */
.call-ring { opacity: 0; }
.call-conn, .call-vm { opacity: 1; }
[data-fate="voicemail"] { opacity: 0.5; }
[data-fate="voicemail"] .call-title { color: var(--ink-muted); }
.ring-count { opacity: 1; }
.reason { opacity: 1; }
.caption { opacity: 1; }
/* Before it runs: everything ringing. */
[data-busy].is-armed .call-ring { opacity: 1; }
[data-busy].is-armed .call-conn, [data-busy].is-armed .call-vm { opacity: 0; }
[data-busy].is-armed [data-fate="voicemail"] { opacity: 1; }
[data-busy].is-armed .ring-count, [data-busy].is-armed .reason, [data-busy].is-armed .caption { opacity: 0; }
/* Running: 6s timeline. */
@keyframes ringOut { 0%, 16.6% { opacity: 1; } 16.7%, 100% { opacity: 0; } }
@keyframes connIn { 0%, 16.6% { opacity: 0; } 16.7%, 100% { opacity: 1; } }
@keyframes ringLong { 0%, 83.2% { opacity: 1; } 83.3%, 100% { opacity: 0; } }
@keyframes counterIn { 0%, 58.2% { opacity: 0; } 58.3%, 100% { opacity: 1; } }
@keyframes vmIn { 0%, 83.2% { opacity: 0; } 83.3%, 100% { opacity: 1; } }
@keyframes greyIn { 0%, 83.2% { opacity: 1; } 83.3%, 100% { opacity: 0.5; } }
@keyframes reasonIn { 0%, 41.6% { opacity: 0; } 41.7%, 100% { opacity: 1; } }
@keyframes capIn { 0%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
[data-busy].is-running [data-fate="connect"] .call-ring { animation: ringOut 6s linear both; }
[data-busy].is-running [data-fate="connect"] .call-conn { animation: connIn 6s linear both; }
[data-busy].is-running [data-fate="voicemail"] .call-ring { animation: ringLong 6s linear both; }
[data-busy].is-running [data-fate="voicemail"] .call-vm { animation: vmIn 6s linear both; }
[data-busy].is-running [data-fate="voicemail"] { animation: greyIn 6s linear both; }
[data-busy].is-running .ring-count { animation: counterIn 6s linear both; }
[data-busy].is-running .reason { animation: reasonIn 6s linear both; }
[data-busy].is-running .caption { animation: capIn 6s linear both; }
[data-busy].is-running .pulse { animation: pulse 1s ease-in-out 6; }

/* clock */
.clock-panel { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.bubble-row { position: relative; height: 36px; }
.bubble { position: absolute; left: var(--x, 50%); top: 0; transform: translateX(-50%); display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--r-sm); background: var(--brand); color: var(--on-brand); font-size: 14px; line-height: 20px; white-space: nowrap; }
.track-wrap { position: relative; height: 48px; }
.track { position: absolute; left: 12px; right: 12px; top: 18px; height: 12px; border-radius: 9999px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.seg { position: absolute; top: 0; bottom: 0; }
.seg.open { background: rgba(167, 139, 250, 0.28); }
.seg.lunch { background: repeating-linear-gradient(135deg, rgba(167, 139, 250, 0.28) 0 3px, transparent 3px 6px); }
.clock-range { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 48px; }
.clock-range::-webkit-slider-runnable-track { height: 48px; background: transparent; }
.clock-range::-moz-range-track { height: 48px; background: transparent; }
.clock-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: 12px; border-radius: 50%; background: var(--brand); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--brand); }
.clock-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--brand); }
.clock-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--brand), 0 0 0 4px var(--ring); }
.clock-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--brand), 0 0 0 4px var(--ring); }
.ring-marker { position: absolute; left: var(--x, 50%); top: -14px; transform: translate(-50%, 0); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); opacity: 0; pointer-events: none; }
.ring-marker .icon { width: 14px; height: 14px; }
@keyframes ringPop { 0% { opacity: 0; transform: translate(-50%, 4px) scale(0.8); } 30% { opacity: 1; transform: translate(-50%, -2px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -10px) scale(1); } }
.ring-marker.is-ringing { animation: ringPop 600ms var(--ease) both; }
.hint { position: absolute; left: var(--x, 50%); top: 48px; transform: translateX(-50%); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--brand); white-space: nowrap; pointer-events: none; }
@keyframes hintPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hint:not([hidden]) { animation: hintPulse 1.4s ease-in-out infinite; }
.ticks { display: flex; justify-content: space-between; padding: 12px 4px 0; font-size: 11px; }
.ticks span:nth-child(even) { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.legend span, .legend-list li span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.open { background: rgba(167, 139, 250, 0.28); }
.sw.lunch { background: repeating-linear-gradient(135deg, rgba(167, 139, 250, 0.28) 0 3px, transparent 3px 6px); border: 1px solid var(--border); }
.sw.closed { background: var(--surface); border: 1px solid var(--border); }
.outcomes { display: grid; gap: 12px; }
.outcome { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-xl); min-height: 96px; }
.outcome-dv { background: var(--surface-raised); }
.outcome > div { display: flex; flex-direction: column; gap: 4px; }
.outcome-status { font-size: 18px; line-height: 26px; }
.outcome .fade { transition: opacity 150ms; }
.outcome.is-changing .fade { opacity: 0; }

/* dashboard */
.browser { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.browser-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.url { flex-grow: 1; max-width: 360px; height: 24px; display: flex; align-items: center; padding: 0 10px; border-radius: var(--r-sm); background: var(--surface-raised); border: 1px solid var(--border); }
.browser-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash-title { font-size: 18px; line-height: 26px; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.kpi .small { display: inline-flex; align-items: center; gap: 4px; }
.kpi-val { font-size: 24px; line-height: 30px; }
.charts { display: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.chart-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.chart-title { font-size: 14px; line-height: 20px; font-weight: 600; }
.line-chart { width: 100%; height: auto; display: block; }
.line-chart .grid line { stroke: var(--border); stroke-width: 1; }
.line-chart text { font-family: var(--mono); font-size: 11px; fill: var(--ink-muted); }
.line-chart .grid text { text-anchor: end; }
.line-chart .series { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line-chart .end { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.line-chart .end-label { fill: var(--ink); font-size: 12px; font-weight: 500; }
.stack { display: flex; gap: 2px; }
.stack span { height: 14px; border-radius: 4px; }
.s1 { background: var(--chart-1); } .s2 { background: var(--chart-2); } .s3 { background: var(--chart-3); }
.legend-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; }
.legend-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.calls-table { width: 100%; border-collapse: collapse; }
.calls-table caption { text-align: left; padding: 12px 12px 4px; font-size: 14px; line-height: 20px; font-weight: 600; }
.calls-table th { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); text-align: left; padding: 8px 12px; }
.calls-table td { padding: 10px 12px; border-top: 1px solid var(--border); font-size: 14px; line-height: 20px; vertical-align: middle; }
.calls-table .num { text-align: right; }
.calls-table th:nth-child(4), .calls-table td:nth-child(4) { display: none; }
.calls-table tr { transition: background 600ms var(--ease); }
.calls-table tr.is-hl { background: rgba(167, 139, 250, 0.16); }
.calls-table tr.hl-settled { background: rgba(167, 139, 250, 0.06); }

/* cta */
.cta-band { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 40px 24px; background: rgba(167, 139, 250, 0.10); border: 1px solid rgba(167, 139, 250, 0.25); border-radius: var(--r-2xl); }
.cta-band .btn { width: 100%; }

/* faq */
.faq-grid { display: grid; gap: 20px; }
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item h3 button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; background: transparent; border: 0; text-align: left; font: inherit; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); cursor: pointer; }
.faq-item h3 button:hover { color: var(--brand-hover); }
.faq-item .chev { color: var(--brand); transition: transform 150ms; }
.faq-item h3 button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 32px 16px 0; color: var(--ink-muted); max-width: 65ch; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-raised); padding: 40px 0; }
.footer-top { display: flex; flex-direction: column; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-nav a { color: var(--ink); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 500; }
.footer-nav a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; line-height: 20px; }
.footer-bottom a { text-decoration: none; font-weight: 500; }

/* ---------- desktop ---------- */
@media (min-width: 640px) {
  h1 { font-size: 56px; line-height: 60px; }
  h2 { font-size: 40px; line-height: 44px; }
  .section { padding: 64px 0; }
  .section-head { gap: 12px; margin-bottom: 32px; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .kpi { padding: 16px; }
  .kpi-val { font-size: 28px; line-height: 34px; }
  .charts { display: grid; }
  .browser-body { padding: 24px; gap: 24px; }
  .calls-table th:nth-child(4), .calls-table td:nth-child(4) { display: table-cell; }
  .calls-table td, .calls-table th { padding: 12px 16px; }
  .cta-band { padding: 64px 48px; gap: 24px; }
  .cta-band .btn { width: auto; }
  .ticks span:nth-child(even) { display: inline; }
  .ticks { font-size: 12px; }
  .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .outcome { padding: 24px; gap: 16px; min-height: 128px; }
  .outcome-status { font-size: 20px; line-height: 28px; }
  .clock-panel { padding: 24px 24px 20px; margin-bottom: 32px; }
  .panel { padding: 20px; }
  .busy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .calls { gap: 12px; }
  .reason { white-space: nowrap; max-width: none; }
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 32px; padding-top: 24px; }
  .faq-a { padding-bottom: 20px; }
  .faq-item h3 button { padding: 20px 4px; font-size: 20px; line-height: 28px; }
}
@media (min-width: 900px) {
  .header-row { height: 72px; }
  .logo img { width: 196px; height: 44px; }
  .menu-btn { display: none; }
  .nav { display: flex; align-items: center; gap: 32px; }
  .nav .nav-login { margin-left: auto; }
  .nav .nav-cta { margin-left: -8px; }
  .hero { padding: 64px 0; }
  .glow { width: 1000px; height: 1000px; left: auto; right: -200px; top: -120px; transform: none; }
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
  .hero-copy { gap: 24px; }
  .hero-copy .tel { font-size: 18px; }
  .player { padding: 20px; gap: 16px; }
  .callers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .caller { flex: none; padding: 14px; }
  .caller-title { font-size: 16px; line-height: 24px; margin-top: 10px; }
  .caller-sub { font-size: 14px; line-height: 20px; }
  .transcript { padding: 16px; }
  .line p { max-width: 360px; }
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
  .faq-grid .section-head { margin-bottom: 0; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .nav { gap: 20px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .line.is-shown { animation: none; }
  .hint:not([hidden]) { animation: none !important; }
}
