/* WellShape marketing quiz + personalized paywall */

.quiz-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--off-white);
}

.quiz-header {
  padding: var(--s5) var(--s8);
  border-bottom: 1px solid var(--cream-dk);
  display: flex;
  justify-content: center;
  background: var(--white);
}

/* ---- Step quiz ---- */
.quiz-stage {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--s16) var(--s5) var(--s24);
  transition: opacity 260ms ease, transform 380ms cubic-bezier(0.4, 0, 0.2, 1);
}
.quiz-stage[hidden] { display: none; }
.quiz-stage.fade-out { opacity: 0; transform: translateY(-110px); z-index: 10; }

.quiz-progress {
  width: min(100%, 920px);
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s16);
}
.quiz-back {
  background: transparent;
  border: 1.5px solid var(--mist);
  border-radius: var(--r-pill);
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--charcoal);
  font-size: 1.15rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.quiz-back:hover { border-color: var(--teal); color: var(--teal); }
.quiz-progress-track {
  flex-grow: 1;
  height: 8px;
  background: var(--teal-pale);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--teal), var(--teal-md));
  border-radius: var(--r-pill);
  transition: width 0.32s ease;
}
.quiz-progress-count {
  flex-shrink: 0;
  font-family: var(--ff-body);
  font-weight: var(--fw-semi);
  font-size: 0.9rem;
  color: var(--slate);
}

.quiz-card {
  width: min(100%, 920px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.quiz-card.leaving { opacity: 0; transform: translateY(10px); }

/* Two-column step: content left, image right */
.quiz-row {
  display: flex;
  align-items: center;
  gap: var(--s12);
}
.quiz-col-content { flex: 1; min-width: 0; text-align: left; }
.quiz-col-image { flex-shrink: 0; }
.quiz-col-image img {
  width: 380px;
  height: 460px;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  display: block;
}

/* Paywall reveal */
.paywall { transition: opacity 380ms ease 90ms, transform 440ms cubic-bezier(0.2, 0.8, 0.2, 1) 90ms; }
.paywall.pw-enter { opacity: 0; transform: translateY(72px); }
.paywall[hidden] { display: none; }

.quiz-question {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  margin-bottom: var(--s10);
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  text-align: left;
}
.quiz-option {
  background: var(--white);
  border: 1.5px solid var(--cream-dk);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s6);
  text-align: left;
  font-family: var(--ff-body);
  font-size: 1.05rem;
  font-weight: var(--fw-med);
  color: var(--charcoal);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.quiz-option:hover {
  border-color: var(--teal-lt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.quiz-option.selected {
  border-color: var(--teal);
  background: var(--teal-xpale);
}
.quiz-ready-note { color: var(--slate); margin-bottom: var(--s8); font-size: 1.05rem; line-height: 1.6; }
.quiz-ready-btn { min-width: 220px; }

/* ---- Paywall hero ---- */
.pw-hero { padding-top: var(--s20); text-align: center; }
.pw-title { margin: var(--s5) 0; font-family: var(--ff-display); font-weight: var(--fw-bold); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--charcoal); }
.pw-title em { font-style: italic; color: var(--teal); }
.pw-lead { max-width: 640px; margin: 0 auto; color: var(--slate); font-size: 1.1rem; line-height: 1.7; }
.pw-plan-wrap { max-width: 440px; margin: var(--s12) auto 0; text-align: left; }
.pw-cta { width: 100%; justify-content: center; }
.pw-guarantee { margin-top: var(--s5); font-size: 0.9rem; color: var(--slate); text-align: center; }

/* Feature grid on the paywall */
.pw-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s6);
  margin-top: var(--s10);
}
.pw-feature {
  display: flex;
  gap: var(--s5);
  background: var(--white);
  border: 1px solid var(--cream-dk);
  border-radius: var(--r-lg);
  padding: var(--s8);
  box-shadow: var(--shadow-xs);
}
.pw-feature-icon { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }
.pw-feature strong { display: block; font-family: var(--ff-display); font-size: 1.3rem; margin-bottom: var(--s2); color: var(--charcoal); }
.pw-feature p { font-size: 1rem; line-height: 1.6; color: var(--slate); }

/* ---- Compare block (Without / With WellShape) ---- */
.pw-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s10);
  align-items: center;
  margin-top: var(--s10);
}
.pw-compare-col { display: flex; flex-direction: column; }
.pw-compare-head {
  font-family: var(--ff-display);
  font-weight: var(--fw-semi);
  font-size: 1.5rem;
  margin-bottom: var(--s5);
  color: var(--charcoal);
  text-align: center;
}
.pw-compare-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-xl);
  margin-bottom: var(--s6);
  box-shadow: var(--shadow-md);
}
.pw-compare-arrow { color: var(--teal); width: 64px; flex-shrink: 0; }
.pw-compare-arrow svg { width: 100%; height: auto; display: block; }
.pw-compare-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s4); }
.pw-compare-col li { position: relative; padding-left: 28px; font-size: 1rem; font-weight: var(--fw-med); color: var(--charcoal); }
.pw-without li::before { content: "✕"; position: absolute; left: 0; font-size: 1.1rem; color: var(--coral); font-weight: 700; }
.pw-with li::before { content: "✓"; position: absolute; left: 0; font-size: 1.1rem; color: var(--teal); font-weight: 700; }

/* ---- FF checkout modal + consent gate ---- */
.ff-checkout-modal { position: fixed; inset: 0; z-index: 220; display: none; }
.ff-checkout-modal.open { display: block; }
.ff-checkout-backdrop { position: absolute; inset: 0; background: rgba(30, 45, 58, 0.62); }
.ff-checkout-panel {
  position: relative; z-index: 1;
  width: min(100% - 32px, 560px);
  max-height: calc(100vh - 48px);
  margin: 24px auto; padding: 24px 22px 26px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--cream-dk);
  overflow-y: auto;
}
.ff-checkout-title { font-family: var(--ff-display); font-size: 30px; line-height: 1.1; color: var(--charcoal); }
.ff-checkout-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: var(--r-pill);
  border: 1px solid var(--mist); background: var(--white); color: var(--charcoal); cursor: pointer;
}
.ff-checkout-subtitle { margin-top: var(--s4); color: var(--slate); }
.ff-checkout-lead { display: grid; gap: var(--s3); margin-top: var(--s5); }
.ff-checkout-lead .btn { justify-content: center; }
.ff-input {
  width: 100%; padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--mist); background: #fff; color: var(--charcoal);
  font-family: var(--ff-body); font-size: 15px; outline: none;
}
.ff-input:focus { border-color: var(--teal-lt); box-shadow: 0 0 0 4px var(--teal-pale); }
.ff-checkout-error { margin: 12px 0 0; color: #b42318; font-weight: var(--fw-semi); }
.ff-checkout-container { position: relative; min-height: 220px; margin-top: 16px; }
.ff-checkout-modal.has-checkout .ff-checkout-lead,
.ff-checkout-modal.has-checkout .ff-checkout-subtitle { display: none; }
.ff-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }

.ff-gate { display: none; margin-top: var(--s5); }
.ff-checkout-modal.has-checkout .ff-gate { display: block; }
.ff-checkout-modal.has-checkout .ff-checkout-container button { display: none !important; }
.ff-gate-banner {
  display: none; background: var(--teal); color: #fff; text-align: center;
  font-family: var(--ff-body); font-weight: var(--fw-semi); line-height: 1.5;
  padding: var(--s4) var(--s5); border-radius: var(--r-md); margin-bottom: var(--s4);
}
.ff-checkout-modal.ff-has-banner .ff-gate-banner { display: block; }
.ff-gate-note { display: none; color: var(--slate); font-size: 0.86rem; line-height: 1.6; margin: 0 0 var(--s4); }
.ff-checkout-modal.ff-has-banner .ff-gate-note { display: block; }
.ff-gate-consent { display: flex; gap: var(--s3); align-items: flex-start; font-size: 0.86rem; color: var(--charcoal); margin: var(--s3) 0; line-height: 1.5; }
.ff-gate-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--teal); flex-shrink: 0; }
.ff-gate-consent a { color: var(--teal); text-decoration: underline; }
#ffGatePay { width: 100%; justify-content: center; margin-top: var(--s4); }
#ffGatePay:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---- Responsive ---- */
@media screen and (max-width: 860px) {
  .quiz-row { flex-direction: column-reverse; gap: var(--s8); }
  .quiz-col-content { width: 100%; text-align: center; }
  .quiz-col-image { width: 100%; }
  .quiz-col-image img { width: 100%; height: auto; max-height: 340px; }
  .quiz-options { text-align: left; }
  .quiz-ready-btn { display: inline-flex; }
}

@media screen and (max-width: 720px) {
  .pw-features { grid-template-columns: 1fr; }
  .quiz-stage { padding-top: var(--s10); }
  .quiz-progress { margin-bottom: var(--s10); }
  .quiz-question { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .pw-compare { grid-template-columns: 1fr; gap: var(--s6); }
  .pw-compare-arrow { transform: rotate(90deg); justify-self: center; width: 52px; margin: var(--s2) 0; }
  .pw-compare-img { max-width: 300px; align-self: center; }
}
