/* ============================================================
   guest-lesson.css — Value-before-signup guest quiz
   Page chrome + score/conversion screen. Question UI reuses
   lesson.css (.options-grid / .option-btn / .feedback-panel) and
   app.css (.confetti-piece). Mobile-first.
   ============================================================ */

.gl-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ── Top bar ─────────────────────────────────────────────── */
.gl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}
.gl-back {
  color: var(--text-subtle);
  font-size: 22px;
  display: flex;
  text-decoration: none;
  flex-shrink: 0;
}
.gl-back:hover { color: var(--text-primary); }
.gl-culture-chip {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 5px 14px;
  white-space: nowrap;
}
.gl-signin {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  text-decoration: none;
  flex-shrink: 0;
}
.gl-signin:hover { color: var(--text-primary); }

/* ── Loading ─────────────────────────────────────────────── */
.gl-loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-10) var(--sp-5);
}

/* ── Quiz ────────────────────────────────────────────────── */
.gl-quiz {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-5) var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* Slim progress bar (reuses .lesson-progress-track/.fill from lesson.css).
   Override flex:1 from lesson.css so it stays a 10px bar in this column. */
.gl-progress-bar {
  flex: 0 0 auto;
  width: 100%;
}

.gl-progress {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.gl-question-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.gl-question-card .question-prompt {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-size: clamp(var(--text-xl), 5.5vw, var(--text-3xl));
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
}

/* ── Score + conversion screen ───────────────────────────── */
.gl-score {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8) var(--sp-5) var(--sp-12);
  overflow: hidden;
}
.gl-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.gl-score-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
}

.gl-score-num {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-size: clamp(var(--text-3xl), 9vw, var(--text-5xl));
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}
.gl-score-msg {
  font-size: var(--text-base);
  color: var(--text-subtle);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ✓ / ✗ row */
/* ── Cultural fact card ──────────────────────────────────── */
.gl-fact {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg, 14px);
  padding: var(--sp-4);
  text-align: left;
}
.gl-fact-label {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--sp-2);
}
.gl-fact-text {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ── Per-question breakdown ──────────────────────────────── */
.gl-breakdown {
  width: 100%;
  list-style: none;
  margin: 0 0 var(--sp-2);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-align: left;
}
.gl-bd-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.gl-bd-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 800;
  margin-top: 1px;
}
.gl-bd-row.is-right .gl-bd-mark { background: var(--success-dim); color: var(--success); }
.gl-bd-row.is-wrong .gl-bd-mark { background: var(--error-dim);   color: var(--error); }
.gl-bd-q { color: var(--text-muted); min-width: 0; }
.gl-bd-row.is-right .gl-bd-q { color: var(--text-primary); }
.gl-bd-correct { color: var(--accent); font-weight: 600; }

/* ── Share score — secondary action above the CTA ────────── */
.gl-share-btn {
  width: 100%;
  margin-bottom: var(--sp-4);
}

/* ── Conversion CTA — the money moment ───────────────────── */
.gl-cta {
  width: 100%;
  margin-top: var(--sp-4);
  padding: var(--sp-6) var(--sp-5);
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  box-shadow: 0 0 40px rgba(204, 255, 0, 0.12);
}
.gl-cta-heading {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.gl-cta-sub {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  line-height: var(--leading-relaxed);
  margin: 0;
}
.gl-cta-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}
.gl-input {
  width: 100%;
  height: 54px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-lg);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  padding: 14px 18px;
  outline: none;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.gl-input::placeholder { color: var(--text-disabled, #777); }
.gl-input:focus { border-color: var(--accent); background: var(--surface-3); }

.gl-cta-btn {
  width: 100%;
  font-size: var(--text-lg);
  padding: 16px;
  text-decoration: none;
  text-align: center;
}

.gl-msg {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  margin: var(--sp-1) 0 0;
  min-height: 1.2em;
}
.gl-msg.is-error { color: var(--error); }

/* Continue button (shown on wrong answers so the explanation can be read) */
.gl-continue {
  align-self: stretch;
  margin-top: var(--sp-2);
}
.gl-cta-note {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin: var(--sp-2) 0 0;
}
.gl-cta-signin {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  text-decoration: underline;
}
.gl-cta-signin:hover { color: var(--text-primary); }
.gl-cta-proof {
  font-size: var(--text-xs);
  color: var(--text-disabled, #777);
  line-height: 1.5;
  margin: var(--sp-2) 0 0;
}
