/* the quiz: a full-screen plum app, one question per screen */
.quizpage { background: var(--brand); color: var(--on-plum); min-height: 100vh; min-height: 100dvh; }
.qapp { overflow-x: clip; max-width: 560px; margin: 0 auto; padding: 0 20px calc(40px + env(safe-area-inset-bottom)); min-height: 100dvh; display: flex; flex-direction: column; }
.qbar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.qx { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--on-plum); font-size: 1.4rem; background: none; border: 0; cursor: pointer; text-decoration: none; border-radius: 12px; }
.qx[hidden] { display: inline-flex; visibility: hidden; }
.qx:focus-visible { outline: 3px solid var(--lime); }
.qlogo { height: 40px; width: auto; }
.qprog { height: 6px; background: var(--plum-2); border-radius: 9px; overflow: hidden; }
.qprog i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .35s ease; }
.qscreen { display: none; flex: 1; flex-direction: column; padding-top: 28px; }
.qscreen.on { display: flex; animation: qin .28s ease; }
@keyframes qin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.qscreen h1, .qscreen h2 { color: var(--on-plum); }
.qscreen h1 { font-size: var(--step-3); }
.qscreen h2 { font-size: var(--step-2); margin-bottom: 22px; }
.qscreen .rule { margin: 6px 0 14px; }
.qscreen .mark { color: var(--brand); }
.lead { font-size: var(--step-1); color: var(--on-plum-2); margin: 18px 0 26px; max-width: 26em; }
.fine { font-size: var(--step-0); color: var(--on-plum-2); margin: 14px 0 0; }
.qn { font-weight: 800; color: var(--lime); margin: 0 0 10px; }
.opts { display: grid; gap: 10px; }
.opt { display: block; width: 100%; text-align: left; background: var(--plum-2); color: var(--on-plum); border: 2px solid #6a3a8c; border-radius: 14px; padding: 16px; font: 600 var(--step-0)/1.3 "Hanken Grotesk", sans-serif; cursor: pointer; min-height: 58px; transition: background .12s, border-color .12s, transform .12s; }
.opt:hover { border-color: var(--lime); }
.opt:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.opt.pick { background: var(--lime); color: var(--brand); border-color: var(--lime); transform: scale(1.015); }
.center { justify-content: center; align-items: center; text-align: center; }
.spin { width: 64px; height: 64px; border-radius: 50%; border: 6px solid var(--plum-2); border-top-color: var(--lime); animation: sp 1s linear infinite; margin: 0 auto 22px; }
@keyframes sp { to { transform: rotate(360deg); } }
.loadt { font: 900 italic var(--step-1)/1.2 "Unbounded", sans-serif; text-transform: lowercase; color: var(--on-plum); margin: 0; }
#card { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 0 0 3px rgb(255 255 255 / .18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.btn.ghost.light { color: var(--on-plum); box-shadow: inset 0 0 0 2px #8a5aaa; }
.lock { background: var(--plum-2); border: 2px solid var(--lime); border-radius: 16px; padding: 20px; }
.lock h3 { color: var(--on-plum); text-transform: none; transform: none; font: 800 var(--step-1)/1.2 "Hanken Grotesk", sans-serif; letter-spacing: 0; }
.lock p { color: var(--on-plum-2); }
.lock label { display: block; font-weight: 700; margin: 0 0 14px; color: var(--on-plum); }
.lock input[type=text], .lock input[type=email], .lock input:not([type]) { display: block; width: 100%; margin-top: 6px; background: #3b1458; color: #fff; border: 2px solid #8a5aaa; border-radius: 12px; padding: 14px; font: 500 var(--step-0) "Hanken Grotesk", sans-serif; }
.lock input::placeholder { color: #b9a2cc; }
.lock .kit-consent, .lock [data-kit-consent] { color: var(--on-plum-2); }
.lock .kit-consent a, .lock [data-kit-consent] a { color: var(--on-plum); }
.cert-done { background: var(--paper); color: var(--brand); border-radius: 14px; padding: 22px 20px; margin-top: 8px; }
.cert-done small { font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #6b5a78; font-size: var(--step-0); }
.cert-done h3 { color: var(--brand); text-transform: uppercase; font: 900 var(--step-1)/1.1 "Unbounded", sans-serif; transform: none; letter-spacing: -.02em; margin: 8px 0 10px; }
.cert-done p { color: var(--brand); }
.cert-done ul { padding-left: 20px; }
.cert-done li { margin: 8px 0; }
.cert-done .code { display: inline-block; background: var(--brand); color: var(--lime); font: 800 var(--step-0) ui-monospace, Menlo, monospace; letter-spacing: .12em; padding: 10px 12px; margin: 12px 0 0; }
.cert-done .fine { color: #6b5a78; }
.again { text-align: center; margin: 22px 0 0; }
.again a { color: var(--on-plum-2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .qscreen.on, .spin { animation: none; } .qprog i { transition: none; } }

/* desktop: the flow on the left, the product beside it */
.qside { display: none; }
@media (min-width: 1000px) {
  .qshell { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 56px; max-width: 1180px; margin: 0 auto; padding: 0 28px; align-items: start; }
  .qside { display: block; position: sticky; top: 64px; aspect-ratio: 1 / 1; margin-top: 64px; }
  .qside .sun { position: absolute; right: 0; top: 4%; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--orange); }
  .qside img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 28% 62%; filter: drop-shadow(10px 10px 0 var(--lime)); }
}
