:root {
  --navy: #0c1738;
  --navy-dark: #071027;
  --teal: #314f93;
  --ink: #171a1c;
  --muted: #53596d;
  --line: #b5b6c2;
  --pale: #f8f7f8;
  --white: #ffffff;
  --signal: #6f3434;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible + .choice-value,
[tabindex="-1"]:focus-visible {
  outline: 3px solid #5870ad;
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid rgba(181, 182, 194, 0.7);
  background: rgba(255, 255, 255, 0.97);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--teal);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.105em;
  text-decoration: none;
}

.header-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.035em;
}

.header-inner span {
  padding: 0 7px;
  color: var(--line);
}

.hero {
  padding: 108px 0 112px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.75fr);
  gap: 96px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #c6cad7;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero-title-word {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
  line-height: 1.12;
}

.hero h1 {
  max-width: 750px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 5.3vw, 5rem);
  font-weight: 650;
  letter-spacing: -0.055em;
}

.hero-subtitle {
  margin: 0 0 24px;
  color: var(--teal);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 730px;
  margin: 0 0 36px;
  color: #242e4c;
  font-size: 1.08rem;
  line-height: 1.75;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  padding: 13px 20px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--navy);
  color: var(--white);
}

.button-primary:hover {
  background: var(--navy-dark);
}

.button-secondary {
  border-color: var(--navy);
  background: var(--white);
  color: var(--navy);
}

.button-secondary:hover {
  background: var(--pale);
}

.button-light {
  background: var(--white);
  color: var(--navy);
}

.button-light:hover {
  background: var(--pale);
}

.trust-line {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-panel {
  border-top: 5px solid var(--teal);
  background: var(--pale);
  padding: 32px;
}

.panel-kicker {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}

.metric strong {
  color: var(--navy);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.metric span {
  color: #242e4c;
  font-size: 0.92rem;
  line-height: 1.35;
}

.panel-note {
  margin: 22px 0 0;
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 700;
}

.explanation {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 88px 0;
}

.explanation-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 760px);
  gap: 54px;
}

.section-number {
  margin: 0;
  color: var(--line);
  font-size: 4rem;
  font-weight: 300;
  line-height: 1;
}

.explanation h2,
.result-section h2,
.cta-section h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.035em;
}

.explanation-grid div > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 0 18px;
  color: #242e4c;
  font-size: 1.05rem;
}

.service-section {
  background: var(--pale);
  padding: 88px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 88px;
  align-items: start;
}

.service-section h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.035em;
}

.service-section > .service-grid > div:first-child > p:last-child {
  margin: 0;
  color: #242e4c;
  font-size: 1.05rem;
}

.service-steps {
  display: grid;
  border-top: 1px solid var(--line);
}

.service-steps article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.service-steps article > span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-steps h3 {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.service-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.landing-footer,
.results-footer {
  padding: 38px 0;
}

.footer-line {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-line p {
  margin: 0;
  color: var(--teal);
  font-weight: 700;
}

.assessment {
  min-height: calc(100vh - 77px);
}

.assessment-shell {
  padding: 58px 0 96px;
}

.progress-block {
  margin-bottom: 64px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-track,
.dimension-track {
  height: 4px;
  background: var(--pale);
}

.progress-fill,
.dimension-fill {
  height: 100%;
  background: var(--teal);
  transition: width 220ms ease;
}

.assessment-heading {
  max-width: 880px;
  margin-bottom: 42px;
}

.assessment-heading h1 {
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 4.5vw, 4rem);
  letter-spacing: -0.045em;
}

.assessment-heading > p:last-child {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.questions {
  display: grid;
  gap: 24px;
}

.question-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  padding: 28px;
}

.question-card legend {
  width: 100%;
  display: flex;
  gap: 18px;
  padding: 0 0 22px;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
}

.question-card legend span {
  color: var(--teal);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.choice-grid-document {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 13px;
  cursor: pointer;
  transition: background 170ms ease, border-color 170ms ease;
}

.choice:hover {
  border-color: var(--teal);
  background: #f5f6fa;
}

.choice-selected {
  border-color: var(--navy);
  background: var(--pale);
  box-shadow: inset 0 -3px 0 var(--teal);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-value {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 800;
}

.choice-selected .choice-value {
  background: var(--navy);
  color: var(--white);
}

.choice-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.choice-text strong {
  color: var(--navy);
  font-size: 0.81rem;
}

.choice-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.71rem;
}

.validation {
  border-left: 4px solid var(--signal);
  background: #f7eeee;
  margin: 24px 0 0;
  padding: 14px 18px;
  color: #5c2525;
  font-weight: 700;
}

.navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 28px;
}

.result-hero {
  background: var(--navy);
  padding: 82px 0 86px;
  color: var(--white);
}

.result-hero-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 700px);
  gap: 80px;
  align-items: end;
}

.result-hero h1 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(2.4rem, 4.8vw, 4.5rem);
  letter-spacing: -0.05em;
}

.result-hero-grid > div:last-child > p {
  max-width: 690px;
  margin: 0;
  color: #e6e7ec;
  font-size: 1.04rem;
}

.result-hero-grid > div:last-child > .category-rule {
  margin-top: 16px;
  color: #c6cad7;
  font-size: 0.8rem;
}

.score-label {
  margin: 0 0 6px;
  color: #c6cad7;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.score-number {
  margin: 0;
  font-size: 5rem;
  font-weight: 300;
  line-height: 1;
}

.score-number span {
  color: #c6cad7;
  font-size: 1.2rem;
}

.result-body {
  padding: 72px 0 42px;
}

.result-section {
  border-bottom: 1px solid var(--line);
  padding: 0 0 78px;
  margin-bottom: 78px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.section-side-note {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: right;
}

.dimension-list {
  display: grid;
  gap: 24px;
}

.dimension-label {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 9px;
  line-height: 1.35;
}

.dimension-label strong {
  color: var(--navy);
}

.dimension-label span {
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.dimension-track {
  height: 8px;
}

.dimension-fill {
  background: var(--navy);
}

.summary-box {
  border-left: 4px solid var(--teal);
  background: var(--pale);
  margin-top: 42px;
  padding: 24px 28px;
}

.summary-box p:last-child {
  margin: 0;
  color: #242e4c;
  font-size: 1.03rem;
}

.summary-box .document-status {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
  font-size: 0.94rem;
}

.action-section > h2,
.roadmap-section > h2 {
  max-width: 760px;
}

.service-recommendation {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 70px;
  align-items: start;
  border-left: 4px solid var(--teal);
  background: var(--pale);
  padding: 38px 42px;
}

.service-recommendation h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 2.8vw, 2.65rem);
}

.service-recommendation > div > p:not(.eyebrow) {
  margin: 0 0 20px;
  color: #242e4c;
}

.service-recommendation ul {
  display: grid;
  gap: 14px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.service-recommendation li {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 0 0 14px 24px;
  color: var(--navy);
  font-size: 0.91rem;
  font-weight: 700;
}

.service-recommendation li::before {
  position: absolute;
  top: 0.08rem;
  left: 0;
  color: var(--teal);
  content: "→";
}

.text-link {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.priority-card {
  min-height: 310px;
  border: 1px solid var(--line);
  padding: 26px;
}

.priority-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.priority-index {
  margin: 0 0 36px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
}

.priority-label {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.priority-card h3 {
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.priority-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 40px;
}

.roadmap article {
  border-right: 1px solid var(--line);
  padding: 26px 20px 30px;
}

.roadmap article:last-child {
  border-right: 0;
}

.roadmap p {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.roadmap h3 {
  min-height: 54px;
  margin-bottom: 14px;
  font-size: 1.02rem;
}

.roadmap span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -20px 0 86px;
}

.text-button {
  border: 0;
  background: transparent;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cta-section {
  background: var(--navy);
  margin-inline: calc((100vw - min(calc(100vw - 48px), var(--max))) / -2);
  padding: 70px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 76px;
}

.cta-section h2 {
  color: var(--white);
}

.cta-section p {
  color: #e6e7ec;
}

.cta-card {
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 30px;
}

.cta-label {
  margin-top: 0;
  color: var(--white) !important;
  font-weight: 800;
}

.cta-card .button {
  margin: 13px 0 18px;
}

.cta-card small {
  display: block;
  color: #b5b6c2;
  font-size: 0.76rem;
}

.results-footer {
  color: var(--muted);
  font-size: 0.78rem;
}

.results-footer strong {
  color: var(--teal);
  letter-spacing: 0.08em;
}

.results-footer p {
  margin: 5px 0;
}

.results-footer .disclaimer {
  max-width: 760px;
  margin-top: 22px;
  font-size: 0.72rem;
}

@media (max-width: 940px) {
  .hero-grid,
  .result-hero-grid,
  .cta-grid,
  .service-grid,
  .service-recommendation {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-panel {
    max-width: 620px;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .priority-grid {
    grid-template-columns: 1fr;
  }

  .priority-card {
    min-height: 0;
  }

  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap article:nth-child(2) {
    border-right: 0;
  }

  .roadmap article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .header-inner {
    min-height: 74px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  .header-inner p {
    font-size: 0.68rem;
  }

  .hero {
    padding: 72px 0 78px;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hero-panel,
  .question-card {
    padding: 22px;
  }

  .explanation {
    padding: 70px 0;
  }

  .service-section {
    padding: 70px 0;
  }

  .service-recommendation {
    gap: 30px;
    padding: 28px 24px;
  }

  .explanation-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-number {
    font-size: 2.3rem;
  }

  .footer-line {
    flex-direction: column;
    gap: 4px;
  }

  .assessment-shell {
    padding: 38px 0 74px;
  }

  .progress-block {
    margin-bottom: 44px;
  }

  .assessment-heading h1 {
    font-size: 2.45rem;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 64px;
  }

  .navigation {
    flex-direction: column-reverse;
  }

  .navigation .button {
    width: 100%;
  }

  .result-hero {
    padding: 64px 0;
  }

  .result-hero-grid {
    gap: 36px;
  }

  .result-body {
    padding-top: 54px;
  }

  .section-heading-row,
  .dimension-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .section-side-note,
  .dimension-label span {
    text-align: left;
  }

  .result-section {
    padding-bottom: 58px;
    margin-bottom: 58px;
  }

  .roadmap {
    grid-template-columns: 1fr;
  }

  .roadmap article,
  .roadmap article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .roadmap article:last-child {
    border-bottom: 0;
  }

  .roadmap h3 {
    min-height: 0;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .button,
  .result-actions .text-button {
    width: 100%;
  }

  .cta-section {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .cta-grid {
    gap: 38px;
  }

  .cta-card {
    padding: 24px;
  }
}

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

@media print {
  @page {
    margin: 15mm;
  }

  body {
    font-size: 10pt;
    color: #000;
  }

  .print-hide,
  .site-header {
    display: none !important;
  }

  .result-hero {
    background: #fff !important;
    padding: 0 0 20px;
    color: #000;
  }

  .result-hero h1,
  .result-hero-grid > div:last-child > p,
  .score-label,
  .score-number,
  .score-number span,
  .eyebrow.light {
    color: #000 !important;
  }

  .result-body {
    width: 100%;
    padding: 10px 0;
  }

  .result-section {
    break-inside: avoid;
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .priority-grid,
  .roadmap,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .service-recommendation {
    break-inside: avoid;
  }

  .priority-card {
    min-height: 0;
    break-inside: avoid;
  }

  .cta-section {
    margin: 0;
    background: #fff;
    padding: 24px 0;
    color: #000;
    break-before: page;
    break-inside: avoid;
  }

  .cta-section h2,
  .cta-section p,
  .cta-card small {
    color: #000 !important;
  }
}
