/* VoiceReach landing system — v2
   One typeface, one accent, warm cream canvas, ink text.
   No gradients, no glows, no blurred decoration. */

/* ---------- Tokens ---------- */
:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ink: #1f2430;
  --ink-strong: #12161f;
  --cream: #fdfbf7;
  --paper: #ffffff;
  --sand: #f2ece3;
  --butter: #fff3d4;
  --blush: #ffe3dd;
  --mist: #e8ecf4;

  --text: #1f2430;
  --text-2: #555c69;
  --text-3: #6f7784;

  --coral: #ff6f61;
  --coral-ink: #a53226;
  --amber-ink: #8a5a12;

  --line: rgba(31, 36, 48, 0.12);
  --line-strong: rgba(31, 36, 48, 0.22);

  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(18, 22, 31, 0.06);
  --shadow-2: 0 24px 60px -36px rgba(18, 22, 31, 0.45);

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 80px;
  --sp-10: 104px;
  --sp-11: 128px;

  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --ink: #f4f1ea;
  --ink-strong: #ffffff;
  --cream: #0e121a;
  --paper: #151a24;
  --sand: #1c222e;
  --butter: #2b2618;
  --blush: #33211f;
  --mist: #1a2230;

  --text: #f4f1ea;
  --text-2: #b8bfca;
  --text-3: #99a1ae;

  --coral: #ff8a7a;
  --coral-ink: #ffb3a9;
  --amber-ink: #f0c27b;

  --line: rgba(244, 241, 234, 0.14);
  --line-strong: rgba(244, 241, 234, 0.26);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 24px 60px -32px rgba(0, 0, 0, 0.7);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img, svg { display: block; max-width: 100%; }

button { font: inherit; color: inherit; }

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
}

::selection { background: var(--blush); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: var(--r-s);
  font-weight: 600;
  transform: translateY(-80px);
  transition: transform 140ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.band {
  border-top: 1px solid var(--line);
  padding-block: clamp(64px, 9vw, var(--sp-11));
}
.band--paper { background: var(--paper); }
.band--sand { background: var(--sand); }
.band--ink {
  background: var(--ink-strong);
  color: var(--cream);
  border-top-color: transparent;
}
.band--ink h2, .band--ink h3, .band--ink strong { color: var(--cream); }
.band--ink .lead, .band--ink p { color: rgba(253, 251, 247, 0.78); }

.section-head {
  display: grid;
  gap: var(--sp-3);
  max-width: 640px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head--wide { max-width: 760px; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.005em;
}
.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text-2);
}
.muted { color: var(--text-2); }
.small { font-size: 0.875rem; line-height: 1.55; color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms var(--ease), background-color 140ms var(--ease),
    border-color 140ms var(--ease), color 140ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--ink-strong); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--paper); border-color: var(--ink); }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  padding-inline: 4px;
  min-height: 40px;
}
.btn-quiet:hover { color: var(--coral-ink); }

.band--ink .btn-primary { background: var(--cream); color: var(--ink-strong); }
.band--ink .btn-secondary { color: var(--cream); border-color: rgba(253, 251, 247, 0.32); }
.band--ink .btn-secondary:hover { background: rgba(253, 251, 247, 0.08); border-color: var(--cream); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 140ms var(--ease), color 140ms var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 160ms var(--ease); }
.link-arrow:hover { color: var(--coral-ink); border-color: var(--coral); }
.link-arrow:hover svg { transform: translateX(3px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand svg { width: 26px; height: 26px; border-radius: 7px; }
.brand-word {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 12px;
}
.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding-block: 8px;
  border-bottom: 2px solid transparent;
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--coral); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-signin {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 12px;
  color: var(--text-2);
}
.header-signin:hover { color: var(--ink); }

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--text-2);
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }

.menu-btn { display: none; }

/* Mobile nav */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 16px var(--gutter) 24px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav nav { display: grid; gap: 2px; margin-bottom: 16px; }
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-nav .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy .lead { max-width: 48ch; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.hero-note svg { width: 16px; height: 16px; color: var(--coral-ink); flex: none; }

.hero-stage {
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(20px, 4vw, 40px);
  display: grid;
  justify-items: center;
  min-width: 0;
}

/* ---------- Call demo ---------- */
.call-card {
  width: min(100%, 400px);
  min-width: 0;
  max-width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.call-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.call-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: none;
}
.call-meta { display: grid; gap: 1px; min-width: 0; }
.call-name { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.call-sub {
  font-size: 0.75rem;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
}
.call-timer {
  margin-left: auto;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}

.call-body {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
  min-height: 248px;
  align-content: start;
}

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
  animation: bubble-in 260ms var(--ease) both;
}
.bubble + .bubble { animation-delay: 80ms; }
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.bubble--caller {
  background: var(--sand);
  color: var(--ink);
  border-bottom-left-radius: 6px;
  justify-self: start;
}
.bubble--vii {
  background: var(--ink);
  color: var(--cream);
  border-bottom-right-radius: 6px;
  justify-self: end;
}
.bubble-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.68;
  margin-bottom: 3px;
}

.call-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 22px;
}
.call-wave span {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--coral);
  transform-origin: center;
  opacity: 0.55;
}
.is-playing .call-wave span {
  animation: wave 900ms var(--ease) infinite alternate;
}
.call-wave span:nth-child(2n) { animation-delay: -300ms; }
.call-wave span:nth-child(3n) { animation-delay: -600ms; }
@keyframes wave {
  from { transform: scaleY(0.8); opacity: 0.4; }
  to { transform: scaleY(3.4); opacity: 0.9; }
}

.call-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}
.call-hint { font-size: 0.75rem; color: var(--text-2); margin-left: auto; }

/* Scene chooser */
.scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  justify-content: center;
}
.scene-btn {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--text-2);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms var(--ease), color 120ms var(--ease),
    border-color 120ms var(--ease);
}
.scene-btn:hover { border-color: var(--ink); color: var(--ink); }
.scene-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ---------- Generic grids ---------- */
.grid {
  display: grid;
  gap: 16px;
}
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 0.9375rem; }

.tile {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.tile--butter { background: var(--butter); }
.tile--blush { background: var(--blush); }
.tile--sand { background: var(--sand); }
.tile--mist { background: var(--mist); }
.tile p { color: var(--text-2); font-size: 0.9375rem; }

.example-line {
  display: block;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: var(--r-s);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink);
}
.tile--sand .example-line { background: color-mix(in srgb, var(--paper) 82%, transparent); }

/* Two-column feature */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split--reverse .split-visual { order: -1; }
.split > * { min-width: 0; }
.split-copy { display: grid; gap: 16px; justify-items: start; }
.split-copy .lead { max-width: 46ch; }
.split-visual { min-width: 0; overflow-x: clip; }

.grid > * { min-width: 0; }
.code-card { width: 100%; overflow: hidden; }
.code-card pre { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; }

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.check-list svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--coral-ink);
}
.check-list strong { color: var(--ink); font-weight: 600; }

/* ---------- Segmented tabs ---------- */
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.segmented button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-1);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Channel example */
.channel-example {
  margin-top: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(20px, 4vw, 36px);
}
.thread {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin-inline: auto;
}
.thread-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  margin-bottom: 4px;
}
.msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.msg--in { background: var(--sand); color: var(--ink); justify-self: start; border-bottom-left-radius: 6px; }
.msg--out { background: var(--ink); color: var(--cream); justify-self: end; border-bottom-right-radius: 6px; }
.msg--meta {
  justify-self: center;
  background: transparent;
  color: var(--text-2);
  font-size: 0.75rem;
  padding: 2px;
}

/* ---------- Day timeline ---------- */
.day {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.day-list { display: grid; gap: 8px; }
.day-btn {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: var(--r-m);
  background: transparent;
  cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease);
}
.day-btn:hover { background: color-mix(in srgb, var(--paper) 60%, transparent); }
.day-btn[aria-selected="true"] {
  background: var(--paper);
  border-color: var(--line);
  box-shadow: var(--shadow-1);
}
.day-time {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  font-weight: 600;
}
.day-title { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.day-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(24px, 4vw, 40px);
  min-height: 260px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.day-card .bubble { max-width: 100%; justify-self: stretch; }
.day-card .bubble--vii { justify-self: stretch; }

/* ---------- Business flow ---------- */
.flow {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--paper);
  overflow: hidden;
}
.flow-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.flow-step:last-child { border-bottom: 0; }
.flow-num {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  background: var(--sand);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}
.flow-step h3 { font-size: 1rem; margin-bottom: 3px; }
.flow-step p { font-size: 0.9375rem; color: var(--text-2); }

/* ---------- Command table ---------- */
.commands {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.commands th,
.commands td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.commands th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
}
.commands td:first-child {
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 600;
}
.commands tr:last-child td { border-bottom: 0; }
.commands-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--paper);
  overflow-x: auto;
}

/* ---------- Code ---------- */
.code-card {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--ink-strong);
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(253, 251, 247, 0.12);
}
.code-tab {
  border: 0;
  background: transparent;
  color: rgba(253, 251, 247, 0.62);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  cursor: pointer;
}
.code-tab[aria-selected="true"] { background: rgba(253, 251, 247, 0.12); color: var(--cream); }
.code-copy {
  margin-left: auto;
  border: 1px solid rgba(253, 251, 247, 0.18);
  background: transparent;
  color: rgba(253, 251, 247, 0.78);
  border-radius: var(--r-xs);
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.code-card pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: #e9e6df;
  line-height: 1.65;
  font-size: 0.8125rem;
}
.code-pane { display: none; }
.code-pane.is-active { display: block; }
.tok-key { color: #ffb3a9; }
.tok-str { color: #cfe3b8; }
.tok-com { color: #9aa3b2; }

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
  max-width: 780px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text-2);
  transition: transform 160ms var(--ease);
}
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p {
  padding: 0 0 18px;
  max-width: 64ch;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* ---------- Quotes / statements ---------- */
.statement {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 22ch;
  color: var(--ink);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.fact {
  padding: 28px 24px 0 0;
  display: grid;
  gap: 6px;
  align-content: start;
}
.fact strong {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fact span { font-size: 0.875rem; color: var(--text-2); max-width: 26ch; }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.cta-band .btn-row { justify-content: flex-end; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding-block: 56px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand .brand { text-decoration: none; }
.footer-brand p { font-size: 0.875rem; color: var(--text-2); max-width: 30ch; }
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
}
.footer-col a:hover { color: var(--coral-ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-2);
}

/* ---------- Legal / prose ---------- */
.page-head {
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px);
}
.page-head h1 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.page-head .lead { max-width: 60ch; margin-top: 14px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-2);
  margin-bottom: 18px;
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs svg { width: 12px; height: 12px; }

.prose {
  max-width: 72ch;
  padding-bottom: clamp(48px, 7vw, 96px);
}
.prose h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  letter-spacing: -0.015em;
  margin: 40px 0 10px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.0625rem;
  margin: 24px 0 8px;
}
.prose p,
.prose li {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
}
.prose p + p { margin-top: 12px; }
.prose ul,
.prose ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--coral-ink); }
.prose code {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 1px 5px;
  color: var(--ink);
}
.prose > *:first-child { margin-top: 0; }
.legal-meta {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 8px;
}
.help-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 22px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.help-card h3 { font-size: 1rem; }
.help-card p { font-size: 0.9375rem; color: var(--text-2); }

/* ---------- Small utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 32px; }
.mt-8 { margin-top: 48px; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 8px; }
.center { text-align: center; justify-items: center; }
.max-60 { max-width: 60ch; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-signin { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { justify-items: stretch; }
  .hero-copy h1,
  .hero-copy .lead,
  .split-copy h2,
  .split-copy .lead { max-width: 100%; }
  .hero-stage { width: 100%; max-width: 560px; justify-self: start; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-copy { justify-items: stretch; }
  .split--reverse .split-visual { order: 0; }
  .day { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr; }
  .fact { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .grid--4, .grid--3, .grid--2, .grid--auto { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .bubble, .msg { max-width: 94%; }
  .day-btn { grid-template-columns: 64px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .header-actions .btn-primary { display: none; }
  .call-body { min-height: 220px; }
  .code-card pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}

@media (max-width: 420px) {
  .btn { width: 100%; }
  .btn-row { width: 100%; }
  .header-actions .btn { width: auto; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding-inline: 10px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bubble { animation: none; }
  .is-playing .call-wave span { animation: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(31, 36, 48, 0.34); --text-2: #3f4652; }
  [data-theme="dark"] { --line: rgba(244, 241, 234, 0.4); --text-2: #d5dae2; }
  .card, .tile, .call-card, .channel-example, .flow { border-width: 2px; }
}

/* Print: legal pages */
@media print {
  .site-header, .site-footer, .btn-row, .breadcrumbs { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
}
