:root {
  --ink: #0b1524;
  --ink-mid: #334660;
  --ink-soft: #64748b;
  --line: #e6ebf2;
  --line-strong: #d3dbe6;
  --surface: #ffffff;
  --bg: #f6f8fc;
  --brand: #1a56db;
  --brand-dark: #1341b0;
  --brand-soft: #eaf1fe;
  --accent: #0d9488;
  --danger: #dc2626;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 36, .06), 0 1px 3px rgba(11, 21, 36, .04);
  --shadow-md: 0 4px 12px rgba(11, 21, 36, .06), 0 2px 4px rgba(11, 21, 36, .04);
  --shadow-lg: 0 24px 48px -12px rgba(11, 21, 36, .14), 0 8px 20px -8px rgba(11, 21, 36, .08);
  --shadow-card: 0 1px 2px rgba(15, 27, 45, .04), 0 8px 20px rgba(15, 27, 45, .06);
  --shadow-tile: 0 10px 24px -6px rgba(15, 27, 45, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;

  /* Same gradient stops as the advisor app's dashboard tiles - shared exactly
     (not just similarly toned) so both apps read as one product. */
  --grad-leads: linear-gradient(135deg, #1c4f8c 0%, #3f8fd1 100%);
  --grad-followups: linear-gradient(135deg, #e8613c 0%, #f6a35e 100%);
  --grad-appointments: linear-gradient(135deg, #17877a 0%, #4fc3ac 100%);
  --grad-success: linear-gradient(135deg, #7c3fd6 0%, #b678e8 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Soft ambient colour wash behind everything - keeps the page from feeling flat
   without adding any image weight. */
.aurora {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  /* Single hue (brand blue only) - restrained rather than a multi-colour wash. */
  background: radial-gradient(46% 55% at 50% 8%, rgba(26, 86, 219, .06), transparent 70%);
  filter: blur(6px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 252, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(230, 235, 242, .9);
}
.site-header__inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo__mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--grad-leads);
  color: #fff;
  box-shadow: var(--shadow-tile);
}
.logo__mark svg { width: 17px; height: 17px; }
.logo__text { font-weight: 800; font-size: .95rem; letter-spacing: -.015em; }

.advisor-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.advisor-link:hover { color: var(--brand); background: var(--brand-soft); }

/* ---------- Shell ---------- */
.funnel-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 22px 56px;
  display: flex;
  flex-direction: column;
}

.step { display: none; }
.step.is-active { display: block; animation: rise .38s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .step.is-active { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Hero ---------- */
.step--home { text-align: center; padding-top: 7vh; }
.hero__eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(2.4rem, 9vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--ink);
}
.hero__sub {
  color: var(--ink-mid);
  font-size: clamp(1.02rem, 2.6vw, 1.15rem);
  max-width: 30ch;
  margin: 0 auto 28px;
}

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
}
.trust-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 108px; padding: 16px 10px;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  font-size: .78rem; font-weight: 700; color: var(--ink-mid);
}
.trust-tile__icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-tile);
}
.trust-tile__icon svg { width: 18px; height: 18px; }
.trust-tile--leads .trust-tile__icon { background: var(--grad-leads); }
.trust-tile--followups .trust-tile__icon { background: var(--grad-followups); }
.trust-tile--appointments .trust-tile__icon { background: var(--grad-appointments); }
.trust-tile--success .trust-tile__icon { background: var(--grad-success); }

.trust-count {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 18px 0 0; padding: 7px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: .82rem; font-weight: 600;
}
.trust-count strong { font-weight: 800; }

/* ---------- Form card ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px 26px 30px;
  animation: rise .4s var(--ease) both;
}
.form-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.back-btn {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink-mid);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.back-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.back-btn svg { width: 17px; height: 17px; }

.form-card__meta { flex: 1; min-width: 0; }
.step-count {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 9px;
}
.progress-track {
  height: 5px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--brand);
  transition: width .45s var(--ease);
}

.step__title {
  font-size: clamp(1.35rem, 4.4vw, 1.6rem);
  line-height: 1.22;
  letter-spacing: -.022em;
  font-weight: 700;
  margin: 0 0 7px;
}
.step__hint { color: var(--ink-soft); margin: 0 0 24px; font-size: .95rem; }
.step__title + .choice-grid { margin-top: 24px; }

/* ---------- Fields ---------- */
.field {
  width: 100%;
  padding: 15px 17px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  background: #fbfcfe;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.field::placeholder { color: #9aa8ba; font-weight: 400; }
.field:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(26, 86, 219, .12);
}
.field--short { max-width: 150px; }
input[type="date"].field, input[type="time"].field { appearance: none; }

.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  font-size: .87rem;
  font-weight: 500;
  margin: 11px 2px 0;
}

/* ---------- Choices ---------- */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.choice-grid--list { grid-template-columns: 1fr; }

.choice {
  position: relative;
  padding: 17px 18px;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  background: #fbfcfe;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease),
              transform .12s var(--ease), box-shadow .16s var(--ease);
}
.choice:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.choice:active { transform: translateY(0) scale(.99); }
.choice.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, .12);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.005em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .14s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 86, 219, .28);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(26, 86, 219, .34); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--block { display: flex; width: 100%; margin-top: 26px; }
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn__arrow { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn--lg:hover .btn__arrow { transform: translateX(3px); }

/* Gradient reserved for the one standout hero CTA - every other .btn--primary
   (each step's "Continue") stays flat so a 9-question form doesn't feel loud. */
.step--home .btn--primary {
  background: var(--grad-leads);
  box-shadow: 0 8px 24px -6px rgba(26, 86, 219, .5);
}
.step--home .btn--primary:hover { box-shadow: 0 12px 30px -6px rgba(26, 86, 219, .55); }

/* ---------- Summary ---------- */
.summary {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fbfcfe;
}
.summary__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background .15s var(--ease);
}
.summary__row:last-child { border-bottom: none; }
.summary__row:hover, .summary__row:focus-visible { background: var(--brand-soft); }
.summary__label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
  flex: none;
}
.summary__value {
  flex: 1;
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.summary__edit {
  flex: none;
  font-size: .76rem;
  font-weight: 700;
  color: var(--brand);
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 16px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--ink-mid);
  font-size: .87rem;
  line-height: 1.55;
  margin: 0;
}
.privacy-note svg { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 1px; }

/* ---------- Confirmation ---------- */
.done-panel {
  text-align: center;
  padding: 44px 26px 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.done-check {
  width: 66px; height: 66px;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(13, 148, 136, .3);
  animation: pop .45s var(--ease) both .1s;
}
.done-check svg { width: 30px; height: 30px; }
@keyframes pop {
  from { opacity: 0; transform: scale(.7); }
  to { opacity: 1; transform: none; }
}
.done-title {
  font-size: clamp(1.35rem, 4.6vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -.022em;
  margin: 0 0 14px;
}
.done-text { color: var(--ink-mid); font-size: 1rem; margin: 0 auto 10px; max-width: 34ch; }
.done-text--muted { color: var(--ink-soft); font-size: .9rem; }
.lead-code {
  display: inline-block;
  margin-top: 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.65;
  padding: 30px 24px 34px;
  max-width: 620px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0 0 9px; }
.site-footer__identity { max-width: 54ch; margin-left: auto; margin-right: auto; }
.site-footer__contact {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--brand-soft); color: var(--ink-mid); font-weight: 700;
}
.site-footer__contact svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.site-footer__contact a, .site-footer__meta a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.site-footer__contact a:hover, .site-footer__meta a:hover { text-decoration: underline; }
.site-footer__meta { margin-bottom: 0; }

@media (max-width: 480px) {
  .funnel-shell { padding: 26px 16px 40px; }
  .form-card { padding: 20px 18px 26px; border-radius: 20px; }
  .site-header__inner { padding: 13px 16px; }
  .done-panel { padding: 38px 20px 42px; }
}
