/* SuperCognit · Self AI Assessment — quiz theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #05060a;
  --text: #ffffff;
  --text-dim: #c8ccd6;
  --text-faint: #b6bac6;
  --accent: #ff4400;
  --accent-2: #ff7a3d;
  --pink: #ff4400;
  --card-line: rgba(255, 255, 255, 0.12);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background on html only — body stays transparent so the fixed
   z-index:-1 ascii canvas is not painted over. */
html { background: var(--bg); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(255, 68, 0, 0.14) 0%, transparent 60%),
    radial-gradient(50% 50% at 90% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
    radial-gradient(60% 60% at 80% 90%, rgba(255, 255, 255, 0.04) 0%, transparent 65%),
    radial-gradient(70% 60% at 10% 90%, rgba(34, 51, 68, 0.6) 0%, transparent 70%),
    linear-gradient(180deg, #0a0c14 0%, #05060a 100%);
  filter: saturate(115%);
  animation: meshDrift 22s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1%, 0) scale(1.05); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

.quiz {
  max-width: 580px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  min-height: 100svh;
  display: flex;
  box-sizing: border-box;
}

/* Vertically centered card, safely: margin:auto keeps tall content scrollable */
#app {
  margin: auto 0;
  width: 100%;
}

/* --- Header (title + current section — no counts, no progress bar) ------- */

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.quiz-header-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.quiz-header-section {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-faint);
  padding: 5px 12px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

/* Progress ring shown on interstitial breaks */
.quiz-ring {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

.quiz-ring svg { width: 100%; height: 100%; }

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 6;
}

.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
}

.quiz-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

/* --- Progress track (used by the loading screen bars) -------------------- */

.quiz-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}

/* --- Card & typography --------------------------------------------------- */

.quiz-card { animation: cardIn 0.25s ease; }

/* Paywall pages stack several cards — give consecutive ones breathing room */
.quiz-card + .quiz-card { margin-top: 84px; }

/* --- Paywall scroll-reveal animations --------------------------------------
   .pw-reveal is added by JS only when motion is allowed, so reduced-motion
   users and no-IntersectionObserver browsers see everything immediately. */
.pw-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.pw-reveal.in { opacity: 1; transform: none; }

/* Ring dials sweep to their value when revealed */
.pw-ring .ring-fill {
  transition: stroke-dasharray 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

/* Journey steps cascade up the staircase after their section reveals */
.pw-reveal.pw-journey .jr-step {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i) * 110ms + 150ms);
}
.pw-reveal.pw-journey.in .jr-step { opacity: 1; transform: none; }

/* Bonus sheets fan out on reveal */
.pw-reveal.pw-bonus .pw-sheet.back,
.pw-reveal.pw-bonus .pw-sheet.mid {
  transform: none;
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s,
              opacity 0.6s ease 0.25s;
}
.pw-reveal.pw-bonus.in .pw-sheet.back { transform: rotate(-5deg) translateX(-14px); opacity: 0.55; }
.pw-reveal.pw-bonus.in .pw-sheet.mid  { transform: rotate(3.5deg) translateX(12px); opacity: 0.75; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

h1, h2 {
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 12px;
}

h1 {
  font-size: 32px;
  background: linear-gradient(135deg, #ffffff 0%, #ffd9c7 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quiz-question { font-size: 22px; line-height: 1.4; margin-bottom: 20px; }

p { color: var(--text-dim); }

.quiz-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent-2);
}

.quiz-sub { font-size: 15px; color: var(--text-faint); }

.quiz-note {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 68, 0, 0.35);
  border-radius: 12px;
  background: rgba(255, 68, 0, 0.08);
  color: var(--accent-2);
  font-size: 14px;
}

.quiz-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* --- Option cards -------------------------------------------------------- */

.quiz-options { display: flex; flex-direction: column; gap: 10px; }

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--card-line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  user-select: none;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.quiz-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.quiz-option::before {
  content: "";
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.quiz-option.selected,
.quiz-option:has(input:checked) {
  background: rgba(255, 68, 0, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 30px -10px rgba(255, 68, 0, 0.35);
}

.quiz-option.selected::before,
.quiz-option:has(input:checked)::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px #0a0a0c;
}

.quiz-consent { font-size: 15px; }
.quiz-consent::before { border-radius: 6px; }

.quiz-consent:has(input:checked)::before {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 70% no-repeat,
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: none;
}

/* --- Inputs -------------------------------------------------------------- */

.quiz-field { display: block; margin-bottom: 16px; }

.quiz-field > span {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.quiz-input,
.quiz-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--card-line);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  padding: 16px 18px;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quiz-input::placeholder,
.quiz-textarea::placeholder { color: #7a7f8e; opacity: 0.7; }

.quiz-input:focus,
.quiz-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 68, 0, 0.2), 0 0 24px rgba(255, 68, 0, 0.12);
  outline: none;
  background: rgba(255, 255, 255, 0.06);
}

/* --- Buttons ------------------------------------------------------------- */

.quiz-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.quiz-btn {
  flex: 1;
  height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(255, 68, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.quiz-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(255, 68, 0, 0.5);
  filter: brightness(1.05);
}

.quiz-btn:active { transform: translateY(0); }

.quiz-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.quiz-btn.ghost {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: #f3f4f8;
  font-weight: 600;
}

/* --- Results ------------------------------------------------------------- */

.quiz-results { text-align: center; padding-top: 40px; }

.quiz-score { margin: 24px 0 8px; }

.quiz-score-number {
  display: block;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quiz-score-number small { font-size: 32px; font-weight: 700; }

/* --- Interstitial breaks -------------------------------------------------- */

.quiz-break { text-align: center; padding-top: 32px; }

.quiz-break h2 {
  font-size: 26px;
  margin: 10px 0 14px;
  text-wrap: balance;
}

.quiz-break p { font-size: 16px; text-wrap: balance; }

/* --- Testimonial cards (interstitials + paywall) -------------------------- */

.quiz-review,
.pw-review {
  margin: 22px 0 6px;
  padding: 18px 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
}

.quiz-review-stars {
  /* TripAdvisor green — review stars read as ratings, not brand accents */
  color: #00aa6c;
  font-size: 15px;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.quiz-review blockquote,
.pw-review blockquote {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
  text-wrap: pretty;
}

.quiz-review figcaption,
.pw-review figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.quiz-review-who { display: flex; flex-direction: column; line-height: 1.25; }
.quiz-review-who strong { font-size: 14px; }
.quiz-review-who span { font-size: 12.5px; color: var(--text-faint); }

/* Visual stat block inside interstitials */
.quiz-stat { margin: 22px 0 10px; }

.quiz-stat-value {
  display: block;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #b9b9c0 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quiz-stat-label {
  display: block;
  margin: 12px auto 0;
  max-width: 380px;
  font-size: 14px;
  color: var(--text-faint);
  line-height: 1.5;
}

/* --- Loading ("system is thinking") --------------------------------------- */

.quiz-loading { text-align: center; padding-top: 48px; }

.quiz-loading h2 { margin-bottom: 32px; }

.quiz-loading-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
}

.quiz-loading-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.quiz-loading-label { font-size: 15px; font-weight: 600; color: var(--text-dim); }

.quiz-loading-check {
  color: var(--accent-2);
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quiz-loading-step.done .quiz-loading-check { opacity: 1; transform: scale(1); }
.quiz-loading-step.done .quiz-loading-label { color: var(--text); }

/* --- Lead capture fine print & trust signals ------------------------------ */

.quiz-fineprint {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.5;
}

.quiz-trust {
  margin: 18px 0 0;
  padding: 16px 18px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.quiz-trust li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* --- Paywall --------------------------------------------------------------- */

.quiz-mirror,
.quiz-offer {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.quiz-mirror h3,
.quiz-offer h3 { margin: 0 0 14px; font-size: 18px; }

.quiz-mirror ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-mirror li {
  padding-left: 26px;
  position: relative;
  color: var(--text-dim);
  font-size: 15px;
}

.quiz-mirror li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: 700;
}

.quiz-bridge {
  margin: 16px 0 0;
  font-weight: 600;
  color: var(--text);
}

.quiz-offer {
  border-color: rgba(255, 68, 0, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 68, 0, 0.35), 0 18px 50px -18px rgba(255, 68, 0, 0.3);
}

.quiz-includes {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-includes li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
  color: var(--text-dim);
}

.quiz-lock { font-size: 13px; }

.quiz-countdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 68, 0, 0.4);
  background: rgba(255, 68, 0, 0.08);
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.quiz-countdown strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--pink);
}

.quiz-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.quiz-price-anchor {
  font-size: 20px;
  color: var(--text-faint);
  text-decoration: line-through;
}

.quiz-price-now {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quiz-price-note { font-size: 13px; color: var(--text-faint); }

.quiz-cta { width: 100%; }

/* Desktop: cap the big CTAs and center them — a full-column button reads heavy */
@media (min-width: 920px) {
  .quiz-cta {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

.quiz-guarantee {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--text-faint);
  text-align: center;
}

/* --- Paywall v2 (plan card, summary meters, what-you-get) ----------------- */

/* Score dials — three circular ring gauges side by side */
.pw-meters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  justify-items: center;
}

.pw-ring { text-align: center; }

.pw-ring-dial {
  position: relative;
  display: block;
  width: clamp(84px, 22vw, 116px);
  margin: 0 auto 10px;
}

.pw-ring-dial svg { display: block; width: 100%; height: auto; }

.pw-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pw-ring-value small {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  margin-left: 1px;
}

.pw-ring-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
}

/* Desktop: larger dials, kept close together just wider than the column */
@media (min-width: 920px) {
  .pw-meters {
    width: min(620px, calc(100vw - 64px));
    margin-left: calc((100% - min(620px, 100vw - 64px)) / 2);
    gap: 20px;
  }
  .pw-ring-dial { width: 156px; }
  .pw-ring-value { font-size: 30px; }
  .pw-ring-value small { font-size: 14px; }
  .pw-ring-label { font-size: 14px; }
}

.pw-rows { margin: 4px 0 0; padding: 0; list-style: none; text-align: left; }

.pw-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
}

.pw-row-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 68, 0, 0.14);
  border: 1px solid rgba(255, 68, 0, 0.4);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.pw-row strong { display: block; font-size: 15px; }
.pw-row span { font-size: 13.5px; color: var(--text-faint); }

.plan-card {
  margin-top: 18px;
  border: 2px solid var(--accent);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px -18px rgba(255, 68, 0, 0.45);
  text-align: left;
}

.plan-banner {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 12px;
}

.plan-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 68, 0, 0.07);
}

.plan-name { font-size: 16px; font-weight: 700; }

.plan-sub { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }

.plan-price { text-align: right; }

.plan-anchor {
  font-size: 14px;
  color: var(--text-faint);
  text-decoration: line-through;
  margin-right: 6px;
}

.plan-now { font-size: 30px; font-weight: 800; color: var(--accent-2); }

.plan-off {
  display: inline-block;
  margin-top: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.pw-trust {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* --- Paywall: reviews, FAQ, final CTA -------------------------------------- */

.pw-reviews h3,
.pw-faq h3 { margin-top: 0; }

.pw-reviews .pw-review { margin: 0 0 12px; }
.pw-reviews .pw-review:last-child { margin-bottom: 0; }

/* Desktop: reviews break out of the 580px column into a centered 3-up row.
   Centering uses negative margins, not transforms — the reveal animation
   owns the transform property. */
@media (min-width: 920px) {
  .pw-reviews {
    width: min(1060px, calc(100vw - 64px));
    margin-left: calc((100% - min(1060px, 100vw - 64px)) / 2);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
  }
  .pw-reviews h3 {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 6px;
  }
  .pw-reviews .pw-review {
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  .pw-reviews .pw-review blockquote { flex: 1; }
}

.pw-faq-item {
  border-bottom: 1px solid var(--card-line);
  padding: 4px 0;
}
.pw-faq-item:last-child { border-bottom: none; }

.pw-faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
}
.pw-faq-item summary::-webkit-details-marker { display: none; }
.pw-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s ease;
}
.pw-faq-item[open] summary::after { transform: rotate(45deg); }

.pw-faq-item p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim, var(--text-faint));
}

.pw-final { text-align: center; }

.pw-final h3 {
  font-size: 22px;
  margin: 6px 0 14px;
  text-wrap: balance;
}

.pw-final-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}
.pw-final-price .plan-now { font-size: 30px; }

/* --- Journey staircase ------------------------------------------------------ */

.pw-journey { text-align: center; }
.pw-journey h3 { margin-top: 0; }

/* Mobile: a vertical ladder climbing upward — their tier highlighted */
.jr-track {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin-top: 18px;
  position: relative;
  text-align: left;
}

.jr-step { position: relative; }

.jr-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--card-line);
  background: rgba(255, 255, 255, 0.03);
}

.jr-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

.jr-name { font-size: 14px; font-weight: 700; }

.jr-step.done .jr-box { opacity: 0.55; }
.jr-step.done .jr-name { color: var(--text-dim, #c8ccd6); }

.jr-step.next .jr-box {
  background: transparent;
  border-style: dashed;
}
.jr-step.next .jr-name { color: var(--text-faint); }

.jr-step.current .jr-box {
  background: linear-gradient(135deg, rgba(255, 68, 0, 0.22), rgba(255, 122, 61, 0.1));
  border-color: rgba(255, 68, 0, 0.6);
  box-shadow: 0 0 30px rgba(255, 68, 0, 0.25);
}
.jr-step.current .jr-num { color: var(--accent-2); }

.jr-you {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  box-shadow: 0 4px 14px rgba(255, 68, 0, 0.45);
}

/* Desktop: ascending staircase left→right, breaking out of the column */
@media (min-width: 920px) {
  .pw-journey .jr-track {
    width: min(940px, calc(100vw - 64px));
    margin-left: calc((100% - min(940px, 100vw - 64px)) / 2);
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    padding-top: 34px;
  }
  .jr-step {
    flex: 1;
    padding-bottom: calc(var(--i) * 34px);
  }
  .jr-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px 12px;
    min-height: 74px;
    justify-content: flex-start;
  }
  .jr-name { font-size: 13.5px; line-height: 1.25; }
  .jr-you {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    margin: 0;
  }
  .jr-step.current { position: relative; }
}

.quiz-countdown[hidden] { display: none; }

/* Honeypot field — off-screen for humans, present for bots */
.quiz-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* --- Paywall footer --------------------------------------------------------- */

.pw-footer {
  margin-top: 84px;
  padding: 28px 0 96px; /* bottom clears the floating CTA */
  border-top: 1px solid var(--card-line);
  text-align: center;
}
.pw-footer p {
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 0 0 8px;
  text-wrap: balance;
}
.pw-footer-help { font-size: 13.5px !important; color: var(--text-dim, #c8ccd6) !important; }
.pw-footer a { color: var(--accent-2); text-decoration: none; }
.pw-footer a:hover { text-decoration: underline; }

/* --- Bonus block (gift) ---------------------------------------------------- */

.pw-bonus {
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 100%, rgba(255, 68, 0, 0.12) 0%, transparent 70%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.pw-bonus-gift {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(255, 68, 0, 0.4);
}

.pw-bonus h3 {
  font-size: 22px;
  margin: 4px 0 18px;
  text-wrap: balance;
}

.pw-bonus p { font-size: 14.5px; text-wrap: balance; }

.pw-bonus-stack {
  position: relative;
  width: min(240px, 70%);
  margin: 0 auto 20px;
}

.pw-sheet {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, #14161f, #0b0c14);
}

.pw-sheet.back,
.pw-sheet.mid {
  position: absolute;
  inset: 0;
}
.pw-sheet.back { transform: rotate(-5deg) translateX(-14px); opacity: 0.55; }
.pw-sheet.mid  { transform: rotate(3.5deg) translateX(12px); opacity: 0.75; }

.pw-sheet.front {
  position: relative;
  padding: 16px 18px 14px;
  text-align: left;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.8);
}

.pw-sheet-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.pw-sheet.front ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pw-sheet.front li {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim, #c8ccd6);
  padding: 4px 0 4px 18px;
  position: relative;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.pw-sheet.front li:last-child { border-bottom: none; color: var(--accent-2); }
.pw-sheet.front li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 9px;
  top: 7px;
}

.pw-bonus-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-2);
  border: 1px solid rgba(255, 68, 0, 0.45);
  background: rgba(255, 68, 0, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
}

/* --- MCP connector offer ---------------------------------------------------- */

.pw-mcp {
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(255, 68, 0, 0.1) 0%, transparent 60%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.pw-mcp-inner { display: flex; flex-direction: column; gap: 24px; }

.pw-mcp-copy h3 {
  font-size: 22px;
  margin: 6px 0 10px;
  text-wrap: balance;
}
.pw-mcp-copy > p { font-size: 14.5px; text-wrap: pretty; }

.pw-mcp-list {
  list-style: none;
  margin: 14px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pw-mcp-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-dim, #c8ccd6);
}
.pw-mcp-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Terminal-style "connected" card */
.pw-mcp-term {
  background: #0b0c14;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 18px 16px;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.8);
  max-width: 320px;
  margin: 0 auto;
}
.pw-mcp-term-head { display: flex; gap: 6px; margin-bottom: 14px; }
.pw-mcp-term-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.pw-mcp-term-head span:first-child { background: rgba(255, 68, 0, 0.6); }
.pw-mcp-term-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.pw-mcp-url {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.pw-mcp-status {
  font-size: 12px;
  font-weight: 600;
  color: #00aa6c;
  margin-bottom: 8px;
}
.pw-mcp-loaded {
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.pw-mcp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pw-mcp-chips span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim, #c8ccd6);
  border: 1px solid var(--card-line);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Desktop: break out of the column, copy left / connect card right */
@media (min-width: 920px) {
  .pw-mcp {
    width: min(940px, calc(100vw - 64px));
    margin-left: calc((100% - min(940px, 100vw - 64px)) / 2);
    padding: 34px 38px;
  }
  .pw-mcp-inner {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  .pw-mcp-copy { flex: 1.1; }
  .pw-mcp-visual { flex: 0.9; }
  .pw-mcp-term { transform: rotate(-1.5deg); }
}

/* --- Floating CTA ----------------------------------------------------------- */

.pw-float {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 28px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, rgba(5, 6, 10, 0.9) 55%);
  pointer-events: none;
}
.pw-float[hidden] { display: none; }
@keyframes floatIn {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.pw-float:not([hidden]) { animation: floatIn 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) {
  .pw-float:not([hidden]) { animation: none; }
}
.pw-float .quiz-btn {
  pointer-events: auto;
  width: min(420px, 100%);
  box-shadow: 0 10px 30px rgba(255, 68, 0, 0.45);
}

/* --- Big loading ring ------------------------------------------------------ */

.quiz-bigring {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 26px auto 20px;
}

.quiz-bigring svg { width: 100%; height: 100%; }

.quiz-bigring .ring-track { stroke-width: 9; }

.quiz-bigring .ring-fill { stroke-width: 9; transition: stroke-dasharray 0.12s linear; }

.quiz-bigring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
}

.quiz-loading-caption {
  font-size: 15px;
  color: var(--text-dim);
  min-height: 24px;
}

/* --- Errors -------------------------------------------------------------- */

.quiz-error {
  color: var(--pink);
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
}

::selection { background: rgba(255, 68, 0, 0.8); color: #fff; }
