:root {
  --navy: #0b2e4f;
  --blue: #176eaa;
  --blue-dark: #115785;
  --orange: #e96f18;
  --ink: #12263a;
  --muted: #567089;
  --line: #cedbe6;
  --soft: #edf5fa;
  --white: #ffffff;
  --success: #176b4c;
  --warning: #8b4a0a;
  --danger: #a32929;
  --shadow: 0 18px 45px rgba(11, 46, 79, 0.11);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f5f8fb; font-size: 1rem; line-height: 1.55; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #f6a15f;
  outline-offset: 3px;
}
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 30; background: white; color: var(--navy); padding: .75rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.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; }

.site-header { min-height: 84px; padding: 1rem clamp(1rem, 5vw, 5rem); background: var(--navy); color: white; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 5px solid var(--orange); }
.brand-wrap { display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: white; background: transparent; border: 0; padding: .25rem; text-align: left; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.12rem; letter-spacing: .01em; }
.brand small { color: #c9dfef; font-size: .82rem; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid #76b2d9; border-radius: 11px; font-weight: 900; font-size: 1.35rem; box-shadow: inset 0 -4px 0 var(--orange); }
.uat-badge { white-space: nowrap; border: 1px solid #7eb1d4; color: #e6f4fd; background: #16486f; padding: .32rem .62rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
nav { display: flex; gap: .25rem; }
nav button, .menu-toggle { color: white; background: transparent; border: 1px solid transparent; border-radius: .55rem; padding: .55rem .8rem; font-weight: 750; }
nav button:hover, nav button[aria-current="page"] { background: #16486f; border-color: #5d91b8; }
.menu-toggle { display: none; border-color: #5d91b8; }
.network-status { padding: .8rem max(1rem, calc((100% - 1180px) / 2)); background: #fff3e7; color: #633608; border-bottom: 2px solid var(--orange); font-weight: 650; }
.network-status[hidden] { display: none; }

main { min-height: calc(100vh - 185px); }
.page { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) 0; }
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.eyebrow { color: var(--orange); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 900; margin: 0 0 .8rem; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin-top: 0; }
h1 { font-size: clamp(2.35rem, 6vw, 4.9rem); letter-spacing: -.045em; max-width: 820px; margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.6rem); letter-spacing: -.025em; }
h3 { font-size: 1.12rem; }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 760px; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--blue); border-radius: .65rem; padding: .68rem 1rem; font-weight: 850; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: white; background: var(--blue); }
.btn.primary:hover { background: var(--blue-dark); }
.btn.secondary { color: var(--blue); background: white; }
.btn.ghost { color: var(--navy); background: transparent; border-color: var(--line); }
.btn:disabled { cursor: not-allowed; opacity: .52; transform: none; }
.trust-card, .card, .question-card, .result-hero { background: white; border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.trust-card { padding: 1.5rem; border-top: 6px solid var(--blue); }
.trust-card ul { margin: 0; padding-left: 1.25rem; }
.trust-card li + li { margin-top: .8rem; }
.section-intro { max-width: 790px; margin-bottom: 2rem; }
.stepper { display: flex; gap: .5rem; align-items: center; margin: 1.4rem 0 2rem; color: var(--muted); font-size: .9rem; font-weight: 750; }
.stepper span { display: inline-flex; align-items: center; gap: .4rem; }
.stepper b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #dcebf5; color: var(--navy); }
.stepper .active b { background: var(--blue); color: white; }
.stepper .active { color: var(--navy); }
.check-panel { max-width: 760px; }
.safety-box { background: white; border: 1px solid var(--line); border-left: 6px solid var(--orange); border-radius: .8rem; padding: 1.25rem; }
.check-row { display: grid; grid-template-columns: 24px 1fr; gap: .8rem; align-items: start; margin-top: 1rem; }
.check-row input { width: 20px; height: 20px; margin-top: .2rem; }
.progress-wrap { margin-bottom: 1.5rem; }
.progress-meta { display: flex; justify-content: space-between; gap: 1rem; font-weight: 800; color: var(--navy); }
.progress-track { height: 12px; border-radius: 999px; overflow: hidden; background: #dae7f0; margin-top: .55rem; }
.progress-bar { height: 100%; width: 0; background: var(--blue); transition: width .25s ease; }
.assessment-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.5rem; align-items: start; }
.question-card { padding: clamp(1.25rem, 3vw, 2rem); }
.question-number { color: var(--blue); font-weight: 900; font-size: .9rem; }
.question-card fieldset { border: 0; padding: 0; margin: 1.3rem 0 0; }
.question-card legend { font-size: 1.25rem; line-height: 1.35; color: var(--navy); font-weight: 850; margin-bottom: 1rem; }
.choice { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; border: 2px solid var(--line); border-radius: .75rem; padding: .9rem 1rem; margin-top: .65rem; background: #fff; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--soft); }
.choice input { width: 19px; height: 19px; margin-top: .15rem; accent-color: var(--blue); }
.choice strong, .choice small { display: block; }
.choice small { color: var(--muted); margin-top: .1rem; }
details.guidance { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
details.guidance summary { color: var(--blue-dark); font-weight: 800; cursor: pointer; }
.side-card { background: var(--navy); color: white; border-radius: 1rem; padding: 1.25rem; position: sticky; top: 1rem; }
.side-card h3 { color: white; }
.side-card p { color: #c9dfef; }
.domain-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.domain-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid #356384; }
.review-grid, .service-grid, .faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card { padding: 1.25rem; box-shadow: none; }
.review-grid .card button { margin-top: .7rem; }
.status-pill { display: inline-block; white-space: nowrap; padding: .28rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 850; background: var(--soft); color: var(--blue-dark); }
.result-hero { padding: clamp(1.5rem, 4vw, 2.5rem); border-top: 7px solid var(--blue); }
.result-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 2rem; align-items: center; }
.score-ring { --score: 0; width: 170px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) calc(var(--score) * 1%), #dce8f0 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: white; }
.score-ring span { position: relative; font-size: 2.5rem; line-height: 1; font-weight: 900; color: var(--navy); }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.metric { padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: #f8fbfd; }
.metric strong { display: block; color: var(--navy); font-size: 1.25rem; }
.attention { border-left: 6px solid var(--orange); background: #fff7ef; padding: 1rem; border-radius: .6rem; margin-top: 1rem; color: #6b3a0d; }
.offer-card { margin-top: 1.5rem; padding: 1.5rem; background: var(--navy); color: white; border-radius: 1rem; }
.offer-card h2 { color: white; }
.offer-card p { color: #d5e7f3; }
.offer-card .status-pill { background: #fff; }
.offer-detail { margin-left: .7rem; }
.print-only { display: none; }
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-grid .card { border-top: 5px solid var(--blue); }
.price { color: var(--navy); font-size: 1.25rem; font-weight: 900; }
.form-grid { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-weight: 800; }
.field input, .field textarea { width: 100%; border: 2px solid var(--line); border-radius: .65rem; padding: .7rem .8rem; background: white; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-status:not(:empty) { max-width: 760px; margin-top: 1.5rem; padding: 1.25rem; border: 2px solid var(--line); border-radius: .75rem; background: var(--soft); }
.contact-status strong { color: var(--navy); }
.contact-status textarea { display: block; width: 100%; min-height: 220px; margin-top: 1rem; padding: .8rem; border: 2px solid var(--line); border-radius: .65rem; background: white; color: var(--ink); resize: vertical; }
.contact-status .actions { margin-top: 1rem; }
.notice { padding: 1rem; border-radius: .7rem; background: var(--soft); color: var(--navy); margin: 1rem 0; }
.faq-grid details { background: white; border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; }
.faq-grid summary { color: var(--navy); font-weight: 850; cursor: pointer; }
footer { padding: 1.5rem clamp(1rem, 5vw, 5rem); background: #071f36; color: #c9dfef; display: flex; justify-content: space-between; gap: 1.5rem; font-size: .86rem; }
footer p { margin: 0; }
.footer-link { border: 0; padding: 0; background: transparent; color: #c9dfef; text-decoration: underline; text-underline-offset: .2em; }
.footer-link:hover { color: white; }
.footer-link:focus-visible { outline: 3px solid #f6a15f; outline-offset: 3px; }
.policy-page { max-width: 840px; }
.policy-page h2 { margin-top: 2rem; }

@media (max-width: 900px) {
  .hero, .assessment-layout, .result-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-ring { width: 145px; }
}
@media (max-width: 680px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .menu-toggle { display: block; margin-left: auto; }
  nav { display: none; width: 100%; flex-direction: column; }
  nav.open { display: flex; }
  nav button { text-align: left; }
  .uat-badge { display: none; }
  .review-grid, .service-grid, .faq-grid, .metric-grid, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .stepper { overflow-x: auto; padding-bottom: .4rem; }
  .stepper span { white-space: nowrap; }
  footer { flex-direction: column; }
}
@media print {
  @page { size: letter landscape; margin: .38in .45in; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, footer, .skip-link, .stepper, .actions, .offer-card .btn, .print-hide { display: none !important; }
  .print-only { display: block; }
  body { background: white; color: #12263a; font-size: 11pt; }
  main { min-height: auto; }
  .page { width: 100%; padding: 0; }
  .results-page > .eyebrow { margin-top: .18in; }
  .results-page > h1 { font-size: 30pt; margin-bottom: .2in; }
  .print-report-header { display: flex; justify-content: space-between; align-items: flex-end; gap: .25in; padding-bottom: .12in; border-bottom: 3px solid var(--orange); color: var(--navy); }
  .print-report-header > div { display: grid; }
  .print-report-header strong { font-size: 15pt; }
  .print-report-header span { font-size: 9pt; color: #365b78; }
  .print-report-meta { text-align: right; }
  .print-report-header.compact { margin-bottom: .22in; }
  .result-hero, .card { box-shadow: none; break-inside: avoid; }
  .result-hero { padding: .28in; border: 1px solid #8eacc2; border-top: 7px solid var(--blue); }
  .result-layout { grid-template-columns: 1.55in minmax(0, 1fr); gap: .3in; }
  .score-ring { width: 1.35in; border: 10px solid var(--blue); background: white !important; }
  .score-ring::before { display: none; }
  .score-ring span { font-size: 30pt; }
  .result-hero h2 { font-size: 20pt; margin: .08in 0; }
  .result-hero .lede { font-size: 11pt; margin: .08in 0 .12in; }
  .metric-grid { gap: .1in; margin-top: .1in; }
  .metric { padding: .12in; }
  .metric strong { font-size: 15pt; }
  .metric span { font-size: 9pt; }
  .print-page-label { margin-top: .12in; text-align: right; color: #46657d; font-size: 8pt; }
  .domain-section { break-before: page; margin-top: 0 !important; }
  .domain-section > h2 { font-size: 22pt; margin: 0 0 .16in; }
  .domain-section .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .12in; }
  .domain-section .card { padding: .16in; min-height: 1.02in; }
  .domain-section .card h3 { font-size: 12pt; margin-bottom: .08in; }
  .domain-section .price { font-size: 16pt; margin: 0 0 .08in; }
  .domain-section .progress-track { height: 8px; }
  .offer-card { margin-top: .18in; padding: .2in; border: 2px solid var(--navy); background: white !important; color: var(--ink); break-inside: avoid; }
  .offer-card h2 { color: var(--navy); font-size: 18pt; margin: .08in 0; }
  .offer-card p { color: var(--ink); margin: .06in 0; }
  .offer-card .status-pill { color: var(--blue-dark); background: var(--soft) !important; }
  .offer-detail { display: block; margin: .08in 0 0; color: var(--navy); font-weight: 800; }
  .report-boundary { margin-top: .14in; padding-top: .1in; border-top: 1px solid #8eacc2; color: #365b78; font-size: 8.5pt; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
