/* pacto.Preview: huisstijl uit Bubble (Inter, amber #F9BE1A, tekst #1A1A1A) */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); }
:root {
  --primary: #f9be1a; --primary-dark: #dca114; --text: #1a1a1a; --muted: #6b6b6b; --line: #e6e6e6;
  --bg: #ffffff; --soft: #f6f6f4; --danger: #b0200c; --success: #1e6c30; --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; }
.hidden { display: none !important; }

/* knoppen en velden */
.btn { appearance: none; border: 0; border-radius: 999px; padding: .85em 1.4em; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--primary); color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: .5em; text-decoration: none; }
.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.secondary { background: var(--soft); } .btn.secondary:hover { background: #ececea; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.block { width: 100%; } .btn.sm { padding: .5em .9em; font-size: .875rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .35em; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; padding: .75em .9em; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary); border-color: transparent; }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 1rem; } .hint { font-size: .8rem; color: var(--muted); margin-top: .3em; }
.error { color: var(--danger); font-size: .9rem; margin: .5em 0; }
.row { display: flex; gap: .75rem; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; }
.grid { display: grid; gap: .75rem; } .grid.two { grid-template-columns: 1fr 1fr; }

/* app-shell gebruikersflow */
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 5; }
.logo { font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; }
.logo span { color: var(--primary-dark); }
.iconbtn { background: none; border: 0; padding: 6px; cursor: pointer; border-radius: 8px; font-size: 1.3rem; line-height: 1; }
.iconbtn:hover { background: var(--soft); }
main.view { flex: 1; padding: 22px 18px 110px; }
.footerbar { position: fixed; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); padding: 16px 18px 20px; }
.footerbar .inner { max-width: 484px; margin: 0 auto; display: flex; gap: .6rem; }
.progress-steps { display: flex; gap: 6px; margin: 0 0 18px; }
.progress-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.progress-steps i.on { background: var(--primary); }

/* landing */
.hero { background: var(--soft); border-radius: 20px; padding: 26px 20px; margin-bottom: 22px; }
.badge { display: inline-block; background: #fff; border-radius: 999px; padding: .3em .8em; font-size: .78rem; font-weight: 600; margin-bottom: 12px; }
.steps-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; }
.steps-list b { background: var(--primary); width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; }
.codebox { display: flex; gap: .5rem; } .codebox input { flex: 1; }
.partners { display: flex; gap: 24px; justify-content: center; color: var(--muted); font-size: .8rem; margin-top: 28px; text-align: center; }
.partners strong { display: block; color: var(--text); font-size: .95rem; }

/* keuzekaarten */
.choices { display: grid; gap: 10px; }
.choices.cols2 { grid-template-columns: 1fr 1fr; }
.choice { border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.choice:hover { border-color: #cfcfcf; }
.choice.selected { border-color: var(--primary); background: #fffaf0; }
.choice .title { font-weight: 600; } .choice .sub { font-size: .82rem; color: var(--muted); }
.choice .art { height: 70px; display: grid; place-items: center; margin-bottom: 8px; }
.choice .swatch { height: 64px; border-radius: 10px; margin-bottom: 8px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo { position: relative; border: 3px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--soft); padding: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.selected { border-color: var(--primary); }
.section { margin-bottom: 26px; }
.section > h3 { margin-bottom: .2em; } .section > p { font-size: .9rem; color: var(--muted); margin-bottom: .8em; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; }
.stepper output { font-size: 1.5rem; font-weight: 700; min-width: 2ch; text-align: center; }

/* laden */
.loader { text-align: center; padding-top: 30px; }
.bar { height: 8px; background: var(--soft); border-radius: 8px; overflow: hidden; margin: 22px 0 10px; }
.bar > div { height: 100%; width: 0; background: var(--primary); transition: width .2s linear; }
.spinner { width: 46px; height: 46px; border: 4px solid var(--soft); border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 18px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* voor/na-vergelijker */
.compare { position: relative; border-radius: 14px; overflow: hidden; user-select: none; touch-action: none; background: var(--soft); }
.compare img { width: 100%; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.compare .after img { width: 100%; height: 100%; object-fit: cover; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 6px rgba(0,0,0,.3); }
.compare .handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 38px; height: 38px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; font-size: 1rem; box-shadow: var(--shadow); }
.compare .tag { position: absolute; top: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; padding: .2em .6em; border-radius: 6px; }
.compare .tag.l { left: 10px; } .compare .tag.r { right: 10px; }
.versions { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; }
.versions button { flex: none; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; }
.versions button.on { border-color: var(--primary); } .versions img { width: 100%; height: 100%; object-fit: cover; }
.disclaimer { font-size: .78rem; color: var(--muted); background: var(--soft); padding: 10px 12px; border-radius: 10px; margin: 12px 0; }
.stars { display: flex; gap: 6px; font-size: 2rem; } .stars button { background: none; border: 0; cursor: pointer; color: #d8d8d8; font-size: inherit; padding: 0; }
.stars button.on { color: var(--primary); }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 18px; z-index: 50; }
.modal { background: #fff; border-radius: 18px; padding: 22px; max-width: 440px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: var(--shadow); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: #fff; padding: .7em 1.1em; border-radius: 10px; z-index: 60; font-size: .9rem; }

/* beheer */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.sidebar { border-right: 1px solid var(--line); padding: 18px; background: #fcfcfb; }
.sidebar nav a { display: block; padding: .55em .8em; border-radius: 8px; text-decoration: none; margin-bottom: 2px; }
.sidebar nav a.on, .sidebar nav a:hover { background: var(--soft); }
.admin-main { padding: 26px 32px; max-width: 1200px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pcard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.pcard .cover { aspect-ratio: 16/9; background: var(--soft); } .pcard .cover img { width: 100%; height: 100%; object-fit: cover; }
.pcard .body { padding: 14px; }
.pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: .15em .6em; border-radius: 999px; background: var(--soft); }
.pill.ok { background: #e3f3e6; color: var(--success); } .pill.warn { background: #fff4d6; color: #8a6400; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
tr.click { cursor: pointer; } tr.click:hover { background: #fafafa; }
.thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.upload-slot { aspect-ratio: 4/3; border: 2px dashed var(--line); border-radius: 10px; display: grid; place-items: center; cursor: pointer; position: relative; overflow: hidden; color: var(--muted); font-size: .85rem; background: #fff; }
.upload-slot img { width: 100%; height: 100%; object-fit: cover; }
.upload-slot .x { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; }
.toggle { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 500; }
.toggle input { width: 20px; height: 20px; accent-color: var(--primary-dark); }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: .45em 1em; border-radius: 999px; font: inherit; cursor: pointer; }
.seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); font-weight: 600; }
.auth-wrap { max-width: 400px; margin: 8vh auto; padding: 0 18px; }
@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; } .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { display: flex; gap: 4px; flex-wrap: wrap; } .admin-main { padding: 18px; }
}
.btn { white-space: nowrap; }
.row select { width: auto; min-width: 180px; }
