/* The public site (server/site.mjs): the home page and the legal pages. */
@font-face { font-family: 'Mona'; src: url(/site/mona-sans.woff2) format('woff2-variations'); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: 'Fragment'; src: url(/site/fragment-mono.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --ink: #0b0b0f;
  --ink-2: #3a3b45;
  --paper: #ffffff;
  --mist: #eef1f8;
  --line: #d9dde8;
  /* The heat path: cold blue, through violet, to hot vermilion (never through beige). */
  --cold: #9db8ff;
  --mid: #c08bff;
  --hot: #ff5a3c;
  --warm: #ffcf4a;
  --hero: var(--cold);
  --radius: 18px;
  --mono: 'Fragment', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Mona', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; font-stretch: 100%; overflow-x: hidden; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; line-height: 1; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-stretch: 110%; text-decoration: none; border: 2px solid var(--ink); transition: transform .15s ease, background .15s ease, color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn.big { min-height: 58px; padding: 0 28px; font-size: 18px; }
.btn.dark { background: var(--ink); color: #fff; }

/* Top bar */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.top.solid { position: sticky; top: 0; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { width: min(1180px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.top nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.top nav a:not(.btn) { text-decoration: none; }
.top nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-stretch: 85%; font-size: 26px; letter-spacing: -.02em; }
.wordmark svg { width: 32px; height: 32px; }
.wordmark .brand-word { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 760; font-variation-settings: 'wdth' 112; }

/* Hero: the background follows the lead's heat (site.js sets --hero). */
.hero { position: relative; background: var(--hero); transition: background-color 1.2s ease; padding: 120px 0 72px; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(closest-side, rgba(255, 255, 255, .35), transparent); pointer-events: none; }
.hero-in { position: relative; z-index: 1; width: min(1180px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(56px, 13.5vw, 150px); font-weight: 900; font-stretch: 75%; line-height: .86; letter-spacing: -.035em; text-wrap: balance; }
.lede { margin-top: 26px; font-size: clamp(18px, 2vw, 21px); max-width: 34em; color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { margin-top: 14px; font-size: 15px; color: var(--ink-2); }

/* The lead card */
.lead { margin: 0; background: var(--paper); border-radius: 24px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(11, 11, 15, .45), 0 0 0 2px var(--ink); }
.lead-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lead-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lead-name strong { display: block; font-size: 18px; font-stretch: 110%; }
.lead-name small { display: block; color: var(--ink-2); font-size: 14px; }
.lead-logo { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-stretch: 85%; }
.stage { flex: none; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; }
.heat { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--mist); }
.heat-head { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.heat-num { font-family: var(--sans); font-size: 56px; font-weight: 900; font-stretch: 75%; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.heat-bar { margin-top: 10px; height: 12px; border-radius: 999px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--ink); }
/* Where the lead ends (the page allows no inline styles); site.js moves it as the heat climbs. */
.heat-bar i { display: block; width: 96%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cold), var(--mid) 50%, var(--hot)); transition: width .9s cubic-bezier(.22, 1, .36, 1); }
.signals { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.signals li { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; grid-template-areas: 'at what add' 'at detail add'; column-gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); }
.signals li:first-child { border-top: 0; }
.signals time { grid-area: at; font-family: var(--mono); font-size: 13px; color: var(--ink-2); padding-top: 2px; }
.signals b { grid-area: what; font-size: 16px; font-stretch: 105%; }
.signals span { grid-area: detail; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.signals em { grid-area: add; align-self: center; font-style: normal; font-family: var(--mono); font-size: 14px; padding: 4px 8px; border-radius: 8px; background: var(--ink); color: #fff; }
.lead figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
/* While playing, the whole journey shows, dimmed, and each signal lights up in its turn. */
.signals li { border-radius: 12px; transition: opacity .5s ease, background-color .5s ease; }
.playing .signals li { opacity: .26; }
.playing .signals li em { background: var(--ink-2); }
.playing .signals li.on { opacity: 1; }
.playing .signals li.on em { background: var(--ink); }
.playing .signals li.now { background: #fff1ec; }
.playing .signals li.now em { background: var(--hot); color: var(--ink); }

/* How it works */
.how { background: var(--ink); color: #fff; padding: 96px 0; }
.how h2, .prices h2, .last h2 { font-size: clamp(40px, 7vw, 84px); font-weight: 900; font-stretch: 75%; letter-spacing: -.03em; line-height: .92; text-wrap: balance; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.steps li { border-top: 2px solid rgba(255, 255, 255, .25); padding-top: 22px; }
.step-n { display: block; font-family: var(--mono); font-size: 15px; color: var(--mid); }
.steps li:nth-child(1) .step-n { color: var(--cold); }
.steps li:nth-child(3) .step-n { color: var(--warm); }
.steps li:nth-child(4) .step-n { color: var(--hot); }
.steps h3 { margin-top: 14px; font-size: 28px; font-weight: 800; font-stretch: 85%; letter-spacing: -.01em; }
.steps p { margin-top: 10px; color: #c9cad3; }

/* Prices */
.prices { padding: 96px 0; background: var(--paper); }
.prices-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.cycle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--mist); border: 1.5px solid var(--ink); }
.cycle button { font: inherit; font-weight: 700; font-size: 15px; border: 0; background: transparent; color: var(--ink); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.cycle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.prices-lede { margin-top: 18px; font-size: 19px; }
.founding { margin-top: 14px; display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--warm); font-weight: 600; }
.founding b { font-family: var(--mono); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.plans { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--paper); }
.plan-pick { background: var(--ink); color: #fff; box-shadow: 10px 10px 0 var(--hot); }
.plan-pick .btn { background: var(--hot); border-color: var(--hot); color: var(--ink); }
.plan header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 32px; font-weight: 900; font-stretch: 85%; }
.plan header p { font-family: var(--mono); font-size: 13px; opacity: .75; }
.amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.amount .cur { font-weight: 700; font-size: 20px; }
.amount .num { font-size: 76px; font-weight: 900; font-stretch: 75%; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.amount .per { font-size: 15px; opacity: .8; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; flex: 1; }
.plan li { padding-left: 24px; position: relative; font-size: 16px; }
.plan li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 6px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); }
.plan .btn { align-self: stretch; }
.price-note { margin-top: 22px; font-size: 15px; color: var(--ink-2); }

/* Last call */
.last { background: var(--hot); padding: 88px 0; }
.last .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: end; justify-content: space-between; }
.last h2 { max-width: 12em; }

/* Footer */
.foot { background: var(--ink); color: #fff; padding: 56px 0 40px; }
.foot-in { width: min(1180px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.foot-brand p { margin-top: 12px; color: #c9cad3; }
.foot h2 { font-family: var(--mono); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #c9cad3; }
.foot ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-small { font-size: 14px; color: #a3a5b1; }

/* Legal pages */
.legal { background: var(--paper); }
.legal-in { width: min(1180px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0 80px; }
.legal aside { font-size: 15px; }
.docs ul, .toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.docs a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.docs a:hover { background: var(--mist); }
.docs a[aria-current="page"] { background: var(--ink); color: #fff; }
.toc { display: none; margin-top: 28px; }
.toc h2 { font-family: var(--mono); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 10px; }
.toc a { display: block; padding: 4px 12px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.doc { min-width: 0; max-width: 46em; }
.doc h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 900; font-stretch: 75%; letter-spacing: -.03em; line-height: .92; margin-bottom: 28px; }
.doc h2 { font-size: 30px; font-weight: 800; font-stretch: 85%; margin: 48px 0 14px; scroll-margin-top: 96px; }
.doc h3 { font-size: 21px; font-weight: 800; font-stretch: 95%; margin: 30px 0 10px; scroll-margin-top: 96px; }
.doc p, .doc ul, .doc ol { margin: 12px 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { text-underline-offset: 3px; }
.doc code { font-family: var(--mono); font-size: .88em; background: var(--mist); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.doc blockquote { margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--warm); background: #fff8e1; border-radius: 0 12px 12px 0; font-size: 15px; }
.doc blockquote p { margin: 6px 0; }
.doc .mark { font-family: var(--mono); font-size: .82em; font-weight: 400; letter-spacing: .03em; background: var(--warm); padding: 1px 6px; border-radius: 5px; }
.doc .table { overflow-x: auto; margin: 18px 0; border: 1.5px solid var(--ink); border-radius: 12px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); min-width: 140px; }
.doc thead th { border-top: 0; background: var(--mist); font-weight: 700; }
.doc-list { font-size: 20px; font-weight: 700; }

/* 404 */
.missing { min-height: 100vh; display: grid; place-items: center; background: var(--cold); }
.missing .wrap { display: grid; gap: 18px; justify-items: start; padding: 40px 0; }
.missing h1 { font-size: clamp(56px, 12vw, 120px); font-weight: 900; font-stretch: 75%; letter-spacing: -.03em; }

@media (max-width: 719px) {
  .top nav a:not(.btn) { display: none; }
  .hero { padding-top: 104px; }
  .signals li { grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 10px; }
  .plan-pick { box-shadow: 6px 6px 0 var(--hot); }
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
  .foot-in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .foot-small { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .hero { padding: 150px 0 110px; min-height: min(100vh, 980px); display: flex; align-items: center; }
  .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .legal-in { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 56px; }
  .legal aside { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
  .toc { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
