/* GvGPilot public/marketing layer — static/site/site.css
   ==========================================================================
   The public surface's one stylesheet. It is linked from base.html ONLY on
   non-console pages (the `{% if not _console %}` gate), so nothing here can
   leak into the guild consoles; the console's own visual pass adopts the
   shared tokens later (docs/DESIGN_MARKETING.md).

   Rules of this file:
   - It declares NO custom properties. The palette, type scale, spacing,
     motion and elevation tokens all live in the one home:
     web/templates/_tokens.html (the drift guard tests/test_design_tokens.py
     fails any second palette).
   - Elevation is declared once per element: a 1px hairline border OR one of
     the --elev-* shadow-only steps, never a border under a wide soft shadow.
   - Motion is the token family: --dur-1/2/3 on --ease (exponential
     ease-out). base.css already ships the global reduced-motion kill switch;
     this file adds the targeted guards where an animation is more than a
     hover.
   ========================================================================== */

/* ---- Browser surfaces (the parts nobody drew still carry the design) ---- */
html { scrollbar-color: var(--panel-2) var(--bg); }
a { text-underline-offset: .18em; }
input, select, textarea { caret-color: var(--accent-hover); }

/* ---- Shared chrome: hit targets and rhythm on the public pages ---------- */
.topnav .nav-link { min-height: 40px; padding: 8px 12px; }
@media (max-width: 640px) {
  .topnav .nav-link { padding: 6px 7px; font-size: .78rem; min-height: 36px; }
}
button, .btn { min-height: 40px; }
.qchip { min-height: 40px; padding: 8px 13px; }
.legal-foot { padding: var(--sp-5) 24px var(--sp-6); gap: 12px; }
.legal-foot .foot-links { gap: 8px 22px; }

/* ---- Public heading cadence ---------------------------------------------
   Sections are headed by real headings (size, weight, tracking), never by
   tracked uppercase kickers - the heading carries its own weight. */
.sec-h {
  margin: 0; font-family: var(--font-display); font-weight: var(--w-display-face);
  font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.6rem);
  letter-spacing: .01em; line-height: 1; text-transform: uppercase;
  text-wrap: balance;
}
/* The lamp tick: a short soft glow, the same light the boards carry. */
.sec-h::before {
  content: ""; display: block; width: 48px; height: 3px; margin-bottom: 18px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-hover), rgba(119,132,255,.2));
  box-shadow: 0 0 16px 2px rgba(119,132,255,.35);
}
.sec-sub {
  margin: 12px 0 0; max-width: var(--measure);
  color: var(--text-dim); font-size: 1.05rem; line-height: 1.6;
  text-wrap: pretty;
}
.sec-head { margin-bottom: var(--sp-5); }

/* ---- Icons: the vendored sprite (static/site/icons.svg, in-house) ------- */
.ic {
  width: 20px; height: 20px; flex: 0 0 auto;
  display: inline-block; vertical-align: -4px;
}
.ic-sm { width: 16px; height: 16px; }

/* ==========================================================================
   HOME
   ========================================================================== */

/* The hero is a BAND, not a bordered box: the committed art bleeds to the
   viewport edges behind the column; the product render floats on it. */
/* The home board: the hero fills the first screen, the lamp rail runs under
   the nav, the art sits in the right half and the Discord artifact stands
   on a lit stage in front of it. */
.hero {
  position: relative; z-index: 0;
  margin: -28px 0 0;              /* eat main's top padding so the band meets the nav */
  padding: var(--sp-6) 0 var(--sp-7);
  min-height: min(760px, calc(100vh - 58px));
  display: grid; align-items: center;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0 calc(50% - 50vw);
  background:
    linear-gradient(180deg, transparent 60%, rgba(16,21,31,.6) 85%, #10151f 100%),
    linear-gradient(97deg, rgba(11,14,20,.96) 0%, rgba(11,14,20,.84) 38%, rgba(11,14,20,.3) 62%, rgba(11,14,20,.04) 100%),
    radial-gradient(900px 420px at 50% -160px, rgba(119,132,255,.5), transparent 70%),
    radial-gradient(700px 300px at 10% 110%, rgba(47,212,155,.08), transparent 60%),
    url("/static/site/hero.webp") 66% 42% / cover no-repeat,
    var(--bg);
  box-shadow: var(--board-rail);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  animation: hero-art 640ms var(--ease);
  transform-origin: 62% 30%;
}
@keyframes hero-art {
  from { opacity: .4; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}
/* Two columns on one rule: the left column is vertically centred on the
   card (the demo pill floats above it, so the grid centres on the card
   alone), with a 64px gutter reserved from the longest headline line. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: var(--sp-6); align-items: center;
}
.hero-grid > div:first-child { min-width: 0; }
.hero h1 {
  margin: 0 0 22px; max-width: 12ch;
  font-family: var(--font-display); font-weight: var(--w-display-face);
  font-size: clamp(2.6rem, 1.4rem + 3.8vw, 4rem);
  line-height: 1.02; letter-spacing: .01em; text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 12px 40px rgba(0,0,0,.45);
  margin-left: -.03em;
}
.hero .lead {
  margin: 0 0 30px; max-width: 34rem;
  color: var(--text-dim); font-size: 1.12rem; line-height: 1.55;
  text-wrap: pretty;
}
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cta-ghost {
  color: var(--text-dim); font-size: .9rem; font-weight: 600;
  min-height: 40px; display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--dur-1) var(--ease);
}
.cta-ghost:hover { color: var(--text); text-decoration: none; }
.cta-ghost .ic-sm { transition: transform var(--dur-2) var(--ease); }
.cta-ghost:hover .ic-sm { transform: translateX(3px); }
.hero .proof {
  margin: 22px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  color: var(--muted-strong); font-size: .7rem;
  font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.hero .proof .ic-sm { color: var(--live); vertical-align: -3px; }
/* The dot travels with the item that follows it, so a wrapped line never ends on a separator. */
.hero .proof .sep { display: none; }
.hero .proof > span + span::before { content: "\00b7"; opacity: .4; margin-right: 12px; }
@media (max-width: 640px) {
  .hero .proof { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero .proof > span + span::before { content: none; }
}

.hero .hero-note { margin: 14px 0 0; font-size: .86rem; color: var(--text-dim); }
.hero .hero-note a { font-weight: 600; }

/* The Discord artifact: the product's own surface, rendered as proof.
   Shadow-only elevation (no border), a quarter-degree of tilt, and the demo
   flag kept as an in-flow caption so the mock is honest. */
/* The stage: a lamp cone falls on the artifact from above and the floor
   under it catches the light. The pseudo-elements paint light only; the
   embed itself is untouched. */
.dc-visual {
  position: relative;
  width: 100%; justify-self: end;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
  animation: dc-in var(--dur-3) var(--ease);
}
.dc-visual::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0; top: -140px; bottom: -40px;
  background:
    radial-gradient(64% 70% at 50% 0%, rgba(119,132,255,.42), transparent 70%);
}
.dc-visual::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 4%; right: 4%; bottom: -46px; height: 90px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(79,94,240,.55), transparent 72%);
}
@keyframes dc-in {
  from { opacity: .55; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-flag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line-strong);
  color: var(--text-dim); font-size: .66rem; font-weight: 700;
  font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 6px;
  box-shadow: var(--cut);
}
.demo-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); }
.dc-frame {
  width: 100%; position: relative;
  border-radius: 12px; overflow: hidden;
  background: #313338;
  box-shadow: var(--elev-3), 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px -30px rgba(79,94,240,.7);
  transform: rotate(.35deg); font-size: 13px;
}
.dc-titlebar {
  display: flex; align-items: center; gap: 10px;
  background: #1e1f22; padding: 7px 12px; color: #949ba4; font-size: .78rem;
}
.dc-titlebar .hash { color: #6d6f78; font-size: 1.05rem; }
.dc-titlebar .chan { color: #f2f3f5; font-weight: 700; }
.dc-titlebar .topic { border-left: 1px solid #3f4147; padding-left: 10px; font-size: .72rem; }
.dc-titlebar .dots { margin-left: auto; letter-spacing: 3px; color: #6d6f78; }
.dc-chat { background: #313338; padding: 8px 10px 6px; }
.dc-msg { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.dc-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #3b47d8 0%, #5b6cff 60%, #2fd49b 140%);
  display: grid; place-items: center; font-size: 15px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.25);
}
.dc-meta { display: flex; align-items: baseline; gap: 7px; margin-bottom: 3px; flex-wrap: wrap; }
.dc-meta .who { color: #f2f3f5; font-weight: 650; font-size: .92rem; }
.dc-meta .apptag {
  background: #5865F2; color: #fff; font-size: .6rem; font-weight: 700;
  border-radius: 4px; padding: 2px 5px; letter-spacing: .02em;
}
.dc-meta .when { color: #949ba4; font-size: .7rem; }
.dc-embed {
  background: #2b2d31; border-radius: 4px;
  border-left: 4px solid var(--live);
  padding: 9px 11px 9px 9px; max-width: 480px;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.dc-author { display: flex; align-items: center; gap: 7px; color: #f2f3f5; font-size: .72rem; font-weight: 650; margin-bottom: 4px; }
.dc-author .a-ic { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg,#3b47d8,#5b6cff); display: grid; place-items: center; font-size: 10px; }
.dc-e-title { color: #fff; font-weight: 700; font-size: .88rem; margin-bottom: 3px; letter-spacing: -.005em; }
.dc-e-desc { color: #dbdee1; font-size: .76rem; line-height: 1.4; margin-bottom: 8px; }
.dc-e-desc .dc-line { display: block; text-wrap: pretty; }
.dc-e-desc b { color: #fff; font-weight: 650; }
.dc-e-desc code { background: #1e1f22; border-radius: 3px; padding: 0 4px; font-size: .78rem; }
.dc-e-desc i { color: #b5bac1; }
.dc-ic { width: 15px; height: 15px; border-radius: 3px; }
.dc-chip { display: inline-flex; align-items: center; gap: 4px; }
.dc-bar { font-family: var(--font-mono); letter-spacing: 1px; font-size: .78rem; }
.dc-bar .on { color: #4be0ac; }
.dc-bar .off { color: #4e5058; }
.dc-fields { display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 16px; align-content: start; }
.dc-field h5 { margin: 0 0 4px; color: #f2f3f5; font-size: .74rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.005em; }
.dc-field ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.dc-field li { font-size: .74rem; line-height: 1.4; color: #dbdee1; display: flex; align-items: center; gap: 6px; }
.dc-field li .idx { color: #6d6f78; font-family: var(--font-mono); font-size: .64rem; min-width: 14px; font-variant-numeric: tabular-nums; }
.dc-field li b { font-weight: 650; }
.dc-tag { font-family: var(--font-mono); font-size: .64rem; font-weight: 650;
  background: #1e1f22; border-radius: 3px; padding: 0 4px; color: #b5bac1;
  white-space: nowrap; }
.dc-controls { display: flex; flex-direction: column; gap: 5px; margin-bottom: 6px; }
.dc-btn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.dc-btn {
  border: 0; border-radius: 4px; padding: 0 10px; height: 24px; min-width: 78px;
  color: #fff; font-size: .74rem; font-weight: 650; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: default; transition: filter var(--dur-1) var(--ease), transform 60ms var(--ease), opacity var(--dur-2) var(--ease);
}
.dc-btn.success { background: #248046; }
.dc-btn.secondary { background: #4e5058; }
.dc-btn.hit { filter: brightness(1.4); transform: scale(.95); }
.dc-select {
  background: #383a40; border-radius: 4px; height: 25px; padding: 0 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: #949ba4; font-size: .72rem; cursor: default;
  transition: opacity var(--dur-2) var(--ease);
}
.dc-select .chev { font-size: .7rem; color: #949ba4; }
.dc-embed.locked .dc-btn, .dc-embed.locked .dc-select { opacity: .4; filter: saturate(.35); }
.dc-e-foot { display: flex; align-items: center; gap: 6px; color: #949ba4; font-size: .64rem; white-space: nowrap; overflow: hidden; }
.dc-e-foot .f-ic { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg,#3b47d8,#5b6cff); font-size: 8px; display: grid; place-items: center; }
.dc-e-foot .on { color: #4be0ac; }
.dc-e-foot .lock { color: var(--gold); }
.dc-embed.locked { border-left-color: var(--gold); transition: border-color var(--dur-3) var(--ease); }

/* Feature index: a spec sheet, not a card grid. One 20px icon in a quiet
   chip, a weighted title, and one measured line of copy per row. */
.feat-split {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
  gap: var(--sp-6); align-items: start;
}
.feat-index { list-style: none; margin: 0; padding: 0; }
.feat-index li {
  display: grid; grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px; padding: 15px 0;
  box-shadow: var(--seam);
}
.feat-index li:first-child { box-shadow: none; padding-top: 4px; }
.fi {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  color: #fff;
  background: var(--crest); box-shadow: var(--crest-edge);
}
.feat-index li { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
.feat-index h3 {
  margin: 1px 0 5px; font-size: 1.02rem; font-weight: 700;
  letter-spacing: -.01em; text-wrap: balance;
}
.feat-index p { margin: 0; color: var(--text-dim); font-size: .9rem; line-height: 1.55; text-wrap: pretty; max-width: 46ch; }

/* The web-console artifact: the OTHER surface the product lives on, as a
   browser window. Shadow-only elevation, demo-flagged like the Discord
   mock; every name and number in it is demo data. */
.console-visual { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.cm {
  width: 100%; min-width: 0;
  border-radius: 12px; overflow: hidden;
  background: var(--surface);
  box-shadow: var(--elev-3), 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px -30px rgba(79,94,240,.45);
  transform: rotate(-.3deg);
}
.cm-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; background: var(--bg);
  box-shadow: inset 0 -1px 0 var(--line);
}
.cm-dots { display: inline-flex; gap: 6px; }
.cm-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.cm-url {
  font-family: var(--font-mono); font-size: .68rem; color: var(--muted);
  background: var(--panel-2); border-radius: 999px; padding: 3px 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cm-body { padding: 6px 16px 12px; }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 12px; }
.cm-title { font-weight: 800; font-size: .95rem; letter-spacing: -.015em; }
.cm-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--btn); color: #fff; border-radius: 7px;
  box-shadow: var(--btn-edge);
  font-size: .72rem; font-weight: 700; padding: 6px 11px;
}
.cm-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 2px; box-shadow: var(--seam);
}
.cm-row .cm-name { font-weight: 650; font-size: .85rem; }
.cm-row .cm-meta {
  color: var(--muted); font-size: .72rem; font-family: var(--font-mono);
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
.cm-row .spacer { flex: 1; }
.cm-note {
  margin: 10px 2px 4px; color: var(--muted); font-size: .7rem;
  display: flex; align-items: center; gap: 6px;
}
.cm-note .ic-sm { color: var(--live); }

/* The rate card: pricing as a ruled timetable, not four cards. One bordered
   panel, hairline divisions, tabular figures; the cells are whole-cell
   links to /premium. */
.rate-card {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border: 1px solid rgba(255,255,255,.04);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--edge);
}
.rate-card--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rate {
  display: block; min-width: 0; padding: 24px 22px 22px;
  box-shadow: inset 1px 0 0 rgba(0,0,0,.35), inset 2px 0 0 rgba(255,255,255,.03);
  color: inherit; text-decoration: none;
  transition: background var(--dur-2) var(--ease);
}
.rate:first-child { box-shadow: none; }
.rate:hover { background: var(--panel-hover); text-decoration: none; }
/* The founder cell carries the gold tier mark as light, not fill. */
.rate:last-child {
  background: radial-gradient(90% 120% at 100% 0%, var(--gold-lo), transparent 60%);
}
.rate:last-child:hover {
  background: radial-gradient(90% 120% at 100% 0%, var(--gold-lo), transparent 60%), var(--panel-hover);
}
.rate:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: -2px; }
.rate .r-tag {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 0 0 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--gold-lo); border: 1px solid var(--gold-line);
  color: var(--gold); font-size: .62rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
}
/* Every rate cell carries the tag row; non-recommended cells render it
   invisible, so the names and amounts align across the strip. */
.rate .r-tag-none { visibility: hidden; }
.rate .r-name { font-weight: 800; font-size: .95rem; letter-spacing: -.01em; line-height: 1.2; }
.rate .r-term { color: var(--muted); font-size: .74rem; margin-top: 4px; font-family: var(--font-mono); letter-spacing: .04em; }
/* The amount is the one display moment of the pricing region. */
.rate .r-amt {
  margin-top: 18px;
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-size: 2.6rem; font-weight: var(--w-display-face); letter-spacing: 0; line-height: 1;
}
.rate:last-child .r-amt { color: var(--gold); }
.rate .r-eq { margin-top: 5px; color: var(--text-dim); font-size: .72rem; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rate-foot {
  margin-top: var(--sp-3); display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--text-dim); font-size: .85rem;
}
.rate-foot .ic-sm { color: var(--live); }
.rate-foot--long { flex-wrap: nowrap; }
.rate-foot--long .cta-ghost { flex: none; white-space: nowrap; }
@media (max-width: 720px) { .rate-foot--long { flex-wrap: wrap; } }

/* The FAQ is a stack of surfaces, not a ruled list: every question is its own
   card (own panel, own hairline, own elevation), so the open answer reads as
   a lifted panel instead of a row between two hairlines. The chevron comes
   from the sprite. */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: var(--radius);
  box-shadow: var(--edge);
  transition: background-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.faq details:hover { background: var(--surface-hi); box-shadow: var(--edge-hi); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 48px; padding: 14px 16px;
  font-weight: 650; font-size: 1rem; color: var(--text-dim);
  transition: color var(--dur-1) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary:hover, .faq details[open] > summary { color: var(--text); }
.faq summary:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; border-radius: 6px; }
/* The open card steps up: stronger hairline, lifted panel, higher elevation.
   The doubled [open] outranks home.html's page-level `.faq details[open]`
   accent rule - same specificity, later in the document - so the card's own
   elevation is what paints here. */
.faq details[open][open] {
  background: var(--surface-hi);
  box-shadow: var(--edge-hi);
}
.faq-chev { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); transition: transform var(--dur-2) var(--ease), color var(--dur-1) var(--ease); }
.faq summary:hover .faq-chev { color: var(--text); }
.faq details[open] .faq-chev { transform: rotate(180deg); color: var(--text); }
.faq details p { color: var(--text-dim); font-size: .9rem; line-height: 1.62; margin: 0; padding: 0 16px 16px; max-width: var(--measure); text-wrap: pretty; }
.faq .faq-anim { overflow: hidden; transition: height var(--dur-3) var(--ease); }

/* Home section rhythm: deliberate, varied — never the same gap twice. */
.page-home > section { margin-bottom: var(--sp-7); }
.page-home > section.faq-sec { margin-bottom: var(--sp-6); }

/* The quiet note under a block: legal copy stays legal-size and legible
   (text-dim ink, never tiny grey-on-navy fine print). */
.note { color: var(--text-dim); font-size: .85rem; line-height: 1.6; margin-top: 14px; text-wrap: pretty; }
.note a { font-weight: 600; }
.note.qs { font-size: .9rem; }
.note code { background: var(--bg-elev); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; font-size: .82rem; }

/* ==========================================================================
   LEGAL / PROSE PAGES (privacy, terms, refund-faq, docs guide)
   ========================================================================== */
/* Prose pages are sheets on the desk: one lit surface, generous inset,
   the measure kept inside it. */
.legal, main > .doc {
  background: var(--surface); border: 1px solid rgba(255,255,255,.04);
  border-radius: var(--radius-lg); box-shadow: var(--edge);
  padding: var(--sp-5) var(--sp-6);
  box-sizing: content-box;
}
@media (max-width: 760px) {
  .legal, main > .doc { padding: var(--sp-4) var(--sp-3); border-radius: var(--radius); }
}
.legal { max-width: var(--measure); line-height: 1.7; }
.legal h1 {
  font-family: var(--font-display); font-weight: var(--w-display-face);
  font-size: 2.2rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1;
  margin: 0 0 14px; text-wrap: balance;
}
.legal h2 {
  font-size: var(--t-h3); font-weight: 750; letter-spacing: -.01em;
  margin: var(--sp-5) 0 10px; text-wrap: balance;
}
.legal p, .legal li { color: var(--text-dim); font-size: var(--t-body); text-wrap: pretty; }
.legal .lede { color: var(--muted); font-size: 1rem; margin: 0; max-width: var(--measure); }
.legal .table-card {
  border: 0; border-radius: var(--radius);
  margin: 14px 0 8px; overflow: hidden;
  background: var(--surface-deep); box-shadow: var(--edge);
}
.legal table td:first-child { color: var(--text); font-weight: 600; }
.legal .badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.legal .meta {
  color: var(--muted); font-size: .76rem; font-family: var(--font-mono);
  margin: var(--sp-5) 0 0; font-variant-numeric: tabular-nums;
}
.legal-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--sp-3); }
/* The support aside: a quiet surfaced panel, not an accent wash. */
.support-card {
  margin-top: var(--sp-5);
  background: var(--well); border: 0 !important;
  box-shadow: var(--cut) !important;
}
.support-card h2 { margin-top: 14px; }
.support-card p { margin: 6px 0; }

/* ==========================================================================
   DOCS (guide + generated reference)
   ========================================================================== */
.doc { max-width: var(--measure); min-width: 0; line-height: 1.7; overflow-x: auto; }
/* The getting-started guide is a single centred column; reference detail
   pages sit inside .docs-shell's grid instead. */
main > .doc { margin: 0 auto; }
.doc h1 {
  font-family: var(--font-display); font-weight: var(--w-display-face);
  font-size: 2.2rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1;
  margin: 0 0 10px; text-wrap: balance;
}
.doc .lede { color: var(--muted); font-size: 1rem; margin: 0 0 10px; }
.doc-meta {
  color: var(--muted); font-size: .78rem; font-family: var(--font-mono);
  margin: 0 0 8px; font-variant-numeric: tabular-nums;
}
.doc h2 { margin: var(--sp-5) 0 10px; font-size: var(--t-h2); letter-spacing: var(--track-head); font-weight: 750; text-wrap: balance; }
.doc h3 { margin: var(--sp-3) 0 8px; font-size: 1rem; font-weight: 700; }
.doc p, .doc li { color: var(--text-dim); font-size: var(--t-body); text-wrap: pretty; }
.doc > p:first-of-type { margin-top: 0; }
.doc code {
  background: var(--well); border: 0;
  padding: 1px 6px; border-radius: 4px; font-size: .85rem;
  box-shadow: var(--cut);
}
.doc table { margin: 14px 0; }

/* The guide's tab strip sits on the sheet's own column. */
body:has(main > .doc) .docs-tabs {
  max-width: calc(var(--measure) + 2 * var(--sp-6) + 2px);
  margin-left: auto; margin-right: auto;
}
.docs-shell {
  display: grid; grid-template-columns: 216px minmax(0, 1fr);
  gap: 40px; align-items: start;
}
.docs-nav {
  position: sticky; top: 72px; max-height: calc(100vh - 88px);
  overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px;
}
.nav-group + .nav-group { margin-top: 20px; }
.nav-title {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .09em;
  font-weight: 700; color: var(--muted); margin: 0 0 4px; padding: 0 10px;
}
.nav-item {
  display: block; padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--text-dim); font-size: .84rem; line-height: 1.35;
  text-decoration: none !important;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.current {
  background: var(--accent-lo); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.nav-item.mono { font-family: var(--font-mono); font-size: .78rem; }
@media (max-width: 900px) {
  .docs-shell { display: block; }
  .docs-nav {
    position: static; max-height: none; overflow-y: hidden;
    display: flex; align-items: center; gap: 6px; overflow-x: auto;
    padding-bottom: 12px; margin-bottom: 20px;
  }
  .nav-group { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
  .nav-group + .nav-group { margin: 0 0 0 10px; }
  .nav-title { margin: 0; padding: 0; white-space: nowrap; }
  .nav-item {
    background: var(--surface); box-shadow: var(--edge); border-radius: 999px;
    padding: 7px 12px; white-space: nowrap; font-size: .8rem;
  }
  .nav-item.current { border-color: var(--accent-line); box-shadow: none; }
}

.docs-meta {
  color: var(--muted); font-size: .78rem; font-family: var(--font-mono);
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  font-variant-numeric: tabular-nums;
}
.docs-meta b { color: var(--text-dim); font-weight: 650; }
.docs-top { margin-bottom: 28px; }
.docs-filter { margin-bottom: 8px; }
.filter-row { position: relative; max-width: 560px; }
.docs-filter input { width: 100%; height: 44px; font-size: .95rem; padding-right: 52px; }
.docs-filter input::placeholder { color: var(--text-dim); opacity: 1; }
.docs-filter kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: .72rem; color: var(--muted);
  border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 7px; background: var(--panel);
  pointer-events: none;
}
.status-line {
  color: var(--muted); font-size: .76rem; font-family: var(--font-mono);
  overflow-wrap: anywhere;
}
.guide-group { margin-bottom: 24px; }
.guide-group-title { font-size: .95rem; font-weight: 750; color: var(--text); margin: 0 0 10px; }
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.section-card {
  display: block; text-decoration: none !important; padding: 16px;
  color: inherit;
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.section-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.section-card h4 { margin: 0 0 6px; font-size: .95rem; font-weight: 750; color: var(--text); }
.section-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.docs-list { padding: 6px 18px; }
.web-group-list { margin-bottom: 6px; }
.entry {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 10px 2px; box-shadow: var(--seam);
}
.entry:first-child { box-shadow: none; }
.entry .label { font-weight: 650; font-size: .9rem; }
.entry .usage { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.entry .spacer { flex: 1; }
.group-blurb { color: var(--muted); font-size: .85rem; margin: -4px 0 12px; max-width: var(--measure); }
.web-sub { font-size: .84rem; font-weight: 750; color: var(--text-dim); margin: 20px 0 6px; }
.docs-empty { margin-bottom: 20px; }
.docs-foot {
  margin-top: 40px; padding-top: 16px; box-shadow: var(--seam);
  color: var(--muted); font-size: .8rem;
}
.doc-h2 {
  font-size: var(--t-h3); font-weight: 750; letter-spacing: -.01em;
  color: var(--text); margin: var(--sp-4) 0 10px; text-wrap: balance;
}
.doc-head { margin-bottom: 22px; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 6px; }
.console {
  background: var(--well); border: 0;
  border-radius: var(--radius-sm); margin: 14px 0; overflow: hidden;
  box-shadow: var(--cut);
}
.console-label {
  padding: 7px 14px; box-shadow: var(--seam);
  font-family: var(--font-mono); font-size: .64rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.console-line {
  padding: 9px 14px; font-family: var(--font-mono); font-size: .84rem;
  color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere;
  box-shadow: var(--seam);
}
.doc-notes { margin: 12px 0 0; }
.spec { margin: 6px 0 0; }
.spec dt {
  color: var(--muted); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .07em; font-weight: 700; margin-top: 12px;
}
.spec dd { margin: 3px 0 0; font-size: .88rem; }
.related-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ==========================================================================
   SMALL PUBLIC SURFACES (status, error, invite chain, signup, buy, banned)
   ========================================================================== */

/* Status */
.status-card { max-width: 640px; }
.status-card h1 { font-family: var(--font-display); font-weight: var(--w-display-face); font-size: 2.1rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1; margin: 12px 0 6px; text-wrap: balance; }
.status-card .lede { color: var(--muted); font-size: .95rem; margin: 0 0 20px; }
.status-grid {
  display: grid; grid-template-columns: max-content 1fr; gap: 12px 18px;
  margin: 0 0 20px;
}
.status-grid dt {
  color: var(--muted); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; align-self: center; font-weight: 700;
}
.status-grid dd {
  margin: 0; font-family: var(--font-mono); font-size: .9rem;
  overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}

/* Error page (403/404/500 share one calm card) */
.err-wrap { max-width: 560px; margin: var(--sp-6) auto; text-align: center; padding: var(--sp-5) var(--sp-4); }
.err-code {
  color: var(--muted); font-size: .78rem; letter-spacing: .1em;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.err-wrap h1 { margin: 10px 0 8px; font-family: var(--font-display); font-weight: var(--w-display-face); font-size: 2.1rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1; text-wrap: balance; }
.err-wrap p { color: var(--text-dim); font-size: .9rem; margin: 0 0 18px; text-wrap: pretty; }
.err-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
/* Plain row of qchips/links (status page actions). */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Invite chain: one card component, the step pills carry the state.
   (Named invite-*: premium.html owns a .steps/.step grid of its own for the
   activation block, and the two components must never leak into each other.) */
.invite-card {
  max-width: 640px; margin: var(--sp-5) auto; text-align: center;
  background: var(--surface); border: 1px solid rgba(255,255,255,.04);
  border-radius: var(--radius-lg); padding: 48px 36px;
  box-shadow: var(--edge);
}
.invite-card h1 { margin: 0 0 12px; font-family: var(--font-display); font-weight: var(--w-display-face); font-size: 2.2rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1; text-wrap: balance; }
.invite-card .sub { color: var(--muted); margin: 0 0 28px; text-wrap: pretty; }
.invite-steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.invite-step {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted); font-size: .82rem; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.05); background: var(--surface); box-shadow: var(--edge);
  font-weight: 600; font-variant-numeric: tabular-nums;
  transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.invite-step .ic-sm { color: var(--live); }
.invite-step.done { color: var(--live); border-color: var(--live-line); background: var(--live-lo); }
.invite-step.now {
  color: #fff; background: var(--btn); border-color: transparent; font-weight: 700;
  box-shadow: var(--btn-edge);
}
.bot-row { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.bot-chip {
  background: var(--well); border: 0; box-shadow: var(--cut);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: .85rem;
  display: inline-flex; align-items: center; gap: 9px;
}
.bot-chip .ic { color: var(--accent-hover); }
.invite-card .why {
  color: var(--muted); font-size: .82rem; margin: 24px auto 0; line-height: 1.6;
  max-width: 28rem; text-wrap: pretty;
}
.invite-card .count { color: var(--muted); font-size: .82rem; margin-top: 16px; font-variant-numeric: tabular-nums; }
.next-steps { text-align: left; max-width: 30rem; margin: 0 auto 28px; color: var(--text-dim); font-size: .9rem; line-height: 1.75; }
.next-steps b { color: var(--text); }
.next-steps code { background: var(--bg-elev); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; font-size: .84rem; }

/* Signup landing */
.page-signup { max-width: 720px; margin: 0 auto; }
.tagline {
  color: var(--muted); font-size: 1.02rem; margin: 0 auto 32px;
  max-width: 34rem; text-wrap: pretty;
}
.signup-head { text-align: center; margin-bottom: 36px; }
.signup-head .wordmark { font-size: 1.3rem; margin-bottom: 14px; }
.signup-head h1 {
  font-family: var(--font-display); font-weight: var(--w-display-face);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); margin: 0 0 12px;
  letter-spacing: .01em; line-height: .98; text-transform: uppercase;
  text-wrap: balance;
}
.signup-cta { text-align: center; }
.signup-cta .btn { padding: 14px 30px; font-size: 1rem; min-height: 50px; }
.signup-cta .note { text-align: center; }
.pay-strip {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 auto 24px; padding: 14px 20px; max-width: 560px;
  background: var(--surface); border: 1px solid rgba(255,255,255,.04); border-radius: var(--radius);
  box-shadow: var(--edge);
  color: var(--text-dim); font-size: .9rem; text-align: center;
}
.pay-strip .ic { color: var(--live); }
.pay-strip b { color: var(--text); font-weight: 700; }
.claim-form {
  display: none; margin-top: 24px; background: var(--surface);
  border: 1px solid rgba(255,255,255,.04); box-shadow: var(--edge); border-radius: var(--radius); padding: 24px;
  text-align: left;
}
.claim-form input { width: 100%; margin: 6px 0 16px; }
.claim-form button { width: 100%; }
.claim-result { margin-top: 14px; font-size: .92rem; min-height: 1.2em; }

/* Buy */
.buy-wrap { max-width: 560px; margin: 0 auto; }
.buy-kind { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin: 0 0 4px; }
.buy-pkg { font-family: var(--font-display); font-weight: var(--w-display-face); font-size: 1.9rem; margin: 0 0 16px; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.buy-pkg b { font-variant-numeric: tabular-nums; }
.buy-form label { display: block; font-size: .84rem; color: var(--muted); margin: 14px 0 6px; }
.buy-form select, .buy-form input { width: 100%; }
.buy-form button { width: 100%; min-height: 46px; margin-top: 18px; font-weight: 700; }
.buy-note { color: var(--text-dim); font-size: .82rem; margin-top: 14px; line-height: 1.6; }

/* Banned */
.ban-wrap { max-width: 560px; margin: 8vh auto 0; text-align: center; }
.ban-mark {
  width: 52px; height: 52px; margin: 0 auto 18px;
  border-radius: 50%; border: 1px solid rgba(242,86,79,.4);
  background: var(--red-dim); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800;
}
.ban-wrap h1 { font-family: var(--font-display); font-weight: var(--w-display-face); font-size: 2.2rem; margin: 0 0 12px; letter-spacing: .01em; text-transform: uppercase; line-height: 1; text-wrap: balance; }
.ban-wrap p { color: var(--text-dim); margin: 0 0 6px; line-height: 1.6; }
.ban-wrap .sub { color: var(--muted); font-size: .88rem; margin-bottom: 26px; }
.ban-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 940px) {
  .hero { padding: var(--sp-5) 0 var(--sp-6); min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero h1 { max-width: 14ch; }
  .dc-visual { justify-self: center; }
  .feat-split { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .rate-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate:nth-child(3) { box-shadow: var(--seam); }
  .rate:nth-child(4) { box-shadow: var(--seam), inset 1px 0 0 rgba(0,0,0,.35); }
}
@media (max-width: 560px) {
  .rate-card { grid-template-columns: minmax(0, 1fr); }
  .rate { box-shadow: var(--seam); }
  .rate:first-child { box-shadow: none; }
  .invite-card { padding: 36px 22px; }
}

/* ==========================================================================
   MOTION GUARDS — base.css already kills animation/transition durations
   globally under prefers-reduced-motion; these cover the rest.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .dc-visual { animation: none; }
  .faq .faq-anim { transition: none; }
  .faq details, .faq summary { transition: none; }
  .faq-chev { transition: none; }
  .section-card:hover { transform: none; }
  .cta-ghost:hover .ic-sm { transform: none; }
}
