:root {
  --navy: #3f4548;
  --navy-soft: #505b60;
  --teal: #00a0ac;
  --teal-pale: #e5f7f8;
  --gold: #ffa726;
  --gold-dark: #ef8f00;
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #343a3d;
  --muted: #667277;
  --line: #d9e8ea;
  --shadow: 0 24px 70px rgba(0, 103, 111, .13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

button { font: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible + label {
  outline: 3px solid rgba(8, 126, 139, .34);
  outline-offset: 3px;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 104px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(210px, 25vw, 300px);
  height: auto;
}

.header-note { color: var(--muted); font-size: .9rem; }

main {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 150px);
  margin: 0 auto;
}

.intro-shell {
  min-height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: clamp(44px, 7vw, 92px);
  row-gap: 18px;
  padding: 18px 0 28px;
}

.intro-title { grid-column: 1 / -1; align-self: end; }
.intro-title h1 {
  max-width: 940px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.85rem);
}
.intro-copy { max-width: 580px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: .81rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2 { margin-top: 0; color: var(--navy); line-height: 1.08; letter-spacing: -.04em; }
h1 { margin-bottom: 24px; font-size: clamp(2.65rem, 5.3vw, 5.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.lead { margin: 0 0 18px; color: var(--navy-soft); font-size: clamp(1.02rem, 1.45vw, 1.22rem); line-height: 1.5; }

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .94rem;
}

.quick-facts span { display: flex; align-items: baseline; gap: 5px; }
.quick-facts strong { color: var(--navy); font-size: 1.12rem; }

.primary-button,
.secondary-button {
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 13px 24px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.primary-button { color: #282828; background: var(--gold); box-shadow: 0 10px 26px rgba(255, 167, 38, .32); }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); background: var(--gold-dark); box-shadow: 0 14px 32px rgba(255, 167, 38, .4); }
.primary-button:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }
.secondary-button { color: var(--navy); border-color: var(--line); background: var(--white); }
.secondary-button:hover { background: #edf3f6; }

.fine-print { max-width: 500px; margin: 14px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }

.intro-visual { position: relative; margin: 0; }
.intro-visual::before {
  content: "";
  position: absolute;
  inset: -18px 34% 18% -18px;
  z-index: -1;
  border-radius: 34px;
  background: var(--gold);
}
.intro-visual img {
  display: block;
  width: 100%;
  max-height: 340px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--white);
  border-radius: 34px 34px 110px 34px;
  box-shadow: var(--shadow);
}
.intro-visual figcaption {
  position: absolute;
  left: -34px;
  bottom: 28px;
  max-width: 310px;
  padding: 16px 20px;
  border-left: 5px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(255,255,255,.95);
  color: var(--navy);
  font-size: .92rem;
  font-weight: 700;
  box-shadow: 0 10px 32px rgba(16,42,67,.18);
}

.quiz-shell, .result-shell { max-width: 900px; margin: 0 auto; padding: 48px 0 82px; }
.quiz-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: .9rem; }
.text-button { padding: 8px 0; border: 0; color: var(--navy); background: none; cursor: pointer; font-weight: 750; }
.progress-track { height: 7px; margin: 14px 0 34px; overflow: hidden; border-radius: 999px; background: #dfe7ec; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width .28s ease; }

.question-card { padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.question-card h2 { max-width: 760px; margin-bottom: 15px; }
.question-hint { margin: 0 0 28px; color: var(--muted); }
.answer-options { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.answer-option label {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fbfdfe;
  cursor: pointer;
  font-weight: 680;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.answer-option label::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid #9fb0bd;
  border-radius: 50%;
}
.answer-option label:hover { transform: translateX(3px); border-color: #76aab1; }
.answer-option input:checked + label { color: var(--navy); border-color: var(--teal); background: var(--teal-pale); }
.answer-option input:checked + label::before { border: 6px solid var(--teal); background: white; }

.quiz-controls { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; }

.result-shell { max-width: 1040px; }
.result-hero { display: flex; justify-content: space-between; align-items: center; gap: 50px; margin-bottom: 34px; }
.result-hero > div:first-child { max-width: 710px; }
.result-hero h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.score-ring {
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  width: 160px;
  aspect-ratio: 1;
  border: 12px solid var(--teal-pale);
  border-top-color: var(--teal);
  border-radius: 50%;
  text-align: center;
  transform: rotate(12deg);
}
.score-ring > * { transform: rotate(-12deg); }
.score-ring strong { color: var(--navy); font-size: 2.35rem; line-height: 1; }
.score-ring span { margin-top: 6px; color: var(--muted); font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }

.result-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; }
.panel { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 24px; background: white; }
.panel h2 { margin-bottom: 24px; font-size: 1.6rem; }
.accent-panel { border: 0; color: white; background: var(--teal); }
.accent-panel h2 { color: white; }
.accent-panel .eyebrow { color: white; }
.accent-panel #nextStepText { color: #effcfd; }
.accent-panel .offer-text { margin: 24px 0 0; color: white; font-weight: 700; }
.info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  text-decoration: none;
}
.category-results { display: grid; gap: 30px; }
.category-row header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; font-weight: 800; }
.category-row header span:last-child { color: var(--teal); }
.category-bar { height: 9px; overflow: hidden; border-radius: 999px; background: #e5edf1; }
.category-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.category-description { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.category-feedback { display: grid; gap: 8px; margin-top: 14px; }
.feedback-item {
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: #f0fafb;
  color: var(--navy-soft);
  font-size: .86rem;
  line-height: 1.5;
}
.feedback-item strong { color: var(--navy); }
.feedback-development { border-left-color: var(--gold); background: #fff8ed; }
.reflection { margin-top: 22px; }
.reflection h2 { margin-bottom: 10px; }
.reflection p { margin: 0; color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.disclaimer { color: var(--muted); font-size: .83rem; }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
footer p { margin: 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; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .intro-shell { grid-template-columns: 1fr; grid-template-rows: auto; gap: 32px; padding-top: 26px; }
  .intro-title { grid-column: auto; }
  .intro-copy { max-width: none; }
  .intro-title h1 { font-size: clamp(2rem, 7vw, 2.75rem); }
  .intro-visual img { aspect-ratio: 16 / 9; border-radius: 24px 24px 70px 24px; }
  .intro-visual figcaption { left: 18px; right: 18px; bottom: -20px; max-width: none; }
  .result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .header-note { display: none; }
  h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
  .intro-title h1 { font-size: clamp(1.95rem, 9vw, 2.5rem); }
  .intro-shell { gap: 48px; padding-bottom: 54px; }
  .quick-facts { gap: 8px 18px; }
  .question-card { border-radius: 20px; }
  .quiz-controls { position: sticky; bottom: 10px; padding: 8px; border-radius: 999px; background: rgba(246,249,251,.92); backdrop-filter: blur(10px); }
  .quiz-controls button { flex: 1; padding-inline: 16px; }
  .result-hero { align-items: flex-start; gap: 20px; }
  .score-ring { width: 108px; border-width: 8px; }
  .score-ring strong { font-size: 1.65rem; }
  .score-ring span { font-size: .65rem; }
}

@media print {
  .site-header, footer, .result-actions, .reflection { display: none; }
  body { background: white; }
  main { width: 100%; }
  .result-shell { padding: 0; }
  .panel { break-inside: avoid; box-shadow: none; }
}

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