/* ================= Webstyle starter: interface ================= */
:root {
  --paper: #F6F4EF;
  --surface: #FFFFFF;
  --ink: #1C1B18;
  --ink-2: #45423B;
  --muted: #736E63;
  --line: #E4DFD4;
  --line-strong: #CFC8B9;
  --brand: #EE6A45;
  --brand-ink: #C4461F;
  --soft: #EFEBE2;
  --good: #1F7A4D;
  --good-bg: #E3F3EA;
  --warn: #8A5A00;
  --warn-bg: #FBF0D6;
  --bad: #B3261E;
  --bad-bg: #FBE4E1;
  --focus: #2E62D9;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 27, 24, .06), 0 4px 16px rgba(28, 27, 24, .06);
  --f-ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-family: var(--f-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.topbar-tag { margin: 0; color: var(--muted); font-size: 14px; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #33312B; }
.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--soft); }
.btn-soft { background: var(--soft); border-color: var(--line); }
.btn-soft:hover { background: #E6E1D5; }
.btn-dark { background: var(--ink); color: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font-size: 13px; }
.link-btn:hover { color: var(--ink); }

/* ---------- Layout ---------- */
.app {
  display: grid;
  grid-template-columns: minmax(360px, 440px) 1fr;
  height: calc(100vh - var(--topbar-h));
  height: calc(100dvh - var(--topbar-h));
}
.panel {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  min-height: 0;
}
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 10px; gap: 4px;
  border-bottom: 1px solid var(--line);
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border: 0; border-radius: var(--r-sm);
  background: transparent; font-size: 13px; font-weight: 600; color: var(--muted);
}
.step span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--soft); font-size: 12px; color: var(--ink-2);
}
.step:hover { background: var(--soft); color: var(--ink); }
.step.is-active { color: var(--ink); }
.step.is-active span { background: var(--brand); color: #fff; }
.step.is-done span { background: var(--ink); color: #fff; }

.panel-body { flex: 1; overflow-y: auto; padding: 20px 22px 8px; scrollbar-gutter: stable; }
.step-pane { display: none; }
.step-pane.is-active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.panel-foot { padding: 12px 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.panel-foot a { color: var(--ink-2); }

.block { margin-bottom: 26px; }
.block h2 { font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 4px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hint { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.hint-inline { color: var(--muted); font-size: 12px; }
.mini-label { margin: 0 0 6px; font-size: 12px; color: var(--muted); }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.field label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input[type=text], .field select {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }

/* Segmented control */
.seg { display: flex; padding: 3px; gap: 3px; background: var(--soft); border-radius: 10px; }
.seg button {
  flex: 1; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 8px;
  background: transparent; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed=true], .seg button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.seg-desc { flex-direction: column; }
.seg-desc button { display: flex; justify-content: space-between; align-items: center; text-align: left; padding: 10px 12px; }
.seg-desc small { font-weight: 400; color: var(--muted); }
.seg-sm button { min-height: 32px; font-size: 13px; padding: 4px 10px; }
.seg-icons button { flex: none; width: 38px; padding: 0; display: grid; place-items: center; }

/* Merkkleur invoer */
.brand-input { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.color-well { position: relative; width: 48px; height: 48px; flex: none; cursor: pointer; }
.color-well input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.color-well span { display: block; width: 100%; height: 100%; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.hex-field {
  display: flex; align-items: center; height: 48px; padding: 0 12px; flex: 1; min-width: 110px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.hex-field span { color: var(--muted); }
.hex-field input { border: 0; outline: 0; width: 100%; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: none; }
.hex-field:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.hex-field.is-invalid { border-color: var(--bad); }
.upload-btn { min-height: 48px; border-radius: var(--r-sm); cursor: pointer; }

.logo-result { display: flex; gap: 14px; margin-top: 14px; padding: 12px; background: var(--paper); border-radius: var(--r); }
.logo-thumb { width: 72px; height: 72px; flex: none; display: grid; place-items: center; background: #fff; border-radius: var(--r-sm); border: 1px solid var(--line); padding: 6px; }
.logo-thumb img { max-width: 100%; max-height: 100%; }
.logo-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.logo-swatch { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; padding: 0; }
.logo-swatch i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .12s; }
.logo-swatch:hover i { transform: scale(1.1); }
.logo-swatch small { font-size: 10px; color: var(--muted); }
.logo-swatch.is-current i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

.presets { margin-top: 14px; }
.presets summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.preset-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.preset { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 4px; border-radius: var(--r-sm); font-size: 11px; color: var(--muted); }
.preset i { width: 100%; aspect-ratio: 1; border-radius: 10px; }
.preset:hover { background: var(--soft); color: var(--ink); }

/* Accent */
.accent-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.accent-opt {
  display: flex; flex-direction: column; gap: 6px; padding: 8px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff; position: relative;
}
.accent-opt i { height: 36px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.accent-opt strong { font-size: 12px; }
.accent-opt small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.accent-opt:hover { border-color: var(--line-strong); }
.accent-opt[aria-pressed=true] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.accent-opt input[type=color] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

/* Palet */
.palette { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.swatch {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); background: #fff; text-align: left;
}
.swatch-color { height: 58px; position: relative; }
.swatch-color input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.swatch-info { padding: 7px 9px 9px; }
.swatch-info strong { display: block; font-size: 12px; line-height: 1.25; }
.swatch-info code { font-size: 11px; color: var(--muted); font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.swatch-info small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.swatch-badge {
  position: absolute; top: 6px; right: 6px; padding: 1px 6px; border-radius: 99px;
  font-size: 10px; font-weight: 700; background: rgba(255,255,255,.9); color: var(--ink); border: 0;
}
.swatch-badge:hover { background: #fff; text-decoration: underline; }

/* Leesbaarheidschecks */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.check {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 9px 10px; border-radius: var(--r-sm); background: var(--paper); font-size: 13px;
}
.check-sample { width: 42px; height: 30px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.check-text small { display: block; color: var(--muted); font-size: 12px; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.pill.goed { background: var(--good-bg); color: var(--good); }
.pill.matig { background: var(--warn-bg); color: var(--warn); }
.pill.slecht { background: var(--bad-bg); color: var(--bad); }
.check-fix { grid-column: 2 / -1; font-size: 12px; color: var(--ink-2); }
.check-fix button { margin-left: 4px; border: 0; background: var(--ink); color: #fff; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 600; }

/* Lettertype-combinaties */
.pairings { display: grid; gap: 8px; }
.pairing {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-align: left;
}
.pairing:hover { border-color: var(--line-strong); }
.pairing[aria-pressed=true] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pairing-sample { font-size: 22px; line-height: 1.2; color: var(--ink); }
.pairing-body { font-size: 13px; color: var(--ink-2); grid-column: 1; }
.pairing-meta { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-size: 11px; color: var(--muted); max-width: 130px; }
.pairing-meta strong { display: block; font-size: 12px; color: var(--ink); margin-bottom: 2px; }
.custom-fonts summary { cursor: pointer; list-style: none; }
.custom-fonts summary::-webkit-details-marker { display: none; }
.custom-fonts summary h2 { display: inline; }
.custom-fonts summary::after { content: ' +'; font-weight: 700; color: var(--muted); }
.custom-fonts[open] summary::after { content: ' −'; }
.custom-fonts[open] summary { margin-bottom: 12px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.type-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.type-table th, .type-table td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.type-table th:first-child, .type-table td:first-child { text-align: left; }
.type-table thead th { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: var(--paper); }
.type-table tr:last-child td { border-bottom: 0; }

/* Vormen */
.shape-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.shape-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: 12px; font-weight: 600; }
.shape-opt i { width: 44px; height: 26px; background: var(--ink); }
.shape-opt:hover { border-color: var(--line-strong); }
.shape-opt[aria-pressed=true] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.toggle input { position: absolute; opacity: 0; }
.toggle-ui { width: 40px; height: 24px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .15s; flex: none; }
.toggle-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + .toggle-ui { background: var(--ink); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--focus); outline-offset: 2px; }

.btn-next { width: 100%; min-height: 46px; margin: 4px 0 24px; }

/* ---------- Export ---------- */
.ex-intro { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; }
.ex-step { margin-bottom: 22px; }
.ex-step h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 4px; }
.ex-step h3 span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; flex: none; }
.ex-path { font-size: 12px; color: var(--muted); margin: 0 0 10px; padding-left: 30px; }
.ex-path b { color: var(--ink-2); font-weight: 600; }
.ex-rows { display: grid; gap: 4px; }
.ex-row {
  display: grid; grid-template-columns: 22px 1fr auto auto; gap: 10px; align-items: center;
  padding: 7px 8px 7px 10px; border-radius: var(--r-sm); background: var(--paper); font-size: 13px;
}
.ex-row.no-sw { grid-template-columns: 1fr auto auto; }
.ex-row i { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.ex-row .ex-label small { display: block; color: var(--muted); font-size: 11px; }
.ex-row code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--ink-2); text-align: right; }
.copy {
  border: 1px solid var(--line-strong); background: #fff; border-radius: 6px; padding: 3px 9px;
  font-size: 12px; font-weight: 600;
}
.copy:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.copy.is-done { background: var(--good); border-color: var(--good); color: #fff; }
.ex-tip { font-size: 13px; background: var(--warn-bg); color: #5C4200; padding: 10px 12px; border-radius: var(--r-sm); margin: 10px 0 0; }
.ex-tip b { color: #3F2D00; }
.ex-kit {
  display: flex; gap: 14px; align-items: center; padding: 14px; margin-bottom: 22px;
  border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--paper);
}
.ex-kit p { margin: 0; font-size: 13px; color: var(--ink-2); }
.ex-kit strong { display: block; font-size: 14px; color: var(--ink); }
.ex-kit .tag { font-size: 10px; font-weight: 700; background: var(--brand); color: #fff; padding: 1px 6px; border-radius: 99px; margin-left: 4px; vertical-align: 2px; }
.code-box { position: relative; }
.code-box pre {
  margin: 0; max-height: 380px; overflow: auto; padding: 14px; border-radius: var(--r);
  background: var(--ink); color: #EDE9DF; font-size: 12px; line-height: 1.55;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; white-space: pre-wrap; word-break: break-word;
}
.code-box .copy { position: absolute; top: 10px; right: 10px; }

.download-list { display: grid; gap: 8px; }
.dl { display: block; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.dl:hover { border-color: var(--ink); }
.dl strong { display: block; font-size: 14px; }
.dl span { font-size: 13px; color: var(--muted); }

.promo { margin: 8px 0 24px; padding: 20px; border-radius: 16px; background: #FDE7DE; }
.promo-eyebrow { margin: 0; font-size: 12px; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .06em; }
.promo-title { font-family: var(--f-display); font-size: 19px; font-weight: 700; line-height: 1.25; margin: 4px 0 8px; }
.promo p:not([class]) { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }

/* ---------- Voorbeeld-podium ---------- */
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--paper); }
.stage-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.stage-bar #device-seg { margin-left: auto; }
.stage-scroll { flex: 1; overflow: auto; padding: 20px; }
.device {
  margin: 0 auto; max-width: 1180px; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 12px 40px rgba(28,27,24,.08);
  transition: max-width .3s ease;
}
.device[data-device=tablet] { max-width: 800px; }
.device[data-device=mobile] { max-width: 390px; border-radius: 28px; box-shadow: 0 0 0 8px var(--ink), 0 12px 40px rgba(28,27,24,.15); margin-top: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 600; font-size: 14px;
  transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.mobile-switch { display: none; }

/* ---------- Responsief ---------- */
@media (max-width: 1100px) {
  .topbar-tag { display: none; }
}
@media (max-width: 860px) {
  :root { --topbar-h: 58px; }
  .topbar { padding: 0 16px; gap: 10px; }
  .topbar-actions .btn-ghost { display: none; }
  .btn-primary#btn-goto-export { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .mobile-switch {
    display: flex; position: sticky; top: var(--topbar-h); z-index: 15; gap: 4px; padding: 8px 16px;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .mobile-switch button { flex: 1; min-height: 38px; border: 0; border-radius: 99px; background: transparent; font-weight: 600; color: var(--muted); }
  .mobile-switch button[aria-selected=true] { background: var(--ink); color: #fff; }
  .app { display: block; height: auto; }
  .panel { border-right: 0; }
  .panel-body { overflow: visible; padding: 16px 16px 4px; }
  .panel-foot { padding: 12px 16px 24px; }
  .steps { position: sticky; top: calc(var(--topbar-h) + 55px); z-index: 10; background: #fff; }
  .app[data-pane=panel] .stage { display: none; }
  .app[data-pane=preview] .panel { display: none; }
  .stage-bar { padding: 10px 16px; }
  .stage-bar #device-seg { display: none; }
  .stage-scroll { padding: 12px; overflow: visible; }
  .device, .device[data-device] { max-width: none; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); margin-top: 0; }
  .palette { grid-template-columns: repeat(2, 1fr); }
  .preset-grid { grid-template-columns: repeat(5, 1fr); }
  .shape-grid { grid-template-columns: repeat(3, 1fr); }
  .accent-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .brand span { font-size: 18px; }
  .ex-row { grid-template-columns: 22px 1fr auto; }
  .ex-row code { display: none; }
}

/* ================= Voorbeeldsite (.pv) =================
   Alle waarden komen uit CSS-variabelen die app.js zet. */
.pv {
  container: pv / inline-size;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
}
.pv h1, .pv h2, .pv h3, .pv h4 { font-family: var(--f-head); font-weight: var(--fw-head); color: var(--c-heading); margin: 0; letter-spacing: -.01em; }
.pv h1 { font-size: var(--fs-h1); line-height: 1.1; }
.pv h2 { font-size: var(--fs-h2); line-height: 1.15; }
.pv h3 { font-size: var(--fs-h4); line-height: 1.25; }
.pv p { margin: 0; }
.pv a { color: var(--c-link); }
.pv-wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px; }

.pv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--btn-py) var(--btn-px); border-radius: var(--r-btn);
  font-family: var(--f-body); font-weight: 600; font-size: var(--fs-body); line-height: 1.2;
  text-transform: var(--btn-case); letter-spacing: var(--btn-track);
  border: 2px solid var(--c-primary); background: var(--c-primary); color: var(--c-on-primary);
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.pv-btn:hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); }
.pv-btn.is-2 { background: var(--b2-bg); border-color: var(--b2-border); color: var(--b2-color); }
.pv-btn.is-2:hover { background: var(--b2-hover-bg); border-color: var(--b2-hover-border); color: var(--b2-hover-color); }
.pv-btn.is-sm { padding: calc(var(--btn-py) * .7) calc(var(--btn-px) * .7); font-size: var(--fs-small); }

.pv-nav { border-bottom: 1px solid var(--c-border); background: var(--c-white); }
.pv-nav .pv-wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.pv-logo { font-family: var(--f-head); font-weight: var(--fw-head); font-size: calc(var(--fs-body) * 1.3); color: var(--c-heading); display: flex; align-items: center; gap: 10px; }
.pv-logo i { width: 28px; height: 28px; border-radius: min(var(--r-card), 10px); background: var(--c-primary); position: relative; overflow: hidden; }
.pv-logo i::after { content: ''; position: absolute; width: 14px; height: 14px; right: -3px; bottom: -3px; border-radius: 50%; background: var(--c-accent); }
.pv-logo img { max-height: 40px; max-width: 160px; }
.pv-links { display: flex; gap: 24px; margin-left: auto; font-size: var(--fs-small); font-weight: 500; }
.pv-links span { color: var(--c-heading); }
.pv-links span:first-child { color: var(--c-link); }
.pv-burger { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: var(--r-btn); border: 1px solid var(--c-border); position: relative; }
.pv-burger::before { content: ''; position: absolute; left: 11px; right: 11px; top: 14px; height: 10px; border-top: 2px solid var(--c-heading); border-bottom: 2px solid var(--c-heading); }
.pv-burger::after { content: ''; position: absolute; left: 11px; right: 11px; top: 19px; border-top: 2px solid var(--c-heading); }

.pv-hero { padding: 88px 0 96px; }
.pv-hero .pv-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pv-eyebrow {
  display: inline-block; font-size: var(--fs-small); font-weight: 600; margin-bottom: 18px;
  color: var(--c-on-accent-soft); background: var(--c-accent-soft); padding: 4px 12px; border-radius: 99px;
}
.pv-hero h1 { margin-bottom: 20px; }
.pv-lead { font-size: var(--fs-large); max-width: 34em; margin-bottom: 32px !important; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.pv-art { position: relative; aspect-ratio: 5 / 4.4; border-radius: var(--r-card); background: var(--c-light); overflow: hidden; }
.pv-art .a1 { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--c-primary); left: -8%; bottom: -14%; }
.pv-art .a2 { position: absolute; width: 34%; aspect-ratio: 1; border-radius: var(--r-card); background: var(--c-accent); right: 12%; top: 14%; transform: rotate(12deg); }
.pv-art .a3 { position: absolute; width: 44%; height: 30%; border-radius: var(--r-card); background: var(--c-white); right: 8%; bottom: 12%; box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pv-art .a3 b { display: block; height: 8px; border-radius: 99px; background: var(--c-border); }
.pv-art .a3 b:first-child { width: 60%; background: var(--c-heading); }
.pv-art .a3 b:last-child { width: 40%; background: var(--c-primary); }
.pv-art .a4 { position: absolute; width: 16%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--c-heading); left: 18%; top: 14%; opacity: .8; }

.pv-section { padding: 88px 0; background: var(--c-light); }
.pv-section-head { max-width: 40em; margin-bottom: 40px; }
.pv-kicker { display: block; font-size: var(--fs-small); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-link); margin-bottom: 10px; }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pv-card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.pv-icon { width: 48px; height: 48px; border-radius: min(var(--r-card), 14px); background: var(--c-primary-soft); display: grid; place-items: center; margin-bottom: 6px; }
.pv-icon::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--c-primary); }
.pv-card .pv-more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: var(--fs-small); text-decoration: none; }

.pv-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pv-product { display: flex; flex-direction: column; gap: 6px; }
.pv-product-img { aspect-ratio: 4 / 5; border-radius: var(--r-card); background: var(--c-white); border: 1px solid var(--c-border); position: relative; overflow: hidden; margin-bottom: 8px; }
.pv-product-img::before { content: ''; position: absolute; left: 30%; right: 30%; bottom: 12%; height: 26%; background: var(--c-dark); border-radius: 0 0 calc(var(--r-card) * .6) calc(var(--r-card) * .6); }
.pv-product-img::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 36%; height: 40%; background: var(--c-primary); border-radius: 50% 50% 40% 40%; }
.pv-product-img span { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 12px; font-weight: 700; background: var(--c-accent); color: var(--c-on-accent); padding: 2px 10px; border-radius: 99px; }
.pv-product h3 { font-size: var(--fs-h6); }
.pv-price { font-weight: 700; color: var(--c-heading); }
.pv-product .pv-btn { margin-top: 6px; }

.pv-quote { padding: 88px 0; }
.pv-quote .pv-wrap { max-width: 820px; text-align: center; }
.pv-quote blockquote { margin: 0 0 20px; font-family: var(--f-head); font-weight: var(--fw-head); font-size: var(--fs-h3); line-height: 1.3; color: var(--c-heading); }
.pv-stars { color: var(--c-accent-ink); letter-spacing: 3px; margin-bottom: 16px; font-size: 18px; }
.pv-quote cite { font-style: normal; font-size: var(--fs-small); color: var(--c-text); }

.pv-cta { padding: 0 0 88px; }
.pv-cta-box { background: var(--c-dark); border-radius: var(--r-card); padding: 56px; display: flex; align-items: center; gap: 32px; justify-content: space-between; }
.pv-cta-box h2 { color: var(--c-on-dark); font-size: var(--fs-h3); margin-bottom: 8px; }
.pv-cta-box p { color: var(--c-on-dark-muted); }
.pv-cta-box .pv-btn { background: var(--c-cta-bg); border-color: var(--c-cta-bg); color: var(--c-on-cta); flex: none; }

.pv-form { display: flex; gap: 10px; flex-wrap: wrap; }
.pv-input { padding: var(--btn-py) 16px; border-radius: var(--r-btn); border: 1px solid var(--c-border); background: var(--c-white); color: var(--c-text); font-family: var(--f-body); font-size: var(--fs-body); min-width: 220px; }

.pv-footer { background: var(--c-white); border-top: 1px solid var(--c-border); padding: 40px 0; font-size: var(--fs-small); }
.pv-footer .pv-wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pv-footer a { color: var(--c-text); text-decoration: none; margin-left: 20px; }

/* Voorbeeld reageert op de breedte van het "apparaat", niet op het scherm */
@container pv (max-width: 900px) {
  .pv-wrap { padding: 0 28px; }
  .pv-hero .pv-wrap { grid-template-columns: 1fr; gap: 40px; }
  .pv-art { aspect-ratio: 16 / 9; }
  .pv-products { grid-template-columns: repeat(2, 1fr); }
  .pv-cta-box { flex-direction: column; align-items: flex-start; padding: 40px; }
  .pv-links { display: none; }
  .pv-burger { display: block; }
  .pv-nav .pv-btn { display: none; }
}
@container pv (max-width: 600px) {
  .pv-wrap { padding: 0 20px; }
  .pv-nav .pv-wrap { min-height: 64px; }
  .pv-hero { padding: 48px 0 56px; }
  .pv-section, .pv-quote { padding: 56px 0; }
  .pv-cta { padding-bottom: 56px; }
  .pv-cards { grid-template-columns: 1fr; }
  .pv-products { gap: 14px; }
  .pv-cta-box { padding: 28px 24px; }
  .pv-actions .pv-btn { width: 100%; }
  .pv-card { padding: 22px; }
  .pv-footer a { margin: 0 16px 0 0; }
  .pv-input { min-width: 0; width: 100%; }
}

/* ================= Stijlgids ================= */
.sg { padding: 48px; font-family: var(--f-body); color: var(--c-text); }
.sg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 2px solid var(--c-heading); padding-bottom: 20px; margin-bottom: 36px; }
.sg-head h1 { font-family: var(--f-head); font-weight: var(--fw-head); color: var(--c-heading); font-size: 40px; line-height: 1.1; margin: 0; }
.sg-head p { margin: 0; font-size: 13px; color: var(--c-text); text-align: right; }
.sg-head img { max-height: 56px; max-width: 180px; }
.sg h2 { font-family: var(--f-ui); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #736E63; margin: 0 0 16px; }
.sg-section { margin-bottom: 44px; break-inside: avoid; }
.sg-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sg-color { border: 1px solid #E4DFD4; border-radius: 12px; overflow: hidden; break-inside: avoid; }
.sg-color div { height: 86px; display: flex; align-items: flex-end; padding: 10px 12px; font: 700 12px var(--f-ui); }
.sg-color p { margin: 0; padding: 10px 12px; font: 12px/1.4 var(--f-ui); color: #45423B; }
.sg-color p strong { display: block; font-size: 13px; color: #1C1B18; }
.sg-color code { font-family: ui-monospace, Menlo, monospace; }
.sg-type { display: grid; gap: 4px; }
.sg-type-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #EEE9DF; }
.sg-type-row small { font: 12px/1.4 var(--f-ui); color: #736E63; }
.sg-type-row small b { display: block; color: #1C1B18; font-size: 13px; }
.sg-type-row .s { color: var(--c-heading); font-family: var(--f-head); font-weight: var(--fw-head); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-type-row .s.body { font-family: var(--f-body); font-weight: 400; color: var(--c-text); white-space: normal; line-height: 1.6; }
.sg-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sg-font { border: 1px solid #E4DFD4; border-radius: 12px; padding: 18px; }
.sg-font .big { font-size: 48px; line-height: 1; color: var(--c-heading); margin-bottom: 10px; }
.sg-font p { margin: 0; font: 12px/1.5 var(--f-ui); color: #45423B; }
.sg-font p strong { font-size: 15px; color: #1C1B18; display: block; }
.sg-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sg-foot { font: 12px var(--f-ui); color: #736E63; border-top: 1px solid #E4DFD4; padding-top: 14px; }
@container pv (max-width: 600px) {
  .sg { padding: 24px 20px; }
  .sg-head { flex-direction: column; align-items: flex-start; }
  .sg-head p { text-align: left; }
  .sg-head h1 { font-size: 30px; }
  .sg-colors, .sg-fonts { grid-template-columns: 1fr 1fr; }
  .sg-type-row { grid-template-columns: 80px 1fr; }
}

/* ================= Afdrukken (stijlgids als PDF) ================= */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .topbar, .mobile-switch, .panel, .stage-bar, .toast { display: none !important; }
  .app { display: block; height: auto; }
  .app .stage { display: block !important; }
  .stage, .stage-scroll { overflow: visible; padding: 0; background: #fff; }
  .device, .device[data-device] { max-width: none; box-shadow: none; border-radius: 0; margin: 0; }
  .sg { padding: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
