/* PPWR Self-Assessment Quiz — standalone page UI (loaded alongside landing.css).
 * Uses the marketing tokens (--accent, --pass/--warn/--fail) from landing.css. */
#quiz-root { max-width: 640px; margin: 0 auto; }

.quiz-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; box-shadow: 0 10px 30px -12px rgba(11, 59, 47, .18);
  animation: quizIn .2s ease-out;
}
@keyframes quizIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.quiz-top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin-bottom: 14px; }
.quiz-back { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.quiz-qnum { font-size: 13px; font-weight: 700; color: var(--muted-foreground); }

.quiz-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.quiz-seg { flex: 1; height: 6px; border-radius: 999px; background: var(--muted); transition: background .25s; }
.quiz-seg.is-on { background: var(--accent); }

.quiz-step { margin: 0 0 6px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); }
.quiz-question { font-family: "DM Sans", "Inter", sans-serif; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.3; color: var(--foreground); margin: 0 0 20px; }

.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-opt {
  display: block; width: 100%; min-height: 56px; text-align: left;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; font: inherit; font-size: 15px; font-weight: 500; line-height: 1.4;
  color: var(--foreground); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .05s;
}
.quiz-opt:hover { border-color: var(--accent); box-shadow: 0 2px 10px -4px rgba(29, 158, 117, .4); }
.quiz-opt:active { transform: scale(.995); }
.quiz-opt.is-selected { border-color: var(--accent); background: rgba(29, 158, 117, .08); box-shadow: 0 0 0 2px rgba(29, 158, 117, .25); }

/* Calculating */
.quiz-calc { text-align: center; }
.quiz-spinner { width: 44px; height: 44px; margin: 36px auto 16px; border: 4px solid var(--muted); border-top-color: var(--accent); border-radius: 50%; animation: quizSpin .8s linear infinite; }
@keyframes quizSpin { to { transform: rotate(360deg); } }
.quiz-calc-text { margin-bottom: 28px; font-size: 16px; font-weight: 600; color: var(--muted-foreground); }

/* Results */
.quiz-score-label { font-size: 14px; font-weight: 600; color: var(--muted-foreground); text-align: center; }
.quiz-score-num { font-family: "DM Sans", "Inter", sans-serif; font-size: 56px; font-weight: 700; line-height: 1; text-align: center; color: var(--foreground); margin: 6px 0 14px; }
.quiz-score-num span { font-size: 22px; font-weight: 600; color: var(--muted-foreground); }
.quiz-bar { height: 14px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.quiz-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .8s ease-out; }
.quiz-badge { display: inline-block; margin: 16px auto 0; padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.quiz-results .quiz-badge { display: block; width: fit-content; }
.quiz-badge--critical { background: var(--fail-bg); color: var(--fail); }
.quiz-badge--risk { background: var(--warn-bg); color: var(--warn); }
.quiz-badge--track { background: var(--pass-bg); color: var(--pass); }
.quiz-verdict { margin: 16px 0 0; line-height: 1.6; color: var(--foreground); text-align: center; }

.quiz-bd-head { font-family: "DM Sans", "Inter", sans-serif; font-size: 18px; font-weight: 700; color: var(--foreground); margin: 28px 0 12px; }
.quiz-breakdown { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.quiz-bd-row { display: flex; gap: 12px; padding: 14px 16px; }
.quiz-bd-row:nth-child(even) { background: var(--background); }
.quiz-bd-icon { flex: none; font-size: 18px; line-height: 1.4; }
.quiz-bd-body { min-width: 0; }
.quiz-bd-q { font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--foreground); }
.quiz-bd-status { font-weight: 700; }
.quiz-bd-status--compliant { color: var(--pass); }
.quiz-bd-status--partial { color: var(--warn); }
.quiz-bd-status--gap { color: var(--fail); }
.quiz-bd-ans { margin-top: 4px; font-size: 13px; color: var(--muted-foreground); }
.quiz-bd-rec { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--foreground); border-left: 3px solid var(--accent); padding-left: 10px; }

.quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.quiz-actions .btn { flex: 1 1 220px; text-align: center; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--foreground); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.quiz-email { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.quiz-email-toggle { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--accent); cursor: pointer; }
.quiz-email-toggle::before { content: "+ "; }
.quiz-email-toggle.is-open::before { content: "– "; }
.quiz-email-body { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.quiz-email-input { height: 44px; padding: 0 14px; border: 1px solid var(--input); border-radius: 8px; font: inherit; font-size: 15px; color: var(--foreground); }
.quiz-email-input:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 2px rgba(29, 158, 117, .3); }
.quiz-email-msg { margin: 0; font-size: 14px; font-weight: 600; }
.quiz-email-msg.is-ok { color: var(--pass); }
.quiz-email-msg.is-err { color: var(--fail); }

.quiz-share { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.quiz-share-label { font-size: 14px; font-weight: 600; color: var(--muted-foreground); }

@media (max-width: 480px) {
  .quiz-card { padding: 20px; border-radius: 14px; }
  .quiz-score-num { font-size: 46px; }
  .quiz-actions .btn { flex-basis: 100%; }
}

/* Landing-page embed CTA (rendered with landing.css present) lives in landing.css */
