:root {
  --ink: #211a2f;
  --muted: #6f687d;
  --purple-950: #2d1856;
  --purple-800: #5930ad;
  --purple-700: #7042d8;
  --purple-500: #9b7bf0;
  --purple-100: #eee8ff;
  --purple-50: #faf8ff;
  --line: #e8e3ef;
  --surface: #ffffff;
  --canvas: #f7f4fc;
  --success: #15735b;
  --success-soft: #e8f7f1;
  --warning: #9b5b08;
  --warning-soft: #fff3dd;
  --shadow: 0 24px 70px rgba(48, 26, 80, 0.12);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { color-scheme: light; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 20%, rgba(155, 123, 240, 0.16), transparent 30rem),
    linear-gradient(135deg, #fdfbff 0%, var(--canvas) 100%);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

button, input, textarea { font: inherit; }

button { cursor: pointer; }

.site-header {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--purple-950);
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px 4px 10px 4px;
  background: var(--purple-700);
  color: white;
  letter-spacing: 0;
}

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

.shell { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 5rem; }

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(560px, 1.2fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
  min-height: calc(100vh - 150px);
}

.context-panel { display: flex; flex-direction: column; justify-content: space-between; min-height: 530px; padding: 1.25rem 0; }

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--purple-700);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: "Manrope", sans-serif; }

.context-panel h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lede { max-width: 38rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.1rem; }

.trust-note { display: flex; align-items: center; gap: 1rem; max-width: 27rem; color: var(--muted); }
.trust-note p { margin: 0; }
.trust-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--purple-950);
  color: white;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.quiz-card {
  min-height: 620px;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.progress-copy { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.progress-copy span:last-child { color: var(--purple-700); }
.progress-track { height: 6px; margin: 0.7rem 0 2.4rem; overflow: hidden; background: var(--purple-100); border-radius: 10px; }
.progress-track span { display: block; width: 20%; height: 100%; background: linear-gradient(90deg, var(--purple-800), var(--purple-500)); border-radius: inherit; transition: width 320ms ease; }

.step-heading { margin: 0 0 1.8rem; font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -0.035em; }
.question-group + .question-group { margin-top: 2rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.question-label { display: block; margin: 0 0 0.75rem; font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.helper { margin: -0.25rem 0 0.9rem; color: var(--muted); font-size: 0.9rem; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.options.single-column { grid-template-columns: 1fr; }
.option { position: relative; }
.option input { position: absolute; inset: 0; opacity: 0; }
.option label {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: #40384d;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.25;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.option label::before { content: ""; width: 17px; height: 17px; flex: 0 0 17px; border: 1.5px solid #aaa2b6; border-radius: 50%; }
.option.checkbox label::before { border-radius: 5px; }
.option input:checked + label { border-color: var(--purple-500); background: var(--purple-50); color: var(--purple-950); }
.option input:checked + label::before { border: 5px solid var(--purple-700); background: white; }
.option.checkbox input:checked + label::before { border: 4px solid var(--purple-700); background: var(--purple-700); box-shadow: inset 0 0 0 2px white; }
.option input:focus-visible + label { outline: 3px solid rgba(91, 43, 191, 0.25); outline-offset: 2px; }
.option.prominent { grid-column: 1 / -1; }
.option.prominent label { min-height: 58px; border-color: var(--purple-500); background: var(--purple-50); font-weight: 700; }

.conditional-field { margin-top: 0.8rem; }
.conditional-field label { display: block; margin-bottom: 0.45rem; font-size: 0.9rem; font-weight: 700; }
.conditional-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cfc8d7;
  border-radius: 11px;
  color: var(--ink);
  background: white;
}
.conditional-field input:focus { outline: 3px solid rgba(91, 43, 191, 0.18); border-color: var(--purple-700); }

.form-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.4rem; }
.button { min-height: 50px; padding: 0.75rem 1.4rem; border-radius: 12px; border: 1px solid transparent; font-weight: 700; }
.button-primary { min-width: 150px; margin-left: auto; color: white; background: var(--purple-700); box-shadow: 0 10px 24px rgba(91, 43, 191, 0.25); }
.button-primary:hover { background: var(--purple-800); }
.button:disabled { cursor: wait; opacity: 0.72; }
.button-secondary { color: var(--purple-800); background: white; border-color: var(--line); }
.button:focus-visible { outline: 3px solid rgba(91, 43, 191, 0.28); outline-offset: 3px; }
.form-error { margin-top: 1rem; padding: 0.7rem 0.85rem; color: #922828; background: #fff0f0; border-radius: 10px; font-size: 0.9rem; }
.privacy-note { margin: 1.5rem 0 0; text-align: center; color: var(--muted); font-size: 0.82rem; }

.result-view { max-width: 1050px; margin: 0 auto; }
.result-hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); color: white; background: linear-gradient(135deg, var(--purple-950), #6730c4); border-radius: 30px; box-shadow: var(--shadow); }
.result-hero .eyebrow { color: #cdb8ff; }
.result-hero h1 { margin: 0; font-size: clamp(3.5rem, 10vw, 6.5rem); letter-spacing: -0.07em; line-height: 0.95; }
.score-total { color: #cfc1e8; font-size: 0.35em; letter-spacing: -0.03em; }
.result-level { margin: 1rem 0 0.35rem; font: 700 clamp(1.2rem, 3vw, 1.7rem)/1.2 "Manrope", sans-serif; }
.result-message { max-width: 43rem; margin: 0; color: #e2d9f3; }
.score-ring { position: relative; display: grid; place-items: center; flex: 0 0 150px; width: 150px; height: 150px; border: 13px solid rgba(255,255,255,0.18); border-top-color: #a881ff; border-radius: 50%; font: 800 2.2rem/1 "Manrope", sans-serif; transform: rotate(18deg); }
.score-ring span { transform: rotate(-18deg); }
.score-ring.is-celebrating { animation: score-glow 2.8s ease-in-out infinite; }
.score-spark { position: absolute; color: #f3bf55; font-style: normal; opacity: 0; transform: rotate(-18deg); }
.score-spark-one { top: -25px; right: 8px; }
.score-spark-two { right: -29px; bottom: 18px; color: #73c7ff; animation-delay: 0.55s !important; }
.score-spark-three { left: -23px; top: 24px; color: #e987c8; animation-delay: 1.1s !important; }
.score-ring.is-celebrating .score-spark { animation: score-sparkle 2.8s ease-in-out infinite; }

@keyframes score-glow {
  0%, 100% { transform: rotate(18deg) scale(1); box-shadow: 0 0 0 0 rgba(203,181,255,0), 0 0 16px rgba(243,191,85,0.08); }
  50% { transform: rotate(18deg) scale(1.055); box-shadow: 0 0 0 18px rgba(203,181,255,0.11), 0 0 34px rgba(243,191,85,0.34); }
}

@keyframes score-sparkle {
  0%, 25%, 100% { opacity: 0; transform: rotate(-18deg) scale(0.35) rotate(-20deg); }
  47% { opacity: 1; transform: rotate(-18deg) scale(1.25) rotate(8deg); }
  68% { opacity: 0; transform: rotate(-18deg) scale(0.75) rotate(26deg); }
}

.lead-gate {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: 1rem;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border: 1px solid #ded2f7;
  border-radius: 24px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow);
}
.lead-gate[hidden], .result-hero[hidden], #phase-one-results[hidden], .personalized-cta[hidden], .next-steps-entry[hidden] { display: none; }
.text-button { margin: 0 0 1.2rem; padding: 0; border: 0; color: var(--purple-700); background: transparent; font-weight: 700; text-decoration: underline; text-underline-offset: 0.22em; }
.text-button:hover { color: var(--purple-950); }
.text-button:focus-visible { outline: 3px solid rgba(91, 43, 191, 0.24); outline-offset: 4px; border-radius: 3px; }
.lead-gate-copy h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.12; letter-spacing: -0.04em; }
.lead-gate-copy > p:not(.eyebrow) { margin: 1rem 0 0; color: var(--muted); }
.outlook-preview { display: grid; gap: 0.25rem; margin-top: 1.25rem; padding: 1rem; border-left: 4px solid var(--purple-700); border-radius: 0 12px 12px 0; background: var(--purple-50); }
.outlook-preview span { color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.outlook-preview strong { color: var(--purple-950); font: 700 1.05rem/1.35 "Manrope", sans-serif; }
.next-page-intro { margin: 1.25rem 0 -0.55rem; color: var(--purple-950); font-weight: 700; }
.unlock-list { margin: 1.25rem 0 0; padding: 0; list-style: none; color: #4f465c; }
.unlock-list li { position: relative; margin-top: 0.65rem; padding-left: 1.65rem; }
.unlock-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.match-disclaimer { margin-top: 1.25rem !important; padding: 0.85rem 1rem; border-radius: 11px; color: #51495d !important; background: #f6f2ff; font-size: 0.86rem; line-height: 1.5; }
.lead-form { padding: 1.4rem; border-radius: 18px; background: var(--purple-50); }
.lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.lead-field { display: grid; gap: 0.4rem; color: #40384d; font-size: 0.9rem; font-weight: 700; }
.lead-field-wide { grid-column: 1 / -1; }
.lead-field small { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.lead-field input, .lead-field select { width: 100%; min-height: 48px; padding: 0.7rem 0.8rem; border: 1px solid #cfc4df; border-radius: 10px; color: var(--ink); background: white; font: inherit; }
.lead-field input:focus, .lead-field select:focus { outline: 3px solid rgba(112, 66, 216, 0.18); border-color: var(--purple-700); }
.business-match-fields { margin: 1.2rem 0 0; padding: 1rem; border: 1px solid #d7c8ee; border-radius: 14px; }
.business-match-fields[hidden] { display: none; }
.business-match-fields legend { padding: 0 0.35rem; color: var(--purple-950); font: 700 1rem/1.3 "Manrope", sans-serif; }
.business-match-fields > p { margin: 0 0 1rem; color: var(--muted); font-size: 0.84rem; }
.lead-check { display: grid; grid-template-columns: 19px 1fr; gap: 0.65rem; align-items: start; margin-top: 1rem; color: #51495d; font-size: 0.84rem; line-height: 1.45; }
.lead-check input { width: 18px; height: 18px; margin: 0.1rem 0 0; accent-color: var(--purple-700); }
.lead-check a { color: var(--purple-800); font-weight: 700; text-underline-offset: 3px; }
.lead-use-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.78rem; }
.terms-dialog { width: min(620px, calc(100% - 2rem)); max-height: min(80vh, 700px); padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: white; box-shadow: 0 28px 80px rgba(39, 20, 76, 0.28); }
.terms-dialog::backdrop { background: rgba(26, 17, 42, 0.62); backdrop-filter: blur(4px); }
.terms-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem 1.5rem 0; }
.terms-dialog-header h2 { margin: 0; font-size: 1.5rem; }
.terms-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; color: #493d59; background: #f3eff9; font: inherit; font-size: 1.5rem; cursor: pointer; }
.terms-dialog-body { max-height: 52vh; overflow-y: auto; padding: 0.5rem 1.5rem; color: #574e64; line-height: 1.6; }
.terms-dialog > .button { display: block; margin: 0.5rem 1.5rem 1.5rem auto; }
.lead-form-status { margin: 1rem 0 0; padding: 0.75rem; border-radius: 9px; color: #8a2222; background: #fff0f0; font-size: 0.88rem; }
.lead-submit { width: 100%; margin: 1rem 0 0; }
.lead-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.result-card { padding: 1.7rem; background: white; border: 1px solid var(--line); border-radius: 20px; }
.result-card h2 { margin: 0; font-size: 1.1rem; letter-spacing: -0.02em; }
.result-card-heading { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; }
.status-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; }
.status-good { color: var(--success); background: var(--success-soft); }
.status-watch { color: var(--warning); background: var(--warning-soft); }
.status-next { color: var(--purple-700); background: var(--purple-100); }
.insight-list, .recommendation-list { margin: 0; padding-left: 1.3rem; color: #51495d; }
.insight-list li, .recommendation-list li { margin: 0.55rem 0; padding-left: 0.2rem; }
.next-card { grid-row: span 2; }
.profile-card { color: white; background: var(--purple-950); border-color: var(--purple-950); }
.profile-card h2 { margin: 0.35rem 0 0.6rem; font-size: 1.55rem; }
.profile-card p { margin-bottom: 0; color: #d8cde8; }
.mini-label { margin: 0; color: #bca6e2 !important; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.detail-chip { display: inline-block; margin-top: 1.2rem; padding: 0.6rem 0.8rem; border-radius: 9px; background: rgba(255,255,255,0.1); color: white; font-size: 0.88rem; }
.funding-options-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 1.3rem; padding: clamp(1.5rem, 4vw, 2.2rem); border: 2px solid #d7c8ff; background: linear-gradient(135deg, #fbf9ff, #f1ebff); }
.funding-options-card[hidden] { display: none; }
.funding-options-card .mini-label { color: var(--purple-700) !important; }
.funding-options-card h2 { margin: 0.45rem 0 0.7rem; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.funding-options-card p { margin: 0; color: #4d435b; font-size: 1rem; line-height: 1.65; }
.credit-repair-direction { align-self: stretch; padding: 1.25rem; border-radius: 15px; color: white; background: var(--purple-800); }
.credit-repair-direction strong { display: block; margin-bottom: 0.5rem; font: 700 1.05rem/1.3 "Manrope", sans-serif; }
.credit-repair-direction p { color: #eee8ff; }
.personalized-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1rem; padding: 1.7rem; border-radius: 20px; color: white; background: linear-gradient(135deg, var(--purple-800), var(--purple-950)); }
.personalized-cta h2 { max-width: 19ch; margin: 0.4rem 0 0.6rem; font-size: clamp(1.7rem, 4vw, 2.35rem); line-height: 1.08; letter-spacing: -0.035em; }
.personalized-cta p { max-width: 700px; margin: 0; color: #e6dcf7; }
.recommendation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 1.15rem; }
.recommendation-actions .button { margin: 0; color: var(--purple-950); background: white; }
.recommendation-actions .button:hover { background: #f4efff; }
.action-link { color: white; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.action-link:hover { color: #efe7ff; }
.personalized-cta .match-count-note { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.18); color: #f4efff; font-size: 0.9rem; }
.saved-badge { flex: 0 0 auto; padding: 0.55rem 0.75rem; border-radius: 999px; color: #e7fff5; background: rgba(45, 196, 142, 0.18); font-size: 0.8rem; font-weight: 700; }
.lender-match-summary { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr); align-items: center; gap: 2rem; margin-top: 1rem; padding: clamp(1.5rem, 4vw, 2rem); border: 2px solid #d7c8ff; border-radius: 20px; background: linear-gradient(135deg, #fbf9ff, #f1ebff); }
.lender-match-summary[hidden] { display: none; }
.lender-match-summary h2 { margin: 0.4rem 0 0.55rem; color: var(--purple-950); font-size: clamp(1.45rem, 3vw, 2rem); }
.lender-match-summary p:not(.mini-label) { max-width: 680px; margin: 0; color: #4d435b; line-height: 1.55; }
.lender-match-summary #lender-match-count { color: var(--purple-800); font-family: "Manrope", sans-serif; }
.lender-match-summary .match-method-note { margin-top: 0.85rem !important; color: var(--muted) !important; font-size: 0.82rem; }
.match-count-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.match-count-grid div { position: relative; min-width: 0; padding: 1rem 0.8rem; border-radius: 14px; text-align: center; background: white; border: 1px solid #ddd2f2; }
.match-count-grid strong, .match-count-grid span { display: block; }
.match-count-grid strong { color: var(--purple-800); font: 800 1.7rem/1 "Manrope", sans-serif; }
.match-count-grid span { margin-top: 0.45rem; color: var(--muted); font-size: 0.8rem; line-height: 1.3; }
.match-count-grid small { display: block; margin-top: 0.6rem; color: #5e5668; font-size: 0.76rem; line-height: 1.4; }
.match-count-grid .match-strong { border-color: #78c9aa; background: linear-gradient(145deg, #f3fff9, #e1f8ee); box-shadow: 0 8px 22px rgba(35, 139, 101, 0.1); }
.match-count-grid .match-strong strong { color: #167655; }
.match-count-grid .match-strong span { color: #165f48; font-weight: 800; }
.match-count-grid .match-possible { border-color: #e5c67d; background: linear-gradient(145deg, #fffdf5, #fff5d9); }
.match-count-grid .match-possible strong { color: #936311; }
.match-count-grid .match-improvement { border-color: #cfc0eb; background: linear-gradient(145deg, #fdfbff, #f1ebfb); }
.match-count-grid .match-strong.has-potential { animation: strongPotentialPulse 3.2s ease-in-out infinite; }
.confetti-burst { position: absolute; inset: 0; pointer-events: none; }
.confetti-burst i { position: absolute; top: 50%; left: 50%; width: 6px; height: 10px; border-radius: 2px; opacity: 0; }
.confetti-one { background: #e6a93a; --confetti-x: -42px; --confetti-y: -34px; --confetti-r: -25deg; }
.confetti-two { background: #36ae82; --confetti-x: 42px; --confetti-y: -30px; --confetti-r: 28deg; }
.confetti-three { background: #8a63d8; --confetti-x: -48px; --confetti-y: 10px; --confetti-r: 52deg; }
.confetti-four { background: #f08080; --confetti-x: 48px; --confetti-y: 12px; --confetti-r: -48deg; }
.confetti-five { background: #24a6a6; --confetti-x: -24px; --confetti-y: 34px; --confetti-r: 35deg; }
.confetti-six { background: #e4b84a; --confetti-x: 25px; --confetti-y: 36px; --confetti-r: -30deg; }
.lender-source-note { grid-column: 1 / -1; padding: 1rem 1.1rem; border-radius: 14px; color: #4c4358; background: rgba(255,255,255,0.78); border: 1px solid #ded4ee; }
.lender-source-note strong { display: block; color: var(--purple-950); font: 750 0.98rem/1.35 "Manrope", sans-serif; }
.lender-source-note p { margin-top: 0.35rem !important; font-size: 0.9rem; }
@keyframes strongPotentialPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(35, 139, 101, 0.1), 0 0 0 0 rgba(54, 174, 130, 0.2); }
  50% { box-shadow: 0 10px 28px rgba(35, 139, 101, 0.2), 0 0 0 7px rgba(54, 174, 130, 0); }
}
@keyframes confettiFloat {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) translate(0, 4px) rotate(0deg); }
  18% { opacity: 0.95; }
  55% { opacity: 0.8; transform: translate(-50%, -50%) translate(var(--confetti-x), var(--confetti-y)) rotate(var(--confetti-r)); }
  82% { opacity: 0.15; }
}
.match-count-grid .match-strong.has-potential .confetti-burst i { animation: confettiFloat 3.2s ease-in-out infinite; }
.match-count-grid .match-strong.has-potential .confetti-two { animation-delay: 0.35s; }
.match-count-grid .match-strong.has-potential .confetti-three { animation-delay: 0.7s; }
.match-count-grid .match-strong.has-potential .confetti-four { animation-delay: 1.05s; }
.match-count-grid .match-strong.has-potential .confetti-five { animation-delay: 1.4s; }
.match-count-grid .match-strong.has-potential .confetti-six { animation-delay: 1.75s; }
.match-count-grid .match-strong.has-potential strong { text-shadow: 0 0 9px rgba(48, 202, 145, 0.3); }
@media (prefers-reduced-motion: reduce) {
  .match-count-grid .match-strong.has-potential .confetti-burst { display: none; }
}
.next-steps-entry { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1rem; padding: clamp(1.5rem, 4vw, 2rem); border: 2px solid #d7c8ff; border-radius: 20px; background: linear-gradient(135deg, #fbf9ff, #f1ebff); }
.next-steps-entry h2 { margin: 0.4rem 0 0.45rem; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.next-steps-entry p:not(.mini-label) { max-width: 680px; margin: 0; color: #4d435b; }
.next-steps-entry .button { flex: 0 0 auto; margin-left: 0; }
.result-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1.5rem; padding: 1rem 0; }
.disclosure { max-width: 760px; margin: 0; color: var(--muted); font-size: 0.78rem; }

@media (max-width: 900px) {
  .quiz-layout { grid-template-columns: 1fr; gap: 1.2rem; align-items: start; }
  .context-panel { min-height: auto; padding: 1rem 0; }
  .context-panel h1 { max-width: 15ch; font-size: clamp(2.4rem, 9vw, 4rem); }
  .trust-note { display: none; }
  .quiz-card { min-height: auto; }
  .lead-gate { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { min-height: 68px; }
  .header-note { display: none; }
  .shell { width: min(100% - 1rem, 1160px); padding-top: 0.5rem; }
  .context-panel h1 { font-size: 2.5rem; }
  .lede { font-size: 1rem; margin-top: 1rem; }
  .quiz-card { padding: 1.25rem; border-radius: 20px; }
  .options { grid-template-columns: 1fr; }
  .option.prominent { grid-column: auto; }
  .result-hero { align-items: flex-start; border-radius: 20px; }
  .score-ring { display: none; }
  .result-grid { grid-template-columns: 1fr; }
  .lead-gate { padding: 1.25rem; border-radius: 20px; }
  .lead-form { padding: 1rem; }
  .lead-fields { grid-template-columns: 1fr; }
  .lead-field-wide { grid-column: auto; }
  .next-card { grid-row: auto; }
  .funding-options-card { grid-column: auto; grid-template-columns: 1fr; }
  .personalized-cta { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .lender-match-summary { grid-template-columns: 1fr; align-items: stretch; gap: 1.25rem; }
  .match-count-grid { grid-template-columns: 1fr; width: 100%; }
  .next-steps-entry { align-items: stretch; flex-direction: column; gap: 1.25rem; }
  .next-steps-entry .button { width: 100%; }
  .result-footer { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .score-ring.is-celebrating { box-shadow: 0 0 24px rgba(203,181,255,0.35); }
  .score-spark { display: none; }
}
