/* Boekje van jou - basisstijl */
:root {
  --paper: #fbf6ec;
  --paper-2: #f3ebdb;
  --ink: #212639;
  --ink-soft: #5a5f74;
  --coral: #e86b4c;
  --coral-dark: #c9532f;
  --sun: #f5c34b;
  --sage: #8fb6a0;
  --sky: #9ec5e8;
  --line: rgba(33, 38, 57, 0.12);
  --radius: 18px;
  --shadow: 0 18px 40px -20px rgba(33, 38, 57, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-variation-settings: "SOFT" 100, "WONK" 1; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); margin-bottom: 0.8rem; }
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section.alt { background: var(--paper-2); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }
.hidden { display: none !important; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 800; font-size: 1rem;
  padding: 0.9rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--coral); color: #fff; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px -12px rgba(232, 107, 76, 0.7);
}
.btn:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.big { font-size: 1.1rem; padding: 1.1rem 2.1rem; }
.btn.small { font-size: 0.9rem; padding: 0.55rem 1.1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 236, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.logo .mark { width: 30px; height: 30px; border-radius: 8px 12px 12px 8px; background: linear-gradient(135deg, var(--coral), var(--sun)); box-shadow: inset -6px 0 0 rgba(255,255,255,0.35); }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { text-decoration: none; font-weight: 700; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav .link { display: none; } }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 6vw, 4rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; align-items: center; }
.hero-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 1rem; }

/* Boek-mockup (CSS) */
.book-stack { position: relative; aspect-ratio: 1 / 1; width: min(460px, 100%); justify-self: center; }
.book {
  position: absolute; inset: 8% 12%; border-radius: 6px 16px 16px 6px;
  background: var(--sky); box-shadow: var(--shadow), inset 10px 0 0 rgba(0,0,0,0.08);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem; color: var(--ink);
  transform: rotate(-4deg);
}
.book.two { inset: 4% 8% 12% 16%; background: var(--sun); transform: rotate(5deg); z-index: -1; }
.book.three { inset: 14% 4% 2% 20%; background: var(--sage); transform: rotate(-9deg); z-index: -2; }
.book .title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; background: var(--paper); padding: 0.6rem 0.9rem; border-radius: 10px; display: inline-block; align-self: flex-start; }
.book .face { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); width: 38%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff3e3, #f1c9a5); box-shadow: 0 10px 20px -10px rgba(0,0,0,0.3); }
.book .face::before, .book .face::after { content: ""; position: absolute; top: 42%; width: 9%; height: 9%; border-radius: 50%; background: var(--ink); }
.book .face::before { left: 32%; } .book .face::after { right: 32%; }
.book .smile { position: absolute; top: 60%; left: 50%; width: 30%; height: 15%; border-bottom: 3px solid var(--ink); border-radius: 0 0 50% 50%; transform: translateX(-50%); }

/* Kaarten en grids */
.grid { display: grid; gap: 1.4rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.four { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid.four, .grid.two { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); }
.card.soft { background: var(--paper-2); border: none; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; }

/* Thema-tegels */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.9rem; }
.tile {
  position: relative; border-radius: 14px; padding: 1rem; min-height: 120px; display: flex; align-items: flex-end;
  font-weight: 800; color: var(--ink); text-decoration: none; overflow: hidden; border: 2px solid transparent; cursor: pointer;
  background: var(--tile, var(--paper-2)); transition: transform 0.15s ease, border-color 0.15s ease;
}
.tile:hover { transform: translateY(-2px); }
.tile.selected { border-color: var(--ink); }
.tile .dot { position: absolute; top: 0.8rem; right: 0.8rem; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }

/* Prijzen */
.price-card { position: relative; background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); }
.price-card.featured { border: 2px solid var(--coral); }
.price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; }
.price s { color: var(--ink-soft); font-size: 1.4rem; margin-right: 0.4rem; }
.badge { display: inline-block; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 0.75rem; padding: 0.3rem 0.7rem; border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase; }
.badge.coral { background: var(--coral); color: #fff; }
.check-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.check-list li { padding-left: 1.6rem; position: relative; margin-bottom: 0.5rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.9em; height: 0.5em; border-left: 3px solid var(--sage); border-bottom: 3px solid var(--sage); transform: rotate(-45deg); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--coral); }
details[open] summary::after { content: "\2013"; }
details p { margin: 0.6rem 0 0; color: var(--ink-soft); }

/* Formulieren */
label { display: block; font-weight: 800; font-size: 0.92rem; margin-bottom: 0.35rem; }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; font: inherit; padding: 0.8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 1.1rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.error { color: var(--coral-dark); font-weight: 700; margin: 0.6rem 0; }

/* Wizard */
.wizard { max-width: 780px; margin-inline: auto; }
.steps { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.steps span { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.steps span.on { background: var(--coral); }
.panel { display: none; }
.panel.active { display: block; }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

.character { display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1rem; }
@media (max-width: 560px) { .character { grid-template-columns: 1fr; } }
.photo-drop {
  aspect-ratio: 1; border-radius: 14px; border: 2px dashed var(--line); background: var(--paper-2);
  display: grid; place-items: center; text-align: center; font-size: 0.8rem; font-weight: 800; color: var(--ink-soft); cursor: pointer; overflow: hidden; position: relative;
}
.photo-drop img { width: 100%; height: 100%; object-fit: cover; }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.character .remove { background: none; border: none; color: var(--ink-soft); font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }
.character-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.8rem; }
.option { position: relative; border: 2px solid var(--line); border-radius: 14px; padding: 0.9rem; cursor: pointer; background: #fff; font-weight: 700; }
.option.selected { border-color: var(--coral); background: #fff7f3; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .sub { display: block; font-weight: 500; font-size: 0.82rem; color: var(--ink-soft); }
.option .swatch { height: 46px; border-radius: 8px; margin-bottom: 0.6rem; background: var(--sw, var(--paper-2)); }

.summary dl { display: grid; grid-template-columns: 140px 1fr; gap: 0.4rem 1rem; margin: 0; }
.summary dt { font-weight: 800; color: var(--ink-soft); }
.summary dd { margin: 0; }

/* Voortgang en viewer */
.progress { max-width: 720px; margin-inline: auto; text-align: center; }
.bar { height: 12px; border-radius: 12px; background: var(--line); overflow: hidden; margin: 1.2rem 0; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--sun)); width: 0; transition: width 0.6s ease; }
.stage-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.2rem; font-weight: 700; color: var(--ink-soft); font-size: 0.95rem; }
.stage-list span.done { color: var(--sage); }
.stage-list span.now { color: var(--coral); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.7rem; margin-top: 2rem; }
.thumbs div { aspect-ratio: 1; border-radius: 10px; background: var(--paper-2); overflow: hidden; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.viewer { max-width: 560px; margin-inline: auto; }
.page-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.page-card .img { aspect-ratio: 1; background: var(--paper-2); }
.page-card .img img { width: 100%; height: 100%; object-fit: cover; }
.page-card .txt { padding: 1.4rem 1.8rem 1.6rem; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.55; text-align: center; min-height: 120px; }
.page-card .txt.title { font-size: 1.7rem; font-weight: 700; }
.viewer-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.viewer-nav .count { font-weight: 800; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding-block: 3rem 2rem; margin-top: 2rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer .credit { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.2rem; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* Reveal: alleen actief als JS de klasse html.anim zet */
html.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.anim .reveal.is-revealed { opacity: 1; transform: none; }

/* Lange tekstpagina's */
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
