/* ==========================================================================
   Cioplaz — design system
   Swiss-minimal: one typeface family, one signal color, hairlines over shadows.
   ========================================================================== */
:root {
  color-scheme: light dark;

  --bg: #fafaf7;
  --bg-2: #f2f1ec;
  --surface: #ffffff;
  --ink: #111110;
  --ink-2: #4f4d48;
  --ink-3: #6b6862;
  --line: #e5e3dd;
  --line-2: #cfccc4;
  --signal: #e2491c;        /* marks, dots, large type */
  --signal-ink: #b43a14;    /* signal used as text: 5.6:1 on --bg */
  --signal-soft: #fbe9e2;
  --ok: #17803d;
  --ok-soft: #e3f3e8;
  --wait: #8a5a00;
  --wait-soft: #fbf0d9;
  --on-ink: #fafaf7;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 11vw, 160px);

  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0c;
    --bg-2: #151514;
    --surface: #171716;
    --ink: #eeeeea;
    --ink-2: #b1afa8;
    --ink-3: #8f8c85;
    --line: #262624;
    --line-2: #3a3936;
    --signal: #ff6a3d;
    --signal-ink: #ff8a64;
    --signal-soft: #2a1710;
    --ok: #4ade80;
    --ok-soft: #10261a;
    --wait: #f5c451;
    --wait-soft: #2a2210;
    --on-ink: #0d0d0c;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-feature-settings: "ss01", "cv11";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; touch-action: manipulation; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[id] { scroll-margin-top: 88px; }

::selection { background: var(--signal); color: #fff; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.8125em; letter-spacing: 0; }
.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; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 100ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 84%, var(--bg)); }
.btn-secondary { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink-3); background: var(--bg-2); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
/* legacy aliases used by legal pages */
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); }

.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color 150ms var(--ease); }
.link:hover { text-decoration-color: var(--ink); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 150ms var(--ease); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.03em; }
.logo-mark { width: 22px; height: 22px; color: var(--ink); }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 14.5px; transition: color 150ms var(--ease), background-color 150ms var(--ease); }
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-cta { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav-cta .btn { min-height: 36px; padding: 0 14px; font-size: 14.5px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: var(--r-sm); background: transparent; border: 1px solid var(--line-2); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    overscroll-behavior: contain;
  }
  .nav.open .nav-links a { min-height: 48px; font-size: 17px; padding: 0 4px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(56px, 8vw, 104px) 0 0; }
.hero-copy { max-width: 820px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 88px); letter-spacing: -0.045em; line-height: 0.98; }
.hero-sub { margin-top: 24px; max-width: 600px; font-size: clamp(18px, 1.7vw, 20px); line-height: 1.5; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* ---------- Product shot ---------- */
.shot-wrap { margin: clamp(56px, 7vw, 88px) 0 0; }
.shot {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgb(0 0 0 / 0.25);
}
.shot-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 12.5px; color: var(--ink-3); }
.shot-dots { display: flex; gap: 6px; }
.shot-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.shot-title { flex: 1; text-align: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-body { display: grid; grid-template-columns: 1fr 380px; min-height: 520px; }

.call { position: relative; display: grid; grid-template-rows: 1fr auto; padding: 16px; gap: 12px; background: var(--bg-2); border-right: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; border-radius: var(--r); background: color-mix(in srgb, var(--ink) 7%, var(--bg-2)); display: grid; place-items: center; min-height: 180px; border: 2px solid transparent; transition: border-color 200ms var(--ease); }
.tile.speaking { border-color: var(--ok); }
.tile-avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; border: 1px solid var(--line); }
.tile-name { position: absolute; left: 10px; bottom: 10px; font-size: 12.5px; padding: 3px 8px; border-radius: 4px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.call-toolbar { display: flex; justify-content: center; gap: 8px; }
.call-toolbar span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.call-toolbar span svg { width: 17px; height: 17px; }
.call-toolbar .leave { background: #d93025; border-color: #d93025; color: #fff; width: 56px; border-radius: 20px; }

.panel { display: flex; flex-direction: column; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: live 1.6s var(--ease) infinite; }
.is-paused .live::before { animation-play-state: paused; }
@keyframes live { 50% { opacity: 0.35; } }

.signals { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.sig { padding: 12px 16px; min-width: 0; }
.sig + .sig { border-left: 1px solid var(--line); }
.sig dt { font-size: 11.5px; color: var(--ink-3); }
.sig dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.transcript { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 180px; }
.tline { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: 13.5px; line-height: 1.45; opacity: 0; transform: translateY(4px); transition: opacity 250ms var(--ease), transform 250ms var(--ease); }
.tline.show { opacity: 1; transform: none; }
.tline time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); padding-top: 2px; font-variant-numeric: tabular-nums; }
.tline b { font-weight: 600; margin-right: 4px; }
.tline.me { color: var(--ink-2); }

.suggest { margin: 0 12px 12px; padding: 14px; border-radius: var(--r); border: 1px solid var(--ink); background: var(--surface); opacity: 0; transform: translateY(4px); transition: opacity 250ms var(--ease), transform 250ms var(--ease); }
.suggest.show { opacity: 1; transform: none; }
.suggest-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.suggest-head strong { color: var(--ink); font-weight: 600; font-size: 12.5px; }
.suggest-text { font-size: 14.5px; line-height: 1.5; min-height: 66px; }
.caret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: live 0.9s steps(1) infinite; }
.suggest-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 5px; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); background: var(--bg); }
.chip kbd { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }

.shot-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.segmented { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.segmented button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font-size: 14px; cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.play { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: color 150ms var(--ease), border-color 150ms var(--ease); }
.play:hover { color: var(--ink); border-color: var(--ink-3); }
.play svg { width: 14px; height: 14px; }
.shot-caption { font-size: 14px; color: var(--ink-3); }

@media (max-width: 900px) {
  .shot-body { grid-template-columns: 1fr; min-height: 0; }
  .call { display: none; }
  .transcript { min-height: 0; }
}
@media (max-width: 480px) {
  .sig { padding: 10px 12px; }
  .sig dd { font-size: 13px; }
  .shot-controls { flex-direction: column; align-items: stretch; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding: 0 8px; }
  .play { justify-content: center; }
}

/* ---------- Platforms ---------- */
.platforms { padding: 56px 0 0; }
.platforms-inner { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 24px; }
.platforms h2 { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); line-height: 1.5; }
.platform-list { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink-2); }
@media (max-width: 700px) { .platforms-inner { grid-template-columns: 1fr; gap: 12px; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section) 0 0; }
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); align-items: end; }
.section-head h2 { grid-column: 1 / span 7; font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.035em; }
.section-head p { grid-column: 8 / span 5; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.section-head.solo h2 { grid-column: 1 / -1; max-width: 16ch; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head h2, .section-head p { grid-column: 1 / -1; }
}
.label { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin-bottom: 20px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 28px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-n { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.step h3 { font-size: 22px; margin: 14px 0 10px; letter-spacing: -0.02em; }
.step p { color: var(--ink-2); }
.vignette { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 16px; font-size: 13.5px; min-height: 148px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); margin-top: 32px; }
}
.v-wave { display: flex; align-items: center; gap: 2px; height: 36px; margin-bottom: 12px; }
.v-wave i { flex: 1; background: var(--ink); border-radius: 1px; opacity: 0.8; }
.v-line { display: flex; gap: 8px; color: var(--ink-2); }
.v-line + .v-line { margin-top: 6px; }
.v-line time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); padding-top: 1px; }
.v-rows { display: grid; gap: 10px; }
.v-row { display: grid; grid-template-columns: 64px 1fr 36px; align-items: center; gap: 10px; font-size: 13px; }
.v-row span:first-child { color: var(--ink-3); }
.v-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.v-bar i { display: block; height: 100%; background: var(--ink); }
.v-row .num { text-align: right; color: var(--ink-2); font-size: 12.5px; }
.v-reply { border: 1px solid var(--ink); border-radius: 8px; padding: 10px 12px; line-height: 1.45; }
.v-reply small { display: block; color: var(--ink-3); font-size: 11.5px; margin-bottom: 4px; }

/* ---------- Profiles (tabs) ---------- */
.profiles { display: grid; grid-template-columns: 280px 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.tablist { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg-2); padding: 8px; gap: 2px; }
.tab { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; text-align: left; padding: 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; transition: background-color 150ms var(--ease); min-width: 0; }
.tab:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.tab[aria-selected="true"] { background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.tab-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--ink-2); }
.tab b { display: block; font-weight: 600; font-size: 14.5px; }
.tab small { display: block; color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabpanel { padding: clamp(20px, 3vw, 36px); display: grid; gap: 24px; align-content: start; }
.tabpanel[hidden] { display: none; }
.field-label { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.instruction { font-family: var(--mono); font-size: 13.5px; line-height: 1.65; padding: 14px 16px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); }
.thread { display: grid; gap: 10px; }
.bubble { max-width: 520px; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.bubble.in { background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; justify-self: start; }
.bubble.out { background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 4px; justify-self: end; }
.bubble-meta { font-size: 12px; color: var(--ink-3); justify-self: end; }
@media (max-width: 820px) {
  .profiles { grid-template-columns: 1fr; }
  .tablist { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .tab { grid-template-columns: 1fr; flex: 1 0 auto; text-align: center; }
  .tab-avatar, .tab small { display: none; }
}

/* ---------- Auto-reply split ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split h2 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.035em; }
.split .lede { margin-top: 20px; color: var(--ink-2); font-size: 17px; }
.modes { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.modes li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.modes b { font-weight: 600; }
.modes span { color: var(--ink-2); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .modes li { grid-template-columns: 1fr; gap: 2px; } }

.inbox { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.inbox-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.inbox-head b { font-weight: 600; }
.inbox-head span { color: var(--ink-3); font-size: 13px; }
.msg { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); align-items: start; }
.msg:last-child { border-bottom: 0; }
.msg-from { font-size: 13px; color: var(--ink-3); }
.msg-from b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.msg-in { font-size: 15px; margin-top: 2px; }
.msg-reply { grid-column: 1 / -1; display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--bg-2); font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.msg-reply::before { content: "↳"; color: var(--ink-3); }
.status { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.status.sent { background: var(--ok-soft); color: var(--ok); }
.status.wait { background: var(--wait-soft); color: var(--wait); }
.msg-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.msg-actions .btn { min-height: 32px; padding: 0 12px; font-size: 13.5px; }

/* ---------- Feature grid ---------- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
.fitem { padding: 24px 0 36px; border-top: 1px solid var(--line); }
.fitem h3 { font-size: 17px; letter-spacing: -0.015em; margin-bottom: 8px; }
.fitem p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .fgrid { grid-template-columns: 1fr; } }

/* ---------- Privacy band ---------- */
.band { background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg); padding: clamp(32px, 6vw, 72px); }
.band h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.035em; max-width: 18ch; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.band-grid div { border-top: 1px solid color-mix(in srgb, var(--on-ink) 22%, transparent); padding-top: 18px; }
.band-grid b { display: block; font-weight: 600; margin-bottom: 6px; }
.band-grid p { color: color-mix(in srgb, var(--on-ink) 72%, transparent); font-size: 15px; }
.band a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--on-ink) 40%, transparent); }
@media (max-width: 760px) { .band-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; max-width: 560px; } }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.plan.featured { border: 1.5px solid var(--ink); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan h3 { font-size: 20px; letter-spacing: -0.02em; }
.plan-flag { font-size: 13px; font-weight: 500; color: var(--signal-ink); }
.plan-desc { margin-top: 8px; color: var(--ink-2); font-size: 15px; min-height: 46px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 28px 0 4px; }
.price b { font-size: 48px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--ink-3); font-size: 15px; }
.price-note { font-size: 13.5px; color: var(--ink-3); }
.plan .btn { margin-top: 24px; }
.quota { margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.quota div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.quota dt { color: var(--ink-2); }
.quota dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.features { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.features li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.features svg { width: 16px; height: 16px; margin-top: 3px; color: var(--ink); }
.features .lead { grid-template-columns: 1fr; color: var(--ink); font-weight: 500; }

.pricing-foot { margin-top: 24px; font-size: 14px; color: var(--ink-3); max-width: 760px; }

.compare-wrap { margin-top: 64px; overflow-x: auto; overscroll-behavior-x: contain; }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14.5px; }
.compare caption { text-align: left; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; padding-bottom: 16px; }
.compare th, .compare td { padding: 12px 16px 12px 0; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-weight: 600; font-size: 14px; border-bottom-color: var(--line-2); }
.compare tbody th { font-weight: 400; color: var(--ink-2); }
.compare td { font-variant-numeric: tabular-nums; }
.compare .no { color: var(--ink-3); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-layout { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 88px); }
.faq-layout h2 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.035em; position: sticky; top: 104px; }
.faq-layout .aside-note { margin-top: 16px; color: var(--ink-2); position: sticky; top: 180px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout h2, .faq-layout .aside-note { position: static; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink-2); }
.faq summary svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); transition: transform 200ms var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 640px; }
.faq a, .prose-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* ==========================================================================
   Final CTA + footer
   ========================================================================== */
.cta { padding: var(--section) 0; }
.cta h2 { font-size: clamp(40px, 6.4vw, 80px); letter-spacing: -0.045em; line-height: 1; max-width: 14ch; }
.cta p { margin-top: 20px; color: var(--ink-2); font-size: 18px; max-width: 520px; }

.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--ink-3); margin-top: 12px; max-width: 300px; }
.footer h4 { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 12px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer ul a { display: inline-flex; min-height: 30px; align-items: center; color: var(--ink-2); transition: color 150ms var(--ease); }
.footer ul a:hover { color: var(--ink); }
.legal-entities { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; color: var(--ink-3); max-width: 900px; }
.legal-entities strong { color: var(--ink-2); font-weight: 500; }
.legal-entities a, .footer-bottom a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; font-size: 13px; color: var(--ink-3); }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.kicker { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; }
.legal-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; }
.legal-hero p { color: var(--ink-3); margin-top: 12px; font-size: 14.5px; }
.legal-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 28px; }
.legal-tabs a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); border: 1px solid var(--line); transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.legal-tabs a:hover:not([aria-current]) { background: var(--bg-2); color: var(--ink); }
.legal-tabs a[aria-current="page"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding: 56px var(--gutter) 88px; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: 24px; } .toc { position: static !important; } }
.toc { position: sticky; top: 96px; align-self: start; }
.toc h2 { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 10px; letter-spacing: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.toc a { display: block; padding: 5px 0; font-size: 14px; color: var(--ink-3); transition: color 150ms var(--ease); }
.toc a:hover { color: var(--ink); }
.prose { max-width: 700px; color: var(--ink-2); }
.prose section + section { margin-top: 48px; }
.prose h2 { font-size: 24px; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.02em; }
.prose h3 { font-size: 17px; color: var(--ink); margin: 24px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 20px; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; border-bottom-color: var(--line-2); }
.callout { padding: 14px 16px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); margin: 16px 0; font-size: 15px; color: var(--ink); }
.callout.warn { background: var(--wait-soft); border-color: color-mix(in srgb, var(--wait) 30%, transparent); }

/* ==========================================================================
   Auth pages
   ========================================================================== */
.auth { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.auth-top { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.auth-top a.link-muted { font-size: 14.5px; color: var(--ink-2); }
.auth-top a.link-muted:hover { color: var(--ink); }
.auth-main { display: grid; place-items: center; padding: 40px 0 64px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 32px; letter-spacing: -0.035em; }
.auth-card .sub { margin-top: 10px; color: var(--ink-2); }
.form { display: grid; gap: 18px; margin-top: 32px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field .hint { font-size: 13px; color: var(--ink-3); }
.input-wrap { position: relative; }
.input {
  width: 100%; height: 44px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 16px;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-3); }
.input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 14%, transparent); }
.input[aria-invalid="true"] { border-color: #c2331b; }
.input-wrap .input { padding-right: 64px; }
.reveal-btn { position: absolute; right: 4px; top: 4px; height: 36px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.reveal-btn:hover { color: var(--ink); background: var(--bg-2); }
.field-error { font-size: 13.5px; color: #c2331b; min-height: 0; }
@media (prefers-color-scheme: dark) { .field-error { color: #ff8a70; } .input[aria-invalid="true"] { border-color: #ff8a70; } }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.form-alert { padding: 12px 14px; border-radius: var(--r-sm); background: var(--signal-soft); color: var(--signal-ink); font-size: 14px; }
.form-alert:empty { display: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.auth-alt { margin-top: 24px; font-size: 14.5px; color: var(--ink-2); }
.auth-foot { padding: 24px 0; font-size: 13px; color: var(--ink-3); display: flex; gap: 16px; flex-wrap: wrap; }
.auth-foot a:hover { color: var(--ink); }

/* ==========================================================================
   Dashboard
   ========================================================================== */
.dash-top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.dash-top .nav-inner { height: 60px; }
.dash-user { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 14px; color: var(--ink-2); min-width: 0; }
.dash-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-user .btn { min-height: 34px; padding: 0 12px; font-size: 14px; }
.dash { padding: 48px 0 96px; }
.dash h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.035em; }
.dash .sub { margin-top: 8px; color: var(--ink-2); }
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; min-width: 0; }
.card h2 { font-size: 16px; letter-spacing: -0.01em; }
.card .card-sub { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.c-plan { grid-column: span 5; display: flex; flex-direction: column; }
.c-usage { grid-column: span 7; }
.c-steps { grid-column: span 7; }
.c-account { grid-column: span 5; }
@media (max-width: 900px) { .c-plan, .c-usage, .c-steps, .c-account { grid-column: 1 / -1; } }
.plan-name { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; margin-top: 16px; }
.c-plan .btn { margin-top: auto; align-self: flex-start; }
.c-plan p.muted { margin: 8px 0 24px; color: var(--ink-2); font-size: 14.5px; }
.meters { display: grid; gap: 18px; margin-top: 20px; }
.meter-row { display: grid; gap: 8px; }
.meter-head { display: flex; justify-content: space-between; font-size: 14px; }
.meter-head span:last-child { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.meter-bar { height: 6px; border-radius: 3px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.todo { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.todo li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.todo li:last-child { border-bottom: 0; }
.todo .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.todo .done .dot { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.todo .dot svg { width: 11px; height: 11px; }
.todo .done b { text-decoration: line-through; text-decoration-color: var(--ink-3); color: var(--ink-3); font-weight: 500; }
.todo b { font-weight: 500; }
.todo small { display: block; color: var(--ink-3); font-size: 13px; }
.todo a { font-size: 13.5px; }
.kv { margin: 16px 0 0; display: grid; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.skeleton { color: transparent !important; background: var(--bg-2); border-radius: 4px; }
.field-error:empty { display: none; }

/* ==========================================================================
   Checkout
   ========================================================================== */
.back-link { display: inline-flex; min-height: 32px; align-items: center; font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.back-link:hover { color: var(--ink); }
.checkout { display: grid; grid-template-columns: 7fr 5fr; gap: 16px; margin-top: 32px; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.plan-pick { border: 0; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.pick { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color 150ms var(--ease), background-color 150ms var(--ease); }
.pick:hover { border-color: var(--ink-3); }
.pick:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pick:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.pick span { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pick b { font-weight: 600; }
.pick small { color: var(--ink-2); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.totals { margin-top: 20px; border-top: 1px solid var(--line-2); }
.totals .total dt, .totals .total dd { color: var(--ink); font-weight: 600; }
.fine { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.co-pay { position: sticky; top: 84px; }
@media (max-width: 900px) { .co-pay { position: static; } }
.pay-pending { margin: 16px 0; padding: 28px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--bg-2); text-align: center; }
.pay-pending h3 { font-size: 17px; letter-spacing: -0.015em; margin-top: 12px; }
.pay-pending p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.pay-pending .fine { font-size: 13px; }
.pending-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--wait); animation: live 1.6s var(--ease) infinite; }
