/* Solara marketing quiz + personalized paywall */

.quiz-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.quiz-header {
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.quiz-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
}
.quiz-header .brand svg { width: 38px; height: 38px; }

/* ---- Step quiz ---- */
.quiz-stage {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 20px 80px;
  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: 14px;
  margin-bottom: 44px;
}
.quiz-back {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.15rem;
  transition: border-color var(--transition), background var(--transition);
}
.quiz-back:hover { border-color: var(--clay); }
.quiz-progress-track {
  flex-grow: 1;
  height: 8px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--clay), #d08d68);
  border-radius: 999px;
  transition: width var(--transition);
}
.quiz-progress-count {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}

.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 on the left, image on the right (melab-style) */
.quiz-row {
  display: flex;
  align-items: center;
  gap: 56px;
}
.quiz-col-content { flex: 1; min-width: 0; }
.quiz-col-image { flex-shrink: 0; }
.quiz-col-image picture { display: block; }
.quiz-col-image img {
  width: 400px;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
}

/* Paywall reveal — slides up from below, starting just after the quiz leaves */
.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); }
.quiz-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  margin-bottom: 32px;
}
.quiz-options { display: flex; flex-direction: column; gap: 14px; }
.quiz-option {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.quiz-option:hover {
  border-color: var(--clay);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.quiz-option.selected {
  border-color: var(--clay);
  background: rgba(180, 112, 82, 0.08);
}
.quiz-ready-note { text-align: left; color: var(--muted); margin-bottom: 28px; }
.quiz-ready-btn { min-width: 220px; }

/* ---- Paywall ---- */
.pw-hero { padding-top: 64px; }
.pw-title { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.pw-plan-wrap { max-width: 460px; margin: 36px auto 0; text-align: left; }
.pw-plan-wrap .price-card { box-shadow: var(--shadow); }
.pw-cta { width: 100%; }
.pw-guarantee { margin-top: 16px; font-size: 0.9rem; color: var(--muted); text-align: center; }

.pw-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 40px;
}
.pw-feature {
  display: flex;
  gap: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 34px;
}
.pw-feature-icon { font-size: 2.6rem; line-height: 1; flex-shrink: 0; }
.pw-feature strong { display: block; font-size: 1.5rem; margin-bottom: 10px; color: var(--ink); }
.pw-feature p { font-size: 1.18rem; line-height: 1.6; }

.pw-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 40px;
}
.pw-compare-col { display: flex; flex-direction: column; }
.pw-compare-head {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--ink);
  text-align: center;
}
.pw-compare-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.pw-compare-arrow { color: var(--clay); width: 76px; 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: 18px; }
.pw-compare-col li { position: relative; padding-left: 32px; font-size: 1.08rem; font-weight: 500; color: var(--ink); }
.pw-without li::before { content: "✕"; position: absolute; left: 0; font-size: 1.2rem; color: #c8612f; font-weight: 700; }
.pw-with li::before { content: "✓"; position: absolute; left: 0; font-size: 1.2rem; color: var(--forest); font-weight: 700; }

.pw-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pw-trust-item {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 30px;
}
.pw-trust-num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: var(--clay); margin-bottom: 8px; }

.pw-final h2 { margin-bottom: 0; }

/* Expert endorsement (doctor quote + certification badges) */
.pw-expert {
  display: grid;
  grid-template-columns: 300px 1fr 260px;
  gap: 36px;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.pw-expert-photo { border-radius: var(--radius-sm); overflow: hidden; }
.pw-expert-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.pw-expert-quote { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 12px 8px; }
.pw-expert-quote p { color: var(--ink); font-size: 1.18rem; line-height: 1.6; }
.pw-expert-quote strong { font-weight: 700; }
.pw-expert-name {
  margin-top: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--rosewood);
}
.pw-expert-role { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.pw-expert-qmark {
  position: absolute;
  right: 8px;
  bottom: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--clay);
  opacity: 0.6;
}
.pw-expert-badges { display: flex; flex-direction: column; gap: 16px; }
.pw-badge {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--paper);
}
.pw-badge-mark {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(180, 112, 82, 0.12);
  color: var(--clay);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
}
.pw-badge-text { display: flex; flex-direction: column; line-height: 1.25; }
.pw-badge-text span { font-size: 0.82rem; color: var(--muted); }
.pw-badge-text strong { font-size: 1.15rem; font-weight: 700; color: var(--clay); letter-spacing: 0.02em; }
.pw-badge--accent { background: var(--clay); border-color: var(--clay); }
.pw-badge--accent .pw-badge-mark { background: rgba(255, 255, 255, 0.18); color: #fff; }
.pw-badge--accent .pw-badge-text span { color: rgba(255, 248, 242, 0.8); }
.pw-badge--accent .pw-badge-text strong { color: #fff; }

/* Stack the step: image on top, content below */
@media screen and (max-width: 860px) {
  .quiz-row { flex-direction: column-reverse; gap: 28px; }
  .quiz-col-content { width: 100%; }
  .quiz-col-image { width: 100%; }
  .quiz-col-image img { width: 100%; height: auto; }
  .quiz-question { text-align: center; }
  .quiz-ready-note { text-align: center; }
  .quiz-ready-btn { display: flex; margin: 0 auto; }
}

@media screen and (max-width: 720px) {
  .pw-features, .pw-compare, .pw-trust { grid-template-columns: 1fr; }
  .pw-compare-img { max-width: 240px; align-self: center; margin-bottom: 20px; }
  .pw-compare-arrow { transform: rotate(90deg); justify-self: center; width: 60px; margin: 6px 0; }
  .pw-expert { grid-template-columns: 1fr; }
  .pw-expert-photo img { height: 320px; min-height: 0; object-position: top center; }
  .pw-expert-qmark { display: none; }
  .quiz-progress { margin-bottom: 30px; }
  .quiz-stage { padding-top: 32px; }
}
