/* dabadata public site - shared by every page in www/.
   Body: the system stack. Headings: Instrument Serif. Numbers and code: JetBrains Mono.
   The header, dark heroes, code blocks, CTA band and footer are always dark;
   everything else follows prefers-color-scheme, unless the Theme control in
   the header pinned a choice (html[data-theme], site.js; the console and the
   docs share it). Page-specific rules live beside
   each page (www/pricing/pricing.css) and load after this file. */

:root {
  color-scheme: light;
  --bg: #f5f7f5;
  --bg-soft: #eef2ef;
  --card: #ffffff;
  --text: #13201a;
  --muted: #5d6a63;
  --faint: #98a39d;
  --line: #e2e8e4;
  --accent: #136c2e;
  --accent-ink: #ffffff;
  --bright: #3ccf6e;          /* accent on dark surfaces (hero, footer, Pro card) */
  --bright-ink: #062611;
  --night: #07140c;           /* header, hero, CTA band + footer, both themes */
  --pro: #0c3b22;
  --deny: #b4321f;
  --warn: #8a6100;
  --shadow: 0 1px 2px rgba(10, 30, 18, 0.04), 0 20px 50px -30px rgba(10, 30, 18, 0.45);
  --shadow-hover: 0 1px 2px rgba(10, 30, 18, 0.05), 0 30px 60px -28px rgba(10, 30, 18, 0.6);
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --section: 96px;
  --bar: 64px;
}

/* Dark: the same block twice - for the system setting and for a pinned choice. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #08100b;
    --bg-soft: #0c1611;
    --card: #0f1a14;
    --text: #e7eee9;
    --muted: #9aa7a0;
    --faint: #5f6c65;
    --line: #1f2c25;
    --accent: #3ccf6e;
    --accent-ink: #062611;
    --deny: #ff8a73;
    --warn: #f0c35a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 50px -30px rgba(0, 0, 0, 0.9);
    --shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.35), 0 30px 60px -28px rgba(0, 0, 0, 1);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08100b;
  --bg-soft: #0c1611;
  --card: #0f1a14;
  --text: #e7eee9;
  --muted: #9aa7a0;
  --faint: #5f6c65;
  --line: #1f2c25;
  --accent: #3ccf6e;
  --accent-ink: #062611;
  --deny: #ff8a73;
  --warn: #f0c35a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 50px -30px rgba(0, 0, 0, 0.9);
  --shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.35), 0 30px 60px -28px rgba(0, 0, 0, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: var(--accent); }
code { font: 13px var(--mono); }
.muted { color: var(--muted); }
.num { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.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;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 8px 14px; border-radius: 10px; background: var(--bright); color: var(--bright-ink);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 10px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap.narrow { max-width: 820px; }

/* ---- header ---- */
/* Over a dark hero the header floats, so the hero's glow and live rows run behind it
   without a seam. Pages with a light hero (body[data-hero="light"]) get a solid bar. */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
body[data-hero="light"] .site-header {
  position: relative; background: var(--night);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-row { display: flex; align-items: center; gap: 12px; height: var(--bar); position: relative; }
.wordmark {
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  color: #fff; text-decoration: none;
}
.wordmark span { color: var(--bright); }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; white-space: nowrap; transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
.header-end { display: flex; align-items: center; gap: 8px; }
.header-cta {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: var(--bright-ink); background: var(--bright);
  transition: background 200ms ease;
}
.header-cta:hover { background: #5ee08a; }
.header-console { display: none; gap: 6px; }
.header-console svg { width: 15px; height: 15px; }
/* Signed in to the console (site.js reads the console's hint): one button instead of Log in / Start free. */
.signed-in .header-login, .signed-in .header-cta { display: none; }
.signed-in .header-cta.header-console { display: inline-flex; }
/* Private beta (site.js adds it when GET /v1/auth/providers says signup: "waitlist"). */
.beta-strip {
  margin: 0; padding: 8px 16px; text-align: center; font-size: 13px; line-height: 1.4;
  color: rgba(255, 255, 255, 0.85); background: var(--pro);
}
.beta-strip a { color: var(--bright); font-weight: 600; }
/* The dark-hero header sits on top of the hero (absolute): move it below the strip. */
body:not([data-hero="light"]) .site-header { top: var(--strip, 0px); }
.header-login {
  color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; white-space: nowrap; transition: color 0.2s, background 0.2s;
}
.header-login:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.menu-btn {
  display: none; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; background: transparent;
}
.menu-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn:hover { background: rgba(255, 255, 255, 0.08); }
.theme-seg {
  display: inline-flex; flex: none; gap: 0; padding: 2px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05);
}
.theme-seg button {
  display: grid; place-items: center; width: 24px; height: 22px; padding: 0; border: 0; border-radius: 7px;
  background: none; color: rgba(255, 255, 255, 0.6); cursor: pointer;
}
.theme-seg button:hover { color: #fff; }
.theme-seg svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The chosen one follows the page (html[data-theme]), so it is right before the script runs. */
:root:not([data-theme]) .theme-seg [data-theme-set="system"],
:root[data-theme="light"] .theme-seg [data-theme-set="light"],
:root[data-theme="dark"] .theme-seg [data-theme-set="dark"] { color: var(--bright); background: rgba(255, 255, 255, 0.12); }
.nav-theme { display: none; }
.site-header :focus-visible, .hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--bright); }

/* ---- dark hero ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 480px at 50% -60px, rgba(60, 207, 110, 0.16), transparent 70%),
    var(--night);
  color: #fff; text-align: center;
  padding: calc(var(--bar) + 72px) 0 96px;
}
/* A soft dark pool behind the text keeps the headline clear of the live rows. */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 42% 46% at 50% 48%, rgba(7, 20, 12, 0.88), rgba(7, 20, 12, 0) 75%);
}
.hero-inner { position: relative; z-index: 1; }

/* Decorative "live rows": a faint table where single cells light up like changes streaming in. */
.live-rows {
  position: absolute; inset: 72px 0 0; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-around;
  padding: 0 max(24px, calc(50% - 680px));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.live-row {
  display: grid; grid-template-columns: 1.2fr repeat(6, 1fr); gap: 18px; align-items: center;
  height: 44px; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cell {
  display: block; height: 9px; width: var(--w); border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
}
.cell.pulse { animation: cell-pulse 9s ease-out infinite; animation-delay: var(--d); }
@keyframes cell-pulse {
  0%, 100% { background: rgba(255, 255, 255, 0.07); box-shadow: none; }
  3% { background: rgba(60, 207, 110, 0.75); box-shadow: 0 0 14px rgba(60, 207, 110, 0.55); }
  16% { background: rgba(255, 255, 255, 0.07); box-shadow: none; }
}

.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 5px 12px; border-radius: 999px;
  font: 500 12px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bright); background: rgba(60, 207, 110, 0.1); border: 1px solid rgba(60, 207, 110, 0.25);
}
.hero h1, .page-hero h1 {
  margin: 0 auto; max-width: 22ch;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--bright); }
.lede {
  margin: 22px auto 0; max-width: 58ch;
  font-size: clamp(16px, 2vw, 18px); color: rgba(255, 255, 255, 0.72);
}

/* ---- light page hero (why, 404) ---- */
.page-hero { padding: 80px 0 8px; text-align: center; }
.page-hero .eyebrow { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .lede { color: var(--muted); max-width: 64ch; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px;
  text-align: center; text-decoration: none; font-weight: 600; font-size: 14px;
  color: var(--text); background: transparent;
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary { background: var(--bright); border-color: var(--bright); color: var(--bright-ink); }
.btn-primary:hover { background: #5ee08a; border-color: #5ee08a; color: var(--bright-ink); }
/* Secondary button on a dark surface */
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---- sections ---- */
.section { padding-top: var(--section); }
.section-title {
  margin: 0; text-align: center;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; letter-spacing: -0.02em;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub { margin: 12px auto 0; max-width: 60ch; text-align: center; color: var(--muted); }
.fine { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.kicker {
  margin: 0 0 10px; text-align: center;
  font: 500 12px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}

/* Cards with an icon (pricing "How billing works", home capabilities) */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.facts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact {
  display: flex; flex-direction: column; min-width: 0;
  padding: 26px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.icon {
  flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.fact h3 { margin: 16px 0 0; font-size: 16px; letter-spacing: -0.01em; }
.fact p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.fact code { font-size: 12px; overflow-wrap: anywhere; }
.more {
  margin-top: auto; padding-top: 14px; align-self: flex-start;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.more:hover { text-decoration: underline; }

/* ---- code blocks (always dark) ---- */
.code-card {
  min-width: 0; border-radius: 16px; overflow: hidden; text-align: left;
  background: #0b1a11; border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.code-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font: 500 12px var(--mono); color: rgba(255, 255, 255, 0.5);
}
.code-bar .dots { display: inline-flex; gap: 6px; }
.code-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.code-card pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; }
.code-card pre:focus-visible { outline: 2px solid var(--bright); outline-offset: -2px; }
.code-card code { font: 500 13px/1.65 var(--mono); color: #d6e6dc; }
/* Four tints, no library: keyword, string, function, comment. */
.tk { color: #f0c35a; }
.ts { color: #8ee0a8; }
.tf { color: #8cc8ff; }
.tc { color: #6f8077; }

/* ---- trace rows (same look as the demo's trace panel) ---- */
.trace-panel {
  min-width: 0; border-radius: 20px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.trace-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.trace-head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.status {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 12px/1 var(--mono); padding: 6px 10px; border-radius: 999px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dot-pulse 2s ease-out infinite; }
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 7px transparent; }
}
.trace-list { list-style: none; margin: 0; padding: 0; }
.trace-row {
  display: grid; align-items: baseline; gap: 4px 12px;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  padding: 12px 22px; border-top: 1px solid var(--line); font-size: 13.5px;
}
.trace-row:first-child { border-top: 0; }
.t-time { font: 500 12px var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.t-who { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.t-name { font-weight: 600; }
.t-op { grid-column: 2 / -1; font: 500 12.5px var(--mono); color: var(--text); }
.t-expl { grid-column: 1 / -1; color: var(--muted); font: 12.5px/1.5 var(--mono); overflow-wrap: anywhere; }
.t-fan { display: inline-block; margin-left: 8px; color: var(--accent); }
.chip {
  display: inline-block; flex: none;
  font: 500 11px/1 var(--mono); letter-spacing: 0.04em;
  padding: 4px 8px; border-radius: 999px;
  color: var(--muted); background: color-mix(in srgb, var(--muted) 14%, transparent);
}
.chip[data-role="admin"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.chip[data-role="editor"] { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.decision {
  justify-self: end; grid-column: 3; grid-row: 1;
  font: 500 11px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 6px;
  color: var(--muted); background: color-mix(in srgb, var(--muted) 14%, transparent);
}
.decision[data-decision="allowed"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.decision[data-decision="denied"] { color: var(--deny); background: color-mix(in srgb, var(--deny) 14%, transparent); }

/* ---- comparison tables ---- */
.compare-scroll {
  margin-top: 32px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.compare-scroll:focus-visible { outline-offset: 3px; }
.compare { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.compare td { text-align: center; white-space: nowrap; transition: background 150ms; }
.compare td.num { font-size: 13px; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--text); transition: background 150ms; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr:last-child > :first-child { border-bottom-left-radius: 15px; }
.compare tbody tr:last-child > :last-child { border-bottom-right-radius: 15px; }

/* Header row sticks to the top of the page while the table scrolls by. */
.compare thead th {
  position: sticky; top: 0; z-index: 3;
  text-align: center; font-size: 15px; font-weight: 700; padding-top: 18px; padding-bottom: 14px;
  vertical-align: bottom;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.compare thead th:first-child { border-top-left-radius: 15px; }
.compare thead th:last-child { border-top-right-radius: 15px; }
.compare thead th:not(:first-child) { width: 14%; }
.compare thead th span { display: block; margin-top: 3px; font: 500 12px var(--mono); color: var(--muted); }
.compare thead .corner { text-align: left; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

/* Sticky first column */
.compare th:first-child { position: sticky; left: 0; z-index: 1; width: 30%; min-width: 220px; }
.compare thead th:first-child { z-index: 4; }

.compare tr.group th, .compare tr.group td { padding-top: 28px; padding-bottom: 10px; }
.compare tr.group th span {
  display: inline-block; padding-bottom: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
  border-bottom: 2px solid var(--accent);
}

.compare .hl { background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.compare thead th.hl {
  color: var(--accent); box-shadow: inset 0 3px 0 var(--accent);
  background: color-mix(in srgb, color-mix(in srgb, var(--accent) 6%, var(--card)) 85%, transparent);
}
.compare tbody tr:not(.group):hover > * { background: color-mix(in srgb, var(--accent) 4%, var(--card)); }
.compare tbody tr:not(.group):hover > .hl { background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.compare .y { color: var(--accent); font-weight: 800; font-size: 15px; }
.compare .n { color: var(--faint); }

.elsewhere-table { min-width: 680px; }
.elsewhere-table td { color: var(--muted); }
.elsewhere-table td.hl { color: var(--text); }
.elsewhere-table td.hl b { color: var(--accent); font-size: 16px; font-weight: 500; }
.elsewhere-table td .muted { font: 12px system-ui, -apple-system, "Segoe UI", sans-serif; display: block; margin-top: 2px; }

/* Wide screens: the table fits, so the container does not clip and the header can stick to the page. */
@media (max-width: 980px) {
  .compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare th:first-child { box-shadow: inset -1px 0 0 var(--line); }
}

/* ---- bar chart ---- */
.bars {
  margin: 32px 0 0; padding: 28px 28px 22px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.bar-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 12px; }
.bar-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.bar-track { display: flex; align-items: center; gap: 10px; padding-right: 72px; min-width: 0; }
.bar {
  flex: none; display: block; width: var(--w); min-width: 6px; height: 30px; border-radius: 8px;
  background: color-mix(in srgb, var(--text) 18%, var(--card));
  transform-origin: left center;
  animation: bar-grow 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.bar-value {
  flex: none; font: 500 14px var(--mono); color: var(--muted);
  animation: bar-value-in 400ms ease-out both;
}
.bar-row:nth-child(1) .bar { animation-delay: 100ms; }
.bar-row:nth-child(2) .bar { animation-delay: 220ms; }
.bar-row:nth-child(3) .bar { animation-delay: 340ms; }
.bar-row:nth-child(4) .bar { animation-delay: 460ms; }
.bar-row:nth-child(1) .bar-value { animation-delay: 700ms; }
.bar-row:nth-child(2) .bar-value { animation-delay: 820ms; }
.bar-row:nth-child(3) .bar-value { animation-delay: 940ms; }
.bar-row:nth-child(4) .bar-value { animation-delay: 1060ms; }
.bar-row.is-us .bar-label { color: var(--accent); }
.bar-row.is-us .bar { background: var(--accent); box-shadow: 0 6px 16px -8px var(--accent); }
.bar-row.is-us .bar-value { color: var(--accent); font-size: 16px; }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bar-value-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.bars figcaption { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---- CTA band (always dark) ---- */
.cta-band {
  position: relative; overflow: hidden; margin-top: var(--section);
  padding: 72px 24px; border-radius: 20px; text-align: center; color: #fff;
  background:
    radial-gradient(700px 300px at 50% 120%, rgba(60, 207, 110, 0.22), transparent 70%),
    var(--night);
}
.cta-band h2 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em;
}
.cta-band h2 em { font-style: italic; color: var(--bright); }
.cta-band p { margin: 14px auto 0; max-width: 52ch; color: rgba(255, 255, 255, 0.72); }
.cta-band .actions { margin-top: 28px; }

/* ---- footer (always dark) ---- */
.site-footer { margin-top: var(--section); background: var(--night); color: rgba(255, 255, 255, 0.65); font-size: 14px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px 24px;
  padding-top: 56px; padding-bottom: 40px;
}
.footer-brand p { margin: 12px 0 0; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-title {
  margin: 0 0 8px; font: 500 11px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.footer-col a {
  color: rgba(255, 255, 255, 0.75); text-decoration: none; padding: 4px 0; border-radius: 4px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-col a[aria-current="page"] { color: var(--bright); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 20px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px; color: rgba(255, 255, 255, 0.5);
}
.footer-base p { margin: 0; }
.footer-base .num { font-size: 12px; }

/* ---- home ---- */
.home-hero { padding-bottom: 88px; }
.home-hero .actions { margin-top: 30px; }
.hero-strip {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px;
  margin-top: 64px; text-align: left; align-items: stretch;
}
/* The story film in the hero: 16:9, framed like the code card, silent. */
.hero-film { margin: 48px auto 0; max-width: 960px; }
.film-frame {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 16px; background: #0b1a11; border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.gives {
  min-width: 0; padding: 24px 26px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gives-title {
  margin: 0 0 6px; font: 500 12px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bright);
}
.gives ul { list-style: none; margin: 0; padding: 0; }
.gives li {
  position: relative; padding: 12px 0 12px 26px; font-size: 14.5px; color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.gives li:first-child { border-top: 0; }
.gives li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--bright);
  box-shadow: 0 0 10px rgba(60, 207, 110, 0.6);
}
.gives b { color: #fff; font-weight: 600; }
.gives code { font-size: 12px; color: #8ee0a8; overflow-wrap: anywhere; }

.steps {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.step {
  display: flex; gap: 16px; min-width: 0; padding: 24px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.step-n {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 500 14px/1 var(--mono); color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.step-body { min-width: 0; flex: 1; }
.step h3 { margin: 4px 0 0; font-size: 16px; letter-spacing: -0.01em; }
.step p { margin: 6px 0 14px; color: var(--muted); font-size: 14px; }
.step .code-card { box-shadow: none; border-radius: 12px; }
.step .code-card code { font-size: 12.5px; }

.trace-feature {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center;
}
.trace-copy .kicker, .trace-copy .section-title { text-align: left; }
.trace-copy p { color: var(--muted); margin: 16px 0 0; }
.trace-copy p b { color: var(--text); }
.trace-copy .section-title { margin-bottom: 8px; }

.status-strip {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px;
}
.status-col {
  min-width: 0; padding: 24px 26px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.status-col h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 16px; }
.state-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.status-col.next .state-dot { background: var(--faint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--faint) 18%, transparent); }
.status-col ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.status-col li { padding: 7px 0; border-top: 1px solid var(--line); color: var(--muted); }
.status-col li:first-of-type { border-top: 0; }
.status-col.next { background: var(--bg-soft); box-shadow: none; }

.mini-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.mini-plan {
  min-width: 0; padding: 24px 24px 20px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.mini-plan h3 { margin: 0; font-size: 16px; }
.mini-price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 0; }
.mini-price .num { font-size: 2.3rem; line-height: 1; letter-spacing: -0.05em; }
.mini-price .per { font-size: 14px; color: var(--muted); }
.mini-call { font: 500 1.8rem/1 var(--mono); }
.mini-plan ul { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.mini-plan li { padding: 4px 0; color: var(--muted); }
.mini-plan li b { color: var(--text); font-weight: 600; }
.mini-plan.featured {
  --text: #ffffff; --muted: rgba(255, 255, 255, 0.74); --line: rgba(255, 255, 255, 0.14);
  background: var(--pro); border-color: var(--pro); color: var(--text);
  box-shadow: 0 30px 60px -28px rgba(12, 59, 34, 0.85);
}

/* ---- why ---- */
.vs {
  margin-top: 28px; padding: 26px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.vs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.vs-head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.vs-head p { margin: 0; color: var(--muted); font-size: 14px; }
.vs-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.vs-col { min-width: 0; padding: 18px; border-radius: 14px; background: var(--bg-soft); }
.vs-col h4 {
  margin: 0 0 6px; font: 500 11px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.vs-col p { margin: 0; font-size: 14px; }
.vs-col.ours { background: color-mix(in srgb, var(--accent) 9%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.vs-col.ours h4 { color: var(--accent); }
.landscape { min-width: 760px; }
.landscape td { text-align: left; white-space: normal; color: var(--muted); }
.landscape thead th:not(:first-child) { width: auto; }
.landscape thead th { text-align: left; }
.landscape tbody tr.is-us > * { background: color-mix(in srgb, var(--accent) 8%, var(--card)); color: var(--text); }
.landscape tbody tr.is-us th { color: var(--accent); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.weaker { list-style: none; margin: 28px 0 0; padding: 0; }
.weaker li {
  position: relative; padding: 16px 0 16px 34px; border-top: 1px solid var(--line); color: var(--muted);
}
.weaker li:first-child { border-top: 0; }
.weaker li::before {
  content: "-"; position: absolute; left: 0; top: 16px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: var(--faint); background: color-mix(in srgb, var(--faint) 15%, transparent);
}
.weaker b { color: var(--text); }

/* ---- 404 ---- */
.nf { padding: 96px 0 0; text-align: center; }
.nf-code { margin: 0; font: 500 clamp(4rem, 14vw, 8rem)/1 var(--mono); letter-spacing: -0.06em; color: var(--accent); }
.nf h1 { margin: 12px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.nf p { margin: 14px auto 0; max-width: 46ch; color: var(--muted); }

/* Code shows what you type: no "==" or "->" ligatures. Kept after every `font`
   shorthand above, which would reset it. */
code, pre, .t-expl, .t-op, .num, .mini-call { font-variant-ligatures: none; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .facts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero-strip { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trace-feature { grid-template-columns: 1fr; gap: 28px; }
  .vs-cols { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .facts { grid-template-columns: 1fr; }
  .status-strip, .mini-plans { grid-template-columns: 1fr; }
}

/* Phone: the main nav folds into the Menu button (site.js; :target without it). */
@media (max-width: 720px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: calc(var(--bar) - 6px); left: 16px; right: 16px;
    flex-direction: column; gap: 2px; margin: 0; padding: 8px;
    background: #0d2116; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  }
  .site-nav a { padding: 12px 14px; font-size: 15px; }
  .nav-open .site-nav, .site-nav:target { display: flex; }
  .header-end { margin-left: auto; }
  /* No room in a phone header: the theme control is a row of the menu. */
  .header-end .theme-seg { display: none; }
  .nav-theme {
    display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px;
    color: rgba(255, 255, 255, 0.7); font-size: 15px; font-weight: 500;
  }
}

@media (max-width: 640px) {
  :root { --section: 64px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: calc(var(--bar) + 40px); padding-bottom: 64px; }
  .page-hero { padding-top: 56px; }
  .live-row { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .live-row .cell:nth-child(n + 5) { display: none; }
  .facts.four { grid-template-columns: 1fr; }
  .fact { padding: 22px; }
  .compare { min-width: 600px; }
  .compare th:first-child { width: 150px; min-width: 150px; }
  .elsewhere-table { min-width: 560px; }
  .compare th, .compare td { padding: 10px 12px; }
  .bars { padding: 20px 16px 16px; }
  .bar-row { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
  .bar-label { font-size: 13px; }
  .bar-track { padding-right: 60px; gap: 8px; }
  .bar { height: 26px; }
  .trace-head { padding: 14px 16px; }
  .trace-row { padding: 10px 16px; }
  .cta-band { padding: 56px 18px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 44px; }
  .hero-strip { margin-top: 44px; }
  .hero-film { margin-top: 36px; }
  .gives { padding: 18px; }
  .step { padding: 18px; gap: 12px; }
  .step-n { width: 28px; height: 28px; font-size: 13px; }
  .vs { padding: 20px 16px; }
  .vs-head h3 { font-size: 1.6rem; }
  .nf { padding-top: 64px; }
}

@media (max-width: 380px) {
  .header-cta { padding: 7px 10px; }
  .header-login { padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- legal pages (terms, privacy): plain reading text ---- */
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text); font-size: 16px; line-height: 1.65; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal { padding-bottom: var(--section); }
