:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #29202a;
  background: #faf6f4;
  font-synthesis: none;
  --wine: #641e37;
  --muted: #716772;
  --line: #eadde0;
  --green: #176f4b;
  --red: #b1303c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
select:focus-visible {
  outline: 3px solid #b8839b;
  outline-offset: 3px;
}
.shell {
  max-width: 1080px;
  min-height: 100dvh;
  margin: auto;
  padding: 20px 20px calc(30px + env(safe-area-inset-bottom));
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  color: var(--wine);
  font-size: 19px;
}
.logo {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 15px;
  background: var(--wine);
  color: white;
  font-size: 25px;
}
.pill {
  border: 1px solid #e7d8df;
  border-radius: 99px;
  background: white;
  color: var(--wine);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}
.hero {
  background: linear-gradient(125deg, #641e37, #8a4356);
  color: white;
  border-radius: 26px;
  padding: clamp(22px, 5vw, 43px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.hero small {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 12px 0;
  line-height: 1.13;
}
.hero p {
  opacity: 0.87;
  line-height: 1.5;
  max-width: 550px;
  margin: 0;
}
.hero-mark {
  font-size: clamp(50px, 9vw, 96px);
  opacity: 0.85;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 32px;
}
.stat,
.panel,
.tile,
.question-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 21px;
}
.stat strong {
  display: block;
  font-size: clamp(22px, 4vw, 30px);
  color: var(--wine);
  font-variant-numeric: tabular-nums;
}
.stat span,
.sub {
  color: var(--muted);
  font-size: 13px;
}
.section-title {
  font-size: 21px;
  margin: 26px 0 14px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.tile {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  min-height: 104px;
  color: inherit;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}
.tile:active {
  transform: scale(0.99);
}
.tile:hover {
  box-shadow: 0 6px 22px #641e3710;
}
.tile .emoji {
  font-size: 29px;
  min-width: 40px;
}
.tile strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}
.tile small {
  color: var(--muted);
  line-height: 1.4;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.back {
  background: none;
  border: none;
  padding: 11px 0;
  color: var(--wine);
  font-weight: 750;
}
.button {
  background: var(--wine);
  border: 1px solid var(--wine);
  color: white;
  border-radius: 14px;
  padding: 14px 19px;
  min-height: 49px;
  font-weight: 750;
}
.button.secondary {
  background: white;
  color: var(--wine);
  border-color: #dcc4ce;
}
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.stack {
  display: grid;
  gap: 12px;
}
.category {
  background: white;
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: 15px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: inherit;
}
.category:hover {
  border-color: #ba9aaa;
}
.category span {
  color: var(--muted);
  font-size: 13px;
}
.progress {
  height: 9px;
  background: #eadce1;
  border-radius: 999px;
  overflow: hidden;
  margin: 15px 0 28px;
}
.progress > div {
  background: var(--wine);
  height: 100%;
  transition: width 0.2s;
}
.question-card {
  padding: clamp(20px, 5vw, 36px);
  max-width: 770px;
  margin: 0 auto;
}
.question-card h2 {
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.35;
  margin: 15px 0 24px;
}
.eyebrow {
  font-weight: 750;
  color: var(--wine);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.choices {
  display: grid;
  gap: 12px;
}
.choice {
  min-height: 61px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 2px solid #e8dfe3;
  border-radius: 16px;
  padding: 14px 17px;
  text-align: left;
  color: inherit;
  line-height: 1.4;
}
.choice .letter {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f6eff2;
  min-width: 35px;
  height: 35px;
  font-weight: 800;
  color: var(--wine);
}
.choice.selected {
  border-color: var(--wine);
  background: #fcf6f8;
}
.choice.correct {
  border-color: var(--green);
  background: #f0faf5;
}
.choice.wrong {
  border-color: var(--red);
  background: #fff5f5;
}
.choice:disabled {
  cursor: default;
  opacity: 1;
}
.explanation {
  padding: 17px;
  background: #f8f3f5;
  border-radius: 15px;
  margin-top: 20px;
  line-height: 1.6;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  flex-wrap: wrap;
}
.question-wrap {
  max-width: 770px;
  margin: 0 auto;
}
.exam-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-weight: 700;
}
.timer {
  font-variant-numeric: tabular-nums;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 14px;
}
.timer.low {
  color: var(--red);
}
.panel {
  line-height: 1.6;
}
.panel h2 {
  margin-top: 0;
}
.result-number {
  font-size: 50px;
  font-weight: 850;
  color: var(--wine);
}
.notice {
  background: #fff8e9;
  border: 1px solid #f0deaf;
  padding: 15px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.5;
}
.answer-review {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.answer-review:first-child {
  border-top: 0;
}
.muted {
  color: var(--muted);
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.meter {
  height: 7px;
  background: #f1e5e9;
  border-radius: 10px;
  overflow: hidden;
}
.meter > div {
  height: 100%;
  background: var(--wine);
}
.footer {
  margin-top: 35px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.loading {
  padding: 60px;
  text-align: center;
}
.inline-link {
  color: var(--wine);
  font-weight: 700;
}
select {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 12px;
  max-width: 100%;
  background: white;
}
.flex-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
@media (min-width: 800px) {
  .shell {
    padding: 32px;
  }
  .dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
  }
  .dashboard .side {
    margin-top: 26px;
  }
}
@media (max-width: 620px) {
  .shell {
    padding: 15px 14px calc(24px + env(safe-area-inset-bottom));
  }
  .hero {
    border-radius: 22px;
  }
  .hero-mark {
    display: none;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 15px 11px;
    border-radius: 15px;
  }
  .stat span {
    font-size: 11px;
  }
  .tiles {
    grid-template-columns: 1fr;
  }
  .tile {
    min-height: 88px;
  }
  .question-card {
    padding: 20px 16px;
  }
  .question-card h2 {
    margin-bottom: 22px;
  }
  .choice {
    min-height: 62px;
  }
  .button {
    flex: 1;
  }
  .actions .button {
    flex: initial;
    min-width: 130px;
  }
  .top {
    margin-bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* KurkenKennis public-ready additions */
.brand-button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.brand-caption {
  display: block;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 3px;
}
.launch-note {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 4px 22px;
}
.footer-links {
  display: flex;
  gap: 5px 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-links button {
  border: 0;
  background: none;
  color: var(--wine);
  padding: 9px 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.reading {
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 5vw, 38px);
  line-height: 1.75;
}
.reading h1 {
  font-size: clamp(27px, 5vw, 38px);
  line-height: 1.2;
}
.reading h2 {
  font-size: 19px;
  margin-top: 28px;
}
.premium-preview {
  margin-top: 16px;
}
.premium-preview h2 {
  margin: 9px 0;
}
.skip-link {
  position: absolute;
  left: 8px;
  top: -90px;
  background: #fff;
  color: var(--wine);
  padding: 13px;
  border: 2px solid var(--wine);
  z-index: 30;
}
.skip-link:focus {
  top: 8px;
}
.danger {
  color: #a22636 !important;
}
@media (max-width: 380px) {
  .top .pill {
    font-size: 10px;
    padding: 7px;
  }
  .brand {
    font-size: 16px;
    gap: 7px;
  }
  .logo {
    width: 37px;
    height: 37px;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat {
    padding: 12px 8px;
  }
  .stat strong {
    font-size: 22px;
  }
  .stat span {
    font-size: 10px;
  }
  .exam-top {
    font-size: 13px;
  }
}
@media (max-width: 340px) {
  .top .pill {
    display: none;
  }
}
@media (min-width: 1100px) {
  .shell {
    max-width: 1150px;
  }
}

/* SDEN 1 / 2 / 3 niveaukeuze */
.level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.level-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 30px);
}
.level-card h3 {
  font-size: clamp(24px, 3vw, 33px);
  color: var(--wine);
  margin: 14px 0 8px;
}
.level-card p {
  line-height: 1.6;
  flex: 1;
}
.level-card .button {
  margin-top: 20px;
  width: 100%;
}
.level-nav {
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.level-nav:hover {
  background: #f5ecf0;
}
@media (max-width: 720px) {
  .level-grid {
    grid-template-columns: 1fr;
  }
  .level-card {
    padding: 20px;
  }
  .level-card .button {
    width: 100%;
  }
}


/* SDEN-niveaus die nog niet beschikbaar zijn */

.level-card.level-disabled {
  background: #e9e9e9 !important;
  border: 1px solid #d0d0d0 !important;
  box-shadow: none !important;
  opacity: 0.65;
}

.level-card.level-disabled h3,
.level-card.level-disabled p,
.level-card.level-disabled .eyebrow {
  color: #777 !important;
}

.level-card.level-disabled .button {
  background: #d0d0d0 !important;
  color: #666 !important;
  border-color: #c0c0c0 !important;
  cursor: not-allowed;
}

.level-card.level-disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}
