:root {
  --sky: #5cc4f5;
  --sky-deep: #2a9fd8;
  --grass: #7dd33a;
  --grass-deep: #4ea21b;
  --sun: #ffd23f;
  --pink: #ff5fa2;
  --ink: #3b2416;
  --ink-soft: #6b5446;
  --cream: #fff8ec;
  --card: #ffffff;
  --line: #f0e2cc;
  --radius: 22px;
  --shadow: 0 6px 0 rgba(59, 36, 22, 0.12), 0 18px 40px rgba(59, 36, 22, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sky-deep); font-weight: 700; }
a:hover { color: var(--pink); }

h1, h2, h3, .brand { font-family: "Fredoka", "Nunito", sans-serif; line-height: 1.15; margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 248, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.top nav { display: flex; gap: 18px; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--pink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.1rem;
  text-decoration: none; border: 3px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.btn-play { background: var(--grass); color: #fff; box-shadow: 0 5px 0 var(--ink); text-shadow: 0 2px 0 rgba(0,0,0,0.2); }
.btn-play:hover { color: #fff; box-shadow: 0 7px 0 var(--ink); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn-ghost:hover { color: var(--ink); }
.btn small { display: block; font-size: 0.7rem; font-weight: 500; opacity: 0.9; line-height: 1; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0%, #a5e0fb 70%, var(--cream) 100%);
  padding: 56px 0 72px;
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.hero .logo { width: min(440px, 100%); filter: drop-shadow(0 6px 0 rgba(59,36,22,0.15)); }
.hero p.lead { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 18px 0 26px; max-width: 30ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .note { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); font-weight: 700; }
.hero .shot {
  border-radius: var(--radius); border: 5px solid #fff;
  box-shadow: var(--shadow); transform: rotate(1.5deg);
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.badges li {
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: 4px 12px; font-weight: 800; font-size: 0.85rem;
}

/* Sections */
section { padding: 72px 0; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; text-align: center; }
.section-sub { text-align: center; color: var(--ink-soft); max-width: 56ch; margin: 10px auto 40px; font-weight: 600; }

/* Buddies strip */
.buddies { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
.buddies li { text-align: center; font-family: "Fredoka", sans-serif; font-weight: 500; }
.buddies img {
  width: 92px; height: 92px; object-fit: contain;
  background: #fff; border-radius: 50%; padding: 10px; border: 3px solid var(--line);
  transition: transform 0.2s ease;
}
.buddies li:hover img { transform: translateY(-6px) rotate(-6deg); }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border: 2px solid var(--line); box-shadow: var(--shadow);
}
.card .emoji { font-size: 2rem; line-height: 1; }
.card h3 { font-size: 1.25rem; font-weight: 600; margin: 12px 0 6px; }
.card p { margin: 0; color: var(--ink-soft); }

/* Parents band */
.parents { background: #e9f8d9; border-top: 3px dashed #bfe59a; border-bottom: 3px dashed #bfe59a; }
.parents .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.parents h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 36px; margin: 10px 0; font-weight: 700; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--grass); color: #fff; font-size: 0.85rem;
  display: grid; place-items: center;
}
.parents img { border-radius: var(--radius); border: 5px solid #fff; box-shadow: var(--shadow); }

/* Gallery */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 520px);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 18px; margin: 0; list-style: none;
}
.gallery li { scroll-snap-align: start; }
.gallery img { border-radius: 18px; border: 4px solid #fff; box-shadow: var(--shadow); }

/* Download band */
.download { text-align: center; background: linear-gradient(180deg, var(--cream), #ffe9f3); }
.download .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Footer */
footer { background: var(--ink); color: #f6e9dc; padding: 36px 0; font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer a { color: var(--sun); }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Policy page */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 600; }
.doc .meta { color: var(--ink-soft); font-weight: 700; margin: 8px 0 28px; }
.doc h2 { font-size: 1.4rem; font-weight: 600; margin: 36px 0 10px; }
.doc p, .doc li { color: #4a3427; }
.doc ul { padding-left: 22px; }
.summary {
  background: #e9f8d9; border: 2px solid #bfe59a; border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 8px;
}
.summary h2 { margin-top: 0; }
.summary ul { margin: 0; }
table.facts { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
table.facts th, table.facts td { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line); vertical-align: top; }
table.facts th { font-family: "Fredoka", sans-serif; font-weight: 600; }

@media (max-width: 860px) {
  .hero .wrap, .parents .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .hero .shot { transform: none; }
  .grid { grid-template-columns: 1fr; }
  .top nav a.hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .buddies img { transition: none; }
}
