/* ===== QUIZ LAYOUT ===== */
.quiz-main {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(24px, 6vw, 64px) var(--pad) 120px;
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
}
.quiz-screen { display: flex; flex-direction: column; gap: 24px; }

.nav-back {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--ink);
  cursor: pointer; transition: transform 0.15s ease, opacity 0.2s ease;
}
.nav-back[hidden] { display: none; }
.nav-back:hover { transform: translateX(-2px); opacity: 0.6; }
.quiz-kicker {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0;
}
.quiz-question {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.08;
  letter-spacing: -0.02em; margin: 0; color: var(--ink);
}
.quiz-body { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 52ch; }
.quiz-actions { margin-top: 8px; display: flex; gap: 12px; align-items: center; }

/* Success screen: numbered start-up steps + store buttons */
.success-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: 0 30px 60px -32px rgba(26,24,20,0.22); padding: 26px 24px; margin-top: 22px; max-width: 52ch; }
.success-steps-title { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 3vw, 24px); letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.success-steps { margin: 16px 0 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 14px; }
.success-steps li { font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.success-steps li strong { color: var(--ink); font-weight: 700; }
.success-stores { margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.success-stores .btn { display: inline-flex; align-items: center; gap: 8px; }
.store-ic { flex: none; display: block; }
.success-support { margin-top: 22px; }
.success-support-link { text-decoration: underline; }

/* ===== HEADER NAV (back+logo | chapter | menu) ===== */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.nav-left { display: flex; align-items: center; gap: 8px; justify-self: start; min-width: 0; }
.nav-chapter {
  justify-self: center; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48vw;
}
.menu-btn { justify-self: end; }

/* ===== PROGRESS (full-width, below the nav) ===== */
.quiz-progress { display: flex; gap: 3px; width: 100%; padding: 8px 0 0; background: #fff; }
.quiz-progress[hidden] { display: none; }
.quiz-progress .seg { border-radius: 0; }
.quiz-progress .seg:first-child { border-radius: 999px 0 0 999px; }
.quiz-progress .seg:last-child { border-radius: 0 999px 999px 0; }
.quiz-progress .seg { flex: 1; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.quiz-progress .seg > i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.4s ease; }
.quiz-progress .seg.done > i { width: 100%; }

/* ===== HAMBURGER BUTTON ===== */
.menu-btn {
  flex-shrink: 0; width: 40px; height: 40px; border: 0; background: transparent;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; border-radius: 10px; cursor: pointer; transition: background 0.2s ease;
}
.menu-btn:hover { background: var(--warm-white-2); }
.menu-btn span {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MENU PANEL ===== */
.menu-overlay { position: fixed; inset: 0; z-index: 2000; }
.menu-backdrop {
  position: absolute; inset: 0; background: rgba(26, 24, 20, 0.35);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: modalFade 0.2s ease;
}
.menu-panel {
  position: absolute; top: 14px; right: clamp(12px, 3vw, 24px);
  width: min(320px, calc(100vw - 24px));
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -24px rgba(26, 24, 20, 0.35);
  padding: 20px; animation: modalPop 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.menu-close {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0;
  background: transparent; font-size: 24px; line-height: 1; color: var(--ink-muted);
  cursor: pointer; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-close:hover { background: var(--warm-white-2); color: var(--ink); }
.menu-links { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.menu-links > a, .menu-soon {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 10px; border-radius: 10px; font-size: 15px; color: var(--ink);
}
.menu-links > a { transition: background 0.2s ease; text-decoration: none; }
.menu-links > a:hover { background: var(--warm-white-2); }
.menu-soon { color: var(--ink-muted); cursor: default; }
.menu-soon em {
  font-style: normal; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 8px;
}

/* ===== OPTIONS ===== */
.opt-list { display: flex; flex-direction: column; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: rgba(255,255,255,0.6); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; font-size: 16px; color: var(--ink);
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.opt:hover { border-color: rgba(26,24,20,0.25); transform: translateY(-1px); }
.opt[aria-pressed="true"], .opt.selected {
  border-color: var(--ink); background: #fff;
  box-shadow: 0 0 0 1px var(--ink) inset;
}
.opt .check { margin-left: auto; opacity: 0; font-weight: 700; color: #0E7F4F; }
.opt.selected .check { opacity: 1; }

/* Photo-card options (gender, age) */
.opt-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.opt-card {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  background: rgba(255,255,255,0.6); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px; cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.opt-card:hover { transform: translateY(-2px); }
.opt-card.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.opt-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); }
.opt-card span { font-size: 16px; }

/* Yes/No */
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.yesno .opt { justify-content: center; font-size: 18px; }

/* ===== PROFILE CARD ===== */
.profile-card {
  background: radial-gradient(ellipse at top right, rgba(217,201,244,0.5), transparent 70%),
    radial-gradient(ellipse at bottom left, rgba(244,201,216,0.4), transparent 70%), #fff;
  border: 1px solid rgba(181,140,201,0.25); border-radius: var(--r-xl);
  box-shadow: 0 40px 80px -28px rgba(181,140,201,0.3); padding: 32px;
}
.profile-row { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.profile-row:last-child { border-bottom: 0; }
.profile-row .label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.profile-row .value { font-size: 17px; color: var(--ink); }
.meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 6px; }
.meter > i { display: block; height: 100%; background: linear-gradient(120deg,#B58CC9,#8FA6D6,#D89BB0); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--warm-white-2); border: 1px solid var(--line); }

/* ===== ANALYSIS LOADER ===== */
.loader-ring { width: 72px; height: 72px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--ink); animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.loader-item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-muted); opacity: 0.4; transition: opacity 0.3s ease, color 0.3s ease; }
.loader-item.done { opacity: 1; color: var(--ink); }
.loader-item .tick { color: #0E7F4F; font-weight: 700; }

/* ===== PLACEHOLDER BADGE ===== */
.ph-badge { display: inline-block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 10px; }

/* ===== RESULTS TIMELINE ===== */
.tl-card { position: relative; background: rgba(255,255,255,0.6); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px 16px; }
.tl-svg { width: 100%; height: 150px; display: block; }
.tl-start { position: absolute; left: 18px; bottom: 46px; }
.tl-end { position: absolute; right: 18px; top: 18px; background: linear-gradient(120deg, var(--pink), var(--purple)); border-color: transparent; }
.tl-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); margin-top: 4px; }
/* Path uses pathLength="1" so the draw works regardless of length; it grows in when scrolled to */
.tl-path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.tl-dot { opacity: 0; }
.pw-block.is-visible .tl-path { animation: tlDraw 1.8s cubic-bezier(0.22,0.61,0.36,1) forwards; }
.pw-block.is-visible .tl-dot { animation: tlDot 0.4s ease forwards 1.6s; }
@keyframes tlDraw { to { stroke-dashoffset: 0; } }
@keyframes tlDot { to { opacity: 1; } }

/* ===== STRIPE CHECKOUT MODAL (placeholder) ===== */
.stripe-modal .stripe-sum { margin: 8px 0 16px; }
.stripe-modal .modal-field { margin-bottom: 14px; }
.stripe-modal .modal-field input[readonly] { background: var(--warm-white-2); color: var(--ink-soft); }
.stripe-card-ph { border: 1px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; margin-bottom: 16px; background: rgba(255,255,255,0.5); }
.stripe-modal .modal-submit { width: 100%; }

/* ===== PLAN PREVIEW ===== */
.plan-day {
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(255,255,255,0.6); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px;
}
.plan-day-text { font-size: 16px; line-height: 1.5; color: var(--ink); }

/* ===== REVIEW ===== */
.review-card { background: rgba(255,255,255,0.6); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.review-card p { font-family: var(--serif); font-size: 20px; line-height: 1.4; margin: 10px 0 14px; }
.review-card footer { font-size: 14px; color: var(--ink-muted); }

/* ===== PAYWALL ===== */
/* One long scrolling page of blocks */
.paywall-page { gap: 36px; }
.paywall-page > .quiz-question { text-align: center; }
/* Goal verse (after the Faith profile) */
.pw-goal-verse { text-align: center; }
.pw-verse {
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.3; color: var(--ink); margin: 0 auto; padding: 0; border: 0; max-width: 40ch;
}
.pw-verse cite {
  display: block; margin-top: 12px; font-style: normal;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
}
.pw-block { display: flex; flex-direction: column; gap: 16px; }
.pw-section-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3.4vw, 28px);
  line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin: 0;
}
.pw-source { font-size: 13px; line-height: 1.4; color: var(--ink-muted); margin: 0; }
.pw-row-helper { font-size: 13px; line-height: 1.4; color: var(--ink-muted); margin: 0 0 0 54px; }
/* Prayer stat as a pull-quote */
.pw-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.45; color: var(--ink); margin: 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--purple, #B58CC9);
}
/* Small "Source" with the full citation on hover/focus */
.pw-source-note { position: relative; cursor: help; border-bottom: 1px dotted var(--ink-muted); }
.pw-source-full {
  position: absolute; bottom: 150%; left: 0; z-index: 5;
  background: var(--ink); color: #fff; font-size: 12px; line-height: 1.4;
  padding: 8px 11px; border-radius: 10px; width: max-content; max-width: 280px;
  box-shadow: 0 10px 24px -10px rgba(26,24,20,0.4);
  opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity 0.18s ease, transform 0.18s ease;
}
.pw-source-note:hover .pw-source-full, .pw-source-note:focus .pw-source-full { opacity: 1; transform: translateY(0); }
/* "Your Plan" is one white card: graph title + graph + quote + source + rows */
.pw-plan-card { padding: 24px; display: flex; flex-direction: column; gap: 18px; overflow: visible; }
.pw-graph-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2; color: var(--ink); margin: 0; text-align: center;
}
.tl-plain { background: none; border: 0; backdrop-filter: none; padding: 24px 0 16px; }
/* Carousel */
.pw-carousel {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad);
}
.pw-carousel::-webkit-scrollbar { display: none; }
.pw-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 14px; }
@media (min-width: 620px) { .pw-slide { flex-basis: 48%; } }
/* Feature creatives (full marketing images; no device frame) */
.pw-slide-img {
  display: block; width: min(320px, 88%); height: auto;
  border-radius: 22px;
  box-shadow: 0 30px 60px -28px rgba(26,24,20,0.35);
}
.pw-slide-img.pw-slide-ph {
  width: 72%; aspect-ratio: 9 / 19; object-fit: contain;
  padding: 30%; opacity: 0.55; background: var(--warm-white-2);
}
.pw-slide-cap { font-size: 15px; line-height: 1.45; color: var(--ink); text-align: center; margin: 0; max-width: 28ch; }
.pw-dots { display: flex; justify-content: center; gap: 8px; }
.pw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
  /* keep the dot visually 8px but give it a 40px-tall tap target */
  box-sizing: content-box; padding: 16px 10px; background-clip: content-box; }
.pw-dot.active { background-color: var(--ink); transform: scale(1.2); }
.pw-ph-reviews { border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 16px; }
.pw-summary { font-size: 15px; color: var(--ink-soft); }
.pw-inside { display: flex; flex-direction: column; gap: 10px; }
.pw-inside li { display: flex; gap: 10px; }
.pw-inside li::before { content: "✓"; color: #0E7F4F; font-weight: 700; }
/* Plan selector (Yearly / Monthly / Lifetime) */
.plans { display: flex; flex-direction: column; gap: 12px; }
.plan {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.plan:hover { border-color: rgba(26,24,20,0.25); }
.plan.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.plan-badge {
  position: absolute; top: -10px; left: 20px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm-white);
  background: var(--ink); border-radius: 999px; padding: 3px 12px;
}
.plan-radio {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.2s ease;
}
.plan.selected .plan-radio { border-color: var(--ink); background: var(--ink); }
.plan.selected .plan-radio::after { content: "✓"; color: var(--warm-white); font-size: 13px; font-weight: 700; }
.plan-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.plan-name { font-size: 19px; font-weight: 600; }
.plan-perks { font-size: 13px; color: var(--ink-muted); }
.plan-pricebox { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex-shrink: 0; }
.plan-price { font-size: 20px; font-weight: 600; white-space: nowrap; }
.plan-price small { font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.plan-old { font-size: 13px; color: var(--ink-muted); text-decoration: line-through; }
.plan-discount { font-size: 12px; font-weight: 600; color: #0E7F4F; }

/* Free-subscription ask + donation upsell */
.pw-free { text-align: center; }
.pw-donate {
  background: rgba(255,255,255,0.6); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
}
.pw-donate-text { font-size: 15px; line-height: 1.45; color: var(--ink); margin: 0; }
.pw-donate-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pw-stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: #fff; }
.pw-step {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--warm-white-2);
  color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s ease;
}
.pw-step:hover:not(:disabled) { background: var(--line); }
.pw-step:disabled { opacity: 0.35; cursor: default; }
.pw-donate-count { min-width: 90px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink); }
.pw-donate-amt { font-size: 15px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.pw-donate-optout { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.pw-donate-optout input { width: 16px; height: 16px; accent-color: var(--ink); flex-shrink: 0; }
.pw-donate.is-optout .pw-stepper, .pw-donate.is-optout .pw-donate-amt { opacity: 0.4; }

.pw-fineprint { font-size: 13px; color: var(--ink-muted); text-align: center; }
.pw-checkout-err { font-size: 13px; color: #b00020; text-align: center; margin-top: 10px; }
.modal-consent { font-size: 12px; line-height: 1.5; color: var(--ink-muted); text-align: left; margin: 2px 0 12px; }

/* Checkout breakdown */
.ck-card { text-align: left; padding: 22px 24px; }
.ck-row { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; padding: 8px 0; color: var(--ink-soft); }
.ck-row.ck-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-weight: 600; font-size: 18px; color: var(--ink); }
.pw-faq summary { font-size: 18px; }

/* ===== EMAIL ===== */
.email-field input { width: 100%; font-size: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.email-field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(220,228,255,0.6); }
.email-note { font-size: 14px; margin-top: 6px; min-height: 0; color: var(--ink-muted); }
.email-note:empty { margin-top: 0; }
.email-note.warn { color: #9A6A12; font-weight: 500; }
.email-note.error { color: #B33A3A; font-weight: 500; }
.email-field.is-warn input,
.email-field.is-warn input:focus { border-color: #C98A1E; box-shadow: 0 0 0 3px rgba(201, 138, 30, 0.16); outline: none; }
.email-field.is-error input,
.email-field.is-error input:focus { border-color: #B33A3A; box-shadow: 0 0 0 3px rgba(179, 58, 58, 0.16); outline: none; }
.email-privacy { font-size: 13px; color: var(--ink-muted); margin-top: 6px; }

/* ===== FIXED ACTION BAR (Continue / Next) ===== */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 16px var(--pad) calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--warm-white) 60%, rgba(251, 248, 243, 0));
  pointer-events: none;
}
.action-bar[hidden] { display: none; }
.action-bar > * { pointer-events: auto; }
.action-bar .btn { min-width: 260px; }

/* ===== DEV/TEST FOOTER (remove before launch) ===== */
.quiz-footer { position: relative; z-index: 1; text-align: center; padding: 24px var(--pad) 48px; }
.quiz-restart {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: transparent; border: 1px dashed var(--line); color: var(--ink-muted);
  border-radius: 999px; padding: 8px 16px; font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}
.quiz-restart:hover { background: var(--warm-white-2); color: var(--ink); }

/* Source caption on info screens */
.info-caption { font-size: 13px; line-height: 1.4; color: var(--ink-muted); margin: -8px 0 0; }

/* Consent line under the gender cards on the first screen */
.hook-consent { font-size: 12px; line-height: 1.45; color: var(--ink-muted); text-align: center; max-width: 42ch; margin: 18px auto 0; }
.hook-consent a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

/* ===== WELCOME (branch 2a/2b) — no card, left-aligned, question-size title ===== */
.welcome-screen { gap: 18px; }
.welcome-lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.welcome-benefits { margin-top: 2px; }
.welcome-intro { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.welcome-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.welcome-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.welcome-list li::before {
  content: ""; flex-shrink: 0; margin-top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(120deg, var(--pink, #D89BB0), var(--purple, #B58CC9));
}

/* ===== VERSE SCREEN (#8) ===== */
.verse-screen { gap: 18px; }
.verse-text {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 4.4vw, 38px); line-height: 1.2; letter-spacing: -0.01em;
  color: var(--ink); margin: 0; padding: 0; border: 0;
}
.verse-ref {
  margin: 0; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
}
.verse-line { font-size: 18px; line-height: 1.5; color: var(--ink); margin: 0; }

/* ===== FAITH PROFILE (#11) ===== */
.faith-profile { gap: 20px; }

/* Header above the cards — the thought becomes the headline */
.fp-header { text-align: center; }
.fp-headline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 5vw, 38px); line-height: 1.12; letter-spacing: -0.02em;
  color: var(--ink); margin: 0;
}
.fp-subhead { font-size: 18px; color: var(--ink-soft); margin: 8px 0 0; }

/* Shared card */
.fp-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: 0 30px 60px -32px rgba(26,24,20,0.22); overflow: hidden;
}
.fp-card-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3.6vw, 28px);
  line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin: 0; text-align: center;
}

/* Card 1 — character */
.fp-photo-wrap { position: relative; }
.fp-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fp-photo-ph { display: grid; place-items: center; background: var(--warm-white-2); }
.fp-photo-ph img { width: 30%; opacity: 0.6; }
.fp-name-badge {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap; max-width: 90%;
  box-shadow: 0 8px 20px -8px rgba(26,24,20,0.28);
}
.fp-card-body { padding: 30px 26px 28px; text-align: center; display: flex; flex-direction: column; gap: 16px; }
.fp-story { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.fp-verse {
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3vw, 24px);
  line-height: 1.32; color: var(--ink); margin: 0; padding: 0; border: 0;
}
.fp-verse cite {
  display: block; margin-top: 10px; font-style: normal;
  font-size: 13px; letter-spacing: 0.06em; color: var(--ink-muted);
}

/* Card 2 — distance from God */
.fp-card-distance { padding: 28px 26px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.fp-circle {
  position: relative; overflow: hidden;
  width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(181,140,201,0.14);
  box-shadow: 0 20px 40px -16px rgba(181,140,201,0.5);
}
/* Two soft blurred blobs drift inside the sphere */
.fp-circle::before, .fp-circle::after { content: ""; position: absolute; border-radius: 50%; filter: blur(16px); }
.fp-circle::before {
  width: 100px; height: 100px; left: 6px; top: 2px;
  background: radial-gradient(circle, rgba(217,155,176,0.95), rgba(217,155,176,0) 70%);
  animation: fpSphereA 7s ease-in-out infinite alternate;
}
.fp-circle::after {
  width: 92px; height: 92px; right: 4px; bottom: 2px;
  background: radial-gradient(circle, rgba(143,166,214,0.85), rgba(143,166,214,0) 70%);
  animation: fpSphereB 9s ease-in-out infinite alternate;
}
.fp-circle span { position: relative; z-index: 1; font-family: var(--serif); font-size: 24px; color: var(--ink); }
@keyframes fpSphereA { from { transform: translate(-10px,-6px) scale(1); } to { transform: translate(14px,12px) scale(1.18); } }
@keyframes fpSphereB { from { transform: translate(12px,10px) scale(1.12); } to { transform: translate(-12px,-10px) scale(0.92); } }

/* Closeness bar (used inside the distance card) */
.fp-bar { width: 100%; max-width: 420px; }
.fp-bar-labels {
  display: flex; justify-content: space-between; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px;
}
.fp-bar-track { position: relative; height: 10px; border-radius: 999px; background: var(--line); }
.fp-bar-fill {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(120deg,#B58CC9,#8FA6D6,#D89BB0);
  transition: width 1.2s cubic-bezier(0.22,0.61,0.36,1);
}
.fp-bar-bird {
  position: absolute; top: 50%; left: 0; transform: translate(-50%,-50%);
  color: var(--purple, #B58CC9); transition: left 1.2s cubic-bezier(0.22,0.61,0.36,1);
}
.fp-bird { width: 22px; height: 22px; display: block; filter: drop-shadow(0 2px 4px rgba(181,140,201,0.5)); }
.fp-bar-line { font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin: 0; text-align: center; max-width: 420px; }

/* Card 3 — plan timeline */
.fp-card-plan { padding: 28px 26px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.fp-progress-badge {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: #0E7F4F; background: #E3F2EA; border-radius: 999px; padding: 5px 14px;
}
.fp-timeline { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 360px; position: relative; display: flex; flex-direction: column; gap: 22px; }
.fp-timeline::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.fp-tl-item { position: relative; display: flex; align-items: center; gap: 14px; }
.fp-tl-dot {
  position: relative; z-index: 1; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
  background: #fff; border: 2px solid var(--line); color: var(--ink-muted);
}
.fp-tl-label { font-size: 16px; color: var(--ink); }
.fp-tl-done .fp-tl-dot { background: #E3F2EA; border-color: #0E7F4F; color: #0E7F4F; }
.fp-tl-current .fp-tl-dot { background: linear-gradient(120deg,var(--pink,#D89BB0),var(--purple,#B58CC9)); border-color: transparent; }
.fp-tl-coming .fp-tl-label { color: var(--ink-muted); }
.fp-tl-progress .fp-tl-dot { background: conic-gradient(var(--purple, #B58CC9) 0 50%, rgba(181,140,201,0.22) 50% 100%); border-color: transparent; }

/* ===== BIBLE PROFILE (Bible habits) ===== */
.bible-profile { gap: 20px; }
.bp-loader { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 0; }
.bp-loader[hidden] { display: none; }
.bp-loader-text { font-size: 16px; color: var(--ink-soft); margin: 0; }
.bp-loader.done .loader-ring { display: none; }
.bp-loader.done .bp-loader-text { color: #0E7F4F; font-weight: 600; }
.bp-reveal { display: flex; flex-direction: column; gap: 20px; }
.bp-reveal[hidden] { display: none; }
.bp-reveal.bp-in > * { animation: bpSlideIn 0.5s cubic-bezier(0.2,0.8,0.2,1) both; }
.bp-reveal.bp-in > *:nth-child(2) { animation-delay: 0.12s; }
.bp-reveal.bp-in > *:nth-child(3) { animation-delay: 0.24s; }
@keyframes bpSlideIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.bp-meta { font-size: 14px; color: var(--ink-muted); margin: 4px 0 0; }
.bp-meta strong { color: var(--ink); font-weight: 600; }

/* Plan steps animate once the plan card scrolls into view, staggered 0.3s each */
.fp-card-plan .fp-tl-item { opacity: 0; }
.fp-card-plan.is-visible .fp-tl-item { animation: fpStepIn 0.5s cubic-bezier(0.2,0.8,0.2,1) forwards; animation-delay: calc(var(--i, 0) * 0.3s); }
@keyframes fpStepIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }

/* Check mark draws on for completed steps */
.fp-check { width: 15px; height: 15px; }
.fp-check path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.fp-card-plan.is-visible .fp-check path { animation: fpCheckDraw 0.4s ease forwards; animation-delay: calc(0.25s + var(--i, 0) * 0.3s); }
@keyframes fpCheckDraw { to { stroke-dashoffset: 0; } }

/* Current step (pink dot) pulses */
.fp-card-plan.is-visible .fp-tl-current .fp-tl-dot { animation: fpPulse 1.9s ease-in-out infinite; animation-delay: calc(0.5s + var(--i, 0) * 0.3s); }
@keyframes fpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(181,140,201,0.55); transform: scale(1); }
  50% { box-shadow: 0 0 0 9px rgba(181,140,201,0); transform: scale(1.09); }
}

/* ===== SOUL PROFILE (after email) — character card: image + chip on top, info below ===== */
.sp-title { margin: 0; }
.sp-body { padding: 36px 24px 24px; display: flex; flex-direction: column; gap: 22px; }
/* Scale */
.sp-scale-bar {
  position: relative; height: 12px; border-radius: 999px; margin: 26px 0 10px;
  background: linear-gradient(to right, #7FA8E0, #6FC28E, #EAC65A, #E88A6B);
}
.sp-tick { position: absolute; top: -4px; width: 2px; height: 20px; background: rgba(255,255,255,0.75); transform: translateX(-50%); border-radius: 2px; }
.sp-marker { position: absolute; top: 50%; left: 0; transform: translate(-50%,-50%); z-index: 2; transition: left 1.2s cubic-bezier(0.22,0.61,0.36,1); }
.sp-marker-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 4px 10px rgba(26,24,20,0.3); }
.sp-marker-tip { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.sp-marker-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.sp-scale-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); }
/* Status box */
.sp-status { border-radius: var(--r-lg); padding: 18px 20px; border: 1px solid; }
.sp-status-green  { background: #E8F5EC; border-color: #BEE3CB; }
.sp-status-yellow { background: #FBF3DA; border-color: #EEDFA6; }
.sp-status-coral  { background: #FBE8E2; border-color: #F3C9BB; }
.sp-status-title { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; margin: 0 0 6px; color: var(--ink); }
.sp-status-text { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
/* Answer rows */
.sp-rows { display: flex; flex-direction: column; gap: 10px; }
.sp-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.sp-row-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; background: var(--warm-white-2); }
.sp-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-row-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.sp-row-value { font-size: 16px; font-weight: 600; color: var(--ink); }
/* Media */
/* Image reuses the character-card .fp-photo (4:3, full-width top). Placeholder stays contained. */
.sp-photo-ph { object-fit: contain; background: var(--warm-white-2); padding: 48px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .opt-cards { gap: 10px; }
  .quiz-main { padding-bottom: 130px; }
  .quiz-progress { margin-inline: 0; }
  .price-card .amount { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .loader-ring { animation: none; }
  .quiz-progress .seg > i { transition: none; }
  .tl-path, .pw-block.is-visible .tl-path { animation: none; stroke-dashoffset: 0; }
  .tl-dot, .pw-block.is-visible .tl-dot { animation: none; opacity: 1; }
  .fp-bar-fill, .fp-bar-bird { transition: none; }
  .fp-circle::before, .fp-circle::after { animation: none; }
  .fp-card-plan .fp-tl-item { animation: none; opacity: 1; }
  .fp-check path { animation: none; stroke-dashoffset: 0; }
  .fp-card-plan .fp-tl-current .fp-tl-dot { animation: none; }
  .bp-reveal.bp-in > * { animation: none; }
  .sp-marker { transition: none; }
}
