:root {
  --navy: #071a33;
  --navy-2: #0b2f5b;
  --blue: #0b62b4;
  --gold: #d7b86a;
  --gold-light: #f0dfad;
  --paper: #f7f5ef;
  --white: #ffffff;
  --ink: #15243a;
  --muted: #647287;
  --line: #dfe4ea;
  --success: #178060;
  --warning: #c9842f;
  --danger: #c45656;
  --shadow: 0 20px 50px rgba(7, 26, 51, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 100% 0%, rgba(215,184,106,.11), transparent 32rem), var(--paper); }
button, textarea { font: inherit; }
button { cursor: pointer; }

.brandbar { background: linear-gradient(118deg, #051629 0%, #09294f 55%, #0b5ba7 100%); color: white; position: relative; overflow: hidden; }
.brandbar::after { content: ""; position: absolute; width: 35rem; height: 15rem; border-radius: 50%; right: -8rem; bottom: -13rem; background: rgba(255,255,255,.09); transform: rotate(-8deg); }
.brandbar__inner { width: min(1180px, calc(100% - 32px)); min-height: 86px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; z-index: 1; }
.brand { color: white; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 13px; object-fit: contain; }
.brand span { display: grid; gap: 3px; }
.brand strong { letter-spacing: .15em; font-size: .98rem; }
.brand small { color: #d7e2f2; font-size: .78rem; }
.privacy-pill { font-size: .85rem; color: #e5edf7; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 9px 13px; background: rgba(255,255,255,.07); white-space: nowrap; }
.privacy-pill span { color: #72d2ab; margin-right: 5px; }

.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 64px; }
.intro-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: end; margin-bottom: 28px; }
.eyebrow, .micro-label { margin: 0 0 8px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { overflow-wrap: break-word; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 5vw, 4rem); line-height: .98; letter-spacing: -.035em; margin: 0 0 16px; color: var(--navy); }
.lede { max-width: 720px; font-size: 1.08rem; line-height: 1.65; color: var(--muted); margin: 0; }
.intro-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.intro-meta span { padding: 9px 12px; border: 1px solid #e1d7bc; background: #fffaf0; border-radius: 999px; color: #68582e; font-size: .83rem; font-weight: 700; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .8fr); gap: 24px; align-items: start; }
.question-card, .progress-card, .insight-card, .panel { background: var(--white); border: 1px solid rgba(7,26,51,.09); border-radius: 22px; box-shadow: var(--shadow); }
.question-card { padding: clamp(24px, 4vw, 44px); min-height: 560px; display: flex; flex-direction: column; }
.question-card__top { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.question-number { color: var(--blue); font-size: .86rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.text-button { border: 0; background: transparent; color: var(--muted); padding: 8px; text-decoration: underline; text-underline-offset: 3px; }
.question-card h2 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.22; margin: 26px 0 8px; }
.question-help { color: var(--muted); line-height: 1.55; margin: 0 0 22px; }
.options { display: grid; gap: 12px; }
.option { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 13px; align-items: start; padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: .16s ease; cursor: pointer; line-height: 1.48; }
.option:hover { border-color: #9ebada; transform: translateY(-1px); }
.option:has(input:focus-visible) { outline: 3px solid rgba(11,98,180,.22); outline-offset: 2px; }
.option.is-selected { border-color: var(--blue); background: #f2f7fc; box-shadow: inset 4px 0 0 var(--blue); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-marker { width: 25px; height: 25px; border: 2px solid #aeb9c7; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.option.is-selected .option-marker { border-color: var(--blue); }
.option.is-selected .option-marker::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); }
.option-copy { color: #34445a; }
.validation { min-height: 22px; margin: 12px 0 0; color: var(--danger); font-weight: 700; font-size: .9rem; }
.nav-row { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; }
.button { min-height: 48px; border: 1px solid transparent; border-radius: 13px; padding: 12px 18px; font-weight: 800; transition: .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, textarea:focus-visible { outline: 3px solid rgba(11,98,180,.25); outline-offset: 2px; }
.button--primary { color: white; background: linear-gradient(135deg, var(--navy-2), var(--blue)); box-shadow: 0 10px 24px rgba(11,98,180,.2); }
.button--secondary { color: var(--navy-2); background: white; border-color: #ccd6e2; }
.button--gold { color: #132239; background: linear-gradient(135deg, #f0dfad, var(--gold)); box-shadow: 0 10px 24px rgba(215,184,106,.23); }
.button.light { background: rgba(255,255,255,.08); color: white; border-color: rgba(255,255,255,.32); }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; }

.side-stack { display: grid; gap: 18px; }
.progress-card { padding: 24px; }
.progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.progress-heading strong { color: var(--navy); }
.progress-heading > span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--navy); font-weight: 850; }
.progress-track { height: 8px; margin: 20px 0; border-radius: 99px; background: #e7edf3; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gold), var(--blue)); transition: width .24s ease; }
.live-score { display: flex; align-items: end; justify-content: space-between; padding: 15px 0; border-top: 1px solid #e8ebef; border-bottom: 1px solid #e8ebef; color: var(--muted); }
.live-score strong { color: var(--navy); font-size: 2rem; line-height: 1; }
.live-score small { font-size: .8rem; color: var(--muted); margin-left: 2px; }
.privacy-note { color: var(--muted); font-size: .84rem; line-height: 1.52; margin: 16px 0 0; }
.insight-card { margin: 0; overflow: hidden; background: var(--navy); color: white; }
.insight-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.insight-card figcaption { padding: 18px 20px 21px; color: #d9e4f2; line-height: 1.52; font-size: .9rem; }
.insight-card figcaption strong { color: var(--gold-light); display: block; margin-bottom: 4px; font-size: 1rem; }

.result-view { display: grid; gap: 24px; }
.result-hero { position: relative; overflow: hidden; border-radius: 26px; background: linear-gradient(125deg, #051629 0%, #0a2d57 58%, #0b62b4 100%); color: white; padding: clamp(28px, 6vw, 60px); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(26px, 5vw, 58px); box-shadow: 0 26px 60px rgba(7,26,51,.2); }
.result-hero::after { content: ""; position: absolute; width: 32rem; height: 18rem; background: rgba(255,255,255,.07); border-radius: 50%; right: -9rem; bottom: -15rem; }
.score-ring { --score: 0; width: clamp(165px, 22vw, 230px); aspect-ratio: 1; border-radius: 50%; padding: 13px; background: conic-gradient(var(--gold) calc(var(--score) * 1%), rgba(255,255,255,.15) 0); display: grid; place-items: center; position: relative; z-index: 1; }
.score-ring > div { width: 100%; height: 100%; border-radius: 50%; background: #081c37; display: grid; place-content: center; text-align: center; border: 1px solid rgba(255,255,255,.14); }
.score-ring strong { color: white; font-size: clamp(3.3rem, 8vw, 5.2rem); line-height: .9; }
.score-ring span { color: #bdcbdd; margin-top: 8px; }
.result-copy { position: relative; z-index: 1; }
.result-copy .eyebrow { color: var(--gold-light); }
.result-copy h1 { color: white; margin-bottom: 14px; }
.result-copy > p:not(.eyebrow) { color: #d7e2f1; font-size: 1.05rem; line-height: 1.65; max-width: 720px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { padding: clamp(24px, 4vw, 36px); box-shadow: 0 14px 36px rgba(7,26,51,.07); }
.panel h2, .closing-card h2 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.22; margin: 0 0 18px; }
.panel--priority { background: linear-gradient(160deg, #fff 0%, #fffaf0 100%); }
.priority-list { display: grid; gap: 12px; }
.priority-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid #e8e1cf; }
.priority-item:first-child { border-top: 0; }
.priority-index { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-weight: 900; }
.priority-item strong { display: block; color: var(--navy); margin-bottom: 4px; }
.priority-item p { color: var(--muted); margin: 0; line-height: 1.5; }
.action-panel textarea { width: 100%; resize: vertical; min-height: 132px; padding: 15px; border: 1px solid #cfd7e2; border-radius: 13px; color: var(--ink); background: #fbfcfd; line-height: 1.55; }
.field-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--muted); font-size: .78rem; }
.review-panel { padding-bottom: 26px; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 10px; }
.answer-totals { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 14px; color: var(--muted); font-size: .84rem; }
.answer-totals span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--strong { background: var(--success); }.dot--build { background: var(--warning); }.dot--attention { background: var(--danger); }
.answer-review { display: grid; gap: 0; }
.answer-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 18px 0; border-top: 1px solid #e8ebef; }
.answer-row__number { width: 34px; height: 34px; border-radius: 10px; background: #edf3f9; color: var(--blue); display: grid; place-items: center; font-weight: 900; }
.answer-row strong { color: var(--navy); display: block; margin-bottom: 5px; }
.answer-row p { color: var(--muted); margin: 0; line-height: 1.5; }
.answer-row__status { padding: 6px 9px; border-radius: 999px; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.status--strong { color: #12694f; background: #e4f5ed; }.status--build { color: #8d5815; background: #fff1dc; }.status--attention { color: #9f3c3c; background: #fce8e8; }
.closing-card { background: linear-gradient(120deg, #0a2649, #0b4f91); border-radius: 22px; padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: white; }
.closing-card .micro-label { color: var(--gold-light); }
.closing-card h2 { color: white; margin-bottom: 8px; }
.closing-card p:not(.micro-label) { color: #d7e2f1; margin: 0; line-height: 1.55; }

footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 38px; border-top: 1px solid #dfe3e7; color: #758194; font-size: .78rem; line-height: 1.45; display: flex; justify-content: space-between; gap: 30px; }
footer p { margin: 0; max-width: 540px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 10; background: #081c37; color: white; padding: 12px 16px; border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.22); transition: .2s ease; font-weight: 750; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.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; }

@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 1fr; }
  .question-card { min-height: auto; }
  .result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .brandbar__inner { min-height: 74px; }
  .brand small { display: none; }
  .privacy-pill { font-size: 0; padding: 9px 11px; }
  .privacy-pill span { font-size: .9rem; margin: 0; }
  .page-shell { width: min(100% - 22px, 1180px); padding-top: 28px; }
  .intro-row { grid-template-columns: 1fr; gap: 18px; }
  .intro-meta { justify-content: flex-start; }
  .workspace { gap: 16px; }
  .question-card { padding: 22px 17px; border-radius: 18px; }
  .option { padding: 15px 13px; }
  .nav-row { flex-direction: column-reverse; }
  .button { width: 100%; }
  .side-stack { grid-template-columns: 1fr; }
  .result-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; border-radius: 20px; }
  .result-copy .eyebrow { text-align: center; }
  .result-actions { justify-content: center; width: 100%; }
  .section-heading, .closing-card { flex-direction: column; }
  .answer-totals { justify-content: flex-start; }
  .answer-row { grid-template-columns: 36px 1fr; }
  .answer-row__status { grid-column: 2; justify-self: start; }
  footer { flex-direction: column; gap: 10px; }
}

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