/* ==========================================================================
   Kentura — design system (vanilla CSS, no external resources)
   Palette: plate-yellow + deep navy, lots of light/white. Mobile-first.
   ========================================================================== */

:root {
  /* Brand */
  --yellow: #ffd60a;
  --yellow-deep: #f5c400;
  --eu-blue: #003399;
  --navy: #0b2f6b;          /* primary */
  --navy-600: #0a2856;
  --navy-700: #082044;

  /* Neutrals */
  --ink: #10233f;
  --muted: #5a6b83;
  --line: #e6ebf2;
  --bg: #f3f6fb;
  --bg-soft: #eef3fb;
  --card: #ffffff;

  /* Status */
  --ok: #128a4e;
  --ok-bg: #dcfce7;
  --warn: #b5710a;
  --warn-bg: #fef2d6;
  --alert: #c62828;
  --alert-bg: #fde8e8;

  /* Scale */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 63, .06), 0 1px 3px rgba(16, 35, 63, .08);
  --shadow-md: 0 6px 18px rgba(16, 35, 63, .08), 0 2px 6px rgba(16, 35, 63, .06);
  --shadow-lg: 0 16px 40px rgba(11, 47, 107, .16);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", sans-serif;
  --plate-font: "DIN Alternate", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;                 /* belt-and-braces: no sideways scroll */
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }

a { color: var(--navy); }
img, svg { max-width: 100%; }

.container { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--sp-4); }
.container--wide { max-width: 860px; }

:focus-visible {
  outline: 3px solid rgba(11, 47, 107, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header / footer ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .container { display: flex; align-items: center; height: 60px; gap: var(--sp-4); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand svg { display: block; height: 30px; width: auto; }
.header-cta { margin-left: auto; font-size: .9rem; font-weight: 600; color: var(--navy); text-decoration: none; }

.site-footer { margin-top: var(--sp-7); padding: var(--sp-6) 0; border-top: 1px solid var(--line); background: var(--card); }
.footer-grid { display: flex; flex-wrap: wrap; gap: var(--sp-5); justify-content: space-between; align-items: flex-start; }
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; }
.footer-brand svg { height: 26px; }
.site-footer p { color: var(--muted); font-size: .85rem; margin: .4rem 0 0; max-width: 42ch; }
.footer-links { display: flex; gap: var(--sp-4); flex-wrap: wrap; font-size: .85rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--navy); color: #fff; border: 0; border-radius: 11px;
  padding: .8rem 1.5rem; min-height: 48px;
  font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .05s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--navy-600); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 2rem; font-size: 1.08rem; min-height: 54px; width: 100%; max-width: 22rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-accent { background: var(--yellow); color: var(--navy-700); }
.btn-accent:hover { background: var(--yellow-deep); }
.btn:disabled, .btn-disabled { background: #cdd6e4; color: #7c8aa0; cursor: not-allowed; box-shadow: none; }

/* ==========================================================================
   Kenteken plate — input and static display
   Real NL proportions: blue EU band + yellow field. Placeholder always fits.
   ========================================================================== */
.plate {
  --plate-h: clamp(58px, 15vw, 92px);
  display: inline-flex; align-items: stretch;
  height: var(--plate-h);
  width: min(100%, 30rem);
  background: var(--yellow);
  border: 2px solid #11151c;
  border-radius: 10px;
  box-shadow: var(--shadow-md), inset 0 0 0 2px rgba(0,0,0,.06);
  overflow: hidden;
}
.plate-eu {
  flex: 0 0 auto;
  width: calc(var(--plate-h) * .42);
  background: linear-gradient(180deg, #0040bb, var(--eu-blue));
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: .28em 0 .34em;
}
.plate-eu .stars {
  margin-top: .18em; font-size: calc(var(--plate-h) * .12); color: var(--yellow);
  letter-spacing: -1px; line-height: 1;
}
.plate-eu .nl { font-weight: 800; font-size: calc(var(--plate-h) * .2); letter-spacing: .5px; }

.plate input,
.plate .plate-text {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: transparent; outline: none;
  width: 100%;
  text-align: center;
  font-family: var(--plate-font);
  font-weight: 800;
  color: #10151d;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(1.5rem, 8.5vw, 2.9rem);
  padding: 0 .35em;
}
.plate input::placeholder { color: rgba(17,21,29,.32); }
.plate .plate-text { display: flex; align-items: center; justify-content: center; }

/* Static plate variants (result/report headers) */
.plate-static { --plate-h: clamp(46px, 12vw, 62px); box-shadow: var(--shadow-sm); }
.plate-static .plate-text { font-size: clamp(1.2rem, 6vw, 1.9rem); }

/* Error shake */
.plate.is-error { border-color: var(--alert); animation: shake .4s; }
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .plate.is-error { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   Homepage
   ========================================================================== */
.hero { text-align: center; padding: clamp(2rem, 6vw, 3.5rem) 0 var(--sp-6); }
.hero h1 { font-size: clamp(1.9rem, 6vw, 3rem); margin: 0 0 var(--sp-3); }
.hero .lead { color: var(--muted); font-size: clamp(1rem, 2.6vw, 1.18rem); max-width: 36ch; margin: 0 auto var(--sp-5); }

.plate-form { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); }
.plate-form .plate { margin: 0 auto; }
.plate-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form-error { color: var(--alert); font-size: .92rem; font-weight: 600; margin: 0; }
.hint { color: var(--muted); font-size: .85rem; margin: var(--sp-2) 0 0; }
.hint code { background: var(--bg-soft); padding: .12em .4em; border-radius: 5px; font-size: .92em; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem var(--sp-4); margin: var(--sp-5) 0 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); font-size: .88rem; font-weight: 600; }
.trust svg { width: 17px; height: 17px; color: var(--ok); flex: 0 0 auto; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-6); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); box-shadow: var(--shadow-sm); }
.feature .ficon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-3); }
.feature .ficon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 .25rem; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ==========================================================================
   Cards / result + report shared
   ========================================================================== */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: var(--sp-5); margin: var(--sp-4) 0;
}
.card > h2 { margin: 0 0 var(--sp-4); font-size: 1.15rem; display: flex; align-items: baseline; gap: .5rem; }
.card-ev { border-color: #bfe6cd; }

.result-head { text-align: center; padding: var(--sp-5) 0 var(--sp-2); }
.result-head .plate-static { margin: 0 auto; }
.result-head h1 { margin: var(--sp-4) 0 .25rem; font-size: clamp(1.4rem, 4.5vw, 1.9rem); }
.subtitle { color: var(--muted); margin: 0; }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: var(--sp-4) 0 0; }
.badge { font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.badge-ev { background: var(--ok-bg); color: #14663a; }
.badge-warn { background: var(--warn-bg); color: #7a4d06; }
.badge-alert { background: var(--alert-bg); color: #8f1c1c; }

dl.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--sp-3) var(--sp-5); margin: 0; }
dl.grid > div { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding-bottom: var(--sp-2); }
dl.grid dt { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
dl.grid dd { margin: .15rem 0 0; font-weight: 700; }

.dot { display: inline-block; width: .62rem; height: .62rem; border-radius: 50%; margin-left: .3rem; vertical-align: middle; }
.dot-ok, .dot-groen { background: var(--ok); }
.dot-alert, .dot-rood { background: var(--alert); }
.dot-oranje { background: var(--warn); }

.note { color: var(--muted); font-size: .86rem; margin: var(--sp-3) 0 0; }
.note-alert { color: #8f1c1c; }
.tiny { font-size: .74rem; color: var(--muted); }
.subhead { font-size: .98rem; margin: var(--sp-4) 0 var(--sp-2); }
.back { text-align: center; margin: var(--sp-5) 0; }

/* ---------- Upsell (free result page) ---------- */
.card-upsell { border: 1.5px solid #c3d3ee; background: linear-gradient(180deg, #f4f8ff, #fff); box-shadow: var(--shadow-md); }
.upsell-head { display: flex; align-items: center; gap: .6rem; justify-content: space-between; flex-wrap: wrap; }
.price-tag { background: var(--navy); color: #fff; font-weight: 800; padding: .3rem .8rem; border-radius: 999px; font-size: 1rem; white-space: nowrap; }
.upsell-sub { margin: .5rem 0 var(--sp-4); }
.upsell-list { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: .5rem; }
.upsell-list li { position: relative; padding-left: 1.6rem; font-size: .93rem; }
.upsell-list li::before { content: ""; position: absolute; left: 0; top: .25em; width: 1.1rem; height: 1.1rem; background: var(--ok-bg); border-radius: 50%; }
.upsell-list li::after { content: "✓"; position: absolute; left: .27rem; top: .05em; color: var(--ok); font-weight: 800; font-size: .8rem; }
.upsell-list--wide { text-align: left; max-width: 32rem; margin: var(--sp-5) auto; }
.upsell-fineprint { font-size: .78rem; color: var(--muted); margin: .7rem 0 0; }

/* ---------- Checkout / success ---------- */
.price-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: var(--sp-5); margin: var(--sp-5) auto; max-width: 27rem; }
.price-big { font-size: clamp(2.2rem, 9vw, 2.8rem); font-weight: 800; color: var(--navy); line-height: 1; }
.price-sub { color: var(--muted); font-size: .92rem; margin: .3rem 0 var(--sp-4); }
.success-check { width: 68px; height: 68px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; line-height: 68px; margin: 0 auto var(--sp-4); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Full report
   ========================================================================== */
.report .card > h2 { border-bottom: 1px solid var(--line); padding-bottom: var(--sp-3); }
.report-actions { margin-top: var(--sp-4); }
.sec-num { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .4rem; border-radius: 8px; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 800; }

.stoplicht-overall { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 10px; font-size: .98rem; margin-bottom: var(--sp-4); font-weight: 600; }
.stoplicht-groen { background: var(--ok-bg); color: #14663a; }
.stoplicht-oranje { background: var(--warn-bg); color: #7a4d06; }
.stoplicht-rood { background: var(--alert-bg); color: #8f1c1c; }
.stoplicht { list-style: none; padding: 0; margin: 0; }
.stoplicht-item { display: grid; grid-template-columns: 1.2rem 10rem 1fr; align-items: center; gap: .5rem var(--sp-3); padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.stoplicht-item:last-child { border-bottom: 0; }
.stoplicht-label { font-weight: 700; }
.stoplicht-detail { color: var(--muted); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item { display: grid; grid-template-columns: 7rem 1fr; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.timeline-date { font-weight: 800; font-size: .86rem; }
.timeline-soort { font-size: .82rem; color: var(--muted); text-transform: capitalize; margin-bottom: .3rem; }
.defect-list { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.defect-list li { margin-bottom: .25rem; }
.defect-none { font-size: .86rem; color: var(--ok); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.modeltable { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 320px; }
.modeltable th, .modeltable td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.modeltable th:nth-child(n+2), .modeltable td:nth-child(n+2) { text-align: center; white-space: nowrap; }
.modeltable thead th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.bar { display: inline-block; height: .5rem; border-radius: 3px; background: var(--navy); vertical-align: middle; margin-right: .4rem; min-width: 3px; }

.recall { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-4); margin-bottom: var(--sp-3); font-size: .92rem; }
.recall-open { border-color: #f2b6b6; background: #fdf6f6; }
.recall-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: var(--sp-2); flex-wrap: wrap; }
.recall p { margin: .35rem 0; }
.recall-meta { color: var(--muted); font-size: .78rem; }

.checklist { padding-left: 0; list-style: none; margin: var(--sp-2) 0 0; }
.checklist li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; font-size: .92rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .1em; width: 1.15rem; height: 1.15rem; border: 1.5px solid var(--navy); border-radius: 4px; }
.card-checklist { background: #f5f9ff; border-color: #cfe0f7; }
.card-transparency { background: var(--bg-soft); }
.excl-list { font-size: .9rem; color: var(--muted); padding-left: 1.1rem; }
.excl-list strong { color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
  dl.grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .container { padding: 0 var(--sp-3); }
  dl.grid { grid-template-columns: 1fr; }
  .stoplicht-item { grid-template-columns: 1.2rem 1fr; }
  .stoplicht-detail { grid-column: 1 / -1; padding-left: 1.7rem; }
  .timeline-item { grid-template-columns: 1fr; gap: .3rem; }
  .card { padding: var(--sp-4); }
  .footer-grid { flex-direction: column; }
}

@media print {
  .site-header, .site-footer, .report-actions, .back { display: none !important; }
  body { background: #fff; }
  .report .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .report section { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
