/* Layout: single-column card flow, progress top, result at end */
:root {
  --dark: #2A3F45;
  --teal: #5A9BA8;
  --teal-light: #7AACB5;
  --cream: #F0F7F9;
  --light: #DFF0F3;
  --border: #C2D9DF;
  --gray: #6B7F82;
  --white: #FFFFFF;
  --green: #2D7A4F;
  --text: #1E3238;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --dark: #1A2D32;
    --teal: #6AAEBB;
    --teal-light: #8AC0CB;
    --cream: #1C2E33;
    --light: #243940;
    --border: #3A5560;
    --gray: #8AAAB0;
    --white: #243840;
    --green: #3D9B63;
    --text: #E0EEF2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --dark: #1A2D32;
  --teal: #6AAEBB;
  --teal-light: #8AC0CB;
  --cream: #1C2E33;
  --light: #243940;
  --border: #3A5560;
  --gray: #8AAAB0;
  --white: #243840;
  --green: #3D9B63;
  --text: #E0EEF2;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  padding-inline: 0;
  margin: 0;
}

/* HEADER */
.site-header {
  background: var(--dark);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.logo em { color: var(--teal-light); font-style: italic; }
.header-link {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  letter-spacing: 0.08em;
}

/* HERO */
.hero {
  background: var(--dark);
  padding: 40px 24px 36px;
  text-align: center;
  border-bottom: 1px solid rgba(90,155,168,0.2);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 300;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
  text-wrap: balance;
}
.hero h1 em { color: var(--teal-light); font-style: italic; }
.hero p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* PROGRESS */
.progress-shell {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.progress-label { font-size: 11px; color: var(--gray); letter-spacing: 0.06em; }
.progress-num { font-size: 12px; font-weight: 500; color: var(--teal); }
.progress-track {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* FORM SHELL */
.form-shell {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 24px 64px;
}

/* STEP */
.step { display: none; }
.step.active {
  display: block;
  animation: slideIn 0.28s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.step-question {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
  text-wrap: balance;
}
.step-hint {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* OPTIONS */
.options { display: flex; flex-direction: column; gap: 9px; }

.opt {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.opt:hover { border-color: var(--teal); }
.opt.sel {
  border-color: var(--teal);
  background: var(--light);
}

.opt-indicator {
  width: 19px;
  height: 19px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  transition: border-color 0.18s, background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.opt.sel .opt-indicator {
  border-color: var(--teal);
  background: var(--teal);
}
.opt.sel .opt-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.opt-body { flex: 1; min-width: 0; }
.opt-title { font-size: 14px; font-weight: 400; color: var(--text); line-height: 1.4; }
.opt-sub { font-size: 12px; color: var(--gray); margin-top: 2px; line-height: 1.5; }

/* NAV BUTTONS */
.nav {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}
.btn-back {
  flex: 1;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--gray);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}
.btn-back:hover { border-color: var(--teal); color: var(--teal); }
.btn-next {
  flex: 2;
  padding: 12px;
  border: none;
  border-radius: 9px;
  background: var(--teal);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background 0.18s;
  letter-spacing: 0.03em;
}
.btn-next:hover { background: var(--dark); }
.btn-next:disabled { background: var(--border); color: var(--gray); cursor: default; }

/* ===== RESULT ===== */
.result-wrap {
  display: none;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  animation: slideIn 0.35s ease;
}
.result-wrap.show { display: block; }

/* Main result card */
.result-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}
.result-head {
  background: var(--dark);
  padding: 26px 24px 22px;
}
.result-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 8px;
}
.result-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
  text-wrap: balance;
}
.result-intro {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

.result-body { padding: 22px 24px; }

.result-section-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.result-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

.result-bullets {
  list-style: none;
  margin-bottom: 22px;
}
.result-bullets li {
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  line-height: 1.55;
  color: var(--text);
}
.result-bullets li:last-child { border-bottom: none; }
.result-bullets li::before {
  content: '—';
  color: var(--teal);
  flex-shrink: 0;
  font-weight: 400;
}

.result-note {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  padding: 14px 16px;
  background: var(--light);
  border-radius: 8px;
  border-left: 3px solid var(--teal);
  margin-bottom: 4px;
}

/* CTA */
.cta-block {
  background: var(--dark);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 14px;
}
.cta-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  margin-bottom: 8px;
}
.cta-block p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  line-height: 1.6;
}
.cta-email-wrap {
  display: inline-block;
  background: var(--teal);
  border-radius: 9px;
  padding: 12px 28px;
  text-decoration: none;
  margin-bottom: 10px;
}
.cta-email-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 3px;
}
.cta-email-addr {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.btn-restart {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  width: 100%;
}
.btn-restart:hover { color: var(--teal); }
