/* ==========================================================================
   THE 100% AUDIT — STYLES
   Visual identity taken from the printed Audit: near-black, warm ivory,
   stone, bronze/gold accent, Cormorant Garamond + Inter, contour lines.
   Mobile-first. Desktop rules are in the min-width blocks.
   ========================================================================== */

/* Fonts are served from this site (no third-party requests). Both are open-source (SIL OFL). */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --black: #0d0c0a;
  --char: #171512;
  --ivory: #efebe3;
  --ivory-2: #e7e2d8;
  --ink: #12100d;
  --ink-2: #4a463f;
  --stone: #857e72;
  --cream: #ebe5d8;      /* text on dark */
  --cream-2: #aaa397;    /* muted text on dark */
  --gold: #c9ae87;       /* accent on dark */
  --bronze: #8a6a45;     /* accent on light */
  --line-d: rgba(235, 229, 216, 0.14);
  --line-l: rgba(18, 16, 13, 0.16);
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: 22px;
  --max: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ol, ul, fieldset, legend { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
em { font-style: italic; }
b { font-weight: 500; }
#app:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ivory); color: var(--ink); padding: 10px 14px; font-size: 13px; }
.skip-link:focus { top: 12px; }
.noscript { padding: 60px var(--gutter); max-width: 600px; margin: 0 auto; }
.noscript a { color: var(--gold); }

/* Focus: always visible, never the browser default blue */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--bronze); }

/* ---------- surfaces ---------- */
.screen { position: relative; }
.wrap { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.dark { background: var(--black); color: var(--cream); }
.light { background: var(--ivory); color: var(--ink); }
.topo { position: relative; isolation: isolate; }
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/topo.svg") center / 900px 900px; opacity: 0.075;
}
.screen.dark, .screen.light { padding: 56px 0 64px; }

/* ---------- type ---------- */
.display { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: 0.005em; text-transform: uppercase; }
.display em { text-transform: none; font-weight: 400; }
.ln { display: inline; }
.blk { display: block; }
.h-xl { font-size: clamp(40px, 11vw, 78px); }
.h-lg { font-size: clamp(34px, 8.6vw, 60px); }
.h-md { font-size: clamp(27px, 6.4vw, 40px); line-height: 1.06; }
.serif { font-family: var(--serif); }
.gold { color: var(--gold); }
.bronze { color: var(--bronze); }
.dim { opacity: 0.62; }
.lead { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.25; margin-bottom: 12px; }
.label { font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.kicker { font-size: 10.5px; font-weight: 500; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; }
.fine { font-size: 12px; color: var(--cream-2); line-height: 1.5; }

.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream-2); margin-bottom: 22px; }
.eyebrow-n { font-family: var(--serif); font-size: 15px; letter-spacing: 0.1em; color: var(--gold); }
.eyebrow-n b { font-weight: 500; }
.eyebrow-rule { width: 36px; height: 1px; background: currentColor; opacity: 0.6; }
.light .eyebrow { color: var(--ink-2); }
.light .eyebrow-n { color: var(--bronze); }

/* ---------- brand bar ---------- */
.brandbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.brandbar-id { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 14px; letter-spacing: 0.2em; color: var(--cream); }
.brandbar-id img { width: 30px; height: auto; }
.brandbar-right { font-size: 10.5px; letter-spacing: 0.22em; color: var(--cream-2); }
.brandbar-right b { font-family: var(--serif); font-size: 15px; color: var(--gold); margin-left: 6px; letter-spacing: 0.1em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 16px 26px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; text-align: center; line-height: 1.3;
  cursor: pointer; transition: background-color 0.18s, color 0.18s, border-color 0.18s, opacity 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.btn .arrow { font-size: 16px; letter-spacing: 0; transition: transform 0.18s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-dark { background: var(--black); color: var(--ivory); }
.btn-dark:hover { background: #26221c; }
.btn-outline { background: transparent; color: var(--cream); border-color: rgba(235, 229, 216, 0.5); }
.btn-outline:hover { border-color: var(--cream); }
.btn-ghost, .btn-ghost-dark { background: transparent; padding-left: 4px; padding-right: 12px; font-weight: 500; }
.btn-ghost { color: var(--cream-2); }
.btn-ghost:hover { color: var(--cream); }
.btn-ghost-dark { color: var(--ink-2); }
.btn-ghost-dark:hover { color: var(--ink); }
.btn[disabled], .btn.is-busy { opacity: 0.55; cursor: progress; }
.linkbtn { background: none; border: 0; padding: 8px 0; font-size: 12px; letter-spacing: 0.06em; color: var(--cream-2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.linkbtn:hover { color: var(--cream); }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; }
.actions .btn-light, .actions .btn-dark { flex: 1; max-width: 340px; }

/* ==========================================================================
   1. INTRO
   ========================================================================== */
.intro { padding-top: 26px !important; min-height: 100vh; min-height: 100svh; }
.intro-hero { text-align: center; }
.intro-cover { width: min(64%, 300px); margin: 0 auto 14px; }
.intro-title { font-size: clamp(54px, 16.5vw, 112px); line-height: 0.94; margin: 14px 0 20px; font-weight: 500; }
.intro-question { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 5.6vw, 28px); line-height: 1.25; color: var(--cream-2); max-width: 12em; margin: 0 auto; }

.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px; margin: 40px 0 38px; padding: 22px 0; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.stats li { display: flex; flex-direction: column; gap: 4px; }
.stats-n { font-family: var(--serif); font-size: 27px; line-height: 1; color: var(--cream); }
.stats-l { font-size: 8.5px; font-weight: 500; letter-spacing: 0.2em; color: var(--cream-2); max-width: 9em; line-height: 1.5; }

.intro-grid { display: grid; gap: 34px; }
.intro-copy > p { color: var(--cream-2); font-size: 15px; }
.intro-copy .lead { color: var(--cream); }
.note { border: 1px solid var(--line-d); padding: 18px 20px; margin-top: 22px; }
.note .label { margin-bottom: 8px; }
.note p:last-child { font-size: 13.5px; color: var(--cream-2); }

.intro-form { order: -1; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: 0.24em; color: var(--gold); margin-bottom: 4px; }
.field input {
  width: 100%; height: 52px; background: transparent; border: 0; border-bottom: 1px solid rgba(235, 229, 216, 0.4); border-radius: 0;
  font-family: var(--serif); font-size: 24px; color: var(--cream); padding: 4px 0; -webkit-appearance: none; appearance: none;
}
.field input:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.field input[aria-invalid="true"] { border-bottom-color: #c98a6b; }
.field-err { min-height: 18px; margin-top: 6px; font-size: 12.5px; color: #dba486; }
.light .field-err { color: #8c3f1f; }
.intro-form .btn { width: 100%; margin-top: 6px; }
.intro-form .fine { margin-top: 14px; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 22px; cursor: pointer; padding: 6px 0; }
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.consent-box { flex: none; width: 22px; height: 22px; border: 1px solid rgba(235, 229, 216, 0.5); display: grid; place-items: center; margin-top: 1px; }
.consent input:checked + .consent-box { background: var(--gold); border-color: var(--gold); }
.consent input:checked + .consent-box::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: rotate(-45deg) translate(1px, -1px); }
.consent input:focus-visible + .consent-box { outline: 2px solid var(--gold); outline-offset: 3px; }
.consent-text { font-size: 13px; color: var(--cream-2); line-height: 1.5; }

.tagline { margin-top: 46px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.3em; color: var(--gold); line-height: 2; }

/* ==========================================================================
   2. RULES
   ========================================================================== */
.rules { padding-top: 26px !important; min-height: 100vh; min-height: 100svh; }
.rules-grid { display: grid; gap: 40px; margin-top: 40px; }
.rules-grid .label { margin-bottom: 10px; }
.circle { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--gold); border-radius: 50%; font-family: var(--serif); font-size: 17px; color: var(--gold); }
.circle.is-on { background: var(--gold); color: var(--black); }
.circle-sm { width: 28px; height: 28px; font-size: 15px; border-color: var(--bronze); color: var(--bronze); }
.scale-list li { display: flex; align-items: center; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line-d); font-family: var(--serif); font-size: 19px; letter-spacing: 0.06em; }
.rule-list li { display: flex; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line-d); font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.rule-n { font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.16em; color: var(--gold); padding-top: 5px; }

/* ==========================================================================
   3. CATEGORY
   ========================================================================== */
.cat-head { padding: 22px 0 40px; overflow: hidden; }
.cat-head::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(13, 12, 10, 0.86) 45%, rgba(13, 12, 10, 0.35) 100%),
    linear-gradient(0deg, var(--black) 0%, rgba(13, 12, 10, 0) 38%),
    var(--cat-img) right top / cover no-repeat;
}
.progress { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 34px; }
.progress-text { font-size: 10.5px; font-weight: 500; letter-spacing: 0.24em; color: var(--cream); white-space: nowrap; }
.progress-dim { color: var(--cream-2); margin: 0 4px; }
.progress-bar { display: flex; gap: 4px; flex: 1; max-width: 220px; }
.progress-bar i { flex: 1; height: 2px; background: rgba(235, 229, 216, 0.2); }
.progress-bar i.done { background: var(--gold); opacity: 0.55; }
.progress-bar i.now { background: var(--gold); }
.cat-title { font-size: clamp(42px, 12.6vw, 86px); font-weight: 400; margin-bottom: 12px; overflow-wrap: anywhere; }
.cat-sub { font-family: var(--serif); font-style: italic; font-size: 23px; color: var(--gold); margin-bottom: 14px; line-height: 1.2; }
.cat-desc { max-width: 31em; font-size: 15px; color: var(--cream-2); }
.cat-ghost { position: absolute; right: 8px; bottom: -70px; z-index: -1; font-family: var(--serif); font-size: 210px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201, 174, 135, 0.28); pointer-events: none; user-select: none; }

.cat-body { padding: 30px 0 56px; }
.q-timeframe { padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.q { padding: 24px 0 22px; border-bottom: 1px solid var(--line-l); position: relative; }
.q-legend { display: flex; gap: 14px; margin-bottom: 18px; }
.q-n { flex: none; font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.16em; color: var(--bronze); padding-top: 7px; min-width: 20px; }
.q-t { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25; color: var(--ink); }
.q-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0 2px; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.opt input { position: absolute; top: 4px; left: 50%; width: 52px; height: 52px; margin: 0 0 0 -26px; opacity: 0; cursor: pointer; }
.opt-c { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(18, 16, 13, 0.55); border-radius: 50%; font-family: var(--serif); font-size: 21px; color: var(--ink); transition: background-color 0.14s, color 0.14s, border-color 0.14s; }
.opt-l { font-size: 7.5px; font-weight: 500; letter-spacing: 0.08em; line-height: 1.4; text-align: center; color: #6f695f; max-width: 60px; }
@media (hover: hover) { .opt:hover input:not(:checked) + .opt-c { border-color: var(--bronze); background: rgba(138, 106, 69, 0.1); } }
.opt input:checked + .opt-c { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.opt input:checked ~ .opt-l { color: var(--ink); font-weight: 600; }
.opt input:focus-visible + .opt-c { outline: 2px solid var(--bronze); outline-offset: 3px; }
.q.is-missing { background: linear-gradient(90deg, rgba(140, 63, 31, 0.09), rgba(140, 63, 31, 0)); box-shadow: -3px 0 0 #8c3f1f; padding-left: 12px; margin-left: -12px; }
.q.is-missing .q-n { color: #8c3f1f; }

.cat-foot { display: grid; gap: 16px; margin-top: 26px; }
.cat-error { min-height: 20px; font-size: 14px; font-weight: 500; color: #8c3f1f; }
.subtotal { display: flex; justify-content: space-between; align-items: flex-end; padding: 18px 20px; }
.subtotal .label { color: var(--gold); }
.subtotal-n { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--cream-2); }
.subtotal-n b { display: inline-block; min-width: 1.6em; text-align: center; color: var(--cream); border-bottom: 1px solid var(--gold); padding-bottom: 2px; margin-right: 4px; }
.cat-body .actions { margin-top: 26px; }

/* ==========================================================================
   4. SUBMITTING
   ========================================================================== */
.submitting { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; }
.submitting img { width: 64px; margin: 0 auto 26px; }
.submitting-sub { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--cream-2); margin-top: 10px; }
.loader { display: block; width: 120px; height: 1px; margin: 34px auto 0; background: rgba(235, 229, 216, 0.18); position: relative; overflow: hidden; }
.loader::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--gold); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ==========================================================================
   5. RESULTS
   ========================================================================== */
.score { padding-top: 26px !important; text-align: center; }
.score .brandbar { text-align: left; }
.score-h { font-weight: 400; }
.score-label { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--cream-2); line-height: 1.8; }
.score-name { color: var(--gold); }
.score-n { display: block; font-size: clamp(120px, 38vw, 220px); line-height: 0.9; font-weight: 500; margin: 14px 0 6px; color: var(--cream); }
.score-pct { font-size: 0.45em; color: var(--gold); margin-left: 4px; vertical-align: 0.5em; }
.score-total { font-family: var(--serif); font-size: 17px; color: var(--cream-2); letter-spacing: 0.06em; }
.state-block { margin: 40px auto 0; max-width: 34em; padding-top: 34px; border-top: 1px solid var(--line-d); }
.state-name { font-size: clamp(44px, 13vw, 72px); color: var(--gold); margin: 8px 0 14px; font-weight: 500; }
.state-desc { font-size: 16px; color: var(--cream); }
.state-scale { display: grid; grid-template-columns: repeat(4, 1fr); margin: 38px auto 0; max-width: 620px; border-top: 1px solid var(--line-d); }
.state-scale li { display: flex; flex-direction: column; gap: 3px; padding: 14px 2px 0; border-top: 2px solid transparent; margin-top: -1px; opacity: 0.42; }
.state-scale li.is-current { opacity: 1; border-top-color: var(--gold); }
.state-scale-range { font-family: var(--serif); font-size: 16px; }
.state-scale-name { font-size: 8.5px; font-weight: 500; letter-spacing: 0.16em; color: var(--gold); }
.snapshot { margin: 34px auto 0; max-width: 30em; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--cream-2); line-height: 1.35; }
.email-note { margin: 18px auto 0; font-size: 12.5px; color: var(--cream-2); min-height: 1px; overflow-wrap: anywhere; }

/* breakdown table */
.bd-table { width: 100%; border-collapse: collapse; margin-top: 28px; }
.bd-table thead th { text-align: left; font-size: 9.5px; font-weight: 500; letter-spacing: 0.22em; color: var(--ink-2); padding: 0 0 10px; border-bottom: 1px solid var(--ink); }
.bd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bd-table tbody tr:first-child > * { border-top: 1px solid var(--ink); }
.bd-table td, .bd-table tbody th, .bd-table tfoot th { padding: 13px 0; border-bottom: 1px solid var(--line-l); vertical-align: middle; text-align: left; }
.bd-n { width: 28px; padding-right: 8px !important; font-size: 10px; font-weight: 500; letter-spacing: 0.14em; color: var(--bronze); }
.bd-name { font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: 0.02em; }
.bd-score { font-family: var(--serif); font-size: 15px; color: var(--ink-2); white-space: nowrap; padding-right: 10px !important; text-align: right !important; }
.bd-score b { font-size: 20px; font-weight: 600; color: var(--ink); }
.bd-status { text-align: right !important; width: 1%; white-space: nowrap; }
.bd-table thead th:last-child { text-align: right; }
.bd-table tfoot th, .bd-table tfoot td { border-bottom: 0; border-top: 1px solid var(--ink); padding-top: 16px; }
.bd-table tfoot .bd-name { font-size: 22px; }
.bd-pct { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--bronze); }

.pill { display: inline-block; padding: 6px 8px; border: 1px solid rgba(18, 16, 13, 0.35); border-radius: 999px; font-family: var(--sans); font-style: normal; font-size: 7.5px; font-weight: 600; letter-spacing: 0.12em; line-height: 1; color: var(--ink-2); white-space: nowrap; }
.pill-needs-attention { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.pill-inconsistent { border-color: var(--ink); color: var(--ink); }
.pill-building { border-color: var(--bronze); color: var(--bronze); }
.pill-strong { background: var(--bronze); border-color: var(--bronze); color: #fff; }

/* terrain */
.terrain { margin: 44px calc(var(--gutter) * -1) 0; padding: 30px var(--gutter) 22px; background: var(--black); color: var(--cream); }
.terrain-head { display: grid; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line-d); margin-bottom: 14px; }
.terrain-head .label { margin-bottom: 8px; }
.terrain-copy p { font-size: 14px; color: var(--cream); }
.terrain-copy .dim { font-size: 12.5px; margin-top: 6px; }
.terrain-svg { display: block; width: 100%; height: auto; }
.t-bandfill { fill: rgba(235, 229, 216, 0.035); }
.t-bandfill.alt { fill: rgba(235, 229, 216, 0.075); }
.t-dash { stroke: rgba(235, 229, 216, 0.28); stroke-width: 1; stroke-dasharray: 3 3; }
.t-axis { stroke: rgba(235, 229, 216, 0.4); stroke-width: 1; }
.t-col { stroke: rgba(201, 174, 135, 0.3); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.t-tick { font: 400 10px var(--sans); fill: var(--cream-2); }
.t-cat { font: 500 9px var(--sans); letter-spacing: 0.1em; fill: var(--cream); }
.t-band { font: 500 8.5px var(--sans); letter-spacing: 0.18em; fill: var(--gold); }
.t-area { fill: rgba(201, 174, 135, 0.12); }
.t-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.t-dot { fill: var(--cream); stroke: var(--black); stroke-width: 2; }
.t-val { font: 500 15px var(--serif); fill: var(--cream); paint-order: stroke; stroke: var(--black); stroke-width: 3px; }

/* interpretation */
.interp-state { margin-top: 34px; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-l); }
.interp-state .label { margin-bottom: 8px; }
.interp-state-text { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.3; }
.interp-state-text b { font-weight: 600; color: var(--bronze); letter-spacing: 0.04em; }
.interp-grid { display: grid; gap: 40px; margin-top: 34px; }
.interp-col > .label { padding-bottom: 12px; border-bottom: 1px solid var(--line-l); margin-bottom: 18px; }
.interp-tie { font-family: var(--serif); font-size: 17px; letter-spacing: 0.08em; color: var(--bronze); margin: -6px 0 16px; }
.interp-item + .interp-item { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-l); }
.interp-name { font-size: 31px; margin-bottom: 10px; }
.interp-score { color: var(--bronze); white-space: nowrap; }
.interp-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.interp-status em { font-family: var(--serif); font-size: 17px; color: var(--ink-2); }
.interp-item > p:not(.interp-status), .interp-even { font-size: 15.5px; color: #2c2924; font-weight: 400; }
.interp-statements { margin-top: 20px; padding: 18px 18px 8px; background: var(--ivory-2); border-left: 2px solid var(--bronze); }
.interp-statements .label { margin-bottom: 6px; }
.interp-statements li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.28; border-top: 1px solid var(--line-l); }
.interp-statements li:first-child { border-top: 0; }
.finish { margin-top: 48px; padding: 30px 24px; display: grid; gap: 14px; }
.finish p { font-size: 15px; color: var(--cream-2); }
.finish em { font-family: var(--serif); font-size: 19px; }

/* lever */
.lever { border-top: 1px solid var(--line-l); }
.lever-intro { display: grid; gap: 22px; margin-top: 22px; }
.lever-intro p:not(.lead) { font-size: 15px; color: var(--ink-2); font-weight: 400; }
.lever-examples { border-left: 1px solid var(--bronze); padding-left: 18px; display: grid; gap: 10px; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3; color: var(--ink-2); }
.lever-likely { margin-top: 36px; padding: 26px 22px; background: var(--black); color: var(--cream); }
.lever-likely .label { color: var(--gold); line-height: 1.7; }
.lever-likely-name { font-size: clamp(34px, 9.5vw, 58px); margin-top: 10px; overflow-wrap: anywhere; }
.lever-note { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--cream-2); }
.lever-form { margin-top: 34px; }
.lever-form legend, .line-field label { display: flex; gap: 14px; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25; margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.pick span { display: block; padding: 13px 16px; border: 1px solid rgba(18, 16, 13, 0.4); border-radius: 999px; font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: 0.1em; line-height: 1; transition: background-color 0.14s, color 0.14s; }
.pick.is-suggested span { border-color: var(--bronze); color: var(--bronze); }
@media (hover: hover) { .pick:hover input:not(:checked) + span { background: rgba(138, 106, 69, 0.1); } }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.pick input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 3px; }
.line-field { margin-top: 30px; }
.line-field input, .line-field textarea {
  display: block; width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(18, 16, 13, 0.4); border-radius: 0;
  font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--ink); padding: 8px 0 10px; resize: vertical; -webkit-appearance: none; appearance: none;
}
.line-field input:focus, .line-field textarea:focus { outline: none; border-bottom-color: var(--bronze); box-shadow: 0 1px 0 var(--bronze); }
.lever-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 34px; }
.lever-actions .btn { min-width: 240px; }
.lever-status { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--bronze); }

/* seven-day return */
.sd-lead { margin-top: 20px; max-width: 30em; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.3; color: var(--cream-2); }
.standards { margin-top: 34px; border-top: 1px solid var(--line-d); }
.standards li { display: grid; grid-template-columns: 54px 1fr; gap: 6px 10px; padding: 24px 0; border-bottom: 1px solid var(--line-d); }
.std-n { font-family: var(--serif); font-size: 34px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.std-name { font-size: 26px; font-weight: 500; margin-bottom: 6px; }
.std-name.is-accent { font-style: italic; color: var(--gold); font-weight: 400; }
.std-head .label { font-size: 9.5px; }
.std-body { grid-column: 2; font-size: 14.5px; color: var(--cream-2); margin-top: 6px; }
.sd-download { margin-top: 38px; }
.sd-download .btn { width: 100%; }
.sd-download .fine { margin-top: 12px; }
.disclaimer { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-d); font-size: 12px; color: var(--cream-2); max-width: 60em; }

/* bridge */
.bridge { border-top: 1px solid var(--line-d); }
.bridge-aside { margin-top: 28px; padding-left: 18px; border-left: 1px solid var(--gold); max-width: 30em; display: grid; gap: 12px; }
.bridge-aside p { font-size: 15px; color: var(--cream-2); }
.bridge-aside .serif { font-size: 19px; line-height: 1.3; color: var(--gold); }
.container-grid { display: grid; gap: 28px; margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--line-d); }
.container-grid .label { margin-top: 18px; color: var(--cream-2); }
.ladder { display: flex; flex-direction: column-reverse; }
.ladder li { display: flex; align-items: baseline; gap: 14px; padding: 9px 0 9px 18px; position: relative; font-family: var(--serif); font-size: 17px; letter-spacing: 0.04em; line-height: 1.25; border-left: 1px solid rgba(201, 174, 135, 0.5); }
.ladder li::before { content: ""; position: absolute; left: -5px; top: 14px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--gold); background: var(--black); }
.ladder li.is-accent { font-style: italic; color: var(--gold); }
.ladder li.is-accent::before, .ladder li:last-child::before { background: var(--gold); }
.ladder li:last-child { color: var(--gold); }
.ladder-n { font-family: var(--sans); font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; color: var(--gold); font-style: normal; }
.motivation { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--line-d); }
.motivation-lead { font-family: var(--serif); font-size: 21px; color: var(--cream-2); margin-bottom: 8px; }
.motivation-main { font-size: clamp(27px, 7vw, 40px); line-height: 1.1; }

.next { background: radial-gradient(120% 70% at 50% 0%, #24201a 0%, var(--black) 70%); border-top: 1px solid var(--line-d); padding-bottom: 34px !important; }
.program { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line-d); max-width: 34em; }
.program p:not(.lead) { font-size: 15px; color: var(--cream-2); margin-top: 12px; }
.cta-row { display: grid; gap: 12px; margin-top: 34px; }
.closing { display: grid; gap: 26px; margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line-d); }
.closing-text { font-family: var(--serif); font-size: 24px; line-height: 1.3; }
.closing-text em { color: var(--cream-2); }
.closing-brand { display: flex; align-items: center; gap: 16px; }
.closing-brand img { width: 76px; order: -1; }
.closing-name { font-family: var(--serif); font-size: 15px; letter-spacing: 0.2em; }
.closing-brand .label { font-size: 8.5px; margin-top: 4px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-d); }
.foot .brandbar-id { font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.22em; color: var(--cream-2); }
.foot .brandbar-id img { width: 24px; }

/* ==========================================================================
   DESKTOP
   ========================================================================== */
@media (min-width: 720px) {
  :root { --gutter: 48px; }
  .screen.dark, .screen.light { padding: 88px 0 96px; }
  .brandbar { margin-bottom: 48px; }
  .ln { display: block; }

  .intro, .rules, .score { padding-top: 44px !important; }
  .intro-cover { width: 380px; }
  .stats { grid-template-columns: repeat(4, 1fr); margin: 56px 0 52px; padding: 28px 0; }
  .stats-n { font-size: 34px; }
  .stats-l { font-size: 10px; max-width: none; }
  .intro-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
  .intro-form { order: 0; }
  .tagline { margin-top: 64px; }

  .rules-grid { grid-template-columns: 5fr 6fr; gap: 64px; margin-top: 56px; }
  .scale-list li, .rule-list li { font-size: 21px; }
  .actions { margin-top: 56px; }

  .cat-head { padding: 34px 0 64px; }
  .progress { margin-bottom: 52px; }
  .cat-desc { font-size: 16px; }
  .cat-sub { font-size: 26px; }
  .cat-ghost { font-size: 340px; right: 40px; bottom: -110px; }
  .cat-body { padding: 44px 0 88px; }
  .q { display: flex; align-items: center; gap: 32px; padding: 22px 0; }
  .q-legend { flex: 1; margin-bottom: 0; }
  .q-opts { flex: none; width: 400px; }
  .q-t { font-size: 23px; }
  .opt-c, .opt input { width: 46px; height: 46px; }
  .opt input { margin-left: -23px; }
  .opt-c { font-size: 19px; }
  .cat-foot { grid-template-columns: 1fr 300px; align-items: center; margin-top: 34px; }

  .state-scale-range { font-size: 20px; }
  .state-scale-name { font-size: 10px; letter-spacing: 0.22em; }
  .snapshot { font-size: 20px; }

  .bd-table thead { position: static; width: auto; height: auto; clip: auto; }
  .bd-table tbody tr:first-child > * { border-top: 0; }
  .bd-score { font-size: 17px; }
  .bd-score b { font-size: 22px; }
  .bd-table td, .bd-table tbody th, .bd-table tfoot th { padding: 15px 0; }
  .bd-n { width: 40px; }
  .bd-name { font-size: 24px; }
  .bd-score { text-align: left !important; width: 180px; }
  .bd-table thead th:last-child, .bd-status { text-align: left !important; width: 240px; }
  .pill { font-size: 9.5px; padding: 8px 14px; }
  .terrain { margin: 56px 0 0; padding: 40px 40px 30px; }
  .terrain-head { grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }

  .interp-grid { grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
  .interp-wide { grid-column: 1 / -1; max-width: 36em; }
  .interp-state-text { font-size: 26px; max-width: 30em; }
  .finish { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 44px 48px; margin-top: 72px; }

  .lever-intro { grid-template-columns: 1fr 1fr; gap: 56px; }
  .lever-likely { padding: 36px 40px; }
  .lever-form { max-width: 760px; }

  .standards li { grid-template-columns: 76px 250px 1fr; gap: 24px; align-items: start; padding: 30px 0; }
  .std-n { font-size: 40px; }
  .std-body { grid-column: auto; margin-top: 4px; font-size: 15px; }
  .sd-download { display: flex; align-items: center; gap: 24px; }
  .sd-download .btn { width: auto; }
  .sd-download .fine { margin-top: 0; }

  .container-grid { grid-template-columns: 4fr 6fr; gap: 56px; align-items: center; }
  .ladder li { margin-left: calc(var(--i) * 18px); font-size: 19px; }
  .cta-row { display: flex; flex-wrap: wrap; }
  .closing { grid-template-columns: 1fr auto; align-items: center; }
  .closing-brand img { order: 0; }
  .closing-brand { text-align: right; }
}

@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .opt-c, .opt input { width: 46px; height: 46px; }
  .opt input { margin-left: -23px; }
  .opt-l { font-size: 7px; letter-spacing: 0.06em; }
  .pill { font-size: 7.5px; padding: 5px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media print {
  .btn, .linkbtn, .lever-actions, .cta-row, .sd-download { display: none !important; }
  .screen { break-inside: avoid-page; }
}
