/* One committed light theme, after Luke's reference (2026-11-16): monochrome ink and white,
   a wide display face (Unbounded, self-hosted, OFL), pill buttons and full-bleed photo cards.
   Flat controls: borders and fills, no gloss or shadows. */
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #f3f2ee;
  --surface: #ffffff;
  --sunk: #ecebe6;
  --ink: #141413;
  --muted: #5e5d58;
  --line: #e2e0d9;
  --line-strong: #cbc8bf;
  --accent: #141413;
  --accent-ink: #ffffff;
  --accent-soft: #ecebe6;
  --dark: #23221e;
  --out: #2c6a39;      --out-bg: #e6f1e5;
  --std: #8a5800;      --std-bg: #fbf0d9;
  --enh: #a2261d;      --enh-bg: #fbe5e2;
  --radius: 18px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
body > .foot { margin-top: auto; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h3 { font-weight: 500; letter-spacing: -0.01em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Top bar: brand left, a white pill nav right (dark pill for the account action) */
.top { background: transparent; }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); position: relative; flex: none; }
.mark::after { content: ""; position: absolute; left: 10px; top: 6px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(40deg); }
.top-note { color: var(--muted); font-size: 14px; }

/* Hero */
.hero { padding: 44px 0 28px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 600; font-size: 14px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); max-width: 18ch; }
.lede { max-width: 62ch; color: var(--muted); font-size: 18px; margin: 14px 0 20px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: end; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--surface); padding: 16px; }
.facts dt { font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.facts dd { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.notice { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--std); border-radius: 8px; padding: 10px 14px; font-size: 15px; max-width: 760px; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding-bottom: 48px; }

/* Steps */
.steps { display: grid; gap: 18px; }
.step { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px 24px 24px; min-width: 0; transition: opacity .2s; }
.step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.step legend + * { clear: both; }
.num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-size: 15px; }
.step.skipped { opacity: .45; }
.step.skipped .tiles, .step.skipped .list, .step.skipped .method-fields, .step.skipped .field, .step.skipped .small { display: none; }
.step.skipped .q::after { content: " — not needed for your result."; color: var(--muted); }
.no-use .use-q, .no-use #uses { display: none; }
.q { margin: 14px 0 10px; font-weight: 600; }
.small { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* Segmented yes/no */
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--surface); flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 10px 18px; cursor: pointer; font-weight: 600; border-right: 1px solid var(--line); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -4px; }
.small-seg span { padding: 6px 14px; font-size: 14px; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.tiles.methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.methods .tile:last-child { grid-column: 1 / -1; }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; }
.tile > span { display: block; height: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.tile b { display: block; font-size: 15px; }
.tile small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.tile:hover > span { border-color: var(--line-strong); }
.tile input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.tile input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Radio list */
.list { display: grid; gap: 8px; }
.row { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer; }
.row input { margin-top: 4px; accent-color: var(--accent); }
.row:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* Fields */
.method-fields .panel { margin-top: 14px; background: var(--sunk); border-radius: 10px; padding: 16px; display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; }
.field.narrow { max-width: 360px; }
.field input, .field select { font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.inline-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 600; max-width: 520px; }
.hide { display: none !important; }
.areas { display: grid; gap: 10px; }
.area { display: grid; grid-template-columns: minmax(0, 1fr) 140px 40px; gap: 10px; align-items: end; }
.icon-btn { height: 44px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; font-size: 20px; cursor: pointer; color: var(--muted); }

/* Buttons */
.btn { font-family: var(--display); font-weight: 500; font-size: 12.5px; line-height: 1.2; letter-spacing: .03em; text-transform: uppercase; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); padding: 13px 20px; border-radius: 999px; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); }
.btn:hover { filter: brightness(1.25); }
.btn.ghost:hover, .btn.light:hover { filter: none; }
.method-fields .btn.ghost { justify-self: start; }

/* Result card */
.result { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.result-head { padding: 20px 22px 18px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.result-head .tag { margin: 0 0 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.result-head h2 { font-size: 26px; }
.s-out .result-head { background: var(--out-bg); } .s-out .result-head .tag { color: var(--out); }
.s-standard .result-head { background: var(--std-bg); } .s-standard .result-head .tag { color: var(--std); }
.s-enhanced .result-head { background: var(--enh-bg); } .s-enhanced .result-head .tag { color: var(--enh); }
.result-body { padding: 18px 22px 20px; display: grid; gap: 14px; }
.figure { display: flex; align-items: baseline; gap: 10px; }
.figure b { font-size: 40px; line-height: 1; }
.figure span { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); margin: 0; font-size: 15px; }
.label { margin: 0 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.reasons, .plain, .checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.reasons li { padding-left: 14px; border-left: 3px solid var(--line-strong); }
.plain li { padding-left: 16px; position: relative; } .plain li::before { content: "•"; position: absolute; left: 2px; color: var(--muted); }
.checks li { padding-left: 24px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 6px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.notes { background: var(--sunk); border-radius: 10px; padding: 12px 14px; }
.todo { border-top: 1px solid var(--line); padding-top: 14px; }
.penalty { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fine { margin: 0; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.preview { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px 14px; }

/* Scale */
.scale { padding: 4px 0 18px; }
.bar { position: relative; height: 12px; border-radius: 6px; overflow: visible; display: flex; }
.z { height: 100%; }
.z1 { width: 20%; background: var(--out-bg); border: 1px solid #cfe3cd; border-radius: 6px 0 0 6px; }
.z2 { width: 60%; background: var(--std-bg); border: 1px solid #efdcb2; border-left: 0; }
.z3 { width: 20%; background: var(--enh-bg); border: 1px solid #efc7c1; border-left: 0; border-radius: 0 6px 6px 0; }
.pin { position: absolute; top: -5px; width: 4px; height: 22px; margin-left: -2px; background: var(--ink); border-radius: 2px; transition: left .3s ease; }
.ticks { position: relative; height: 14px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ticks span:first-child { transform: none; } .ticks span:last-child { transform: translateX(-100%); }

/* Lower sections */
.band { padding: 40px 24px; border-top: 1px solid var(--line); }
.band h2 { font-size: 26px; margin-bottom: 16px; }
.section-lede { color: var(--muted); max-width: 70ch; margin: -6px 0 18px; }
.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.methods-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
.card p { margin: 8px 0 0; font-size: 15px; }
.card.mini h3 { font-size: 17px; margin-top: 8px; }
.card.mini p:last-child { color: var(--muted); }
.card.accent { background: var(--accent-soft); border-color: transparent; }
.tag { display: inline-block; margin: 0; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tag.spaced { margin-top: 18px; }
.t-standard { background: var(--std-bg); color: var(--std); }
.t-enhanced { background: var(--enh-bg); color: var(--enh); }
.t-neutral { background: var(--accent-soft); color: var(--accent); }
.card .penalty { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 14px; }
.sources ul { padding-left: 18px; display: grid; gap: 6px; }
.foot { background: var(--dark); color: #c9c7bf; padding: 28px 0; font-size: 14px; }
.foot p { margin: 0; max-width: 80ch; }

/* Top nav */
.topnav { display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.topnav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.topnav a:hover { background: var(--sunk); }
.topnav a[aria-current="page"] { background: var(--sunk); font-weight: 600; }
a.btn { display: inline-block; text-decoration: none; }

/* ---------- Builder ---------- */
.hero.slim { padding: 36px 0 24px; }
.facts dt small { font-size: 14px; margin-left: 2px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 12px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.step > .field, .step > .check { margin-top: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--surface); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.repeat { display: grid; gap: 12px; margin: 12px 0; }
.rep { background: var(--sunk); border-radius: 10px; padding: 14px 16px 16px; }
.rep .grid2 { margin-top: 8px; }
.rep-head { display: flex; align-items: center; justify-content: space-between; }
.rep-checks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
.rep .lock-how { margin-top: 12px; }
.icon-btn.sm { height: 30px; width: 30px; font-size: 17px; line-height: 1; }

/* Side panel */
.progress { height: 8px; background: var(--sunk); border-radius: 4px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sec-list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.sec-list a:hover { background: var(--sunk); }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-grid; place-items: center; font-size: 12px; color: var(--muted); flex: none; }
.sec-list .ok .dot { background: var(--accent); border-color: var(--accent); position: relative; }
.sec-list .ok .dot::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(0, -1px) rotate(40deg); }
.gaps ul, .doc-gaps ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.gaps li, .doc-gaps li { padding: 7px 10px; border-radius: 8px; background: var(--std-bg); }
.gaps li.high, .doc-gaps li.high { background: var(--enh-bg); }

/* Plan view */
.plan-bar { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.plan-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.plan-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-top: 28px; padding-bottom: 48px; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; }
.doc-head h1 { font-size: 32px; margin-top: 4px; }
.doc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin: 18px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.doc-meta dd { margin: 2px 0 0; font-weight: 600; }
.doc-flag { margin: 14px 0 0; font-size: 14px; color: var(--std); }
.doc-gaps { margin-top: 24px; }
.doc-gaps h2, .doc-sec h2 { font-size: 20px; margin-bottom: 10px; }
.doc-sec { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc-sec h2 { display: flex; align-items: center; gap: 10px; }
.doc-sec h2 span { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: 14px; flex: none; }
.doc-sec ol, .doc-sec ul { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 7px; }
.doc-sec p { margin: 8px 0 0; }
.scripts { margin-top: 14px; background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; }
.scripts p:not(.label) { margin: 6px 0 0; font-weight: 600; }
.ref { font-size: 12px; color: var(--muted); }
.sign-grid { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 16px; margin-top: 10px; }
.sign-grid div { border-bottom: 1px solid var(--ink); height: 46px; display: flex; align-items: flex-end; }
.sign-grid span { font-size: 12px; color: var(--muted); transform: translateY(18px); }
.signoff table { width: 100%; border-collapse: collapse; margin-top: 34px; font-size: 14px; }
.signoff th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line-strong); }
.signoff td { height: 34px; border-bottom: 1px solid var(--line); }
.doc-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Staff card */
.card-doc { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; }
.card-doc h2 { font-size: 19px; margin-top: 2px; }
.card-doc .eyebrow { margin: 0; }
.card-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.card-row b { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.cbox { border-radius: 10px; padding: 12px 14px; }
.cbox h3 { font-size: 18px; margin: 2px 0 4px; }
.cbox p { margin: 0; font-size: 14px; }
.cbox-tag { font-size: 11px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.cbox.in { background: var(--enh-bg); } .cbox.in .cbox-tag { color: var(--enh); }
.cbox.out { background: var(--std-bg); } .cbox.out .cbox-tag { color: var(--std); }
.card-row.self { background: var(--sunk); border-radius: 8px; border-top: 0; padding: 10px; }
.card-foot { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Training ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs button { font: inherit; font-weight: 600; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel-card h2 { font-size: 24px; margin-bottom: 6px; }
.spaced-top { margin-top: 18px; }
.who-form { align-items: end; margin-top: 8px; }
.chip-btn { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.sm { padding: 6px 12px; font-size: 14px; }
.btn[disabled] { opacity: .4; cursor: default; }
.lesson-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.lesson-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.lesson-list b { display: block; }
.lesson-list small { color: var(--muted); font-size: 13px; }
.l-num { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 14px; color: var(--muted); }
.l-num.ok { background: var(--accent); border-color: var(--accent); }
.l-num.ok::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(40deg); }
.l-num.warn { border-color: var(--std); color: var(--std); }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--out-bg); color: var(--out); }
.pill.warn { background: var(--std-bg); color: var(--std); }
.lesson { min-height: 380px; display: flex; flex-direction: column; }
.lesson-top { display: flex; justify-content: space-between; align-items: baseline; }
.dots { display: flex; gap: 6px; margin: 10px 0 26px; }
.dots span { flex: 1; height: 5px; border-radius: 3px; background: var(--sunk); }
.dots span.on { background: var(--accent); }
.lesson h2 { font-size: 28px; }
.lesson-text { font-size: 19px; line-height: 1.6; max-width: 60ch; margin: 10px 0 24px; flex: 1; }
.lesson .ref { margin: 16px 0 0; }
.quiz { display: grid; gap: 14px; margin-top: 12px; }
.qq { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0; }
.qq legend { font-weight: 700; padding: 0 4px; }
.qq.right { border-color: #b9d8b6; background: #f6fbf5; }
.qq.wrong { border-color: #efc7c1; background: #fdf6f5; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; cursor: pointer; margin-top: 4px; }
.opt:hover { background: var(--sunk); }
.opt input { margin-top: 4px; accent-color: var(--accent); }
.opt.correct { background: var(--out-bg); font-weight: 600; }
.why { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.quiz-result { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; border-radius: 10px; padding: 12px 16px; margin-top: 12px; }
.quiz-result.pass { background: var(--out-bg); color: var(--out); }
.quiz-result.fail { background: var(--std-bg); color: var(--std); }
.quiz-result span { color: var(--ink); font-size: 15px; }
.record-view { padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.record-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.record-stats div { background: var(--surface); padding: 16px 18px; }
.record-stats b { display: block; font-size: 30px; color: var(--accent); line-height: 1.1; }
.record-stats span { font-size: 13px; color: var(--muted); }
.record-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
table.record { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
table.record th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line-strong); vertical-align: bottom; }
table.record td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.record td small { display: block; color: var(--muted); }
.cell { font-size: 13px; color: var(--muted); }
.cell.ok { color: var(--out); font-weight: 600; }
.cell.warn { color: var(--std); font-weight: 600; }
.empty { text-align: center; padding: 28px 16px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.empty p { margin: 4px 0; }
.empty .btn { margin-top: 12px; }

/* ---------- Drills and reminders ---------- */
.facts div.hot { background: var(--enh-bg); }
.facts div.hot dt { color: var(--enh); }
.due-list { display: grid; gap: 10px; }
.due-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--radius); padding: 16px 18px; }
.due-item.st-overdue { border-left-color: var(--enh); }
.due-item.st-now { border-left-color: var(--accent); }
.due-item.st-soon { border-left-color: var(--std); }
.due-item h3 { font-size: 17px; margin: 6px 0 2px; }
.due-item .muted { font-size: 14px; }
.due-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0; font-size: 13px; color: var(--muted); }
.due-meta .kind { margin-left: auto; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 700; }
.pill.overdue { background: var(--enh-bg); color: var(--enh); }
.pill.now { background: var(--accent-soft); color: var(--accent); }
.pill.soon { background: var(--std-bg); color: var(--std); }
.due-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.due-actions .btn { text-align: center; white-space: nowrap; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 10px; align-items: end; margin-top: 12px; background: var(--sunk); border-radius: 10px; padding: 12px; }
.drill-form h2 { font-size: 24px; }
.drill-form .grid2 { margin-top: 14px; }
.drill-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; resize: vertical; width: 100%; }
.drill-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.proc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-errors { background: var(--enh-bg); color: var(--enh); border-radius: 10px; padding: 10px 14px; margin-top: 12px; font-weight: 600; font-size: 14px; }
.form-errors p { margin: 2px 0; }
.action-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 150px 44px; gap: 10px; align-items: end; }
.form-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.cov { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cov li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--sunk); font-size: 14px; }
.cov li span { color: var(--muted); text-align: right; }
.cov li.ok { background: var(--out-bg); }
.cov li.ok span { color: var(--out); font-weight: 600; }
.history { padding-bottom: 48px; }
.drill-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.drill-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 14px; }
.drill-card header { display: flex; justify-content: space-between; gap: 10px; }
.drill-card h3 { font-size: 17px; margin: 6px 0 0; }
.drill-card p { margin: 8px 0 0; }
.acts { margin: 8px 0 0; padding-left: 18px; }
.acts li.done { color: var(--muted); text-decoration: line-through; }

/* ---------- Accounts ---------- */
.topnav a.acct { margin-left: 4px; background: var(--ink); color: #fff; font-family: var(--display); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; padding: 10px 16px; }
.topnav a.acct:hover, .topnav a.acct[aria-current="page"] { background: #3a3935; }
.save-state { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.save-state.saved, .save-state.local { color: var(--out); }
.save-state.pending, .save-state.saving { color: var(--std); }
.save-state.bad { color: var(--enh); }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-top: 44px; padding-bottom: 56px; }
.auth-card h1 { font-size: 30px; margin: 4px 0 8px; }
.auth-form { display: grid; gap: 14px; margin-top: 18px; max-width: 440px; }
.auth-form .btn { justify-self: start; }
.auth-side { background: var(--accent-soft); border-radius: var(--radius); padding: 24px; }
.auth-side h2 { font-size: 20px; margin-bottom: 12px; }
.auth-side .muted { margin-top: 14px; font-size: 14px; }
.dev-box { margin-top: 18px; border: 1px dashed var(--std); background: var(--std-bg); border-radius: 10px; padding: 14px 16px; }
.dev-box p:not(.label) { margin: 0 0 10px; font-size: 14px; }
.loading { padding: 60px 24px; }
.setup-wrap { padding-bottom: 56px; }
.site-switch { margin: 12px 0 0; }
.tool-cards { margin: 0; }
.card.tool { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tool-status { margin: 0; font-size: 15px; font-weight: 600; flex: 1; }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.next-list li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.next-list li:first-child { border-top: 0; }
.next-list .pill { justify-self: start; }
.next-list b { display: block; font-size: 15px; }
.next-list small { color: var(--muted); font-size: 13px; }
.member-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.member-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: var(--sunk); border-radius: 8px; }
.member-list b { display: block; font-size: 14px; }
.member-list small { color: var(--muted); font-size: 12px; }
.mini-form { display: flex; gap: 8px; }
.mini-form input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; }
.acct-side .result-head .muted { margin-top: 4px; font-size: 13px; }
.import-card { border-color: var(--accent); background: var(--accent-soft); }
.import-card h2 { font-size: 20px; }
.staff-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.link-box { background: var(--out-bg); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.link-row { display: flex; gap: 8px; }
.link-row input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.row-acts { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }

/* ---------- Evidence folder ---------- */
.ev-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding-top: 28px; padding-bottom: 48px; }
.ev-side { position: sticky; top: 76px; }
.ev-doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ev-page { padding: 36px 40px; border-top: 1px dashed var(--line-strong); }
.ev-page:first-child { border-top: 0; }
.ev-cover h1 { font-size: 40px; margin-top: 6px; }
.ev-venue { font-size: 22px; font-weight: 600; margin: 6px 0 0; color: var(--accent); }
.ev-score { display: flex; align-items: baseline; gap: 12px; margin: 24px 0; padding: 16px 20px; background: var(--accent-soft); border-radius: 10px; }
.ev-score b { font-size: 44px; line-height: 1; color: var(--accent); }
.ev-score b small { font-size: 22px; color: var(--muted); }
.ev-toc { margin: 6px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.ev-toc li { margin: 4px 0; break-inside: avoid; }
.ev-toc a { color: var(--ink); text-decoration: none; }
.ev-flag { margin-top: 24px; font-size: 14px; color: var(--std); }
.ev-h { display: flex; align-items: center; gap: 12px; font-size: 24px; margin: 0 0 16px; }
.ev-h:not(:first-child) { margin-top: 36px; }
.ev-h span { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: 16px; flex: none; }
.ev-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ev-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line-strong); vertical-align: bottom; }
.ev-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ev-table td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ev-check td:first-child { width: 34%; }
.ev-check td:nth-child(2) { width: 90px; }
.ev-duties { margin-top: 20px; background: var(--sunk); border-radius: 10px; padding: 14px 18px; }
.ev-duties ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.ev-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.ev-fill { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 14px 0 22px; }
.ev-fill div { display: flex; flex-direction: column; justify-content: flex-end; height: 64px; }
.ev-fill div::before { content: ""; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.ev-fill span { font-size: 12px; color: var(--muted); }
.ev-plan .doc-sec h2 span { width: auto; min-width: 28px; padding: 0 7px; border-radius: 14px; }
.ev-table td:first-child { min-width: 120px; }
.blank-line { display: inline-block; width: 160px; border-bottom: 1px solid var(--ink); height: 1em; }
.ev-plan.doc { border: 0; padding: 0; }
.ev-plan .doc-sec:first-child, .ev-plan .doc-gaps:first-child { margin-top: 0; }
.ev-card.card-doc { position: static; max-height: none; max-width: 560px; }
.ev-empty { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ev-empty p { margin: 0; color: var(--muted); }
.ev-sources { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); }

/* ---------- Pricing and billing ---------- */
.pricing-wrap { padding-bottom: 40px; }
.price-controls { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: end; margin-bottom: 20px; }
.venue-count { width: 180px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.price-card.best { border: 2px solid var(--accent); }
.price-card.free { background: var(--sunk); }
.price-card h2 { font-size: 22px; }
.price-card .muted { margin: 0; font-size: 15px; }
.best-tag { position: absolute; top: -12px; left: 20px; margin: 0; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 0; }
.price b { font-size: 38px; line-height: 1; }
.price span { color: var(--muted); font-size: 14px; }
.price-card > small { color: var(--muted); font-size: 13px; margin-top: -6px; }
.price-total { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--accent-soft); border-radius: 8px; font-size: 14px; }
.price-card .checks { flex: 1; margin-top: 6px; }
.price-cta .btn { width: 100%; text-align: center; }
.pay-msg { margin-bottom: 12px; }
.faq h3 { font-size: 17px; }
.bill-banner { border-radius: var(--radius); padding: 14px 18px; background: var(--std-bg); font-size: 15px; }
.bill-banner.ok { background: var(--out-bg); }
.bill-banner.bad { background: var(--enh-bg); }
.bill-box { background: var(--sunk); border-radius: 10px; padding: 12px; }
.bill-box .btn { margin-top: 8px; }
.bill-status { margin: 0; }
.bill-status b { display: block; font-size: 15px; }
.bill-status small { color: var(--muted); font-size: 13px; }
.bill-status.bad b { color: var(--enh); }

/* ---------- Public website ---------- */
.btn-lg { padding: 17px 26px; font-size: 13.5px; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.btn.ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-pair { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn-arrow { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink); display: inline-grid; place-items: center; font-size: 20px; line-height: 1; }
.btn-pair:hover .btn-arrow { transform: translateX(2px); }
.btn-pair .btn-arrow { transition: transform .15s; }
.btn-pair.dark .btn-arrow { background: var(--ink); color: #fff; }

/* Full-bleed photo card (home and features heroes) */
.photo-hero { position: relative; margin: 12px; border-radius: 30px; overflow: hidden; color: #fff; background: #2b3a4a url("img/venue.jpg") center 35% / cover no-repeat; min-height: min(880px, calc(100vh - 24px)); display: flex; flex-direction: column; }
.photo-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,20,.55) 0%, rgba(10,14,20,.18) 55%, rgba(10,14,20,0) 75%), linear-gradient(180deg, rgba(10,14,20,.5) 0%, rgba(10,14,20,.15) 40%, rgba(10,14,20,.1) 58%, rgba(10,14,20,.7) 100%); pointer-events: none; }
.photo-hero > * { position: relative; }
.photo-hero .top-inner { max-width: none; padding: 0 28px; height: 92px; }
.photo-hero .brand { color: #fff; }
.photo-hero .mark { background: #fff; }
.photo-hero .mark::after { border-color: var(--ink); }
.ph-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 28px 44px 40px; }
.ph-eyebrow { margin: 0 0 18px; font-size: 14px; color: rgba(255,255,255,.82); }
.photo-hero h1 { font-size: clamp(32px, 5vw, 70px); line-height: 1.06; max-width: 15ch; font-weight: 400; }
.ph-ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.ph-small { margin: 14px 0 0; font-size: 13px; color: rgba(255,255,255,.78); }
.ph-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ph-note { margin: 0; max-width: 40ch; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.92); }
.ph-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ph-chips span { border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 8px 14px; font-size: 13px; }
.photo-hero.short { min-height: 560px; }
.ph-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.22); border-radius: 20px; overflow: hidden; width: min(100%, 720px); }
.ph-facts div { background: rgba(14,18,24,.55); padding: 16px 18px; }
.ph-facts dt { font-family: var(--display); font-size: 26px; font-weight: 500; line-height: 1.1; }
.ph-facts dt small { font-size: 13px; margin-left: 2px; opacity: .8; }
.ph-facts dd { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.82); }
.page-head { padding: 8px 0 28px; }

/* "At a glance" band with the dashboard preview */
.glance { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.glance h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }
.glance .checks { margin: 18px 0 24px; font-size: 16px; }
.hero-ctas { margin: 22px 0 10px; }

.mock-window { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-bar p { margin: 0 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-tiles div { background: var(--sunk); border-radius: 10px; padding: 12px; }
.mock-tiles b { display: block; font-size: 24px; color: var(--accent); line-height: 1.1; }
.mock-tiles span { font-size: 12px; color: var(--muted); }
.mock-body .label { margin: 4px 0 0; }
.mock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mock-list li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.mock-list .pill { justify-self: start; }
.mock-list b { display: block; font-size: 14px; }
.mock-list small { color: var(--muted); font-size: 12px; }
.mock-foot { display: flex; justify-content: flex-end; }

/* Full-bleed-looking blocks that still line up with the page content (the .wrap gutter). */
.fact-strip, .cta-band { width: calc(100% - 48px); max-width: 1112px; margin-left: auto; margin-right: auto; }
.hero-grid > .jump { grid-column: 1 / -1; }
.fact-strip.wrap { padding: 0; }
.fact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 28px; margin-bottom: 8px; padding: 0; }
.fact-strip div { background: var(--surface); padding: 18px 20px; }
.fact-strip b { display: block; font-family: var(--display); font-weight: 500; font-size: 30px; color: var(--ink); line-height: 1.1; margin-bottom: 4px; }
.fact-strip span { font-size: 14px; color: var(--muted); }
.card h3 { font-size: 18px; margin-top: 10px; }
.help-line { background: var(--accent-soft); border-radius: 8px; padding: 10px 12px; margin-top: 14px !important; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0 !important; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.f-num { font-family: var(--display); font-size: 12px; font-weight: 500; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 10px; }
.feature h3 { font-size: 18px; margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps-row li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps-row span { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-weight: 700; }
.steps-row h3 { font-size: 18px; margin: 12px 0 6px; }
.steps-row p { margin: 0; color: var(--muted); font-size: 15px; }
.who-chips span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 14px; }
.who .muted { margin-top: 14px; }
.price-teaser { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.price-teaser.best { border: 2px solid var(--accent); }
.price-teaser .price { margin: 0; }
.price-teaser p:not(.tag):not(.price) { flex: 1; color: var(--muted); }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--dark); color: #fff; border-radius: 30px; padding: 48px 48px; margin-top: 16px; margin-bottom: 48px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 36px); max-width: 18ch; }
.cta-band p { margin: 6px 0 0; color: rgba(255,255,255,.85); }
.site-foot { padding: 36px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 24px; margin-bottom: 20px; }
.foot-grid a { display: block; color: #c9ced4; text-decoration: none; margin: 4px 0; }
.foot-grid a:hover { color: #fff; }
.foot-brand { color: #fff; font-family: var(--display); font-weight: 500; font-size: 17px; }
.foot-word { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 12.4vw, 158px); line-height: .9; letter-spacing: -0.04em; color: #fff; margin: 8px 0 18px; white-space: nowrap; overflow: hidden; }
.site-foot { background: var(--dark); }
.foot-h { color: #fff; font-weight: 700; margin-bottom: 6px !important; }
.foot .foot-fine { max-width: none; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; font-size: 13px; }

/* Features page */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--surface); }
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.features-page { display: grid; gap: 20px; padding-bottom: 32px; }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px; scroll-margin-top: 20px; }
.feat:nth-child(even) .feat-text { order: 2; }
.feat h2 { font-size: 28px; margin: 10px 0 8px; }
.lede-sm { font-size: 17px; color: var(--muted); margin: 0 0 14px; }
.feat .checks { margin-bottom: 18px; }
.t-out-tag { background: var(--out-bg); color: var(--out); }
.feat-visual { background: var(--sunk); border-radius: 12px; padding: 24px; display: grid; place-items: center; min-height: 280px; }
.mock-panel { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mock-result-head { background: var(--std-bg); padding: 14px 18px; }
.mock-result-head p { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--std); }
.mock-result-head h3 { margin: 2px 0 0; font-size: 22px; }
.mock-panel-body { padding: 16px 18px; display: grid; gap: 10px; }
.mock-figure { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.mock-figure b { font-size: 34px; line-height: 1; }
.mock-figure span { font-size: 13px; color: var(--muted); }
.mock-scale { position: relative; display: flex; height: 10px; margin: 6px 0; }
.mock-scale span { height: 100%; }
.mock-scale .z1 { width: 20%; background: var(--out-bg); border-radius: 5px 0 0 5px; }
.mock-scale .z2 { width: 60%; background: var(--std-bg); }
.mock-scale .z3 { width: 20%; background: var(--enh-bg); border-radius: 0 5px 5px 0; }
.mock-scale i { position: absolute; top: -5px; width: 4px; height: 20px; background: var(--ink); border-radius: 2px; }
.small-checks { font-size: 13px; }
.mock-doc { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.mock-doc h3 { font-size: 22px; margin: 2px 0 10px; }
.mock-doc h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 16px; }
.mock-doc h4 span { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: 12px; }
.mock-doc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.mock-card.card-doc { position: static; max-height: none; width: 100%; max-width: 420px; }
.phone { width: 260px; border: 10px solid var(--ink); border-radius: 34px; background: var(--surface); padding: 20px 16px 24px; }
.phone-screen h3 { font-size: 20px; margin: 4px 0 6px; }
.phone-screen p:not(.label) { font-size: 14px; margin: 0 0 14px; }
.phone-screen .dots { margin: 8px 0 16px; }
.mock-due { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 10px; }
.mock-due .pill { justify-self: start; margin-bottom: 4px; }
.mock-due b { font-size: 14px; }
.mock-due small { font-size: 12px; color: var(--muted); }
.mock-due.st-overdue { border-left-color: var(--enh); }
.mock-due.st-soon { border-left-color: var(--std); }
.mock-score { margin: 0; font-size: 14px; color: var(--muted); }
.mock-score b { font-size: 32px; color: var(--accent); margin-right: 6px; }
.mock-score small { font-size: 16px; color: var(--muted); }
.mock-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.mock-checklist li { display: flex; gap: 10px; align-items: center; }
.trust-grid { grid-template-columns: 1fr 1fr; }
.trust-grid div { background: var(--sunk); border-radius: 10px; padding: 14px; }
.trust-grid b { display: block; font-size: 20px; color: var(--accent); }
.trust-grid span { font-size: 13px; color: var(--muted); }

/* ---------- Admin portal ---------- */
.admin-tag { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 9px; margin-left: 2px; }
.admin-wrap { padding-bottom: 48px; max-width: 1440px; }
.admin-page .top .wrap, .admin-page .foot .wrap { max-width: 1440px; }
.admin-fit { display: inline-block; margin-top: 6px; }
.admin-table td:nth-child(2) { width: 42%; }
.admin-table td:nth-child(3) { width: 30%; }
.admin-hero .hero-grid { align-items: start; }
.admin-send { padding: 18px 20px; }
.admin-dl { margin: 6px 0 0; display: grid; gap: 0; }
.admin-dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.admin-dl div:first-child { border-top: 0; }
.admin-dl dt { color: var(--muted); }
.admin-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.warn-text { color: var(--std); font-weight: 600; }
.ok-text { color: var(--out); font-weight: 600; display: block; font-size: 12px; margin-top: 4px; }
.admin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 4px 0 24px; }
.admin-kpis div { background: var(--surface); padding: 16px 18px; display: grid; gap: 2px; }
.admin-kpis span { font-size: 13px; color: var(--muted); font-weight: 600; }
.admin-kpis b { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.admin-kpis small { font-size: 12px; color: var(--muted); }
.admin-tabs { margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.admin-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.admin-main > *, .admin-find-form > *, .admin-leads > * { min-width: 0; }
.admin-leads .record-head .actions { flex-wrap: wrap; }
.admin-missing .muted { max-width: 64ch; font-size: 14px; margin-top: 6px; }
.admin-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.admin-steps li { background: var(--sunk); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.admin-steps b { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--ink); }
.admin-steps li.done { background: var(--out-bg); }
.admin-steps li.off { background: var(--std-bg); }
.admin-progress { font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .admin-steps { grid-template-columns: minmax(0, 1fr); } }
.admin-more { display: flex; justify-content: center; padding: 14px 0 2px; }
.admin-frame { max-height: 640px; overflow-y: auto; }
.admin-find h2, .admin-leads h2, .admin-wrap .panel-card h2 { font-size: 22px; }
.admin-find .muted { max-width: 70ch; margin-top: 6px; font-size: 14px; }
.admin-find-form { display: grid; gap: 14px; margin-top: 16px; }
.admin-find-form .field { max-width: 520px; }
.admin-find-form .chip span { font-size: 13px; padding: 7px 12px; }
.admin-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.admin-filters input, .admin-filters select, .admin-add input, .admin-add select, .admin-table select { font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); min-width: 0; width: 100%; }
.admin-table select { padding: 5px 10px; font-size: 13px; width: auto; }
.admin-flash { margin-bottom: 14px; font-size: 14px; }
table.admin-table { min-width: 620px; }
.admin-table td { vertical-align: top; }
.admin-table td:first-child { width: 28px; padding-top: 13px; }
.admin-table td b { display: block; font-size: 14px; }
.admin-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ink); }
.admin-site { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.admin-email { font-size: 13px; overflow-wrap: anywhere; }
.admin-why { font-size: 12px; color: var(--muted); white-space: nowrap; }
.admin-why.block { display: block; margin: 10px 0 0; color: var(--std); font-weight: 600; white-space: normal; }
.admin-table tr.is-previewing td { background: var(--sunk); }
.chip-btn.sm { padding: 5px 11px; font-size: 12px; }
.admin-add { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-add-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.4fr) auto; gap: 8px; }
.admin-side { position: sticky; top: 16px; }
.admin-preview { padding: 18px; }
.admin-preview-meta .btn { margin-top: 10px; width: 100%; }
.admin-frame { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #f3f2ee; }
.admin-denied { max-width: 640px; margin: 48px 0; }
.unsub-wrap { padding-top: 48px; padding-bottom: 64px; }
.unsub-card { max-width: 640px; }
.unsub-card h1 { font-size: 30px; margin: 4px 0 10px; }
@media (max-width: 1100px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } .admin-side { position: static; } }
@media (max-width: 760px) {
  .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filters, .admin-add-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Big numbers use the display face */
.facts dt, .figure b, .record-stats b, .price b, .ev-score b, .mock-tiles b, .mock-figure b, .mock-score b, .trust-grid b, .result-head h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }
.facts dt, .record-stats b, .ev-score b, .mock-tiles b, .mock-score b, .trust-grid b { color: var(--ink); }

/* App: locked and read-only states */
.locked-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: 48px; }
.card.locked { opacity: .85; }
.readonly-bar { background: var(--enh-bg); border-bottom: 1px solid #efc7c1; padding: 10px 0; font-size: 14px; }

/* Responsive */
@media (max-width: 980px) {
  .layout, .hero-grid, .doc-wrap, .auth-wrap, .ev-wrap { grid-template-columns: 1fr; }
  .ev-side { position: static; order: -1; }
  .ev-wrap { grid-template-columns: minmax(0, 1fr); }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .home-grid, .feat, .glance { grid-template-columns: minmax(0, 1fr); }
  .ph-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav:not([data-app]) a[href="/checker.html"] { display: none; }
  .topnav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .ph-body { padding: 20px 28px 32px; }
  .feat:nth-child(even) .feat-text { order: 0; }
  .feature-grid, .steps-row, .locked-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .ev-page { overflow-x: auto; }
  .card-doc { position: static; }
  .result { position: static; max-height: none; }
  .cards.three { grid-template-columns: 1fr; }
  .methods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .band { padding: 32px 16px; }
  .brand { font-size: 0; gap: 0; }
  .grid2, .doc-meta { grid-template-columns: 1fr; }
  .record-stats { grid-template-columns: 1fr 1fr; }
  .due-item { grid-template-columns: 1fr; }
  .due-actions { flex-direction: row; flex-wrap: wrap; }
  .inline-form, .action-row, .drill-cards, .proc-tiles { grid-template-columns: 1fr; }
  .action-row .icon-btn { justify-self: start; width: 44px; }
  .lesson-list li { grid-template-columns: 32px minmax(0, 1fr); }
  .lesson-list .pill, .lesson-list .btn { grid-column: 2; justify-self: start; }
  .lesson h2 { font-size: 23px; }
  .lesson-text { font-size: 17px; }
  .topnav { gap: 0; flex-wrap: wrap; justify-content: flex-end; }
  .top-inner { height: auto; min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
  .staff-add { grid-template-columns: 1fr; }
  .next-list li { grid-template-columns: 1fr; gap: 4px; }
  .topnav a { padding: 7px 7px; font-size: 13px; white-space: nowrap; }
  .doc { padding: 22px 18px; }
  .sign-grid { grid-template-columns: 1fr; }
  .ev-page { padding: 24px 18px; }
  .feature-grid, .steps-row, .locked-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .feat { padding: 22px 18px; gap: 20px; }
  .feat-visual { padding: 14px; min-height: 0; }
  .cta-band { padding: 26px 20px; }
  .fact-strip, .cta-band { width: calc(100% - 32px); }
  .mock-list li { grid-template-columns: 1fr; gap: 4px; }
  .phone { width: 230px; }
  .photo-hero { margin: 8px; border-radius: 22px; min-height: 640px; }
  .photo-hero.short { min-height: 560px; }
  .photo-hero .top-inner { padding: 0 12px; height: 76px; }
  .ph-body { padding: 12px 18px 22px; }
  .ph-ctas { margin-top: 24px; }
  .btn-lg { padding: 15px 20px; font-size: 12px; }
  .btn-arrow { width: 46px; height: 46px; }
  .ph-chips { display: none; }
  .ph-facts dt { font-size: 22px; }
  .ph-facts div { padding: 12px 14px; }
  .topnav { padding: 4px; }
  .topnav a.acct { padding: 8px 11px; font-size: 10.5px; }
  .topnav:not([data-app]) a[href="/checker.html"] { display: none; }
  .topnav { flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .ev-cover h1 { font-size: 32px; }
  .ev-toc { columns: 1; }
  .ev-fill, .ev-scope { grid-template-columns: 1fr; }
  .ev-page .ev-table { display: block; overflow-x: auto; }
  .step { padding: 18px 16px 20px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .methods-grid { grid-template-columns: 1fr; }
  .area { grid-template-columns: minmax(0, 1fr) 40px; }
  .area .m2 { grid-column: 1; }
  .area .icon-btn { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
}

/* Print: just the result */
@page { size: A4; margin: 16mm 14mm; }
@media print {
  body { background: #fff; }
  .top, .hero .lede, .steps, .band, .foot, .actions { display: none !important; }
  .layout { display: block; }
  .result { position: static; max-height: none; border: 1px solid #999; }
  .facts { display: none; }
  /* Builder: print only the chosen document */
  .builder-page .plan-bar, .builder-page #answers-view { display: none !important; }
  .builder-page .doc-wrap { display: block; padding: 0; }
  .builder-page .doc { border: 0; padding: 0; }
  .builder-page[data-print="plan"] .card-doc { display: none; }
  .builder-page[data-print="card"] .doc { display: none; }
  .card-doc { position: static; max-width: 520px; margin: 0 auto; break-inside: avoid; }
  .doc-sec { break-inside: avoid-page; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Training: print the team record only */
  .training-page .tabs, .training-page #learn-view, .training-page .hero, .training-page .record-head .actions, .training-page [data-remove] { display: none !important; }
  .training-page .record-view { display: grid !important; }
  .training-page table.record { min-width: 0; }
  /* Drills: print the history only */
  .drills-page .tabs, .drills-page .hero, .drills-page #due-view, .drills-page #log-view > .layout, .drills-page .record-head .actions, .drills-page [data-del-drill] { display: none !important; }
  .drills-page #log-view { display: block !important; }
  .drills-page .drill-card { break-inside: avoid; }
  /* Evidence folder: a clean A4 document, one section per page */
  .evidence-page .plan-bar, .evidence-page .ev-side, .evidence-page .no-print { display: none !important; }
  .evidence-page .ev-wrap { display: block; padding: 0; max-width: none; }
  .evidence-page .ev-doc { border: 0; border-radius: 0; }
  .evidence-page .ev-page { padding: 0; border: 0; break-before: page; }
  .evidence-page .ev-page:first-child { break-before: auto; }
  .evidence-page .ev-table tr, .evidence-page .doc-sec { break-inside: avoid; }
  .evidence-page .ev-h { break-after: avoid; }
  .evidence-page .ev-cover { min-height: 240mm; }
  .evidence-page body, .evidence-page { font-size: 12pt; }
}
