/* Flip — website flipdementie.nl. Huisstijl gelijk aan de app (zie CLAUDE.md). */

@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('fonts/fredoka-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('fonts/fredoka-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url('fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url('fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }

:root {
  --teal: #0F4C5C;
  --teal-dark: #0A3945;
  --sun: #F2B84B;
  --sun-dark: #C58E22;
  --cream: #FBF7F0;
  --ink: #12343B;
  --sage: #DCEBEA;
  --peach: #FBE3D6;
  --butter: #FCEBC4;
  --terra: #B8431F;
  --mist: #4F6368;
  --line: #E6DFD2;
  --blob: 58% 42% 52% 48% / 48% 56% 44% 52%;
  --head: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior-x: none; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 19px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.1; margin: 0; color: var(--ink); }
h1 { font-size: clamp(44px, 7vw, 76px); color: var(--teal); }
h2 { font-size: clamp(32px, 4.4vw, 46px); }
h3 { font-size: 24px; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--sun); padding: 10px 16px; border-radius: 99px; color: var(--ink); }

/* ---------- Kop ---------- */
.top { padding: 22px 0; position: relative; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { transform: rotate(-6deg); }
.brand span { font: 600 32px/1 var(--head); color: var(--teal); }
.top nav { display: flex; gap: 22px; align-items: center; }
.top nav a { text-decoration: none; font-weight: 700; color: var(--ink); }
.top nav a:hover { color: var(--teal); }
@media (max-width: 720px) { .top nav .hide-sm { display: none; } }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border: 2px solid var(--ink); border-radius: 999px;
  font: 700 19px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(4px); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 5px 0 var(--teal-dark); }
.btn--teal:hover { color: #fff; }
.btn--teal:active { box-shadow: 0 1px 0 var(--teal-dark); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 var(--sun-dark); }
.btn--sun:hover { color: var(--ink); }
.btn--sun:active { box-shadow: 0 1px 0 var(--sun-dark); }
.btn--small { min-height: 48px; padding: 0 20px; font-size: 17px; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 32px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__lead { font-size: clamp(20px, 2.2vw, 24px); color: var(--mist); margin-top: 18px; max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }
.hero__note { font-size: 16px; color: var(--mist); margin-top: 16px; }
.hero__faces { display: flex; gap: 12px; margin-top: 28px; }
.blob { position: absolute; border-radius: var(--blob); z-index: -1; pointer-events: none; }
/* Blobs steken bewust buiten beeld. Ze staan in een eigen laag die afknipt, zodat de pagina op mobiel
   (ook iOS Safari, dat overflow op html/body negeert bij vegen) niet zijwaarts kan schuiven. */
.hero__bg { position: absolute; left: 0; right: 0; top: -160px; bottom: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.hero .blob--a { width: 520px; height: 520px; background: var(--butter); right: -140px; top: 40px; }
.hero .blob--b { width: 220px; height: 220px; background: var(--sage); left: -90px; bottom: 10px; border-radius: 50%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero .blob--a { width: 360px; height: 360px; right: -160px; top: 100px; }
}

/* Telefoon met een vraag uit Kletsen */
.phone {
  justify-self: center; width: min(320px, 100%); aspect-ratio: 390 / 760;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 46px;
  box-shadow: 0 10px 0 var(--ink); padding: 26px 18px 20px; transform: rotate(3deg);
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
}
.phone::before { content: ''; position: absolute; width: 220px; height: 220px; background: var(--sage); border-radius: var(--blob); right: -80px; top: -90px; }
.phone > * { position: relative; }
.phone__title { font: 600 26px/1.1 var(--head); }
.phone__card {
  background: #fff; border: 2px solid var(--ink); border-radius: 28px; box-shadow: 0 5px 0 var(--ink);
  padding: 22px 18px; font: 600 22px/1.25 var(--head); transform: rotate(-2deg); min-height: 150px;
  display: flex; align-items: center;
}
.phone__label { font-size: 15px; color: var(--mist); font-weight: 700; }
.phone__faces { display: flex; justify-content: space-between; gap: 6px; }
.phone__faces div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--mist); }
.phone__btn { margin-top: auto; background: var(--sun); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 4px 0 var(--sun-dark); text-align: center; padding: 14px; font-weight: 700; }
.phone__bar { display: flex; justify-content: space-around; border-top: 2px solid var(--line); padding-top: 10px; font-size: 12px; font-weight: 700; color: var(--mist); }
.phone__bar b { color: var(--teal); background: var(--sage); border-radius: 99px; padding: 4px 10px; }

/* ---------- Secties ---------- */
section { position: relative; }
.section { padding: 88px 0; }
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head p { margin-top: 14px; font-size: 21px; color: var(--mist); }
.kicker { display: inline-block; font: 600 17px/1 var(--head); color: var(--terra); letter-spacing: .02em; margin-bottom: 12px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 2px solid var(--ink); border-radius: 32px; box-shadow: 0 6px 0 var(--ink);
  padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px;
}
.card:nth-child(3n+1) { transform: rotate(-1deg); }
.card:nth-child(3n+2) { transform: rotate(.8deg); }
.card p { color: var(--mist); font-size: 18px; }
.card__icon { width: 64px; height: 64px; border-radius: var(--blob); display: grid; place-items: center; border: 2px solid var(--ink); margin-bottom: 4px; }
.card__icon svg { width: 32px; height: 32px; }
.bg-butter { background: var(--butter); }
.bg-sage { background: var(--sage); }
.bg-peach { background: var(--peach); }
.bg-sun { background: var(--sun); }

/* Band in teal */
.band { background: var(--teal); color: #fff; border-radius: 48px; padding: 64px 56px; position: relative; overflow: hidden; }
.band h2 { color: #fff; }
.band p { color: #DCEBEA; font-size: 21px; margin-top: 16px; max-width: 46ch; }
.band .blob { z-index: 0; }
.band > :not(.blob) { position: relative; z-index: 1; }
.band .blob--c { width: 300px; height: 300px; background: var(--teal-dark); right: -80px; bottom: -120px; }
@media (max-width: 600px) { .band { padding: 44px 24px; border-radius: 36px; } }

.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 760px) { .who { grid-template-columns: 1fr; } }
.who div { background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.35); border-radius: 28px; padding: 22px; }
.who h3 { color: var(--sun); font-size: 22px; }
.who p { font-size: 17px; margin-top: 8px; }

/* Stappen */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { padding-top: 8px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px;
  font: 700 26px/1 var(--head); background: var(--sun); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--sun-dark);
}
.step p { color: var(--mist); margin-top: 8px; font-size: 18px; }

/* Download */
.download { text-align: center; }
.download .wrap { display: flex; flex-direction: column; align-items: center; }
.download__icon { width: 112px; height: 112px; border-radius: 30px; border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); transform: rotate(-6deg); margin-bottom: 28px; }
.download p { color: var(--mist); font-size: 21px; margin-top: 14px; max-width: 46ch; }
.download__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 22px; border: 2px dashed var(--mist); border-radius: 99px; color: var(--mist); font-weight: 700; }

/* Voet */
footer { padding: 48px 0 56px; border-top: 2px solid var(--line); margin-top: 40px; font-size: 17px; color: var(--mist); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--ink); font-weight: 700; }

/* Tekstpagina (privacy) */
.doc { padding: 24px 0 40px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); }
.doc .meta { color: var(--mist); margin-top: 12px; }
.doc h2 { font-size: 28px; margin: 44px 0 12px; }
.doc p, .doc li { font-size: 19px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 17px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 2px solid var(--line); }
.doc th { font-family: var(--head); font-weight: 600; }
.doc .box { background: var(--butter); border: 2px solid var(--ink); border-radius: 28px; padding: 20px 22px; margin-top: 28px; }
@media (max-width: 600px) { .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; } .doc thead { display: none; } .doc td { border: 0; padding: 4px 0; } .doc tr { border-bottom: 2px solid var(--line); padding: 10px 0; } .doc td:first-child { font-weight: 700; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.phone__tip { display: flex; gap: 10px; align-items: flex-start; background: var(--butter); border: 2px solid var(--ink); border-radius: 22px; padding: 12px 14px; font-size: 14px; line-height: 1.35; transform: rotate(1deg); }
.phone__tip svg { flex: none; }
