/* billing-kit dashboard. TitanForge tokens (same as the Analytics dashboard):
     molten / ember = live, hot, needs attention, primary action
     quench (steel) = stored and aggregated data (charts, links)
     strike         = failures, destructive actions
   No inline styles anywhere: the CSP is style-src 'self'. */

@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/Unbounded-700.woff2?v=58c303c9a1) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap; src: url(fonts/IBMPlexSans-400.woff2?v=58c303c9a1) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/IBMPlexMono-400.woff2?v=58c303c9a1) format('woff2'); }

:root {
  --paper: #eef2f5; --plate: #ffffff; --ink: #16202b; --ink-soft: #4a5b6c; --rule: #d3dbe2;
  --molten: #ff5a1f; --ember: #ffb020; --quench: #2f6f9f; --quench-soft: #d7e6f1; --strike: #c2361a;
  --on-hot: #1a0d05; --molten-ink: #b8380a; --hot-wash: #fff0e9; --cool-wash: #edf4f9; --strike-wash: #fbe9e5;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r-plate: 22px; --r-inner: 14px; --rail-w: 244px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111922; --plate: #18222d; --ink: #e6edf3; --ink-soft: #9fb0c0; --rule: #2a3744;
    --quench: #6fb0dd; --quench-soft: #1d3346; --strike: #ff7a59;
    --molten-ink: #ff8a5c; --hot-wash: #2a1d17; --cool-wash: #16293a; --strike-wash: #2e1a16;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111922; --plate: #18222d; --ink: #e6edf3; --ink-soft: #9fb0c0; --rule: #2a3744;
  --quench: #6fb0dd; --quench-soft: #1d3346; --strike: #ff7a59;
  --molten-ink: #ff8a5c; --hot-wash: #2a1d17; --cool-wash: #16293a; --strike-wash: #2e1a16;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: var(--quench); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
code, .mono { font-family: var(--mono); font-size: 0.88em; overflow-wrap: anywhere; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--molten); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--ink); color: var(--paper); z-index: 60; border-radius: 10px; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ── controls ───────────────────────────────────── */
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea {
  background: var(--plate); border: 1.5px solid var(--rule); border-radius: 12px;
  padding: 8px 12px; min-height: 42px; max-width: 100%; color: var(--ink);
}
textarea { min-height: 84px; resize: vertical; width: 100%; font-family: var(--mono); font-size: 13.5px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-soft); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--molten); outline-offset: 1px; }
input[type=checkbox], input[type=radio] { min-height: 0; width: 18px; height: 18px; accent-color: var(--molten); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; text-decoration: none;
  white-space: nowrap; border: 2px solid var(--rule); background: transparent; color: var(--ink);
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn.hot { background: var(--molten); border-color: var(--molten); color: var(--on-hot); }
.btn.hot:hover { background: var(--ember); border-color: var(--ember); }
.btn.danger { border-color: var(--strike); color: var(--strike); }
.btn.danger:hover { background: var(--strike); color: var(--plate); }
.btn.small { min-height: 34px; padding: 0 13px; font-size: 13.5px; }
.linkish { border: 0; background: none; padding: 2px 2px; color: var(--quench); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; min-height: 0; }
.field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-soft); min-width: 0; }
.field > input, .field > select { width: 100%; }
.field .hint { font-weight: 400; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; min-height: 34px; color: var(--ink); font-weight: 500; }
.seg { display: inline-flex; border: 1.5px solid var(--rule); border-radius: 999px; padding: 3px; gap: 2px; background: var(--plate); }
.seg button { border: 0; background: none; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); min-height: 34px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ── wordmark ───────────────────────────────────── */
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.wordmark b { font-weight: 800; }
.mark { width: 30px; height: 30px; flex: none; }
.mark .a { fill: var(--quench); }
.mark .s { fill: var(--molten); }
.mode { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; border: 1.5px solid var(--quench); color: var(--quench); }
.mode.live { border-color: var(--molten); color: var(--molten-ink); background: var(--hot-wash); }
.mode::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ── sign-in ────────────────────────────────────── */
.form-error { color: var(--strike); font-weight: 600; min-height: 1.4em; }

/* ── shell ──────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 20px 14px 18px 18px; border-right: 1px solid var(--rule); }
.rail-head { display: grid; gap: 10px; padding: 0 4px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 12px; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--plate); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.nav-group { margin: 10px 0 4px; padding: 0 12px; font-size: 12px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.app-switch { display: grid; gap: 4px; padding: 0 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.app-switch select { width: 100%; font-weight: 600; color: var(--ink); }
.rail-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); display: grid; gap: 4px; }
.phonebar, .scrim { display: none; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
main { padding: 26px clamp(16px, 3vw, 40px) 64px; display: grid; gap: 18px; outline: none; min-width: 0; align-content: start; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; justify-content: space-between; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.3rem); letter-spacing: -0.035em; line-height: 1.08; overflow-wrap: anywhere; }
.page-head .sub { color: var(--ink-soft); margin-top: 4px; }
.crumb { font-size: 13.5px; margin-bottom: 6px; display: inline-block; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .phonebar { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .rail { display: none; position: fixed; inset: 0 auto 0 0; width: min(86vw, 300px); z-index: 40; background: var(--paper); }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(10, 16, 22, 0.5); border: 0; }
  .shell.nav-open .rail { display: flex; }
  main { padding-top: 18px; }
}

/* ── plates ─────────────────────────────────────── */
.panel { align-content: start; background: var(--plate); border: 1px solid var(--rule); border-radius: var(--r-plate); padding: clamp(16px, 2.4vw, 24px); display: grid; gap: 14px; min-width: 0; }
.panel h2 { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.panel-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.panel.hot { border-color: var(--molten); background: var(--hot-wash); }
.panel.danger-zone { border-color: var(--strike); }
.grid2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); }
.tile { background: var(--plate); border: 1px solid var(--rule); border-radius: 18px; padding: 14px 16px; display: grid; gap: 2px; min-width: 0; }
.tile .k { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.tile .v { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.5rem); letter-spacing: -0.03em; overflow-wrap: break-word; min-width: 0; }
.tile .d { font-size: 12.5px; color: var(--ink-soft); }
.tile.hot { border-color: var(--molten); background: var(--hot-wash); }
.tile.hot .v { color: var(--molten-ink); }
.tile.bad .v { color: var(--strike); }
.kv { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.kv dt { color: var(--ink-soft); font-size: 13.5px; font-weight: 500; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.reason { padding: 12px 14px; border-radius: var(--r-inner); background: var(--cool-wash); border-left: 4px solid var(--quench); }
.reason.off { background: var(--strike-wash); border-left-color: var(--strike); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: end; }
.form-grid .wide { grid-column: 1 / -1; }
.secret { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-inner); background: var(--plate); border: 1.5px dashed var(--molten); }
.secret code { font-size: 14px; user-select: all; }

/* ── chips ──────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 999px; border: 1.5px solid var(--rule); font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--plate); }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.chip.active::before, .chip.applied::before, .chip.delivered::before, .chip.paid::before { background: var(--quench); }
.chip.trial::before, .chip.canceling::before, .chip.pending::before, .chip.intent::before, .chip.stale::before { background: var(--ember); }
.chip.grace::before { background: var(--molten); }
.chip.past_due::before, .chip.failed::before, .chip.open::before { background: var(--strike); }
.chip.exempt::before { background: transparent; border: 2px solid var(--quench); }
.chip.past_due, .chip.failed, .chip.open { border-color: var(--strike); }
.chip.grace { border-color: var(--molten); }

/* ── tables ─────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-inner); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
caption { text-align: left; padding: 0 0 8px; font-weight: 600; caption-side: top; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); background: var(--cool-wash); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--cool-wash); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .mono { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.table-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.pager { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── charts ─────────────────────────────────────── */
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .axis { fill: var(--ink-soft); font-size: 11px; font-family: var(--body); }
.chart .bar-new { fill: var(--quench); }
.chart .bar-cancel { fill: var(--strike); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-soft); list-style: none; margin: 0; padding: 0; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.swatch.new { background: var(--quench); }
.swatch.cancel { background: var(--strike); }
details > summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); min-height: 34px; display: flex; align-items: center; }
details[open] > summary { margin-bottom: 8px; }

/* ── states ─────────────────────────────────────── */
.state-box { padding: 20px; border: 1.5px dashed var(--rule); border-radius: var(--r-inner); color: var(--ink-soft); display: grid; gap: 10px; justify-items: start; }
.state-box.error { border-color: var(--strike); color: var(--ink); background: var(--strike-wash); }
.loading { color: var(--ink-soft); display: flex; align-items: center; gap: 10px; min-height: 60px; }
.loading::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--rule); border-top-color: var(--molten); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── dialogs + live region ──────────────────────── */
dialog { border: 1px solid var(--rule); border-radius: 24px; padding: 0; background: var(--plate); color: var(--ink); width: min(calc(100vw - 32px), 480px); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(10, 16, 22, 0.55); }
dialog form { padding: 22px; display: grid; gap: 14px; }
dialog h2 { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
dialog .dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.toast { position: fixed; right: 16px; bottom: 16px; left: auto; z-index: 70; max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 16px; background: var(--ink); color: var(--paper); font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.toast.bad { background: var(--strike); color: #fff; }
.toast:empty { display: none; }

.view { display: grid; gap: 18px; min-width: 0; align-content: start; }
/* grid children must be allowed to shrink below their content (wide tables scroll inside .table-wrap) */
.panel > *, .view > *, .grid2 > *, main > * { min-width: 0; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
tbody th { background: none; font-size: 14px; font-weight: 500; color: var(--ink); white-space: normal; }
.table-foot { margin-top: 10px; }
.table-wrap { position: relative; }
td, tbody th { white-space: nowrap; }
td code, td .mono, tbody th .mono { overflow-wrap: normal; }
.form-grid.compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.form-grid.compact .field:first-child { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font-weight: 400; color: var(--ink); }
fieldset { border: 1.5px solid var(--rule); border-radius: var(--r-inner); margin: 0; padding: 8px 14px 10px; }
legend { padding: 0 6px; }
.form-grid { align-items: start; }

/* Setup notices (e.g. Stripe not connected yet): warm edge, never alarming. */
.panel.notice { border-left: 4px solid var(--ember); background: color-mix(in srgb, var(--ember) 8%, var(--plate)); padding: 14px 18px; margin-bottom: 16px; }

/* ── public front: landing + sign-in / register ─── */
.front { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.front-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px clamp(16px, 4vw, 48px); }
.front-main { width: min(100%, 1120px); margin: 0 auto; padding: clamp(12px, 4vw, 48px) clamp(16px, 4vw, 48px) 48px; display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.pitch { display: grid; gap: 18px; padding-top: clamp(0px, 3vw, 36px); }
.pitch h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.02; }
.lede { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); color: var(--ink-soft); max-width: 46ch; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 52ch; }
.points li { padding-left: 22px; position: relative; }
.points li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: var(--molten); }
.auth-card { background: var(--plate); border: 1px solid var(--rule); border-radius: 28px; padding: clamp(20px, 4vw, 32px); display: grid; gap: 16px; min-width: 0; }
.auth-form { display: grid; gap: 12px; }
.auth-form h2 { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.auth-form input[type=email], .auth-form input[type=password], .auth-form input:not([type]) { min-height: 46px; width: 100%; }
.auth-form .check a { color: var(--quench); }
.tabs { justify-self: start; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.notice { border-left: 4px solid var(--quench); background: var(--cool-wash); padding: 10px 14px; border-radius: 10px; }
.form-note:empty { display: none; }
.form-note { background: var(--cool-wash); border-radius: 10px; padding: 10px 14px; }
.form-note.warn { background: var(--hot-wash); border-left: 4px solid var(--ember); }
.owner-link { border-top: 1px solid var(--rule); padding-top: 12px; }
.front-foot { padding: 18px clamp(16px, 4vw, 48px) 28px; display: flex; gap: 8px; justify-content: center; }
.front-foot a, .legal a { color: var(--quench); }
@media (max-width: 860px) {
  .front-main { grid-template-columns: minmax(0, 1fr); }
  .pitch { padding-top: 0; }
}

/* ── signed-in extras ────────────────────────────── */
.banner { margin: 16px clamp(16px, 3vw, 40px) 0; padding: 12px 16px; border-radius: 14px; background: var(--hot-wash); border: 1.5px solid var(--ember); }
.banner p { margin: 0; }
.banner.alarm { background: var(--strike-wash); border-color: var(--strike); color: var(--ink, inherit); }
.banner.alarm p + p { margin-top: 6px; }
.banner.alarm strong { color: var(--strike); }
.stack { display: grid; gap: 12px; min-width: 0; }
.panel h3, .stack h3 { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.codebox { position: relative; display: grid; gap: 8px; min-width: 0; }
.codebox pre { margin: 0; padding: 14px 16px; border-radius: var(--r-inner); background: var(--paper); border: 1px solid var(--rule); overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.55; white-space: pre; max-width: 100%; }
.codebox pre:focus-visible { outline: 2px solid var(--molten); outline-offset: 2px; }
.codebox pre code { font-size: inherit; overflow-wrap: normal; }
.codebox-tools { display: flex; justify-content: flex-end; }
.tiles.words { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.tiles.words .tile .v { font-size: 1.15rem; }
.ok-note { color: var(--quench); font-weight: 600; }
ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ua { white-space: nowrap; }

/* ── onboarding steps ───────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.step { background: var(--plate); border: 1px solid var(--rule); border-radius: var(--r-plate); padding: 14px clamp(14px, 2.4vw, 22px); display: grid; gap: 14px; min-width: 0; }
.step.current { border-color: var(--molten); box-shadow: 0 0 0 1px var(--molten); }
.step.todo { opacity: 0.62; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-head h2 { font-family: var(--display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 1.5px solid var(--rule); color: var(--ink-soft); }
.step.current .step-n { background: var(--molten); border-color: var(--molten); color: var(--on-hot); }
.step.done .step-n { background: var(--quench); border-color: var(--quench); color: var(--plate); }
.step-body { display: grid; gap: 14px; min-width: 0; }
.step-body > .panel { border: 0; padding: 0; background: none; }
.plan-rows { display: grid; gap: 10px; }
.plan-row { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 520px) { .plan-row { grid-template-columns: minmax(0, 1fr); padding-bottom: 10px; border-bottom: 1px solid var(--rule); } }

/* ── legal pages ────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; display: grid; gap: 14px; }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -0.03em; margin-top: 18px; }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-top: 10px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-todo { background: var(--hot-wash); border-left: 4px solid var(--ember); padding: 12px 16px; border-radius: 10px; }

/* Programmatic focus on the page container (after navigation) draws no ring; its controls still do. */
#main:focus, #front-main:focus { outline: none; }
