/* ==========================================================================
   Stoker site stylesheet
   Dark, ember-lit, conversion-focused. Sections in order:
   tokens · base · background · header/nav · buttons · hero · proof · problem
   timeline · features · compare · calculator · steps · pricing · faq · cta
   footer · docs · legal · motion · responsive
   ========================================================================== */

:root {
  color-scheme: dark;
  --page: #0b0b0c;
  --page-2: #0f0f10;
  --surface: #17171a;
  --surface-2: #1e1e22;
  --surface-3: #26262b;
  --ink: #ffffff;
  --ink-2: #c9c8c0;
  --muted: #8b8a84;
  --grid: #2c2c2f;
  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.18);
  --accent: #4f95ea;
  --ember: #eb6834;
  --ember-2: #f79e28;
  --ember-ink: #ff8b52;
  --good: #23b26d;
  --warn: #fab219;
  --crit: #e15353;
  --radius: 14px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.35);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; }
b, strong { color: var(--ink); font-weight: 650; }
::selection { background: var(--ember); color: #fff; }
:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ember); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 12px; }
.em { color: var(--ember-ink); font-style: normal; }
/* Inside buttons the ember wordmark loses contrast (orange on the primary button),
   so "Stoker" there inherits the button's own text colour instead. */
.btn .em { color: inherit; }
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------- background ---- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg .glow {
  position: absolute; left: 50%; top: -220px; width: min(1200px, 140vw); height: 780px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(235, 104, 52, 0.20), rgba(235, 104, 52, 0) 70%);
  animation: bg-glow 9s ease-in-out infinite;
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(closest-side at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 0%, #000 0%, transparent 78%);
}
@keyframes bg-glow {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.08); }
}
.bg .ember {
  position: absolute; bottom: -24px; left: var(--x, 50vw);
  width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
  background: radial-gradient(circle, #ffd7a0 0%, #f79e28 40%, #eb6834 70%, rgba(235, 104, 52, 0) 72%);
  opacity: 0; will-change: transform, opacity;
  animation: bg-rise var(--d, 12s) linear var(--delay, 0s) infinite;
}
@keyframes bg-rise {
  0%   { transform: translate3d(0, 0, 0) scale(0.5); opacity: 0; }
  8%   { opacity: var(--o, 0.5); }
  75%  { opacity: var(--o, 0.5); }
  100% { transform: translate3d(var(--drift, 0), -105vh, 0) scale(1.05); opacity: 0; }
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------- announcement -- */
.topbar {
  background: linear-gradient(90deg, rgba(235,104,52,0.16), rgba(247,158,40,0.10));
  border-bottom: 1px solid rgba(235, 104, 52, 0.25);
  font-size: 13.5px; color: var(--ink-2); text-align: center;
  padding: 8px 16px;
}
.topbar b { color: var(--ink); }
.topbar a { color: var(--ember-ink); font-weight: 600; }
.topbar .sep { color: var(--muted); margin: 0 8px; }

/* ---------------------------------------------------------------- nav ---- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-head.stuck { border-bottom-color: var(--border); background: rgba(11, 11, 12, 0.9); }
nav { display: flex; align-items: center; gap: 26px; padding: 14px 0; }
nav .logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 750; font-size: 19px; color: var(--ink); letter-spacing: -0.01em;
}
nav .logo:hover { text-decoration: none; }
nav .links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav .links a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
nav .links a:hover { color: var(--ink); text-decoration: none; }
nav .links a.btn { color: #fff; }
.mark { width: 26px; height: 26px; flex: none; }

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 620; font-size: 15.5px; line-height: 1;
  padding: 12px 22px; border-radius: 10px; border: 1px solid var(--border);
  color: var(--ink); background: var(--surface-2);
  transition: transform .12s ease, filter .15s ease, border-color .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: var(--border-2); background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, #f5793f, var(--ember));
  border-color: #f5793f; color: #fff;
  box-shadow: 0 8px 24px rgba(235, 104, 52, 0.28);
}
.btn.primary:hover { filter: brightness(1.08); background: linear-gradient(180deg, #f78650, #ee7038); }
.btn.ghost { background: transparent; }
.btn.big { font-size: 17px; padding: 15px 30px; border-radius: 11px; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------------------------------------------------------------- hero --- */
.hero { text-align: center; padding: 76px 0 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ember-ink);
  background: rgba(235, 104, 52, 0.10); border: 1px solid rgba(235, 104, 52, 0.28);
  padding: 6px 14px; border-radius: 99px; margin-bottom: 22px;
}
.eyebrow .blip {
  width: 7px; height: 7px; border-radius: 99px; background: var(--good);
  box-shadow: 0 0 0 0 rgba(35, 178, 109, 0.7); animation: blip 2.4s ease-out infinite;
}
@keyframes blip {
  0%   { box-shadow: 0 0 0 0 rgba(35, 178, 109, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(35, 178, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(35, 178, 109, 0); }
}
.hero h1 {
  font-size: clamp(36px, 6vw, 62px); line-height: 1.06; margin: 0 auto 20px;
  max-width: 860px; letter-spacing: -0.032em; font-weight: 780;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--ember-2), var(--ember) 60%, #ff7a45);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: 19.5px; color: var(--ink-2); max-width: 680px; margin: 0 auto 32px; }
.ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 13.5px; margin-top: 16px; }
.fine b { color: var(--ink-2); font-weight: 600; }

/* trust strip under the hero CTAs */
.trustbar {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  margin: 26px auto 0; max-width: 1000px;
  font-size: 13.5px; color: var(--ink-2);
}
.trustbar span { display: inline-flex; align-items: center; gap: 8px; }
.trustbar svg { width: 15px; height: 15px; color: var(--good); flex: none; }

/* hero screenshot */
.shot {
  position: relative; max-width: 940px; margin: 54px auto 0; border-radius: 16px;
  overflow: hidden; border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow);
}
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  border-radius: 16px;
}
.shot img { display: block; width: 100%; height: auto; }
.shot.is-empty { border-style: dashed; box-shadow: none; min-height: 320px; }

/* ------------------------------------------------------------ sections --- */
section { padding: 76px 0; position: relative; }
section > .wrap > .kicker, .kicker {
  display: block; text-align: center; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--ember-ink); margin: 0 0 12px;
}
section h2 {
  font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 12px; text-align: center;
  letter-spacing: -0.028em; font-weight: 760;
}
section p.lead {
  text-align: center; color: var(--ink-2); max-width: 660px; margin: 0 auto 44px; font-size: 17px;
}
.hr { height: 1px; background: linear-gradient(90deg, transparent, var(--grid), transparent); }

/* ------------------------------------------------------------- problem --- */
.problem { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.014), transparent); }
.pain { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.pain .card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.pain .card .n { font-size: 30px; font-weight: 780; color: var(--ember-ink); letter-spacing: -0.03em; }
.pain .card h3 { margin: 6px 0 6px; font-size: 16.5px; }
.pain .card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ------------------------------------------------------------ timeline --- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 4px; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--crit), var(--warn) 45%, var(--good));
  opacity: .55; border-radius: 2px;
}
.tl {
  position: relative; padding: 0 0 22px 46px;
}
.tl:last-child { padding-bottom: 0; }
.tl .pip {
  position: absolute; left: 6px; top: 4px; width: 20px; height: 20px; border-radius: 99px;
  background: var(--surface-3); border: 2px solid var(--grid);
  display: flex; align-items: center; justify-content: center;
}
.tl .pip i { width: 7px; height: 7px; border-radius: 99px; background: var(--muted); display: block; }
.tl.bad .pip { border-color: rgba(225, 83, 83, .6); } .tl.bad .pip i { background: var(--crit); }
.tl.act .pip { border-color: rgba(250, 178, 25, .6); } .tl.act .pip i { background: var(--warn); }
.tl.ok  .pip { border-color: rgba(35, 178, 109, .6); } .tl.ok  .pip i { background: var(--good); }
.tl .time {
  font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px;
  letter-spacing: .02em; text-transform: uppercase;
}
.tl h3 { margin: 2px 0 4px; font-size: 16.5px; }
.tl p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.tl .who {
  display: inline-block; margin-top: 7px; font-size: 11.5px; font-weight: 650;
  padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border);
  color: var(--muted); background: var(--surface);
}
.tl .who.stoker { color: var(--ember-ink); border-color: rgba(235,104,52,.35); background: rgba(235,104,52,.08); }
.tl .who.you { color: var(--ink-2); }

/* ------------------------------------------------------------ features --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 24px 20px; transition: border-color .18s ease, transform .18s ease;
}
.feature:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feature .ico {
  width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: rgba(235, 104, 52, 0.12); border: 1px solid rgba(235, 104, 52, 0.28);
  color: var(--ember-ink); margin-bottom: 13px;
}
.feature .ico svg { width: 18px; height: 18px; }
.feature h3 { margin: 0 0 7px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.feature.wide { grid-column: 1 / -1; }
.soon-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; padding: 2px 8px; border-radius: 99px;
  border: 1px solid rgba(235, 104, 52, 0.35); color: var(--ember-ink);
  background: rgba(235, 104, 52, 0.08); margin-bottom: 10px;
}
/* "what it runs on" list: label + examples, two or three columns of plain text */
.runs-on {
  list-style: none; margin: 16px 0 2px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 9px 26px;
}
.runs-on li {
  position: relative; padding-left: 20px; font-size: 14px; color: var(--muted); line-height: 1.5;
}
.runs-on li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px;
  border-radius: 99px; background: var(--ember); opacity: .8;
}
.runs-on b { display: block; color: var(--ink-2); font-weight: 620; }

/* --------------------------------------------------------------- mock ---- */
.mock {
  margin: 34px auto 0; max-width: 720px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.mock.slim { margin: 26px auto 0; max-width: 660px; }
.mock table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.mock th {
  text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 6px 8px; border-bottom: 1px solid var(--grid); font-weight: 650;
}
.mock td { padding: 8px; border-bottom: 1px solid var(--grid); color: var(--ink-2); }
.mock tr:last-child td { border-bottom: none; }
.mock td b { color: var(--ink); }
.mock .event { font-size: 12.5px; color: var(--ink-2); padding: 7px 8px 0; }
.mock .event .t { color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.mock .cap { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 10px; }
.pill {
  font-size: 11px; font-weight: 650; padding: 3px 10px; border-radius: 99px;
  border: 1px solid var(--border); color: var(--ink-2); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--muted); }
.pill.good::before { background: var(--good); }
.pill.warn::before { background: var(--warn); }
.pill.crit::before { background: var(--crit); }

/* ------------------------------------------------------------- compare --- */
.compare { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--grid); text-align: left; }
.compare thead th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  font-weight: 700; background: var(--surface-2); white-space: nowrap;
}
.compare thead th.us { color: var(--ember-ink); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--ink); font-weight: 550; }
.compare td { color: var(--ink-2); }
.compare col.us-col, .compare td.us { background: rgba(235, 104, 52, 0.055); }
.compare .yes { color: var(--good); font-weight: 700; }
.compare .no { color: var(--muted); }
.compare .mid { color: var(--warn); }

/* ----------------------------------------------------------- calculator -- */
.calc {
  max-width: 780px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
}
.calc .rows { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calc label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.calc input {
  width: 100%; background: var(--page-2); border: 1px solid var(--grid); color: var(--ink);
  border-radius: 9px; padding: 11px 13px; font: inherit; font-size: 16px;
}
.calc input:focus { border-color: var(--ember); outline: none; }
.calc .out {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--grid);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px;
}
.calc .out .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.calc .out .v { font-size: 28px; font-weight: 780; letter-spacing: -0.03em; margin-top: 2px; }
.calc .out .v.hot { color: var(--ember-ink); }
.calc .note-line { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------- steps --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 99px;
  background: linear-gradient(180deg, #f5793f, var(--ember)); color: #fff;
  font-weight: 750; margin-bottom: 13px;
}
.step h3 { margin: 0 0 6px; font-size: 16.5px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.step code, .cmd {
  background: var(--page-2); border: 1px solid var(--grid); border-radius: 6px;
  padding: 1px 7px; font-size: 12.5px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.step .t { display: block; margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------- pricing --- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; position: relative;
}
.plan.featured {
  border-color: rgba(235, 104, 52, 0.6);
  background: linear-gradient(180deg, rgba(235, 104, 52, 0.07), var(--surface) 55%);
  box-shadow: 0 0 0 1px rgba(235, 104, 52, 0.18), var(--shadow-sm);
}
.plan.featured::before {
  content: "Most popular"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #f5793f, var(--ember)); color: #fff;
  font-size: 11.5px; font-weight: 750; padding: 3px 13px; border-radius: 99px; white-space: nowrap;
}
.plan h3 { margin: 0; font-size: 17px; }
/* min-heights keep the price row and feature lists aligned across cards */
.plan .who { color: var(--muted); font-size: 13px; margin: 4px 0 0; min-height: 38px; }
.plan .price { font-size: 38px; font-weight: 780; margin: 12px 0 0; letter-spacing: -0.035em; }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 12.5px; margin: 2px 0 0; min-height: 36px; }
.plan ul { list-style: none; margin: 18px 0 22px; padding: 0; color: var(--ink-2); font-size: 14.5px; flex: 1; }
.plan li { padding: 5px 0 5px 25px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px;
  border-left: 2px solid var(--good); border-bottom: 2px solid var(--good);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; }
.plan .trial-link { display: block; margin-top: 11px; font-size: 12.5px; color: var(--muted); text-align: center; }
.plan .trial-link:hover { color: var(--ink-2); text-decoration: none; }

.guarantee {
  max-width: 780px; margin: 34px auto 0; display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--good);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px;
}
.guarantee svg { width: 26px; height: 26px; color: var(--good); flex: none; margin-top: 2px; }
.guarantee h3 { margin: 0 0 5px; font-size: 16px; }
.guarantee p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ----------------------------------------------------------------- faq --- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface);
  padding: 2px 18px; margin-bottom: 10px;
}
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  cursor: pointer; font-weight: 620; padding: 15px 26px 15px 0; font-size: 16px;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 21px; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { color: var(--ink-2); margin: 0 0 15px; font-size: 15px; }
.faq pre {
  background: var(--page-2); border: 1px solid var(--grid); border-radius: 10px;
  padding: 14px 16px; overflow-x: auto; font-size: 12.5px; margin: 0 0 15px;
}
.faq code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; }
.faq p code { background: var(--page-2); border: 1px solid var(--grid); border-radius: 6px; padding: 1px 6px; }

/* ----------------------------------------------------------- final CTA --- */
.finale {
  text-align: center; border: 1px solid rgba(235, 104, 52, 0.30); border-radius: 20px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(235, 104, 52, 0.16), transparent 62%),
    var(--surface);
  padding: 56px 28px; box-shadow: var(--shadow-sm);
}
.finale h2 { margin-bottom: 10px; }
.finale p.lead { margin-bottom: 30px; }

/* mobile sticky purchase bar */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 11, 12, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.stickybar .btn { flex: 1; font-size: 15px; padding: 12px 10px; }

/* -------------------------------------------------------------- footer --- */
footer { border-top: 1px solid var(--grid); padding: 46px 0 40px; color: var(--muted); font-size: 13.5px; margin-top: 40px; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
footer .brand-line { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); font-size: 17px; }
footer .brand-line svg { width: 22px; height: 22px; }
footer .tag { margin: 10px 0 0; max-width: 300px; }
footer h4 { color: var(--ink-2); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 10px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0 0 7px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink-2); text-decoration: none; }
footer .base {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--grid);
}
footer .base .spacer { margin-left: auto; }
/* legacy single-row footer (legal pages) */
footer .wrap.row { display: flex; gap: 20px; flex-wrap: wrap; align-items: baseline; }
footer .wrap.row .spacer { margin-left: auto; }

/* ---------------------------------------------------------------- docs --- */
.docs { display: grid; grid-template-columns: 234px 1fr; gap: 44px; padding: 30px 0 80px; }
.docs aside { position: sticky; top: 86px; align-self: start; font-size: 14px; }
.docs aside a { display: block; color: var(--ink-2); padding: 4px 0; }
.docs aside a:hover { color: var(--ink); text-decoration: none; }
.docs aside .h { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; margin: 18px 0 5px; font-weight: 700; }
.docs main { min-width: 0; }
.docs h1 { font-size: 34px; margin: 0 0 6px; }
.docs h2 { font-size: 23px; margin: 44px 0 10px; padding-top: 12px; border-top: 1px solid var(--grid); }
.docs h3 { font-size: 17px; margin: 26px 0 8px; }
.docs h4 { font-size: 15px; margin: 20px 0 6px; color: var(--ink); }
.docs li > pre { margin: 8px 0; }
.docs p, .docs li { color: var(--ink-2); font-size: 15px; }
.docs code { background: var(--surface); border: 1px solid var(--grid); border-radius: 6px; padding: 1px 7px; font-size: 13px; color: var(--ink); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.docs pre { background: var(--surface); border: 1px solid var(--grid); border-radius: 10px; padding: 15px 17px; overflow-x: auto; }
.docs pre code { background: none; border: none; padding: 0; }
.docs table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
.docs th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; padding: 7px 10px; border-bottom: 1px solid var(--grid); }
.docs td { padding: 8px 10px; border-bottom: 1px solid var(--grid); color: var(--ink-2); vertical-align: top; }
.docs td code { white-space: nowrap; }
.note {
  background: var(--surface); border-left: 3px solid var(--ember); border-radius: 0 10px 10px 0;
  padding: 13px 17px; margin: 15px 0; font-size: 14.5px; color: var(--ink-2);
}

/* --------------------------------------------------------------- legal --- */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 0 72px; }
.legal h1 { font-size: 32px; margin: 8px 0 4px; }
.legal .updated { color: var(--muted); font-size: 13px; margin: 0 0 26px; }
.legal h2 { font-size: 19px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin: 4px 0; }
.legal code { background: var(--surface); border: 1px solid var(--grid); border-radius: 6px; padding: 1px 7px; font-size: 13px; color: var(--ink); }

/* -------------------------------------------------------------- motion --- */
/* Hidden only once JS has confirmed it can reveal them again. No JS, no
   IntersectionObserver, or a script error all leave the content plainly visible. */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg .glow { animation: none; opacity: 0.7; }
  .bg .ember, .eyebrow .blip { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 900px) {
  footer .cols { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .docs aside { position: static; }
}
@media (max-width: 720px) {
  nav .links a:not(.btn) { display: none; }
  nav .links a.menu { display: inline-flex; }
  .calc .rows { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 44px 0 18px; }
  .hero p.sub { font-size: 17px; }
  section { padding: 54px 0; }
  section p.lead { font-size: 16px; margin-bottom: 32px; }
  .ctas .btn { width: 100%; }
  .mock { margin-top: 28px; padding: 16px 14px; overflow-x: auto; }
  .mock table { font-size: 12px; }
  .plan { padding: 24px 20px; }
  .finale { padding: 40px 20px; border-radius: 16px; }
  .stickybar { display: flex; }
  body { padding-bottom: 68px; }
  footer { margin-bottom: 0; }
  .timeline::before { left: 11px; }
  .tl { padding-left: 38px; }
  .tl .pip { left: 2px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 31px; }
  .trustbar { font-size: 12.5px; gap: 8px 16px; }
}
