/* =====================================================================
   BeauMedic — De Blauwdruk Scan Funnel
   Bovenop style.css (hergebruikt :root tokens, fonts, .btn).
   Mobiel-first. Ingehouden beweging, veel witruimte.
   ===================================================================== */

/* ---------- Funnel-shell ---------- */
.scan-body {
  background: linear-gradient(180deg, var(--creme) 0%, var(--creme) 60%, var(--zand) 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
}
.scan-shell {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 5vw, 2rem);
}

/* Logo-only header (geen nav, geen uitgangen) */
.scan-topbar {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.5rem;
}
.scan-topbar img { height: 40px; width: auto; }

/* ---------- Eyebrow / typografie ---------- */
.scan-eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--goud);
}
.scan-h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 6.5vw, 3.1rem); line-height: 1.12; color: var(--espresso); margin: 0.8rem 0 0; }
.scan-h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 5.5vw, 2.4rem); line-height: 1.15; color: var(--espresso); margin: 0 0 0.6rem; }
.scan-lead { font-size: clamp(1.02rem, 2.6vw, 1.18rem); line-height: 1.65; color: var(--espresso-80); max-width: 40ch; }

/* ---------- Landingspagina ---------- */
.scan-landing { padding-bottom: 4rem; }
.scan-hero { padding: clamp(2rem, 7vw, 3.5rem) 0 clamp(2rem, 6vw, 3rem); text-align: left; }
.scan-hero .scan-lead { margin-top: 1rem; }
.scan-hero .scan-cta-note { font-size: 0.85rem; color: var(--espresso-80); margin-top: 0.9rem; }

.scan-block { padding: clamp(1.6rem, 5vw, 2.4rem) 0; border-top: 1px solid rgba(160,136,91,0.18); }
.scan-block h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: var(--espresso); margin: 0 0 0.9rem; }
.scan-block p { color: var(--espresso-80); line-height: 1.7; }

/* Wat je krijgt — vinkjes */
.scan-checks { list-style: none; margin: 0; padding: 0; }
.scan-checks li { position: relative; padding-left: 2rem; margin-bottom: 0.85rem; color: var(--espresso); line-height: 1.5; }
.scan-checks li::before {
  content: '';
  position: absolute; left: 0; top: 0.15em;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(160,136,91,0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A0885B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 13px;
}

/* Over Sharon */
.scan-sharon { display: flex; gap: 1.2rem; align-items: flex-start; }
.scan-sharon .portret {
  flex: none; width: 120px; height: 120px; border-radius: 50%;
  border: 1.5px dashed var(--goud); background: rgba(160,136,91,0.06);
  display: grid; place-items: center; text-align: center;
  font-size: 0.72rem; color: var(--espresso-80); padding: 0.5rem; line-height: 1.3;
}
.scan-sharon blockquote {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem;
  color: var(--espresso); margin: 0.8rem 0 0; line-height: 1.35;
}

/* ---------- Knoppen (hergebruik .btn .btn-primary uit style.css) ---------- */
.scan-cta { width: 100%; justify-content: center; text-align: center; }
.btn-block { display: flex; }

/* ---------- Placeholder-beeld (zand + goud kader) ---------- */
.scan-ph {
  border: 1.5px dashed var(--goud);
  border-radius: var(--radius-s);
  background: rgba(160,136,91,0.06);
  color: var(--espresso-80);
  padding: 1.4rem; text-align: center; font-size: 0.85rem;
}

/* =====================================================================
   VRAGENFLOW
   ===================================================================== */
.scan-flow { display: none; }
.scan-flow.active { display: block; }

/* Voortgangsbalk — sticky, dun */
.scan-progress {
  position: sticky; top: 0; z-index: 10;
  background: var(--creme);
  padding: 1rem 0 0.6rem;
}
.scan-progress-track { height: 4px; border-radius: 999px; background: var(--zand); overflow: hidden; }
.scan-progress-fill { height: 100%; width: 0; background: var(--goud); border-radius: 999px; transition: width 0.45s var(--ease); }
.scan-progress-label { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }
.scan-progress-label .count { font-size: 0.8rem; color: var(--espresso-80); font-family: var(--sans); }

/* Terugknop linksboven */
.scan-back {
  background: none; border: 0; padding: 0.3rem 0;
  color: var(--espresso-80); font-size: 0.88rem; font-family: var(--sans);
  display: inline-flex; align-items: center; gap: 0.35em; cursor: pointer;
}
.scan-back:hover { color: var(--espresso); }
.scan-back[hidden] { display: none; }

/* Vraag-scherm */
.scan-screen {
  min-height: calc(100dvh - 120px);
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 5vw, 2.5rem) 0 1.5rem;
}
.scan-blok {
  font-family: var(--sans); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 0.72rem; color: var(--terracotta);
  margin-bottom: 0.8rem;
}
.scan-vraag { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 5.5vw, 2.1rem); line-height: 1.2; color: var(--espresso); margin: 0 0 auto; }

/* Antwoorden onderin (duimbereik) */
.scan-opties { display: flex; flex-direction: column; gap: 12px; margin-top: clamp(1.5rem, 5vw, 2.5rem); }
.scan-optie {
  min-height: 56px; width: 100%;
  display: flex; align-items: center; text-align: left;
  padding: 0.9rem 1.15rem;
  background: var(--wit); color: var(--espresso);
  border: 1.5px solid transparent;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(60,36,21,0.06);
  font-family: var(--sans); font-size: 1rem; line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
}
.scan-optie:hover { border-color: rgba(160,136,91,0.5); }
.scan-optie.gekozen { border-color: var(--goud); background: var(--zand); }
.scan-optie.flash { border-color: var(--goud); background: rgba(160,136,91,0.18); }

/* Zachte overgang tussen vragen: fade + lichte horizontale verschuiving */
.scan-anim-in { animation: scanIn 0.4s var(--ease); }
.scan-anim-out { animation: scanOut 0.28s var(--ease) forwards; }
@keyframes scanIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes scanOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-18px); } }

/* =====================================================================
   OPT-IN + FILTERVRAGEN
   ===================================================================== */
.scan-form { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.6rem; }
.scan-field { display: flex; flex-direction: column; gap: 0.35rem; }
.scan-field label { font-size: 0.82rem; color: var(--espresso-80); font-family: var(--sans); }
.scan-field input {
  font-size: 16px; /* voorkomt auto-zoom in Safari */
  font-family: var(--sans); color: var(--espresso);
  padding: 0.95rem 1.1rem; border-radius: 12px;
  border: 1.5px solid var(--zand); background: var(--wit);
  transition: border-color 0.2s var(--ease);
}
.scan-field input:focus { outline: none; border-color: var(--goud); }
.scan-field.invalid input { border-color: var(--terracotta); }
.scan-field .foutje { font-size: 0.78rem; color: var(--terracotta); display: none; }
.scan-field.invalid .foutje { display: block; }
.scan-privacy { font-size: 0.8rem; color: var(--espresso-80); margin-top: 0.4rem; line-height: 1.5; }
.scan-intro-regel { color: var(--espresso-80); font-size: 0.95rem; margin-bottom: 1.2rem; }

/* =====================================================================
   RESULTAATPAGINA
   ===================================================================== */
.result-body { background: var(--creme); }
.result-wrap { max-width: 680px; margin: 0 auto; padding: clamp(1.5rem,5vw,2.5rem) clamp(1.15rem,5vw,2rem) 4rem; }

/* Scorecirkel */
.score-ring { display: grid; place-items: center; text-align: center; margin: 1.5rem auto 0.4rem; }
.score-ring svg { width: 180px; height: 180px; transform: rotate(-90deg); }
.score-ring .track { fill: none; stroke: var(--zand); stroke-width: 10; }
.score-ring .value { fill: none; stroke: var(--goud); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.score-ring .cijfer {
  position: relative; margin-top: -132px; margin-bottom: 60px;
  font-family: var(--serif); font-size: 3.4rem; color: var(--espresso); line-height: 1;
}
.score-label { text-align: center; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--goud); }

.result-type { text-align: center; margin-top: 2rem; }
.result-type h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem,7vw,3.2rem); color: var(--espresso); margin: 0; }
.result-type .ondertitel { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--espresso-80); margin-top: 0.4rem; }
.result-opening {
  margin: 1.6rem 0; padding: 1.3rem 1.5rem;
  background: var(--wit); border-radius: var(--radius-s); border-left: 3px solid var(--goud);
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--espresso); line-height: 1.4;
}

.result-block { padding: clamp(1.6rem,5vw,2.4rem) 0; }
.result-block h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem,4.5vw,2rem); color: var(--espresso); margin: 0 0 0.8rem; }
.result-block p { color: var(--espresso-80); line-height: 1.7; }

/* "Wat dit van jou vraagt" — zwaarder, zand achtergrond */
.result-block.eigenaarschap {
  background: var(--zand); border-radius: var(--radius);
  padding: clamp(1.6rem,5vw,2.4rem); margin: 1.5rem 0;
}
.result-block.eigenaarschap p { color: var(--espresso); font-size: 1.08rem; }

/* Wat je nu kiest — twee paden */
.result-paden { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.result-pad { padding: 1.3rem; background: var(--wit); border-radius: var(--radius-s); box-shadow: 0 8px 26px rgba(60,36,21,0.06); }
.result-pad h4 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--espresso); margin: 0 0 0.5rem; }
.result-pad p { color: var(--espresso-80); font-size: 0.96rem; }

/* Zelfreflectie — groen blok */
.result-reflectie { background: var(--groen); color: var(--creme); border-radius: var(--radius); padding: clamp(1.8rem,5vw,2.6rem); margin: 2rem 0; }
.result-reflectie h2 { color: var(--creme); font-family: var(--serif); font-weight: 500; }
.result-reflectie ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.result-reflectie li { padding: 0.7rem 0; border-top: 1px solid rgba(247,242,236,0.18); font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; }
.result-reflectie li:first-child { border-top: 0; }

/* CTA-blok (vertakt op temperatuur) */
.result-cta { text-align: center; padding: clamp(1.8rem,6vw,3rem) 0 1rem; }
.result-cta h2 { max-width: 24ch; margin: 0 auto 1rem; }
.result-cta p { color: var(--espresso-80); max-width: 46ch; margin: 0 auto 1.5rem; line-height: 1.7; }
.result-cta .meta { font-size: 0.85rem; color: var(--espresso-80); margin-top: 0.9rem; }
.result-cta .secundair { display: inline-block; margin-top: 1.4rem; font-size: 0.9rem; color: var(--goud); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Desktop verfijning ---------- */
@media (min-width: 720px) {
  .scan-hero { text-align: left; }
  .result-paden { grid-template-columns: 1fr 1fr; }
  .scan-screen { min-height: auto; padding-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scan-anim-in, .scan-anim-out { animation: none; }
  .score-ring .value { transition: none; }
}
