/* Gedeelde stijl voor de productpagina's van de context-API's.
   Zelfde ontwerptaal als de one-pager: Space Grotesk voor koppen, Inter voor tekst,
   dezelfde paarse gradiënt en dezelfde kaartvorm. */

:root {
  --ink: #0e1525;
  --muted: #5a6478;
  --line: #e8ebf2;
  --bg: #ffffff;
  --soft: #f6f8fc;
  --grad: linear-gradient(120deg, #6366f1 0%, #8b5cf6 45%, #ec4899 100%);
  --grad-soft: linear-gradient(120deg, #eef2ff, #faf5ff 60%, #fdf2f8);
  --code-bg: #0f172a;
  --warn-bg: #fff7ed;
  --warn-line: #fed7aa;
  --warn-ink: #9a3412;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .logo { font-family: 'Space Grotesk', 'Inter', sans-serif; }
a { color: #7c3aed; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }


.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto -10%; height: 560px; background: var(--grad-soft); filter: blur(10px); z-index: -1; }
.hero .wrap { padding: 72px 24px 48px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #6d28d9; background: #f1ecfe; border: 1px solid #e4dafc; padding: 6px 14px; border-radius: 999px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #8b5cf6; }
h1 { font-size: clamp(32px, 5.5vw, 50px); font-weight: 700; letter-spacing: -1.6px; line-height: 1.08; margin-top: 20px; }
h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin-top: 20px; }

section { padding: 44px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
h2 { font-size: clamp(23px, 3.4vw, 31px); font-weight: 700; letter-spacing: -.7px; }
h3 { font-size: 18px; font-weight: 700; margin-top: 26px; }
p { margin-top: 14px; color: #2b3446; }
p.muted { color: var(--muted); }
ul, ol { margin: 14px 0 0 22px; color: #2b3446; }
li { margin-top: 7px; }
li strong { color: var(--ink); }

table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
td code { white-space: nowrap; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: #f1f3f9; padding: 2px 6px; border-radius: 5px; }
pre { background: var(--code-bg); color: #e2e8f0; padding: 18px 20px; border-radius: 14px; overflow-x: auto; margin-top: 16px; font-size: 13.5px; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.copy-wrap { position: relative; }
.copy-btn { position: absolute; top: 10px; right: 10px; font: 600 12px Inter, sans-serif; color: #cbd5e1; background: #1e293b; border: 1px solid #334155; border-radius: 7px; padding: 5px 10px; cursor: pointer; }
.copy-btn:hover { color: #fff; background: #334155; }

.callout { margin-top: 20px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--warn-line); background: var(--warn-bg); }
.callout h4 { font-size: 15px; font-weight: 700; color: var(--warn-ink); }
.callout p { margin-top: 6px; color: #7c2d12; font-size: 15px; }

.cards { display: grid; gap: 16px; margin-top: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; }
.card h4 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; }
.card p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { font-size: 13px; font-weight: 600; color: #4c1d95; background: #f1ecfe; border: 1px solid #e4dafc; padding: 5px 12px; border-radius: 999px; }

.sibling { margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.sibling h4 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; }


@media (max-width: 620px) {
  .hero .wrap { padding: 52px 24px 36px; }
  section { padding: 34px 0; }
}

/* ── Check-formulier en resultaat (kentekencheck / adrescheck) ──────────────────────
   Alles draait client-side tegen de publieke API. Bewust geen URL per kenteken of adres:
   dat zou een indexeerbare verzameling opleveren die op een persoonsgegeven is gesleuteld,
   en dat is iets anders dan een formulier dat op verzoek één opvraging doet. */

.searchbox { position: relative; margin-top: 28px; }
.check-form {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 2px solid var(--line); border-radius: 18px; padding: 6px 6px 6px 18px;
  box-shadow: 0 6px 24px rgba(20,30,60,.06); transition: border-color .15s, box-shadow .2s;
}
.check-form:focus-within { border-color: #8b5cf6; box-shadow: 0 8px 30px rgba(124,58,237,.14); }
.check-form svg { width: 20px; height: 20px; stroke: var(--muted); flex: none; }
.check-form input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: 600 19px 'Space Grotesk', sans-serif; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink); padding: 14px 0;
}
.check-form input.addr { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 17px; }
.check-form input::placeholder { color: #b6bdcc; letter-spacing: normal; }
.check-form button {
  flex: none; font: 600 15px Inter, sans-serif; color: #fff; background: var(--ink);
  border: 0; padding: 13px 24px; border-radius: 13px; cursor: pointer;
}
.check-form button:hover { opacity: .9; }
.check-form button:disabled { opacity: .45; cursor: wait; }

/* Suggesties (alleen adrescheck) */
.suggests {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(20,30,60,.13);
}
.suggests div {
  padding: 11px 18px; font-size: 15px; cursor: pointer; border-bottom: 1px solid var(--line);
}
.suggests div:last-child { border-bottom: 0; }
.suggests div:hover, .suggests div[aria-selected="true"] { background: #f5f3ff; }

.examples { margin-top: 14px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.examples button {
  font: 600 13px Inter, sans-serif; background: #fff; color: #4c1d95;
  border: 1px solid #e4dafc; border-radius: 999px; padding: 5px 13px; cursor: pointer;
}
.examples button:hover { background: #f5f3ff; }

#result { margin-top: 32px; }

.res-head {
  border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  background: #fff; box-shadow: 0 6px 22px rgba(20,30,60,.05);
}
.res-head .plate {
  display: inline-flex; align-items: stretch; border: 2px solid #1c1917; border-radius: 7px;
  overflow: hidden; font: 700 21px 'Space Grotesk', sans-serif; letter-spacing: 2px;
}
.res-head .plate i { background: #1e3a8a; color: #fff; font: 700 9px Inter, sans-serif; font-style: normal;
  display: flex; align-items: flex-end; justify-content: center; padding: 0 5px 6px; letter-spacing: 0; }
.res-head .plate span { background: #facc15; color: #1c1917; padding: 6px 14px; }
.res-head h3 { margin-top: 15px; font-size: 25px; line-height: 1.2; }
.res-head .meta { color: var(--muted); margin-top: 5px; font-size: 15px; }

/* Kerncijfers als tegels */
.tiles { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; background: var(--soft); }
.tile .t { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.tile .v { font: 700 19px 'Space Grotesk', sans-serif; margin-top: 3px; }
.tile .v.small { font-size: 15px; font-weight: 600; }
.tile .v.unknown { font-weight: 400; font-size: 14px; color: #94a3b8; font-style: italic; }
.tile.bad { background: #fef2f2; border-color: #fecaca; }
.tile.bad .v { color: #b91c1c; }
.tile.good { background: #f0fdf4; border-color: #bbf7d0; }
.tile.good .v { color: #15803d; }

.sig-head { font: 700 13px Inter, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 30px; }
.sig { border: 1px solid var(--line); border-left: 4px solid; border-radius: 0 14px 14px 0; padding: 15px 19px; margin-top: 11px; background: #fff; }
.sig.high { border-left-color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.sig.attention { border-left-color: #f59e0b; background: #fffbeb; border-color: #fde68a; }
.sig.info { border-left-color: #cbd5e1; background: #f8fafc; }
.sig .lbl { font: 700 11px Inter, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.sig.high .lbl { color: #b91c1c; }
.sig.attention .lbl { color: #b45309; }
.sig.info .lbl { color: #64748b; }
.sig p { margin-top: 5px; font-size: 15px; }
.sig .rec { font-size: 14px; color: var(--muted); margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(0,0,0,.1); }

details.more { margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
details.more summary { padding: 14px 20px; cursor: pointer; font-weight: 600; font-size: 15px; background: var(--soft); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: " ▾"; color: var(--muted); }
details.more[open] summary::after { content: " ▴"; }
.facts .row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 20px; border-top: 1px solid var(--line); font-size: 15px; }
.facts .k { color: var(--muted); }
.facts .v { font-weight: 600; text-align: right; }
.facts .v.unknown { font-weight: 400; color: #94a3b8; font-style: italic; }

.err { border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; border-radius: 16px; padding: 17px 21px; margin-top: 22px; }
.spin { color: var(--muted); margin-top: 24px; }

@media (max-width: 560px) {
  .check-form { padding-left: 14px; }
  .check-form button { padding: 12px 16px; font-size: 14px; }
  .check-form input { font-size: 17px; }
}

/* Keuzescherm bij een dubbelzinnig adres. Liever niets tonen dan het verkeerde pand. */
.chooser { border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: 18px; padding: 22px 24px; }
.chooser .ask { font: 700 19px 'Space Grotesk', sans-serif; color: var(--warn-ink); margin: 0; }
.chooser .why { font-size: 15px; color: #7c2d12; margin-top: 7px; }
.chooser .opt {
  display: block; width: 100%; text-align: left; margin-top: 10px; cursor: pointer;
  font: 600 16px 'Space Grotesk', sans-serif; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 13px; padding: 14px 18px;
}
.chooser .opt:hover { border-color: #8b5cf6; background: #faf5ff; }
.chooser .opt::after { content: " →"; color: #8b5cf6; }
