/* Leerkader website. Tokens mirror app/static/style.css so the site and the demo tool read as one product. */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../fonts/nunito.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/nunito-italic.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/caveat-600.woff2") format("woff2"); }

/* Layout: an exercise-book page in the tool's own identity. Colour follows school conventions:
   the tool's teal-green is the brand and the teacher's frame, green is correct, red is only ever a mistake.
   One centred 1080px column. Tokens mirror app/static/style.css. */
:root {
  --paper: #faf6f0;
  --surface: #fffdf9;
  --ink: #2b2a27;
  --muted: #6e6a62;
  --line: #e8dfd2;
  --grid: rgba(47, 110, 98, 0.08);
  --brand: #2f6e62;
  --brand-soft: #e3efea;
  --red: #b0402f;
  --red-soft: #f7e6e1;
  --ok: #2f7a52;

  --f-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --f-body: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-pen: "Caveat", "Comic Sans MS", "Segoe Print", cursive;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.5vw, 2.75rem);
  --step-4: clamp(2.5rem, 7vw, 4.6rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b1916; --surface: #23201c; --ink: #eee8de; --muted: #a8a094; --line: #3a352e;
    --grid: rgba(127, 191, 174, 0.06); --brand: #7fbfae; --brand-soft: #24332f; --red: #e8846f;
    --red-soft: #3a2520; --ok: #7fcf9f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1b1916; --surface: #23201c; --ink: #eee8de; --muted: #a8a094; --line: #3a352e;
  --grid: rgba(127, 191, 174, 0.06); --brand: #7fbfae; --brand-soft: #24332f; --red: #e8846f;
  --red-soft: #3a2520; --ok: #7fcf9f; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.prose { max-width: 46ch; display: grid; gap: 1.25rem; }
.eyebrow { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pen { font-family: var(--f-pen); color: var(--brand); font-size: 1.45rem; line-height: 1.1; }
code, .mono { font-family: var(--f-mono); font-size: 0.86em; }

/* top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.mark { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.mark svg { width: 26px; height: 26px; flex: none; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; font: 700 1rem/1 var(--f-body);
  padding: 0.8rem 1.15rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
}
.btn:hover { background: var(--brand); border-color: var(--brand); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.small { padding: 0.55rem 0.95rem; font-size: 0.92rem; }

/* hero */
.hero {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap { padding-block: clamp(4.5rem, 12vw, 9rem) clamp(4rem, 10vw, 7rem); display: grid; gap: 2rem; }
.hero h1 { font-size: var(--step-4); font-weight: 800; max-width: 15ch; }
.hero h1 .red { color: var(--brand); }
.hero .lead { font-size: var(--step-1); max-width: 46ch; color: var(--ink); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* sections */
section.block { padding-block: clamp(5rem, 13vw, 9.5rem); border-bottom: 1px solid var(--line); }
section.block > .wrap { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
section.block h2 { font-size: var(--step-3); font-weight: 800; }
.head { display: grid; gap: 1rem; max-width: 52ch; }
.head h2 { max-width: 24ch; }
.duo-pen { grid-column: 1 / -1; }
.head h2 { font-size: var(--step-3); font-weight: 800; }
.muted { color: var(--muted); }

/* comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-width: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 1.05rem; font-weight: 700; }
.panel-head .eyebrow { font-size: 0.7rem; }
.shot { padding: 1rem; background: #ffffff; }
.shot img { display: block; width: 100%; height: auto; border-radius: 6px; }
.verdict { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1.1rem 1.1rem; border-top: 1px dashed var(--line); }
.verdict svg { flex: none; width: 34px; height: 34px; }
.panel.bad { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.panel.bad .verdict .pen { color: var(--red); }
.panel.good { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.panel.good .verdict .pen { color: var(--ok); }
.panel.good .verdict svg path { stroke: var(--ok); }

.chat { display: grid; gap: 0.8rem; padding: 1.4rem; font-size: 1rem; line-height: 1.5; }
.msg { max-width: 90%; padding: 0.6rem 0.85rem; border-radius: 14px; }
.msg.s { justify-self: end; background: var(--brand-soft); color: var(--ink); border-bottom-right-radius: 4px; }
.msg.a { justify-self: start; background: transparent; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.why {
  justify-self: start; display: inline-flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: center;
  font-family: var(--f-mono); font-size: 0.72rem; color: var(--brand); background: transparent; border: 1px dashed color-mix(in srgb, var(--brand) 60%, transparent);
  border-radius: 6px; padding: 0.3rem 0.55rem; margin-top: -0.35rem;
}
.why b { font-weight: 500; }
.note { font-size: var(--step--1); color: var(--muted); }

/* evidence */
.evidence { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.bars { display: grid; gap: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; }
.bars h3 { font-size: 1.05rem; }
.bar-group { display: grid; gap: 0.45rem; }
.bar-label { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.bar-label b { font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.bar-track { position: relative; height: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; }
.bar-track .zero { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--muted); left: 40%; }
.bar-fill { position: absolute; top: 1px; bottom: 1px; border-radius: 99px; }
.bar-fill.up { left: 40%; background: var(--brand); }
.bar-fill.down { right: 60%; background: var(--red); }
.bar-axis { position: relative; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 0.7rem; color: var(--muted); }
.bar-axis .zero-lbl { position: absolute; left: 40%; transform: translateX(-50%); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-content: start; }
.duo-item { display: grid; gap: 0.2rem; border-top: 3px solid var(--brand); padding-top: 0.75rem; }
.duo-item.down { border-color: var(--red); }
.duo-n { font-family: var(--f-display); font-weight: 800; font-size: var(--step-4); line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.duo-item.down .duo-n { color: var(--red); }

/* subject tabs */
.subject-tabs { display: inline-flex; gap: 0.25rem; padding: 0.3rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); justify-self: start; }
.subject-tabs button { font: 700 1rem/1 var(--f-body); padding: 0.7rem 1.3rem; border-radius: 99px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.subject-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.essay { display: grid; gap: 0.4rem; }
.essay .fade { color: var(--muted); }
.panel.bad .chat { background: var(--surface); }

/* two sigma chart */
.sigma { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; display: grid; gap: 0.9rem; min-width: 0; }
.toggle { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.toggle button {
  font: 500 0.85rem/1 var(--f-body); padding: 0.55rem 0.8rem; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
}
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chart-wrap { overflow-x: auto; }
#sigma-chart { display: block; width: 100%; min-width: 320px; height: auto; }
#sigma-chart .axis { stroke: var(--line); }
#sigma-chart text { fill: var(--muted); font-family: var(--f-mono); font-size: 11px; }
#sigma-chart .c-class { fill: color-mix(in srgb, var(--muted) 16%, transparent); stroke: var(--muted); stroke-width: 1.5; }
#sigma-chart .c-mastery { fill: color-mix(in srgb, var(--brand) 7%, transparent); stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 5 4; }
#sigma-chart .c-tutor { fill: color-mix(in srgb, var(--brand) 18%, transparent); stroke: var(--brand); stroke-width: 2; }
#sigma-chart .mean { stroke-width: 1.5; stroke-dasharray: 3 4; }
#sigma-chart .mean.class { stroke: var(--muted); }
#sigma-chart .mean.mastery, #sigma-chart .mean.tutor { stroke: var(--brand); }
#sigma-chart .lbl-tutor, #sigma-chart .lbl-mastery { fill: var(--brand); font-weight: 500; }
#sigma-chart .lbl-class { fill: var(--muted); }

.khan { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); padding-top: clamp(1rem, 4vw, 3rem); }
.khan .quote { max-width: 46rem; }
.khan-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem); }
.kr { display: grid; gap: 0.5rem; align-content: start; border-top: 3px solid var(--brand); padding-top: 0.9rem; }
.kr h4 { margin: 0; font-family: var(--f-display); font-size: var(--step-1); font-weight: 800; }
.kr p { margin: 0; }
.kl { display: grid; gap: 0.2rem; color: var(--brand); background: var(--brand-soft); border-radius: 8px; padding: 0.6rem 0.8rem; }
.kl .eyebrow { color: var(--brand); font-size: 0.68rem; }
@media (max-width: 680px) { .khan-rows { grid-template-columns: minmax(0, 1fr); } }
.quote { margin: 0; display: grid; gap: 0.75rem; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: var(--step-3); line-height: 1.15; text-wrap: balance; }
.quote figcaption { font-size: var(--step--1); color: var(--muted); }

.roles { display: grid; gap: 1.25rem; }
.role-table { display: grid; border-top: 2px solid var(--ink); }
.role-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 1.25rem; padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.role-row [role="rowheader"] { font-weight: 700; }
.role-row [role="cell"] { color: var(--muted); }
.role-row [role="cell"]:last-child { color: var(--ink); }
.role-headrow { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-block: 0.6rem; }
.role-headrow .t { color: var(--brand); }
.stat-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.8rem; }
.stat-line .big { font-family: var(--f-display); font-weight: 800; font-size: var(--step-3); color: var(--brand); font-variant-numeric: tabular-nums; }
.ratio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ratio > div { border-top: 3px solid var(--ink); padding-top: 0.6rem; display: grid; gap: 0.3rem; }
.ratio .n { font-family: var(--f-display); font-weight: 800; font-size: var(--step-2); }
.ratio > div.red { border-color: var(--brand); }

/* solution */
.layers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.stack { display: grid; gap: 4px; counter-reset: none; }
.layer {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0.85rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  font-size: 0.95rem;
}
.layer .who { font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.layer.teacher { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); background: var(--brand-soft); }
.layer.teacher .who { color: var(--brand); }
.layer.student { border-style: dashed; }
.rule-card { display: grid; gap: 0.6rem; padding: 1.1rem 1.2rem; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 10px 10px 0; }

.settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.setting { border-top: 3px solid var(--brand); padding-top: 1rem; display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.setting h3 { font-size: var(--step-1); font-weight: 800; }
.setting .val { font-family: var(--f-mono); font-size: 0.78rem; color: var(--brand); overflow-wrap: anywhere; }
.setting p { color: var(--muted); }

/* help ladder */
.ladder-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.3rem, 4vw, 2.2rem); display: grid; gap: 1.4rem; }
.ladder-top h3 { font-size: var(--step-1); font-weight: 800; }
.big-pen { font-size: clamp(1.6rem, 4vw, 2.2rem) !important; }
.ladder-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; }
.ladder-top label { font-weight: 700; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
#cap { accent-color: var(--brand); width: 180px; max-width: 100%; }
#cap-out { font-family: var(--f-mono); color: var(--brand); font-weight: 500; }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rung { display: grid; grid-template-columns: 2.2rem minmax(0, 11rem) minmax(0, 1fr); gap: 0.9rem; align-items: baseline; padding: 0.55rem 0.7rem; border-radius: 8px; transition: opacity 0.25s; }
.rung .lv { font-family: var(--f-mono); font-weight: 500; color: var(--brand); }
.rung .name { font-weight: 700; }
.rung .ex { color: var(--muted); font-size: 0.93rem; }
.rung.off { opacity: 0.35; }
.rung.off .lv { color: var(--muted); }
.cap-line { border-top: 2px dashed var(--brand); position: relative; margin: 0.15rem 0; }
.cap-line span { position: absolute; right: 0; top: -1.45rem; background: var(--surface); padding: 0 0.3rem; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.pillar { display: grid; gap: 0.5rem; align-content: start; }
.pillar h3 { font-size: 1.15rem; }
.pillar p { color: var(--muted); font-size: 0.97rem; }

/* benefits */
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 3.5rem) 2rem; }
.perk { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.perk svg { width: 40px; height: 40px; margin-bottom: 0.3rem; }
.perk h3 { font-size: var(--step-1); font-weight: 800; }
.perk p { color: var(--muted); }
@media (max-width: 860px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .perks { grid-template-columns: minmax(0, 1fr); } }

/* restored compact blocks */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding-top: 0.5rem; }
.stats > div { display: grid; gap: 0.3rem; border-top: 3px solid var(--brand); padding-top: 0.7rem; }
.stats span:last-child { color: var(--muted); font-size: 0.95rem; }
.stat-n { font-family: var(--f-display); font-weight: 800; font-size: var(--step-3); line-height: 1; color: var(--brand); }
.khan-line { font-size: var(--step-1); max-width: 34ch; }
.frame { display: grid; gap: 1.2rem; }
.frame-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.lyr { font-weight: 700; padding: 0.5rem 0.9rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.lyr.t { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); background: var(--brand-soft); color: var(--brand); }
.lyr.s { border-style: dashed; color: var(--muted); }
.arr { color: var(--muted); }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.trust > div { display: grid; gap: 0.3rem; }
.trust h3 { font-size: 1.1rem; }
.trust p { color: var(--muted); }
.roles2 { display: grid; gap: 1.2rem; }
.roles2 h3 { font-size: var(--step-2); font-weight: 800; }
.roles2 .red { color: var(--brand); }
.roles2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 3rem); }
.roles2-grid > div { display: grid; gap: 0.6rem; border-top: 3px solid var(--ink); padding-top: 0.8rem; }
.roles2-grid > div.t { border-color: var(--brand); }
.roles2-grid > div.t .eyebrow { color: var(--brand); }
.roles2-grid ul, .steps { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
@media (max-width: 860px) { .trust { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .stats, .roles2-grid { grid-template-columns: minmax(0, 1fr); } }

/* status + signup */
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.status-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding-bottom: 0.6rem; border-bottom: 1px dashed var(--line); }
.status-list .st { font-family: var(--f-mono); font-size: 0.78rem; padding-top: 0.2rem; }
.st.done { color: var(--ok); }
.st.next { color: var(--brand); }
.st.open { color: var(--red); }

.signup { background: var(--ink); color: var(--paper); border-radius: 18px; padding: clamp(2rem, 7vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.signup-text { display: grid; gap: 1rem; }
.eyebrow.on-dark { color: color-mix(in srgb, var(--paper) 65%, var(--ink)); }
.signup h2 { font-size: var(--step-3); font-weight: 800; }
.signup p, .signup li { color: color-mix(in srgb, var(--paper) 82%, var(--ink)); }
.signup ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.signup .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); font-size: 1.05rem; padding: 1rem 1.4rem; }
.signup .btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.signup .cta { display: grid; gap: 0.8rem; justify-items: start; }
.signup .small { font-size: var(--step--1); }

/* sources */
.sources ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.6rem; font-size: 0.93rem; color: var(--muted); max-width: 80ch; }
.sources li::marker { font-family: var(--f-mono); color: var(--ink); }
footer .wrap { padding-block: 2rem 3rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; color: var(--muted); font-size: var(--step--1); }
sup a { font-family: var(--f-mono); font-size: 0.7rem; text-decoration: none; }

@media (max-width: 860px) {
  .compare, .evidence, .sigma, .layers, .signup, .khan { grid-template-columns: minmax(0, 1fr); }
  .role-row { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .role-headrow { display: none; }
  .role-row [role="cell"]:nth-child(2)::before { content: "Leerkader: "; font-weight: 700; color: var(--ink); }
  .role-row [role="cell"]:last-child::before { content: "Leerkracht: "; font-weight: 700; color: var(--brand); }
  .settings, .pillars { grid-template-columns: minmax(0, 1fr); }
  .rung { grid-template-columns: 2rem minmax(0, 1fr); }
  .rung .ex { grid-column: 2; }
  .status-list li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}
@media (max-width: 520px) {
  .top .btn { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
  .ratio { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* base */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
section[id], [id^="bron-"] { scroll-margin-top: 5rem; }
.skip { position: absolute; left: -999px; top: 0; z-index: 20; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--brand); }
.perks-note { color: var(--muted); font-size: var(--step--1); }
footer .wrap { align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot-links a { color: var(--muted); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* legal and simple pages */
.legal .prose { max-width: 64ch; }
.legal h1 { font-family: var(--f-display); font-size: var(--step-3); font-weight: 800; }
section.block.legal h2 { font-size: var(--step-1); font-weight: 800; margin-top: 1rem; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
