*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:            #080808;
  --dark-2:          #111113;
  --dark-card:       #17191c;
  --gold:            #c8a96b;
  --gold-dim:        rgba(200, 169, 107, 0.18);
  --gold-border:     rgba(200, 169, 107, 0.28);
  --gold-glow:       rgba(200, 169, 107, 0.12);
  --surface:         #ffffff;
  --surface-low:     #f5f5f7;
  --on-surface:      #1c1712;
  --on-surface-var:  #6b7280;
  --outline-var:     #e5e3df;
  --primary-dark:    #00113a;
  --err:             #b42318;
}

html {
  scroll-behavior: smooth;
  background: var(--dark);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: -apple-system, "SF Pro Display", "Segoe UI", Inter, sans-serif;
  background: var(--dark);
  color: #fff;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 16px);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  overflow-x: clip;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

/* ─── Page Layout ─────────────────────────────────── */
.page-main {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--gold-border);
}

.header-inner {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: "Manrope", -apple-system, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a2a2a, #111);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.header-back {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s;
}

.header-back:hover { color: var(--gold); }

/* ─── Funnel Section ──────────────────────────────── */
.funnel-section {
  position: relative;
  padding: 52px 0 80px;
  background: var(--dark);
}

/* Subtle radial glow behind the card */
.funnel-section::before {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0; left: 50%;
  width: 700px;
  height: 440px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(200,169,107,.09) 0%, transparent 70%);
}

.funnel-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ─── Badge ──────────────────────────────────────── */
.funnel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ─── Funnel Headline ────────────────────────────── */
.funnel-inner h2 {
  margin: 20px 0 14px;
  font-family: "Manrope", -apple-system, sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.funnel-inner h2 span { color: var(--gold); }

.funnel-inner > p {
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── Step Indicators ────────────────────────────── */
.funnel-steps {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.funnel-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20%; right: 20%;
  height: 1px;
  background: var(--gold-border);
}

.step-dot {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-dot .circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid var(--gold-border);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s;
}

.step-dot span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-dot.active .circle {
  background: linear-gradient(135deg, #c8a96b 0%, #e8cc8a 100%);
  border-color: var(--gold);
  color: #080808;
  box-shadow: 0 4px 20px rgba(200, 169, 107, 0.35);
}

.step-dot.active span,
.step-dot.done span { color: var(--gold); }

.step-dot.done .circle {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── Funnel Card ─────────────────────────────────── */
.funnel-card {
  background: #fff;
  border: 1px solid rgba(200, 169, 107, 0.12);
  border-radius: 28px;
  padding: 36px 32px;
  text-align: left;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 80px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(200, 169, 107, 0.06);
}

.funnel-step-content { display: none; }
.funnel-step-content.active { display: block; }

.funnel-card h3 {
  margin-bottom: 6px;
  font-family: "Manrope", -apple-system, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.sub {
  margin-bottom: 20px;
  color: var(--on-surface-var);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* ─── Form Elements ──────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #444650;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.helper-inline {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid #c5c6d2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  color: var(--primary-dark);
  font: inherit;
  font-size: 0.9rem;
  padding: 14px 16px;
  min-height: 44px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #c8a96b;
  box-shadow: 0 0 0 3px rgba(200, 169, 107, 0.15);
}

.form-group textarea { resize: vertical; }
.stacked-input { margin-top: 8px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ─── Radio Tiles ─────────────────────────────────── */
.radio-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-tile input { display: none; }

.radio-tile label {
  min-height: 84px;
  padding: 16px 16px 14px;
  display: block;
  border: 1.5px solid #ddd;
  border-radius: 16px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.radio-tile label:hover {
  border-color: var(--gold);
  background: rgba(200,169,107,0.05);
}

.tile-title {
  display: block;
  margin-bottom: 5px;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.tile-sub {
  display: block;
  color: var(--on-surface-var);
  font-size: 0.8rem;
  line-height: 1.45;
}

.radio-tile input:checked + label {
  border-color: var(--gold);
  background: rgba(200, 169, 107, 0.08);
  box-shadow: 0 3px 12px rgba(200, 169, 107, 0.12);
}

.radio-tile input:checked + label .tile-title {
  color: #8a6d20;
}

/* ─── Nav / Buttons ──────────────────────────────── */
.funnel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.funnel-nav.end { justify-content: flex-end; }

/* Liquid Glass — Gold */
.btn-gold-lg {
  position: relative;
  border: 1.5px solid rgba(200, 169, 107, 0.55);
  border-radius: 999px;
  background: rgba(200, 169, 107, 0.18);
  color: #16293B;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(200, 169, 107, 0.22),
    inset 1px 0 0 rgba(255, 255, 255, 0.2),
    0 8px 28px rgba(200, 169, 107, 0.22),
    0 2px 8px rgba(200, 169, 107, 0.12);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-gold-lg:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(200, 169, 107, 0.22),
    0 14px 40px rgba(200, 169, 107, 0.3),
    0 4px 12px rgba(200, 169, 107, 0.15);
}

.btn-gold-lg:active { transform: translateY(0); }

.btn-back {
  border: 1.5px solid #d8d3c8;
  border-radius: 999px;
  background: #fff;
  color: var(--on-surface-var);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 14px 20px;
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.2s, color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-back:hover {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

/* ─── Reflexion ─────────────────────────────────── */
.ref-q { display: none; }
.ref-q.active { display: block; }

.ref-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.ref-progress-dot {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: #e0ddd6;
  transition: all 0.3s;
}

.ref-progress-dot.active {
  background: linear-gradient(90deg, #c8a96b, #e8cc8a);
}

/* Scale */
.scale-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.scale-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #c5c6d2;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  color: var(--primary-dark);
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.18s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.scale-btn.active {
  background: linear-gradient(135deg, #c8a96b, #e8cc8a);
  border-color: #c8a96b;
  box-shadow: 0 2px 10px rgba(200, 169, 107, 0.35);
  color: #080808;
}

.note {
  margin-bottom: 14px;
  color: #444650;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Income Slider */
.income-panel {
  text-align: center;
  margin: 20px 0 8px;
}

.income-display {
  display: block;
  color: var(--primary-dark);
  font-family: "Manrope", -apple-system, sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.income-unit {
  margin-top: 4px;
  color: #444650;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.income-role {
  width: 100%;
  margin-top: 12px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid rgba(200, 169, 107, 0.28);
  border-radius: 10px;
  background: rgba(200, 169, 107, 0.06);
}

.income-role-prefix {
  color: #9ca3af;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.income-role-label {
  color: #8a6d20;
  font-size: 0.82rem;
  font-weight: 800;
}

#incomeSlider {
  width: 100%;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  margin: 20px 0 10px;
  background: linear-gradient(90deg, #c8a96b, #e8cc8a);
}

.income-range {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #444650;
  font-size: 0.68rem;
  font-weight: 600;
}

.income-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.income-chip {
  border: 1px solid #d8d3c8;
  border-radius: 999px;
  background: #fff;
  color: var(--on-surface-var);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 10px 14px;
  min-height: 44px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.income-chip:hover,
.income-chip.active {
  border-color: var(--gold);
  background: rgba(200, 169, 107, 0.08);
  color: #8a6d20;
}

/* ─── Validation ──────────────────────────────── */
.error-hint {
  display: none;
  margin-top: 8px;
  color: var(--err);
  font-size: 0.78rem;
  font-weight: 600;
}

.error-hint.show { display: block; }
.field-error { border-color: var(--err) !important; }

.shake { animation: shake 0.42s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(3px); }
}

/* ─── Success State ──────────────────────────────── */
.funnel-success {
  display: none;
  text-align: center;
  padding: 56px 36px;
  background: #fff;
}

.funnel-success.active { display: block; }

.success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c8a96b, #e8cc8a);
  color: #080808;
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 8px 32px rgba(200, 169, 107, 0.35);
}

.funnel-success h3 {
  margin-bottom: 12px;
  font-family: "Manrope", -apple-system, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.funnel-success p {
  margin-bottom: 12px;
  color: var(--on-surface-var);
  font-size: 0.95rem;
  line-height: 1.7;
}

.funnel-success a {
  color: #8a6d20;
  text-decoration: none;
}

.funnel-success a:hover { text-decoration: underline; }

/* ─── Legal Section ──────────────────────────────── */
.legal-section {
  background: var(--dark-2);
  padding: 0 0 64px;
  border-top: 1px solid rgba(200,169,107,0.1);
}

.legal-grid { display: grid; gap: 20px; }

.legal-card {
  background: var(--dark-card);
  border: 1px solid rgba(200,169,107,0.12);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.legal-card h2 {
  margin: 18px 0 16px;
  font-family: "Manrope", -apple-system, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.legal-card h3 {
  margin: 18px 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
}

.legal-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  line-height: 1.7;
}

.legal-card a { color: var(--gold); text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }

/* ─── Footer ──────────────────────────────────────── */
.footer-strip {
  background: #0c0c0e;
  border-top: 1px solid rgba(200,169,107,0.12);
  padding: 28px 24px;
  text-align: center;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-link,
.footer-toggle {
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 10px 16px;
  min-height: 44px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.footer-link:hover,
.footer-toggle:hover,
.footer-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  text-decoration: none;
}

.footer-strip p {
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* ─── Mobile ──────────────────────────────────────── */
@media (max-width: 600px) {
  .page-main,
  .header-inner { padding-left: 20px; padding-right: 20px; }

  .funnel-section { padding: 36px 0 56px; }
  .funnel-card { padding: 24px 20px; border-radius: 20px; }
  .radio-tiles, .form-row { grid-template-columns: 1fr; }
  .funnel-nav { flex-direction: column-reverse; align-items: stretch; }
  .funnel-nav.end { flex-direction: column; }
  .btn-gold-lg, .btn-back { width: 100%; justify-content: center; }
  .step-dot span { font-size: 0.55rem; }
  .income-role { flex-direction: column; }
  .footer-actions { flex-direction: column; }
  .header-back span:last-child { display: none; }
  .funnel-inner h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .funnel-inner > p { margin-bottom: 32px; }
}

@media (max-width: 400px) {
  .page-main, .header-inner { padding-left: 16px; padding-right: 16px; }
  .funnel-card { padding: 20px 16px; }
}
