/* Autonomy Ladder Assessment — single shared stylesheet (I5; Phase-B elevation).
   Self-hosted Inter (same-origin woff2, weights 400/600/700). CSP-clean: every
   visual below is pure CSS — no inline style=, no <style> injection, no images.

   COLOR ROLES (E1/E7, 3-role system):
     NAVY  #1F3A5F  headings, ladder fill, artifact-header bg, CTA TEXT
     AMBER #b8893b  CTA FILL (navy text ~4.9:1 AA), "you are here" pill, accent rules
                    (--gold-text #8a6320 only where amber is small TEXT on white: ™, score)
     PAPER #fbfaf8 page / #f4f1ea selected-tint / #ffffff cards
     INK   #1a1a1a body   (--gray #4a4a4a for small text, AA on the paper bg) */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/inter-700.woff2") format("woff2");
}

:root {
  --navy: #1F3A5F;
  --gold: #b8893b;          /* CTA fill + accent rules + "you are here" pill */
  --gold-text: #8a6320;     /* AA-corrected: small amber TEXT on white only (™, score) */
  --ink: #1a1a1a;
  --gray: #4a4a4a;          /* E7: bumped from #5a5a5a for AA at small sizes on #fbfaf8 */
  --paper: #fbfaf8;
  --tint: #f4f1ea;          /* selected-option + offer-card tint */
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  margin: 0;
  background: var(--paper);
  line-height: 1.6;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 32px 20px 72px; }

/* --- type scale (E7) --------------------------------------------------------- */
h1 { color: var(--navy); font-size: 2.4rem; line-height: 1.15; letter-spacing: -0.01em; margin: .15em 0 .2em; }
h2 { color: var(--navy); font-size: 1.2rem; line-height: 1.15; letter-spacing: -0.01em; border-bottom: 2px solid var(--navy); padding-bottom: 5px; margin: 1.8em 0 .6em; }
h3 { color: var(--navy); font-size: 1.55rem; line-height: 1.15; margin: .4em 0 .3em; }
p { line-height: 1.6; }
.lede { color: var(--gray); font-size: 1.0rem; margin: .2em 0 1.4em; max-width: 62ch; }
.eyebrow { color: var(--gold-text); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .4em; }
.small { font-size: .9rem; color: var(--gray); }

/* --- buttons / CTA (E1): navy TEXT on amber FILL (~4.9:1 AA) ------------------ */
button, .btn {
  background: var(--gold); color: var(--navy); border: 0; padding: 13px 24px;
  border-radius: 9px; font-size: 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-block; letter-spacing: -0.005em;
}
button:hover, .btn:hover { background: #a87d34; }
button:disabled { background: #d8cdb6; color: #6b6b6b; cursor: not-allowed; }
button:focus-visible, .btn:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 2px;
}
.btn-secondary {
  display: inline-block; margin-left: 14px; color: var(--navy); font-weight: 600;
  font-size: .92rem; text-decoration: underline;
}

/* --- landing hero (E7): 3-zone, left text / right ladder --------------------- */
.hero { display: flex; gap: 48px; align-items: flex-start; margin: 8px 0 40px; }
.hero-text { flex: 1 1 60%; min-width: 0; }
.hero-ladder { flex: 0 0 40%; }
.hero .cta-row { margin: 1.4em 0 .2em; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; }

.whatyouget { display: flex; gap: 20px; margin: 0 0 8px; }
.whatyouget .col {
  flex: 1; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 20px 22px;
}
.whatyouget .col .n { color: var(--gold-text); font-family: var(--mono); font-size: .8rem; font-weight: 700; }
.whatyouget .col h4 { color: var(--navy); margin: .3em 0 .2em; font-size: 1.02rem; }
.whatyouget .col p { margin: 0; font-size: .92rem; color: var(--gray); }
.section { margin: 64px 0; }
.section > .eyebrow { margin-bottom: 1.2em; }

/* --- A0–A4 ladder component (E3): pure flex/border, no images ----------------- */
.ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 8px; }
.rung { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid #d9d9d9; border-radius: 9px; background: #fff; position: relative; }
.rung .rail { font-family: var(--mono); font-weight: 700; color: var(--navy); width: 2.1em; flex: 0 0 auto; }
.rung .bar { height: 8px; border-radius: 6px; background: #e3e3e3; flex: 1 1 auto; min-width: 40px; }
.rung .rname { flex: 0 0 auto; font-size: .92rem; color: var(--navy); font-weight: 600; }
/* landing: all rungs outlined, equal weight (the concept) */
.ladder.outline .rung .bar { background: #eef0f3; }
.ladder.outline .rung { border-color: var(--navy); }
/* result: filled <= user tier; user rung amber + pill; above dimmed + "next" */
.rung.filled .bar { background: var(--navy); }
.rung.here { border-color: var(--gold); border-left: 3px solid var(--gold); }
.rung.here .bar { background: var(--gold); }
.rung.above { opacity: .35; }
.rung.above .rname, .rung.above .rail { color: var(--navy); }
.pill {
  background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; margin-left: auto; white-space: nowrap;
}
.next-mark { font-size: .72rem; color: var(--gold-text); font-weight: 700; margin-left: auto; }
.gap-to-a4 { color: var(--gray); font-size: .9rem; margin: .8em 0 0; }

/* --- artifact header bar (E7) ------------------------------------------------ */
.artifact-bar {
  background: var(--navy); color: #fff; border-radius: 12px; padding: 18px 22px; margin: 0 0 8px;
}
.artifact-bar .title { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.artifact-bar .headline { font-size: 1.35rem; font-weight: 700; margin: .25em 0 0; }
.artifact-bar .headline .amber { color: #e6b95f; }
.methodology { color: var(--gray); font-size: .82rem; margin: .4em 0 1.4em; font-family: var(--mono); }

/* --- score + tier display ---------------------------------------------------- */
.badge {
  display: inline-block; background: var(--navy); color: #fff;
  font-size: 2.4rem; font-weight: 700; padding: 10px 22px; border-radius: 12px;
}
.score { color: var(--gold-text); font-size: 1.6rem; font-weight: 700; }
.tm { color: var(--gold-text); font-weight: 600; }

/* --- question cards (E4) ----------------------------------------------------- */
.q { margin: 0 0 18px; padding: 24px; background: #fff; border: 1px solid #eee; border-radius: 12px; }
.q .qn { font-family: var(--mono); color: var(--navy); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.q p { margin: 2px 0 10px; font-weight: 600; }
.q label { display: block; padding: 8px 10px; margin: 2px 0; font-size: .95rem; cursor: pointer; border: 1px solid transparent; border-radius: 8px; }
.q label:has(input:checked) { border-left: 3px solid var(--navy); background: var(--tint); }

/* sticky progress (E4) */
.progress { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 12px 0 10px; margin: 0 0 12px; }
.progress .track { height: 8px; background: #e7e7e7; border-radius: 6px; overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: var(--navy); border-radius: 6px; transition: width .2s ease; }
.progress .count { font-size: .85rem; color: var(--gray); margin: 6px 0 0; font-weight: 600; }

/* --- gap callouts (E5) ------------------------------------------------------- */
.gap {
  background: #fff; border-left: 4px solid var(--navy);
  padding: 14px 16px; margin: 10px 0; border-radius: 0 8px 8px 0;
}
.gap strong { color: var(--navy); }

/* --- email-capture gate (E5) ------------------------------------------------- */
.capture-gate { background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; padding: 24px; margin: 24px 0; }
.capture-gate .small { margin-top: .8em; }
input[type=email] {
  padding: 11px 12px; border: 1px solid #ccc; border-radius: 8px;
  width: 100%; max-width: 340px; font-size: 1rem;
}

/* --- $5K Diagnostic offer card (E6) ------------------------------------------ */
.offer {
  border: 1px solid #d7dde6; border-left: 4px solid var(--navy);
  border-top: 3px solid var(--gold); background: #f2f5fa;
  border-radius: 10px; padding: 24px; margin: 28px 0;
}
.offer h3 { margin-top: 0; font-size: 1.25rem; }
.offer p { color: #2a3a4d; }

.disclaimer {
  margin-top: 34px; padding-top: 14px; border-top: 1px solid #ddd;
  color: var(--gray); font-size: .78rem;
}
.provenance { color: var(--gray); font-size: .85rem; margin: .4em 0 0; max-width: 62ch; }
.provenance .doi { font-family: var(--mono); font-size: .8rem; }
.provenance a { color: var(--navy); }
.authority-footer {
  margin-top: 40px; padding-top: 14px; border-top: 1px solid #e4e4e4;
  color: var(--gray); font-size: .8rem;
}
.authority-footer a { color: var(--navy); }

/* --- responsive: hero/ladder stack < 760px; whatyouget stacks --------------- */
@media (max-width: 760px) {
  .hero { flex-direction: column; gap: 28px; }
  .hero-ladder { flex-basis: auto; width: 100%; }
  .whatyouget { flex-direction: column; }
  h1 { font-size: 1.5rem; }
}
@media (max-width: 520px) {
  .wrap { padding: 16px 14px 48px; }
  .badge { font-size: 2rem; }
  .q { padding: 16px; }
}
@media (max-width: 360px) {
  .wrap { padding: 14px 10px 40px; }
  .badge { font-size: 1.7rem; padding: 8px 16px; }
  input[type=email] { max-width: 100%; }
}

/* --- print: clean one-pager artifact (E7) ------------------------------------ */
@media print {
  body { background: #fff; }
  .wrap { max-width: 100%; padding: 0; }
  .capture-gate, .progress, .btn, button, .btn-secondary { display: none !important; }
  .artifact-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .offer { break-inside: avoid; }
  a[href]::after { content: ""; }
}
