/* =========================================================================
   Elite Keukens — Foto → Offerte
   Design language: calm, premium, tactile. Elite brand (bordeaux/anthracite)
   with a warm-paper canvas. DM Serif Display for the big moments, Manrope for
   everything else.
   ========================================================================= */

:root {
  --bordeaux: #8c2532;
  --bordeaux-deep: #74202b;
  --bordeaux-2: #7b2f3e;
  --ink: #20262e;
  --ink-soft: #5d646e;
  --ink-faint: #99a0a8;
  --line: #ece8e1;
  --line-strong: #ddd8cf;
  --paper: #f4f1ea;
  --paper-2: #efebe2;
  --card: #ffffff;
  --good: #2e9e6b;
  --good-deep: #2a8a61;
  --shadow-sm: 0 1px 2px rgba(32, 38, 46, 0.04), 0 2px 8px rgba(32, 38, 46, 0.05);
  --shadow-md: 0 4px 14px rgba(32, 38, 46, 0.07), 0 14px 40px rgba(32, 38, 46, 0.08);
  --shadow-lg: 0 10px 30px rgba(32, 38, 46, 0.10), 0 30px 80px rgba(32, 38, 46, 0.12);
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 13px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% -10%, #fbfaf6 0%, var(--paper) 46%, var(--paper-2) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

/* Stage = the centered "sheet" the whole experience lives in */
.stage {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 40px);
}

.sheet {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  position: relative;
}

/* Brand bar */
.brandbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}
.brandbar .mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(150deg, var(--bordeaux) 0%, var(--bordeaux-deep) 100%);
  display: grid; place-items: center; flex: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.brandbar .mark svg { width: 15px; height: 15px; }
.brandbar .brand-logo { height: 19px; width: auto; display: block; }
.brandbar .name {
  font-weight: 800; letter-spacing: 0.2px; font-size: 14.5px;
}
.brandbar .name b { color: var(--bordeaux); font-weight: 800; }
.brandbar .tag {
  margin-left: auto; font-size: 11px; color: var(--ink-faint);
  font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
}

/* Screen container + transitions */
.screens { position: relative; }
.screen { padding: clamp(22px, 6vw, 34px); display: none; }
.screen.active { display: block; animation: screenIn 0.5s var(--ease) both; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Typography */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--bordeaux);
  margin: 0 0 12px;
}
h1.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 8.5vw, 38px); line-height: 1.08;
  letter-spacing: -0.4px; margin: 0 0 14px; color: var(--ink);
}
h1.display em { font-style: italic; color: var(--bordeaux); }
.lead { font-size: 16px; color: var(--ink-soft); margin: 0 0 26px; }
.lead b { color: var(--ink); font-weight: 700; }
.muted { color: var(--ink-soft); }

/* Buttons */
.btn {
  appearance: none; border: none; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 16px;
  border-radius: 4px; padding: 16px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:active { transform: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--bordeaux) 0%, var(--bordeaux-deep) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, var(--shadow-md);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, var(--shadow-lg); }
.btn-ghost {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--paper-2); }
.btn-text {
  background: none; border: none; cursor: pointer;
  -webkit-appearance: none; appearance: none; font-family: var(--sans);
  color: var(--ink-soft); font-weight: 600; font-size: 14px;
  padding: 10px 16px; width: auto; border-radius: 11px;
  transition: color 0.15s, background 0.15s;
}
.btn-text:hover { color: var(--ink); background: var(--paper); }
.btn-text:active { transform: scale(0.97); }
.finelegal { font-size: 11.5px; line-height: 1.5; color: var(--ink-faint); text-align: center; max-width: 400px; margin: 16px auto 4px; }
.finelegal b { color: var(--ink-soft); font-weight: 700; }
.btn .ic { width: 20px; height: 20px; flex: none; }
.btnrow { display: flex; flex-direction: column; gap: 11px; }

/* Intro hero visual */
.hero-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 26px;
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, #2a313a, #20262e);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.96; }
.hero-card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,30,0) 35%, rgba(20,24,30,0.55) 100%);
}
.hero-card .chip {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(6px);
  border-radius: 100px; padding: 7px 13px 7px 10px;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 7px;
  box-shadow: var(--shadow-sm);
}
.hero-card .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(46,158,107,0.2); }

/* Steps list on intro */
.steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 2px; }
.steps li { display: flex; gap: 13px; align-items: flex-start; padding: 9px 0; }
.steps .n {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper); color: var(--bordeaux);
  font-weight: 800; font-size: 13px; display: grid; place-items: center;
  border: 1px solid var(--line-strong);
}
.steps .t { font-size: 14.5px; color: var(--ink-soft); padding-top: 2px; }
.steps .t b { color: var(--ink); font-weight: 700; }

/* ===== Capture: info box (example + tips) ===== */
.infobox { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 18px; overflow: hidden; background: #fff; }
.infobox > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 14px; }
.infobox > summary::-webkit-details-marker { display: none; }
.infobox .i {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--paper); border: 1px solid var(--line-strong); color: var(--bordeaux);
  font-family: var(--serif); font-style: italic; font-size: 14px;
  display: grid; place-items: center;
}
.infobox .su-t { flex: 1; }
.infobox .chev { color: var(--ink-faint); transition: transform 0.2s; }
.infobox[open] .chev { transform: rotate(180deg); }
.infobox .ibody { padding: 2px 16px 16px; display: flex; gap: 14px; }
.example { margin: 0; flex: none; width: 38%; }
.example img { width: 100%; border-radius: 12px; aspect-ratio: 3/4; object-fit: cover; box-shadow: var(--shadow-sm); display: block; }
.example figcaption { text-align: center; }
.example .ok { display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 800; color: var(--good); }
.tiplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-self: center; }
.tiplist li { display: flex; gap: 9px; font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.tiplist .ck { color: var(--good); flex: none; width: 16px; height: 16px; margin-top: 1px; }

/* ===== Capture: uploader ===== */
.uploader { margin-bottom: 4px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.photos.empty { display: block; }
.hidden-input { display: none; }

/* Guide tile (empty state) — also the drop target */
.guide {
  appearance: none; width: 100%; cursor: pointer; font-family: var(--sans);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fbfaf7, #f6f3ec);
  padding: 26px 22px; text-align: center; display: block;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.guide:hover { border-color: var(--bordeaux); }
.guide.dragover {
  border-color: var(--bordeaux); border-style: solid;
  background: linear-gradient(180deg, #fdf6f3, #f8ece7);
  transform: scale(1.01);
}
.guide .frame { width: 84px; height: 84px; margin: 0 auto 14px; position: relative; display: block; }
.guide .frame .reticle { position: absolute; inset: 0; }
.guide .frame .reticle span { position: absolute; width: 18px; height: 18px; border: 2.5px solid var(--bordeaux); }
.guide .frame .reticle span:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.guide .frame .reticle span:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 6px; }
.guide .frame .reticle span:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 6px; }
.guide .frame .reticle span:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 6px; }
.guide .frame .cam { position: absolute; inset: 0; display: grid; place-items: center; }
.guide .frame .cam svg { width: 32px; height: 32px; color: var(--bordeaux); }
.guide .g-t { display: block; font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.guide .g-s { display: block; font-size: 13px; color: var(--ink-soft); }

/* Thumbnails */
.thumb-item { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--paper); animation: popIn 0.3s var(--ease) both; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-item .rm {
  position: absolute; top: 5px; right: 5px; width: 25px; height: 25px; border-radius: 50%;
  background: rgba(20,24,30,0.62); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(3px); transition: background 0.15s;
}
.thumb-item .rm:hover { background: rgba(20,24,30,0.85); }
.thumb-item .rm svg { width: 13px; height: 13px; }
.thumb-item.first::after {
  content: "Overzicht"; position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  color: #fff; background: linear-gradient(transparent, rgba(20,24,30,0.65)); padding: 12px 6px 5px; text-align: center;
}
.photo-count { font-size: 12px; color: var(--ink-faint); font-weight: 600; margin-top: 10px; text-align: center; }

.addrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.addrow .btn { padding: 13px 12px; font-size: 14.5px; }
.addrow .btn .ic { width: 18px; height: 18px; }

/* Visual shot-list — what to photograph */
.shotlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 18px; }
.shot { position: relative; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #fff, #fdfcf9); padding: 13px 13px 12px; display: flex; flex-direction: column; gap: 2px; }
.shot .si { width: 30px; height: 30px; color: var(--bordeaux); margin-bottom: 6px; }
.shot .si svg { width: 100%; height: 100%; display: block; }
.shot b { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.shot small { font-size: 11.5px; color: var(--ink-faint); line-height: 1.3; }
.shot.featured { border-color: rgba(140, 37, 50, 0.28); background: linear-gradient(180deg, #fff, #fdf6f4); }
.shot .tag { position: absolute; top: 11px; right: 11px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: #fff; background: var(--bordeaux); padding: 3px 8px; border-radius: 100px; }

/* Analyzing / magic moment */
.scanwrap { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: #1b2026; margin-bottom: 22px; box-shadow: var(--shadow-md); }
.scanwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanwrap .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,30,0.15), rgba(20,24,30,0.35)); }
.scanwrap .beam {
  position: absolute; left: 0; right: 0; height: 38%;
  background: linear-gradient(180deg, rgba(140,37,50,0) 0%, rgba(217,90,105,0.0) 40%, rgba(255,210,170,0.18) 78%, rgba(255,255,255,0.55) 100%);
  border-bottom: 2px solid rgba(255,255,255,0.85);
  filter: blur(0.3px);
  animation: sweep 2.1s var(--ease-soft) infinite;
}
@keyframes sweep {
  0%   { transform: translateY(-110%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(285%); opacity: 0; }
}
.scanwrap .grid-ov {
  position: absolute; inset: 0; opacity: 0.25;
  background-image: linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
}
.scanwrap .recticorners span { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255,255,255,0.9); }
.scanwrap .recticorners span:nth-child(1){ top:12px; left:12px; border-right:none;border-bottom:none;}
.scanwrap .recticorners span:nth-child(2){ top:12px; right:12px; border-left:none;border-bottom:none;}
.scanwrap .recticorners span:nth-child(3){ bottom:12px; left:12px; border-right:none;border-top:none;}
.scanwrap .recticorners span:nth-child(4){ bottom:12px; right:12px; border-left:none;border-top:none;}

.analyze-status { text-align: center; }
.analyze-status .spin {
  width: 30px; height: 30px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--bordeaux);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.analyze-status .step { font-size: 16px; font-weight: 700; min-height: 24px; transition: opacity 0.3s; }
.analyze-status .sub { font-size: 13px; color: var(--ink-faint); margin-top: 4px; }

/* Reveal observation pills (stream in) — min-height reserved so the sheet doesn't jump */
.obs-stream { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 16px; min-height: 64px; align-content: flex-start; }
.obs-pill {
  font-size: 12px; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong);
  padding: 6px 11px; border-radius: 100px;
  animation: popIn 0.45s var(--ease) both; height: fit-content;
}
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }

/* Fill-in-postcode during loading */
.loadfield { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.loadfield > label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }

/* ===== Review screen ===== */
.review-photos { margin-bottom: 16px; }
.review-photos .main { width: 100%; border-radius: var(--r-md); aspect-ratio: 4/3; object-fit: cover; object-position: center; display: block; box-shadow: var(--shadow-sm); }
.review-photos .thumbs { display: flex; gap: 8px; margin-top: 8px; }
.review-photos .thumbs img { width: 56px; height: 56px; border-radius: 11px; object-fit: cover; box-shadow: var(--shadow-sm); }

.review-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 2px 0 10px; }
.review-head .htext .k { font-size: 12px; font-weight: 700; color: var(--bordeaux); letter-spacing: 0.4px; text-transform: uppercase; }
.review-head .htext .v { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.seen { font-size: 15px; color: var(--ink); margin: 0 0 18px; }
.confidence {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px;
  color: var(--ink-faint); font-weight: 600; flex: none;
}
.confidence .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.confidence.gemiddeld .dot { background: #e0a23a; }
.confidence.laag .dot { background: #d2693f; }

/* Price card — light, clean, clear */
.pricecard {
  border-radius: var(--r-md); padding: 28px 24px; text-align: center;
  background: linear-gradient(180deg, #ffffff, #fbfaf6);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.pricecard .plabel { font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-faint); }
.pricecard .plabel .incl { font-weight: 600; }
.pricecard .amount { font-family: var(--serif); font-size: 60px; line-height: 1; letter-spacing: -1.2px; color: var(--ink); margin: 10px 0 5px; }
.pricecard .vat { font-size: 12.5px; color: var(--ink-faint); }
.pricecard .discount {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 16px;
  background: rgba(46,158,107,0.10); border: 1px solid rgba(46,158,107,0.26);
  border-radius: 16px; padding: 10px 18px;
}
.pricecard .discount .d-amount { font-size: 23px; font-weight: 800; color: var(--good); letter-spacing: -0.3px; white-space: nowrap; flex: none; }
.pricecard .discount .d-note { font-size: 12px; font-weight: 600; color: var(--good-deep); text-align: left; line-height: 1.25; }
.pricecard .discount .d-note b { font-weight: 800; }
.pricecard .price-note { font-size: 12px; color: var(--ink-faint); margin-top: 11px; line-height: 1.45; }

/* Field groups */
.section-title { font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-faint); margin: 6px 0 12px; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.field .help { font-weight: 500; color: var(--ink-faint); font-size: 12px; }
.field2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.input, .select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 13px 14px; transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2399a0a8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input:focus, .select:focus { outline: none; border-color: var(--bordeaux); box-shadow: 0 0 0 3px rgba(140,37,50,0.12); }
.input.err, .select.err { border-color: #d2693f; box-shadow: 0 0 0 3px rgba(210,105,63,0.12); }
textarea.grow { resize: none; overflow: hidden; min-height: 48px; line-height: 1.5; font-family: var(--sans); }

/* Stepper number control */
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 46px; height: 46px; flex: none; border-radius: 13px; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink);
  font-size: 22px; font-weight: 600; line-height: 1; display: grid; place-items: center;
  transition: background 0.12s, transform 0.1s, border-color 0.12s;
}
.stepper button:hover { background: var(--paper); border-color: var(--bordeaux); color: var(--bordeaux); }
.stepper button:active { transform: scale(0.94); }
.stepper input {
  flex: 1; text-align: center; font-size: 18px; font-weight: 800;
  border: 1.5px solid var(--line-strong); border-radius: 13px; padding: 11px; color: var(--ink);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; border-color: var(--bordeaux); box-shadow: 0 0 0 3px rgba(140,37,50,0.12); }

/* Range with value bubble */
.rangewrap { display: flex; align-items: center; gap: 14px; }
.rangewrap input[type=range] { flex: 1; accent-color: var(--bordeaux); height: 4px; }
.rangewrap .val { font-weight: 800; font-size: 16px; min-width: 56px; text-align: right; }

/* Custom checkbox */
.checkbox { position: relative; width: 24px; height: 24px; flex: none; }
.checkbox input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.checkbox .box { position: absolute; inset: 0; border: 2px solid var(--line-strong); border-radius: 7px; background: #fff; transition: background 0.15s, border-color 0.15s; pointer-events: none; }
.checkbox input:checked + .box { background: var(--bordeaux); border-color: var(--bordeaux); }
.checkbox .box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform 0.15s var(--ease); }
.checkbox input:checked + .box::after { transform: rotate(45deg) scale(1); }

/* Opt-in upsell cards */
.optin { border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 12px; overflow: hidden; background: #fff; transition: border-color 0.18s, box-shadow 0.18s; }
.optin.on { border-color: rgba(140,37,50,0.35); box-shadow: 0 0 0 3px rgba(140,37,50,0.05); }
.optin-head { display: flex; align-items: center; gap: 12px; padding: 15px 16px; cursor: pointer; }
.optin-head .ttl { flex: 1; font-size: 15px; font-weight: 700; }
.optin-body { padding: 4px 16px 16px; }
.subcheck { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: 14px; font-weight: 600; margin-top: 8px; }
.mini { font-size: 12px; color: var(--ink-faint); margin: 8px 0 0; line-height: 1.5; }
.ft-note { font-size: 12.5px; color: var(--ink-soft); margin: 10px 0 0; line-height: 1.5; padding: 10px 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; }
.ft-note b { color: var(--ink); font-weight: 800; }
.toofar { color: #c0392b; font-weight: 700; }
.mini b { color: var(--ink-soft); font-weight: 800; }

/* Segmented material slider */
.segslider { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 4px; }
.segslider .seg { background: none; border: none; cursor: pointer; font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink-soft); padding: 11px 6px; border-radius: 9px; transition: color 0.2s, background 0.2s, box-shadow 0.2s; }
.segslider .seg.active { color: var(--bordeaux); background: #fff; box-shadow: var(--shadow-sm); }

/* Front-type chooser with mini animations */
.fronttypes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ft { background: #fff; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 12px 6px 11px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; transition: border-color 0.15s, background 0.15s; }
.ft.active { border-color: var(--bordeaux); background: rgba(140,37,50,0.05); }
.ft-t { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.ft-s { font-size: 10px; color: var(--ink-faint); line-height: 1.25; }
.ft-anim { width: 42px; height: 48px; display: grid; place-items: center; margin-bottom: 2px; }
.ft-anim .door { width: 34px; height: 44px; border-radius: 5px; background: linear-gradient(180deg, #f1ede5, #e7e1d6); border: 1.5px solid var(--line-strong); position: relative; overflow: hidden; transition: border-color 0.2s; }
.ft.active .ft-anim .door { border-color: var(--bordeaux); }
.ft-nietvlak .door .inner { position: absolute; inset: 5px; border: 1.5px solid var(--line-strong); border-radius: 3px; transition: border-color 0.2s; }
.ft.active .ft-nietvlak .door .inner { border-color: var(--bordeaux); }
.ft-jtype .door .grip { position: absolute; top: 0; left: 0; right: 0; height: 9px; background: var(--paper); border-bottom: 1.5px solid var(--line-strong); border-radius: 5px 5px 50% 50% / 5px 5px 9px 9px; transition: border-color 0.2s; }
.ft.active .ft-jtype .door .grip { border-color: var(--bordeaux); }
.ft.active .door::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.75) 50%, transparent 70%);
  transform: translateX(-130%); animation: ftSheen 2.4s var(--ease) infinite;
}
@keyframes ftSheen { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }

/* Disclosure */
.disclosure { border-top: 1px solid var(--line); margin-top: 14px; }
.disclosure > summary {
  list-style: none; cursor: pointer; padding: 16px 0 6px; font-weight: 700; font-size: 14.5px;
  display: flex; align-items: center; justify-content: space-between;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary .chev { transition: transform 0.2s; color: var(--ink-faint); }
.disclosure[open] > summary .chev { transform: rotate(180deg); }
.disclosure .body { padding: 12px 0 4px; }

/* Single grey disclaimer */
.disclaimer-single { font-size: 12px; color: var(--ink-faint); line-height: 1.55; margin: 20px 0; text-align: center; }

/* Lead sheet (modal over review) */
.modal-back {
  position: fixed; inset: 0; background: rgba(20,24,30,0.5);
  backdrop-filter: blur(3px); display: none; align-items: flex-end; justify-content: center;
  z-index: 50; padding: 0;
}
.modal-back.show { display: flex; animation: fadeIn 0.25s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 480px; background: var(--card);
  border-radius: 24px 24px 0 0; padding: 26px 26px calc(26px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg); animation: sheetUp 0.4s var(--ease) both;
  max-height: 94dvh; overflow-y: auto;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal .grip { width: 38px; height: 4px; border-radius: 100px; background: var(--line-strong); margin: -6px auto 16px; }
.modal h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 6px; }
.modal p.sub { margin: 0 0 20px; color: var(--ink-soft); font-size: 14.5px; }

/* Done screen */
.done { text-align: center; padding-top: 8px; }
.done .seal {
  width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
  background: linear-gradient(150deg, #34a978, #2a8a61); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(46,158,107,0.35);
  animation: sealPop 0.5s var(--ease) both;
}
@keyframes sealPop { 0% { transform: scale(0.5); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.done .seal svg { width: 38px; height: 38px; color: #fff; }
.done-promo {
  display: flex; align-items: center; gap: 11px; justify-content: flex-start; text-align: left;
  background: rgba(46,158,107,0.10); border: 1px solid rgba(46,158,107,0.24); color: var(--good-deep);
  border-radius: 14px; padding: 13px 15px; margin: 18px 0 4px; font-size: 13.5px; line-height: 1.4;
}
.done-promo svg { width: 20px; height: 20px; flex: none; }
.done-promo b { font-weight: 800; }
.done .summary {
  text-align: left; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px; margin: 18px 0;
}
.done .summary .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.done .summary .row .l { color: var(--ink-soft); }
.done .summary .row .v { font-weight: 700; }

/* Error note */
.errnote {
  background: #fdf3ef; border: 1px solid #f3d2c4; color: #9c4a2b;
  border-radius: var(--r-sm); padding: 12px 14px; font-size: 13.5px;
  margin-bottom: 16px; display: none;
}
.errnote.show { display: block; }

/* footer */
.foot { text-align: center; font-size: 11.5px; color: var(--ink-faint); padding: 4px 0 22px; }
.foot a { color: var(--ink-soft); }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
