:root {
  --navy: #071f2f;
  --navy-soft: #0d2b3e;
  --teal: #0796ad;
  --teal-dark: #087b8e;
  --cream: #f4f1e9;
  --paper: #fffefa;
  --ink: #0a1523;
  --muted: #5d6877;
  --line: #dfe2dc;
  --orange: #d77a4d;
  --green: #49a57d;
  --yellow: #d9ad4a;
  --shadow: 0 18px 45px rgba(4, 26, 39, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(7, 150, 173, .35); outline-offset: 3px; }
[hidden] { display: none !important; }

.page-shell { min-height: 100vh; }
.site-header {
  min-height: 76px;
  padding: 18px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background: var(--navy);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; color: #87d5df; }
.header-note { color: #bad0d7; font-size: .9rem; }

main { min-height: calc(100vh - 150px); }
.screen { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.intro-screen { padding: clamp(54px, 9vw, 104px) 0 70px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(42px, 7vw, 90px); align-items: center; }
.eyebrow, .mini-label, .question-dimension { color: var(--teal-dark); font-size: .76rem; font-weight: 700; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 22px; font-size: clamp(2.35rem, 5vw, 4.65rem); line-height: 1.01; letter-spacing: -.052em; }
.lead { max-width: 680px; margin-bottom: 30px; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.3rem); }
.privacy-note { margin: 15px 0 0; color: var(--muted); font-size: .9rem; }

.button { min-height: 48px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid transparent; cursor: pointer; font-weight: 700; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover:not(:disabled) { background: var(--teal-dark); }
.button-secondary { color: var(--navy); background: transparent; border-color: #c9d0cf; }
.text-button { padding: 7px 2px; border: 0; color: var(--teal-dark); background: transparent; cursor: pointer; font-weight: 700; }

.intro-map { padding: 28px; color: #fff; background: var(--navy); border-radius: 16px; box-shadow: var(--shadow); }
.map-step { display: grid; grid-template-columns: 45px 1fr; gap: 13px; align-items: center; }
.map-step > span { color: #77cfda; font-size: .82rem; }
.map-step strong, .map-step small { display: block; }
.map-step small { margin-top: 2px; color: #afc3cb; font-size: .84rem; }
.map-line { width: 1px; height: 30px; margin: 4px 0 4px 22px; background: rgba(119, 207, 218, .35); }
.resume-box { margin-top: 38px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.resume-box strong, .resume-box span { display: block; }
.resume-box span { color: var(--muted); }
.resume-actions { display: flex; align-items: center; gap: 16px; }

.quiz-screen { padding: 28px 0 68px; }
.quiz-topbar { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; margin-bottom: 22px; }
.progress-copy { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; color: var(--muted); font-size: .88rem; }
.progress-copy span:first-child { color: var(--navy); font-weight: 700; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #dce0dc; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: var(--teal); transition: width .35s ease; }

.live-map { margin-bottom: 18px; padding: 22px 24px; border-radius: 14px; color: #fff; background: var(--navy); box-shadow: 0 12px 34px rgba(4, 26, 39, .09); }
.live-map-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.live-map-heading strong { display: block; margin-top: 2px; font-size: 1.15rem; }
.live-map .mini-label { color: #70c8d5; }
.status-pill { flex: 0 0 auto; padding: 5px 10px; border-radius: 99px; color: #c8d9df; background: rgba(255,255,255,.08); font-size: .76rem; }
.readiness-meter { position: relative; display: grid; grid-template-columns: 40fr 25fr 35fr; gap: 4px; height: 12px; margin-top: 24px; }
.zone { display: block; opacity: .95; }
.zone-low { border-radius: 99px 0 0 99px; background: #536571; }
.zone-mid { background: var(--yellow); }
.zone-high { border-radius: 0 99px 99px 0; background: var(--green); }
.readiness-marker { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; border: 4px solid var(--navy); border-radius: 50%; background: #fff; transform: translate(-50%, -50%); transition: left .38s ease; }
.meter-labels { display: grid; grid-template-columns: 40fr 25fr 35fr; margin-top: 8px; color: #afc1c9; font-size: .72rem; }
.meter-labels span:nth-child(2) { text-align: center; }
.meter-labels span:nth-child(3) { text-align: right; }
.live-insight { min-height: 24px; margin: 17px 0 0; color: #d6e1e5; font-size: .9rem; }

.question-card { padding: clamp(24px, 4vw, 46px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.question-card h2 { max-width: 850px; margin: 10px 0 7px; font-size: clamp(1.5rem, 3vw, 2.35rem); line-height: 1.15; letter-spacing: -.028em; }
.question-help { margin-bottom: 25px; color: var(--muted); }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option { position: relative; min-height: 70px; padding: 16px 48px 16px 17px; border: 1px solid #d8ddda; border-radius: 11px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.option:hover { border-color: var(--teal); transform: translateY(-1px); }
.option[aria-checked="true"] { border-color: var(--teal); background: #eff9f8; }
.option[aria-checked="true"]::after { content: "✓"; position: absolute; right: 16px; top: 50%; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: var(--teal); transform: translateY(-50%); font-size: .76rem; }
.question-footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 26px; }

.challenge-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; margin-top: 20px; }
.challenge-item { min-width: 0; }
.challenge-track { height: 54px; display: flex; align-items: end; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.09); }
.challenge-fill { width: 100%; height: 8%; background: #70c8d5; transition: height .38s ease; }
.challenge-name { display: block; margin-top: 6px; overflow: hidden; color: #bdcdd3; font-size: .68rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.transition-screen { max-width: 780px; padding: 90px 0; text-align: center; }
.transition-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%; color: #fff; background: var(--teal); font-size: 1.4rem; }
.transition-screen h1 { margin-inline: auto; font-size: clamp(2rem, 4vw, 3.4rem); }
.transition-screen p { max-width: 650px; margin: 0 auto 28px; color: var(--muted); font-size: 1.08rem; }

.result-screen { padding: 50px 0 78px; }
.result-hero { padding: clamp(28px, 5vw, 58px); border-radius: 18px; color: #fff; background: var(--navy); }
.result-kicker { color: #72cbd6; font-size: .78rem; font-weight: 700; letter-spacing: .13em; }
.result-hero h1 { max-width: 800px; margin: 12px 0 18px; font-size: clamp(2.2rem, 5vw, 4.5rem); }
.result-summary { max-width: 780px; color: #d4e0e4; font-size: 1.1rem; }
.score-line { display: flex; align-items: end; gap: 16px; margin-top: 28px; }
.score-number { font-size: clamp(3rem, 7vw, 5.8rem); font-weight: 700; line-height: .85; letter-spacing: -.06em; }
.score-caption { max-width: 240px; color: #aac0c8; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.result-panel { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.result-panel.wide { grid-column: 1 / -1; }
.result-panel h2 { margin-bottom: 16px; font-size: 1.35rem; }
.result-panel p { color: var(--muted); }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid #eceee9; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.result-bar-row { display: grid; grid-template-columns: 140px 1fr 82px; gap: 14px; align-items: center; margin: 13px 0; }
.result-bar-track { height: 9px; border-radius: 99px; overflow: hidden; background: #e2e5df; }
.result-bar-fill { height: 100%; border-radius: inherit; background: var(--orange); }
.result-bar-level { color: var(--muted); font-size: .84rem; text-align: right; }
.plan-rhythm { display: inline-flex; align-items: baseline; gap: 9px; margin: 5px 0 13px; }
.plan-rhythm strong { color: var(--teal-dark); font-size: 2.5rem; line-height: 1; }
.honesty-note { padding: 20px; border-left: 4px solid var(--orange); background: #faf6ee; }
.cta-panel { color: #fff; background: var(--navy-soft); }
.cta-panel p { color: #cbd9de; }
.cta-panel .button { margin-top: 5px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 22px; }

footer { padding: 25px clamp(20px, 5vw, 72px); display: flex; justify-content: space-between; gap: 30px; color: #aec1c9; background: var(--navy); font-size: .78rem; }
footer span:last-child { max-width: 720px; text-align: right; }

@media (max-width: 760px) {
  .site-header { min-height: 64px; padding: 14px 18px; }
  .header-note { display: none; }
  .screen { width: min(100% - 28px, 680px); }
  .intro-screen { padding-top: 45px; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-map { order: -1; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.55rem); }
  .resume-box, .quiz-topbar, footer { align-items: stretch; flex-direction: column; }
  .quiz-topbar { display: flex; }
  .quiz-topbar .text-button { align-self: flex-start; }
  .options, .result-grid { grid-template-columns: 1fr; }
  .result-panel.wide { grid-column: auto; }
  .challenge-bars { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .challenge-track { height: 42px; }
  .result-bar-row { grid-template-columns: 102px 1fr; gap: 9px; }
  .result-bar-level { grid-column: 2; text-align: left; }
  footer span:last-child { text-align: left; }
}

@media (max-width: 430px) {
  .live-map, .question-card, .result-panel { padding: 20px; }
  .live-map-heading { display: block; }
  .status-pill { display: inline-block; margin-top: 8px; }
  .meter-labels { font-size: .62rem; }
  .question-footer { flex-direction: column-reverse; }
  .question-footer .button { width: 100%; }
  .score-line { align-items: flex-start; flex-direction: column; }
  .resume-actions { align-items: stretch; flex-direction: column; }
}

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