/* =========================================================
   Slaaptest: extra opmaak (laadt na styles.css)
   Gebruikt dezelfde kleurvariabelen als de rest van de site.
   ========================================================= */

.test-hero { padding-bottom: 24px; }
.test-facts {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  color: var(--muted); font-size: 15px;
}
.test-facts li::before { content: "✓"; color: var(--purple-400); font-weight: 700; margin-right: 8px; }

.test-section { padding-top: 24px; }
.test { max-width: 860px; margin: 0 auto; }
.test__noscript { padding: 20px 24px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--muted); }

.test__card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  padding: 36px 36px 32px;
  box-shadow: 0 40px 120px -60px rgba(139, 92, 246, .55);
}

/* ---------- Voortgang ---------- */
.tprog { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 34px; padding: 0; }
.tprog__item { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 3px solid var(--border); color: var(--faint); font-size: 14px; font-weight: 600; transition: border-color .3s, color .3s; }
.tprog__item.is-current { border-top-color: var(--purple-500); color: #fff; }
.tprog__item.is-done { border-top-color: var(--purple-400); color: var(--purple-300); }
.tprog__num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border-strong); font-size: 12.5px; font-weight: 700; flex: none;
}
.tprog__item.is-current .tprog__num { background: var(--grad-btn); border-color: transparent; color: #fff; }
.tprog__item.is-done .tprog__num { background: rgba(139,92,246,.18); }

/* ---------- Stap ---------- */
.tstep__head { margin-bottom: 26px; }
.tstep__title { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 10px; outline: none; }
.tstep__intro { color: var(--muted); margin: 0; max-width: 640px; }

/* ---------- Vragen ---------- */
.tq { margin: 0; padding: 26px 0 0; min-width: 0; }
.tq + .tq { margin-top: 18px; border-top: 1px solid var(--border); }
.tq__text { padding: 0; margin: 0 0 14px; font-weight: 700; font-size: 18px; line-height: 1.4; letter-spacing: -0.01em; }
.tq__num { color: var(--purple-300); font-family: var(--font-head); font-weight: 800; margin-right: 4px; }
.tq__opts { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 6px; }

.topt { position: relative; display: inline-flex; cursor: pointer; }
.topt__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.topt__text {
  display: inline-block; padding: 12px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-weight: 600; font-size: 15.5px; line-height: 1.35;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.topt:hover .topt__text { color: #fff; border-color: var(--border-strong); }
.topt__input:checked + .topt__text { color: #fff; background: rgba(139,92,246,.22); border-color: var(--purple-500); box-shadow: 0 0 0 1px var(--purple-500) inset; }
.topt__input:focus-visible + .topt__text { outline: 2px solid var(--purple-300); outline-offset: 3px; }

/* ---------- Navigatie ---------- */
.tnav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--border); }
.tnav__spacer { flex: 1; }
.tnav .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
.thint { margin: 12px 0 0; text-align: right; color: var(--faint); font-size: 14px; }

/* ---------- Resultaat ---------- */
.test__result { display: grid; gap: 26px; }
.test__result[hidden] { display: none; }
.tres__top {
  display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center;
  padding: 36px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: radial-gradient(70% 120% at 0% 0%, rgba(139,92,246,.25), transparent 65%), rgba(255,255,255,.03);
}
.ring { position: relative; width: 200px; height: 200px; justify-self: center; }
.ring__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 10; }
.ring__bar { fill: none; stroke: var(--purple-500); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 0 10px rgba(139,92,246,.7)); }
.ring__text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring__score { font-family: var(--font-head); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.04em; }
.ring__of { color: var(--muted); font-weight: 600; font-size: 15px; margin-top: 6px; }
.tres__headline { font-size: clamp(30px, 3.8vw, 44px); margin: 0 0 12px; outline: none; }
.tres__body { color: var(--muted); font-size: 18px; margin: 0 0 14px; }
.tres__focus { margin: 0; font-size: 17px; }
.tres__focus strong { color: var(--purple-300); }

.tpillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tpillar { display: flex; flex-direction: column; padding: 26px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tpillar--low { border-color: rgba(167,132,255,.55); background: rgba(139,92,246,.09); }
.tpillar__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.tpillar__name { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; margin: 0; }
.tpillar__score { color: var(--purple-300); font-weight: 700; font-size: 15px; white-space: nowrap; }
.tbar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 12px; }
.tbar__fill { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.tpillar__level { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-300); }
.tpillar__text { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }
.tpillar__tip { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 15px; color: #fff; }
.tpillar__tip strong { color: var(--purple-300); }
.tpillar__note { margin: 12px 0 0; font-size: 14px; color: var(--faint); }

.tres__cta { padding: 64px 32px; }
.tres__cta .cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tres__again { display: grid; justify-items: center; gap: 18px; text-align: center; }
.tres__legal { max-width: 720px; margin: 0; color: var(--faint); font-size: 13.5px; }

/* ---------- Tablet / telefoon ---------- */
@media (max-width: 900px) {
  .tpillars { grid-template-columns: 1fr; }
  .tres__top { grid-template-columns: 1fr; gap: 22px; padding: 28px 24px; text-align: center; }
  .tres__body, .tres__focus { text-align: left; }
}
@media (max-width: 640px) {
  .test__card { padding: 24px 18px 22px; }
  .tprog { gap: 6px; margin-bottom: 26px; }
  .tprog__item { font-size: 12.5px; gap: 6px; padding-top: 10px; }
  .tprog__num { width: 22px; height: 22px; font-size: 11.5px; }
  .tq__text { font-size: 17px; }
  .tq__opts { flex-direction: column; }
  .topt { display: flex; }
  .topt__text { width: 100%; padding: 14px 16px; }
  .tnav { flex-direction: column-reverse; align-items: stretch; }
  .tnav .btn { width: 100%; white-space: normal; }
  .tnav__spacer { display: none; }
  .thint { text-align: center; }
  .ring { width: 170px; height: 170px; }
  .ring__score { font-size: 46px; }
  .tres__cta { padding: 48px 20px; }
  .tres__cta .btn { width: 100%; white-space: normal; text-align: center; }
  .test-facts { gap: 8px 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ring__bar { transition: none; }
}
