:root {
  --indigo: #4338ca;
  --indigo-dark: #312a94;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --green: #1aa35a;
  --amber: #f59e0b;
  --red: #dc2626;
  --ink: #0f1222;
  --sub: #4b5170;
  --line: #e3e5f0;
  --bg: #f7f8fd;
  --card: #12173f;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  background: #fff;
}
a { text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(155deg, #0d1040 0%, var(--indigo) 45%, var(--cyan-dark) 130%);
  color: #fff;
  padding: 34px 0 40px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(6, 182, 212, .25) 0, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, .3) 0, transparent 45%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(6, 182, 212, .15);
  border: 1px solid rgba(6, 182, 212, .5);
  color: #a5f3fc;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 14px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .25);
  animation: aisc-pulse 1.6s infinite;
}
@keyframes aisc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 { font-size: 29px; font-weight: 800; line-height: 1.2; margin-bottom: 9px; }
.hero h1 .accent {
  display: block;
  background: linear-gradient(90deg, #67e8f9, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 24px; margin-top: 5px;
}
.hero .sub { font-size: 15.5px; color: rgba(255, 255, 255, .9); margin-bottom: 16px; }
.trustbar { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; font-weight: 700; color: #fff; }
.hero-cta { display: inline-block; margin-top: 20px; font-size: 16px; padding: 13px 24px; }
.hero-note { font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .7); margin: 12px 0 0; max-width: 520px; }

/* ---------- Quiz card ---------- */
.quiz-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.quiz-head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
}
.quiz-head h3 { font-size: 14.5px; font-weight: 800; color: #fff; margin: 0; }
.quiz-head p { flex-basis: 100%; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .72); margin: 2px 0 0; }
.quiz-body { padding: 18px 20px 20px; }

.score-result {
  display: flex; align-items: center; gap: 16px;
  background: rgba(0, 0, 0, .25);
  border-radius: 12px; padding: 14px 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.score-circle {
  flex: 0 0 auto; width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  font-weight: 800;
  background: conic-gradient(var(--ring, var(--cyan)) calc(var(--pct, 50) * 1%), rgba(255, 255, 255, .15) 0);
  position: relative;
}
.score-circle::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); }
.score-circle .num { position: relative; z-index: 1; font-size: 19px; color: #fff; line-height: 1.1; }
.score-circle .lbl { position: relative; z-index: 1; font-size: 8px; color: rgba(255, 255, 255, .6); font-weight: 700; letter-spacing: .04em; }
.score-text { flex: 1; min-width: 160px; }
.score-text p { font-size: 12.5px; color: rgba(255, 255, 255, .85); margin: 0; }
.match-title { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; color: #fff; }
.match-title[hidden] { display: none; }
.match-title:not([hidden]) + p { margin-top: 4px; }
.match-title.good { color: #4ade80; }
.match-title.bad { color: #fbbf24; }
.score-explanation { font-size: 11px; line-height: 1.45; color: rgba(255, 255, 255, .6); margin: -8px 2px 16px; }

/* ---------- Survey form (inside dark card) ---------- */
.survey { color: #fff; }
.survey-progress { height: 5px; background: rgba(255, 255, 255, .12); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.survey-progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), #3b82f6); transition: width .35s ease; }
.slide { display: none; animation: slide-in .3s ease; }
.slide.active { display: block; }
@keyframes slide-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 16px; }
.field[hidden] { display: none !important; }
.q-label { display: block; font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.q-label .req { color: #f87171; margin-left: 2px; }
.slide-intro h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; color: #fff; }
.slide-intro p { font-size: 14px; color: rgba(255, 255, 255, .8); margin: 0 0 16px; }

.choices { display: grid; gap: 8px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { position: relative; margin: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 14px; font-weight: 600; color: #fff;
  transition: background .15s, border-color .15s;
}
.choice span::before {
  content: ""; flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5);
  transition: border-color .15s, box-shadow .15s;
}
.choice span:hover { background: rgba(255, 255, 255, .11); }
.choice input:checked + span { background: rgba(6, 182, 212, .18); border-color: var(--cyan); }
.choice input:checked + span::before { border-color: var(--cyan); box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 8px var(--cyan); }
.choice input:focus-visible + span { outline: 2px solid #67e8f9; outline-offset: 2px; }

.survey .form-control, .survey .form-select {
  background-color: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; border-radius: 9px; padding: 10px 14px; font-size: 14px;
}
.survey .form-control::placeholder { color: rgba(255, 255, 255, .45); }
.survey .form-control:focus, .survey .form-select:focus {
  background-color: rgba(255, 255, 255, .12); color: #fff;
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6, 182, 212, .25);
}
.survey .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.survey .form-select option { color: #101828; background: #fff; }
.survey .is-invalid { border-color: #f87171 !important; }
.field-error { font-size: 12px; color: #fca5a5; margin-top: 6px; display: none; }
.field.has-error .field-error { display: block; }

.consent { font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, .7); margin: 4px 0 0; }
.consent a { color: #a5f3fc; text-decoration: underline; }

.turnstile-slot { display: flex; justify-content: center; margin-top: 12px; }
.turnstile-slot:empty { display: none; }
.survey-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.btn-prev { background: none; border: 0; color: rgba(255, 255, 255, .7); font-weight: 700; font-size: 14px; padding: 8px 4px; }
.btn-prev:hover { color: #fff; }
.btn-next, .cta-btn {
  background: linear-gradient(90deg, var(--cyan), #3b82f6);
  color: #fff; font-weight: 800; border: 0; border-radius: 10px;
}
.btn-next { margin-left: auto; padding: 12px 26px; font-size: 15px; letter-spacing: .03em; min-width: 140px; }
.btn-next:hover, .cta-btn:hover { color: #fff; filter: brightness(1.08); }
.btn-next:disabled { opacity: .7; }
.form-alert { font-size: 13px; color: #fca5a5; margin-top: 10px; text-align: center; }
.funding-cta {
  display: inline-block; background: #16a34a; color: #fff; font-weight: 700; font-size: 17px;
  padding: 14px 26px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.funding-cta:hover { color: #fff; filter: brightness(1.08); }

/* ---------- Content sections ---------- */
.section { padding: 52px 0; }
.section-title { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.section-sub { font-size: 15px; color: var(--sub); text-align: center; max-width: 600px; margin: 0 auto 34px; }

.factor { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--bg); height: 100%; }
.factor .badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.factor.good .badge-pill { background: #dcfce7; color: #128046; }
.factor.bad .badge-pill { background: #fee2e2; color: #b91c1c; }
.factor h4 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.factor p { font-size: 14px; color: var(--sub); margin: 0; }

.step { text-align: center; }
.step .num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--indigo); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 16px;
}
.step h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--sub); margin: 0; }

.next-wrap { background: var(--bg); padding: 52px 0; }
.ncard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px; height: 100%; text-align: center; }
.ncard-icon {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, .14), rgba(67, 56, 202, .14));
  color: var(--indigo);
}
.ncard-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ncard h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.ncard p { font-size: 14.5px; color: var(--sub); margin: 0; }
.next-cta { text-align: center; margin-top: 30px; }
.next-cta .cta-btn { display: inline-block; font-size: 16px; padding: 14px 26px; }
.next-cta p { font-size: 12px; color: var(--sub); max-width: 560px; margin: 12px auto 0; }

.final-cta {
  background: linear-gradient(135deg, var(--indigo-dark), var(--cyan-dark));
  color: #fff; text-align: center; padding: 52px 24px;
}
.final-cta h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.final-cta p { font-size: 15px; color: rgba(255, 255, 255, .9); margin-bottom: 22px; }
.final-cta .cta-btn { display: inline-block; font-size: 17px; padding: 15px 28px; }

.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--cyan-dark);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  text-align: center; z-index: 999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
  display: none;
}
.sticky-cta a { color: #fff; font-weight: 800; font-size: 16px; }

footer { padding: 26px 24px; text-align: center; font-size: 12px; color: var(--sub); }
footer .disclaimer { max-width: 720px; margin: 0 auto 8px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 12px auto 14px; }
.footer-links a { font-weight: 700; font-size: 11.5px; letter-spacing: .03em; color: var(--sub); text-decoration: underline; }

@media (max-width: 720px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 64px; }
}
@media (max-width: 400px) {
  .choices.two { grid-template-columns: 1fr; }
}
