/* KiddoLand website. Colours and font match the app (KidsColors, Fredoka). */
:root {
  --ink: #3a2e39;
  --soft: #6b5e6e;
  --bg: #fff8ec;
  --card: #ffffff;
  --line: #f0e4d2;
  --purple: #7e6be0;
  --pink: #ec5e8c;
  --orange: #ff8a4c;
  --yellow: #ffc83d;
  --green: #58b947;
  --blue: #4fa3f7;
  --teal: #26b5a6;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(58, 46, 57, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 18px;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); }

/* Only the chosen language shows; lang.js sets data-lang on <html>. */
html[data-lang="en"] [data-es], html[data-lang="es"] [data-en] { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------------- header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 248, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 1.4rem; }
.brand img { width: 44px; height: 44px; }
.rainbow span:nth-child(6n+1) { color: var(--pink); }
.rainbow span:nth-child(6n+2) { color: var(--orange); }
.rainbow span:nth-child(6n+3) { color: #e0a800; }
.rainbow span:nth-child(6n+4) { color: var(--green); }
.rainbow span:nth-child(6n+5) { color: var(--blue); }
.rainbow span:nth-child(6n+6) { color: var(--purple); }
nav.links { margin-left: auto; display: flex; align-items: center; gap: 18px; }
nav.links a { color: var(--ink); text-decoration: none; font-weight: 500; }
nav.links a:hover { color: var(--purple); }
.lang-toggle {
  border: 2px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 0.9rem; cursor: pointer;
}
@media (max-width: 720px) {
  nav.links a.hide-sm { display: none; }
  .brand .name { display: none; }
}

/* ---------------------------------------------------------------- hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.05; margin: 0 0 12px; }
.hero p.lead { font-size: 1.25rem; color: var(--soft); margin: 0 0 24px; }
.hero .mascot { position: relative; }
.hero .mascot img { width: min(380px, 80vw); margin: 0 auto; animation: bob 3.2s ease-in-out infinite; }
.hero .float { position: absolute; width: 64px; animation: bob 4s ease-in-out infinite; }
.hero .float.a { top: 4%; left: 6%; animation-delay: -1s; }
.hero .float.b { top: 12%; right: 4%; animation-delay: -2s; }
.hero .float.c { bottom: 6%; left: 2%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero .mascot img, .hero .float { animation: none; } }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .stores { justify-content: center; }
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 180px; padding: 10px 20px; border-radius: 18px;
  background: var(--ink); color: #fff; text-decoration: none; line-height: 1.2;
}
.store small { opacity: 0.75; font-size: 0.75rem; }
.store strong { font-size: 1.1rem; }
.store.soon { background: #8a7f8c; cursor: default; }

/* ---------------------------------------------------------------- sections */
section { padding: 48px 0; }
section h2 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin: 0 0 8px; text-align: center; }
section p.sub { text-align: center; color: var(--soft); margin: 0 auto 32px; max-width: 640px; }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; border: 1px solid var(--line);
}

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.game { text-align: center; padding: 16px 10px; }
.game img { width: 72px; height: 72px; margin: 0 auto 8px; }
.game span { font-weight: 600; font-size: 0.95rem; line-height: 1.2; display: block; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.shots figure { flex: 0 0 auto; width: 230px; margin: 0; scroll-snap-align: center; text-align: center; }
.shots img {
  width: 230px; border-radius: 32px; border: 8px solid var(--ink); box-shadow: var(--shadow); background: #fff;
}
.shots figcaption { margin-top: 10px; color: var(--soft); font-size: 0.95rem; }
@media (min-width: 1000px) { .shots { justify-content: center; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature h3 { margin: 8px 0 4px; font-size: 1.2rem; }
.feature p { margin: 0; color: var(--soft); }
.feature img { width: 56px; height: 56px; }

.parents { background: linear-gradient(180deg, #f3efff, #fff8ec); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.checks li { background: var(--card); border-radius: 20px; padding: 14px 16px 14px 48px; position: relative; border: 1px solid var(--line); }
.checks li::before {
  content: "✓"; position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.9rem;
}

/* ---------------------------------------------------------------- documents */
.doc { max-width: 780px; margin: 0 auto; padding: 40px 16px 64px; }
.doc h1 { color: var(--purple); font-size: clamp(2rem, 5vw, 2.6rem); margin: 0 0 4px; line-height: 1.15; }
.doc h2 { margin-top: 1.8em; font-size: 1.4rem; }
.doc .muted { color: var(--soft); }
.doc li { margin-bottom: 6px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
.contact { display: flex; gap: 16px; align-items: center; margin: 24px 0; }
.contact img { width: 72px; height: 72px; flex: none; }
.button {
  display: inline-block; background: var(--purple); color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 24px; border-radius: 999px;
}

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--soft); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; }
footer a { color: var(--soft); }
