:root {
  --purple-950: #160926;
  --purple-900: #25103e;
  --purple-800: #341959;
  --purple-700: #4a2475;
  --purple-100: #eee8f5;
  --gold: #f3a51f;
  --gold-light: #fff1cc;
  --ink: #18141d;
  --muted: #665e6d;
  --line: #ddd5e4;
  --paper: #ffffff;
  --soft: #f7f4fa;
  --success: #1e7a51;
  --shadow: 0 22px 60px rgba(30, 12, 50, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 10%, rgba(243,165,31,.16), transparent 24rem),
    linear-gradient(180deg, #fbf9fd 0%, #fff 64%);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.submission-frame { position: absolute; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(52,25,89,.12);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--purple-900); text-decoration: none; font-weight: 800; letter-spacing: .05em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--purple-800); color: white; font-size: 1.15rem; }
.top-label { color: var(--muted); font-size: .9rem; }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.screen { display: none; min-height: calc(100vh - 170px); padding: 70px 0; }
.screen.active { display: block; animation: rise .45s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.intro-screen.active { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--purple-700); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; color: var(--purple-950); font-size: clamp(3rem, 7vw, 5.8rem); letter-spacing: -.055em; line-height: .96; }
.lead { max-width: 690px; margin: 28px 0 32px; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; }
.benefit-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.benefit-row div { min-width: 140px; padding: 14px 18px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.benefit-row strong, .benefit-row span { display: block; }
.benefit-row strong { color: var(--purple-900); }
.benefit-row span { margin-top: 4px; color: var(--muted); font-size: .82rem; }
.privacy-note { color: var(--muted); font-size: .78rem; margin-top: 16px; }

.intro-card { position: relative; overflow: hidden; padding: 34px; border-radius: 24px; background: var(--purple-900); color: white; box-shadow: var(--shadow); }
.intro-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--gold); opacity: .16; right: -70px; top: -70px; }
.card-kicker { margin: 0 0 14px; color: var(--purple-700); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.intro-card .card-kicker { color: #e9d8ff; }
.intro-card ol { list-style: none; padding: 0; margin: 20px 0 0; }
.intro-card li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.16); line-height: 1.4; }
.intro-card li span { color: var(--gold); font-size: .75rem; font-weight: 800; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 22px; border: 0; border-radius: 10px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, .option:focus-visible, summary:focus-visible { outline: 3px solid rgba(243,165,31,.55); outline-offset: 3px; }
.primary { background: var(--purple-800); color: white; box-shadow: 0 8px 22px rgba(52,25,89,.2); }
.primary:hover { background: var(--purple-700); }
.secondary { background: white; color: var(--purple-800); border: 1px solid var(--line); box-shadow: none; }
.full { width: 100%; }

.assessment-screen { max-width: 900px; margin: 0 auto; }
.assessment-header { display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: end; margin-bottom: 42px; }
h2 { margin: 0; color: var(--purple-950); font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.035em; line-height: 1.05; }
.progress-wrap { color: var(--muted); font-size: .82rem; font-weight: 700; }
.progress-track { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: var(--purple-100); }
.progress-bar { height: 100%; width: 10%; border-radius: inherit; background: var(--gold); transition: width .3s ease; }
.question-card { padding: 36px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 14px 45px rgba(30,12,50,.08); }
.question-number { display: block; margin-bottom: 12px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.question-card h3 { margin: 0 0 8px; color: var(--purple-950); font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.25; }
.question-help { margin: 0 0 26px; color: var(--muted); line-height: 1.5; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option { position: relative; display: flex; gap: 14px; align-items: flex-start; min-height: 74px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.option:hover { border-color: var(--purple-700); background: var(--soft); }
.option.selected { border: 2px solid var(--purple-700); padding: 16px; background: var(--purple-100); }
.option-dot { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; border: 2px solid #aaa0b2; border-radius: 50%; }
.option.selected .option-dot { border: 6px solid var(--purple-700); background: white; }
.option strong { display: block; margin-bottom: 4px; color: var(--purple-950); }
.option small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.nav-row { display: flex; justify-content: space-between; margin-top: 22px; }
.error { min-height: 20px; color: #a12d2d; font-size: .88rem; font-weight: 700; }

.capture-screen.active { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.capture-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.mini-result { margin-top: 30px; padding: 20px; border-left: 5px solid var(--gold); background: var(--gold-light); }
.mini-result span, .mini-result strong { display: block; }
.mini-result span { margin-bottom: 7px; color: #76500d; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.lead-form { padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.lead-form label:not(.consent) { display: block; margin-bottom: 18px; color: var(--purple-950); font-size: .9rem; font-weight: 800; }
.lead-form label span { color: var(--muted); font-weight: 400; }
.lead-form input[type="text"], .lead-form input[type="email"], .lead-form input[type="url"] { width: 100%; min-height: 50px; margin-top: 7px; padding: 12px 14px; border: 1px solid #cfc5d6; border-radius: 9px; background: white; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 7px 0 20px; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--purple-700); }

.result-screen { max-width: 1000px; margin: 0 auto; }
.result-hero { position: relative; padding: 48px; overflow: hidden; border-radius: 26px; background: var(--purple-900); color: white; box-shadow: var(--shadow); }
.result-hero::after { content: ""; position: absolute; inset: auto -50px -90px auto; width: 240px; height: 240px; border: 38px solid rgba(243,165,31,.16); border-radius: 50%; }
.result-hero .eyebrow { color: #ebdcff; }
.result-hero h2 { max-width: 760px; color: white; }
.result-badge { display: inline-block; margin: 0 0 16px; padding: 7px 12px; border-radius: 999px; background: var(--gold); color: var(--purple-950); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.result-summary { position: relative; z-index: 1; max-width: 760px; margin: 20px 0 0; color: #e7ddee; font-size: 1.12rem; line-height: 1.55; }
.result-grid { display: grid; grid-template-columns: 1.05fr 1fr .8fr; gap: 16px; margin: 18px 0; }
.result-card { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.result-card p:not(.card-kicker) { margin: 0; color: var(--muted); line-height: 1.55; }
.result-card h3 { margin: 0 0 10px; color: var(--purple-950); font-size: 1.25rem; }
.accent-card { border-top: 5px solid var(--gold); }
.score-line { display: flex; align-items: baseline; gap: 4px; margin-bottom: 10px; }
.score-line strong { color: var(--purple-800); font-size: 2.4rem; line-height: 1; }
.score-line span { color: var(--muted); }
.next-step-panel { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 32px; border-radius: 18px; background: var(--gold-light); border: 1px solid #f0d48e; }
.next-step-panel h3 { margin: 0 0 8px; color: var(--purple-950); font-size: 1.5rem; }
.next-step-panel p:not(.eyebrow) { margin: 0; color: #66532d; line-height: 1.5; }
.secondary-match { margin: 22px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.secondary-match summary { color: var(--purple-800); font-weight: 800; cursor: pointer; }
.secondary-match p { color: var(--muted); line-height: 1.5; }
.text-button { border: 0; padding: 5px 0; background: transparent; color: var(--purple-700); font-weight: 800; text-decoration: underline; cursor: pointer; }
.disclaimer { margin-top: 28px; color: var(--muted); font-size: .76rem; line-height: 1.4; }

footer { max-width: 1180px; margin: 0 auto; padding: 25px 28px 35px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(52,25,89,.12); color: var(--muted); font-size: .78rem; }

@media (max-width: 800px) {
  .top-label { display: none; }
  .screen { padding: 45px 0; }
  .intro-screen.active, .capture-screen.active { grid-template-columns: 1fr; gap: 34px; }
  .assessment-header { grid-template-columns: 1fr; gap: 22px; }
  .options, .result-grid { grid-template-columns: 1fr; }
  .next-step-panel { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .question-card, .result-hero { padding: 26px; }
}

@media (max-width: 480px) {
  main { width: min(100% - 26px, 1120px); }
  .topbar { padding: 16px 14px; }
  .benefit-row { display: grid; grid-template-columns: 1fr 1fr; }
  .benefit-row div:last-child { grid-column: 1 / -1; }
  .button { width: 100%; }
  .nav-row { gap: 10px; }
  .nav-row .button { width: auto; flex: 1; }
  footer { flex-direction: column; padding: 22px 14px; }
}

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