:root {
  --bg: #f6f3ee;
  --paper: #ffffff;
  --ink: #1d1f22;
  --muted: #6b6f76;
  --line: #e4dfd6;
  --accent: #e8630a;
  --accent-soft: #fde9da;
  --ok: #1f8a4c;
  --warn: #b5470b;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(0,0,0,.025) 23px 24px);
  background-color: var(--bg);
  line-height: 1.55;
}
a { color: var(--accent); }

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

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(246,243,238,.9);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--ink); font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.logo .nozzle { width: 22px; height: 22px; display: inline-block; background: var(--accent); clip-path: polygon(15% 0, 85% 0, 85% 45%, 62% 45%, 50% 100%, 38% 45%, 15% 45%); }
nav a { color: var(--ink); text-decoration: none; margin-left: 22px; font-weight: 500; }
nav a:hover, nav a.active { color: var(--accent); }

/* Hero */
.hero { padding: 72px 0 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 26px; }
.layers { aspect-ratio: 1; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); position: relative; overflow: hidden; }
.layers span { position: absolute; left: 18%; right: 18%; height: 6px; border-radius: 3px; background: var(--accent); opacity: .85; }

.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 999px; font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* Sections */
section { padding: 40px 0; }
h2 { font-size: 1.7rem; letter-spacing: -.02em; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 28px; }

/* Printers */
.printers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.card .spec { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--warn); font-weight: 600; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item .img { aspect-ratio: 4/3; background: #ece7df; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.item .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item .body { padding: 14px 16px 16px; }
.item h3 { margin: 0 0 4px; font-size: 1rem; }
.item .meta { font-family: var(--mono); font-size: .78rem; color: var(--muted); }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px; color: var(--muted); font-size: .9rem; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 36px 0; }
.drop {
  border: 2px dashed #cfc7ba; border-radius: var(--radius); background: var(--paper);
  min-height: 380px; display: grid; place-items: center; text-align: center; position: relative; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop.over { border-color: var(--accent); background: #fff8f2; }
.drop .hint strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.drop .hint span { color: var(--muted); font-size: .92rem; }
.drop canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--radius); }
.drop.loaded { cursor: grab; border-style: solid; border-color: var(--line); }
.drop.loaded .hint { display: none; }
.viewer-note { font-size: .8rem; color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1.5px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem; }
.seg button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
select, input[type=number], input[type=text], textarea { width: 100%; font: inherit; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
textarea { min-height: 70px; resize: vertical; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.stat { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.stat .k { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-family: var(--mono); font-size: 1.05rem; font-weight: 600; }
.price { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.price .amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.price small { color: var(--muted); }
.fit { font-size: .88rem; margin: 6px 0 0; }
.fit .yes { color: var(--ok); font-weight: 600; }
.fit .no { color: var(--warn); font-weight: 600; }
.disclaimer { font-size: .8rem; color: var(--muted); margin-top: 14px; }

@media (max-width: 820px) {
  .hero, .calc { grid-template-columns: 1fr; }
  .layers { max-width: 320px; }
  nav a { margin-left: 14px; }
}

/* Printers uitgebreid */
.machines { display: grid; gap: 18px; }
.machine { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.machine .art { width: 190px; height: 190px; background: #f1ede6; border-radius: 12px; }
.machine h3 { margin: 0 0 6px; font-size: 1.2rem; }
.machine .tag { font-size: .75rem; font-weight: 600; color: var(--warn); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.machine p { margin: 0 0 12px; color: var(--muted); }
.specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 18px; }
.specs li { font-family: var(--mono); font-size: .85rem; }
.specs li span { display: block; font-family: var(--sans); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
/* Prijzen */
.pricing { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 26px; min-width: 190px; }
.price-card .big { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.price-card .what { color: var(--muted); }
.pricing .plus { font-size: 2rem; font-weight: 700; color: var(--muted); }
.note { margin-top: 18px; color: var(--muted); max-width: 46em; }
@media (max-width: 640px) {
  .machine { grid-template-columns: 1fr; }
  .machine .art { width: 140px; height: 140px; }
  .specs { grid-template-columns: 1fr; }
}
