:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #162522; background: #f4f6f2; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #377dea; outline-offset: 3px; }
[hidden] { display: none !important; }
.bar, main, footer { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.bar, footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; padding: 1.25rem 0; }
.bar a, footer { font-size: .9rem; }
.bar .brand { font-size: 1.12rem; font-weight: 780; text-decoration: none; }
.brand span { color: #24754f; font-size: 1.4rem; vertical-align: middle; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, .68fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding: clamp(1.5rem, 6vw, 5rem); border-radius: 1.6rem; color: #f9fcf4; background: radial-gradient(ellipse at top right, #28583d, transparent 68%), #132a23; }
.eyebrow { color: #ccf38c; font-weight: 700; }
h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .98; letter-spacing: -.075em; margin: .9rem 0 1.5rem; }
.intro p:last-child { max-width: 31rem; color: #dce9df; }
.lookup { background: #fff; padding: clamp(1rem, 3vw, 2rem); color: #162522; border-radius: 1rem; box-shadow: 0 16px 38px #0a181636; }
label { display: block; font-weight: 750; margin-bottom: .65rem; }
.plate { display: flex; border: 2px solid #172420; border-radius: .45rem; background: #ffd555; }
.plate span { padding: .45rem .65rem; background: #224291; color: white; text-align: center; font-size: .85rem; align-content: center; }
.plate input { min-width: 0; width: 100%; padding: .55rem .3rem; border: 0; background: transparent; text-align: center; text-transform: uppercase; font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 850; letter-spacing: .05em; color: #162522; }
.plate input::placeholder { color: #655416; opacity: 1; }
.submit { width: 100%; margin-top: 1rem; border: 0; border-radius: .5rem; padding: .8rem; font-weight: 780; color: white; background: #216344; }
.submit:hover { background: #164d34; }
.example { margin-top: .85rem; text-align: center; font-size: .9rem; }
.example button { background: transparent; border: 0; color: #205839; text-decoration: underline; font-weight: 700; }
#status { margin: 1.2rem 0; font-weight: 620; }
#status:empty { display: none; }
#report { margin-block: 1.5rem; }
.report-head { padding: 1.25rem; border-radius: 1rem; background: #dcebd8; }
#vehicle-plate { display: inline-block; border-radius: .25rem; padding: .15rem .55rem; background: #ffd555; font-weight: 800; letter-spacing: .08em; }
h2 { margin: .55rem 0 0; font-size: clamp(1.55rem, 4vw, 2.3rem); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
article { padding: 1.25rem; border-radius: 1rem; background: white; }
h3 { margin: 0 0 .75rem; }
.apk-status { display: inline-block; margin: 0 0 .8rem; padding: .3rem .65rem; border-radius: .4rem; background: #edf0ee; color: #36433e; font-weight: 700; }
.apk-status[data-state="valid"] { background: #e0f0e1; color: #155335; }
.apk-status[data-state="soon"] { background: #fff0c8; color: #634300; }
.apk-status[data-state="expired"] { background: #fce6e5; color: #862b27; }
dl { margin: 0; }
dl div { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-top: 1px solid #e5ebe5; }
dd { margin: 0; text-align: right; font-weight: 650; }
footer { color: #42574e; }
#compare-table .different td { background: #f0f7ee; }
#compare-third { max-width: 100%; padding: .5rem; border: 1px solid #acbeb3; border-radius: .45rem; }
summary { cursor: pointer; font-weight: 700; }
.cost-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap: .8rem; }
.cost-grid input { display: block; width: 100%; padding: .45rem; font: inherit; }
#garage-items p { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
#inspection-items label { font-weight: 500; }
.report-actions, .compare-input { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.report-actions { margin-top: 1rem; }
.report-actions button, .compare-input button {
  border: 1px solid #acbeb3;
  border-radius: .45rem;
  padding: .5rem .75rem;
  color: #205839;
  background: white;
  font-weight: 700;
}
.report-actions button:hover, .compare-input button:hover { background: #e0f0e1; }
#share-fallback { margin: 0; flex-basis: 100%; }
#share-url, #compare-plate { max-width: 100%; padding: .5rem; border: 1px solid #acbeb3; border-radius: .45rem; }
#share-url { width: min(100%, 35rem); }
.comparison { margin-top: 1rem; padding: 1.25rem; border-radius: 1rem; background: white; }
#compare-status:empty, #share-status:empty { display: none; }
#download-status:empty { display: none; }
#download-report:disabled { opacity: .55; cursor: wait; }
#compare-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 1rem; }
#compare-table th, #compare-table td { padding: .45rem; border: 1px solid #d8e2db; text-align: left; overflow-wrap: anywhere; }
#compare-table th { background: #edf4ed; }
@media print {
  :root { background: white; color: black; font-size: 11pt; }
  .bar, .hero, #status, .report-actions, #compare-form, .comparison:has(#compare-table[hidden]) { display: none; }
  main, footer { width: 100%; }
  #report { margin: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  article, #compare-table tr { break-inside: avoid; }
  article, .report-head, .comparison { padding: .5rem; border: 1px solid #ccc; }
}
@media (max-width: 45rem) { .hero, .cards { grid-template-columns: 1fr; } .bar, main, footer { width: calc(100% - 1.5rem); } }
#study-data h3 { margin-block: 1.5rem .6rem; }
#study-data label { margin-top: .6rem; }
#study-data select { max-width: 100%; padding: .45rem; font: inherit; }
#study-groups, #study-peer-result { overflow-x: auto; margin: .75rem 0 1rem; }
#study-data table, .study-table table { width: 100%; border-collapse: collapse; }
#study-data th, #study-data td, .study-table th, .study-table td { text-align: left; padding: .5rem; border-bottom: 1px solid #d8e2db; }
#study-data thead, .study-table thead { background: #edf4ed; }
#model-top li { padding-block: .3rem; }
#report-nav { display: flex; flex-wrap: wrap; gap: .45rem .9rem; padding: .8rem 0; }
#report-nav a { padding-block: .2rem; }
.cost-grid select { display: block; width: 100%; font: inherit; padding: .45rem; }
#compare-scenarios { padding: .75rem 0; }
@media print { #report-nav, #compare-scenarios { display: none; } }
#fleet-ranking { padding-left: 1.8rem; }
#fleet-ranking li { padding: .45rem .25rem; max-width: 48rem; border-bottom: 1px solid #e5ebe5; }
#fleet-ranking li span:first-child { font-weight: 650; }
#fleet-ranking li span:nth-child(2) { float: right; }
#fleet-ranking meter { display: block; width: 100%; }
#source-field { width: min(100%,32rem); padding: .45rem; font: inherit; }
@media print { #fleet, #garage { display: none; } }
.compare-scroll { overflow-x: auto; }
.compare-scroll:focus-visible { outline: 2px solid #216344; outline-offset: 2px; }
@media screen and (max-width: 45rem) {
  #compare-table { min-width: 34rem; }
  #compare-table:has(#third-vehicle) { min-width: 44rem; }
  #compare-table th:first-child { position: sticky; left: 0; width: 8rem; }
}
@media print { #compare-counts { display: none; } }

.study-table { overflow-x: auto; }
.cards > article { min-width: 0; overflow-wrap: anywhere; }
select { max-width: 100%; }
@media screen and (max-width: 45rem) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards dl > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media print { #study-explorer { display: none; } }

#charge-profile { margin-block: .75rem; }
#charge-fields { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem),1fr)); }
#charge-fields fieldset { min-width: 0; border: 1px solid #c9d7cf; border-radius: .5rem; }
#charge-fields input { display: block; width: 100%; padding: .4rem; font: inherit; }

/* Ontwerp- en grafieklaag */
:root {
  --brand: #216344;
  --brand-dark: #132a23;
  --brand-soft: #dcebd8;
  --accent: #ccf38c;
  --ink: #162522;
  --muted: #42574e;
  --line: #d8e2db;
  --surface: #ffffff;
  --canvas: #f4f6f2;
  --radius: 1rem;
  --shadow: 0 12px 30px rgba(19, 42, 35, .08);
  --shadow-sm: 0 2px 8px rgba(19, 42, 35, .06);
}

.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: .75rem;
  top: -4rem;
  z-index: 40;
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: .75rem; }

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar .brand { color: var(--brand-dark); }
.bar a:not(.brand) { color: var(--muted); text-decoration: none; font-weight: 600; }
.bar a:not(.brand):hover { color: var(--brand); text-decoration: underline; }

.hero { box-shadow: var(--shadow); }
.lookup { border: 1px solid var(--line); }
.submit { transition: background .15s ease, transform .15s ease; }
.submit:hover { transform: translateY(-1px); }
.submit:active { transform: translateY(0); }

.report-head { box-shadow: var(--shadow-sm); }
.report-head h2 { color: var(--brand-dark); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: .6rem;
  margin-top: 1rem;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .7rem .8rem;
  border-radius: .7rem;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(19, 42, 35, .12);
}
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.stat-value { font-size: 1.02rem; font-weight: 800; color: var(--brand-dark); overflow-wrap: anywhere; }
.stat[data-state="valid"] { border-color: #9ccfa9; background: #eaf6ec; }
.stat[data-state="soon"] { border-color: #e6cd82; background: #fff7df; }
.stat[data-state="expired"] { border-color: #e2a49f; background: #fdecea; }

.cards > article {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}
.cards > article:hover { box-shadow: var(--shadow); }
.cards h3 { color: var(--brand-dark); }
.cards dl > div:last-child { border-bottom: 0; }

.comparison {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.comparison > summary { padding: .25rem 0; }
.comparison > summary:hover { color: var(--brand); }

.report-actions button, .compare-input button {
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.report-actions button:hover, .compare-input button:hover {
  background: var(--brand-soft);
  border-color: #9ccfa9;
  transform: translateY(-1px);
}

#compare-table tbody tr:nth-child(even) td { background: #fbfdfb; }
#compare-table tbody tr.different td { background: #eaf5e8; }
#compare-table thead th { position: sticky; top: 0; z-index: 1; }
#compare-table th, #compare-table td { border-color: var(--line); }

.chart-slot { margin-top: .8rem; }
.chart {
  margin: 0;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #fbfdfb;
}
.chart figcaption { font-weight: 750; color: var(--brand-dark); margin-bottom: .2rem; }
.chart-description { margin: .1rem 0 .5rem; color: var(--muted); font-size: .88rem; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg-donut { max-width: 15rem; margin-inline: auto; }
.chart-label { font-size: 12px; fill: var(--ink); }
.chart-value { font-size: 12px; fill: var(--muted); font-weight: 700; }
.chart-axis-label { font-size: 11px; fill: var(--muted); }
.chart-axis-title { font-size: 11px; fill: var(--muted); font-weight: 700; }
.chart-grid-line { stroke: #dfe8e1; stroke-width: 1; }
.chart-track { fill: #eef3ee; }
.chart-bar { transition: opacity .15s ease; }
.chart-bar:hover { opacity: .82; }
.chart-donut-segment { transition: opacity .15s ease; }
.chart-donut-segment:hover { opacity: .82; }
.chart-line-path { stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: var(--brand); stroke: #fff; stroke-width: 2; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .35rem .9rem; list-style: none; padding: 0; margin: .6rem 0 0; font-size: .88rem; }
.chart-legend li { display: flex; align-items: center; gap: .35rem; }
.chart-swatch { width: .75rem; height: .75rem; border-radius: .2rem; flex: none; }
.chart-data { margin-top: .6rem; }
.chart-data summary { font-size: .88rem; color: var(--brand); }
.chart-data table { width: 100%; border-collapse: collapse; margin-top: .4rem; font-size: .88rem; }
.chart-data th, .chart-data td { text-align: left; padding: .35rem .45rem; border-bottom: 1px solid var(--line); }
.chart-data thead th { background: #edf4ed; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.feature {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.feature h3 { margin: 0 0 .35rem; color: var(--brand-dark); }
.feature p { margin: 0; color: var(--muted); }

.faq {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.faq h2 { margin-top: 0; }
.faq details { border-top: 1px solid var(--line); padding: .7rem 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { color: var(--brand-dark); }
.faq details[open] summary { color: var(--brand); }
.faq p { color: var(--muted); margin: .45rem 0 0; }

footer { border-top: 1px solid var(--line); margin-top: 2rem; }
footer a { color: var(--brand); }

@media (max-width: 45rem) {
  .bar { position: static; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .chart { padding: .6rem; }
  .chart-label { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .bar, .hero, .faq, .feature-grid, .chart-slot, .chart, .stat-grid, .skip-link { display: none !important; }
  .comparison, .cards > article { box-shadow: none; }
}

/* Statische SEO-pagina's */
.seo-main { padding-block: 2rem; }
.seo-page {
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.seo-page h1 {
  margin: .35rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  color: var(--brand-dark);
}
.seo-page h2 {
  margin: 2rem 0 .6rem;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  color: var(--brand-dark);
}
.seo-page p, .seo-page li { max-width: 48rem; }
.seo-page .lead { font-size: 1.12rem; color: var(--muted); }
.seo-page ul { padding-left: 1.2rem; }
.seo-page li { margin-block: .35rem; }
.seo-cta {
  display: inline-block;
  width: auto;
  margin-top: .35rem;
  padding: .7rem 1rem;
  text-decoration: none;
}
.seo-cta:hover { background: #164d34; }
.seo-faq { margin-top: 2rem; }
.seo-faq details { padding: .7rem 0; border-top: 1px solid var(--line); }
.seo-faq summary { font-weight: 750; }
.seo-related { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.seo-related ul { display: grid; gap: .6rem; padding: 0; list-style: none; }
.seo-related li { padding: .7rem .9rem; border: 1px solid var(--line); border-radius: .6rem; background: #fbfdfb; }
.seo-footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.seo-footer-nav a { color: var(--muted); font-weight: 600; text-decoration: none; }
.seo-footer-nav a:hover { color: var(--brand); text-decoration: underline; }
footer > p { flex-basis: 100%; margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
footer > div p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
@media print { .seo-cta, .seo-footer-nav { display: none !important; } }

/* Luxe visuele laag */
:root {
  --brand: #1b5c3f;
  --brand-strong: #123f2b;
  --brand-dark: #0d2b20;
  --brand-soft: #e7f0e6;
  --gold: #c8a45c;
  --gold-soft: #f4ead2;
  --accent: #d7f0a8;
  --ink: #16211d;
  --muted: #52645c;
  --line: #e3e5da;
  --surface: #ffffff;
  --canvas: #f7f6f0;
  --radius: 1.15rem;
  --radius-sm: .7rem;
  --shadow: 0 22px 50px -24px rgba(15, 45, 32, .35), 0 8px 20px -14px rgba(15, 45, 32, .2);
  --shadow-sm: 0 10px 30px -22px rgba(15, 45, 32, .35);
  --font-display: ui-serif, Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { background: var(--canvas); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 8% -8%, #e9f1e3 0%, transparent 60%),
    radial-gradient(900px 520px at 100% 0%, #f6efdd 0%, transparent 55%),
    var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .brand, .chart figcaption, .seo-page h1, .seo-page h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.015em;
}
h1 { letter-spacing: -.035em; }
h2 { color: var(--brand-dark); }
h3 { color: var(--brand-dark); }

/* Kop en navigatie */
.bar {
  background: color-mix(in srgb, #fbfaf5 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.25);
  border-bottom: 1px solid rgba(19, 42, 35, .08);
}
.bar .brand { font-size: 1.2rem; letter-spacing: -.02em; }
.brand span { color: var(--gold); }
.bar a:not(.brand) { font-size: .88rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.9rem;
  padding: clamp(1.75rem, 5.5vw, 4.5rem);
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(ellipse at 84% 8%, rgba(200, 164, 92, .3), transparent 52%),
    radial-gradient(ellipse at 8% 96%, rgba(64, 140, 96, .38), transparent 56%),
    linear-gradient(158deg, #103225 0%, #081b15 72%);
  box-shadow: 0 44px 90px -48px rgba(8, 26, 20, .8), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(255, 255, 255, .06), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(215, 240, 168, .32);
  background: rgba(215, 240, 168, .1);
  color: #e8f8c8;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(215, 240, 168, .18);
}
.hero h1 { color: #fbfdf8; }
.intro p:last-child { color: #c8d8cc; font-size: 1.06rem; max-width: 30rem; }

.lookup {
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .72);
}
.lookup label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.plate {
  border: 1px solid #b7912f;
  border-radius: .55rem;
  background: linear-gradient(180deg, #ffe27a, #f4c845);
  box-shadow: inset 0 0 0 2px #fff0ac, 0 2px 8px rgba(0, 0, 0, .18);
}
.plate input { letter-spacing: .12em; }
.submit {
  border-radius: .6rem;
  background: linear-gradient(180deg, #217a52, #145438);
  box-shadow: 0 14px 26px -14px rgba(21, 85, 57, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
  letter-spacing: .015em;
}
.submit:hover { background: linear-gradient(180deg, #26895b, #17613f); }

/* Kaarten en secties */
article {
  background: linear-gradient(180deg, #fff, #fdfcf7);
  border: 1px solid rgba(19, 42, 35, .07);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cards > article { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.cards > article:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(27, 92, 63, .18); }
.cards h3 { font-size: 1.12rem; }
dl { font-variant-numeric: tabular-nums; }
dd { overflow-wrap: anywhere; }

.report-head {
  border: 1px solid #dde4d5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eaf2e6, #f8f5ea 78%);
  box-shadow: var(--shadow-sm);
}
.report-head h2 { letter-spacing: -.03em; }
#vehicle-plate {
  background: linear-gradient(180deg, #ffe27a, #f2c442);
  border: 1px solid #b7912f;
  box-shadow: inset 0 0 0 2px #fff0ac;
  letter-spacing: .12em;
}

.stat-grid { gap: .7rem; }
.stat {
  position: relative;
  overflow: hidden;
  padding: .85rem .95rem .85rem 1.1rem;
  border-radius: .85rem;
  border: 1px solid rgba(19, 42, 35, .1);
  background: linear-gradient(180deg, #fff, #fbfcf7);
  box-shadow: 0 8px 18px -16px rgba(15, 45, 32, .5);
}
.stat::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), #e7d3a0);
}
.stat-label { font-size: .68rem; letter-spacing: .12em; }
.stat-value { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; letter-spacing: -.01em; }

.comparison {
  border: 1px solid rgba(19, 42, 35, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.comparison > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .3rem 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--brand-dark);
  list-style: none;
}
.comparison > summary::-webkit-details-marker { display: none; }
.comparison > summary::after {
  content: '+';
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.comparison[open] > summary::after { content: '−'; background: var(--brand-soft); border-color: #b7d3bf; }
.comparison > summary:hover { color: var(--brand); }
.comparison > summary:hover::after { border-color: #b7d3bf; }

#report-nav { gap: .4rem; padding: 1rem 0 .85rem; }
#report-nav a {
  padding: .32rem .72rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
#report-nav a:hover { border-color: #a9cdb4; color: var(--brand); background: #f5faf4; }

.report-actions button, .compare-input button, #save-list, #delete-list {
  border-color: #cfdbd2;
  background: #fff;
  color: var(--brand-strong);
  box-shadow: 0 4px 12px -10px rgba(15, 45, 32, .4);
}
.report-actions button:hover, .compare-input button:hover, #save-list:hover {
  background: var(--brand-soft);
  border-color: #a9cdb4;
}

/* Grafieken */
.chart-slot { margin-top: 1rem; min-width: 0; }
.chart {
  margin: 0;
  padding: 1rem;
  border: 1px solid #e7e4d7;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fdfcf7, #f8f7f0);
  box-shadow: inset 0 1px 0 #fff;
  overflow: hidden;
}
.chart figcaption { font-size: 1.06rem; color: var(--brand-dark); }
.chart-description { color: var(--muted); }
.chart-svg { display: block; width: 100%; height: auto; max-width: 100%; overflow: hidden; }
.chart-svg-donut { max-width: 15rem; margin-inline: auto; }
.chart-label { font-size: 12.5px; fill: #33453d; font-weight: 600; }
.chart-value { font-size: 12.5px; fill: var(--brand-strong); font-weight: 700; }
.chart-axis-label { font-size: 11px; fill: var(--muted); }
.chart-axis-title { font-size: 11px; fill: var(--muted); font-weight: 700; }
.chart-grid-line { stroke: #e2e2d4; stroke-width: 1; }
.chart-track { fill: #e9ece0; }
.chart-line-path { stroke: var(--brand); }
.chart-point { fill: var(--gold); stroke: #fff; stroke-width: 2; }
.chart-legend li { font-variant-numeric: tabular-nums; }
.chart-swatch { border-radius: .3rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.chart-data { overflow-x: auto; }
.chart-data summary { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand); }
.chart-data table { table-layout: fixed; }
.chart-data th:first-child { width: 62%; }
.chart-data th, .chart-data td { overflow-wrap: anywhere; }
.chart-data thead th { background: #f1f2e8; }
.chart-data tbody tr:nth-child(even) { background: #fcfcf7; }

/* Monetisatie: advertenties, partnerlinks en consent */
.ad-slot {
  display: block;
  min-height: 5.5rem;
  margin: 1.25rem 0;
  padding: .75rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcf7;
}
.ad-slot[hidden] { display: none !important; }
.ad-slot ins { display: block; }
.partner-links {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fbfcf7);
  box-shadow: var(--shadow-sm);
}
.partner-links h3 { margin-top: 0; }
#partner-link-list { display: flex; flex-wrap: wrap; gap: .6rem; }
#partner-link-list a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .8rem;
  border: 1px solid #cfdbd2;
  border-radius: .5rem;
  background: #fff;
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
}
#partner-link-list a:hover { background: var(--brand-soft); border-color: #a9cdb4; }
.partner-disclosure { color: var(--muted); font-size: .85rem; margin-bottom: 0; }
.consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: #fff;
  border-top: 2px solid var(--brand);
  box-shadow: 0 -10px 30px -20px rgba(15, 45, 32, .45);
}
.consent-banner p { max-width: 72rem; margin: 0 auto .65rem; color: var(--ink); font-size: .92rem; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; max-width: 72rem; margin-inline: auto; }
.consent-actions button {
  border: 1px solid var(--brand);
  border-radius: .45rem;
  padding: .5rem .9rem;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.consent-actions button[data-consent="reject"] { background: #fff; color: var(--brand-strong); border-color: #cfdbd2; }
.consent-actions a { color: var(--brand); font-weight: 600; }
.consent-settings {
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 45rem) {
  .consent-banner { padding: .85rem 1rem; }
}
@media print {
  .ad-slot, .partner-links, .consent-banner, .consent-settings { display: none !important; }
}

/* Bijzonderheden, APK-historie en maandindicatie */
#special-list, #apk-history { margin: .5rem 0 .2rem; padding-left: 1.15rem; }
#special-list li, #apk-history li { padding: .38rem 0; border-top: 1px solid var(--line); }
#special-list li[data-attention="true"] { color: #7a4a00; font-weight: 650; }
#special-note, #apk-history-note, #estimate-note { color: var(--muted); font-size: .88rem; }
#estimate-facts dd { font-variant-numeric: tabular-nums; }

/* Wagenpark, tabellen en lijsten */#fleet-ranking li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .15rem .8rem;
  max-width: none;
  padding: .55rem .25rem;
}
#fleet-ranking li span:nth-child(2) { float: none; font-variant-numeric: tabular-nums; }
#fleet-ranking meter { grid-column: 1 / -1; height: .45rem; }
#compare-table { border-radius: .9rem; overflow: hidden; }
#compare-table thead th { background: #f0f1e6; }
#compare-table tbody tr:nth-child(even) td { background: #fcfcf7; }
#compare-table tbody tr.different td { background: #eef7ea; }

/* Uitleg, FAQ en voettekst */
.feature {
  position: relative;
  padding: 1.25rem 1.15rem 1.15rem;
  border: 1px solid rgba(19, 42, 35, .08);
  background: linear-gradient(180deg, #fff, #fcfbf6);
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--gold), #e7d3a0 55%, transparent);
  opacity: .85;
}
.feature h3 { font-size: 1.12rem; }
.faq { border: 1px solid rgba(19, 42, 35, .08); background: linear-gradient(180deg, #fff, #fcfbf6); }
.faq summary { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
footer { padding-block: 1.75rem; border-top: 1px solid var(--line); color: var(--muted); }

/* Kleinere schermen */
@media (max-width: 45rem) {
  .hero { border-radius: 1.3rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .chart { padding: .7rem; }
  .chart-svg { min-width: 0; }
  .chart-svg-donut { margin-inline: auto; }
  .chart-label, .chart-value { font-size: 11px; }
  .comparison > summary { font-size: 1.02rem; }
  #rarity-breakdown div, #model-fuel-counts div { flex-wrap: wrap; }
  #rarity-breakdown dd, #model-fuel-counts dd { text-align: left; }
}

@media print {
  .chart-slot, .chart, .stat-grid { display: none !important; }
  .comparison, .cards > article, .feature, .faq { box-shadow: none; background: #fff; }
}
