/* TheorieDelft — practice software (loaded after site.css) */
.quiz-app { background: var(--road); min-height: 100vh; }
.qbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.qbar__inner { display: flex; align-items: center; gap: 1rem; min-height: 60px; flex-wrap: wrap; }
.qbar .brand { margin: 0; }
.qbar .brand img { width: 130px; }
.qbar__name { font-weight: 800; color: var(--sign); margin-right: auto; }
.qbar__nav { display: flex; align-items: center; gap: 0.75rem; }
.qbar__nav form { margin: 0; }
.qbar__lang { font-weight: 800; text-decoration: none; padding: 0.3rem 0.6rem; border: 2px solid var(--line); border-radius: var(--radius-small); color: var(--ink); }
.qbar__lang:hover { border-color: var(--ink); }
.qmain { padding-bottom: 4rem; }
.qmain .card { margin-bottom: 1.25rem; }
.qwrap { max-width: 780px; }
/* CMS question preview: a strip above the question */
.qpreview-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin-bottom: 1.25rem; padding: 0.8rem 1rem; border: 2px dashed var(--line); border-radius: 12px; }
.qpreview-bar p { margin: 0; }
.qpreview-bar__lang { display: flex; gap: 0.5rem; }
.qpreview-bar__lang [aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.back { margin: 0 0 0.75rem; font-weight: 650; }
.back a { text-decoration: none; }

/* landing */
.hero--quiz .hero__grid { align-items: start; }
.lang-switch { margin: 0 0 0.75rem; font-weight: 700; }
.feature-list { list-style: none; margin: 0; padding: 1.4rem 1.5rem; background: var(--sign); color: #fff; border-radius: 16px; box-shadow: inset 0 0 0 7px var(--sign), inset 0 0 0 10px #fff, 0 30px 60px -28px rgb(0 0 0 / 0.7); display: grid; gap: 0.65rem; animation: sign-in 0.8s var(--ease-spring, ease-out) 0.2s both; }
.feature-list li { display: flex; gap: 0.6rem; font-weight: 700; }
.feature-list .i { color: var(--shield-n, #f5c400); margin-top: 0.15em; }
.hero .lead, .hero .muted { color: var(--on-night, #c7d3e6); }
.hero .btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgb(255 255 255 / 0.55); }
.hero .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--night, #0f1f38); --btn-border: #fff; }
.hero--quiz .hero__copy { padding-bottom: 1rem; }
.vehicle-plans { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .vehicle-plans { grid-template-columns: repeat(3, 1fr); } }
.vehicle-plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.vehicle-plan__head { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.vehicle-plan__head h3 { margin: 0; }
.vehicle-plan__head p { margin: 0; font-size: 0.9rem; }
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 0.75rem; align-items: center; padding: 0.75rem 0; border-top: 1px solid var(--road); }
.plan__name { font-weight: 700; line-height: 1.3; }
.plan__name .muted { font-weight: 500; font-size: 0.9rem; }
.plan__price { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.plan .btn { grid-column: 1 / -1; }
@media (min-width: 520px) { .plan { grid-template-columns: 1fr auto auto; } .plan .btn { grid-column: auto; } }
.narrow-left { max-width: 820px; }
.sample { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.sample__q fieldset { margin: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); min-width: 0; }
.sample__q legend { float: left; width: 100%; display: flex; gap: 0.75rem; margin-bottom: 0.9rem; font-weight: 750; font-size: 1.075rem; line-height: 1.4; }
.sample__q legend ~ * { clear: both; }
.sample__num { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--road); font-size: 0.9rem; font-weight: 800; }
.answers { display: grid; gap: 0.5rem; }
.answer { display: flex; gap: 0.6rem; align-items: center; padding: 0.7rem 0.9rem; border: 2px solid var(--line); border-radius: var(--radius-small); cursor: pointer; font-weight: 600; }
.answer:hover { border-color: #9fb0c7; }
.answer input { width: 18px; height: 18px; accent-color: var(--sign); flex: none; }
.answer.is-correct { border-color: var(--green); background: #e6f4ec; }
.answer.is-wrong { border-color: var(--red); background: #fbe9ec; }
.sample__explain { margin-top: 0.75rem; }
.sample__explain summary { cursor: pointer; color: var(--sign); font-weight: 700; }
.sample__explain p { margin: 0.5rem 0 0; color: var(--ink-2); }
.sample-cta { margin-top: 2rem; padding: 1.5rem; background: var(--ink); color: #fff; border-radius: var(--radius); }
.sample-cta p { color: #dfe6f1; }
.sample-cta .muted a { color: #fff; }

/* login / buy */
.social-login { display: grid; gap: 0.6rem; margin: 1rem 0; }
.social-login--inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.social-login--inline p { margin: 0; width: 100%; }
.btn--social { --btn-bg: var(--paper); --btn-border: var(--ink); }
.btn--social:hover { --btn-bg: var(--road); }
.btn--apple { --btn-bg: #000; --btn-fg: #fff; --btn-border: #000; }
.btn--apple:hover { --btn-bg: #222; --btn-border: #222; }
.divider { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.9rem; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.order-line { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.order-line__price { font-size: 1.5rem; }
.order-line__book { display: flex; gap: 0.4rem; align-items: flex-start; margin-top: 0.5rem; color: var(--green); font-weight: 700; }
.order-line__book .i { flex: none; width: 1.1em; height: 1.1em; margin-top: 0.15em; }
.paid-book { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* dashboard */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.dash-head h1 { margin: 0; }
.dash-head p { margin: 0; }
.vehicle-switch { display: flex; gap: 0.25rem; padding: 0.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.vehicle-switch a { padding: 0.35rem 0.9rem 0.25rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }
.vehicle-switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.access-note { color: var(--ink-2); }
.dash-actions { display: grid; gap: 1rem; margin: 1rem 0 2rem; }
@media (min-width: 760px) { .dash-actions { grid-template-columns: 1.2fr 1fr 1fr; } }
.dash-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.dash-card:hover { border-color: var(--ink); color: var(--ink); }
.dash-card--exam { background: var(--sign); border-color: var(--sign); color: #fff; }
.dash-card--exam:hover { color: #fff; border-color: var(--ink); }
.dash-card__title { font-size: 1.35rem; font-weight: 850; }
.dash-card__text { flex: 1; }
.dash-card .btn { align-self: flex-start; }
.dash-card.is-disabled { opacity: 0.55; pointer-events: none; }
.progress-grid { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 760px) { .progress-grid { grid-template-columns: repeat(3, 1fr); } }
.prog { padding: 1.1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.prog__title { margin: 0 0 0.2rem; font-size: 1.05rem; }
.prog__meta, .prog__score { margin: 0.25rem 0; font-size: 0.925rem; color: var(--ink-2); }
.prog__score { font-weight: 750; color: var(--ink); }
.prog__bar { width: 100%; height: 10px; }
.prog__links { display: flex; gap: 1rem; font-size: 0.925rem; font-weight: 650; }
.prog meter::-webkit-meter-bar { background: var(--road); border: 0; border-radius: 5px; }
.prog meter::-webkit-meter-optimum-value { background: var(--sign); border-radius: 5px; }
.prog meter::-moz-meter-bar { background: var(--sign); }
.grid-split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .grid-split { grid-template-columns: 1fr 1fr; } }
.topic-list, .exam-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.topic-list a { display: flex; justify-content: space-between; padding: 0.6rem 1rem; border-bottom: 1px solid var(--road); text-decoration: none; color: var(--ink); font-weight: 650; }
.topic-list a:hover { background: #f7f9fc; }
.exam-list li { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; padding: 0.6rem 1rem; border-bottom: 1px solid var(--road); }
.badge { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 800; }
.badge--ok { background: #e1f2e8; color: #145234; }
.badge--fail { background: #fbe9ec; color: #7a0f20; }

/* question card */
.qcard { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.1rem, 1rem + 1.5vw, 2rem); }
.qhead { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.qhead__part { padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--road); color: var(--ink-2); }
.qhead__timer { margin-left: auto; }
.qhead__timer.is-on { padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--ink); color: #fff; font-variant-numeric: tabular-nums; }
.qhead__timer.is-low { background: var(--red); }
.qprogress { height: 6px; margin: 0.75rem 0 1.25rem; background: var(--road); border-radius: 3px; overflow: hidden; }
.qprogress__fill { display: block; height: 100%; background: var(--amber); transition: width 0.2s; }
.qprogress__fill--0 { width: 0%; }
.qprogress__fill--1 { width: 5%; }
.qprogress__fill--2 { width: 10%; }
.qprogress__fill--3 { width: 15%; }
.qprogress__fill--4 { width: 20%; }
.qprogress__fill--5 { width: 25%; }
.qprogress__fill--6 { width: 30%; }
.qprogress__fill--7 { width: 35%; }
.qprogress__fill--8 { width: 40%; }
.qprogress__fill--9 { width: 45%; }
.qprogress__fill--10 { width: 50%; }
.qprogress__fill--11 { width: 55%; }
.qprogress__fill--12 { width: 60%; }
.qprogress__fill--13 { width: 65%; }
.qprogress__fill--14 { width: 70%; }
.qprogress__fill--15 { width: 75%; }
.qprogress__fill--16 { width: 80%; }
.qprogress__fill--17 { width: 85%; }
.qprogress__fill--18 { width: 90%; }
.qprogress__fill--19 { width: 95%; }
.qprogress__fill--20 { width: 100%; }
.qtext { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.35; margin-bottom: 1.25rem; }
.qtext:focus { outline: none; }
.qimg { display: block; width: 100%; height: auto; max-width: 640px; max-height: 420px; object-fit: contain; margin: 0 auto 1.25rem; border-radius: var(--radius-small); box-shadow: 0 0 0 1px rgb(20 40 74 / 0.08); }
.qimg[src$=".svg"] { aspect-ratio: 16 / 10; max-height: none; }
.qoptions { display: grid; gap: 0.6rem; }
.qopt { display: flex; align-items: center; gap: 0.85rem; width: 100%; padding: 0.85rem 1rem; font: inherit; font-size: 1.05rem; font-weight: 650; text-align: left; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color 0.12s, background-color 0.12s; }
.qopt:hover:not(:disabled) { border-color: var(--sign); }
.qopt:disabled { cursor: default; }
.qopt__key { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 7px; background: var(--road); font-weight: 850; }
.qopt.is-selected { border-color: var(--sign); background: #f0f6fc; }
.qopt.is-selected .qopt__key { background: var(--sign); color: #fff; }
.qopt.is-correct { border-color: var(--green); background: #e6f4ec; }
.qopt.is-correct .qopt__key { background: var(--green); color: #fff; }
.qopt.is-wrong { border-color: var(--red); background: #fbe9ec; }
.qopt.is-wrong .qopt__key { background: var(--red); color: #fff; }
.qfeedback:empty { display: none; }
.qfeedback { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 10px; border-left: 5px solid; }
.qfeedback p { margin: 0.35rem 0 0; }
.qfeedback--ok { background: #e6f4ec; border-color: var(--green); }
.qfeedback--fail { background: #fbe9ec; border-color: var(--red); }
.qactions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; margin-top: 1.25rem; }
.qactions:empty { display: none; }
.qdone { text-align: center; }
.qdone__score { font-size: 3rem; font-weight: 900; margin: 0.25rem 0 1rem; }
.qdone .actions { justify-content: center; }

/* exam */
.exam-parts { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.exam-parts th { text-align: left; font-size: 0.85rem; color: var(--muted); }
.exam-parts td { padding: 0.55rem 0.5rem 0.55rem 0; border-top: 1px solid var(--road); vertical-align: top; }
.result--ok { border: 2px solid var(--green); }
.result--fail { border: 2px solid var(--red); }
.result__verdict { font-size: 1.25rem; font-weight: 800; }
.result-parts { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.5rem; }
.result-part { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 0.7rem 1rem; border-radius: 8px; font-weight: 700; }
.result-part.is-ok { background: #e6f4ec; }
.result-part.is-fail { background: #fbe9ec; }
.result-part__score { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.result-part__need { color: var(--muted); font-size: 0.9rem; }
.review-wrap summary { cursor: pointer; font-weight: 800; }
.review { margin: 1rem 0 0; padding-left: 1.25rem; display: grid; gap: 0.9rem; }
.review__item { padding-left: 0.5rem; }
.review__item.is-ok::marker { color: var(--green); }
.review__item.is-fail::marker { color: var(--red); }
.review__q { font-weight: 750; margin: 0 0 0.25rem; }
.review__a, .review__e { margin: 0.15rem 0; }
.review__e { color: var(--ink-2); font-size: 0.95rem; }
.flash--info { background: #e7eff8; border-left: 5px solid var(--sign); }

/* ---------- Free practice test: one question per page ---------- */
.ftest-head .feature-list { align-self: center; }
.ftest__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1rem; }
.ftest__count { margin: 0; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* progress as a road: each question is a dash on the centre line */
.ftest__road { flex: 1; min-width: 220px; max-width: 460px; display: flex; gap: 6px; list-style: none; margin: 0; padding: 9px 10px; border-radius: 8px; background: var(--night, #0f1f38); }
.ftest__road li { flex: 1; height: 6px; border-radius: 2px; background: rgb(255 255 255 / 0.22); transition: background-color 0.3s; }
.ftest__road li.is-done { background: #fff; }
.ftest__road li.is-current { background: var(--amber); animation: dash-pulse 1.6s ease-in-out infinite; }
@keyframes dash-pulse { 50% { opacity: 0.55; } }
.ftest__card { padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); animation: rise 0.35s var(--ease-out, ease-out); }
.ftest__fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ftest__question { float: left; width: 100%; margin: 0 0 1.25rem; padding: 0; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 850; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.ftest__question ~ * { clear: both; }
.ftest__img { max-width: 580px; }
.ftest .answers { gap: 0.65rem; }
.ftest .answer { position: relative; gap: 0.85rem; padding: 0.85rem 1rem; font-size: 1.05rem; transition: border-color 0.15s, background-color 0.15s, transform 0.12s; }
.ftest .answer input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.answer__key { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 7px; background: var(--fog, #eef2f7); color: var(--ink); font-weight: 900; font-size: 0.95rem; transition: background-color 0.15s, color 0.15s; }
.ftest .answer:has(input:checked) { border-color: var(--sign); background: #f2f7fd; box-shadow: 0 0 0 4px rgb(15 76 138 / 0.12); }
.ftest .answer:has(input:checked) .answer__key { background: var(--sign); color: #fff; }
.ftest .answer:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.ftest .answer:active { transform: scale(0.99); }
.ftest__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.ftest__nav .btn { min-width: 0; }
@media (max-width: 480px) { .ftest__nav { gap: 0.6rem; } .ftest__nav .btn { padding-inline: 0.9rem; } .ftest__nav .btn--large { font-size: 1rem; } }

/* result */
.ftest-result { display: grid; gap: 1.5rem 2.5rem; align-items: start; margin-bottom: 2.5rem; }
@media (min-width: 720px) { .ftest-result { grid-template-columns: auto 1fr; } }
.ftest-result__sign {
  display: flex; align-items: baseline; justify-content: center; gap: 0.15rem; width: 11rem; padding: 1.4rem 1rem 1.2rem;
  border-radius: 16px; background: var(--green, #1d6f47); color: #fff; font-weight: 900; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 7px var(--green, #1d6f47), inset 0 0 0 10px #fff, 0 24px 50px -24px rgb(0 0 0 / 0.5);
  animation: sign-in 0.8s var(--ease-spring, ease-out) both;
}
.ftest-result.is-fail .ftest-result__sign { background: var(--sign); box-shadow: inset 0 0 0 7px var(--sign), inset 0 0 0 10px #fff, 0 24px 50px -24px rgb(0 0 0 / 0.5); }
.ftest-result__sign span { font-size: 4.2rem; line-height: 1; letter-spacing: -0.03em; }
.ftest-result__sign small { font-size: 1.6rem; opacity: 0.85; }
.ftest-result__body h1 { margin-bottom: 0.4rem; }
.ftest-parts { list-style: none; margin: 1.25rem 0 1rem; padding: 0; display: grid; gap: 0.6rem; max-width: 520px; }
.ftest-parts li { display: grid; grid-template-columns: 9.5rem 1fr 3rem; align-items: center; gap: 0.75rem; font-weight: 700; }
.ftest-parts__n { text-align: right; font-variant-numeric: tabular-nums; }
.ftest-parts meter { width: 100%; height: 12px; }
.ftest-parts meter::-webkit-meter-bar { background: var(--fog, #eef2f7); border: 0; border-radius: 6px; height: 12px; }
.ftest-parts meter::-webkit-meter-optimum-value { background: var(--green, #1d6f47); border-radius: 6px; }
.ftest-parts meter::-webkit-meter-suboptimum-value { background: var(--amber); border-radius: 6px; }
.ftest-parts meter::-webkit-meter-even-less-good-value { background: var(--red, #b3192f); border-radius: 6px; }
.ftest-cta { padding: 1.5rem 1.6rem; border-radius: var(--radius); background: var(--fog, #eef2f7); border-left: 6px solid var(--amber); }
.ftest-cta p { margin: 0 0 0.5rem; }
.ftest-cta .actions { margin: 0.75rem 0; }

/* review */
.review-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.review-item { min-width: 0; padding: clamp(1rem, 0.7rem + 1.5vw, 1.4rem) clamp(1rem, 0.6rem + 2vw, 1.5rem); border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: inset 6px 0 0 var(--green, #1d6f47); }
.review-item.is-wrong { box-shadow: inset 6px 0 0 var(--red, #b3192f); }
.review-item__head { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.6rem; font-size: 0.95rem; }
.review-item__num { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--fog, #eef2f7); font-weight: 900; }
.review-item__verdict { font-weight: 900; color: var(--green, #1d6f47); }
.review-item.is-wrong .review-item__verdict { color: var(--red, #b3192f); }
.review-options { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.45rem; }
.review-options { grid-template-columns: minmax(0, 1fr); }
.review-options li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; min-width: 0; padding: 0.6rem 0.8rem; border: 2px solid var(--line); border-radius: var(--radius-small); }
.review-options li > span:not(.answer__key) { flex: 1 1 8rem; min-width: 0; overflow-wrap: anywhere; }
.review-options li em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 0.85rem; text-align: right; }
.review-options li.is-right { border-color: var(--green, #1d6f47); background: #e6f4ec; }
.review-options li.is-right em { color: var(--green, #1d6f47); }
.review-options li.is-given { border-color: var(--red, #b3192f); background: #fbe9ec; }
.review-options li.is-given em { color: var(--red, #b3192f); }
.review-item__explain { padding: 0.9rem 1rem; border-radius: var(--radius-small); background: var(--sign-tint, #eaf1f9); color: var(--ink); }

/* teaser on the practice landing page */
.ftest-teaser { display: grid; gap: 2rem 3rem; align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: 18px; background: var(--night, #0f1f38); color: #fff; }
.ftest-teaser h2 { color: #fff; }
.ftest-teaser .lead { color: var(--on-night, #c7d3e6); }
.ftest-teaser .btn--ghost { --btn-fg: #fff; --btn-border: rgb(255 255 255 / 0.55); }
.ftest-teaser .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--night, #0f1f38); --btn-border: #fff; }
.ftest-teaser__road { display: flex; gap: 8px; list-style: none; margin: 0; padding: 14px; border-radius: 10px; background: #182d4f; }
.ftest-teaser__road li { flex: 1; height: 8px; border-radius: 2px; background: #fff; opacity: 0.85; }
.ftest-teaser__road li:nth-child(n + 4) { opacity: 0.25; }
.ftest-teaser__road li:nth-child(4) { background: var(--amber); opacity: 1; }
@media (min-width: 900px) { .ftest-teaser { grid-template-columns: 1.4fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .ftest__road li.is-current { animation: none; } }

/* comparison with other participants */
.ftest-compare { margin: 1rem 0 0.5rem; max-width: 520px; }
.ftest-compare__pct { margin: 0 0 0.6rem; font-size: 1.15rem; }
.ftest-compare__bar { position: relative; height: 14px; border-radius: 7px; background: var(--fog, #eef2f7); margin: 0.4rem 0 0.6rem; }
.ftest-compare__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 7px; background: linear-gradient(90deg, var(--sign), #4889c8); transition: width 1.1s var(--ease-out, ease-out); }
.ftest-compare__you { position: absolute; top: 50%; left: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--amber); border: 3px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / 0.3); transition: left 1.1s var(--ease-out, ease-out); }
.ftest-compare__text { margin: 0; font-weight: 650; }
/* perfect score: a golden sign */
.ftest-result.is-perfect .ftest-result__sign { background: var(--amber); color: var(--night, #0f1f38); box-shadow: inset 0 0 0 7px var(--amber), inset 0 0 0 10px #fff, 0 24px 50px -24px rgb(0 0 0 / 0.5); }
.fireworks { position: fixed; inset: 0; z-index: 60; width: 100vw; height: 100vh; pointer-events: none; }

/* ---------- Question types: several answers, put in order, numbered answers ---------- */
.qhint { margin: -0.25rem 0 0.9rem; padding: 0.55rem 0.85rem; border-radius: 8px; background: #fff7e6; border-left: 4px solid var(--amber); font-weight: 650; font-size: 0.95rem; }
/* several answers: a tick box instead of a letter when chosen */
.qoptions--multi .qopt__key { border-radius: 6px; }
.qoptions--multi .qopt.is-selected .qopt__key { font-size: 0; }
.qoptions--multi .qopt.is-selected .qopt__key::after { content: ""; width: 0.55rem; height: 0.95rem; margin-top: -0.2rem; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.qopt.is-missed { border-color: var(--green); border-style: dashed; background: #f3faf6; }
.qopt.is-missed .qopt__key { background: #cfe9da; color: var(--ink); }
/* order: the position appears as a sign-like badge on the right */
.qopt__rank { flex: none; margin-left: auto; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px dashed var(--line); font-weight: 900; font-size: 1.05rem; color: transparent; }
.qopt.is-selected .qopt__rank { border: 0; background: var(--amber); color: var(--night, #0f1f38); box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--amber); animation: rank-pop 0.18s ease-out; }
.qopt.is-correct .qopt__rank { background: var(--green); color: #fff; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--green); }
.qopt.is-wrong .qopt__rank { background: var(--red); color: #fff; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--red); }
@keyframes rank-pop { from { transform: scale(0.6); } }
/* numbered answers ("Which car may go first?"): big round number buttons that match the picture */
.qoptions--numbers { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); max-width: 460px; }
.qoptions--numbers .qopt { justify-content: center; padding: 0.7rem; aspect-ratio: 1; border-radius: 50%; }
.qoptions--numbers .qopt__key { width: auto; height: auto; background: none; font-size: 1.9rem; line-height: 1; }
.qoptions--numbers .qopt.is-selected .qopt__key, .qoptions--numbers .qopt.is-correct .qopt__key, .qoptions--numbers .qopt.is-wrong .qopt__key { background: none; color: inherit; }
.qoptions--numbers .qopt.is-selected { background: var(--sign); color: #fff; }
.qoptions--numbers .qopt.is-correct { background: var(--green); color: #fff; }
.qoptions--numbers .qopt.is-wrong { background: var(--red); color: #fff; }
.qoptions--numbers .qopt.is-correct.is-missed { background: #fff; color: var(--green); border: 3px dashed var(--green); } /* right, but not chosen */
.qoptions--numbers.qoptions--multi .qopt.is-selected .qopt__key { font-size: 1.9rem; }
.qoptions--numbers.qoptions--multi .qopt.is-selected .qopt__key::after { display: none; }
.qoptions--numbers .qopt__rank { position: absolute; top: -0.4rem; right: -0.4rem; width: 1.7rem; height: 1.7rem; font-size: 0.9rem; margin: 0; }
.qoptions--numbers .qopt { position: relative; }
@media (prefers-reduced-motion: reduce) { .qopt.is-selected .qopt__rank { animation: none; } }

/* free test: several answers, order, numbered answers */
.answers--numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); max-width: 460px; }
.answers--numbers .answer { justify-content: center; aspect-ratio: 1; border-radius: 50%; padding: 0.6rem; }
.answers--numbers .answer__key { width: auto; height: auto; background: none !important; color: inherit !important; font-size: 1.9rem; line-height: 1; }
.ftest .answers--numbers .answer:has(input:checked) { background: var(--sign); color: #fff; }
.answers--multi .answer__key { border-radius: 6px; }
.answer--order { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem; border: 2px solid var(--line); border-radius: var(--radius-small, 10px); background: var(--paper); cursor: pointer; font-size: 1.05rem; font-weight: 650; }
.answer--order:hover { border-color: var(--sign); }
.answer--order:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.answer--order.is-ranked { border-color: var(--sign); background: #f2f7fd; }
.answer__pos { margin-left: auto; }
.answer__pos select { width: auto; min-width: 4.2rem; min-height: 42px; font-weight: 800; text-align: center; }
.answer--order.is-ranked .answer__pos select { background: var(--amber); border-color: var(--amber); color: var(--night, #0f1f38); }
/* with script: tap to rank; the place shows as a round badge (like the members' quiz) and the dropdown is only the form field */
.answer__rank { display: none; }
.is-tap .answer__pos { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-tap .answer--order { position: relative; user-select: none; -webkit-tap-highlight-color: transparent; }
.is-tap .answer__rank { flex: none; margin-left: auto; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 2px dashed var(--line); font-weight: 900; font-size: 1.1rem; line-height: 1; color: var(--night, #0f1f38); }
.is-tap .answer--order.is-ranked .answer__rank { border: 0; background: var(--amber); box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--amber); animation: rank-pop 0.18s ease-out; }
/* numbered answers in order: round buttons, badge on the corner */
.answers--numbers .answer--order { flex-direction: column; justify-content: center; gap: 0; aspect-ratio: 1; border-radius: 50%; padding: 0.6rem; }
.answers--numbers:not(.is-tap) .answer--order { aspect-ratio: auto; border-radius: var(--radius-small, 10px); gap: 0.4rem; }
.answers--numbers:not(.is-tap) .answer__pos { margin-left: 0; }
.answers--numbers.is-tap .answer__rank { position: absolute; top: -0.45rem; right: -0.45rem; width: 1.9rem; height: 1.9rem; font-size: 0.95rem; margin: 0; background: var(--paper); }
.answers--numbers.is-tap .answer--order.is-ranked { background: var(--sign); border-color: var(--sign); color: #fff; }
@media (prefers-reduced-motion: reduce) { .is-tap .answer--order.is-ranked .answer__rank { animation: none; } }
.review-order { margin: 0.35rem 0; }
.review-order.is-right strong { color: var(--green); }

/* ---------- practice plans as pricing cards ---------- */
.plans-lead { max-width: 46rem; margin-bottom: 1.75rem; }
.pplans-vehicle { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem; font-weight: 750; }
.pplans { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 720px) { .pplans--2 { grid-template-columns: repeat(2, minmax(0, 22rem)); } .pplans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pplan { position: relative; display: flex; flex-direction: column; padding: 1.75rem 1.5rem 1.5rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: 0 2px 0 rgb(15 31 56 / 0.08); }
.pplan--best { padding-top: 3.4rem; background: var(--night); border-color: var(--night); color: #fff; box-shadow: 0 18px 34px -22px rgb(15 31 56 / 0.8); }
.pplan__ribbon { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin: 0; padding: 0.45rem 1rem 0.4rem; border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; background: var(--amber); color: var(--night); font-size: 0.9rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.pplan__ribbon .i { width: 1.1em; height: 1.1em; }
.pplan__flag { position: absolute; top: -0.85rem; left: 1.25rem; display: inline-flex; align-items: center; gap: 0.35rem; margin: 0; padding: 0.25rem 0.75rem 0.2rem 0.55rem; border-radius: 999px; background: var(--amber); color: var(--night); font-size: 0.85rem; font-weight: 850; }
.pplan__flag .i { width: 1em; height: 1em; }
.pplan--best .pplan__flag { position: static; align-self: flex-start; margin-bottom: 0.9rem; }
.pplan__days { display: flex; align-items: baseline; gap: 0.35rem; margin: 0; font-weight: 800; color: var(--muted); }
.pplan__days strong { font-size: 2.6rem; line-height: 1; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; }
.pplan--best .pplan__days, .pplan--best .pplan__per, .pplan--best .pplan__name { color: var(--on-night); }
.pplan--best .pplan__days strong, .pplan--best .pplan__price { color: #fff; }
.pplan__name { margin: 0.35rem 0 1rem; font-size: 0.95rem; font-weight: 700; color: var(--muted); }
.pplan__price { margin: 0; font-size: 2.2rem; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pplan__per { margin: 0.15rem 0 1.1rem; font-size: 0.95rem; font-weight: 700; color: var(--green); }
.pplan--best .pplan__per { color: var(--amber); }
/* packages with the theory book: their own group under the others */
.pplans-group { margin: 2.5rem 0 1.25rem; }
.pplans-group__title { margin: 0; font-size: var(--step-1, 1.35rem); font-weight: 900; }
.pplans-group__lead { margin: 0.25rem 0 0; color: var(--muted); }
.pplan__flag--book { background: var(--amber); color: var(--night); }
.pplan--book { border-color: var(--amber); }
.pplan--book.pplan--best { border-color: var(--night); }
.pplan__was { margin-right: 0.15rem; font-size: 1.1rem; font-weight: 700; color: var(--muted); }
.pplan--best .pplan__was, .pplan--best .package__component-prices s { color: var(--on-night); }
.pplan--best .package__component-prices strong { color: var(--amber); }
.pplan__list { margin: 0 0 1.5rem; padding-top: 1.1rem; border-top: 2px solid var(--fog); }
.pplan--best .pplan__list { border-top-color: rgb(255 255 255 / 0.14); }
.pplan--best .checklist .i { color: var(--amber); }
.pplan--best .checklist span { color: #fff; }
.pplan__cta { margin-top: auto; }
.pplan--best .btn--outline { color: #fff; border-color: #fff; }
.pplans-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-weight: 700; color: var(--ink-2); }
.pplans-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.pplans-trust .i { color: var(--green); }
.pplans-soon { margin: 0.75rem 0 0; }
