:root {
  color-scheme: light;
  --ink: #191e48;
  --ink-deep: #141838;
  --muted: #515572;
  --indigo: #343c83;
  --lime: #d8ff55;
  --paper: #f7f7fb;
  --line: #dddfea;
  --sans: "DM Sans", sans-serif;
  --display: Manrope, "DM Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--sans); }
button, input { font: inherit; }
a { color: inherit; }
button { color: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
:focus-visible { outline: 3px solid #626bd0; outline-offset: 4px; }
.hero :focus-visible { outline-color: var(--lime); }
.shell { width: min(1180px, calc(100% - 88px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; inset: 10px auto auto 12px; transform: translateY(-200%); padding: 8px 14px; border-radius: 6px; background: white; }
.skip-link:focus { transform: translateY(0); }

.site-header { background: #fff; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-inner { min-height: 75px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.05; }
.wordmark img { display: block; object-fit: contain; }
.wordmark strong { display: block; font: 800 21px/1 var(--display); letter-spacing: -.05em; white-space: nowrap; }
.wordmark small { display: block; margin-top: 4px; font-size: 8px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.header-links { display: flex; align-items: center; gap: 30px; font-weight: 700; font-size: .86rem; }
.header-links a { white-space: nowrap; text-decoration: none; }
.header-links a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-link { border: 1px solid #d8dbea; border-radius: 7px; padding: 9px 13px; }
.site-link span { margin-inline-start: 3px; }
.external-arrow { display: inline-block; text-decoration: none; transform: rotate(-42deg); }

.hero { position: relative; isolation: isolate; overflow: hidden; color: white; background: #191d45; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .95fr); align-items: center; gap: clamp(28px, 6vw, 96px); min-height: 390px; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 44% 115%, #353d85, transparent 68%);
}
.hero-logo {
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 432px);
  min-height: 252px;
  margin-block: 34px;
  padding: 30px;
  border: 1px solid #fff8;
  border-radius: 18px;
  background: #eeeff8;
  box-shadow: 0 14px 36px #0f123545;
}
.hero-logo img { display: block; width: min(100%, 226px); height: auto; }
.hero-copy { position: relative; max-width: 520px; padding-block: 40px 44px; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; color: #eceeff; }
.hero-eyebrow span { display: block; width: 18px; height: 2px; background: var(--lime); }
.hero h1 { margin: 11px 0 14px; font-size: clamp(3.55rem, 5.9vw, 5.4rem); font-weight: 800; line-height: .98; letter-spacing: -.064em; word-spacing: .025em; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-description { max-width: 360px; color: #e4e5f4; font-size: 1rem; line-height: 1.52; }
.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  font-size: .89rem;
  text-decoration: none;
  transition: background-color .18s, border-color .18s;
}
.button span, .aside-link span { font-size: 1.13em; }
.button-lime { margin-top: 23px; background: var(--lime); color: var(--ink-deep); }
.button-lime:hover { background: #edffab; }
.button-primary { color: white; background: var(--indigo); }
.button-primary:hover { background: var(--ink); }
.button-secondary { border-color: #d6d8ea; background: #fff; color: var(--ink); }
.button-secondary:hover { background: #f1f1fb; border-color: #a8acd1; }

.selector-section { padding-block: 39px 57px; scroll-margin-top: 20px; }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(1.75rem, 3.4vw, 2.58rem); font-weight: 800; line-height: 1.15; letter-spacing: -.056em; }
.section-heading p { margin-top: 5px; color: var(--muted); }
.workbench { display: grid; grid-template-columns: minmax(0, 2.19fr) minmax(275px, 1fr); gap: 23px; align-items: start; }
.selector-card { min-width: 0; padding: 24px 27px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 7px 25px #191e4808; }
.progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 17px; list-style: none; margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid #e9e9f2; }
.progress li { display: flex; align-items: center; gap: 7px; color: #626684; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.progress li:not(:last-child)::after { content: ""; width: 22px; height: 1px; margin-left: 10px; background: #dddfea; }
.progress li[aria-current], .progress li.is-complete { color: #282e67; }
.progress-number { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f0f0f7; font-size: .73rem; }
[aria-current] .progress-number { background: var(--indigo); color: #fff; }
.is-complete .progress-number { background: var(--lime); color: var(--ink-deep); }
.question-head { margin-bottom: 16px; }
.question-head h3, .result-head h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); letter-spacing: -.05em; line-height: 1.15; font-weight: 800; }
.question-head p { color: var(--muted); margin-top: 4px; font-size: .89rem; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices.stack { grid-template-columns: 1fr; }
.choice { display: flex; align-items: flex-start; gap: 11px; min-height: 68px; padding: 12px; border: 1px solid #dde0ec; border-radius: 9px; cursor: pointer; background: #fff; transition: border-color .16s, background-color .16s; }
.choice:hover { border-color: #949aca; background: #f8f8fc; }
.choice:has(input:checked) { border-color: #666fba; background: #f0f1ff; }
.choice:has(input:focus-visible) { outline: 3px solid #626bd0; outline-offset: 3px; }
.choice:has(input:disabled) { cursor: default; border-color: #e4e5ef; background: #fafafd; }
.choice input { flex: none; margin: 4px 0 0; width: 16px; height: 16px; accent-color: var(--indigo); cursor: inherit; }
.choice-copy { display: grid; gap: 3px; }
.choice-title { display: block; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.choice-description { display: block; color: var(--muted); font-size: .8rem; line-height: 1.38; }
.choices.stack .choice { min-height: 0; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.form-actions .button-primary { margin-left: auto; }
.quiet-button { min-height: 44px; padding: 6px 8px; border: 0; background: transparent; border-radius: 6px; font-size: .88rem; font-weight: 700; }
.quiet-button:hover { color: #414aa3; text-decoration: underline; text-underline-offset: 4px; }
.selection-count { margin-top: 9px; color: var(--muted); font-size: .82rem; }
.error { margin-top: 10px; color: #9b2143; font-size: .85rem; font-weight: 700; }

.engagement {
  padding: 24px;
  border: 1px solid #dadced;
  border-radius: 14px;
  background: #edeef8;
  scroll-margin-top: 20px;
}
.aside-intro { padding-bottom: 16px; }
.aside-eyebrow { margin-bottom: 7px; color: #4b548e; }
.aside-intro h2 { font-size: clamp(1.4rem, 2.1vw, 1.78rem); font-weight: 800; line-height: 1.16; letter-spacing: -.05em; }
.engagement-choice { display: flex; align-items: flex-start; gap: 12px; padding-block: 13px; border-top: 1px solid #d8daed; }
.mode-icon { flex: none; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 8px; font-size: 1.12rem; font-weight: 700; line-height: 1; }
.mode-loop { background: #dce0f7; color: #343c83; }
.mode-spark { background: #e2f2ad; color: #29331c; }
.engagement-choice h3 { margin-bottom: 3px; font-size: .97rem; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.engagement-choice p { font-size: .84rem; line-height: 1.43; color: var(--muted); }
.aside-link { display: inline-flex; gap: 7px; align-items: center; margin-top: 6px; padding-block: 3px; font-size: .83rem; font-weight: 700; text-decoration: none; }
.aside-link:hover { color: #414aa3; }
.aside-link:hover .external-arrow { translate: 2px -2px; }

.result-head p { margin-top: 5px; color: var(--muted); font-size: .88rem; }
.fit-label { color: #454e92; margin-bottom: 6px; }
.fit-card { margin-top: 17px; padding: 16px 17px; border: 1px solid #dce8a9; border-radius: 9px; background: #f3f8df; }
.fit-card h4 { margin: 0 0 4px; font: 800 1.17rem/1.2 var(--display); letter-spacing: -.03em; }
.fit-card > p:not(.fit-label) { font-size: .88rem; color: #404b34; }
.result-subhead { margin: 20px 0 10px; font: 800 1.02rem var(--display); }
.matches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(225px, 100%), 1fr)); gap: 10px; }
.match { min-width: 0; border: 1px solid #e0e1ee; border-radius: 9px; padding: 12px; background: #f9f9fd; }
.match h5 { margin: 0; font: 800 .92rem/1.3 var(--display); }
.match p { margin-top: 5px; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.match ul { display: grid; gap: 4px; padding-left: 17px; margin: 8px 0 0; font-size: .8rem; }
.match li::marker { color: #535fb5; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.result-tools { display: flex; flex-wrap: wrap; gap: 4px 11px; margin: 7px 0 -7px -8px; }
.copy-status { color: var(--muted); font-size: .84rem; margin-top: 5px; }
.copy-status:empty { display: none; }
.copy-text { display: block; width: 100%; box-sizing: border-box; margin-top: 7px; padding: 8px; border: 1px solid #b1b5d8; border-radius: 6px; color: var(--ink); font: .84rem var(--sans); }

.site-footer { background: #fff; border-top: 1px solid #e3e4ef; color: var(--muted); }
.footer-inner { min-height: 64px; font-size: .83rem; }
.footer-inner a { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.footer-divider { margin-inline: 5px; color: #8b8fae; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 56px); }
  .workbench { gap: 16px; }
  .selector-card, .engagement { padding: 20px; }
  .progress { gap: 6px 11px; }
  .progress li:not(:last-child)::after { width: 12px; margin-left: 5px; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 64px; }
  .header-links { gap: 13px; }

  .hero-inner { display: block; min-height: 0; }
  .hero-logo {
    position: absolute;
    right: 0;
    bottom: 36px;
    width: min(112px, 34%);
    min-height: 0;
    height: 60px;
    margin: 0;
    padding: 8px;
    border-radius: 9px;
  }
  .hero-logo img { width: auto; max-width: 100%; height: 42px; object-fit: contain; }
  .hero-copy { padding-block: 37px 40px; }
  .hero-description { max-width: 320px; }
  .selector-section { padding-block: 31px 37px; }
  .section-heading { margin-bottom: 18px; }
  .workbench { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .shell { width: calc(100% - 32px); }
  .header-links a:first-child { display: none; }
  .wordmark img { width: 34px; height: 28px; }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 3.6rem); }
  .hero-description { max-width: 275px; font-size: .92rem; }
  .selector-card, .engagement { padding: 16px; }
  .progress { margin-bottom: 17px; padding-bottom: 13px; justify-content: space-between; gap: 4px; }
  .progress li { gap: 4px; font-size: .7rem; }
  .progress li:not(:last-child)::after { display: none; }
  .progress-number { width: 20px; height: 20px; font-size: .69rem; }
  .choice { gap: 7px; padding: 9px; }
  .choice input { margin-top: 3px; }
  .choice-title { font-size: .88rem; }
  .choice-description { font-size: .77rem; }
  .footer-inner { align-items: flex-start; padding-block: 14px; }
  .footer-divider { display: none; }
  .footer-inner > span { max-width: 166px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
