/* Questproof public site styles. Built from docs/design/prototype/assets/style.css and p2.css (Gate A). Self-hosted font only: no third-party requests. */
/* Questproof prototype styles. Tokens mirror docs/design/design-system.md. */
:root {
  /* colour */
  --ink: #1a2233;          /* body text, 15.9:1 on white */
  --ink-muted: #4a5568;    /* secondary text, 7.5:1 on white */
  --line: #d5dae3;         /* borders */
  --line-strong: #8a94a6;  /* input borders, 3.1:1 (non-text) */
  --bg: #f5f6f8;
  --surface: #ffffff;
  --primary: #2747a8;      /* white text 7.9:1 */
  --primary-hover: #1e3a8a;
  --primary-soft: #e8edfa;
  --focus: #f0b429;
  --ok-ink: #1d6b3a;  --ok-bg: #e5f4ea;  --ok-line: #8cc7a0;
  --warn-ink: #7a4300; --warn-bg: #fff3dc; --warn-line: #e0a040;
  --bad-ink: #a32020;  --bad-bg: #fdecec;  --bad-line: #e6a3a3;
  --info-ink: #1f4e8c; --info-bg: #e7effa; --info-line: #9bb8e0;
  --neutral-ink: #3d4656; --neutral-bg: #eef0f4; --neutral-line: #c3c9d4;
  --tile-ink: #6b4e00; --tile-bg: #fbf3dc;  /* icon tile accent, freelancer side only */

  /* type */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-xs: 13px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px;

  /* spacing (4 px grid) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --radius: 10px; --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --tap: 44px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: var(--fs-md); line-height: 1.5; color: var(--ink); background: var(--bg); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--s3); }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--s3); }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
ul { margin: 0 0 var(--s3); padding-left: 1.25em; }
.muted { color: var(--ink-muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: var(--fs-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- freelancer app shell ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1160px; margin: 0 auto; padding: 0 var(--s4); min-height: 60px; display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.brand { font-weight: 700; font-size: var(--fs-lg); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--primary); color: #fff; display: inline-grid; place-items: center; font-size: 14px; font-weight: 800; }
.nav { display: flex; gap: var(--s1); margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s3); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-hover); font-weight: 600; }
.plan-badge { font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--neutral-line); background: var(--neutral-bg); color: var(--neutral-ink); border-radius: 999px; padding: 2px 10px; }

.page { max-width: 1160px; margin: 0 auto; padding: var(--s5) var(--s4) var(--s7); }
.page-narrow { max-width: 760px; }
.page-head { display: flex; gap: var(--s4); align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--s5); }
.page-head h1 { margin-bottom: var(--s1); }
.crumb { font-size: var(--fs-sm); margin-bottom: var(--s2); }
.crumb a { display: inline-flex; min-height: var(--tap); align-items: center; }
.actions { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s5); align-items: start; }
.layout > aside { grid-column: 2; grid-row: 1; position: sticky; top: var(--s4); display: grid; gap: var(--s4); }
.layout > div { grid-column: 1; grid-row: 1; min-width: 0; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .layout > aside, .layout > div { grid-column: 1; grid-row: auto; position: static; }
}
.totals { column-gap: 0; }
.totals dt, .totals dd { padding-right: var(--s3); }
.totals dd { padding-right: 0; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s5); }
.card + .card { margin-top: var(--s4); }
.section { margin-bottom: var(--s5); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.formal { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-muted); }
.tile-icon { width: 28px; height: 28px; border-radius: 7px; background: var(--tile-bg); color: var(--tile-ink); display: inline-grid; place-items: center; flex: none; }
.tile-icon svg { width: 18px; height: 18px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: var(--s4) 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s4); border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: var(--fs-md); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--primary-hover); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-soft); }
.btn-quiet { background: transparent; color: var(--primary-hover); padding: 0 var(--s3); }
.btn-quiet:hover { background: var(--primary-soft); }
.btn-danger { background: var(--surface); color: var(--bad-ink); border-color: var(--bad-ink); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-warn { background: var(--surface); color: var(--warn-ink); border-color: var(--warn-ink); }
.btn-sm { font-size: var(--fs-sm); padding: 0 var(--s3); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- forms ---------- */
.field { margin-bottom: var(--s4); }
.field label, .field .label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s1); }
.field .hint { font-size: var(--fs-sm); color: var(--ink-muted); margin: var(--s1) 0 0; }
.input, select.input, textarea.input { width: 100%; min-height: var(--tap); padding: 10px var(--s3); font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
textarea.input { min-height: 88px; resize: vertical; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { white-space: nowrap; display: grid; place-items: center; padding: 0 var(--s3); background: var(--neutral-bg); border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-size: var(--fs-sm); color: var(--ink-muted); }
.input-prefix .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-suffix { display: flex; }
.input-suffix .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-suffix span { display: grid; place-items: center; padding: 0 var(--s3); background: var(--neutral-bg); border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--fs-sm); color: var(--ink-muted); }
.row { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.check { display: flex; gap: var(--s3); align-items: flex-start; min-height: var(--tap); padding: var(--s2) 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.list-edit { list-style: none; padding: 0; margin: 0 0 var(--s2); display: grid; gap: var(--s2); }
.list-edit li { display: flex; gap: var(--s2); }
.list-edit .input { flex: 1; }
.icon-btn { min-width: var(--tap); min-height: var(--tap); display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); color: var(--ink-muted); cursor: pointer; font: inherit; }
fieldset { border: 0; margin: 0 0 var(--s4); padding: 0; min-width: 0; }
legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s2); padding: 0; }

/* segmented choice (radio cards) */
.seg { display: flex; gap: var(--s2); flex-wrap: wrap; }
.seg label { position: relative; display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s4); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-size: var(--fs-sm); font-weight: 600; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border: 2px solid var(--primary); background: var(--primary-soft); color: var(--primary-hover); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg label:has(input:checked)::before { content: "\2713"; font-weight: 800; }

/* template picker */
.tpl-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tpl { position: relative; display: block; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: var(--s4); background: var(--surface); cursor: pointer; min-height: 96px; }
.tpl input { position: absolute; opacity: 0; }
.tpl strong { display: block; margin-bottom: var(--s1); }
.tpl:has(input:checked) { border: 2px solid var(--primary); background: var(--primary-soft); }
.tpl:has(input:checked) strong::after { content: " \2713 Selected"; font-size: var(--fs-xs); color: var(--primary-hover); }
.tpl:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- chips (text + symbol, never colour alone) ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.chip::before { font-weight: 800; }
.chip-inscope   { color: var(--ok-ink); background: var(--ok-bg); border-color: var(--ok-line); }
.chip-inscope::before { content: "\2713"; }
.chip-revision  { color: var(--info-ink); background: var(--info-bg); border-color: var(--info-line); }
.chip-revision::before { content: "\21BB"; }
.chip-outscope  { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-line); }
.chip-outscope::before { content: "+"; }
.chip-draft     { color: var(--neutral-ink); background: var(--neutral-bg); border-color: var(--neutral-line); }
.chip-draft::before { content: "\270E"; }
.chip-sent      { color: var(--info-ink); background: var(--info-bg); border-color: var(--info-line); }
.chip-sent::before { content: "\25F7"; }
.chip-approved, .chip-accepted { color: var(--ok-ink); background: var(--ok-bg); border-color: var(--ok-line); }
.chip-approved::before, .chip-accepted::before { content: "\2713"; }
.chip-declined  { color: var(--bad-ink); background: var(--bad-bg); border-color: var(--bad-line); }
.chip-declined::before { content: "\2715"; }
.chip-withdrawn { color: var(--neutral-ink); background: var(--surface); border-color: var(--neutral-line); border-style: dashed; }
.chip-withdrawn::before { content: "\2212"; }
.chip-notaccepted { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-line); }
.chip-notaccepted::before { content: "!"; }
.chip-archived  { color: var(--neutral-ink); background: var(--neutral-bg); border-color: var(--neutral-line); }
.chip-archived::before { content: "\25A4"; }
.chip-over { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-line); }
.chip-over::before { content: "!"; }

/* ---------- notices ---------- */
.notice { display: flex; gap: var(--s3); align-items: flex-start; border: 1px solid; border-left-width: 5px; border-radius: var(--radius-sm); padding: var(--s3) var(--s4); margin-bottom: var(--s4); font-size: var(--fs-sm); }
.notice p:last-child { margin-bottom: 0; }
.notice .ic { font-weight: 800; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: var(--warn-ink); color: var(--ink); }
.notice-warn .ic { background: var(--warn-ink); }
.notice-bad { background: var(--bad-bg); border-color: var(--bad-line); border-left-color: var(--bad-ink); }
.notice-bad .ic { background: var(--bad-ink); }
.notice-info { background: var(--info-bg); border-color: var(--info-line); border-left-color: var(--info-ink); }
.notice-info .ic { background: var(--info-ink); }
.notice-ok { background: var(--ok-bg); border-color: var(--ok-line); border-left-color: var(--ok-ink); }
.notice-ok .ic { background: var(--ok-ink); }

/* ---------- project card ---------- */
.cards { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.pcard { display: flex; flex-direction: column; gap: var(--s3); text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s4) var(--s5); }
.pcard:hover { border-color: var(--primary); }
.pcard h3 { margin: 0; color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pcard .client { font-size: var(--fs-sm); color: var(--ink-muted); }
.pcard dl { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--s3); margin: 0; font-size: var(--fs-sm); }
.pcard dt { color: var(--ink-muted); }
.pcard dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.pcard dd.total { font-weight: 700; font-size: var(--fs-md); }
.pcard .flags { display: flex; gap: var(--s2); flex-wrap: wrap; }
.pcard.archived { box-shadow: none; background: #fafbfc; }
.pcard.archived h3 { color: var(--ink); }

/* ---------- totals block ---------- */
.totals { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s3); font-variant-numeric: tabular-nums; }
.totals dt { color: var(--ink-muted); font-size: var(--fs-sm); }
.totals dd { margin: 0; text-align: right; }
.totals .grand { border-top: 2px solid var(--ink); padding-top: var(--s2); font-weight: 700; font-size: var(--fs-xl); color: var(--ink); }
.totals .pending { color: var(--info-ink); }

/* ---------- revision counter ---------- */
.rev { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); background: var(--surface); }
.rev-line { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); font-weight: 700; }
.pips { display: flex; gap: 6px; margin: var(--s3) 0; flex-wrap: wrap; }
.pip { width: 26px; height: 26px; border-radius: 6px; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--ink-muted); }
.pip.used { background: var(--info-ink); border-color: var(--info-ink); color: #fff; }
.pip.extra { background: var(--warn-bg); border-color: var(--warn-ink); color: var(--warn-ink); border-style: dashed; }
.rev.over { border-color: var(--warn-line); background: var(--warn-bg); }
.rev.over .rev-line { color: var(--warn-ink); }

/* ---------- scope list ---------- */
.scope h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); margin: var(--s4) 0 var(--s2); }
.scope ul.included li::marker { content: "\2713  "; color: var(--ok-ink); }
.scope ul.excluded li::marker { content: "\2715  "; color: var(--bad-ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); margin: var(--s4) 0 0; }
.fact { background: var(--bg); border-radius: var(--radius-sm); padding: var(--s3); }
.fact dt { font-size: var(--fs-xs); color: var(--ink-muted); font-weight: 600; }
.fact dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- request rows ---------- */
.reqs { list-style: none; padding: 0; margin: 0; }
.req { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--s2) var(--s4); align-items: center; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.req:first-child { border-top: 0; }
.req .when { font-size: var(--fs-sm); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.req .what { min-width: 0; }
.req .what p { margin: 0; }
.req .meta { font-size: var(--fs-sm); color: var(--ink-muted); }
.req .side { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .req { grid-template-columns: 1fr; }
  .req .side { justify-content: flex-start; }
}

/* ---------- change order card ---------- */
.co { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); background: var(--surface); }
.co + .co { margin-top: var(--s3); }
.co-head { display: flex; gap: var(--s2) var(--s3); align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: var(--s2); }
.co-head .id { font-weight: 700; }
.co-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: start; }
.co-body p { margin: 0 0 var(--s1); }
.co-amount { text-align: right; font-weight: 700; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.co-amount .small { font-weight: 400; display: block; }
.co.is-withdrawn, .co.is-declined { background: #fafbfc; }
.co.is-withdrawn .co-amount { text-decoration: line-through; color: var(--ink-muted); }
.co-actions { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }

/* ---------- dialog (static) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15, 20, 30, .55); display: grid; place-items: center; padding: var(--s4); z-index: 10; overflow-y: auto; }
.dialog { background: var(--surface); border-radius: var(--radius); max-width: 560px; width: 100%; padding: var(--s5); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.dialog h2 { font-size: var(--fs-xl); }
.copybox { display: flex; gap: var(--s2); }
.copybox .input { font-family: var(--mono); font-size: var(--fs-sm); }
@media (max-width: 480px) { .copybox { flex-direction: column; } }

/* ---------- tables (wording table etc.) ---------- */
table.simple { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
table.simple th, table.simple td { text-align: left; border-bottom: 1px solid var(--line); padding: var(--s2) var(--s3); vertical-align: top; }

/* ---------- auth screens ---------- */
.auth { max-width: 420px; margin: var(--s7) auto; padding: 0 var(--s4); }
.auth .brand { margin-bottom: var(--s4); }

/* =========================================================
   Client page (formal, phone first, formal wording)
   ========================================================= */
.client { font-size: 17px; background: var(--bg); }
.client-wrap { max-width: 620px; margin: 0 auto; padding: var(--s4) var(--s4) var(--s6); }
.client-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0 var(--s4); }
.client-logo { width: 44px; height: 44px; border-radius: 10px; background: var(--neutral-bg); border: 1px dashed var(--line-strong); display: grid; place-items: center; font-size: 10px; color: var(--ink-muted); text-align: center; line-height: 1.1; flex: none; }
.client-head .who { font-weight: 700; }
.client-head .who span { display: block; font-weight: 400; font-size: var(--fs-sm); color: var(--ink-muted); }
.client h1 { font-size: 26px; margin-bottom: var(--s2); }
.client .lead { color: var(--ink-muted); margin-bottom: var(--s4); }
.keyfacts { display: grid; gap: var(--s2); margin: 0 0 var(--s4); }
.keyfact { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s3) var(--s4); }
.keyfact dt { color: var(--ink-muted); font-size: var(--fs-md); }
.keyfact dd { margin: 0; font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; text-align: right; }
.keyfact.main { border: 2px solid var(--ink); }
.keyfact.main dd { font-size: 24px; }
.client .card { padding: var(--s4) var(--s5); }
.client .card h2 { font-size: 19px; margin-bottom: var(--s2); }
.client .card + .card { margin-top: var(--s3); }
.decision { margin-top: var(--s4); border: 2px solid var(--primary); }
.decision .btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s3); }
.decision .btns .btn { min-height: 52px; font-size: 17px; }
.decision .btns.single { grid-template-columns: 1fr; }
.decision details { margin: var(--s2) 0; }
.decision summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; color: var(--primary-hover); font-weight: 600; }
.disclaimer { font-size: var(--fs-sm); color: var(--ink-muted); border-top: 1px solid var(--line); margin-top: var(--s4); padding-top: var(--s3); }
.client-foot { text-align: center; font-size: var(--fs-sm); color: var(--ink-muted); margin-top: var(--s5); }
.client-foot nav { display: flex; gap: var(--s1); justify-content: center; flex-wrap: wrap; }
.client-foot nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s2); color: var(--ink-muted); }
.made-with { display: inline-block; margin-bottom: var(--s2); font-weight: 600; color: var(--ink-muted); }
.decided { border: 2px solid var(--ok-line); background: var(--ok-bg); }
.decided.no { border-color: var(--bad-line); background: var(--bad-bg); }
.decided .big { font-size: 20px; font-weight: 700; margin-bottom: var(--s1); }
.state-page { text-align: center; padding: var(--s7) var(--s4); max-width: 520px; margin: 0 auto; }
.state-page .glyph { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto var(--s4); display: grid; place-items: center; font-size: 30px; font-weight: 800; background: var(--neutral-bg); color: var(--neutral-ink); }
@media (max-width: 380px) { .decision .btns { grid-template-columns: 1fr; } }

/* prototype index */
.idx { columns: 2 320px; }
.idx section { break-inside: avoid; margin-bottom: var(--s5); }
.idx li { margin-bottom: var(--s2); }

/* =========================================================
   UX first-use round (B-06, B-07) · spec docs/specs/ux-first-use.md
   ========================================================= */
/* 8-bit icons inline, as in the app (src/ui/Icon.tsx): 16 px, currentColor ink */
.icon { width: 16px; height: 16px; flex: none; vertical-align: -0.2em; }
.icon-pixel { shape-rendering: crispEdges; }
.tile-icon svg.icon { width: 16px; height: 16px; }
.chip:has(.icon)::before { content: none; }

/* section subtitle under a section heading (UX1) */
.section-sub { margin: 0 0 var(--s3); color: var(--ink-muted); max-width: 68ch; }

/* Get started checklist card (UX14-UX17) */
.guide { margin-bottom: var(--s5); padding: var(--s4) var(--s5); border-color: var(--line-strong); }
.guide-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s2) var(--s3); flex-wrap: wrap; }
.guide-head h2 { font-size: var(--fs-lg); margin: 0; }
.guide-count { margin: 0; font-size: var(--fs-sm); color: var(--ink-muted); }
.guide-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: var(--s3) 0 var(--s4); max-width: 360px; }
.guide-bar span { height: 8px; border-radius: 4px; background: var(--neutral-bg); border: 1px solid var(--neutral-line); }
.guide-bar span.on { background: var(--ok-ink); border-color: var(--ok-ink); }
.guide-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.guide-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s1) var(--s3); align-items: start; }
.guide-steps .mark { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); color: var(--ink); background: var(--surface); }
.guide-steps .text { padding-top: 3px; font-weight: 600; }
.guide-steps .go { justify-self: start; }
.guide-steps li.is-done .mark { background: var(--ok-bg); border-color: var(--ok-ink); color: var(--ok-ink); }
.guide-steps li.is-done .text { font-weight: 400; color: var(--ink-muted); }
.guide-steps .state { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 700; font-size: var(--fs-sm); color: var(--ok-ink); }
@media (min-width: 900px) {
  .guide-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
}

/* request type choice with one-line help under each option (UX2) */
.choices { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.choice { display: flex; flex-direction: column; gap: var(--s1); }
.choice label { position: relative; display: flex; align-items: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s4); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-size: var(--fs-sm); font-weight: 600; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { border: 2px solid var(--primary); background: var(--primary-soft); color: var(--primary-hover); }
.choice label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice label:has(input:checked)::before { content: "\2713"; font-weight: 800; }
.choice .hint { font-size: var(--fs-sm); color: var(--ink-muted); margin: 0; }
.choice .hint em { font-style: normal; color: var(--ink); }

/* helper text under action buttons (UX12, UX13) */
.btn-notes { list-style: none; padding: 0; margin: var(--s2) 0 0; font-size: var(--fs-sm); color: var(--ink-muted); display: grid; gap: var(--s1); max-width: 68ch; }
.btn-notes strong { color: var(--ink); font-weight: 600; }

/* status line after a successful action (UX4) */
.status-ok { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ok-ink); font-weight: 600; font-size: var(--fs-sm); margin: 0 0 var(--s3); }
.waiting-note { font-size: var(--fs-sm); margin: var(--s2) 0; }

/* numbered next steps in the share dialog (UX8) */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s3); }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s3); align-items: start; }
ol.steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); }
ol.steps li span { padding-top: 2px; }
.form-actions { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
/* tall dialogs on phones: keep the top reachable (centre only when it fits) */
.scrim { align-items: safe center; }

/* ---------- wordmark (top bar only, as in src/ui/theme.css) ---------- */
@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/pixelify-sans-latin-600-normal.woff2') format('woff2');
}
.brand-name { font-family: 'Pixelify Sans', var(--font); font-weight: 600; font-size: 22px; letter-spacing: .01em; }
.brand .brand-logo { width: 32px; height: 32px; display: inline-grid; place-items: center; color: var(--ink); }
.brand .brand-logo svg { width: 32px; height: 32px; }


/* ---------- public site (landing, pricing, templates, legal): formal, plain icons ---------- */
.site { background: var(--surface); }
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head-inner { max-width: 1120px; margin: 0 auto; padding: 0 var(--s4); min-height: 64px; display: flex; align-items: center; gap: var(--s3) var(--s4); flex-wrap: wrap; }
.site-nav { display: flex; gap: var(--s1); margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s3); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.site-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-hover); font-weight: 600; }
.site-nav a.btn { color: var(--primary-hover); }
@media (max-width: 640px) {
  .site-head-inner { padding: var(--s2) var(--s4); }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav a { padding: 0 var(--s2); }
  .site-nav .nav-optional { display: none; }
}
.site-main { max-width: 1120px; margin: 0 auto; padding: 0 var(--s4); }
.site-narrow { max-width: 760px; }
.hero { padding: var(--s7) 0 var(--s6); max-width: 760px; }
.hero h1 { font-size: 40px; line-height: 1.15; letter-spacing: -.01em; margin-bottom: var(--s4); }
.hero .lead { font-size: 19px; color: var(--ink-muted); margin-bottom: var(--s5); max-width: 62ch; }
.hero .cta-row { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.hero .cta-row .btn-primary { min-height: 52px; padding: 0 var(--s5); font-size: 17px; }
@media (max-width: 640px) { .hero { padding: var(--s6) 0 var(--s5); } .hero h1 { font-size: 30px; } .hero .lead { font-size: 17px; } }
.band { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.band h2 { font-size: 26px; margin-bottom: var(--s2); }
.band .section-sub { margin-bottom: var(--s5); }
.band-alt { background: var(--bg); border-top: 0; border-radius: var(--radius); padding: var(--s6) var(--s5); }
@media (max-width: 640px) { .band-alt { padding: var(--s5) var(--s4); } }
.flow { list-style: none; counter-reset: flow; padding: 0; margin: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow li { counter-increment: flow; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); }
.flow li::before { content: counter(flow); width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: var(--s3); }
.flow h3 { font-size: var(--fs-md); margin-bottom: var(--s2); }
.flow p { font-size: var(--fs-sm); color: var(--ink-muted); margin: 0; }
@media (max-width: 1000px) { .flow { grid-template-columns: 1fr; } .flow li { display: grid; grid-template-columns: 32px minmax(0,1fr); column-gap: var(--s3); } .flow li::before { grid-row: span 2; margin: 0; } }
.two-col { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.plain-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s2); }
.plain-list li .mk { font-weight: 800; }
.plain-list.yes .mk { color: var(--ok-ink); }
.plain-list.no .mk { color: var(--bad-ink); }
.quote-box { border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: var(--s4); background: var(--surface); font-weight: 600; }
.faq dt { font-weight: 700; margin-top: var(--s4); }
.faq dd { margin: var(--s1) 0 0; color: var(--ink-muted); max-width: 70ch; }
.tlinks { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.tlinks a { display: block; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: var(--s4); text-decoration: none; background: var(--surface); min-height: var(--tap); }
.tlinks a strong { display: block; color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.tlinks a span { color: var(--ink-muted); font-size: var(--fs-sm); }

/* pricing */
.plans { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.plan { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: var(--s5); background: var(--surface); display: flex; flex-direction: column; gap: var(--s3); }
.plan h2, .plan h3 { margin: 0; font-size: var(--fs-xl); }
.plan .price { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 0; line-height: 1.1; }
.plan .price small { font-size: var(--fs-md); font-weight: 500; color: var(--ink-muted); }
.plan .alt { margin: 0; color: var(--ink-muted); font-size: var(--fs-sm); }
.plan ul { margin: 0; }
.plan .plan-foot { margin-top: auto; }
.plan .soon { display: flex; align-items: center; justify-content: center; min-height: var(--tap); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--neutral-ink); font-weight: 600; font-size: var(--fs-sm); background: var(--neutral-bg); text-align: center; padding: 0 var(--s3); }
.plan .cta-note { margin: var(--s2) 0 0; font-size: var(--fs-sm); color: var(--ink-muted); }
.tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700; border: 1px solid var(--info-line); background: var(--info-bg); color: var(--info-ink); border-radius: 999px; padding: 3px 10px; }
.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.compare th, .compare td { text-align: left; border-bottom: 1px solid var(--line); padding: var(--s3); vertical-align: top; }
.compare thead th { border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* template page */
.tpl-doc { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: var(--s5); background: var(--surface); }
.tpl-doc h2 { font-size: var(--fs-lg); margin-top: var(--s5); }
.tpl-doc h2:first-child { margin-top: 0; }
.blank { display: inline-block; min-width: 9em; border-bottom: 1.5px solid var(--ink-muted); color: var(--ink-muted); font-style: italic; }
.crumbs { font-size: var(--fs-sm); padding-top: var(--s4); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.crumbs li + li::before { content: "/"; margin-right: var(--s1); color: var(--ink-muted); }
.crumbs a { display: inline-flex; min-height: var(--tap); align-items: center; }

/* legal */
.draft-banner { background: var(--warn-bg); border-bottom: 3px solid var(--warn-ink); color: var(--ink); }
.draft-banner p { max-width: 1120px; margin: 0 auto; padding: var(--s3) var(--s4); font-weight: 700; display: flex; gap: var(--s3); align-items: center; }
.draft-banner .ic { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--warn-ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.legal-tabs { display: flex; gap: var(--s1); flex-wrap: wrap; margin: var(--s4) 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.legal-tabs a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s3); text-decoration: none; color: var(--ink); font-size: var(--fs-sm); border-bottom: 3px solid transparent; }
.legal-tabs a[aria-current="page"] { border-bottom-color: var(--primary); color: var(--primary-hover); font-weight: 700; }
.legal-meta { display: grid; grid-template-columns: auto minmax(0,1fr); gap: var(--s1) var(--s3); font-size: var(--fs-sm); margin: 0 0 var(--s5); }
.legal-meta dt { color: var(--ink-muted); }
.legal-meta dd { margin: 0; font-weight: 600; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s6); align-items: start; padding-bottom: var(--s6); }
.legal-toc { position: sticky; top: var(--s4); font-size: var(--fs-sm); }
.legal-toc h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
.legal-toc ol { padding-left: 1.4em; margin: 0; }
.legal-toc a { display: inline-flex; min-height: 44px; align-items: center; }
.legal-body { max-width: 70ch; }
.legal-body h2 { font-size: var(--fs-xl); margin-top: var(--s6); scroll-margin-top: var(--s4); }
.legal-body h2:first-child { margin-top: 0; }
.ph { background: var(--neutral-bg); border: 1px dashed var(--neutral-line); border-radius: var(--radius-sm); padding: var(--s3); color: var(--neutral-ink); font-size: var(--fs-sm); }
.fixed-line { border-left: 4px solid var(--ink); padding: var(--s2) var(--s3); background: var(--bg); font-weight: 600; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: var(--s4); }
  .legal-toc { position: static; }
}

/* footer shared by public, auth and app pages */
.site-foot { border-top: 1px solid var(--line); background: var(--bg); margin-top: var(--s6); }
.site-foot-inner { max-width: 1120px; margin: 0 auto; padding: var(--s5) var(--s4); display: flex; gap: var(--s3) var(--s5); flex-wrap: wrap; justify-content: space-between; align-items: center; font-size: var(--fs-sm); color: var(--ink-muted); }
.legal-links { display: flex; flex-wrap: wrap; gap: 0 var(--s1); margin: 0; padding: 0; list-style: none; }
.legal-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s2); color: var(--ink-muted); }
.legal-links li + li::before { content: "\00B7"; color: var(--ink-muted); margin-right: var(--s1); display: inline-flex; align-items: center; min-height: var(--tap); }
.legal-links li { display: inline-flex; }
.app-foot { max-width: 1160px; margin: 0 auto; padding: var(--s4); border-top: 1px solid var(--line); font-size: var(--fs-sm); }


/* utilities used by the static pages (no inline styles: the launch CSP will not allow them) */
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.flush { margin: 0; }
.center { text-align: center; }
.h-md { font-size: var(--fs-md); }
.hero-tight { padding-top: var(--s4); padding-bottom: var(--s5); }
.hero-flat { padding-bottom: var(--s5); }
.hero-flat .lead { margin-bottom: 0; }
.hero-tight .lead { margin-bottom: var(--s4); }
.band-flush { border-top: 0; }
.band-gap { margin-top: var(--s6); }
.site-foot-legal { margin-top: 0; }
.tpl-doc .readonly { font-size: var(--fs-md); }
.steps { padding-left: 1.4em; display: grid; gap: var(--s3); }


/* ---------- Gold coin look for the public site (docs/design/design-system.md §11) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2');
}
body.site {
  --paper: #e4eefb; --shade: #c5d6ee; --gold: #f0b429; --gold-hover: #f6c75a;
  --bg: #e4eefb; --surface: #ffffff; --line: #c5d6ee;
  --primary: #1d4fa8; --primary-hover: #1a2233; --primary-soft: #d3e2f7;
  --focus: #1a2233;
  --font: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pixel: 'Pixelify Sans', var(--font);
  background: var(--paper); font-size: 17px; line-height: 1.6; overflow-x: clip;
}
.site a { color: var(--primary); }
.site a:hover { color: var(--ink); }

/* pixel type only at 36px and up */
.site .hero h1, .site .band h2, .site .plan .price, .site .ex-num { font-family: var(--pixel); font-weight: 600; letter-spacing: -.005em; }
.site .hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1; margin-bottom: var(--s5); }
.site .band h2 { font-size: clamp(36px, 4.2vw, 54px); line-height: 1; margin-bottom: var(--s3); }
.site .plan .price { font-size: 48px; font-weight: 600; line-height: 1; }
.site .plan .price small { font-family: var(--font); }

/* buttons: gold coin with a hard ink shadow */
.site .btn { border-radius: 6px; font-weight: 700; border-width: 2px; }
.site .btn-primary { background: var(--gold); color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.site a.btn-primary:hover, .site .btn-primary:hover { background: var(--gold-hover); color: var(--ink); transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.site .btn-secondary, .site .btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.site .btn-secondary:hover, .site .btn-quiet:hover { background: var(--paper); color: var(--ink); }
.site .btn-quiet { padding: 0 var(--s4); }
@media (prefers-reduced-motion: reduce) { .site .btn-primary:hover { transform: none; } }

/* header */
.site .site-head { background: transparent; border-bottom: 0; }
.site .site-head-inner { min-height: 76px; }
.site .brand, .site .brand:hover { color: var(--ink); }
.site .brand-name { font-size: 24px; }
.site .site-nav a { font-weight: 600; color: var(--ink); }
.site .site-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.site .site-nav a.btn { color: var(--ink); }

/* hero */
.site .hero { position: relative; padding: var(--s7) 0; }
.site .hero .lead { color: var(--ink-muted); }
.site .hero-split { max-width: none; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 64px 0 112px; }
.hero-split .hero-copy { flex: 1 1 460px; min-width: 0; position: relative; }
.hero-split .hero-card { flex: 1 1 360px; min-width: 0; max-width: 480px; margin: 0; position: relative; display: flex; flex-direction: column; gap: var(--s3); }
.cloud { position: absolute; pointer-events: none; color: var(--surface); }
.cloud .under { color: var(--shade); }
.cloud-a { width: 160px; height: 60px; left: -88px; top: 8px; }
.cloud-b { width: 112px; height: 42px; right: 2%; top: -8px; }
.cloud-c { width: 208px; height: 78px; right: -96px; bottom: 16px; }
@media (max-width: 860px) { .cloud-a, .cloud-b { display: none; } .site .hero-split { padding: 40px 0 88px; gap: 40px; } }

/* example change order in the hero */
.ex-request { align-self: flex-start; margin-left: var(--s5); max-width: 340px; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; padding: var(--s3) var(--s4); font-size: 15px; line-height: 1.45; box-shadow: 0 10px 24px -14px rgba(26, 34, 51, .45); }
.ex-chip { display: inline-block; margin-top: var(--s2); font-size: 13px; font-weight: 700; padding: 1px 10px; border-radius: 6px; background: var(--paper); border: 1px solid var(--ink); }
.ex-co { background: var(--surface); border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 48px -26px rgba(26, 34, 51, .55); }
.ex-co-head { padding: var(--s5) 26px var(--s4); }
.ex-co-head .ex-id { font-family: var(--pixel); font-size: 20px; color: var(--ink-muted); }
.ex-co-head .ex-title { font-size: 21px; font-weight: 700; line-height: 1.3; margin: var(--s1) 0 0; }
.ex-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin: 0; padding: 0 26px var(--s5); }
.ex-figs div { background: var(--paper); border-radius: 12px; padding: var(--s3) 14px; }
.ex-figs dt { font-size: 14px; color: var(--ink-muted); }
.ex-figs dd { margin: 0; }
.ex-num { font-size: 36px; line-height: 1.05; }
.ex-ok { border-top: 2px dashed var(--ink); padding: 18px 26px 22px; display: flex; gap: var(--s4); align-items: flex-start; font-size: 15px; line-height: 1.5; }
.ex-ok .coin { flex: none; width: 48px; height: 48px; border-radius: 6px; background: var(--gold); border: 2px solid var(--ink); display: grid; place-items: center; color: var(--ink); }
.ex-ok .coin svg { width: 24px; height: 24px; }
.ex-ok .who { font-weight: 700; font-size: 17px; }
.ex-ok .hash { overflow-wrap: anywhere; }
.hero-card figcaption { margin: 0 var(--s5); font-size: 13px; line-height: 1.5; color: var(--ink-muted); }

/* sections */
.site .band { border-top: 0; padding: 72px 0; }
.site .band-panel, .site .band-alt { background: var(--surface); border-radius: 24px; padding: 56px 48px; }
@media (max-width: 640px) { .site .band-panel, .site .band-alt { padding: 40px 20px; border-radius: 16px; } .site .band { padding: 56px 0; } }
.site .quote-box { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; }

/* how it works: a dashed path between square step tiles */
.site .flow { position: relative; gap: var(--s5); }
.site .flow::before { content: ""; position: absolute; left: 28px; right: 28px; top: 26px; height: 4px; background-image: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px); }
.site .flow li { position: relative; background: transparent; border: 0; padding: 0; }
.site .flow li::before { position: relative; width: 56px; height: 56px; border-radius: 6px; border: 3px solid var(--ink); background: var(--surface); color: var(--ink); font-family: var(--pixel); font-weight: 600; font-size: 30px; margin-bottom: var(--s4); }
.site .flow li:first-child::before { background: var(--gold); }
.site .flow li:last-child::before { background: var(--ink); color: var(--surface); }
.site .flow h3 { font-size: 18px; }
.site .flow p { font-size: 15px; }
@media (max-width: 1000px) {
  .site .flow::before { display: none; }
  .site .flow li { grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s4); }
}

/* lists, cards */
.site .plain-list.yes .mk { color: var(--ink); }
.site .plain-list.no .mk { color: var(--ink-muted); }
.site .plan { border: 2px solid var(--ink); border-radius: 16px; }
.site .plan:has(#p-pro) { background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.site .tlinks a, .site .tpl-doc { border: 2px solid var(--ink); border-radius: 12px; }
.site .tlinks a:hover { background: var(--paper); }
.site .tlinks a strong { color: var(--primary); }
.site .legal-tabs { border-bottom-color: var(--shade); }
.site .legal-tabs a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); }

/* footer: ink band */
.site .site-foot { background: var(--ink); color: var(--paper); border-top: 0; border-radius: 32px 32px 0 0; margin-top: var(--s7); }
.site .site-foot-inner { color: var(--paper); }
.site .site-foot .legal-links a, .site .site-foot .legal-links li + li::before { color: var(--paper); }
.site .site-foot a:focus-visible { outline-color: var(--gold); }
