:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #1f1d1a;
  --muted: #6b665e;
  --line: #e2dcd2;
  --accent: #2d4a3e;
  --accent-ink: #ffffff;
  --accent-soft: #e3ebe6;
  --wall: #ebe5dc;
  --paper: #fffdf9;
  --nail: #d0391e;
  --warn-bg: #fdf1dc;
  --warn: #7a4f0d;
  --radius: 14px;
  --header-h: 64px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* Systeemfonts met schreef voor koppen; geen externe fonts nodig */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 20; padding: 8px 14px; border-radius: 8px;
  background: var(--ink); color: var(--bg); text-decoration: none;
}
.skip:focus { top: 12px; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 16px; text-decoration: none;
  transition: filter 0.15s, box-shadow 0.15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { filter: none; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 243, 238, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.brand-logo { display: block; height: 40px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 58px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 20px;
}
.lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points {
  list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 14px; color: var(--muted);
}
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 7px; }

.hero-art {
  margin: 0; padding: 18px 18px 14px; background: var(--wall); border-radius: 20px;
  box-shadow: 0 1px 0 rgba(31, 29, 26, 0.04), 0 18px 40px rgba(31, 29, 26, 0.08);
}
#hero-art svg { display: block; width: 100%; height: auto; }
.hero-art figcaption { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted); }
.hero-art figcaption span::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px;
}
.hero-art figcaption span:first-child::before { background: var(--nail); }
.hero-art figcaption span:last-child::before { background: var(--ink); }

/* Hero-illustratie (SVG) */
.paper { fill: var(--paper); }
.paper-shadow { fill: rgba(31, 29, 26, 0.14); }
.paper-seam { fill: none; stroke: #d6cfc3; }
.outline { fill: none; stroke: #4a463f; }
.outline-inner { fill: none; stroke: #c9c2b6; }
.paper-no { fill: #e4ded3; font-family: var(--font); font-weight: 700; }
.cross { stroke: var(--nail); fill: none; }
.tape { fill: rgba(222, 205, 160, 0.85); }

/* Secties */
.section { padding: 80px 0; }
.how, .why { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12;
  letter-spacing: -0.015em; margin: 0 0 12px;
}
.section-head { max-width: 720px; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0; }

/* Zo werkt het */
.how-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.how-step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.how-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent);
}
.how-icon svg { width: 30px; height: 30px; }
.how-step h3 { display: flex; align-items: baseline; gap: 10px; font-size: 19px; margin: 0 0 8px; }
.how-no { font-family: var(--serif); color: var(--muted); font-weight: 600; }
.how-step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Tool */
.step-title { display: flex; align-items: center; gap: 12px; font-size: 20px; margin: 40px 0 16px; }
.step-no {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-size: 15px;
}

/* Seriekeuze */
.series-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.series-card {
  display: flex; gap: 16px; align-items: center; text-align: left; cursor: pointer; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
.series-card:hover { border-color: var(--muted); }
.series-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.series-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.series-art { flex: 0 0 64px; height: 80px; background: var(--wall); border-radius: 8px; padding: 6px; }
.series-art svg { display: block; width: 100%; height: 100%; }
.series-body { display: grid; gap: 2px; }
.series-name { font-weight: 650; font-size: 17px; }
.series-desc { color: var(--muted); font-size: 14px; }
.series-meta { font-size: 13px; color: var(--muted); }
.dots { display: flex; gap: 5px; margin-top: 4px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid; flex: none; }

/* Catalogus */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.chip {
  font: inherit; font-size: 14px; cursor: pointer; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.chip:hover { border-color: var(--muted); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-count { opacity: 0.6; margin-left: 2px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; font: inherit; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(31, 29, 26, 0.08); }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.card-art { background: var(--wall); height: 190px; padding: 12px; }
.card-art svg { display: block; width: 100%; height: 100%; }
.card-body { display: grid; gap: 2px; padding: 14px 16px 16px; }
.card-title { font-weight: 650; font-size: 17px; }
.card-meta { color: var(--muted); font-size: 14px; }
.card-sheets {
  justify-self: start; margin-top: 6px; font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px;
}

/* Detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.preview { background: var(--wall); min-height: 260px; padding: 16px; display: grid; align-items: center; }
.preview svg { display: block; width: 100%; height: auto; max-height: 520px; }
.stage-toggles { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 14px 18px; border-top: 1px solid var(--line); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.panel-title { margin: 0; font-size: 22px; }
.panel-sub { margin: 18px 0 6px; font-size: 15px; }
.muted { color: var(--muted); }
#detail-desc { margin: 4px 0 4px; font-size: 15px; }

.field { border: 0; padding: 0; margin: 16px 0 0; }
.field legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.field legend .muted { font-weight: 400; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 7px 8px; border-radius: 7px; font-size: 14px; }
.segmented input:checked + span { background: var(--surface); box-shadow: 0 1px 3px rgba(31, 29, 26, 0.15); font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch-inner {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 14px;
}
.swatch input:checked + .swatch-inner { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); font-weight: 600; }
.swatch input:focus-visible + .swatch-inner { outline: 2px solid var(--accent); outline-offset: 2px; }
.article { display: block; font-size: 12px; color: var(--muted); margin-left: 32px; }

.format-row { margin-top: 10px; }
.format-row[hidden] { display: none; }
.format-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.select {
  width: 100%; font: inherit; font-size: 14px; padding: 9px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.facts div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; }

.shopping { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.shopping li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.shopping .qty { display: inline-block; min-width: 28px; font-weight: 700; }

.download {
  width: 100%; margin-top: 20px; padding: 14px 18px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650; font-size: 16px;
}
.download:hover { filter: brightness(1.1); }
.download:disabled { opacity: 0.6; cursor: progress; }
.download-secondary {
  width: 100%; margin-top: 8px; padding: 11px 18px; border-radius: 12px; cursor: pointer;
  background: var(--surface); color: var(--accent); border: 1.5px solid var(--accent);
  font: inherit; font-weight: 600; font-size: 15px;
}
.download-secondary[hidden] { display: none; }
.download-secondary:hover { background: var(--accent-soft); }
.download-secondary:disabled { opacity: 0.6; cursor: progress; }
.hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.note { font-size: 13px; color: var(--warn); background: var(--warn-bg); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }

/* SVG-preview */
.wall { fill: var(--wall); }
.shadow { fill: rgba(31, 29, 26, 0.16); }
.sheet { fill: none; stroke: #2b6cb0; opacity: 0.75; }
.sheet-code { fill: #2b6cb0; font-family: var(--font); font-weight: 600; }
.nail { fill: var(--nail); }
.badge { fill: rgba(255, 255, 255, 0.92); stroke: var(--ink); stroke-width: 2; }
.badge-text { fill: var(--ink); font-family: var(--font); font-weight: 700; }
.dim line { stroke: var(--muted); }
.dim-text { fill: var(--muted); font-family: var(--font); }

/* Waarom */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 36px; margin-top: 40px; }
.why-item { border-top: 2px solid var(--ink); padding-top: 16px; }
.why-item h3 { font-size: 18px; margin: 0 0 6px; }
.why-item p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--muted); transition: transform 0.15s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq-list details p { margin: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 24px 40px; align-items: start; }
.footer-logo { display: block; height: 44px; width: auto; }
.footer-brand p { margin: 12px 0 0; }
.disclaimer, .copyright { margin: 0; font-size: 13px; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 620px; }
  .how-steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-inner { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
  .panel { position: static; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .header-inner .btn-small { margin-left: auto; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .series-picker { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 48px; }
  .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .section { padding: 56px 0; }
  .section-lead { font-size: 16px; }
  .brand-logo { height: 36px; }
  .hero-art { padding: 12px 12px 10px; border-radius: 16px; }
}
