@font-face {
  font-family: "League Spartan";
  src: url("./fonts/LeagueSpartan-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --base: #0F172A;
  --surface: #172237;
  --surface-raised: #1D2B43;
  --white: #FFFFFF;
  --muted: #BBC6D8;
  --blue: #0A84FF;
  --yellow: #FFCC00;
  --line: #35445D;
  font-family: "League Spartan", system-ui, sans-serif;
  font-synthesis: none;
  background: var(--base);
  color: var(--white);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 18px; line-height: 1.45; background: radial-gradient(ellipse at 88% 26%, #162944 0, transparent 47%), var(--base); min-height: 100svh; }
[hidden] { display: none !important; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
button:disabled { cursor: not-allowed; }
h1, h2, p { margin: 0; }
button, a, input { outline-offset: 5px; }
:focus-visible { outline: 3px solid var(--yellow); }
h1:focus, .question-title:focus { outline: none; }
.shell { width: min(1184px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; padding: 0; border-radius: 8px; background: var(--yellow); color: var(--base); font-weight: 700; }
.skip-link:focus { clip-path: none; width: auto; height: auto; overflow: visible; padding: 12px 18px; }
.site-header { display: flex; justify-content: center; align-items: center; gap: 20px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; display: inline-flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.brand-logo { width: 144px; height: auto; }
.hero { max-width: 760px; padding-block: 65px 56px; }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; font-weight: 650; letter-spacing: 1.7px; font-size: 12px; color: var(--muted); }
.eyebrow-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--yellow); }
.hero h1 { margin-top: 22px; font-size: clamp(50px, 4.7vw, 68px); letter-spacing: -2.5px; line-height: .99; font-weight: 750; }
.yellow-text { color: var(--yellow); }
.hero-intro { margin-top: 25px; font-size: 21px; color: var(--muted); max-width: 500px; line-height: 1.42; }
.info-box { background: #18283E; display: flex; align-items: flex-start; gap: 13px; border: 1px solid #385274; border-radius: 12px; padding: 18px 19px; margin-top: 27px; }
.info-box p { font-size: 16px; line-height: 1.45; color: #E2E9F3; }
.info-box strong { font-weight: 600; color: var(--white); }
.info-symbol { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border: 1.5px solid #82BEFF; color: #A4D0FF; border-radius: 50%; font-size: 14px; font-weight: 700; margin-top: 1px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 56px; border-radius: 9px; padding: 16px 24px 13px; text-decoration: none; font-size: 20px; line-height: 1.2; font-weight: 700; border: 1px solid transparent; }
.button > span[aria-hidden] { font-size: 25px; line-height: 1; }
.button-primary { background: var(--blue); color: var(--white); box-shadow: 0 4px 20px #0A84FF12; }
.button-primary:hover:not(:disabled) { background: #0572E0; }
.button-primary:active:not(:disabled) { transform: translateY(1px); }
.button-primary:disabled { background: #2A3A51; color: #91A0B5; box-shadow: none; }
.start-link { margin-top: 28px; min-width: 300px; justify-content: space-between; }
.support { font-size: 15px; color: var(--muted); margin-top: 13px; }
.support span { padding-inline: 6px; }
.site-footer { display: flex; justify-content: space-between; gap: 25px; color: var(--muted); font-size: 13px; padding-block: 26px; }
.site-footer > span { white-space: nowrap; }
.tool-shell { width: min(800px, calc(100% - 48px)); margin-inline: auto; padding-block: 42px 24px; min-height: calc(100svh - 220px); }
.progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
#step-label { font-size: 15px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.progress-track { display: flex; gap: 6px; margin: 15px 0 33px; }
.progress-track > span { height: 4px; border-radius: 3px; background: #33435A; flex: 1; }
.progress-track > span.is-filled { background: var(--blue); }
.progress-track > span.is-current { background: var(--yellow); }
.question-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.question-fieldset > legend { padding: 0; width: 100%; }
.question-title { display: block; font-size: 34px; line-height: 1.16; letter-spacing: -.65px; font-weight: 650; }
.question-help { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 19px 0 18px; min-height: 27px; color: var(--muted); font-size: 16px; }
.selection-count { font-variant-numeric: tabular-nums; border: 1px solid #526580; border-radius: 5px; font-size: 14px; padding: 3px 10px 1px; color: white; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.option { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 17px; border: 1px solid #526580; background: var(--surface); border-radius: 10px; cursor: pointer; min-height: 84px; line-height: 1.27; color: #E9EEF6; font-size: 18px; }
.option:hover { border-color: #87A0C2; background: #1C2C45; }
.option.is-selected { background: #123D68; border-color: #369AFF; color: white; box-shadow: inset 0 0 0 1px #369AFF; }
.option:focus-within { outline: 3px solid var(--yellow); outline-offset: 3px; }
.option input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.option-marker { pointer-events: none; flex: 0 0 21px; width: 21px; height: 21px; border: 1.5px solid #8FA0B9; border-radius: 50%; display: grid; place-items: center; background: #0F172A; }
.option-multi .option-marker { border-radius: 5px; }
.is-selected .option-marker { border-color: var(--blue); background: var(--blue); }
.is-selected .option-marker::after { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: white; }
.option-multi.is-selected .option-marker::after { width: 10px; height: 6px; border: solid white; border-width: 0 0 2px 2px; border-radius: 0; background: none; transform: rotate(-45deg) translate(1px,-1px); }
.option-copy { display: block; }
.option-note { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.35; }
.selection-notice { min-height: 24px; color: var(--yellow); font-size: 15px; margin: 11px 0 9px; }
.question-nav { display: flex; justify-content: space-between; gap: 18px; width: min(800px, calc(100% - 48px)); margin: 0 auto 24px; }
.button-back { color: var(--muted); font-size: 18px; font-weight: 500; padding-inline: 5px 16px; background: transparent; gap: 10px; }
.button-back:hover { color: white; }
.button-back[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
#continue-button { min-width: 205px; justify-content: space-between; }
.privacy-note { margin-top: 27px; color: var(--muted); text-align: center; font-size: 14px; line-height: 1.45; }
.privacy-note > span { color: #8AADD4; margin-right: 6px; }
.tool-footer { border-top: 1px solid var(--line); margin-top: 20px; }
.result-title { margin-top: 23px; font-size: 62px; line-height: 1.02; letter-spacing: -2px; font-weight: 700; }
.result-intro { color: var(--muted); font-size: 21px; max-width: 660px; margin-block: 22px 30px; }
.pull-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result-card { background: var(--surface); border: 1px solid #41536C; padding: 25px; border-radius: 12px; margin-bottom: 16px; }
.card-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.card-heading h2 { font-size: 23px; line-height: 1.14; letter-spacing: -.3px; padding-top: 5px; font-weight: 650; }
.card-symbol { color: var(--yellow); font-size: 29px; line-height: 1; }
.result-list { list-style: none; margin: 0; padding: 0; }
.result-list li { padding-left: 16px; position: relative; font-size: 17px; line-height: 1.45; color: #E3EAF4; }
.result-list li + li { margin-top: 13px; }
.result-list li::before { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #91ADD0; top: 10px; left: 0; }
.attention-card { border-color: #C3A634; background: #282B2A; }
.card-kicker { text-transform: uppercase; letter-spacing: 1.4px; font-size: 11px; font-weight: 650; color: var(--yellow); margin-bottom: 12px; }
.attention-card > h2 { font-size: 25px; font-weight: 650; line-height: 1.18; }
.attention-text { margin-top: 16px; font-size: 19px; line-height: 1.43; }
.attention-text p + p { margin-top: 13px; }
.actions-list { list-style: none; counter-reset: action; margin: 0; padding: 0; }
.actions-list li { counter-increment: action; display: flex; gap: 15px; align-items: flex-start; font-size: 18px; line-height: 1.4; }
.actions-list li + li { margin-top: 18px; }
.actions-list li::before { content: "0" counter(action); color: #9BCAFF; font-size: 13px; padding-top: 4px; font-weight: 650; }
.leaning-card { background: #123D68; border-color: #408CCA; }
.leaning-card .card-kicker { color: #C3E0FF; }
.leaning-card h2 { font-size: 28px; line-height: 1.13; letter-spacing: -.4px; font-weight: 650; }
.leaning-card > p:last-child { font-size: 15px; line-height: 1.45; margin-top: 17px; color: #DAE8F7; }
.result-save { text-align: center; padding: 17px 0 3px; }
.result-save .button { min-width: 300px; }
.result-save > p { color: var(--muted); font-size: 15px; margin-top: 12px; }
#export-status { color: var(--yellow); min-height: 20px; }
@media (min-width: 1600px) { .hero { padding-block: 80px; } }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 48px); }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 55px; }
  .hero-intro { font-size: 19px; }
}
@media (max-width: 760px) {
  .site-header { padding-block: 23px; }
  .hero { padding-block: 38px; }
  .hero h1 { font-size: clamp(47px, 9vw, 66px); max-width: 560px; }
  .hero-intro { max-width: 530px; font-size: 20px; }
  .hero-copy .info-box { max-width: 560px; }
  .site-footer { flex-direction: column; gap: 14px; }
  .tool-shell { padding-top: 29px; }
  .options { grid-template-columns: 1fr; }
  .option { min-height: 64px; padding: 16px; }
  .question-title { font-size: 29px; line-height: 1.19; }
  .progress-track { margin-bottom: 26px; }
  .progress-meta .eyebrow { font-size: 10px; letter-spacing: 1.3px; }
  .pull-grid { grid-template-columns: 1fr; gap: 0; }
  .result-title { font-size: 52px; }
}
@media (max-width: 400px) {
  .shell { width: calc(100% - 36px); }
  .hero h1 { font-size: 47px; letter-spacing: -1.8px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 1.1px; gap: 8px; }
  .hero-intro { font-size: 19px; }
  .info-box { padding: 16px 14px; gap: 10px; }
  .start-link { min-width: 0; width: 100%; font-size: 19px; padding-inline: 19px; }
  .support { font-size: 14px; }
  .tool-shell { width: calc(100% - 36px); }
  .question-title { font-size: 27px; }
  .question-help { font-size: 15px; }
  .option { font-size: 17px; padding: 15px 13px; gap: 11px; }
  .question-nav { gap: 9px; }
  #continue-button { min-width: 178px; font-size: 19px; padding-inline: 18px; gap: 16px; }
  .button-back { font-size: 16px; }
  .result-title { font-size: 46px; }
  .result-intro { font-size: 19px; }
  .result-card { padding: 21px; }
  .result-save .button { min-width: 0; width: 100%; font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The intro uses the approved copy and the existing type, colour and button system. */
#intro-screen { padding-top: clamp(24px, 3vw, 40px); }
.intro-title { max-width: 760px; font-size: 58px; line-height: 1.03; letter-spacing: -1.8px; font-weight: 750; }
#intro-screen .info-box { max-width: 620px; }
#start-button { margin-top: 28px; min-width: 300px; justify-content: space-between; }
.export-fallback { margin-top: 12px; color: var(--muted); font-size: 15px; }
.export-fallback summary { cursor: pointer; text-underline-offset: .2em; }
.export-fallback a { display: inline-block; color: white; margin-top: 12px; padding: 10px; }

/* The action row reserves its own viewport space: it never covers the scroll area. */
@media (max-width: 760px) {
  .intro-title { font-size: 46px; }
  body.question-active { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  body.question-active .site-header { grid-row: 1; }
  body.question-active .tool-shell { grid-row: 2; width: 100%; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 24px max(24px, env(safe-area-inset-right)) 24px max(24px, env(safe-area-inset-left)); }
  body.question-active .question-nav {
    grid-row: 3; width: 100%; margin: 0;
    padding: 12px max(24px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    border-top: 1px solid var(--line); background: var(--base);
  }
  body.question-active .tool-footer { display: none; }
}
@media (max-width: 400px) {
  .intro-title { font-size: 44px; }
  #start-button { min-width: 0; width: 100%; font-size: 19px; padding-inline: 19px; }
  body.question-active .tool-shell,
  body.question-active .question-nav {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
}
