:root {
  color-scheme: light;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --navy: #101a30;
  --paper: #fff;
  --ink: #172237;
  --body: #42516b;
  --muted: #56657c;
  --line: #d4dbea;
  --purple: #4f46e5;
  --purple-deep: #4038bd;
  --lilac: #bdc4ff;
  --max-width: 1176px;
  --gutter: clamp(16px, 4vw, 52px);
  color: var(--ink);
  background: var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 90px; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 4% 0, #202b49, transparent 50rem), var(--navy);
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--purple-deep); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #5962f0; outline-offset: 3px; }
h1, h2, h3, p, li, label, button { overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }
h1:focus:not(:focus-visible), h2:focus:not(:focus-visible), #screen:focus:not(:focus-visible) { outline: 0; }
.wrap { width: min(var(--max-width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #edf0ff;
  border-bottom: 1px solid #38445d;
  background: rgb(15 24 45 / .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-head > .wrap, .site-head.wrap, .site-foot > .wrap, .site-foot.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.site-head > .wrap, .site-head.wrap { min-height: 70px; padding-block: 13px; }
.wordmark { display: inline-flex; flex: 0 0 auto; align-items: center; }
.wordmark img, img.wordmark { display: block; width: 143px; max-width: 34vw; height: auto; }
.head-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px 22px; }
.site-head a, .site-foot a, .intro-panel a { color: #e2e7ff; }
.head-links a { padding: 6px 0; font-size: .89rem; font-weight: 650; text-decoration: none; }
.head-links a:hover { text-decoration: underline; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  gap: clamp(32px, 5.5vw, 84px);
  align-items: start;
  padding-block: clamp(30px, 5vw, 72px) clamp(48px, 7vw, 96px);
}
.intro-panel { min-width: 0; color: #f8faff; }
.intro-photo {
  overflow: hidden;
  margin: 0 0 clamp(21px, 3vw, 32px);
  border: 1px solid #41506b;
  border-radius: 15px;
  background: #23324a;
}
.intro-photo img { width: 100%; height: auto; aspect-ratio: 1.7; display: block; object-fit: cover; object-position: center 53%; }
.intro-copy h2, .intro-copy h1 {
  margin: 0;
  max-width: 18em;
  color: white;
  font-size: clamp(1.75rem, 2.8vw, 2.65rem);
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: -.048em;
}
.intro-copy p {
  max-width: 46ch;
  margin: 15px 0 0;
  color: #c2cce0;
  line-height: 1.65;
}
.intro-copy .eyebrow, .eyebrow, .kicker {
  margin: 0 0 12px;
  color: var(--purple-deep);
  font-size: .81rem;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: .04em;
}
.intro-panel .eyebrow { color: var(--lilac); }
.aside-link { display: inline-block; margin-top: 16px; line-height: 1.5; font-size: .91rem; }
.card {
  min-width: 0;
  padding: clamp(24px, 3.8vw, 48px);
  border: 1px solid #e4e8f1;
  border-radius: 19px;
  background: var(--paper);
  box-shadow: 0 16px 48px rgb(0 0 0 / .15);
}
.card h1, .question, .result h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.72rem, 2.85vw, 2.6rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.047em;
}
.card p { line-height: 1.62; }
.hint { margin: 12px 0 20px; color: var(--body); }
.stage-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 0;
  margin: 0 0 24px;
  color: var(--muted);
  list-style: none;
  font-size: .87rem;
  font-weight: 650;
}
.intro-panel .stage-nav { color: #d3d9e9; margin-top: 24px; }
.stage-nav [aria-current="step"] { color: var(--purple-deep); font-weight: 800; }
.intro-panel .stage-nav [aria-current="step"] { color: white; }
progress {
  width: 100%;
  height: 5px;
  display: block;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #d8def0;
  color: var(--purple);
  appearance: none;
}
progress::-webkit-progress-bar { background: #d8def0; }
progress::-webkit-progress-value { background: var(--purple); }
progress::-moz-progress-bar { background: var(--purple); }

fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
legend { padding: 0; max-width: 100%; }
.choices, .menu-list { display: grid; gap: 9px; margin: 23px 0 0; padding: 0; list-style: none; }
.choice, .menu-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 49px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  text-align: left;
  font-size: 1rem;
  line-height: 1.48;
  cursor: pointer;
}
.choice span { min-width: 0; }
.choice input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: .18em 0 0;
  accent-color: var(--purple);
}
.choice:hover, .menu-btn:hover { border-color: #8d91c1; background: #f8f9ff; }
.choice:has(input:checked), .menu-btn[aria-pressed="true"] {
  border-color: var(--purple);
  background: #eff0ff;
  color: #26215b;
  box-shadow: inset 0 0 0 1px var(--purple);
}
.choice:has(input:focus-visible) { outline: 3px solid #5962f0; outline-offset: 3px; }
.menu-btn { font-weight: 600; }
.actions, .result-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; margin-top: 25px; }
.primary, .secondary, .text-action, .back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  font-size: .96rem;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.primary { color: white; background: var(--purple); }
.primary:hover { background: var(--purple-deep); }
.secondary { color: #322d83; border-color: #c7cce4; background: white; }
.secondary:hover { background: #eef0fc; }
.text-action, .back-link { min-height: 40px; padding: 6px 0; color: var(--purple-deep); background: transparent; }
.text-action:hover, .back-link:hover { text-decoration: underline; text-underline-offset: .18em; }
.intro-panel .back-link { color: var(--lilac); }
:disabled { cursor: default; opacity: .6; }
.privacy-note, .card small { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.intro-panel .privacy-note { color: #c2cce0; }

.feedback, .result-section, .email-copy { margin-top: 22px; }
.feedback {
  padding: 16px 18px;
  border-left: 3px solid #7776df;
  border-radius: 0 9px 9px 0;
  background: #f1f2ff;
}
.feedback h2, .feedback h3, .result-section h2, .result-section h3, .email-copy h2, .email-copy h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.feedback p, .result-section p { margin: 6px 0; color: var(--body); }
.feedback-list, .result-list { margin: 9px 0 0; padding-left: 1.35em; color: var(--body); line-height: 1.6; }
.feedback-list li + li, .result-list li + li { margin-top: 9px; }
.feedback-list li::marker, .result-list li::marker { color: var(--purple-deep); }
.result-section, .email-copy { padding-top: 19px; border-top: 1px solid var(--line); }
.email-copy { flex-basis: 100%; }
.email-copy input[type="email"], .card input[type="email"] {
  padding: 10px 12px; max-width: 100%; min-height: 44px;
  border: 1px solid #98a4bc; border-radius: 7px; color: var(--ink); background: white;
}
.email-copy label { color: var(--ink); line-height: 1.5; }
.status { color: #244d43; font-size: .94rem; font-weight: 650; }
.error { color: #962c28; font-size: .94rem; font-weight: 650; }
.status:empty, .error:empty { margin: 0; }
.site-foot {
  margin-top: auto;
  border-top: 1px solid #38445d;
  color: #b9c4db;
  font-size: .88rem;
  line-height: 1.5;
}
.site-foot > .wrap, .site-foot.wrap { padding-block: 19px 22px; flex-wrap: wrap; }
.site-foot a { text-decoration: underline; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 8; top: 9px; left: 12px; padding: 10px 14px; background: white; color: var(--ink); }

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; gap: 24px; padding-block: 22px 36px; }
  .layout > .card { grid-row: 1; }
  .intro-photo { margin-bottom: 15px; }
  .intro-photo img { height: 118px; }
  .intro-copy h1, .intro-copy h2 { font-size: 1.5rem; }
  .intro-copy p { max-width: 58ch; margin-top: 9px; }
  body[data-view="question"] .intro-photo, body[data-view="result"] .intro-photo { display: none; }
  .site-head > .wrap, .site-head.wrap { min-height: 59px; padding-block: 9px; }
  .wordmark img, img.wordmark { width: 126px; }
  .head-links { gap: 0 12px; }
  .head-links a { font-size: .83rem; }
  .card { padding: clamp(18px, 5vw, 30px); border-radius: 14px; }
  .stage-nav { margin-bottom: 16px; }
  .choices, .menu-list { margin-top: 16px; }
  .actions, .result-tools { margin-top: 19px; }
}
@media (max-width: 390px) {
  :root { --gutter: 12px; }
  .site-head > .wrap, .site-head.wrap { gap: 8px; }
  .head-links { gap: 0 8px; }
  .choice, .menu-btn { padding-inline: 12px; }
}
@media print {
  :root, body { color-scheme: light; background: white; color: black; }
  body { display: block; min-height: 0; }
  .site-head, .site-foot, .intro-panel, .stage-nav, .skip, .actions, .result-tools, .email-copy,
  .back-link, .text-action, .privacy-note, button, form:not(.result), body:not([data-view="result"]) .layout { display: none !important; }
  .wrap, .layout, .card { display: block; width: 100%; margin: 0; padding: 0; }
  .card, .result-section { box-shadow: none; border: 0; }
  .card h1, .result h2 { font-size: 20pt; line-height: 1.2; }
  .result-section, .result-list li { break-inside: avoid; }
  .result-section { margin-top: 12pt; }
  .result-section h2, .result-section h3 { break-after: avoid; }
  .result-list, .result p, .result-section p, .feedback-list { color: black; }
  a { color: inherit; }
  @page { margin: 1.6cm; }
}

/* The introduction belongs to the opening question. Give answers the full reading column. */
@media screen {
  body:not([data-view="welcome"]) .intro-panel { display: none; }
  body:not([data-view="welcome"]) .layout { display: block; max-width: 850px; }
}
.head-title { color: #d5dcf1; font-size: .88rem; font-weight: 600; text-align: right; }
.card .stage-nav { margin-bottom: 14px; }
.card .back-link { margin: 0 0 12px; }
.assessment-request > label:first-child { display: block; font-weight: 650; margin-bottom: 7px; }
.assessment-request input[type="email"] { width: min(100%, 31rem); }
.notice { display: flex; align-items: baseline; gap: 8px; }
.notice input { accent-color: var(--purple); }
@media (max-width: 760px) { .head-title { max-width: 16ch; } }
.quiz-progress { margin-bottom: 17px; font-size: .86rem; color: var(--muted); }
.quiz-progress > div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.quiz-progress strong { color: var(--purple-deep); }
.quiz-progress progress, .phase-track { margin: 8px 0; }
.phase-track { display: flex; list-style: none; padding: 0; gap: 5px; }
.phase-track li { flex: 1; height: 5px; border-radius: 4px; background: #d8def0; }
.phase-track .done { background: var(--purple-deep); }
.phase-track .current { background: #9288f5; }
.quiz-progress .section-name { margin: 0; font-weight: 650; }
.assessment-request .notice { align-items: flex-start; gap: 11px; margin: 14px 0; }
.notice input { width: 19px; height: 19px; flex: 0 0 19px; margin: 3px 0 0; }
.assessment-request button:disabled { opacity: 1; background: #e2e5ef; color: #536079; border-color: #c4cada; }
.quiz-progress .progress-range { margin: 2px 0 0; font-weight: 400; }
.card .question-context { margin: 0 0 12px; color: var(--body); font-size: 1.05rem; line-height: 1.55; }
.card .selection-hint { margin: 10px 0 0; color: var(--muted); }
.card .welcome-offer { margin: 14px 0 0; font-size: .9rem; }
