:root {
  --blue: #336698;
  --navy: #31394d;
  --teal: #0c8f86;
  --cream: #f6f2ec;
  --white: #ffffff;
  --border: #d7dfe8;
  --shell: 75rem;
  --serif: Georgia, Cambria, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.25rem; }
body {
  margin: 0;
  min-width: 0;
  color: var(--navy);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: .15rem; }
#main:focus { outline: none; }
#top { scroll-margin-top: 5.25rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); text-wrap: balance; }
p { text-wrap: pretty; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; }
h1 { max-width: 12ch; margin-bottom: 1.25rem; font-size: clamp(2.65rem, 5vw, 4.25rem); line-height: 1.02; }
h2 { max-width: 18ch; margin-bottom: 1rem; font-size: clamp(2.15rem, 3.5vw, 3.25rem); line-height: 1.05; }
h3 { margin-bottom: .4rem; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 500; line-height: 1.16; letter-spacing: -.025em; }
p:last-child { margin-bottom: 0; }
.shell { width: min(calc(100% - 3rem), var(--shell)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 6vw, 5.5rem); }
.eyebrow, .map-label { color: var(--blue); font-size: .78rem; font-weight: 800; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { margin-bottom: .75rem; }

.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .75rem 1rem; color: var(--navy); background: var(--white); border: 2px solid var(--navy); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 20; top: 0; background: var(--cream); border-bottom: 1px solid rgba(49,57,77,.16); }
.nav { min-height: 5rem; display: flex; align-items: center; gap: 1rem; }
.brand { color: var(--blue); font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700; line-height: 1; letter-spacing: -.035em; text-decoration: none; }
.brand, .nav-review-link, .email-alternative a { position: relative; }
.brand::after, .nav-review-link::after, .email-alternative a::after { content: ""; position: absolute; top: 50%; right: -.35rem; left: -.35rem; height: 2.75rem; transform: translateY(-50%); }
.nav-actions { min-width: 0; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: clamp(1rem, 2.5vw, 1.75rem); }
.nav-review-link { flex: 0 0 auto; color: var(--navy); font-size: .95rem; font-weight: 700; text-decoration-color: rgba(49,57,77,.4); }
.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.25rem; color: var(--white); background: var(--blue); border: 2px solid var(--blue); border-radius: .15rem; font-size: .95rem; font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.button:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-1px); }
.button-header { min-height: 3rem; flex: 0 0 auto; padding-inline: clamp(.7rem, 1.6vw, 1rem); font-size: .9rem; white-space: nowrap; }

.hero { padding: clamp(3rem, 6vw, 6rem) 0 clamp(3.25rem, 5vw, 5rem); background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: minmax(0,.98fr) minmax(30rem,1.02fr); gap: clamp(2.75rem,5.5vw,5rem); align-items: start; }
.hero-copy { min-width: 0; }
.hero-icp { display: inline-block; max-width: 58ch; margin: 0 0 1rem; padding: .55rem .75rem; color: var(--blue); background: rgba(51,102,152,.09); border-left: 3px solid var(--blue); font-size: clamp(.75rem,1vw,.85rem); font-weight: 850; line-height: 1.45; letter-spacing: .075em; text-transform: uppercase; }
.hero h1 { max-width: 13ch; }
.hero-lede { max-width: 63ch; margin-bottom: 0; font-size: clamp(1.05rem,1.4vw,1.18rem); line-height: 1.62; }
.hero-lede strong { color: var(--blue); font-weight: 800; }
.hero-result strong { color: var(--navy); font-weight: 700; }
.hero-outcome { max-width: 58ch; margin: 1rem 0 0; color: rgba(49,57,77,.86); font-size: 1rem; font-weight: 550; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.35rem; }
.button-hero, .button-final { min-height: 3.35rem; font-size: 1rem; }
.text-link { min-height: 2.75rem; display: inline-flex; align-items: center; color: rgba(49,57,77,.82); font-size: .95rem; font-weight: 600; text-decoration-color: rgba(49,57,77,.35); }
.hero-result { max-width: 62ch; margin: 1rem 0 0; color: rgba(49,57,77,.88); font-size: .95rem; font-weight: 400; line-height: 1.58; }
.microcopy { max-width: 62ch; margin: .65rem 0 0; color: rgba(49,57,77,.78); font-size: .95rem; font-weight: 400; line-height: 1.58; }

.leak-map { position: relative; min-height: 39rem; padding: clamp(1.75rem,3vw,2.35rem); background: var(--white); border: 1px solid var(--border); box-shadow: 0 .75rem 1.75rem rgba(49,57,77,.05); }
.map-label { max-width: 44ch; margin: 0; line-height: 1.45; }
.map-explanation { max-width: 50ch; margin: .45rem 0 0; color: rgba(49,57,77,.82); font-size: .94rem; line-height: 1.58; }
.map-path-shell { position: relative; min-height: 30rem; margin: 1rem 0 0; }
.map-path { position: relative; z-index: 1; min-height: inherit; height: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(3,1fr); gap: 0 4.5rem; margin: 0; padding: 0; list-style: none; }
.map-connectors { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--teal); pointer-events: none; }
.map-connectors line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; marker-end: url(#map-arrow); }
.map-connectors marker path { fill: var(--teal); }
.map-connectors-mobile { display: none; }
.map-stage { position: relative; z-index: 1; min-width: 0; display: grid; grid-template-columns: 2.3rem minmax(0,1fr); gap: .7rem; align-content: center; padding-block: 1.75rem; }
.map-stage-1 { grid-column: 1; grid-row: 1; }
.map-stage-2 { grid-column: 2; grid-row: 1; }
.map-stage-3 { grid-column: 2; grid-row: 2; }
.map-stage-4 { grid-column: 1; grid-row: 2; }
.map-stage-5 { grid-column: 1; grid-row: 3; }
.map-stage-6 { grid-column: 2; grid-row: 3; }
.map-stage-1, .map-stage-4, .map-stage-5 { grid-template-columns: minmax(0,1fr) 2.3rem; text-align: right; }
.map-stage-1 .stage-number, .map-stage-4 .stage-number, .map-stage-5 .stage-number { grid-column: 2; grid-row: 1; }
.map-stage-1 .stage-name, .map-stage-4 .stage-name, .map-stage-5 .stage-name { grid-column: 1; grid-row: 1; }
.stage-number { position: relative; z-index: 2; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; align-self: center; color: var(--blue); background: var(--cream); border: 1.5px solid var(--teal); border-radius: 50%; font-size: .75rem; font-weight: 850; }
.stage-name { align-self: center; color: var(--navy); font-family: var(--serif); font-size: clamp(1.25rem,2.1vw,1.75rem); line-height: 1.1; }

.qualification { background: var(--white); }
.qualification-grid, .outputs-grid, .working-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(2.5rem,5vw,5rem); align-items: start; }
.qualification-grid > *, .outputs-grid > *, .working-grid > *, .final-main > * { min-width: 0; }
.qualification-grid p, .outputs-grid p, .working-grid p, .final-panel p { overflow-wrap: anywhere; }
.section-heading > p:not(.eyebrow) { max-width: 60ch; font-size: 1.05rem; }
.qualification-list { margin: 0; padding: 0; list-style: none; }
.qualification-list li { position: relative; padding: 0 0 0 1.65rem; font-size: 1.05rem; line-height: 1.62; }
.qualification-list li + li { margin-top: 1.35rem; }
.qualification-list li::before { content: ""; position: absolute; top: .65em; left: 0; width: .5rem; height: .5rem; background: var(--teal); border-radius: 50%; }
.qualification-list strong { color: var(--blue); font-weight: 800; }
.qualification-close { max-width: 64ch; margin: 1.75rem 0 0; padding-left: 1rem; border-left: 2px solid var(--teal); color: rgba(49,57,77,.84); font-size: .95rem; line-height: 1.58; }

.working-session { background: var(--white); }
#how-it-works { scroll-margin-top: 5.5rem; }
.sticky-heading { position: sticky; top: 8.25rem; }
.preparation-note { max-width: 64ch; margin: 1.25rem 0 0; color: rgba(49,57,77,.78); font-size: .95rem !important; font-weight: 400; line-height: 1.58; }
.diagnostic-path { position: relative; margin: 0; padding: 0; list-style: none; }
.diagnostic-path li { display: grid; grid-template-columns: 2.75rem minmax(0,1fr); gap: .75rem; padding: 0; }
.diagnostic-path li + li { margin-top: 1.7rem; }
.diagnostic-marker { color: var(--blue); font-size: .82rem; font-weight: 800; line-height: 1.5; letter-spacing: .06em; }
.diagnostic-path p, .diagnostic-receipt p { max-width: 64ch; margin: 0; }

.outputs { background: var(--white); }
.diagnostic-receipt { position: relative; padding: clamp(1.15rem,3vw,1.8rem); background: var(--cream); border: 1px solid var(--border); }
.receipt-rule { height: 3px; margin-bottom: .2rem; background: var(--teal); }
.diagnostic-receipt ol { margin: 0; padding: 0; list-style: none; }
.diagnostic-receipt li { display: grid; grid-template-columns: 2.4rem minmax(0,1fr); gap: .85rem; padding: 1rem 0; border-bottom: 1px solid rgba(49,57,77,.11); }
.diagnostic-receipt li:last-child { border-bottom: 0; }
.receipt-number { color: var(--blue); font-size: .75rem; font-weight: 850; letter-spacing: .08em; }

.operational-note { width: min(calc(100% - 3rem), 46rem); margin-top: clamp(2.5rem,4vw,3.5rem); padding-left: 1rem; border-left: 2px solid var(--teal); }
.operational-label { max-width: none; margin: 0 0 .65rem; color: var(--blue); font-family: var(--sans); font-size: .78rem; font-weight: 800; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }
.operational-note p { max-width: none; margin: 0; color: rgba(49,57,77,.82); font-size: .95rem; font-weight: 400; line-height: 1.62; }

.final-cta { background: var(--white); }
.final-panel { padding: clamp(2.5rem,4.5vw,3.5rem); color: var(--cream); background: var(--navy); border-top: 5px solid var(--teal); }
.final-panel .eyebrow { margin-bottom: 1.5rem; color: var(--cream); }
.final-main { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(3rem,6vw,5rem); align-items: start; }
.final-message h2 { margin-bottom: 1.5rem; color: var(--white); }
.final-lede { max-width: 48ch; margin: 0; font-size: 1.05rem; }
.final-action-column { display: grid; gap: 1.15rem; align-content: start; justify-items: start; }
.button-final { margin: 0 0 .35rem; }
.email-alternative a { color: var(--white); overflow-wrap: anywhere; }
.identity, .best-fit, .email-alternative { margin: 0; font-size: .96rem; line-height: 1.58; }
.diagnostic-boundary { max-width: 48ch; margin: .7rem 0 0; padding: .15rem 0 .15rem 1rem; color: var(--cream); border-left: 2px solid var(--teal); font-size: .95rem; font-weight: 400; line-height: 1.58; }
.privacy-warning { margin: 0; color: rgba(246,242,236,.9); font-size: .95rem; font-weight: 500; line-height: 1.55; }
.final-panel a:focus-visible, .site-footer a:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; box-shadow: 0 0 0 6px var(--teal); }
.final-panel .button:hover { background: var(--blue); border-color: var(--white); }

.site-footer { padding-block: 2rem; color: var(--cream); background: var(--navy); border-top: 1px solid rgba(246,242,236,.18); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: end; font-size: .875rem; }
.footer-grid p { margin-bottom: 0; }
.footer-brand { color: var(--white); font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.footer-trust { max-width: 28rem; text-align: right; }

.not-found { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: var(--cream); }
.not-found-card { width: min(100%, 38rem); padding: clamp(2rem,6vw,4rem); background: var(--white); border-top: 5px solid var(--teal); box-shadow: 0 .75rem 1.75rem rgba(49,57,77,.08); }
.not-found-card h1 { max-width: none; }
.not-found-card .button { margin-top: 1rem; }

@media (max-width: 67.5rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 48rem; }
  .leak-map { min-height: 34rem; }
  .map-path-shell { min-height: 26rem; }
  .map-connectors-desktop { transform: scaleX(.55); transform-origin: center; }
}

@media (max-width: 64rem) {
  .qualification-grid, .outputs-grid, .working-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .sticky-heading { position: static; }
  .section { padding-block: 4rem; }
  .final-main { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 52rem) {
  .nav-review-link { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-trust { text-align: left; }
}

@media (max-width: 43rem) {
  .shell { width: min(calc(100% - 2rem), var(--shell)); }
  .nav { min-height: 4.75rem; }
  .brand { font-size: 1.3rem; }
  .nav { gap: .5rem; }
  .button-header { min-height: 2.8rem; padding-inline: .3rem; font-size: .82rem; }
  .section { padding-block: 3.25rem; }
  .hero { padding-block: 2.25rem 3.25rem; }
  .hero-icp { margin-bottom: .9rem; padding: .45rem .6rem; font-size: .75rem; }
  .hero h1 { margin-bottom: 1rem; font-size: clamp(2.2rem,10vw,2.65rem); }
  .hero-lede { font-size: 1rem; line-height: 1.52; }
  .hero-outcome { margin-top: .8rem; font-size: .95rem; }
  .hero-actions { gap: .55rem; margin-top: 1rem; }
  .hero-result { margin-top: .8rem; font-size: .95rem; }
  .microcopy { margin-top: .5rem; font-size: .95rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button-hero, .button-final { width: 100%; }
  .text-link { align-self: flex-start; }
  .leak-map { min-height: auto; padding: 1.25rem; }
  .map-label { font-size: .75rem; }
  .map-explanation { margin-top: .35rem; font-size: .94rem; }
  .map-path-shell { min-height: 0; height: 23.5rem; margin-top: .75rem; }
  .map-path { min-height: 0; height: 100%; display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(6,minmax(0,1fr)); gap: 0; margin: 0; }
  .map-connectors-desktop { display: none; }
  .map-connectors-mobile { display: inline; }
  .map-stage, .map-stage-1, .map-stage-2, .map-stage-3, .map-stage-4, .map-stage-5, .map-stage-6 { grid-column: 1; grid-row: auto; min-height: 0; grid-template-columns: 2.3rem minmax(0,1fr); padding: .45rem 0; text-align: left; }
  .map-stage-1 .stage-number, .map-stage-4 .stage-number, .map-stage-5 .stage-number { grid-column: 1; grid-row: 1; }
  .map-stage-1 .stage-name, .map-stage-4 .stage-name, .map-stage-5 .stage-name { grid-column: 2; grid-row: 1; }
  .stage-name { font-size: 1.22rem; }
  .operational-note { width: min(calc(100% - 2rem), 46rem); }
  .final-panel { padding: 2.25rem 1.35rem; }
}

@media (max-width: 23.75rem) {
  .nav-actions { display: none; }
}

@media (max-width: 22.5rem) {
  .shell { width: min(calc(100% - 1.25rem), var(--shell)); }
  .nav { min-height: 3.5rem; }
  .hero { padding-top: .75rem; }
  .hero-icp { margin-bottom: .4rem; padding: .32rem .5rem; font-size: .75rem; line-height: 1.3; }
  .hero h1 { max-width: none; margin-bottom: .5rem; font-size: 2rem; line-height: 1.02; }
  .hero-lede { font-size: .94rem; line-height: 1.42; }
  .hero-outcome { margin-top: .5rem; font-size: .94rem; line-height: 1.42; }
  .hero-actions { margin-top: .55rem; }
  .button-hero { padding-inline: .75rem; font-size: .95rem; }
  .hero-result, .microcopy { font-size: .94rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
