/* Rekenrugzak – landingspagina. Zelfde kleuren en lettertype als het spel (app.css), maar losstaand. */

@font-face {
  font-family: 'Baloo 2';
  src: url('../fonts/baloo2-latin.woff') format('woff');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2b2d42; --muted: #525669; --paper: #ffffff;
  --sky1: #bfe6ff; --sky2: #fff6e0;
  --blue: #3aa0ff; --red: #ff6b6b; --green: #2fb57a; --gold: #f5b700; --violet: #8f6bff; --orange: #ff9f43;
  --blue-btn: #1769b8; --sea: #7fd0ff; --sand: #ffe7a8;
  --r: 22px; --shadow: 0 6px 0 rgba(43, 45, 66, .08), 0 10px 30px rgba(43, 45, 66, .06);
  --font: 'Baloo 2', ui-rounded, 'SF Pro Rounded', 'Nunito', 'Varela Round', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font: 18px/1.5 var(--font); color: var(--ink); min-height: 100vh; overflow-x: hidden;
  background: linear-gradient(180deg, var(--sky1) 0%, #e3f4ff 35%, var(--sky2) 100%) fixed;
}
a { color: inherit; }
:focus-visible { outline: 4px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 10px; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
p { margin: 6px 0; }
.muted { color: var(--muted); }

/* wolkjes (zoals in het spel) */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.cloud { position: absolute; width: 160px; height: 50px; background: #fff; border-radius: 50px; opacity: .8; animation: drift 60s linear infinite; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 70px; height: 70px; top: -35px; left: 25px; }
.cloud::after { width: 55px; height: 55px; top: -25px; left: 80px; }
.c1 { top: 8%; left: -200px; } .c2 { top: 34%; left: -200px; animation-delay: -25s; transform: scale(.7); } .c3 { top: 64%; left: -200px; animation-delay: -45s; transform: scale(1.2); opacity: .5; }
@keyframes drift { to { left: 110%; } }

/* knoppen */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-radius: 18px; padding: 10px 22px; min-height: 48px; font-weight: 800; font-size: 1.05rem; background: #fff; box-shadow: 0 4px 0 #dfe4f0; transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #dfe4f0; }
.btn.primary { background: var(--blue-btn); color: #fff; box-shadow: 0 5px 0 #0f4f8c; }
.btn.primary:active { box-shadow: 0 1px 0 #0f4f8c; }
.btn.big { padding: 14px 30px; font-size: 1.3rem; min-height: 60px; }

/* navigatie */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, calc((100vw - 1100px) / 2)); background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; align-items: center; gap: 18px; }
.nav nav a { text-decoration: none; font-weight: 700; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.nav .nav-play { background: var(--blue-btn); color: #fff !important; padding: 6px 16px; border-radius: 14px; box-shadow: 0 3px 0 #0f4f8c; }
@media (max-width: 560px) { .nav nav a:not(.nav-play) { display: none; } }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 48px 0 32px; }
.kicker { display: inline-block; background: #fff; border-radius: 99px; padding: 2px 14px; font-weight: 800; color: var(--blue-btn); box-shadow: 0 3px 0 #dfe4f0; }
.logo { font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 800; letter-spacing: .02em; margin: 12px 0 6px; }
.logo span { display: inline-block; text-shadow: 0 5px 0 rgba(0, 0, 0, .12); animation: wave 2.4s ease-in-out infinite; }
.logo span:nth-child(6n+1) { color: var(--red); } .logo span:nth-child(6n+2) { color: var(--orange); } .logo span:nth-child(6n+3) { color: var(--gold); }
.logo span:nth-child(6n+4) { color: var(--green); } .logo span:nth-child(6n+5) { color: var(--blue); } .logo span:nth-child(6n) { color: var(--violet); }
.logo span:nth-child(2) { animation-delay: .1s; } .logo span:nth-child(3) { animation-delay: .2s; } .logo span:nth-child(4) { animation-delay: .3s; }
.logo span:nth-child(5) { animation-delay: .4s; } .logo span:nth-child(6) { animation-delay: .5s; } .logo span:nth-child(7) { animation-delay: .6s; }
.logo span:nth-child(8) { animation-delay: .7s; } .logo span:nth-child(9) { animation-delay: .8s; } .logo span:nth-child(10) { animation-delay: .9s; } .logo span:nth-child(11) { animation-delay: 1s; }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.badges-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges-row li { background: rgba(255, 255, 255, .7); border-radius: 99px; padding: 2px 12px; font-size: .9rem; font-weight: 700; }

/* eilandenzee in de hero */
.hero-art { display: grid; place-items: center; }
.sea { position: relative; width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #b5e6ff 0%, var(--sea) 60%, #4fb6f0 100%);
  box-shadow: inset 0 -14px 0 rgba(0, 0, 0, .06), var(--shadow); }
.isle { position: absolute; width: 22%; aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(1.6rem, 5vw, 2.4rem);
  background: radial-gradient(circle at 50% 45%, var(--sand) 55%, color-mix(in srgb, var(--c) 70%, #fff) 56%);
  border-radius: 50% 46% 52% 48%; box-shadow: 0 6px 0 rgba(0, 0, 0, .1); animation: float 5s ease-in-out infinite; }
.i1 { top: 8%; left: 18%; } .i2 { top: 6%; right: 16%; animation-delay: -1s; } .i3 { top: 38%; left: 4%; animation-delay: -2s; }
.i4 { top: 38%; right: 4%; animation-delay: -3s; } .i5 { bottom: 8%; left: 20%; animation-delay: -1.5s; } .i6 { bottom: 6%; right: 20%; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-8px) rotate(2deg); } }
.owl { position: absolute; top: 34%; left: 50%; transform: translateX(-50%); font-size: clamp(3rem, 10vw, 4.6rem); line-height: 1; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .1)); }
.speech { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; border-radius: 16px 16px 16px 4px; padding: 4px 12px; font-size: .95rem; font-weight: 700; box-shadow: var(--shadow); margin-bottom: 6px; }
.pack { position: absolute; bottom: 30%; left: 50%; transform: translateX(-50%); font-size: clamp(1.8rem, 6vw, 2.6rem); }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-6px) rotate(-3deg); } }

/* banden */
.band { padding: 40px 0; }
.sub { color: var(--muted); margin-bottom: 18px; }

.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; background: var(--paper); border-radius: var(--r); padding: 22px 20px 18px; box-shadow: var(--shadow); }
.step .num { position: absolute; top: -14px; left: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-weight: 800; box-shadow: 0 3px 0 #c99600; }
.step-ico { display: block; font-size: 2.4rem; margin-bottom: 4px; }
.step b { font-size: 1.2rem; }
.step p { color: var(--muted); }

.islands { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.islands li { background: var(--paper); border-radius: 20px; padding: 14px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; text-align: center;
  border-bottom: 6px solid var(--c); transition: transform .15s; }
.islands li:hover { transform: translateY(-4px) rotate(-1deg); }
.islands span { font-size: 2.2rem; line-height: 1.2; }
.islands small { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.feature { background: var(--paper); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.feature > span { font-size: 2.4rem; }
.feature h3 { font-size: 1.2rem; margin-top: 6px; }
.feature p { color: var(--muted); }

.parents-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: linear-gradient(135deg, #fff 0%, #f1f8ff 100%); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.parents-art { font-size: 7rem; line-height: 1; }
.checks { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 800; font-size: .85rem; }

.final { text-align: center; padding: 48px 0 56px; }
.final-owl { font-size: 4rem; animation: hop 2.4s ease-in-out infinite; }
.final p { color: var(--muted); margin-bottom: 18px; font-size: 1.15rem; }
@keyframes hop { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-14px); } }

.foot { text-align: center; padding: 18px 16px 28px; color: var(--muted); font-size: .9rem; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; text-align: center; }
  .lead { margin: 0 auto; }
  .cta, .badges-row { justify-content: center; }
  .hero-art { order: -1; }
  .sea { width: min(80vw, 340px); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .parents-card { grid-template-columns: 1fr; }
  .parents-art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sky { display: none; }
}
