:root {
  color-scheme: light;
  --ink: #17202a;
  --ink-2: #25313c;
  --paper: #f3efe5;
  --white: #fffdf8;
  --line: #b9b2a6;
  --line-soft: #d8d1c5;
  --muted: #5d625f;
  --navy: #244a67;
  --ochre: #b86f22;
  --red: #a23b2b;
  --green: #27634d;
  --mono: "DM Mono", monospace;
  --sans: "Libre Franklin", sans-serif;
  --serif: "Newsreader", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
button, input { font: inherit; }
button, a, label { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(36, 74, 103, .42); outline-offset: 3px; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .75rem 1rem; color: var(--white); background: var(--ink); text-decoration: none; }
.skip-link:focus-visible { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; min-height: 76px; display: grid; grid-template-columns: minmax(240px, 1fr) auto minmax(160px, 1fr); align-items: center; gap: 1.5rem; padding: 0 clamp(1rem, 4vw, 4.5rem); color: var(--white); background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.18); }
.suite-brand { display: flex; align-items: center; gap: .7rem; width: fit-content; text-decoration: none; }
.suite-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); background: var(--white); font: 500 .7rem/1 var(--mono); }
.suite-brand strong, .suite-brand small { display: block; }
.suite-brand strong { font: 600 1.03rem/1 var(--serif); }
.suite-brand small { margin-top: .3rem; color: rgba(255,255,255,.55); font: 500 .68rem/1 var(--mono); text-transform: uppercase; }
.site-header nav { align-self: stretch; display: flex; }
.site-header nav a { min-height: 44px; display: grid; place-items: center; padding: 0 .75rem; color: rgba(255,255,255,.62); border-bottom: 3px solid transparent; font: 500 .68rem/1 var(--mono); text-decoration: none; }
.site-header nav a:hover, .site-header nav a.active { color: var(--white); border-bottom-color: var(--ochre); }
.privacy-note { justify-self: end; color: rgba(255,255,255,.66); font: 500 .65rem/1 var(--mono); }

main > section, .workflow { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }
.hero { min-height: 660px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .55fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); padding: 5rem 0; border-bottom: 1px solid var(--line); }
.kicker { margin: 0 0 .85rem; color: var(--ochre); font: 500 .72rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
.hero h1 { max-width: 820px; margin: 0; font: 650 clamp(4rem, 7.8vw, 8rem)/.86 var(--serif); letter-spacing: -.045em; text-wrap: balance; }
.lede { max-width: 740px; margin: 1.8rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.8rem; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1rem; border: 1px solid var(--ink); border-radius: 0; font-weight: 650; text-decoration: none; }
.button.primary { color: var(--white); background: var(--ink); }
.button.primary:hover { background: var(--navy); }
.button.secondary { color: var(--ink); background: transparent; }
.button.secondary:hover { background: var(--white); }
.button:disabled { cursor: not-allowed; opacity: .42; }
.boundary-list { display: flex; flex-wrap: wrap; gap: .9rem 1.6rem; margin: 2rem 0 0; }
.boundary-list div { padding-left: .75rem; border-left: 2px solid var(--line); }
.boundary-list dt { color: var(--muted); font: 500 .65rem/1 var(--mono); text-transform: uppercase; }
.boundary-list dd { margin: .35rem 0 0; font-size: .76rem; font-weight: 600; }
.example-brief { align-self: center; padding: 1.4rem; color: var(--white); background: var(--ink); border-top: 7px solid var(--ochre); }
.brief-header, .card-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-bottom: .9rem; border-bottom: 1px solid rgba(255,255,255,.18); font: 500 .68rem/1 var(--mono); text-transform: uppercase; }
.brief-header b { color: #f0c9bd; }
.brief-question { margin: 2.4rem 0 2rem; font: 500 2.1rem/1.05 var(--serif); }
.example-brief dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-block: 1px solid rgba(255,255,255,.16); }
.example-brief dl div { padding: 1rem .6rem; border-right: 1px solid rgba(255,255,255,.16); }
.example-brief dl div:last-child { border: 0; }
.example-brief dt { font: 600 2.2rem/1 var(--serif); }
.example-brief dd { margin: .35rem 0 0; color: rgba(255,255,255,.58); font-size: .68rem; line-height: 1.35; }
.brief-answer { margin: 1.2rem 0 0; color: rgba(255,255,255,.7); font-size: .78rem; line-height: 1.55; }

.workflow { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.2rem; padding: 0; list-style: none; border: 1px solid var(--line); }
.workflow li { min-height: 92px; display: flex; align-items: center; gap: .8rem; padding: 1rem; background: rgba(255,255,255,.38); border-right: 1px solid var(--line); }
.workflow li:last-child { border: 0; }
.workflow li.current { color: var(--white); background: var(--navy); }
.workflow li > span { min-width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid currentColor; font: 500 .7rem/1 var(--mono); }
.workflow b, .workflow small { display: block; }
.workflow b { font-size: .8rem; }
.workflow small { margin-top: .3rem; color: var(--muted); font-size: .68rem; line-height: 1.3; }
.workflow .current small { color: rgba(255,255,255,.62); }

.intake, .findings, .board-output, .suite-map { padding: 6.5rem 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 3rem; align-items: end; margin-bottom: 2rem; }
.section-heading h2, .suite-map h2 { max-width: 820px; margin: 0; font: 600 clamp(2.7rem, 5.2vw, 5.4rem)/.93 var(--serif); letter-spacing: -.035em; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.6; }
.section-heading.compact h2 { font-size: clamp(2.4rem, 4.2vw, 4.4rem); }
.review-fields { display: grid; grid-template-columns: 1.2fr .6fr 1fr; gap: .7rem; margin-bottom: .7rem; }
.review-fields label, .human-gate > label:not(.check-label) { display: block; }
.review-fields span, .human-gate > label:not(.check-label) { display: block; margin-bottom: .4rem; color: var(--muted); font: 500 .66rem/1 var(--mono); text-transform: uppercase; }
.review-fields input, .human-gate input[type="text"] { width: 100%; min-height: 46px; padding: .75rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 0; }

.evidence-register { border: 1px solid var(--ink); background: var(--white); }
.register-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 1.2rem; color: var(--white); background: var(--ink); }
.register-head span { color: rgba(255,255,255,.56); font: 500 .65rem/1 var(--mono); text-transform: uppercase; }
.register-head h3 { margin: .35rem 0 0; font: 500 1.6rem/1 var(--serif); }
.register-head small { color: #e7c6a2; }
.evidence-table { display: grid; }
.table-row { min-height: 74px; display: grid; grid-template-columns: 1.05fr 1.5fr .55fr 1fr; align-items: center; gap: 1rem; padding: .8rem 1.2rem; border-bottom: 1px solid var(--line-soft); }
label.table-row { cursor: pointer; }
label.table-row:hover { background: #f6f1e7; }
.table-labels { min-height: 42px; color: var(--muted); background: #ece6db; font: 500 .63rem/1 var(--mono); text-transform: uppercase; }
.table-row b, .table-row small { display: block; }
.table-row b { font-size: .78rem; }
.table-row small { margin-top: .3rem; color: var(--muted); font-size: .63rem; }
.table-row > span:nth-child(2) { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.table-row input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.table-row i { display: block; overflow: hidden; color: var(--navy); font-size: .7rem; font-style: normal; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.file-state { width: fit-content; padding: .35rem .48rem; color: var(--red); background: #f3ddd8; font: 500 .62rem/1 var(--mono); text-transform: uppercase; }
.file-state.present { color: var(--green); background: #dce9df; }
.register-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: #ece6db; }
.register-actions p { max-width: 700px; margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.register-actions > div { display: flex; gap: .6rem; }
.text-button { min-height: 44px; padding: .6rem; color: var(--navy); background: transparent; border: 0; text-decoration: underline; text-underline-offset: .2rem; }

.results { width: 100%; max-width: none; padding-bottom: 2rem; background: #e9e3d8; border-block: 1px solid var(--ink); }
.results > section { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }
.results-strip { min-height: 82px; display: grid; grid-template-columns: 1.3fr .7fr 1fr auto; align-items: center; gap: 1rem; padding: 0 max(1rem, calc((100% - 1240px) / 2)); color: var(--white); background: var(--ink); }
.results-strip span, .results-strip strong { display: block; }
.results-strip span { color: rgba(255,255,255,.5); font: 500 .62rem/1 var(--mono); text-transform: uppercase; }
.results-strip strong { margin-top: .35rem; font-size: .78rem; }
.results-strip button { min-height: 44px; padding: .65rem .8rem; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.45); }
.readiness-summary { display: grid; grid-template-columns: minmax(0, 1.2fr) .55fr; gap: 4rem; align-items: end; padding: 5rem 0; border-bottom: 1px solid var(--line); }
.status-label { display: flex; align-items: center; gap: .55rem; color: var(--red); font: 500 .72rem/1 var(--mono); text-transform: uppercase; }
.status-label span { width: 10px; height: 10px; background: var(--red); }
.readiness-copy h2 { max-width: 860px; margin: 1rem 0; font: 600 clamp(3rem, 6vw, 6rem)/.9 var(--serif); letter-spacing: -.04em; }
.readiness-copy > p:last-child { max-width: 800px; color: var(--muted); line-height: 1.6; }
.readiness-counts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1px solid var(--line); background: var(--white); }
.readiness-counts div { padding: 1rem; border-right: 1px solid var(--line); }
.readiness-counts div:last-child { border: 0; }
.readiness-counts dt { font: 600 2.6rem/1 var(--serif); }
.readiness-counts dd { margin: .4rem 0 0; color: var(--muted); font-size: .66rem; }

.finding-table { border: 1px solid var(--line); background: var(--white); }
.finding-row { min-height: 92px; display: grid; grid-template-columns: 90px minmax(0, 1.5fr) minmax(200px, .8fr) minmax(220px, .8fr); gap: 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--line-soft); }
.finding-labels { min-height: 42px; color: var(--muted); background: #ded7cb; font: 500 .62rem/1 var(--mono); text-transform: uppercase; }
.finding-row label { min-height: 44px; display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .68rem; font-weight: 600; }
.finding-row input { width: 20px; height: 20px; accent-color: var(--green); }
.finding-copy span { display: inline-block; margin-bottom: .45rem; padding: .28rem .4rem; color: var(--red); background: #f3ddd8; font: 500 .6rem/1 var(--mono); text-transform: uppercase; }
.finding-copy strong { display: block; font-size: .83rem; line-height: 1.4; }
.finding-copy p, .finding-source, .finding-action { margin: .35rem 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.finding-source b { display: block; color: var(--ink); font-size: .68rem; }

.output-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 1rem; align-items: start; }
.decision-brief, .audit-card { background: var(--white); border: 1px solid var(--ink); }
.decision-brief .card-heading, .audit-card .card-heading { padding: 1rem; color: var(--white); background: var(--ink); }
.decision-brief > ol { margin: 0; padding: 0; list-style: none; }
.decision-brief > ol li { display: grid; grid-template-columns: 48px 1fr; gap: .8rem; padding: 1.1rem; border-bottom: 1px solid var(--line-soft); }
.decision-brief > ol span { width: 32px; height: 32px; display: grid; place-items: center; color: var(--white); background: var(--navy); font: 500 .66rem/1 var(--mono); }
.decision-brief > ol strong { display: block; font: 600 1.3rem/1.15 var(--serif); }
.decision-brief > ol p { margin: .4rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.human-gate { padding: 1.2rem; background: #ece6db; }
.check-label { display: flex; align-items: flex-start; gap: .6rem; margin: .9rem 0; font-size: .72rem; line-height: 1.4; }
.check-label input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--green); }
.human-gate .button { width: 100%; }
.audit-timeline { margin: 0; padding: .8rem 1rem 1.2rem; list-style: none; }
.audit-timeline li { position: relative; display: grid; grid-template-columns: 50px 1fr; gap: .8rem; padding: .9rem 0 .9rem 1.1rem; border-left: 1px solid var(--navy); }
.audit-timeline li::before { content: ""; position: absolute; left: -5px; top: 1.1rem; width: 9px; height: 9px; background: var(--navy); }
.audit-timeline li.pending { border-left-color: var(--line); }
.audit-timeline li.pending::before { background: var(--paper); border: 1px solid var(--line); }
.audit-timeline time { color: var(--muted); font: 500 .62rem/1 var(--mono); }
.audit-timeline strong { display: block; font-size: .75rem; }
.audit-timeline p { margin: .35rem 0 0; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.export-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1rem; color: var(--white); background: var(--ink); }
.export-bar p { margin: 0; color: rgba(255,255,255,.64); font-size: .7rem; }
.export-bar > div { display: flex; gap: .6rem; }
.export-bar .secondary { color: var(--white); border-color: rgba(255,255,255,.5); }
.export-bar .primary { color: var(--ink); background: var(--white); border-color: var(--white); }

.suite-map { display: grid; grid-template-columns: .7fr 1.3fr; gap: 4rem; border-bottom: 1px solid var(--line); }
.suite-map ol { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); }
.suite-map li { min-height: 210px; padding: 1.1rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.suite-map li:nth-child(2n) { border-right: 0; }
.suite-map li:nth-last-child(-n+2) { border-bottom: 0; }
.suite-map li.current { color: var(--white); background: var(--navy); }
.suite-map span { color: var(--ochre); font: 500 .65rem/1 var(--mono); text-transform: uppercase; }
.suite-map .current span { color: #e8c694; }
.suite-map strong { margin-top: 1.2rem; font: 600 1.55rem/1 var(--serif); }
.suite-map p { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.suite-map .current p { color: rgba(255,255,255,.65); }
.suite-map a { margin-top: auto; font-size: .72rem; font-weight: 650; }
.source-note { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 2rem; padding: 2rem 0 4rem; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.source-note strong { color: var(--ink); }
.source-note p { margin: 0; }
.source-note a { color: var(--navy); font-weight: 650; }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; max-width: 390px; padding: 1rem; color: var(--white); background: var(--ink); border-left: 5px solid var(--ochre); transform: translateY(150%); transition: transform .2s ease; }
.toast.show { transform: none; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; height: 58px; background: var(--ink); border-top: 1px solid rgba(255,255,255,.2); }
  .site-header nav a { flex: 1; padding: 0 .4rem; text-align: center; }
  .privacy-note { display: none; }
  body { padding-bottom: 58px; }
  .hero { grid-template-columns: 1fr 340px; }
  .readiness-summary, .suite-map { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .site-header { min-height: 64px; padding: 0 1rem; }
  .suite-brand small { display: none; }
  .site-header nav a { font-size: .56rem; }
  main > section, .workflow, .results > section { width: min(100% - 24px, 1240px); }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 3rem; padding: 4rem 0 3rem; }
  .hero h1 { font-size: clamp(3.5rem, 17vw, 5.3rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .workflow li { border-bottom: 1px solid var(--line); }
  .workflow li:nth-child(2n) { border-right: 0; }
  .intake, .findings, .board-output, .suite-map { padding: 4.5rem 0; }
  .section-heading, .review-fields { grid-template-columns: 1fr; gap: 1rem; }
  .section-heading h2, .suite-map h2 { font-size: 3rem; }
  .table-labels, .finding-labels { display: none; }
  .table-row { grid-template-columns: 1fr auto; gap: .55rem; padding: 1rem; }
  .table-row > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .table-row > span:nth-child(3) { grid-column: 2; grid-row: 1; }
  .table-row > span:nth-child(4) { grid-column: 1 / -1; }
  .register-head, .register-actions, .export-bar { align-items: stretch; flex-direction: column; }
  .register-actions > div, .export-bar > div { display: grid; }
  .results-strip { grid-template-columns: 1fr 1fr; padding: 1rem; }
  .results-strip button { grid-column: 1 / -1; }
  .readiness-summary { padding: 4rem 0; }
  .readiness-copy h2 { font-size: 3.4rem; }
  .finding-row { grid-template-columns: 70px 1fr; }
  .finding-copy { grid-column: 2; }
  .finding-source, .finding-action { grid-column: 2; }
  .output-grid { grid-template-columns: 1fr; }
  .suite-map ol { grid-template-columns: 1fr; }
  .suite-map li, .suite-map li:nth-child(2n), .suite-map li:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .suite-map li:last-child { border-bottom: 0; }
  .source-note { grid-template-columns: 1fr; gap: .7rem; }
  .toast { left: 1rem; right: 1rem; bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}
