/* Pfoe – website. Licht of donker kiest thema.js: donker na zonsondergang in Nederland, of als je apparaat op donker staat. */

:root {
  color-scheme: light;
  --bg: #F6F4FF;
  --card: #FFFFFF;
  --line: #E7E3FA;
  --text: #1E1B2E;
  --muted: #5B5775;
  --purple: #6C5CE7;
  --ink: #4A3FA8;
  --accent: #C2412A;
  --soft: #EDEAFF;
  --soft-text: #4A3FA8;
  --warm: #FFEDE6;
  --btn-bg: #4A3FA8;
  --btn-text: #FFFFFF;
  --btn-hover: #3B3290;
  --focus: #C2412A;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(30, 27, 46, .04), 0 8px 24px rgba(74, 63, 168, .06);
}

:root.donker {
  color-scheme: dark;
  --bg: #1E1B2E;
  --card: #2A2640;
  --line: #3D3760;
  --text: #FFFFFF;
  --muted: #B8B3D1;
  --purple: #8F83FF;
  --ink: #FFFFFF;
  --accent: #FF9A80;
  --soft: #332E52;
  --soft-text: #B9B1FF;
  --warm: #3A2A2E;
  --btn-bg: #8F83FF;
  --btn-text: #1E1B2E;
  --btn-hover: #A69CFF;
  --focus: #FF9A80;
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  /* Schemer: rond zonsondergang en -opkomst kleurt de lichte achtergrond mee (zie thema.js) */
  background: color-mix(in oklab, var(--bg), #E8CFE3 calc(var(--schemer, 0) * 100%));
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
.donker a { color: var(--soft-text); }
a:hover { text-decoration-thickness: 2.5px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--card); color: var(--text); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Kop */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { display: inline-block; border-radius: 8px; }
.logo img { width: 112px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-text);
  font: 600 1.0625rem/1.2 Inter, system-ui, sans-serif;
  text-decoration: none; text-align: center;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--soft); }
.donker .btn-ghost { color: var(--text); }

/* Hero */
.hero { padding: 24px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.kicker {
  display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: var(--soft); color: var(--soft-text); font-weight: 600; font-size: .9rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; }
.cta-note { font-size: .95rem; color: var(--muted); margin: 0; }

@media (min-width: 820px) {
  .hero { padding: 48px 0 80px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}

/* Secties */
.section { padding: 56px 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { color: var(--muted); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

/* Stappen */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: stap; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: stap; }
.steps li::before {
  content: counter(stap);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 999px; background: var(--soft); color: var(--soft-text);
  font: 700 1.3rem/1 Fredoka, Inter, sans-serif;
}

/* Veiligheid */
.icon {
  width: 44px; height: 44px; border-radius: 14px; margin-bottom: 14px;
  display: grid; place-items: center; background: var(--soft); color: var(--soft-text);
}
.icon svg { width: 24px; height: 24px; }

.age {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.age-badge {
  flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 999px;
  background: var(--purple); color: #FFFFFF; font: 700 1.5rem/1 Fredoka, Inter, sans-serif;
}
.donker .age-badge { color: #1E1B2E; }
.age > div { flex: 1 1 220px; }

/* Hulp: 113 en 112 */
.help {
  background: var(--warm); border-radius: var(--radius); padding: 24px;
  border: 1px solid transparent;
}
.help h2, .help h3 { color: var(--accent); }
.help p { margin-bottom: .75em; }
.help .help-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.help .btn { background: var(--accent); color: #FFFFFF; min-height: 48px; padding: 12px 22px; }
.help .btn:hover { filter: brightness(.92); }
.donker .help .btn { color: #1E1B2E; } .donker .help .btn:hover { filter: brightness(1.08); }
.help .btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.help .btn-ghost:hover { background: rgba(194, 65, 42, .08); filter: none; }

/* Eindblok */
.final { text-align: center; }
.final .card { padding: 40px 24px; }
.final .cta { align-items: center; }
.final img { width: 72px; margin: 0 auto 16px; }

/* Tekstpagina's (privacy, support) */
.page-head { padding: 24px 0 8px; }
.page-head p { color: var(--muted); }
.prose { padding-bottom: 48px; }
.prose h2 { font-size: clamp(1.35rem, 4.5vw, 1.7rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose .card { margin: 20px 0; }
.summary ul { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }

/* Op een smal scherm: tabel als lijst */
@media (max-width: 599px) {
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .stack td { display: block; border: 0; padding: 2px 0; }
  .stack td:first-child { font-weight: 600; }
  .stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font: 700 1.5rem/1 Fredoka, Inter, sans-serif; color: var(--purple);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 18px; }
.faq details > div p:last-child, .faq details > div ul:last-child { margin-bottom: 0; }

/* Placeholder die Max nog moet invullen: valt bewust op */
.todo {
  background: #FFE58A; color: #1E1B2E; padding: 0 .3em; border-radius: 4px;
  font-weight: 600; font-style: normal;
}

/* Voet */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); margin-top: 24px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }
.footer-logo img { width: 84px; }

/* ==========================================================================
   Beweging. Alles decoratief; bij 'minder beweging' staat het stil.
   ========================================================================== */

:root { --face: #FFFFFF; --phone: #1E1B2E; --toast-bg: #1E1B2E; --toast-text: #FFFFFF; }
:root.donker { --face: #1E1B2E; --phone: #0E0C18; --toast-bg: #8F83FF; --toast-text: #1E1B2E; }
body { overflow-x: clip; }

/* Beeldmerk als inline SVG, zodat het meekleurt met licht en donker */
.mark-body { fill: var(--purple); }
.mark-face { fill: var(--face); }
.mark-face-line { fill: none; stroke: var(--face); stroke-width: 4; stroke-linecap: round; }

/* Achtergrond: zachte, langzaam drijvende vlekken */
.hero { position: relative; isolation: isolate; }
.blobs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs span {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.blobs span:nth-child(1) { width: 380px; height: 380px; background: #DCD6FF; top: -120px; right: -80px; }
.blobs span:nth-child(2) { width: 300px; height: 300px; background: #FFE2D8; bottom: -60px; left: -120px; animation-duration: 22s; }
.blobs span:nth-child(3) { width: 220px; height: 220px; background: #E9E4FF; top: 40%; left: 45%; animation-duration: 26s; }
.donker .blobs span { opacity: .35; }
.donker .blobs span:nth-child(1) { background: #4A3FA8; }
.donker .blobs span:nth-child(2) { background: #6B2F3A; }
.donker .blobs span:nth-child(3) { background: #332E52; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.12); }
}

/* Hero komt meteen bij het laden binnen, ook zonder script */
/* Blijft na afloop op een eigen laag (translateZ), zodat de tekst niet opnieuw getekend wordt en niet flitst (o.a. iOS Safari) */
.rise { transform: translateZ(0); animation: rise .8s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes rise { from { opacity: .4; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }

/* "Pfoe" in de kop blaast kleine wolkjes uit */
.puff-word { position: relative; display: inline-block; color: var(--purple); }
.puffs { position: absolute; left: 100%; top: 38%; width: 0; height: 0; pointer-events: none; }
.puffs i {
  position: absolute; left: 2px; top: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--purple); opacity: 0; animation: puff 3.2s ease-out infinite;
}
.puffs i:nth-child(2) { animation-delay: .25s; width: 7px; height: 7px; top: -8px; }
.puffs i:nth-child(3) { animation-delay: .5s; width: 6px; height: 6px; top: 8px; }
@keyframes puff {
  0%, 55% { opacity: 0; transform: translate(0, 0) scale(.4); }
  62% { opacity: .7; }
  100% { opacity: 0; transform: translate(34px, -6px) scale(1.3); }
}

/* Grotere hoofdknop met een zachte ring die af en toe uitdijt */
.btn-big { min-height: 58px; padding: 16px 32px; font-size: 1.125rem; }
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateY(2px); }
.btn-pulse { position: relative; isolation: isolate; }
/* De ring zit op een eigen laag en animeert alleen transform en opacity: de knop zelf wordt nooit opnieuw getekend */
.btn-pulse::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  border: 2px solid var(--purple); opacity: 0; will-change: transform, opacity;
  animation: ring 2.8s ease-out 1.4s infinite;
}
@keyframes ring {
  0% { transform: scale(1, 1); opacity: .55; }
  70%, 100% { transform: scale(1.1, 1.45); opacity: 0; }
}

.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .95rem; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C5CE7' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Telefoon in de hero ---------- */
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 360px; padding: 18px 0 24px; }
.phone {
  position: relative; width: min(290px, 86%); margin: 0 auto;
  background: var(--phone); border-radius: 44px; padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(74, 63, 168, .45), 0 0 0 1px rgba(255,255,255,.06) inset;
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(.5deg); } }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 999px; background: var(--phone); z-index: 2; }
.phone-screen {
  position: relative; overflow: hidden; height: 500px;
  background: var(--bg); border-radius: 34px; padding: 50px 16px 16px;
  font-size: 13px; line-height: 1.45; color: var(--text);
}
.donker .phone-screen { box-shadow: 0 0 0 1px var(--line) inset; }
.app-top { display: flex; align-items: center; gap: 7px; }
.app-top .mark { width: 28px; }
.app-word { font: 700 20px/1 Fredoka, Inter, sans-serif; color: var(--ink); }
.app-hello { margin: 14px 0 2px; color: var(--muted); }
.app-q { font: 700 24px/1.1 Fredoka, Inter, sans-serif; color: var(--text); margin: 0 0 12px; }
.app-field {
  position: relative; height: 90px; overflow: hidden;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 14px;
  transition: border-color .3s ease;
}
.app-typed { transition: opacity .35s ease, transform .35s ease; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--purple); opacity: 0; }
.app-plane { position: absolute; right: 14px; bottom: 10px; width: 22px; height: 22px; fill: var(--purple); opacity: 0; }
.app-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.app-chip { border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 500; background: var(--soft); color: var(--soft-text); }
.app-send {
  display: inline-block; border-radius: 999px; padding: 9px 18px; font-weight: 600;
  background: var(--btn-bg); color: var(--btn-text); transition: transform .15s ease, opacity .3s ease;
}
.app-toast {
  position: absolute; top: 14px; left: 50%; transform: translate(-50%, -70px); white-space: nowrap;
  background: var(--toast-bg); color: var(--toast-text); border-radius: 999px; padding: 8px 14px;
  font-weight: 600; font-size: 12px; transition: transform .45s cubic-bezier(.2, .9, .3, 1.3); z-index: 3;
}
.app-reply {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2, .9, .3, 1.2);
}
.app-reply-head { margin: 0 0 4px; font-weight: 600; font-size: 11.5px; color: var(--accent); }
.app-reply-text { margin: 0; }
.app-dots { display: none; margin: 4px 0; gap: 4px; }
.app-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: dot 1s ease-in-out infinite; }
.app-dots i:nth-child(2) { animation-delay: .15s; }
.app-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }

/* Standen die app.js afspeelt */
.phone.is-typing .caret { opacity: 1; animation: blink 1s step-end infinite; }
.phone.is-typing .app-field { border-color: var(--purple); }
.phone.is-empty .app-reply { opacity: 0; transform: translateY(30px) scale(.96); }
.phone.is-press .app-send { transform: scale(.92); }
.phone.is-sent .app-typed { opacity: 0; transform: translateY(-14px); }
.phone.is-sent .app-plane { animation: fly 1s cubic-bezier(.4, 0, .2, 1) forwards; }
.phone.is-toast .app-toast { transform: translate(-50%, 0); }
.phone.is-waiting .app-dots { display: flex; }
.phone.is-waiting .app-reply-text { display: none; }
.phone.is-replied .app-reply-text { animation: fadein .5s ease both; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fly {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(80px, -140px) rotate(12deg) scale(.6); }
}
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Zwevende zuchten rond de telefoon */
.float {
  position: absolute; z-index: 2; white-space: nowrap;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: 20px 20px 20px 6px; padding: 9px 14px;
  font: 700 1rem/1.2 Fredoka, Inter, sans-serif; color: var(--ink);
  animation: floaty 7s ease-in-out infinite;
}
.float.f1 { top: 0; left: 0; }
.float.f2 { top: 58%; right: 0; background: var(--purple); border-color: var(--purple); color: #FFFFFF; border-radius: 20px 20px 6px 20px; animation-delay: -2.5s; }
.float.f3 { bottom: -14px; left: 12px; animation-delay: -4.5s; }
.donker .float.f2 { color: #1E1B2E; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 380px) { .float { font-size: .9rem; padding: 7px 11px; } .float.f3 { display: none; } }
@media (min-width: 820px) {
  .hero-visual { max-width: 440px; }
  .float.f1 { left: -24px; }
  .float.f2 { right: -28px; }
  .float.f3 { left: 0; }
}

/* Eindblok: ademende ballon */
.breathe { position: relative; width: 84px; margin: 0 auto 18px; }
.breathe .mark { width: 84px; animation: breathe 3.2s ease-in-out infinite; transform-origin: 40% 60%; }
.breathe .puffs { left: 84%; top: 46%; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.08); } 60% { transform: scale(.97); } }

/* Binnenschuiven tijdens scrollen (alleen als app.js draait) */
.js-motion [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js-motion [data-reveal].in { opacity: 1; transform: none; }
.steps li.in::before { animation: pop .5s cubic-bezier(.2, .9, .3, 1.4) both; animation-delay: calc(var(--d, 0) * 90ms + .2s); }
@keyframes pop { from { transform: scale(.6); } to { transform: scale(1); } }
.card { transition: transform .25s ease, box-shadow .25s ease, opacity .7s ease; }
@media (hover: hover) {
  .grid .card:hover, .steps .card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px -12px rgba(74, 63, 168, .28); }
  .js-motion .grid .card.in:hover, .js-motion .steps .card.in:hover { transform: translateY(-4px); }
  .card:hover .icon svg { animation: wiggle .5s ease; }
}
@keyframes wiggle { 25% { transform: rotate(-10deg); } 75% { transform: rotate(8deg); } }

/* Downloadbalk onderin op mobiel */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 12px 30px -8px rgba(30, 27, 46, .35);
  transform: translateY(140%); transition: transform .4s cubic-bezier(.2, .9, .3, 1.2);
  visibility: hidden;
}
.sticky-cta.show { transform: none; visibility: visible; }
.sticky-text { font: 700 1rem/1.2 Fredoka, Inter, sans-serif; color: var(--ink); }
.sticky-cta .btn { min-height: 44px; padding: 10px 20px; font-size: 1rem; }
@media (max-width: 819px) { .js-motion body { padding-bottom: 84px; } }
@media (min-width: 820px) { .sticky-cta { display: none; } }

/* ---------- Zo ziet Pfoe eruit: één grote telefoon die meescrolt ---------- */
.story {
  position: relative; color: #fff;
  background:
    radial-gradient(70% 40% at 50% 42%, rgba(143, 131, 255, .28), transparent 70%),
    linear-gradient(180deg, #2B2458 0%, #1A1730 100%);
}
.story-stage { padding: 64px 0; }
.story-grid {
  width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px;
  display: grid; gap: 20px; justify-items: center; text-align: center;
}
.story-head h2 { color: #fff; margin: 0; }
.story-note { margin: 4px 0 0; color: #C9C3EE; font-size: .95rem; }
.story-phone { position: relative; display: flex; justify-content: center; }
.story-glow {
  position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(143, 131, 255, .45), transparent);
  animation: glow 6s ease-in-out infinite; pointer-events: none;
}
@keyframes glow { 50% { opacity: .6; scale: .92; } }
.story-device {
  position: relative; width: min(72vw, 300px); aspect-ratio: 600 / 1301; box-sizing: content-box;
  border: 7px solid #0B0A12; border-radius: 40px; overflow: hidden; background: #F6F4FF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -24px rgba(0, 0, 0, .6);
}
.story-device img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-device img:not(:first-child) { display: none; }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 30em; }
.story-steps h3 { font: 700 1.35rem/1.2 Fredoka, Inter, sans-serif; color: #fff; margin: 0 0 6px; }
.story-steps p { margin: 0; color: #DCD8F5; }
.story-num { display: none; }
.story-dots { display: flex; gap: 2px; justify-content: center; }
.story-dots[hidden] { display: none; }
.story-dot {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; border-radius: 999px;
}
.story-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .35);
  transition: width .3s ease, background-color .3s ease;
}
.story-dot.on::before { width: 22px; background: #fff; }
.story-dot:focus-visible { outline: 3px solid #FF9A80; outline-offset: 0; }

/* Met script: het verhaal blijft staan en wisselt van scherm terwijl je scrolt */
.js-story .story { height: calc(100vh + 300vh); height: calc(100svh + 300svh); }
.js-story .story-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden;
  display: flex; align-items: center;
}
.js-story .story-grid {
  height: 100%; padding: 22px 20px calc(10px + env(safe-area-inset-bottom));
  grid-template-rows: auto minmax(0, 1fr) 7.5rem auto; gap: 14px;
}
.js-story .story-head h2 { font-size: 1.5rem; }
.js-story .story-note { font-size: .85rem; margin: 0; }
.js-story .story-phone { height: 100%; min-height: 0; width: 100%; align-items: center; }
.js-story .story-device { width: auto; height: calc(100% - 14px); max-height: 660px; }
.js-story .story-device img {
  position: absolute; inset: 0; display: block;
  opacity: 0; transform: scale(1.04); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.js-story .story-device img.on { opacity: 1; transform: none; }
.js-story .story-steps { position: relative; width: 100%; height: 100%; display: block; }
.js-story .story-steps li {
  position: absolute; inset: 0; opacity: 0; transform: translateY(14px);
  transition: opacity .18s ease, transform .18s ease;
}
/* De nieuwe tekst komt pas als de oude weg is, zodat ze niet door elkaar staan */
.js-story .story-steps li.on {
  opacity: 1; transform: none;
  transition: opacity .4s ease .16s, transform .5s cubic-bezier(.2, .8, .2, 1) .16s;
}
.js-story .story-steps p { font-size: .98rem; line-height: 1.45; }

@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1fr auto; justify-items: start; text-align: left; column-gap: 72px; }
  .story-head, .story-steps, .story-dots { grid-column: 1; }
  .story-phone { grid-column: 2; grid-row: 1 / span 3; }
  .story-head h2 { font-size: 2.5rem; }
  .story-steps h3 { font-size: 2rem; }
  .story-steps p { font-size: 1.15rem; }
  .story-device { width: 300px; border-radius: 46px; border-width: 9px; }
  .js-story .story-grid {
    padding: 40px 20px;
    grid-template-rows: 1fr auto 9rem auto 1fr; row-gap: 24px;
  }
  .js-story .story-head { grid-row: 2; }
  .js-story .story-steps { grid-row: 3; }
  .js-story .story-dots { grid-row: 4; }
  .js-story .story-head h2 { font-size: 2.5rem; }
  .js-story .story-note { font-size: .95rem; }
  .js-story .story-phone { grid-row: 1 / -1; align-self: center; height: min(84vh, 720px); height: min(84svh, 720px); }
  .js-story .story-device { height: 100%; }
  .js-story .story-steps li { padding-left: 64px; }
  .js-story .story-steps p { font-size: 1.15rem; }
  .js-story .story-num {
    display: grid; place-items: center; position: absolute; left: 0; top: 2px;
    width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12);
    font: 700 1.25rem/1 Fredoka, Inter, sans-serif; color: #fff;
  }
  .story-dots { justify-content: flex-start; margin-left: 54px; }
}

/* Wisselen tussen licht en donker terwijl je kijkt: rustige overgang van de hele pagina */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 2.4s; animation-timing-function: ease-in-out; }

/* Minder beweging: alles stil, alles meteen zichtbaar */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion [data-reveal] { opacity: 1; transform: none; }
}
