/* Kept Runner — marketing site.
   One face (Geist, Geist Mono), the app's dark palette, one red accent. Tokens follow
   web/src/runner/brand-tokens.json. Nothing outside this palette: blue/cyan inform, amber means a decision,
   coral means a flag, red is the one primary action, the active mark and focus. */

@font-face {
  font-family: "Geist Variable";
  src: url("/assets/fonts/geist.woff2") format("woff2-variations"), url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono Variable";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2-variations"), url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #06070a;
  --surf: #101216;
  --surf-2: #171a20;
  --surf-3: #1f232b;
  --surf-4: #292e38;
  --hi: #f3f6fb;
  --text: #cdd5e1;
  --text-2: #98a3b4;
  --text-3: #6c7686;
  --text-4: #4a525f;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --wash: rgba(255, 255, 255, 0.04);
  --glass: rgba(10, 12, 16, 0.78);
  --red: #f0525a;
  --red-strong: #d63a43;
  --red-press: #c22f38;
  --red-soft: rgba(240, 82, 90, 0.14);
  --blue: #5c9dff;
  --cyan: #86cdff;
  --amber: #e4b25a;
  --coral: #ff8f80;
  --font: "Geist Variable", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono Variable", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --r-row: 8px;
  --r-input: 10px;
  --r-card: 14px;
  --r-panel: 16px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--hi); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--hi); font-weight: 600; letter-spacing: -0.012em; line-height: 1.15; margin: 0; }
p { margin: 0; }
strong, b { color: var(--hi); font-weight: 600; }
code, kbd, .mono { font-family: var(--mono); }
kbd { font-size: 0.82em; padding: 1px 5px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--text-2); }
::selection { background: rgba(92, 157, 255, 0.35); color: var(--hi); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--hi); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Buttons ----------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--r-input); border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 500; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.14s, color 0.14s, border-color 0.14s, transform 0.14s;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red-strong); color: #fff; }
.btn-red:hover { background: var(--red-press); color: #fff; }
.btn-ghost { background: transparent; color: var(--hi); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--wash); color: var(--hi); border-color: rgba(255, 255, 255, 0.24); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn .ico { transition: transform 0.2s var(--ease); }
.btn:hover .ico-move { transform: translateX(2px); }

/* ---- Header ------------------------------------------------------------------------------------ */
.nav { position: sticky; top: 0; z-index: 50; background: var(--glass); border-bottom: 1px solid var(--line); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--hi); text-decoration: none; font-size: 15px; letter-spacing: -0.012em; }
.brand:hover { color: var(--hi); }
.brand img { width: 47px; height: 18px; }
.brand span { color: var(--text-2); }
.brand b { color: var(--hi); font-weight: 600; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 6px; }
.nav-links a:hover { color: var(--hi); background: var(--wash); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-back { margin-left: auto; color: var(--text-2); text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.nav-back:hover { color: var(--hi); }
.nav-back .ico { transform: rotate(180deg); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 480px) {
  .nav .wrap { gap: 12px; }
  .nav-signin { display: none; }
  .brand span { display: none; }
}

/* ---- Type helpers ------------------------------------------------------------------------------ */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--red); margin-right: 8px; vertical-align: 1px; }
.display { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.025em; }
.h3 { font-size: 20px; line-height: 1.3; }
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--text); max-width: 62ch; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

section { position: relative; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lede { margin-top: 18px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---- Hero: kinetic type ------------------------------------------------------------------------- */
.hero { padding: clamp(56px, 10vh, 120px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
@media (min-width: 961px) { .hero { min-height: calc(100vh - 61px); min-height: calc(100svh - 61px); display: flex; align-items: center; padding: 48px 0; } .hero > .wrap { width: 100%; } }
.hero .eyebrow { margin-bottom: clamp(24px, 4vh, 40px); }
.tagline { font-size: clamp(32px, 9.1vw, 124px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 600; margin: 0; }
.tagline .line { display: block; white-space: nowrap; }
.tagline .w { display: inline-block; will-change: transform; }
.tagline .l1 { color: var(--text-2); }
.tagline .l2 { color: var(--hi); position: relative; display: inline-block; }
.tagline .stop { color: var(--red); }
.tagline .underline { display: block; height: 3px; width: 100%; margin-top: 0.12em; background: var(--red); border-radius: 2px; transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .js .tagline .underline { transform: scaleX(0); }
  .js.static .tagline .underline { transform: none; }
}
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-top: clamp(36px, 6vh, 64px); }
.hero-foot .lede { max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .ico { color: var(--cyan); width: 14px; height: 14px; }
@media (max-width: 820px) { .hero-foot { grid-template-columns: 1fr; } }


/* ---- Demo: the Changes panel, drawn in DOM ------------------------------------------------------ */
.demo { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 120px); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.demo-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: s; }
.demo-steps li { position: relative; padding: 12px 14px 12px 44px; border-radius: var(--r-row); color: var(--text-2); font-size: 15px; line-height: 1.5; transition: color 0.3s, background 0.3s; }
.demo-steps li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 12px; top: 13px; width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--text-2); border: 1px solid var(--line-2);
}
.demo-steps li::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 1px; background: var(--red); opacity: 0; transition: opacity 0.3s; }
.demo-steps li b { display: block; color: var(--hi); font-weight: 500; }
.demo-steps li.on { color: var(--text); background: var(--wash); }
.demo-steps li.on::after { opacity: 1; }
.demo-steps li.on::before { color: var(--hi); border-color: rgba(240, 82, 90, 0.6); }
.demo-note { margin-top: 18px; font-size: 13px; color: var(--text-2); }

.panel {
  position: relative; border-radius: var(--r-panel); background: var(--surf); border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05); overflow: hidden; font-size: 13.5px; line-height: 1.45;
}
.panel-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surf-2); }
.panel-co { display: inline-flex; align-items: center; gap: 8px; color: var(--hi); font-weight: 500; min-width: 0; }
.panel-co span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-co .ico { color: var(--cyan); }
.panel-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.panel-status .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.panel.is-working .panel-status .pip { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.panel-cmd { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.panel-cmd .ask { color: var(--hi); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.chip.model { font-family: var(--mono); font-size: 11.5px; color: var(--cyan); border-color: rgba(134, 205, 255, 0.28); background: rgba(92, 157, 255, 0.08); }
.chip.writes { font-family: var(--mono); font-size: 11.5px; color: var(--hi); }
.chip.writes .n { color: var(--red); font-weight: 600; }

.panel-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px 10px; }
.panel-head h3 { font-size: 17px; }
.panel-head .sub { font-size: 12.5px; color: var(--text-2); }
.panel-head .btn { margin-left: auto; min-height: 32px; padding: 0 12px; font-size: 13px; }
.approve-btn { background: var(--hi); color: var(--ink); border-radius: 8px; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.approve-btn.pressed { background: var(--red-strong); color: #fff; box-shadow: 0 0 0 3px var(--red-soft); }

.group { border-top: 1px solid var(--line); }
.group-h { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 13px; color: var(--hi); font-weight: 500; }
.group-h .gdot { width: 7px; height: 7px; border-radius: 50%; }
.group-h .hint { color: var(--text-2); font-weight: 400; font-size: 12.5px; }
.group-h .count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.g-post .gdot { background: var(--blue); }
.g-decide .gdot { background: var(--amber); }
.g-flag .gdot { background: var(--coral); }

.tx { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 16px 10px; border-top: 1px solid var(--line); position: relative; }
.tx-mark { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 1.4px solid var(--text-3); display: grid; place-items: center; color: transparent; }
.tx-mark .ico { width: 12px; height: 12px; stroke-width: 2; }
.tx.written .tx-mark { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.g-decide .tx-mark { border-color: var(--amber); color: var(--amber); font-size: 11px; font-weight: 600; }
.g-flag .tx-mark { border-color: var(--coral); color: var(--coral); }
.g-flag .tx-mark .ico { width: 11px; height: 11px; stroke-width: 1.6; }
.tx-main { min-width: 0; }
.tx-title { color: var(--hi); font-weight: 500; overflow-wrap: anywhere; }
.tx-amt { font-family: var(--mono); font-size: 12.5px; color: var(--text); white-space: nowrap; padding-top: 1px; }
.tx-change { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; font-size: 12.5px; }
.tx-old { color: var(--text-2); text-decoration: line-through; text-decoration-color: rgba(152, 163, 180, 0.6); }
.tx-arrow { color: var(--text-3); }
.tx-arrow .ico { width: 13px; height: 13px; }
.tx-new { color: var(--cyan); }
.tx-why { margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.tx-why i { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-right: 6px; }
.tx-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tx-opts span { padding: 3px 9px; border-radius: 6px; border: 1px solid rgba(228, 178, 90, 0.35); color: var(--text); font-size: 12px; }
.tx-opts kbd { margin-right: 5px; font-size: 10px; padding: 0 4px; }
.tx-state { grid-column: 2 / -1; font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
.tx-state .w { color: var(--cyan); }
.tx.pending .tx-old { text-decoration: none; color: var(--text); }
.tx-scan { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(92, 157, 255, 0.10), transparent); opacity: 0; pointer-events: none; }
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surf-2); font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
.panel-foot .ico { width: 13px; height: 13px; color: var(--text-2); }
.panel-foot b { color: var(--hi); font-weight: 500; }
@media (max-width: 960px) { .demo-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .panel { font-size: 13px; }
  .panel-head .sub { display: none; }
  .tx { padding-left: 12px; padding-right: 12px; gap: 4px 10px; }
}

/* ---- Steps with real screenshots --------------------------------------------------------------- */
.steps { display: grid; gap: clamp(64px, 9vw, 120px); }
.step { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.step:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.step:nth-child(even) .step-text { order: 2; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--red); letter-spacing: 0.06em; margin-bottom: 14px; }
.step-text h3 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; margin-bottom: 14px; }
.step-text p + p { margin-top: 12px; }
.step-text p { color: var(--text); }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; font-size: 15px; color: var(--text); }
.facts .ico { margin-top: 4px; color: var(--cyan); }
.shot { margin: 0; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line-2); background: var(--surf); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9); }
.shot img { width: 100%; height: auto; aspect-ratio: 1600 / 871; object-fit: cover; }
.shot.wide img { aspect-ratio: 976 / 399; }
.shot figcaption { padding: 10px 14px; font-size: 12.5px; color: var(--text-2); border-top: 1px solid var(--line); }
.shot-stack { display: grid; gap: 14px; }
@media (max-width: 900px) {
  .step, .step:nth-child(even) { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-text { order: 0; }
}

/* ---- Trust / security ---------------------------------------------------------------------------- */
.trust { background: linear-gradient(180deg, var(--ink), #0a0c10 30%, #0a0c10 70%, var(--ink)); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.trust-item { background: var(--surf); padding: 26px 24px 28px; }
.trust-item .ico { width: 20px; height: 20px; color: var(--cyan); margin-bottom: 18px; }
.trust-item h3 { font-size: 17px; margin-bottom: 8px; }
.trust-item p { font-size: 15px; color: var(--text-2); }
.trust-item p code { font-size: 13px; color: var(--text); }
@media (max-width: 960px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .trust-grid { grid-template-columns: 1fr; } }

.audit { margin-top: clamp(40px, 6vw, 64px); border-radius: var(--r-panel); border: 1px solid var(--line-2); background: var(--surf); overflow: hidden; }
.audit-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.audit-h h3 { font-size: 16px; }
.audit-h p { font-size: 13px; color: var(--text-2); }
.audit-scroll { overflow-x: auto; }
.audit table { width: 100%; min-width: 720px; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
.audit th { text-align: left; font-weight: 500; color: var(--text-2); padding: 10px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.audit td { padding: 11px 18px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: top; }
.audit tr:last-child td { border-bottom: 0; }
.audit .b { color: var(--text-2); text-decoration: line-through; text-decoration-color: rgba(152, 163, 180, 0.55); }
.audit .a { color: var(--cyan); }
.audit .act { color: var(--hi); }
.audit .act.flag { color: var(--coral); }
.audit .act.dec { color: var(--amber); }

/* ---- Feature pairs ------------------------------------------------------------------------------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.card { border-radius: var(--r-panel); border: 1px solid var(--line-2); background: var(--surf); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 22px; letter-spacing: -0.015em; }
.card p { color: var(--text); }
.card .shot { margin-top: auto; box-shadow: none; }
.card .shot img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 100% 0; }
.card .tag { align-self: flex-start; }
@media (max-width: 900px) { .pair { grid-template-columns: 1fr; } }

.router { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.route { border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surf-2); padding: 16px; }
.route .chip { margin-bottom: 10px; }
.route p { font-size: 14.5px; color: var(--text-2); }
@media (max-width: 520px) { .router { grid-template-columns: 1fr; } }

.memory { font-family: var(--mono); font-size: 13px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surf-2); padding: 14px 16px; display: grid; gap: 8px; color: var(--text); }
.memory .k { color: var(--text-2); }
.memory .o { color: var(--text-2); text-decoration: line-through; }
.memory .n { color: var(--cyan); }

/* ---- Limits -------------------------------------------------------------------------------------- */
.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); }
.limit { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
.limit .tag { align-self: start; justify-self: start; }
.limit h3 { font-size: 16px; margin-bottom: 6px; }
.limit p { font-size: 15px; color: var(--text-2); }
@media (max-width: 860px) { .limits { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .limit { grid-template-columns: 1fr; gap: 8px; } }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.tag.blue { color: var(--cyan); border-color: rgba(134, 205, 255, 0.3); }
.tag.amber { color: var(--amber); border-color: rgba(228, 178, 90, 0.35); }
.tag.coral { color: var(--coral); border-color: rgba(255, 143, 128, 0.35); }

/* ---- Pricing ------------------------------------------------------------------------------------- */
.bill { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surf-2); border: 1px solid var(--line); margin-top: 26px; }
.bill button { font: inherit; font-size: 14px; color: var(--text-2); background: transparent; border: 0; padding: 8px 14px; border-radius: 7px; cursor: pointer; min-height: 36px; }
.bill button[aria-pressed="true"] { background: var(--surf-4); color: var(--hi); }
.bill button .save { color: var(--red); margin-left: 6px; font-size: 12.5px; }
.no-js .bill { display: none; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; border-radius: var(--r-panel); border: 1px solid var(--line-2); background: var(--surf); padding: 28px 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(240, 82, 90, 0.5); box-shadow: inset 0 2px 0 var(--red); }
.plan h3 { font-size: 19px; }
.plan .for { margin-top: 6px; font-size: 14px; color: var(--text-2); min-height: 44px; }
.price { margin-top: 22px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amt { font-size: 42px; font-weight: 600; letter-spacing: -0.03em; color: var(--hi); font-variant-numeric: tabular-nums; }
.price .per { font-size: 14px; color: var(--text-2); }
.price-alt { margin-top: 4px; font-size: 13px; color: var(--text-2); min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; color: var(--text); }
.plan li .ico { margin-top: 4px; color: var(--cyan); }
.plan .btn { margin-top: auto; width: 100%; }
.plan-note { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; font-size: 14px; color: var(--text-2); }
.plan-note p { padding-left: 14px; border-left: 2px solid var(--line-2); }
@media (max-width: 960px) { .plans, .plan-note { grid-template-columns: 1fr; } .plan .for { min-height: 0; } }

/* ---- FAQ ----------------------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 0; color: var(--hi); font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { margin-left: auto; color: var(--text-2); transition: transform 0.2s var(--ease); }
.faq details[open] summary .ico { transform: rotate(90deg); }
.faq .ans { padding: 0 0 22px; color: var(--text); max-width: 70ch; }
.faq .ans p + p { margin-top: 10px; }

/* ---- Closing CTA --------------------------------------------------------------------------------- */
.closing { text-align: left; }
.closing .h2 { max-width: 18ch; }
.closing .lede { margin-top: 18px; }
.closing .cta-row { margin-top: 30px; }

/* ---- Footer -------------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; color: var(--text-2); }
.foot-top { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--text); text-decoration: none; }
.foot-links a:hover { color: var(--hi); text-decoration: underline; }
.foot-legal { margin-top: 28px; display: grid; gap: 6px; font-size: 13px; color: var(--text-2); max-width: 80ch; }

/* ---- Document pages (privacy, account deletion, 404, app) ---------------------------------------- */
.doc-head { padding: clamp(56px, 9vw, 96px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 5vw, 56px); }
.doc-head .lede { margin-top: 16px; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-bottom: 100px; }
.toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc b { font-weight: 500; color: var(--hi); margin-bottom: 8px; }
.toc a { color: var(--text-2); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--hi); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } }
.prose { max-width: 72ch; min-width: 0; }
.prose h2 { font-size: 24px; margin: 48px 0 14px; scroll-margin-top: 84px; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.summary-card { border-radius: var(--r-panel); border: 1px solid var(--line-2); background: var(--surf); padding: 24px 26px 12px; scroll-margin-top: 84px; }
.summary-card h2 { margin-top: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r-card); }
.table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table-scroll th { color: var(--hi); font-weight: 500; background: var(--surf-2); }
.table-scroll tr:last-child td { border-bottom: 0; }
.note { font-size: 14px; color: var(--text-2); margin-top: 12px; }
.doc-card { border-radius: var(--r-panel); border: 1px solid var(--line-2); background: var(--surf); padding: 24px 26px; margin-bottom: 18px; }
.doc-card h2 { font-size: 20px; margin-bottom: 12px; }
.doc-card ol, .doc-card ul { padding-left: 22px; margin: 0; }
.doc-card li { margin-bottom: 6px; }
.kbd { font-family: var(--mono); font-size: 0.86em; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--hi); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.form { display: grid; gap: 10px; margin-top: 20px; max-width: 460px; }
.form label { font-size: 14px; color: var(--hi); }
.form input[type="text"] { font: inherit; font-family: var(--mono); color: var(--hi); background: var(--surf-2); border: 1px solid var(--line-2); border-radius: var(--r-input); padding: 11px 14px; min-height: 44px; width: 100%; }
.form input[type="text"]:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.form .agree { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 14px; margin-top: 6px; }
.form .agree input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--red-strong); }
.btn-danger { background: var(--red-strong); color: #fff; justify-self: start; }
.btn-danger:hover { background: var(--red-press); }
.btn-danger:disabled { background: var(--surf-3); color: var(--text-2); cursor: not-allowed; }
.status { min-height: 1.5em; font-size: 14px; color: var(--text); }
.reveal { /* kept for the document pages' markup; no motion there */ }
.center-page { min-height: calc(100vh - 61px); display: grid; place-items: center; padding: 64px 0; }
.center-page .lede { margin-top: 14px; }
.center-page .cta-row { margin-top: 26px; }

/* ---- Motion preferences ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
