/* Step into your drawing — krijtjes-stijl, zusje van kindertekening.com.
   Principe: het kind versiert (koppen, kaders, knoppen), de volwassene schrijft
   (lopende tekst blijft Nunito, goed leesbaar). */
:root {
  --paper: #FDFBF3;
  --paper-clean: #FFFEF9;
  --white: #ffffff;
  --ink: #3D2B1F;
  --ink-soft: #6B5344;
  --line: #E9E1CF;

  --red: #E1574C;
  --yellow: #F7C948;
  --yellow-dark: #E8A33D;
  --green: #6FB46F;
  --green-dark: #3B6D11;
  --blue: #7BB8D4;
  --blue-dark: #185FA5;
  --coral: #E87461;
  --pink: #F4A89A;
  --chalk: #2E3440;

  --stripe: repeating-linear-gradient(90deg,
    var(--red) 0 16px, var(--yellow) 16px 32px,
    var(--green) 32px 48px, var(--blue) 48px 64px);
  --wobble-a: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble-b: 15px 225px 15px 255px / 255px 15px 225px 15px;
  --wobble-c: 225px 15px 255px 15px / 15px 255px 15px 225px;

  --font-crayon: 'Schoolbell', 'Patrick Hand', cursive;
  --font-hand: 'Patrick Hand', 'Schoolbell', cursive;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --radius: 16px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper-clean);
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-crayon);
  font-weight: 400;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--wobble-a);
  font-family: var(--font-hand);
  font-size: 1.1rem;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Kopbalk: papier met krijtstreep === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(16px, calc((100% - var(--max)) / 2));
  background: var(--paper-clean);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 5px;
  background: var(--stripe);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--font-crayon);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--ink);
}

/* Het app-icoon i.p.v. de letters SIYD */
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  font-size: 0;
  color: transparent;
  background: url("assets/icon-512.png") center / cover;
  border: 2px solid var(--ink);
  border-radius: 12px;
  transform: rotate(-4deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--wobble-a);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: #FEF6DC;
}

.site-nav .nav-cta {
  margin-left: 6px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1deg);
}

.site-nav .nav-cta:hover {
  background: var(--yellow);
  transform: rotate(-1deg) translateY(-1px);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: var(--wobble-b);
  background: var(--white);
  color: var(--ink);
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

/* === Hero: tekst op papier, de wereld in een getekend kader === */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 64px 0 56px;
}

.hero-overlay {
  display: none;
}

.hero-image {
  order: 2;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: var(--wobble-a);
  box-shadow: 8px 8px 0 var(--yellow);
  transform: rotate(1.5deg);
}

.hero-content {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eyebrow {
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  line-height: 1.2;
  padding: 4px 14px;
  color: var(--ink);
  background: #FEF0C2;
  border-radius: var(--wobble-b);
  transform: rotate(-1.5deg);
}

.eyebrow.dark {
  background: #DDEFF6;
}

.eyebrow.light {
  background: #E4F2DD;
}

h1 {
  max-width: 640px;
  font-size: 4.6rem;
  line-height: 1;
}

/* Krijtlijntje onder de titel */
h1::after {
  content: "";
  display: block;
  width: 180px;
  height: 7px;
  margin-top: 14px;
  background: var(--stripe);
  border-radius: 4px;
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 600px;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.hero-actions,
.mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: var(--wobble-a);
  padding: 8px 22px;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
  background: var(--white);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1deg);
}

.button.primary:hover,
.button.primary:focus-visible {
  transform: rotate(-1deg) translate(-1px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button.primary.on-dark {
  background: var(--yellow);
}

.button.secondary,
.button.ghost {
  color: var(--blue-dark);
  border: 2px dashed var(--blue-dark);
  background: transparent;
}

.button.secondary:hover,
.button.ghost:hover,
.button.secondary:focus-visible,
.button.ghost:focus-visible {
  background: #EAF4FA;
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.proof-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

.proof-list li + li::after {
  content: none;
}

/* === Belofte + voortgang === */
.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 32px;
  align-items: center;
  padding: 36px max(16px, calc((100% - var(--max)) / 2));
  background: var(--paper);
  border-top: 2px dashed var(--line);
  border-bottom: 2px dashed var(--line);
}

.intro-copy p {
  max-width: 720px;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--ink);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.status-strip div {
  min-height: 86px;
  padding: 14px 16px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--wobble-b);
}

.status-strip div:nth-child(1) { box-shadow: 4px 4px 0 var(--green); }
.status-strip div:nth-child(2) { box-shadow: 4px 4px 0 var(--blue); }
.status-strip div:nth-child(3) { box-shadow: 4px 4px 0 var(--yellow); }

.status-strip strong,
.status-strip span {
  display: block;
}

.status-strip strong {
  font-family: var(--font-crayon);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
}

.status-strip span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* === Secties === */
.section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 84px 0;
}

.split-section,
.care-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: 52px;
  align-items: center;
}

.section-copy {
  display: grid;
  gap: 18px;
}

.section-copy h2,
.section-heading h2,
.mission-content h2,
.final-cta h2 {
  max-width: 760px;
  font-size: 3rem;
  line-height: 1.08;
}

.section-copy p,
.mission-content p {
  max-width: 640px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.media-frame {
  margin: 0;
}

.video-frame video,
.before-after img,
.quest-visual img,
.care-image img {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: var(--wobble-a);
  background: var(--paper);
}

.video-frame video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-frame figcaption,
.before-after figcaption {
  margin-top: 14px;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.section-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 36px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 720px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.transform-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.before-after {
  margin: 0;
}

.before-after img,
.before-after.video-frame video {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.before-after:first-child img {
  box-shadow: 6px 6px 0 var(--pink);
  transform: rotate(-1.5deg);
}

.before-after.video-frame video {
  border-radius: var(--wobble-c);
  box-shadow: 6px 6px 0 var(--blue);
}

/* "to" wordt een getekende pijl */
.transform-arrow {
  width: 70px;
  height: 40px;
  margin: 0 auto;
  font-size: 0;
  color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 40'%3E%3Cpath d='M4 22c14-6 30-8 52-3' fill='none' stroke='%23E87461' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M46 8l15 12-16 11' fill='none' stroke='%23E87461' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Quest-blok: lichtblauw papier i.p.v. donkergroen */
.quest-section {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 88px max(16px, calc((100% - var(--max)) / 2));
  background: #EEF6FA;
  position: relative;
}

.quest-section::before,
.mission-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: var(--stripe);
}

.quest-visual img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 8px 8px 0 var(--blue-dark);
  transform: rotate(-1deg);
}

.roadmap-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.roadmap-list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 16px;
  background: var(--white);
  border: 2px dashed var(--blue);
  border-radius: var(--wobble-b);
}

.roadmap-list span {
  font-family: var(--font-crayon);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--blue-dark);
}

.roadmap-list p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.steps-section {
  padding-top: 92px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.step-card {
  min-height: 240px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px 24px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--wobble-a);
  box-shadow: 5px 5px 0 var(--red);
}

.step-card:nth-child(2) {
  border-radius: var(--wobble-b);
  box-shadow: 5px 5px 0 var(--yellow);
  transform: rotate(0.6deg);
}

.step-card:nth-child(3) {
  border-radius: var(--wobble-c);
  box-shadow: 5px 5px 0 var(--green);
}

.step-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-crayon);
  font-size: 1.4rem;
  color: var(--ink);
  background: #FEF0C2;
  border: 2px solid var(--ink);
  border-radius: 50% 45% 52% 48% / 48% 52% 45% 50%;
}

.step-card h3 {
  font-size: 1.9rem;
  line-height: 1.1;
}

.step-card p {
  color: var(--ink-soft);
}

.care-section {
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1fr);
  border-top: 2px dashed var(--line);
}

.care-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--wobble-c);
  box-shadow: 8px 8px 0 var(--green);
  transform: rotate(-1deg);
}

.care-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 6px 0 0;
  list-style: none;
}

.care-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-hand);
  font-size: 1.22rem;
  line-height: 1.35;
  color: var(--ink);
}

.care-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50% 45% 52% 48%;
  background: var(--blue);
}

.care-list li:nth-child(2)::before { background: var(--coral); }
.care-list li:nth-child(3)::before { background: var(--yellow); }
.care-list li:nth-child(4)::before { background: var(--green); }
.care-list li:nth-child(5)::before { background: var(--pink); }
.care-list li:nth-child(6)::before { background: var(--yellow-dark); }

/* Missie: warm geel papier */
.mission-section {
  position: relative;
  width: 100%;
  max-width: none;
  display: grid;
  align-items: center;
  padding: 92px max(16px, calc((100% - var(--max)) / 2));
  background: #FEF6DC;
}

.mission-content {
  display: grid;
  gap: 20px;
  max-width: 780px;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Voet: schoolbord, zoals kindertekening.com */
.site-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 34px max(16px, calc((100% - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.82);
  background: var(--chalk);
  font-family: var(--font-hand);
  font-size: 1.15rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: var(--stripe);
}

.site-footer a {
  color: var(--yellow);
}

@media (max-width: 920px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--paper-clean);
    border: 2px solid var(--ink);
    border-radius: var(--wobble-b);
    box-shadow: 5px 5px 0 var(--yellow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .site-nav .nav-cta {
    margin: 6px 0 0;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }

  .hero-image {
    order: 0;
  }

  h1 {
    font-size: 3.4rem;
  }

  .intro-band,
  .split-section,
  .quest-section,
  .care-section {
    grid-template-columns: 1fr;
  }

  .section-copy h2,
  .section-heading h2,
  .mission-content h2,
  .final-cta h2 {
    font-size: 2.4rem;
  }

  .transform-grid {
    grid-template-columns: 1fr;
  }

  .care-image img {
    max-width: 460px;
    margin: 0 auto;
  }

  .transform-arrow {
    transform: rotate(90deg);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 1.3rem;
  }

  .brand span:last-child {
    max-width: 190px;
    overflow-wrap: anywhere;
  }

  .hero {
    padding: 28px 0 40px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .hero-actions,
  .mission-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .section-copy h2,
  .section-heading h2,
  .mission-content h2,
  .final-cta h2 {
    font-size: 2.1rem;
  }

  .roadmap-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .step-card:nth-child(2),
  .care-image img,
  .quest-visual img,
  .hero-image {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
