/* Fonts are self-hosted so no visitor data goes to a font CDN. */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f3f5f8;
  --bg-grey: #e8edf3;
  --ink: #0a1a2f;
  --text: #2b3a4f;
  --muted: #56677d;
  --navy: #0b2a5b;
  --navy-hover: #133b7c;
  --navy-deep: #071d40;
  --cyan: #19b4d4;
  --cyan-ink: #0a6e82;
  --cyan-soft: #e3f6fa;
  --line: #d9e1ea;
  --ok: #157347;
  --ok-soft: #e6f4ec;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 47, 0.06), 0 1px 1px rgba(10, 26, 47, 0.04);
  --shadow: 0 10px 30px -12px rgba(10, 26, 47, 0.18), 0 2px 6px rgba(10, 26, 47, 0.05);
  --shadow-lg: 0 30px 60px -24px rgba(10, 26, 47, 0.28);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
::selection { background: var(--cyan-soft); color: var(--ink); }

:focus-visible { outline: 3px solid var(--cyan-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(11, 42, 91, .7); }
.btn-primary:hover { background: var(--navy-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* Opaque instead of a backdrop blur: a blur over the animated 3D hero is recalculated every frame
     and made scrolling stutter. */
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.2rem/1 var(--font-display); letter-spacing: -0.02em; }
.logo svg { width: 34px; height: 34px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .96rem; padding: 10px 14px; border-radius: var(--radius-sm); }
.nav a:not(.btn):hover { background: var(--bg-soft); color: var(--ink); }
.nav .btn { margin-left: 10px; min-height: 42px; padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: var(--radius-sm); width: 46px; height: 46px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { margin: auto; width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% 40%, #ffffff 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #f6f8fb 0%, #eaeff5 100%);
  min-height: min(860px, calc(100vh - 72px));
  display: flex; align-items: center;
  isolation: isolate;
}
.hero-canvas-wrap { position: absolute; inset: 0 0 0 38%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 12%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 12%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  /* Own GPU layer, so the fade mask is applied by the compositor and not repainted on every frame. */
  will-change: transform; transform: translateZ(0); }
.hero-canvas-wrap canvas { width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s ease; }
.hero-canvas-wrap.is-ready canvas { opacity: 1; }
.hero-grid { position: absolute; inset: 0; z-index: -2; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 20% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 20% 40%, #000 0%, transparent 70%);
}
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 96px; width: 100%; }
.hero-copy { max-width: 590px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .82rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan-ink); margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--cyan); }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--navy); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em;
  background: var(--cyan); opacity: .45; z-index: -1; border-radius: 2px;
  transform-origin: left; transform: scaleX(0); animation: underline 900ms 700ms cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--text); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; justify-content: start; padding-top: 24px; border-top: 1px solid var(--line); max-width: 520px; }
.hero-facts dt { font: 700 1.7rem/1 var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.hero-facts dd { margin: 6px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.35; }
.hero-facts-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

/* Floating UI glimpse in hero (illustration of the practice exam) */
.hero-card {
  position: absolute; z-index: 2; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  bottom: 64px; width: 280px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(217, 225, 234, .9); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px 18px;
  animation: float 7s ease-in-out infinite;
}
.hero-card-top { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.hero-card-q { font-weight: 600; color: var(--ink); font-size: .92rem; line-height: 1.4; margin-bottom: 12px; }
.hero-card-bar { height: 6px; background: var(--bg-grey); border-radius: 3px; overflow: hidden; }
.hero-card-bar span { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, var(--navy), var(--cyan)); border-radius: 3px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Hero entrance */
.reveal-up { opacity: 0; transform: translateY(18px); animation: revealUp .8s cubic-bezier(.2,.8,.2,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; } .d5 { animation-delay: .5s; }
@keyframes revealUp { to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-canvas-wrap { position: relative; inset: auto; height: 46vh; min-height: 300px; max-height: 420px; order: -1; margin-bottom: -40px;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 30%); mask-image: linear-gradient(0deg, transparent 0%, #000 30%); }
  .hero-grid { display: none; }
  .hero-inner { padding-top: 0; padding-bottom: 64px; }
  .hero-card { display: none; }
}
@media (max-width: 520px) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-facts dt { font-size: 1.4rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.kicker { font: 600 .82rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-ink); margin-bottom: 14px; display: block; }

/* Scroll reveal: small and quick, once. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; font: 700 1.1rem/1 var(--font-display); margin-bottom: 22px; }
.step p { color: var(--muted); margin: 0; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 54px; right: -24px; width: 24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 10px);
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step:not(:last-child)::after { display: none; } }

/* ---------- Quiz demo ---------- */
.demo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.demo-copy p { color: var(--muted); }
.demo-copy ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.demo-copy li { display: flex; gap: 12px; align-items: flex-start; }
.demo-copy li svg { width: 22px; height: 22px; flex: none; color: var(--cyan-ink); margin-top: 2px; }
.quiz {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.quiz:hover, .quiz:focus-within { transform: none; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--navy-deep); color: #dbe7f7; font-size: .88rem; font-variant-numeric: tabular-nums; }
.quiz-top strong { color: #fff; font-weight: 600; }
.quiz-body { padding: 28px 24px 24px; }
.quiz fieldset { border: 0; padding: 0; margin: 0; }
.quiz legend { font: 600 1.15rem/1.4 var(--font-display); color: var(--ink); margin-bottom: 18px; padding: 0; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option { position: relative; }
.quiz-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz-option label {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  font-weight: 500; color: var(--ink); background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}
.quiz-option label .key { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--bg-soft); font: 600 .85rem/1 var(--font); color: var(--muted); flex: none; }
.quiz-option label:hover { border-color: var(--navy); }
.quiz-option input:focus-visible + label { outline: 3px solid var(--cyan-ink); outline-offset: 2px; }
.quiz-option input:checked + label { border-color: var(--navy); background: #f2f6fc; }
.quiz-option input:checked + label .key { background: var(--navy); color: #fff; }
.quiz.is-answered .quiz-option label { cursor: default; }
.quiz-option.is-correct input + label { border-color: var(--ok); background: var(--ok-soft); }
.quiz-option.is-correct input + label .key { background: var(--ok); color: #fff; }
.quiz-option.is-wrong input + label { border-color: var(--bad); background: var(--bad-soft); }
.quiz-option.is-wrong input + label .key { background: var(--bad); color: #fff; }
.quiz-feedback { margin-top: 18px; padding: 16px; border-radius: var(--radius); background: var(--bg-soft); font-size: .96rem; }
.quiz-feedback[hidden] { display: none; }
.quiz-feedback strong { color: var(--ink); display: block; margin-bottom: 4px; }
.quiz-feedback .src { display: block; margin-top: 8px; font-size: .82rem; color: var(--muted); }
.quiz-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; gap: 40px; } .quiz { transform: none; } }

/* ---------- Pricing ---------- */
.cat-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 auto 40px; max-width: 100%; }
.cat-tabs-wrap { text-align: center; }
.cat-tab { border: 0; background: none; font: 600 .96rem/1 var(--font); color: var(--muted); padding: 12px 18px; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.cat-tab.is-active { background: var(--navy); color: #fff; }
.cat-tab:not(.is-active):hover { background: var(--bg-soft); color: var(--ink); }
.cat-tab.is-active .soon { background: rgba(255,255,255,.16); color: #fff; }
.cat-tab .soon { font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); padding: 4px 7px; border-radius: 5px; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.is-featured { border-color: var(--navy); box-shadow: var(--shadow); }
.price-tag { position: absolute; top: -13px; left: 28px; background: var(--cyan-ink); color: #fff; font: 600 .78rem/1 var(--font); letter-spacing: .03em; padding: 7px 10px; border-radius: 6px; }
.price-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.price-card .cat { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price-amount .amount { font: 700 3rem/1 var(--font-display); color: var(--ink); letter-spacing: -0.03em; }
.price-amount .vat { font-size: .88rem; color: var(--muted); }
.price-per-day { font-size: .92rem; color: var(--cyan-ink); font-weight: 600; margin-bottom: 24px; }
.price-features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; }
.price-features li { display: flex; gap: 10px; font-size: .96rem; }
.price-features svg { width: 20px; height: 20px; flex: none; color: var(--navy); margin-top: 2px; }
.pricing-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 28px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--cyan-soft); color: var(--cyan-ink); display: grid; place-items: center; margin-bottom: 18px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- Route (path to chauffeurskaart) ---------- */
.route-section { background: var(--navy-deep); color: #c9d6ea; position: relative; overflow: hidden; }
.route-section h2, .route-section h3 { color: #fff; }
.route-section .kicker { color: #6fd6ec; }
.route-section .section-head p { color: #b4c4dc; }
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.route::before { content: ''; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: repeating-linear-gradient(90deg, rgba(111, 214, 236, .55) 0 14px, transparent 14px 26px); }
.route li { position: relative; padding-top: 64px; }
.route .dot { position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #0e2c5c; border: 2px solid rgba(111, 214, 236, .6); color: #fff; font: 700 1rem/1 var(--font-display); }
.route li.is-us .dot { background: var(--cyan); border-color: var(--cyan); color: var(--navy-deep); box-shadow: 0 0 0 8px rgba(25, 180, 212, .18); }
.route h3 { font-size: 1.1rem; margin-bottom: 8px; }
.route p { margin: 0; font-size: .96rem; }
.route .us-label { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 600; color: var(--navy-deep); background: #6fd6ec; padding: 5px 8px; border-radius: 5px; }
.route-source { margin-top: 40px; font-size: .85rem; color: #93a6c4; }
.route-source a { color: #bfe9f4; }
@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; gap: 28px; }
  .route::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(111, 214, 236, .55) 0 14px, transparent 14px 26px); }
  .route li { padding: 4px 0 0 68px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font: 600 1.1rem/1.4 var(--font-display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 32px; height: 32px; flex: none; border-radius: var(--radius-sm); border: 1.5px solid var(--line); display: grid; place-items: center; transition: transform .25s ease, background-color .2s ease; }
.faq summary .chev svg { width: 16px; height: 16px; }
.faq details[open] summary .chev { transform: rotate(45deg); background: var(--navy); border-color: var(--navy); color: #fff; }
.faq .answer { padding: 0 4px 24px; color: var(--muted); max-width: 720px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #c9d6ea; padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { margin: 0; font-size: 1.1rem; }
.cta .btn-primary { background: #fff; color: var(--navy); box-shadow: none; }
.cta .btn-primary:hover { background: var(--cyan-soft); color: var(--navy-deep); }
.cta-actions { display: flex; justify-content: flex-end; }
.cta-lines { position: absolute; inset: 0; pointer-events: none; opacity: .35; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } .cta-actions .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.site-footer h2 { font-size: .85rem; font-family: var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--navy); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--text); line-height: 1.8; }
.footer-about p { color: var(--muted); margin-top: 16px; max-width: 320px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Checkout ---------- */
.checkout { padding: 56px 0 96px; background: var(--bg-soft); min-height: calc(100vh - 72px); }
.checkout h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 18px; }
.pkg-options { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.pkg-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pkg-option label { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.pkg-option label:hover { border-color: var(--navy); }
.pkg-option .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.pkg-option input:checked + label { border-color: var(--navy); background: #f2f6fc; }
.pkg-option input:checked + label .radio { border-color: var(--navy); }
.pkg-option input:checked + label .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.pkg-option input:focus-visible + label { outline: 3px solid var(--cyan-ink); outline-offset: 2px; }
.pkg-option .name { font-weight: 600; color: var(--ink); }
.pkg-option .sub { display: block; font-size: .86rem; color: var(--muted); font-weight: 400; }
.pkg-option .p { font: 700 1.25rem/1 var(--font-display); color: var(--ink); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .96rem; }
.field .hint { display: block; font-size: .86rem; color: var(--muted); margin-top: 6px; }
.field input[type="text"], .field input[type="email"] {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--ink);
  border: 1.5px solid #b9c5d3; border-radius: var(--radius-sm); background: #fff;
}
.field input:focus { border-color: var(--navy); outline: 3px solid rgba(25, 180, 212, .35); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field .error { display: block; color: var(--bad); font-size: .88rem; margin-top: 6px; font-weight: 500; }
.field .error:empty { display: none; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin-bottom: 14px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.check label { font-size: .96rem; }
.check .error { grid-column: 2; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
.summary-row + .summary-row { border-top: 1px solid var(--line); }
.summary-total { font: 700 1.4rem/1.2 var(--font-display); color: var(--ink); }
.notice { border-radius: var(--radius); padding: 16px; background: var(--cyan-soft); color: var(--ink); font-size: .95rem; }
.notice[hidden] { display: none; }
.back-link { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 20px; text-decoration: none; font-weight: 500; }
.back-link svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal .updated { color: var(--muted); font-size: .92rem; }
.legal .draft-note { border-left: 4px solid var(--cyan-ink); background: var(--cyan-soft); padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .95rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .quiz { transform: none; }
}

/* Utility */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.steps { list-style: none; padding: 0; margin: 0; }
.section-cta { padding-top: 0; }

/* ---------- Multi-theory components ---------- */
.nav a[aria-current="page"]:not(.btn) { color: var(--navy); background: var(--bg-soft); font-weight: 600; }

.badge { display: inline-flex; align-items: center; font: 600 .74rem/1 var(--font); letter-spacing: .02em; padding: 5px 8px; border-radius: 6px; background: var(--bg-grey); color: var(--muted); white-space: nowrap; }
.badge-live { background: var(--cyan-soft); color: var(--cyan-ink); }

.cat-chips { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.cat-chips > li { flex: 1 1 250px; min-width: 0; }
.cat-chip {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-weight: 600; text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cat-chip:hover { border-color: var(--navy); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cat-chip svg { width: 22px; height: 22px; color: var(--navy); flex: none; }
.cat-chip span:first-of-type { flex: 1; min-width: 0; white-space: nowrap; }
.section-tight { padding: 0 0 clamp(56px, 8vw, 96px); }
.section-tight .cat-chips { border-top: 0; padding-top: 0; max-width: none; }
.section-tight .cat-chips > li { flex-basis: 220px; }
.other-title { font-size: 1.3rem; margin-bottom: 16px; }


.theory-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.theory-grid > * { flex: 1 1 200px; min-width: 0; }
.theory-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px 24px; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
.theory-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.theory-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.theory-icon { width: 52px; height: 52px; border-radius: var(--radius); background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.theory-icon svg { width: 28px; height: 28px; }
.theory-card h3 { margin-bottom: 6px; }
.theory-exam { color: var(--muted); font-size: .92rem; line-height: 1.45; min-height: 2.9em; }
.theory-facts { list-style: none; padding: 16px 0 0; margin: 0 0 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; font-size: .94rem; flex: 1; }
.theory-facts strong { font-family: var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }

.soon-panel { display: flex; gap: 24px; align-items: flex-start; max-width: 720px; margin: 0 auto; background: #fff; border: 1.5px dashed #b9c5d3; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.soon-panel h3 { font-size: 1.4rem; }
.soon-panel p { color: var(--muted); }
.soon-panel .theory-facts { border-top: 0; padding-top: 0; }
@media (max-width: 560px) { .soon-panel { flex-direction: column; } }
[role="tabpanel"]:focus-visible { outline-offset: 8px; }

.exam-compare { display: flex; flex-wrap: wrap; gap: 16px; }
.exam-compare > * { flex: 1 1 200px; min-width: 0; }
.exam-col { background: rgba(255, 255, 255, .05); border: 1px solid rgba(111, 214, 236, .25); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; }
.exam-col h3 { font-size: 1.25rem; margin-bottom: 4px; }
.exam-name { font-size: .88rem; color: #a9bad3; min-height: 3.9em; }
.exam-col ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 0; flex: 1; }
.exam-col li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; }
.exam-col li strong { color: #fff; font: 700 1.05rem/1.3 var(--font-display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.exam-src { font-size: .82rem; color: #93a6c4; margin: 0; }
.exam-src a { color: #bfe9f4; }
@media (max-width: 600px) { .exam-name { min-height: 0; } }

.exam-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 720px; }
.exam-points li { position: relative; padding: 16px 18px 16px 52px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(111, 214, 236, .25); border-radius: var(--radius); color: #dbe5f3; }
.exam-points li::before { content: ''; position: absolute; left: 20px; top: 22px; width: 14px; height: 8px; border-left: 2.5px solid #6fd6ec; border-bottom: 2.5px solid #6fd6ec; transform: rotate(-45deg); }

.hero-sub { min-height: min(760px, calc(100vh - 72px)); }
@media (max-width: 960px) { .hero-sub { min-height: 0; } }

/* ---------- Accounts ---------- */
.muted { color: var(--muted); }
.nav a.nav-account { font-weight: 600; color: var(--navy); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--navy-hover); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.notice-success { background: var(--ok-soft); color: #0e4f31; border-left: 4px solid var(--ok); }
.notice-error { background: var(--bad-soft); color: #7a1a12; border-left: 4px solid var(--bad); }
.notice-info { background: var(--cyan-soft); color: var(--ink); border-left: 4px solid var(--cyan-ink); }
.notice a { color: inherit; font-weight: 600; }
.form-error { color: var(--bad); font-weight: 500; margin: 0 0 14px; }
.form-error:empty { display: none; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 84px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 38px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--bg-soft); color: var(--navy); font: 600 .88rem/1 var(--font); cursor: pointer; }
.pw-toggle:hover { background: var(--bg-grey); }
.field input[type="password"] { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--ink); border: 1.5px solid #b9c5d3; border-radius: var(--radius-sm); background: #fff; }

.auth { padding: clamp(40px, 8vw, 88px) 0 96px; background: var(--bg-soft); min-height: calc(100vh - 72px); }
.auth-panel { max-width: 480px; margin: 0 auto; }
.auth-panel h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); margin-bottom: 8px; }
.auth-lead { color: var(--muted); margin-bottom: 24px; }
.auth-links { margin: 18px 0 0; font-size: .96rem; }
.auth-alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .94rem; display: grid; gap: 8px; }
.auth-alt p { margin: 0; }
.account-switch, .account-known { font-size: .95rem; margin: 4px 0 8px; }

.dashboard { padding: 40px 0 96px; background: var(--bg-soft); min-height: calc(100vh - 72px); }
.dashboard .notice { margin-bottom: 24px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.dash-head .kicker { margin-bottom: 8px; }
.dash-section { margin-bottom: 40px; }
.dash-section h2, .dashboard .panel h2 { font-size: 1.35rem; margin-bottom: 16px; }
.access-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.access-grid > * { flex: 1 1 280px; min-width: 0; }
.access-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.access-card.is-expired { background: var(--bg-soft); }
.access-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.access-card h3 { margin: 0; }
.access-card .muted { margin: 0 0 12px; font-size: .94rem; }
.access-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.access-actions .btn { flex: 1 1 140px; }
.access-soon { font-size: .86rem; color: var(--muted); margin: 8px 0 0; }
.empty-state { background: #fff; border: 1.5px dashed #b9c5d3; border-radius: var(--radius-lg); padding: 24px; }
.empty-state p { margin: 0; }
.more-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.more-grid > * { flex: 1 1 220px; min-width: 0; }
.dash-columns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.dash-columns .panel + .panel { margin-top: 0; }
@media (max-width: 860px) { .dash-columns { grid-template-columns: 1fr; } }
.order-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.order-table th, .order-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.order-table th { color: var(--ink); font-weight: 600; }
.order-table .muted { font-size: .84rem; }
.account-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 24px; }
.account-forms h3 { font-size: 1.05rem; margin-bottom: 12px; }
.account-forms .notice { margin-top: 12px; }
@media (max-width: 760px) { .account-forms { grid-template-columns: 1fr; } }
.danger-zone { border-top: 1px solid var(--line); padding-top: 16px; }
.danger-zone summary { cursor: pointer; font-weight: 600; color: var(--bad); padding: 6px 0; }
.danger-zone form { margin-top: 12px; max-width: 480px; }
.danger-zone p { font-size: .94rem; color: var(--text); }
.mock-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Split login layout */
.auth-single .auth-panel { max-width: 480px; margin: 0 auto; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.auth-split .auth-panel { max-width: none; margin: 0; border: 0; border-radius: 0; padding: clamp(28px, 4vw, 48px); }
.auth-aside { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #c9d6ea; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; }
.auth-route { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.auth-aside > *:not(.auth-route) { position: relative; }
.auth-aside .kicker { color: #6fd6ec; }
.auth-aside h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 20px; }
.auth-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-aside li { display: flex; gap: 10px; align-items: flex-start; }
.auth-aside li svg { width: 20px; height: 20px; flex: none; color: #6fd6ec; margin-top: 2px; }
@media (max-width: 820px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { min-height: 0; order: 2; }
  .auth-route { display: none; }
}
.footer-login { font-weight: 600; color: var(--navy) !important; }

/* ---------- Practice exams ---------- */
.exam-page .back-link { margin-bottom: 16px; }
.exam-page .notice { margin-bottom: 20px; }
.exam-spec { color: var(--muted); max-width: 720px; margin-bottom: 24px; }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.exam-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.exam-card h2 { font-size: 1.25rem; margin: 0; }
.exam-card .muted { font-size: .94rem; margin: 0 0 14px; flex: 1; }
.exam-card .btn { align-self: flex-start; }

.exam-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.exam-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.exam-progress { margin: 4px 0 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.exam-timer { margin: 0; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--navy-deep); color: #fff; font: 600 1.25rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.exam-timer.is-low { background: var(--bad); }
.exam-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.exam-question fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-text { font: 600 1.2rem/1.45 var(--font-display); color: var(--ink); padding: 0; margin-bottom: 18px; }
.q-hint { color: var(--muted); font-size: .94rem; margin: 0 0 12px; }
.q-figure { position: relative; max-width: 440px; margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.q-figure img { width: 100%; height: auto; }
.q-figure.is-sign { max-width: 200px; border: 0; background: transparent; padding: 8px; }
.q-figure.is-photo { max-width: 760px; }
.quiz-yesno { grid-template-columns: 1fr 1fr; }
.exam-question .quiz-option input[type="checkbox"] + label .key { border-radius: 4px; }
.q-number-row { display: flex; align-items: center; gap: 12px; max-width: 320px; }
.q-number-row input { flex: 1; }
.q-unit { color: var(--muted); white-space: nowrap; }
.q-spots { position: absolute; inset: 0; }
.q-spot {
  position: absolute; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--navy); background: #fff;
  font: 700 1.1rem/1 var(--font); color: var(--navy); cursor: pointer;
  box-shadow: 0 2px 8px rgba(10, 26, 47, .3);
}
.q-spot:hover { background: var(--cyan-soft); }
.q-spot[aria-pressed="true"] { background: var(--navy); color: #fff; outline: 4px solid var(--cyan); outline-offset: 0; }
.order-list { display: grid; gap: 10px; max-width: 440px; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); }
.order-row label { font-weight: 500; color: var(--ink); }
.order-row select { min-height: 44px; min-width: 90px; padding: 8px 10px; font: inherit; color: var(--ink); border: 1.5px solid #b9c5d3; border-radius: var(--radius-sm); background: #fff; }
.exam-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.exam-nav .btn:disabled { opacity: .45; cursor: not-allowed; }
.exam-overview { position: sticky; top: 88px; }
.exam-overview h2 { margin-bottom: 4px; }
.exam-overview .muted { font-size: .92rem; }
.q-grid { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.q-cell { width: 100%; min-height: 40px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; font: 600 .9rem/1 var(--font); color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; }
.q-cell:hover { border-color: var(--navy); }
.q-cell.is-answered { background: var(--cyan-soft); border-color: var(--cyan-ink); color: var(--cyan-ink); }
.q-cell.is-current { border-color: var(--navy); background: var(--navy); color: #fff; }
.finish-confirm { margin-top: 4px; }
.finish-confirm p { font-size: .95rem; }
.finish-actions { display: grid; gap: 8px; }
@media (max-width: 900px) {
  .exam-layout { grid-template-columns: 1fr; }
  .exam-overview { position: static; }
}
@media (max-width: 520px) {
  .quiz-yesno { grid-template-columns: 1fr; }
  .exam-nav .btn { flex: 1 1 140px; }
}

.result-head { margin-bottom: 20px; border-left: 6px solid var(--bad); }
.result-head.is-passed { border-left-color: var(--ok); }
.result-head h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; }
.result-score { font-size: 1.1rem; color: var(--ink); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.topic-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.topic-table th, .topic-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.topic-table td:last-child, .topic-table th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.review { margin-top: 28px; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.review-head h2 { font-size: 1.35rem; margin: 0; }
.review-filter { margin: 0; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.review-item { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--ok); border-radius: var(--radius); padding: 18px 20px; }
.review-item.is-wrong { border-left-color: var(--bad); }
.review-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-num { font-weight: 600; color: var(--muted); font-size: .9rem; }
.review-q { font-weight: 600; color: var(--ink); }
.review-item .q-figure { max-width: 320px; }
.review-item .q-figure.is-sign { max-width: 120px; }
.review-answers { margin: 0 0 12px; display: grid; gap: 6px; }
.review-answers div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.review-answers dt { color: var(--muted); font-size: .92rem; }
.review-answers dd { margin: 0; color: var(--ink); font-weight: 500; }
.review-why { margin-bottom: 6px; }
.review-src { font-size: .86rem; color: var(--muted); margin: 0; }
.badge-ok { background: var(--ok-soft); color: #0e4f31; }
.badge-bad { background: var(--bad-soft); color: #7a1a12; }
@media (max-width: 520px) { .review-answers div { grid-template-columns: 1fr; gap: 0; } }

/* ---------------------------------------------------------------- leerstof */
.ls-intro { max-width: 70ch; margin-top: 10px; }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ls-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; text-decoration: none; color: var(--text); margin: 0; }
.panel.ls-card + .panel.ls-card { margin-top: 0; }
.ls-card:hover { border-color: var(--navy); color: var(--text); }
.ls-card-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--cyan-soft); color: var(--navy); font-weight: 700; }
.ls-card-clips .ls-card-num { background: var(--navy); color: #fff; font-size: .9rem; }
.ls-card-body { display: grid; gap: 6px; }
.ls-card-body strong { color: var(--ink); font-size: 1.05rem; }
.ls-card-meta { font-size: .85rem; color: var(--cyan-ink); font-weight: 600; }
.ls-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.ls-nav { position: sticky; top: 90px; padding: 20px; }
.ls-nav-title { font-size: 1rem; margin-bottom: 10px; }
.ls-nav ol { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; }
.ls-nav a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); font-size: .95rem; }
.ls-nav a:hover { background: var(--cyan-soft); color: var(--navy); }
.ls-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.ls-nav-clips { border: 1.5px solid var(--line); font-weight: 600; }
.ls-content { display: grid; gap: 20px; min-width: 0; }
.ls-content .panel + .panel { margin-top: 0; }
.ls-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ls-toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; text-decoration: none; font-size: .9rem; }
.ls-section h3 { font-size: 1.25rem; margin-bottom: 12px; scroll-margin-top: 90px; }
.ls-section p { max-width: 75ch; }
.ls-section p + p { margin-top: 10px; }
.ls-rules { margin-top: 18px; background: var(--cyan-soft); border-left: 4px solid var(--cyan-ink); border-radius: var(--radius-sm); padding: 14px 18px; }
.ls-rules-title { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.ls-rules ul { margin: 0; padding-left: 20px; }
.ls-rules li + li { margin-top: 4px; }
.ls-figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.ls-figures.is-signs { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.ls-figure { margin: 0; }
.ls-figure img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; background: #fff; }
.ls-figure.is-sign img { width: auto; max-width: 120px; max-height: 130px; margin: 0 auto; border: 0; }
.ls-figures.is-signs .ls-figure.is-wide { grid-column: span 2; }
.ls-figure.is-wide img { max-width: 100%; max-height: 200px; }
.ls-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; text-align: center; }
.ls-sources { margin-top: 16px; font-size: .88rem; color: var(--muted); }
.ls-clip { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.ls-clip-title { font-size: 1.05rem; margin-bottom: 12px; color: var(--navy); }
.ls-pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .ls-layout { grid-template-columns: 1fr; }
  /* on a phone the text comes first; the list of chapters follows below it */
  .ls-nav { position: static; order: 2; }
}

/* ---------------------------------------------------------------- bewegend beeld */
.clip { margin: 0; }
.clip-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); aspect-ratio: 8 / 5; max-width: 820px; }
.clip-canvas { width: 100%; height: 100%; display: block; }
.clip-poster { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; background: var(--navy-deep); color: #fff; }
.clip-poster[hidden] { display: none; }
.clip-poster-text { max-width: 46ch; }
.clip-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; max-width: 820px; }
.clip-status { font-size: .92rem; color: var(--muted); margin: 0; flex: 1 1 auto; }
.clip-question { margin-top: 14px; max-width: 820px; }
.clip-question fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.clip-question legend { font-weight: 700; font-size: 1.1rem; color: var(--ink); margin-bottom: 12px; }
.clip-feedback { margin-top: 14px; max-width: 820px; }
.clip-feedback p + p { margin-top: 8px; }
.clip-verdict { font-weight: 700; padding: 10px 14px; border-radius: var(--radius-sm); }
.clip-verdict.is-good { background: var(--ok-soft); color: #0e4f31; }
.clip-verdict.is-wrong { background: var(--bad-soft); color: #7a1a12; }
.clip-sources { font-size: .88rem; color: var(--muted); }
