:root {
  --navy: #0b2a5b;
  --navy-2: #123d7e;
  --blue: #1e88e5;
  --sky: #4fc3f7;
  --green: #6cbf3a;
  --ink: #1b2740;
  --muted: #5b6b85;
  --line: #e4ebf5;
  --tint: #f4f8fd;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 42, 91, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 42, 91, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: "Montserrat", sans-serif; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.3em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  font-family: inherit; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--navy-2)); color: #fff; box-shadow: 0 8px 22px rgba(30, 136, 229, .35); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(30, 136, 229, .45); }
.btn-light { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-light:hover { border-color: var(--blue); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost svg { color: #25d366; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-outline-white { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}
.spark { color: var(--blue); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228,235,245,.8);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { display: flex; gap: 8px; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 7px 8px; transition: .3s; }

/* Hero */
.hero {
  position: relative; min-height: calc(100vh - 72px); min-height: calc(100svh - 72px);
  display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% 40%, #e8f4ff 0%, #fff 60%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.6) 38%, rgba(255,255,255,0) 60%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; padding: 60px 0 90px; pointer-events: none; }
.hero-copy, .flow-legend { pointer-events: auto; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.03em; font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--blue), var(--sky) 55%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9rem; }
.hero-trust span { color: var(--green); font-weight: 700; margin-right: 4px; }

.flow-legend { list-style: none; margin: 0; padding: 0; justify-self: end; display: grid; gap: 8px; }
.flow-legend li {
  background: rgba(255,255,255,.8); backdrop-filter: blur(8px); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 12px; font-size: .88rem; color: var(--muted);
  transition: all .4s; display: flex; gap: 10px; align-items: center;
}
.flow-legend li b { color: var(--blue); font-family: "Montserrat"; font-size: .75rem; }
.flow-legend li.active { color: var(--navy); border-color: var(--blue); box-shadow: 0 8px 20px rgba(30,136,229,.18); transform: translateX(-6px); font-weight: 600; }

.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; width: 24px; height: 38px; border: 2px solid var(--navy); border-radius: 14px; opacity: .5; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--navy); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Sections */
.section { padding: 100px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--green)); opacity: .3; }
.steps li { text-align: center; position: relative; }
.step-num { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--blue); color: var(--navy); font-family: "Montserrat"; font-weight: 800; font-size: 1.2rem; position: relative; box-shadow: var(--shadow); }
.steps li:last-child .step-num { border-color: var(--green); }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .92rem; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; transition: transform .3s, box-shadow .3s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-featured { border: 2px solid var(--blue); }
.plan-icon { font-size: 2rem; width: 60px; height: 60px; display: grid; place-items: center; background: var(--tint); border-radius: 16px; margin-bottom: 18px; }
.plan-sub { color: var(--muted); }
.badge { position: absolute; top: -13px; right: 24px; background: linear-gradient(90deg, var(--blue), var(--green)); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.ticks { list-style: none; padding: 0; margin: 8px 0 28px; flex: 1; }
.ticks li { position: relative; padding: 7px 0 7px 30px; font-size: .94rem; border-bottom: 1px dashed var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border-radius: 50%;
  background: #e9f6e0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%236cbf3a' stroke-width='3' d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { width: 100%; }

.addons { margin-top: 32px; background: linear-gradient(135deg, #fff, #eaf5ff); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.addons h4 { margin-bottom: .2em; }
.addons p { margin: 0; color: var(--muted); }

/* Quiz */
.quiz-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.quiz-intro p { color: var(--muted); font-size: 1.05rem; }
.quiz-perks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.quiz-perks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.quiz-perks span { width: 38px; height: 38px; display: grid; place-items: center; background: var(--tint); border-radius: 10px; }

.quiz-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 32px; min-height: 480px; display: flex; flex-direction: column; }
.quiz-progress { height: 6px; background: var(--tint); border-radius: 99px; overflow: hidden; }
.quiz-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 22px; font-size: .85rem; color: var(--muted); }
.quiz-back { background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; font-weight: 600; }
.quiz-body { flex: 1; display: flex; flex-direction: column; }
.quiz-body.anim { animation: slideIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.quiz-q { font-size: 1.45rem; margin-bottom: .3em; }
.quiz-hint { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option {
  text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 16px;
  cursor: pointer; font: inherit; color: var(--ink); display: flex; gap: 12px; align-items: center; transition: all .2s;
}
.option:hover { border-color: var(--blue); background: #f7fbff; transform: translateY(-2px); }
.option.selected { border-color: var(--blue); background: #eef6ff; box-shadow: 0 0 0 4px rgba(30,136,229,.12); }
.option .ico { font-size: 1.5rem; flex: none; }
.option strong { display: block; font-size: .98rem; }
.option small { color: var(--muted); font-size: .82rem; }
.quiz-next { margin-top: 20px; align-self: flex-end; }

.form-grid { display: grid; gap: 14px; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #fff; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field .err { color: #d93025; font-size: .8rem; display: none; }
.field.invalid input { border-color: #d93025; }
.field.invalid .err { display: block; }
.consent { font-size: .8rem; color: var(--muted); }

.result { text-align: center; display: flex; flex-direction: column; align-items: center; }
.result-badge { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; background: linear-gradient(135deg, #eaf5ff, #ecf8e3); margin-bottom: 14px; animation: pop .6s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.result h3 { font-size: 1.6rem; }
.result .match { display: inline-block; background: #ecf8e3; color: #3c8a12; font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 99px; margin-bottom: 10px; }
.result p { color: var(--muted); max-width: 440px; }
.result ul { text-align: left; margin: 0 0 18px; padding: 0; list-style: none; }
.result ul li { padding: 3px 0 3px 26px; position: relative; font-size: .92rem; }
.result ul li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }
.result-ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.result small { color: var(--muted); margin-top: 14px; font-size: .8rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 100%); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.cta-band::after { content: "✦"; position: absolute; right: 6%; top: -30px; font-size: 220px; color: rgba(255,255,255,.06); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Notes */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.note { background: var(--tint); border-radius: var(--radius); padding: 26px; }
.note span { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.note h4 { font-size: 1.05rem; margin-bottom: .3em; }
.note p { color: var(--muted); margin: 0; font-size: .94rem; }
.note-cta { background: linear-gradient(135deg, #eaf5ff, #ecf8e3); }
.note-cta p { margin-bottom: 14px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 50px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-logo { height: 56px; width: auto; margin-bottom: 8px; }
.footer p { color: var(--muted); margin: 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--blue); }
.footer .copyright { margin: 30px auto 0; font-size: .85rem; }

.sticky-cta { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 20px; border-bottom: 1px solid var(--line); gap: 16px; }
  .menu-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .quiz-wrap { grid-template-columns: 1fr; gap: 36px; }
  .notes { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .flow-legend { display: none; }
  .hero-fade { background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.88) 55%, rgba(255,255,255,.95) 100%); }
}
@media (max-width: 640px) {
  .nav-cta { display: none; }
  .brand img { height: 38px; }
  .section { padding: 70px 0; }
  .steps { grid-template-columns: 1fr; }
  .options, .form-grid .two, .notes { grid-template-columns: 1fr; }
  .quiz-card { padding: 22px; }
  .addons, .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { flex: 1; }
  .sticky-cta { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .3s; }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { flex: 1; }
  body { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
