/* ============================================================================
   Treasury & Continuity Advisory — Awareness Diagnostic
   Design system: clean white surfaces, one sans typeface, calm blue accent.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Neutrals */
  --bg:          #F3F5F8;
  --bg-2:        #E8EDF3;
  --surface:     #FFFFFF;
  --surface-2:   #F7F9FB;
  --surface-3:   #EFF3F7;
  --line:        #DDE4EC;
  --line-2:      #EAEFF4;

  /* Text */
  --text:        #0D1B2E;
  --text-2:      #3E5064;
  --text-3:      #5A6B80;
  --muted:       #8494A6;

  /* Brand — sampled from the TCA logo */
  --navy-900:    #041B37;
  --navy-800:    #06254A;
  --navy:        #003068;
  --navy-600:    #0B4488;
  --navy-soft:   #EAF0F8;
  --navy-line:   #C6D6E9;

  --green:       #008838;
  --green-600:   #00702E;
  --green-soft:  #E5F3EA;
  --green-line:  #B7DFC6;

  --brand:       var(--navy);
  --brand-dark:  var(--navy-600);
  --brand-soft:  var(--navy-soft);
  --brand-line:  var(--navy-line);

  /* Bands */
  --low:         #008838;
  --moderate:    #C08A10;
  --high:        #D9631B;
  --critical:    #C0272D;

  --risk:        var(--moderate);
  --risk-wash:   #FAF5E9;

  --ok:          #008838;
  --ok-soft:     #E5F3EA;
  --danger:      #C0272D;
  --danger-soft: #FBEBEC;

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(4, 27, 55, .05);
  --sh-2: 0 1px 2px rgba(4, 27, 55, .05), 0 8px 18px -12px rgba(4, 27, 55, .18);
  --sh-3: 0 2px 4px rgba(4, 27, 55, .05), 0 18px 38px -18px rgba(4, 27, 55, .24);
  --sh-4: 0 30px 70px -28px rgba(4, 27, 55, .38);
  --ring: 0 0 0 3px rgba(0, 48, 104, .16);

  /* Shape — squarer than consumer UI */
  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 7px;
  --r-lg: 10px;
  --r-xl: 12px;
  --r-pill: 999px;

  /* Metrics */
  --shell: 1220px;
  --shell-narrow: 900px;
  --gutter: 28px;
  --masthead-h: 68px;
  --stick: 146px;
}

/* 2. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--stick);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0; }
ol, ul, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-xs); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
  transition: top .18s ease;
}
.skip-link:focus { top: 16px; }

/* 3. Layout ---------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: var(--shell-narrow); }

main { flex: 1 0 auto; }

.screen { display: none; }
.screen--on { display: block; animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* 4. Type helpers ---------------------------------------------------------- */
.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand);
}
.h-sub {
  font-size: 17px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.muted { color: var(--text-3); font-size: 14px; line-height: 1.55; }

/* 5. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease,
              box-shadow .15s ease, transform .08s ease;
}
.btn--lg { height: 50px; padding: 0 26px; font-size: 15.5px; border-radius: var(--r-md); }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--sh-2); }
.btn--primary:hover { background: var(--brand-dark); box-shadow: var(--sh-3); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-1);
}
.btn--ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px #D3DBE6, var(--sh-1); }

.btn--ondark {
  background: rgba(255, 255, 255, .1); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn--ondark:hover { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }

.btn--danger {
  background: var(--surface); color: var(--danger);
  box-shadow: inset 0 0 0 1px #F3CBCD;
}
.btn--danger:hover { background: var(--danger-soft); }

.btn[disabled] { opacity: .55; pointer-events: none; }

.linkish {
  color: var(--brand); font-size: inherit; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--brand-line);
}
.linkish:hover { text-decoration-color: currentColor; }

/* 6. Masthead -------------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  isolation: isolate;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(4, 27, 55, .02);
}
.masthead::after {
  content: ""; position: absolute; inset: auto 0 -3px 0; height: 3px;
  background: linear-gradient(90deg, var(--navy) 0 50%, var(--green) 50% 100%);
  opacity: .9;
}
.masthead__inner {
  min-height: var(--masthead-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand::after {
  content: ""; width: 1px; height: 26px; background: var(--line); order: 1; flex: none;
}
.brand__mark { order: 0; }
.brand__text { order: 2; }
.brand__mark { height: 36px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__name {
  font-size: 14.5px; font-weight: 600; color: var(--navy);
  letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__line {
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}

.masthead__doc {
  font-size: 12.5px; font-weight: 500; color: var(--text-3);
  background: var(--surface-3); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: var(--r-pill);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 7. Home — video hero + brief ---------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-900);
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(104deg,
      rgba(4, 27, 55, .95) 0%,
      rgba(4, 27, 55, .88) 42%,
      rgba(4, 27, 55, .62) 72%,
      rgba(4, 27, 55, .50) 100%),
    linear-gradient(0deg, rgba(4, 27, 55, .78) 0%, rgba(4, 27, 55, 0) 45%);
}
.hero__inner {
  position: relative;
  padding-block: 84px 92px;
}
.hero__logo {
  width: clamp(210px, 23vw, 290px); height: auto;
  margin-bottom: 34px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: #8FB4DC;
  padding-bottom: 14px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.hero__title {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 700;
  color: #fff; max-width: 15ch;
}
.hero__lede {
  margin-top: 20px;
  font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.6;
  color: rgba(255, 255, 255, .82); max-width: 50ch;
}
.hero .cover__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cover__confidential {
  margin-top: 24px;
  font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 500; color: rgba(255, 255, 255, .52);
}

/* Stat strip across the foot of the hero */
.hero__strip {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .15);
  background: rgba(4, 27, 55, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 22px 0 24px; }
.fact + .fact { border-left: 1px solid rgba(255, 255, 255, .15); padding-left: 28px; }
.fact dt {
  font-size: 11px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255, 255, 255, .58);
  margin-bottom: 8px;
}
.fact dd {
  font-size: 34px; font-weight: 700; letter-spacing: -.035em; color: #fff;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.fact dd small {
  font-size: 14px; font-weight: 500; letter-spacing: 0;
  color: rgba(255, 255, 255, .6); margin-left: 5px;
}

/* Brief below the hero */
.brief { padding: 72px var(--gutter) 84px; }
.brief__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }

.brief__lead > * + * { margin-top: 16px; }
.brief__title { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.03em; max-width: 18ch; }
.cover__note { font-size: 16px; line-height: 1.7; color: var(--text-2); max-width: 46ch; }
.cover__panelnote {
  font-size: 13px; line-height: 1.6; color: var(--text-3);
  padding: 14px 16px; border-left: 3px solid var(--green);
  background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.brief__scope {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
  overflow: hidden;
}
.brief__scopehead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
}
.brief__count {
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

.agenda { display: flex; flex-direction: column; }
.agenda li {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-2);
  transition: background .15s ease;
}
.agenda li:last-child { border-bottom: 0; }
.agenda li:hover { background: var(--surface-2); }
.agenda__num {
  width: 34px; height: 34px; flex: none; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.agenda__t { font-size: 15.5px; font-weight: 500; color: var(--text); flex: 1; }
.agenda__c {
  font-size: 12px; font-weight: 500; color: var(--muted);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* 8. Rail (sticky progress bar) -------------------------------------------- */
.rail {
  position: sticky; top: var(--masthead-h); z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.rail__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 62px; padding-block: 10px;
}
.rail__nav { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.rail__nav::-webkit-scrollbar { display: none; }

.rail__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: var(--r-pill);
  background: transparent; color: var(--text-3);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.rail__btn i {
  width: 22px; height: 22px; flex: none; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-3);
  font-size: 10.5px; font-weight: 700; font-style: normal;
  transition: inherit;
}
.rail__btn b { font-size: 13.5px; font-weight: 500; }
.rail__btn:hover { background: var(--surface-3); color: var(--text); }
.rail__btn[aria-current="true"] {
  background: var(--brand-soft); color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand-line);
}
.rail__btn[aria-current="true"] i { background: var(--brand); color: #fff; }
.rail__btn.is-done i {
  background: var(--ok-soft); color: var(--ok);
  box-shadow: inset 0 0 0 1px rgba(14, 159, 140, .28);
}
.rail__btn.is-done[aria-current="true"] i { background: var(--ok); color: #fff; box-shadow: none; }

.rail__side { display: flex; align-items: center; gap: 20px; flex: none; }

.rail__meter { display: flex; flex-direction: column; gap: 7px; min-width: 168px; }
.rail__count { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rail__count strong { color: var(--text); font-weight: 700; }

.track {
  display: block; height: 6px; border-radius: var(--r-pill);
  background: var(--bg-2); overflow: hidden;
}
.track__fill {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #16A651);
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

/* Toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__ui {
  position: relative; width: 38px; height: 22px; flex: none;
  border-radius: var(--r-pill);
  background: #D5DCE6;
  transition: background .18s ease, box-shadow .18s ease;
}
.switch__ui::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .25);
  transition: transform .18s cubic-bezier(.4, 0, .2, 1);
}
.switch input:checked + .switch__ui { background: var(--green); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__ui { box-shadow: var(--ring); }
.switch__label { font-size: 12.5px; color: var(--text-3); font-weight: 500; white-space: nowrap; }

/* 9. Questionnaire --------------------------------------------------------- */
.form-wrap { padding: 40px 24px 80px; }

.sect { margin-bottom: 44px; scroll-margin-top: var(--stick); }

.sect__head {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px;
  align-items: center;
  margin-bottom: 18px;
}
.sect__numeral {
  grid-row: span 2;
  width: 40px; height: 40px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px var(--brand-line);
}
.sect__title { font-size: 21px; font-weight: 650; letter-spacing: -.025em; align-self: end; }
.sect__intro { font-size: 14px; line-height: 1.55; color: var(--text-3); align-self: start; }

/* Question card */
.q {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 12px;
  box-shadow: var(--sh-1);
  scroll-margin-top: calc(var(--stick) + 12px);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.q:hover { box-shadow: var(--sh-2); }
.q[data-state="flag"] { border-color: rgba(224, 66, 73, .32); }
.q[data-state="ok"]   { border-color: rgba(14, 159, 140, .32); }
.q.is-missing {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(224, 66, 73, .12);
}

.q__head { display: flex; gap: 14px; align-items: flex-start; }
.q__num {
  width: 26px; height: 26px; flex: none; margin-top: 1px;
  border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-3);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.q[data-state="flag"] .q__num { background: var(--danger-soft); color: var(--danger); }
.q[data-state="ok"]   .q__num { background: var(--ok-soft); color: var(--ok); }

.q__text { font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--text); }
.q__helper { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.q__body { margin-top: 16px; padding-left: 40px; }

/* Choice buttons */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }

.opt__box {
  display: grid; grid-template-columns: 20px 1fr;
  column-gap: 13px; row-gap: 2px;
  min-height: 56px; padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .15s ease, box-shadow .15s ease;
}
/* explicit radio control — the state has to be unmistakable */
.opt__box::before {
  content: ""; grid-column: 1; grid-row: 1;
  align-self: start; margin-top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #BCC7D5;
  transition: box-shadow .15s ease, background .15s ease;
}
.opt__key, .opt__cap, .opt__pts { grid-column: 2; }
.opt__box:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px #C9D4E1; }
.opt__box:hover::before { box-shadow: inset 0 0 0 1.5px var(--navy-600); }

.opt__key { font-size: 15px; font-weight: 600; color: var(--text); }
.opt__cap { font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.opt__pts {
  display: none;
  margin-top: 5px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.show-weights .opt__pts { display: block; }

.opt input:checked + .opt__box {
  background: var(--navy-soft);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.opt input:checked + .opt__box::before {
  background: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy), inset 0 0 0 4px #fff;
}
.opt input:checked + .opt__box .opt__key { color: var(--navy); }
.opt input:checked + .opt__box .opt__cap { color: var(--text-2); }
.opt input:checked + .opt__box .opt__pts { color: var(--navy-600); }
.opt input:focus-visible + .opt__box { box-shadow: inset 0 0 0 2px var(--navy), var(--ring); }

/* Reveal note */
.reveal {
  display: none;
  margin-top: 12px; padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--danger-soft);
  border: 1px solid rgba(224, 66, 73, .18);
  font-size: 13.5px; line-height: 1.55; color: #A32B31;
}
.q[data-reveal="on"] .reveal { display: block; animation: fade .22s ease both; }

/* Free-text */
.q textarea {
  width: 100%; min-height: 96px; resize: vertical;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px; line-height: 1.6; color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.q textarea::placeholder { color: var(--muted); }
.q textarea:hover { border-color: #D3DBE6; }
.q textarea:focus {
  outline: none; background: var(--surface);
  border-color: var(--brand); box-shadow: var(--ring);
}

/* Pull quote */
.pull {
  margin: 20px 0 0; padding: 22px 26px;
  border-radius: var(--r-lg);
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  font-size: 15.5px; line-height: 1.6; font-weight: 500; color: var(--text-2);
  font-style: normal;
}

/* Finish block */
.finish {
  margin-top: 32px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.finish__title { font-size: 18px; margin-bottom: 6px; }
.finish__text { font-size: 14px; line-height: 1.6; color: var(--text-3); max-width: 52ch; }
.finish__text strong { color: var(--danger); font-weight: 600; }
.finish .btn { flex: none; }

/* 10. Report --------------------------------------------------------------- */
.report { padding: 40px 24px 80px; }
.report > * + * { margin-top: 16px; }

.report__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 24px !important;
}
.report__headtext > * + * { margin-top: 6px; }
.report__title { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.03em; font-weight: 700; }
.report__meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Card shell */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.card--pad { padding: 24px; }
.card__head { margin-bottom: 18px; }
.card__head .h-sub + .muted { margin-top: 4px; }

/* Verdict */
.verdict {
  display: grid; grid-template-columns: 250px 1fr; gap: 32px;
  align-items: center; padding: 28px;
  background:
    linear-gradient(180deg, var(--risk-wash), rgba(255, 255, 255, 0) 70%),
    var(--surface);
}
.verdict__gauge { position: relative; }
.gauge { width: 100%; height: auto; }
.gauge__bg { stroke: var(--surface-3); }
.gauge__fg { stroke: var(--risk); transition: stroke-dashoffset 1s cubic-bezier(.4, 0, .2, 1); }
.gauge__readout {
  position: absolute; inset: auto 0 8px 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.gauge__score {
  font-size: 46px; font-weight: 700; line-height: 1;
  letter-spacing: -.04em; color: var(--risk);
  font-variant-numeric: tabular-nums;
}
.gauge__of { font-size: 12px; color: var(--muted); font-weight: 500; }

.verdict__copy > * + * { margin-top: 10px; }
.verdict__level {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--risk);
  background: var(--surface); border: 1px solid currentColor;
  padding: 5px 13px; border-radius: var(--r-pill);
}
.verdict__pct { font-size: 19px; line-height: 1.45; font-weight: 500; color: var(--text); }
.verdict__pct span { color: var(--risk); font-weight: 700; font-variant-numeric: tabular-nums; }
.verdict__meaning { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.verdict__action {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 16px !important; padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  font-size: 14.5px; line-height: 1.5; color: var(--text);
}
.verdict__actionlabel {
  font-size: 11px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}

/* Ledger */
.ledger { display: flex; flex-wrap: wrap; gap: 7px; }
.tick {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tick.on {
  background: var(--risk); color: #fff; box-shadow: none;
}
.legend {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2);
}
.legend__item { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); }
.dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.dot--on { background: var(--risk); }
.dot--off { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

/* Bars */
.bars { display: flex; flex-direction: column; gap: 18px; }
.bar__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.bar__name { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text); }
.bar__name i {
  width: 22px; height: 22px; flex: none; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-3);
  font-size: 10.5px; font-weight: 700; font-style: normal;
}
.bar__val { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar__track {
  height: 10px; border-radius: var(--r-pill);
  background: var(--bg-2); overflow: hidden;
}
.bar__fill {
  display: block; height: 100%; width: 0; border-radius: inherit;
  transition: width .8s cubic-bezier(.4, 0, .2, 1);
}

/* Split registers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

.chip {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 24px; padding: 0 8px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.chip--risk { background: var(--danger-soft); color: var(--danger); }
.chip--ok   { background: var(--ok-soft); color: var(--ok); }

.reg { display: flex; flex-direction: column; }
.reg li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid var(--line-2);
}
.reg li:last-child { border-bottom: 0; padding-bottom: 0; }
.reg__id {
  flex: none; min-width: 34px; height: 22px; padding: 0 7px;
  display: grid; place-items: center; border-radius: 6px;
  background: var(--surface-3); color: var(--text-3);
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.reg__topic { display: block; font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.45; }
.reg--risk .reg__id { background: var(--danger-soft); color: var(--danger); }
.reg--ok .reg__id { background: var(--ok-soft); color: var(--ok); }
.reg__detail { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.reg__empty { color: var(--muted); font-size: 14px; }

/* Reflections */
.reflect { display: flex; flex-direction: column; gap: 16px; }
.reflect > div { padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); }
.reflect dt { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.45; }
.reflect dd { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; }
.reflect dd.empty { color: var(--muted); font-style: italic; }

/* Answer log */
.log { overflow: hidden; }
.log__summary {
  list-style: none; cursor: pointer;
  padding: 18px 24px;
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.log__summary::-webkit-details-marker { display: none; }
.log__summary::before {
  content: ""; width: 8px; height: 8px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg); margin-left: 2px;
  transition: transform .2s ease;
}
.log[open] .log__summary::before { transform: rotate(45deg); }
.log__summary:hover { background: var(--surface-2); }

.log__list { padding: 0 24px 8px; }
.log__list li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 6px 12px; align-items: start;
  padding: 14px 0; border-top: 1px solid var(--line-2);
}
.log__q { font-size: 14px; line-height: 1.5; color: var(--text); }
.log__a {
  justify-self: end;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.log__a.flag { background: var(--danger-soft); color: var(--danger); }
.log__a.ok   { background: var(--ok-soft); color: var(--ok); }
.log__a.none { background: var(--surface-3); color: var(--muted); }
.log__free {
  grid-column: 2 / -1;
  font-size: 13.5px; line-height: 1.6; color: var(--text-2);
  padding: 10px 14px; background: var(--surface-2);
  border-radius: var(--r-sm); white-space: pre-wrap;
}

/* Briefing strip */
.report-briefing {
  display: grid; grid-template-columns: 200px 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1);
}
.report-briefing img { width: 100%; height: 100%; min-height: 130px; object-fit: cover; }
.report-briefing__copy { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.report-briefing__kicker {
  font-size: 11.5px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand);
}
.report-briefing__copy p:last-child { font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* Next step */
.nextstep {
  display: grid; grid-template-columns: 1fr 300px; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2);
}
.nextstep__content { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.nextstep__title { font-size: 20px; letter-spacing: -.025em; }
.nextstep__text { font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.nextstep__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.nextstep__visual { position: relative; margin: 0; }
.nextstep__visual img { width: 100%; height: 100%; object-fit: cover; }
.nextstep__visual figcaption {
  position: absolute; inset: auto 12px 12px 12px;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 12px; line-height: 1.45; color: var(--text-2);
  box-shadow: var(--sh-1);
}

/* 11. Footer --------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: auto;
}
.foot { position: relative; }
.foot::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--navy) 0 50%, var(--green) 50% 100%);
}
.foot__inner {
  padding-block: 32px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.foot__brand { display: flex; flex-direction: column; gap: 12px; }
.foot__logo { width: 218px; height: auto; }
.foot__tagline {
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3);
}
.foot__tagline i { color: var(--green); font-style: normal; margin: 0 6px; }
.foot__meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; }
.foot__right { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

/* 12. Modals --------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: 20px;
}
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(16, 24, 40, .45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: fade .2s ease both;
}
.modal__panel {
  position: relative;
  width: 100%; max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-4);
  animation: pop .24s cubic-bezier(.32, 1.28, .6, 1) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.modal__x {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-3);
  transition: background .15s ease, color .15s ease;
}
.modal__x svg { width: 16px; height: 16px; }
.modal__x:hover { background: var(--surface-3); color: var(--text); }

.modal__head { padding: 28px 28px 0; }
.modal__kicker {
  font-size: 11.5px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 8px;
}
.modal__title { font-size: 21px; letter-spacing: -.025em; padding-right: 32px; }
.modal__sub { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--text-3); }
.modal__sub strong { color: var(--text-2); font-weight: 600; }

.modal__body { padding: 22px 28px; display: flex; flex-direction: column; gap: 14px; }

.modal__foot {
  padding: 20px 28px 26px;
  background: var(--surface-2);
  border-top: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 10px;
}
.modal__status { font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.modal__status:empty { display: none; }
.modal__fine { font-size: 12px; line-height: 1.55; color: var(--muted); }

/* Fields */
.field { display: block; }
.field__box {
  display: flex; flex-direction: column; gap: 1px;
  padding: 9px 14px 8px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__box:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.field__box label {
  font-size: 11.5px; font-weight: 500; color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
}
.field__box input {
  width: 100%; border: 0; background: none; padding: 2px 0;
  font-size: 15px; color: var(--text);
}
.field__box input:focus { outline: none; }
.field__box input::placeholder { color: #B6BFCC; }

.req {
  font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-3);
  padding: 2px 6px; border-radius: var(--r-xs);
}
.field.bad .field__box { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(224, 66, 73, .12); }
.field.bad .req { color: var(--danger); background: var(--danger-soft); }
.field__err { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--danger); }
.field__err:empty { display: none; }

/* Done state */
.done { padding: 44px 28px 34px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.done__tick { width: 56px; height: 56px; color: var(--ok); }
.done h4 { font-size: 19px; }
.done p { font-size: 13.5px; line-height: 1.55; color: var(--text-3); }
.done .btn { margin-top: 6px; }

/* Registry */
.regstat {
  display: flex; align-items: baseline; gap: 10px;
  padding: 16px 18px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line-2);
}
.regstat span:first-child {
  font-size: 28px; font-weight: 700; letter-spacing: -.03em;
  color: var(--brand); font-variant-numeric: tabular-nums;
}
.regstat span:last-child { font-size: 13px; color: var(--text-3); }

.reglist { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; }
.reglist li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-2);
}
.reglist li:last-child { border-bottom: 0; }
.reglist b { font-size: 14px; font-weight: 500; color: var(--text); }
.reglist span { font-size: 12.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 13. Toast ---------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 200;
  transform: translate(-50%, 20px);
  max-width: min(520px, calc(100vw - 40px));
  padding: 13px 20px; border-radius: var(--r-md);
  background: var(--text); color: #fff;
  font-size: 13.5px; line-height: 1.45; font-weight: 500;
  box-shadow: var(--sh-4);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 14. Responsive ----------------------------------------------------------- */
@media (max-width: 1020px) {
  .brief__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__inner { padding-block: 64px 76px; }
  .nextstep { grid-template-columns: 1fr; }
  .nextstep__visual { order: -1; }
  .nextstep__visual img { max-height: 200px; }
}

@media (max-width: 860px) {
  :root { --gutter: 18px; --stick: 200px; }
  .rail__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .rail__nav { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .rail__side { justify-content: space-between; }
  .rail__meter { flex: 1; min-width: 0; }
  .split { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 18px 0; }
  .fact:nth-child(odd) { padding-right: 20px; }
  .fact + .fact { padding-left: 24px; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts .fact:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .15); }
  .verdict { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .verdict__gauge { max-width: 250px; margin-inline: auto; }
  .verdict__copy { display: flex; flex-direction: column; align-items: center; }
  .verdict__action { text-align: left; width: 100%; }
  .finish { flex-direction: column; align-items: stretch; text-align: left; }
  .finish .btn { width: 100%; }
  .report-briefing { grid-template-columns: 1fr; }
  .report-briefing img { max-height: 150px; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .masthead__doc { display: none; }
  /* hold the poster frame on phones rather than pulling the video over cellular */
  .hero__video { display: none; }
  .hero { background: var(--navy-900) url("../images/hero-poster.jpg") center / cover no-repeat; }
  .hero__inner { padding-block: 46px 56px; }
  .hero__logo { width: 190px; margin-bottom: 26px; }
  .hero__title { max-width: none; }
  .hero__lede { font-size: 16px; }
  .hero .cover__actions { margin-top: 26px; }
  .cover__actions .btn { width: 100%; }
  .fact dd { font-size: 26px; }
  .brief { padding: 44px 18px 56px; }
  .brief__scopehead { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; }
  .agenda li { padding: 15px 18px; gap: 13px; }
  .agenda__t { font-size: 14.5px; }

  .form-wrap { padding: 28px 18px 60px; }
  .sect { margin-bottom: 34px; }
  .sect__head { grid-template-columns: auto 1fr; gap: 8px 12px; }
  .sect__numeral { grid-row: auto; width: 34px; height: 34px; }
  .sect__intro { grid-column: 1 / -1; }
  .sect__title { font-size: 19px; }
  .q { padding: 18px; border-radius: var(--r-md); }
  .q__body { padding-left: 0; margin-top: 14px; }
  .q__text { font-size: 15.5px; }
  .choice { grid-template-columns: 1fr; }
  .pull { padding: 18px; font-size: 14.5px; }

  .report { padding: 28px 18px 60px; }
  .report__head { flex-direction: column; align-items: stretch; gap: 14px; }
  .report__head .btn { width: 100%; }
  .card--pad { padding: 20px; }
  .verdict { padding: 22px; }
  .gauge__score { font-size: 40px; }
  .tick { width: 30px; height: 30px; font-size: 11px; }
  .log__summary { padding: 16px 20px; }
  .log__list { padding: 0 20px 6px; }
  .log__list li { grid-template-columns: 40px 1fr; }
  .log__a { justify-self: start; grid-column: 2; }
  .nextstep__content { padding: 24px 20px; }
  .nextstep__actions .btn { width: 100%; }

  .modal { padding: 0; align-items: end; }
  .modal__panel {
    max-width: none; max-height: 92vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
  @keyframes pop { from { opacity: 0; transform: translateY(28px); } }
  .modal__head { padding: 24px 20px 0; }
  .modal__body { padding: 18px 20px; }
  .modal__foot { padding: 18px 20px 24px; }
  .foot__inner { flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 26px; }
  .foot__logo { width: 180px; }
  .foot__meta { align-items: flex-start; text-align: left; }
  .foot__right { justify-content: flex-start; }
}

/* 15. Preferences ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video { display: none; }
  .hero {
    background: var(--navy-900) url("../images/hero-poster.jpg") center / cover no-repeat;
  }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .hero__video, .hero__strip,
  .masthead, .rail, .foot, .modal, .toast,
  .report__head .btn, .nextstep__actions, .skip-link { display: none !important; }
  body { background: #fff; }
  .card, .verdict, .nextstep, .report-briefing {
    box-shadow: none; border: 1px solid #D0D5DD; break-inside: avoid;
  }
  .log__list { display: block !important; }
}
