/*
Theme Name: Recally
Theme URI: https://recally.nl
Author: Recally
Description: Nationaal platform voor productterugroepacties in Nederland — server-side gerenderd voor SEO, geïntegreerd met de Recall Manager plugin. Visueel ontwerp gebaseerd op het Recally-prototype.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: recally
*/

/* ================================================================== */
/* Design tokens                                                        */
/* ================================================================== */
:root {
  --petrol: #34439F;
  --petrol-dark: #2A3683;
  --petrol-deep: #1B2257;
  --tint: #EEF0FA;
  --tint2: #DCE0F4;
  --ink: #181D43;
  --body-c: #454B70;
  --muted: #6E7494;
  --line: #DCDFEC;
  --surface: #F7F8FC;
  --red: #B42318;
  --red-bg: #FBEAE8;
  --orange: #B54708;
  --orange-bg: #FCEFE2;
  --yellow: #8A6A00;
  --yellow-bg: #FAF1CE;
  --green: #11774A;
  --green-bg: #E3F3EA;
  --accent: #F04F67;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27,34,87,.06);
  --shadow-hover: 0 6px 20px rgba(27,34,87,.12);
}

/* ================================================================== */
/* Reset & base                                                         */
/* ================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Fira Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--body-c); background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(26px,4.5vw,40px); letter-spacing: -.015em; }
h2 { font-size: clamp(20px,3vw,28px); letter-spacing: -.01em; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
a { color: var(--petrol); }
img { max-width: 100%; height: auto; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section-alt { background: var(--surface); }
.lead { font-size: 18px; color: var(--body-c); max-width: 62ch; }
.muted-line { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.icon { flex: none; vertical-align: -3px; }
:focus-visible { outline: 3px solid var(--tint2); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ================================================================== */
/* Buttons                                                              */
/* ================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none;
  border: none; border-radius: var(--radius); cursor: pointer;
  min-height: 48px; padding: 10px 22px; transition: background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary   { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-dark); }
.btn-accent    { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #DB3B54; }
.btn-secondary { background: #fff; color: var(--petrol); box-shadow: inset 0 0 0 1.5px var(--petrol); }
.btn-secondary:hover { background: var(--tint); }
.btn-on-dark   { background: rgba(255,255,255,.15); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn-on-dark:hover { background: rgba(255,255,255,.25); }
.btn-ghost     { background: transparent; color: var(--petrol); }
.btn-ghost:hover { background: var(--tint); }
.btn-sm        { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn-chip      { min-height: 34px; padding: 4px 14px; font-size: 14px; border-radius: 999px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--petrol); font-weight: 600; text-decoration: none; font-size: 15px; }
.text-link:hover { text-decoration: underline; }

/* ================================================================== */
/* Badges                                                               */
/* ================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
  padding: 3px 11px; border-radius: 999px; white-space: nowrap;
}
.badge-ernstig { background: var(--red-bg); color: var(--red); }
.badge-risico  { background: var(--orange-bg); color: var(--orange); }
.badge-letop   { background: var(--yellow-bg); color: var(--yellow); }
.badge-cat     { background: var(--tint); color: var(--petrol); }
/* Outlined variant */
.badge-outline-ernstig { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.badge-outline-risico  { background: transparent; color: var(--orange); box-shadow: inset 0 0 0 1.5px var(--orange); }
.badge-outline-letop   { background: transparent; color: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--yellow); }
.badge-outline-cat     { background: transparent; color: var(--petrol); box-shadow: inset 0 0 0 1.5px var(--petrol); }

/* ================================================================== */
/* Header                                                               */
/* ================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img, .logo .custom-logo { display: block; height: 32px; width: auto; }
.logo-mark { height: 32px; width: 32px; }
.logo-word { font-size: 19px; font-weight: 700; color: var(--petrol-dark); letter-spacing: .05em; text-transform: uppercase; }
.header-search { flex: 1; max-width: 420px; }
.header-nav { display: flex; gap: 4px; margin-left: auto; }
.header-nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
.nav-link, .header-nav a {
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--body-c); font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background .12s, color .12s;
}
.nav-link:hover, .header-nav a:hover { background: var(--tint); color: var(--petrol); }
.menu-btn { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 10px; min-height: 44px; min-width: 44px; }
.header-search-mobile { display: none; padding-bottom: 12px; }
.mobile-menu { display: none; }

/* ================================================================== */
/* Search bar                                                           */
/* ================================================================== */
.searchbar {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 4px 4px 4px 14px;
  transition: border-color .12s, box-shadow .12s;
}
.searchbar:focus-within { border-color: var(--petrol); box-shadow: 0 0 0 3px var(--tint2); }
.searchbar input { flex: 1; border: none; outline: none; font: inherit; font-size: 15px; color: var(--ink); background: transparent; min-width: 0; min-height: 38px; }
.searchbar input::placeholder { color: var(--muted); }
.searchbar-btn { border: none; background: var(--petrol); color: #fff; font: inherit; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 7px; cursor: pointer; min-height: 38px; transition: background .12s; }
.searchbar-btn:hover { background: var(--petrol-dark); }
.searchbar-big { padding: 7px 8px 7px 16px; border-radius: 12px; }
.searchbar-big input { font-size: 17px; min-height: 46px; }
.searchbar-big .searchbar-btn { font-size: 16px; padding: 11px 22px; border-radius: 9px; }

/* ================================================================== */
/* Hero                                                                 */
/* ================================================================== */
.hero { background: var(--tint); border-bottom: 1px solid var(--tint2); }
.hero[data-hero="Petrol"] { background: var(--petrol-deep); border-bottom-color: var(--petrol-dark); }
.hero[data-hero="Petrol"] h1,
.hero[data-hero="Petrol"] .hero-sub,
.hero[data-hero="Petrol"] .hero-trust { color: rgba(255,255,255,.92); }
.hero-inner { padding: 56px 20px 48px; }
.hero-copy { max-width: 680px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.hero[data-hero="Petrol"] .hero-kicker { color: rgba(255,255,255,.65); }
.hero-sub { font-size: 18px; margin: 14px 0 26px; color: var(--body-c); }
.hero-search { max-width: 560px; margin-bottom: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .icon { color: var(--green); }
.hero[data-hero="Petrol"] .hero-trust .icon { color: var(--accent); }

/* ================================================================== */
/* Stats strip                                                          */
/* ================================================================== */
.stats-strip { background: var(--petrol-deep); color: #fff; }
.stats-inner { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 18px 20px; flex-wrap: wrap; }
.stat { display: flex; align-items: baseline; gap: 8px; }
.stat strong { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.stat span { font-size: 14px; color: rgba(255,255,255,.75); }
.stat-sep { width: 1px; height: 22px; background: rgba(255,255,255,.25); }

/* ================================================================== */
/* Sections & grids                                                     */
/* ================================================================== */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.cards-grid[data-density="Compact"] { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ================================================================== */
/* Recall card                                                          */
/* ================================================================== */
.recall-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s, border-color .18s;
}
.recall-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--tint2); }
.photo-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--tint); color: var(--petrol); height: 140px; flex: none; overflow: hidden;
}
.photo-ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-ph-label { font-size: 12px; color: var(--muted); }
.photo-ph-tall { height: 240px; border-radius: var(--radius); }
[data-density="Compact"] .photo-ph { height: 110px; }
.rc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.rc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-brand { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.rc-title { font-size: 17px; font-weight: 600; margin: 0; color: var(--ink); }
.rc-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.rc-date { display: inline-flex; align-items: center; gap: 5px; }
.rc-src { font-weight: 600; color: var(--petrol); }

/* ================================================================== */
/* Category tiles                                                       */
/* ================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cat-tile {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: box-shadow .18s, transform .18s;
}
.cat-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cat-tile-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none; border-radius: 10px;
  background: var(--tint); color: var(--petrol);
}
.cat-tile-body { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.cat-tile-body strong { color: var(--ink); font-size: 16px; }
.cat-tile-body span { font-size: 13px; color: var(--muted); }

/* ================================================================== */
/* Alert block (homepage + alerts page)                                 */
/* ================================================================== */
.alert-block { background: var(--tint); border: 1px solid var(--tint2); border-radius: 14px; padding: 28px; }
.alert-block-head { display: flex; gap: 16px; margin-bottom: 18px; }
.alert-block-head p { margin: 0; font-size: 15px; }
.alert-block-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--petrol); color: #fff;
}
.alert-block-row { display: flex; gap: 10px; flex-wrap: wrap; }
.alert-block-row input {
  flex: 1; min-width: 220px; min-height: 48px;
  border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
}
.alert-block-row input:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px var(--tint2); }
.alert-block-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* Checkbox / radio chips */
.check-chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; min-height: 40px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--body-c); cursor: pointer; user-select: none;
  transition: border-color .12s, background .12s;
}
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip:hover { border-color: var(--petrol); }
.check-chip:has(input:checked) { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.check-chip:has(input:focus-visible) { outline: 3px solid var(--tint2); }

/* Frequency options */
.freq-option {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  cursor: pointer; flex: 1; min-width: 160px;
  transition: border-color .12s, background .12s;
}
.freq-option:has(input:checked), .freq-on { border-color: var(--petrol); background: var(--tint); }
.freq-option input { display: none; }
.freq-option strong { color: var(--ink); font-size: 15px; }
.freq-option span { font-size: 13px; color: var(--muted); }

/* Stepper wizard */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.stepper-item { display: flex; align-items: center; gap: 8px; flex: 1; }
.stepper-item:last-child { flex: none; }
.stepper-dot {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  font-size: 13px; font-weight: 700;
  background: var(--line); color: var(--muted);
  transition: background .2s, color .2s;
}
.stepper-item.active .stepper-dot  { background: var(--petrol); color: #fff; }
.stepper-item.done .stepper-dot    { background: var(--green); color: #fff; }
.stepper-item .stepper-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.stepper-item.active .stepper-label { color: var(--ink); font-weight: 600; }
.stepper-line { flex: 1; height: 2px; background: var(--line); margin: 0 4px; }

/* Wizard card */
.wizard-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); margin-bottom: 20px; }
.wizard-sub { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.wizard-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* Premium teaser */
.premium-teaser {
  background: var(--petrol-deep); color: rgba(255,255,255,.9); border-radius: 14px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.premium-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 12px; border-radius: 999px;
}
.premium-teaser h3 { color: #fff; margin: 0; }
.premium-teaser p { color: rgba(255,255,255,.75); margin: 0; font-size: 15px; }
.premium-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.premium-list li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: rgba(255,255,255,.85); }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; font-weight: 600; cursor: pointer;
  list-style: none; color: var(--ink);
  transition: background .12s;
}
.faq-q:hover { background: var(--surface); }
.faq-q::marker, .faq-q::-webkit-details-marker { display: none; }
.faq-open::after { content: '−'; font-size: 20px; color: var(--petrol); }
.faq-item:not([open]) .faq-open::after { content: '+'; }
.faq-a { padding: 0 18px 16px; font-size: 15px; }
.faq-a p { margin: 0; }

/* ================================================================== */
/* Detail page                                                          */
/* ================================================================== */
.detail-top { padding-top: 28px; }
.back-link { margin-bottom: 18px; display: inline-flex; }
.detail-header { display: grid; grid-template-columns: 300px 1fr; gap: 32px; margin-top: 16px; }
.detail-brand { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
.detail-header h1 { margin-bottom: 10px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.id-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.id-block > div { background: var(--surface); padding: 12px 16px; }
.id-block dt { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.id-block dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.detail-cols { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding-top: 36px; padding-bottom: 48px; }
.detail-section { margin-bottom: 32px; }
.detail-section h2 { margin-bottom: 10px; }
.detail-section p { max-width: 62ch; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: var(--petrol); color: #fff; font-size: 14px; font-weight: 700; margin-top: 1px;
}
.retailer-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: var(--tint); color: var(--petrol); border-radius: 999px; font-size: 14px; font-weight: 600; }
.source-box {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--tint); border: 1px solid var(--tint2); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 24px;
}
.source-box-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--petrol); color: #fff; }
.source-box-body { flex: 1; min-width: 200px; display: flex; flex-direction: column; line-height: 1.4; }
.source-box-body strong { color: var(--ink); }
.source-box-body span { font-size: 14px; color: var(--muted); }
.detail-side { display: flex; flex-direction: column; gap: 18px; }
.detail-alert-cta { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.detail-alert-head { display: flex; align-items: center; gap: 8px; color: var(--ink); margin-bottom: 12px; font-weight: 700; }
.detail-alert-btns { display: flex; flex-direction: column; gap: 8px; }
.side-help { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-help p { font-size: 14px; }

/* ================================================================== */
/* Archive head & chips                                                 */
/* ================================================================== */
.archive-head { background: var(--tint); border-bottom: 1px solid var(--tint2); padding: 36px 0 30px; }
.archive-head h1 { margin-bottom: 6px; }
.archive-head p { margin: 0; color: var(--muted); }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--body-c); text-decoration: none; font-size: 14px; font-weight: 500; min-height: 40px;
  transition: border-color .12s, background .12s;
}
.chip-btn:hover { border-color: var(--petrol); }
.chip-on { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.cat-chips .icon { vertical-align: -3px; }
.result-count { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; min-height: 42px; padding: 6px 12px;
  border: 1.5px solid var(--line); border-radius: 8px; text-decoration: none;
  color: var(--body-c); font-weight: 600;
  transition: border-color .12s, color .12s;
}
.pagination .page-numbers.current { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--petrol); color: var(--petrol); }

/* ================================================================== */
/* Archive filter toolbar                                               */
/* ================================================================== */
.archive-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.archive-search { flex: 1; min-width: 220px; }
.archive-select-wrap { position: relative; flex: none; }
.archive-select-wrap::after {
  content: ''; position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); pointer-events: none;
  border: 5px solid transparent; border-top: 6px solid var(--muted); margin-top: 3px;
}
.archive-select {
  appearance: none; -webkit-appearance: none;
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 36px 10px 14px; font: inherit; font-size: 14px;
  color: var(--ink); cursor: pointer; min-height: 46px;
  transition: border-color .12s, box-shadow .12s;
}
.archive-select:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px var(--tint2); }
.archive-select:hover { border-color: var(--petrol); }
.archive-select.is-active { border-color: var(--petrol); background: var(--tint); color: var(--petrol); font-weight: 600; }
.archive-select-sort { margin-left: auto; }
.archive-active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.archive-filter-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--tint2); color: var(--petrol); border: 1px solid var(--petrol);
  border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background .12s, color .12s;
}
.archive-filter-tag:hover { background: var(--petrol); color: #fff; }
.archive-filter-clear { font-size: 13px; color: var(--muted); text-decoration: underline; margin-left: 4px; }
.archive-filter-clear:hover { color: var(--red); }

/* ================================================================== */
/* Sources grid (over ons page)                                         */
/* ================================================================== */
.bronnen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.bron-tile {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.bron-check { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--green-bg); color: var(--green); }
.bron-tile strong { font-size: 15px; color: var(--ink); }
.bron-tile span { font-size: 13px; color: var(--muted); }

/* ================================================================== */
/* Value cards (zakelijk page)                                          */
/* ================================================================== */
.value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.value-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--tint); color: var(--petrol); margin-bottom: 14px;
}
.value-card h4 { font-size: 16px; margin: 0 0 6px; }
.value-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ================================================================== */
/* Pricing cards (zakelijk page)                                        */
/* ================================================================== */
.b2b-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-bottom: 12px; }
.b2b-plan {
  position: relative; background: #fff; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 28px 24px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: var(--shadow);
}
.b2b-plan--featured { border-color: var(--petrol); box-shadow: 0 0 0 3px var(--tint2), var(--shadow-hover); }
.pricing-hot { border-color: var(--petrol); box-shadow: 0 0 0 3px var(--tint2), var(--shadow-hover); }
.b2b-plan-badge, .pricing-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--petrol); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 14px; border-radius: 999px; white-space: nowrap;
}
.pricing-hot .pricing-flag { background: var(--accent); }
.b2b-plan-head { display: flex; flex-direction: column; gap: 4px; }
.b2b-plan-name, .pricing-name { font-size: 19px; font-weight: 700; color: var(--ink); }
.b2b-plan-price, .pricing-price { font-size: 36px; font-weight: 700; color: var(--petrol); line-height: 1; }
.b2b-plan-price span, .pricing-price span { font-size: 16px; font-weight: 400; color: var(--muted); }
.b2b-plan-desc, .pricing-desc { font-size: 14px; color: var(--muted); }
.b2b-plan-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.b2b-plan-features li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.b2b-feature-off { color: var(--muted); }
.b2b-plan .btn { width: 100%; text-align: center; margin-top: auto; }

/* Feature matrix */
.b2b-matrix-wrap { overflow-x: auto; }
.b2b-matrix { width: 100%; border-collapse: collapse; font-size: 15px; }
.b2b-matrix th { background: var(--surface); padding: 12px 16px; text-align: left; font-weight: 700; border-bottom: 2px solid var(--line); }
.b2b-matrix th:not(:first-child) { text-align: center; }
.b2b-matrix td { padding: 11px 16px; border-bottom: 1px solid var(--line); }

/* Demo form */
.b2b-demo-block { background: var(--tint); border: 1px solid var(--tint2); border-radius: 16px; padding: 40px; }
.b2b-demo-inner { max-width: 640px; }
.b2b-demo-inner h2 { margin-top: 0; }
.b2b-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.form-fields { display: flex; flex-direction: column; gap: 14px; }
.form-fields label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 15px; }
.b2b-form-row label,
.b2b-demo-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 15px; }
.b2b-form-row input, .b2b-form-row select,
.form-fields input, .form-fields select, .form-fields textarea,
.b2b-demo-form input, .b2b-demo-form select, .b2b-demo-form textarea {
  font: inherit; font-size: 15px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 8px; width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
.b2b-demo-form textarea { resize: vertical; }
.b2b-demo-form input:focus, .b2b-demo-form select:focus, .b2b-demo-form textarea:focus,
.form-fields input:focus, .form-fields select:focus, .form-fields textarea:focus {
  outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px var(--tint2);
}

/* ================================================================== */
/* Dashboard                                                            */
/* ================================================================== */
.b2b-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.b2b-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.b2b-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 16px; color: var(--ink); }
.b2b-card--full { grid-column: 1 / -1; }
.b2b-key-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.b2b-key-display { font-size: 14px; letter-spacing: .06em; background: var(--surface); padding: 8px 12px; border-radius: 6px; }
.b2b-stat-big { font-size: 44px; font-weight: 700; color: var(--petrol); line-height: 1; }
.b2b-rate-bar {
  display: flex; align-items: flex-end; gap: 2px; height: 50px;
  background: var(--surface); border-radius: 6px; padding: 6px 8px; overflow: hidden;
}
.b2b-bar-col { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.b2b-bar-fill { width: 100%; background: var(--petrol); border-radius: 2px 2px 0 0; min-height: 2px; transition: height .3s; }
.scan-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.scan-bar-fill { height: 100%; background: var(--petrol); border-radius: 999px; transition: width .4s; }
.b2b-code { background: var(--petrol-deep); color: #c8d8ff; border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-size: 13px; line-height: 1.7; }
.b2b-code code { white-space: pre; }

/* ================================================================== */
/* Check tool                                                           */
/* ================================================================== */
.check-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.check-main { display: flex; flex-direction: column; gap: 0; }
.check-camera-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.check-scan-btn { min-width: 220px; }
.check-viewfinder {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #000; aspect-ratio: 4/3; max-height: 340px; margin-bottom: 16px;
}
.check-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.check-reticle { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.check-reticle-inner { position: relative; width: 65%; max-width: 280px; aspect-ratio: 3/1; }
.check-corner { position: absolute; width: 20px; height: 20px; border-color: #fff; border-style: solid; border-width: 0; }
.check-corner-tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-radius: 3px 0 0 0; }
.check-corner-tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-radius: 0 3px 0 0; }
.check-corner-bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 3px; }
.check-corner-br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 3px 0; }
.check-scan-line {
  position: absolute; left: 4px; right: 4px; top: 0; height: 2px;
  background: var(--accent); box-shadow: 0 0 8px 2px rgba(240,79,103,.7);
  animation: scan-sweep 2s ease-in-out infinite;
}
@keyframes scan-sweep { 0% { top: 4px; } 50% { top: calc(100% - 4px); } 100% { top: 4px; } }
.check-hint {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.85); font-size: 13px; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.check-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 14px; }
.check-divider::before, .check-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.check-or { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.check-manual { display: flex; flex-direction: column; gap: 6px; }
.check-manual-label { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--ink); }
.check-manual-row { width: 100%; }
.check-manual-hint { font-size: 13px; color: var(--muted); margin: 0; }
.rc-status { padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; margin-top: 16px; }
.rc-status--info { background: var(--tint); color: var(--petrol); }
.rc-status--warn { background: var(--orange-bg); color: var(--orange); }
.rc-status--error { background: var(--red-bg); color: var(--red); }
.check-result-box { margin-top: 20px; }
.rc-result { border-radius: var(--radius); border: 1.5px solid var(--line); overflow: hidden; }
.rc-result--ok  { border-color: var(--green); background: var(--green-bg); display: flex; gap: 16px; padding: 22px; }
.rc-result--warn { border-color: var(--orange); background: var(--orange-bg); display: flex; gap: 16px; padding: 22px; }
.rc-result--error { border-color: var(--red); background: var(--red-bg); padding: 22px; }
/* Prototype-aligned result states */
.check-result-safe  { border-color: var(--green);  background: var(--green-bg); }
.check-result-found { border-color: var(--orange); background: var(--orange-bg); }
.check-found-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; text-decoration: none; color: inherit;
  transition: box-shadow .15s, transform .15s;
}
.check-found-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.rc-result-icon { font-size: 28px; flex: none; line-height: 1; }
.rc-result-body { flex: 1; }
.rc-result-body h3 { margin: 0 0 6px; font-size: 18px; }
.rc-result-body p { margin: 0 0 8px; font-size: 15px; }
.rc-ean-note { font-size: 13px; color: var(--muted); }
.rc-ean-note code { font-family: var(--font-mono, monospace); letter-spacing: .04em; }
.rc-recalls-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.rc-recall-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; text-decoration: none; color: inherit;
  transition: box-shadow .15s, transform .15s;
}
.rc-recall-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.rc-recall-risk { font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex: none; }
.rc-recall-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rc-recall-info strong { font-size: 15px; color: var(--ink); line-height: 1.3; }
.rc-recall-brand { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.rc-recall-source { font-size: 12px; color: var(--petrol); font-weight: 600; }
.rc-recall-arrow { color: var(--petrol); font-size: 18px; flex: none; }
.check-aside { position: sticky; top: 90px; }
.check-aside-title { font-size: 18px; margin-bottom: 14px; }
.check-aside-card {
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s;
}
.check-aside-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.check-aside-title-text { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; margin-top: 4px; }
.check-aside-ean { font-size: 12px; color: var(--muted); font-family: monospace; }

/* ================================================================== */
/* Footer                                                               */
/* ================================================================== */
.site-footer { background: var(--petrol-deep); color: rgba(255,255,255,.75); margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 48px 20px 32px; }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 30ch; }
.site-footer .logo-word { color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 15px; transition: color .12s; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px 26px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px;
}

/* ================================================================== */
/* Responsive                                                           */
/* ================================================================== */
@media (max-width: 1040px) {
  .header-nav, .header-cta, .header-search { display: none; }
  .menu-btn { display: flex; align-items: center; justify-content: center; margin-left: auto; }
  .header-search-mobile { display: block; }
  .mobile-menu { display: none; flex-direction: column; gap: 2px; padding-bottom: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 8px; min-height: 48px; text-decoration: none;
    color: var(--ink); font-weight: 600; font-size: 17px; border-radius: 8px;
  }
  .mobile-menu a:hover { background: var(--tint); }
  .detail-cols { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 920px) {
  .detail-header { grid-template-columns: 1fr; gap: 20px; }
  .photo-ph-tall { height: 190px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .check-layout { grid-template-columns: 1fr; gap: 36px; }
  .check-aside { position: static; }
  .check-viewfinder { max-height: 260px; }
}
@media (max-width: 720px) {
  .b2b-form-row { grid-template-columns: 1fr; }
  .b2b-demo-block { padding: 24px; }
  .b2b-dash-grid { grid-template-columns: 1fr; }
  .b2b-card--full { grid-column: 1; }
  .archive-toolbar { gap: 8px; }
  .archive-search { min-width: 0; width: 100%; flex-basis: 100%; }
  .archive-select { font-size: 13px; padding: 9px 30px 9px 11px; min-height: 42px; }
  .archive-select-sort { margin-left: 0; }
}
@media (max-width: 560px) {
  .section { padding: 38px 0; }
  .hero-inner { padding: 36px 20px 32px; }
  .stats-inner { gap: 14px; }
  .stat { flex-direction: column; gap: 0; align-items: center; text-align: center; }
  .stat-sep { height: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; }
  .alert-block { padding: 20px; }
  .check-camera-row { flex-direction: column; }
  .check-scan-btn { width: 100%; }
  .rc-result--ok, .rc-result--warn { flex-direction: column; gap: 10px; }
}
