:root {
  --ink: #12261c;
  --ink-2: #2f4a3c;
  --muted: #5d7066;
  --line: #e1e9e4;
  --line-2: #d6e1da;
  --blue: #135236;
  --navy: #0c3925;
  --red: #b42318;
  --green: #157a45;
  --green-2: #1e9a59;
  --wash: #f3f7f4;
  --pill-bg: #e6f1ea;
  --pill-ink: #2d6a4a;
  --focus: #157a45;
  --err: #dc2626;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
sup { font-size: .55em; line-height: 0; vertical-align: super; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  max-width: 680px; margin: 0 auto;
  height: 68px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand-top { color: var(--navy); font-size: 18.5px; letter-spacing: -.015em; }
.brand-bottom { color: var(--blue); font-size: 10px; font-weight: 600; letter-spacing: .34em; margin-top: 4px; }
.badge {
  font-size: 12px; font-weight: 500; color: var(--green);
  background: #ecfdf3; border: 1px solid #d1f5df;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  transition: opacity .3s ease;
}
.badge.is-fading { opacity: 0; }
@media (max-width: 400px) {
  .header-inner { padding: 0 12px; }
  .brand-mark { width: 40px; }
  .brand-top { font-size: 16.5px; }
  .brand-bottom { font-size: 9px; letter-spacing: .3em; }
  .badge { font-size: 11px; padding: 4px 9px; }
}

/* ---------- Quiz zone ---------- */
.quiz-zone {
  background: linear-gradient(180deg, #f7faf8 0%, var(--wash) 100%);
  padding: 18px 16px 44px;
}
.hero { text-align: center; max-width: 620px; margin: 0 auto 22px; }
.hero-title {
  margin: 0 auto 12px; max-width: 560px;
  color: var(--blue); font-weight: 800;
  font-size: clamp(28px, 7.4vw, 38px); line-height: 1.12; letter-spacing: -.02em;
}
.hero-title sup { font-size: .32em; font-weight: 500; vertical-align: top; position: relative; top: .9em; }
.hero-points {
  list-style: none; margin: 0 auto 16px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  font-size: 12.5px; color: var(--ink-2); text-align: left;
}
.hero-points li { display: flex; align-items: center; gap: 6px; }
.tick { width: 16px; height: 16px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.tick svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-cta {
  margin: 0; display: inline-flex; align-items: center; gap: 7px;
  font-size: 19px; font-weight: 700; color: #5d7066;
}
.hero-cta .i { width: 15px; height: 15px; }

.card {
  max-width: 500px; margin: 0 auto;
  background: #fff;
  border: 1px solid #e8efea; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(12, 57, 37, .04), 0 10px 30px rgba(12, 57, 37, .06);
  padding: 22px 18px 18px;
  text-align: center;
  scroll-margin-top: 84px;
}

.progress-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pct { color: var(--blue); font-weight: 700; }
.track { height: 9px; background: #e6ede8; border-radius: 999px; overflow: hidden; }
.fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--green-2)); transition: width .45s cubic-bezier(.2, .8, .2, 1); }

.stage { margin-top: 6px; }
.stage.enter { animation: stepIn .28s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.q-title { font-size: 23px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; margin: 18px 0 16px; outline: none; }
.q-sub { color: var(--muted); font-size: 14.5px; margin: -6px 0 12px; }

.grid { display: grid; gap: 9px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(5, 1fr); }
@media (min-width: 420px) {
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
}

.opt {
  min-height: 46px; padding: 10px 8px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .08s ease;
}
@media (hover: hover) { .opt:hover { border-color: #9cc3ad; background: #f6fbf8; } }
.opt:active { transform: scale(.98); }
.opt.is-selected { border-color: var(--blue); background: #e9f4ee; box-shadow: inset 0 0 0 1px var(--blue); }
.opt-sm { min-height: 42px; font-size: 13.5px; padding: 8px 4px; }

.opt-tall { min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; }
.opt-tall svg { width: 26px; height: 26px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-male { stroke: #3b82f6; }
.ic-female { stroke: #ec4899; }
.ic-muted { stroke: #455a4f; }

.yn { display: flex; justify-content: center; gap: 10px; }
.yn .opt { width: 96px; font-weight: 600; }

.dob-display {
  display: flex; align-items: center; justify-content: space-between;
  background: #f2f6f3; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
  font-size: 20px; color: #93a59a; letter-spacing: .02em; text-align: left;
}
.dob-display b { color: var(--ink-2); font-weight: 500; }
.reset { background: none; border: 0; color: var(--blue); font-size: 12.5px; font-weight: 500; cursor: pointer; padding: 6px; }

.pill {
  display: inline-flex; align-items: baseline;
  margin: 16px auto 0; padding: 7px 15px;
  background: var(--pill-bg); color: var(--pill-ink);
  font-size: 12.5px; font-weight: 500; border-radius: 999px;
}
.pill .i { width: 12px; height: 12px; margin-right: 5px; align-self: center; }
.dots i { font-style: normal; animation: blink 1.4s infinite both; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 12px auto 0; padding: 8px 10px;
  background: none; border: 0; color: var(--blue); font-size: 14px; font-weight: 500; cursor: pointer;
}
.back .i { width: 15px; height: 15px; }
.card > .back { display: flex; }

/* ---------- Details form ---------- */
.lead-form { text-align: left; }
.field { margin-bottom: 11px; }
.input-wrap { position: relative; }
.input-wrap .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #5d7066; width: 16px; height: 16px; pointer-events: none; }
.lead-form input {
  width: 100%; height: 50px; padding: 0 14px 0 42px;
  border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.lead-form input::placeholder { color: #7d8f85; }
.lead-form input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(21, 122, 69, .2); }
.field.has-error input { border-color: var(--err); }
.field.has-error input:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.err { color: var(--err); font-size: 12.5px; margin: 5px 2px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-center { text-align: center; }
.form-center .pill { margin: 4px auto 14px; }

.cta {
  width: 100%; min-height: 54px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(90deg, var(--green), var(--green-2));
  color: #fff; font-size: 16.5px; font-weight: 700;
  box-shadow: 0 8px 18px rgba(21, 122, 69, .28);
  transition: filter .15s ease, transform .08s ease;
}
.cta:hover { filter: brightness(1.04); }
.cta:active { transform: scale(.99); }
.cta[disabled] { cursor: progress; filter: saturate(.7) brightness(.97); }
.cta .i { width: 17px; height: 17px; stroke-width: 2.4; }
.form-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: 13.5px; text-align: center; }

.consent { font-size: 11.5px; line-height: 1.55; color: var(--muted); text-align: center; margin: 14px 0 0; }
.consent a { color: var(--navy); }

/* ---------- Benefits ---------- */
.benefits { background: var(--wash); padding: 8px 16px 48px; text-align: center; }
.benefits h2 { font-size: clamp(22px, 5.4vw, 27px); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; margin: 0 auto 22px; max-width: 620px; }
.benefit-grid { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
.benefit {
  background: #fff; border: 1px solid #e8efea; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(12, 57, 37, .04);
  padding: 16px; display: flex; align-items: center; gap: 14px; text-align: left;
}
.benefit h3 { font-size: 15.5px; font-weight: 600; margin: 0 0 2px; line-height: 1.3; }
.benefit p { font-size: 13px; color: var(--muted); margin: 0; }
.b-icon { width: 46px; height: 46px; border-radius: 50%; background: #e6f1ea; display: grid; place-items: center; flex: none; }
.b-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 640px) {
  .benefit-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .benefit { flex-direction: column; text-align: center; padding: 18px 14px 20px; gap: 10px; }
}

/* ---------- Explainer ---------- */
.explain { background: #f8faf9; padding: 44px 20px 52px; }
.explain-inner { max-width: 560px; margin: 0 auto; }
.explain h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(21px, 5vw, 25px); font-weight: 700; letter-spacing: -.015em; margin: 0 0 14px; line-height: 1.25; }
.explain h2:not(:first-child) { margin-top: 38px; }
.explain p { font-size: 14.5px; line-height: 1.65; color: #455a4f; margin: 0 0 12px; }
.h-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.h-icon svg { width: 18px; height: 18px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h-icon.blue { background: #e6f1ea; } .h-icon.blue svg { stroke: var(--navy); }
.h-icon.green { background: #e6f7ec; } .h-icon.green svg { stroke: var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b6cabd; padding: 40px 20px calc(36px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { max-width: 640px; margin: 0 auto; font-size: 12px; line-height: 1.65; text-align: center; }
.footer-inner p { margin: 0 0 12px; }
.footer-brand { display: flex; justify-content: center; margin-bottom: 22px !important; }
.footer-brand img { width: 150px; height: auto; }
.footer-links { display: flex; justify-content: center; gap: 10px; }
.footer-links a { color: #dbe7df; }

/* ---------- Simple pages (thank-you, legal) ---------- */
.page { background: linear-gradient(180deg, #f7faf8 0%, var(--wash) 100%); padding: 40px 16px 64px; min-height: 60vh; }
.page .card { padding: 32px 22px 28px; }
.done-icon { width: 60px; height: 60px; border-radius: 50%; background: #e6f7ec; display: grid; place-items: center; margin: 0 auto 6px; }
.done-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.page h1 { font-size: 26px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; margin: 12px 0 10px; line-height: 1.2; }
.page p { color: #455a4f; font-size: 15px; margin: 0 0 12px; }
.card-wide { max-width: 640px; }

/* Thank-you */
.ty-lede { font-size: 16px !important; color: var(--ink-2) !important; max-width: 440px; margin: 0 auto 20px !important; }
.call-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  max-width: 440px; margin: 0 auto; padding: 16px 12px 18px;
  border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(90deg, var(--green), var(--green-2));
  box-shadow: 0 10px 24px rgba(21, 122, 69, .32);
  animation: callPulse 2.4s ease-in-out infinite;
  transition: filter .15s ease, transform .08s ease;
}
.call-btn:hover { filter: brightness(1.04); }
.call-btn:active { transform: scale(.99); }
.call-live {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .18); padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); animation: liveDot 1.6s infinite; }
.call-main { display: flex; align-items: center; gap: 9px; font-size: clamp(17px, 5vw, 22px); white-space: nowrap; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.call-main .i { width: 22px; height: 22px; stroke-width: 2.3; }
.call-num { font-size: 15px; font-weight: 600; opacity: .92; }
.ty-note { font-size: 13px !important; color: var(--muted) !important; margin: 12px 0 0 !important; }
@keyframes callPulse { 0%, 100% { box-shadow: 0 10px 24px rgba(21, 122, 69, .32), 0 0 0 0 rgba(30, 154, 89, .45); } 50% { box-shadow: 0 10px 24px rgba(21, 122, 69, .32), 0 0 0 10px rgba(30, 154, 89, 0); } }
@keyframes liveDot { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

.book { max-width: 640px; margin: 36px auto 0; text-align: center; }
.book h2 { font-size: clamp(18px, 4.8vw, 22px); font-weight: 800; color: var(--ink); letter-spacing: .01em; line-height: 1.3; margin: 0 0 6px; }
.book-sub { font-size: 14.5px !important; color: var(--muted) !important; margin: 0 0 16px !important; }
.cal-frame { background: #fff; border: 1px solid #e8efea; border-radius: 16px; box-shadow: 0 10px 30px rgba(12, 57, 37, .06); overflow: hidden; }
.cal-frame iframe { display: block; width: 100%; min-height: 680px; border: 0; }
.cal-empty { padding: 36px 20px; color: var(--muted); font-size: 14px; border-style: dashed; border-color: var(--line-2); }

/* Legal pages */
.legal { text-align: left; }
.page .legal h1 { margin-top: 0; }
.legal-meta { font-size: 13px !important; color: var(--muted) !important; margin-bottom: 20px !important; }
.legal h2 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 28px 0 8px; line-height: 1.35; }
.legal p, .legal li { font-size: 14.5px; line-height: 1.7; color: #455a4f; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--navy); }
.legal strong { color: var(--ink-2); }
.legal-contact { background: #f2f6f3; border-radius: 10px; padding: 14px 16px; }

@media (min-width: 640px) {
  .quiz-zone { padding-top: 22px; }
  .card { padding: 24px 24px 20px; }
  .q-title { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
