/*
 * ============================================================================
 * Practical Enlightenment - v2 (iframe) landing, additive styles
 * ============================================================================
 * Loaded AFTER styles.css, which already provides the page shell and the modal
 * chrome (.modal-backdrop, .modal, .btn, .modal-icon, .modal-text). This file
 * only adds what the v2 introduces: the questionnaire panes, the Substack embed
 * wrapper and the fallback CTA. Kept separate so the v1 stylesheet is never
 * touched (a stale-CSS skew already bit this project once).
 * ============================================================================
 */

/* The hero block is a plain div in v2 (no <form>): keep the v1 rhythm. */
.hero .subscribe { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero .subscribe .btn { align-self: stretch; justify-content: center; }

/* ------------------------------ Quiz pane -------------------------------- */
/* Only the QUESTION pane goes left-aligned — answers are a list and read badly
   centred. The embed and thank-you panes keep the centred modal layout the rest of
   the site uses; left-aligning the whole modal knocked their icon, title, text and
   button out of line with each other. */
.js-quiz-pane { text-align: left; }
.js-quiz-pane h2 { text-align: left; margin-bottom: 18px; }

.quiz-progress {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.quiz-hint {
  margin: -10px 0 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.quiz-choices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.quiz-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 2px solid #eee4fa;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.35;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-choice:hover { border-color: #d9c6f4; background: #fbf8ff; }
.quiz-choice:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px var(--ring); }
.quiz-choice input { width: 18px; height: 18px; accent-color: var(--purple); flex: none; cursor: pointer; }
.quiz-choice:has(input:checked) { border-color: var(--purple); background: #f6f0ff; }
.quiz-choice:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.quiz-choice:has(input:disabled):hover { border-color: #eee4fa; background: #fff; }

.quiz-modal .js-next { width: 100%; justify-content: center; }
.quiz-modal .js-next:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------------------------- Substack embed ----------------------------- */
/* .embed-frame = inside the modal (earned by a score). .embed-inline = straight in
   the page, where the source has no questionnaire to gate it with. */
.embed-frame { display: flex; justify-content: center; margin-top: 6px; }
.embed-frame iframe { max-width: 100%; border-radius: 10px; }

.embed-inline { margin: 0 0 4px; }
.embed-inline iframe {
  max-width: 100%;
  border-radius: 14px;
  /* The iframe is Substack's own white form; give it the same lift as the hero
     button it replaces so it doesn't read as a foreign block dropped in. */
  box-shadow: 0 10px 30px -12px rgba(74, 32, 122, 0.35);
}

@media (max-width: 560px) {
  .embed-inline iframe { width: 100%; }
}

/* ------------------------------ Thanks pane ------------------------------ */
.js-sorry-pane .modal-text { margin-bottom: 22px; }
.sorry-cta {
  display: inline-flex;
  justify-content: center;
  margin-top: 4px;
  text-decoration: none;
}

@media (max-width: 560px) {
  .quiz-choice { padding: 12px 14px; }
  .embed-frame iframe { width: 100%; }
}
