/* ============================================================
   Kiddie Kiddie — marketing site
   Palette mirrors the app (AppColors):
     primary #4CAF96 · secondary #FFA726 · bg #FFFBF4 · text #3A3A3A
   ============================================================ */

:root {
  --primary: #4caf96;
  --primary-dark: #2e7d66;
  --primary-light: #b9e6d8;
  --secondary: #ffa726;
  --secondary-dark: #f57c00;
  --secondary-light: #ffe0b2;
  --bg: #fffbf4;
  --surface: #ffffff;
  --text: #3a3a3a;
  --text-soft: #6b6b6b;
  --alphabet: #ff7043;
  --numbers: #42a5f5;
  --colors: #ab47bc;
  --animals: #66bb6a;
  --stories: #ec407a;
  --songs: #29b6f6;
  --drawing: #ffa726;
  --rewards: #ffca28;
  --shadow-sm: 0 4px 14px rgba(46, 125, 102, 0.12);
  --shadow-md: 0 12px 34px rgba(46, 125, 102, 0.18);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Baloo 2", "Comic Sans MS", ui-rounded, sans-serif; line-height: 1.15; }

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46, 125, 102, 0.1);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { border-radius: 12px; }
.brand-name { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--primary-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary-dark); }
.nav-links .nav-cta { background: var(--primary); color: #fff; }
.nav-links .nav-cta:hover { background: var(--primary-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--primary-dark); border-radius: 3px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 110px; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; z-index: 0; }
.hero-blob-1 { width: 420px; height: 420px; background: var(--secondary-light); top: -120px; right: -80px; }
.hero-blob-2 { width: 460px; height: 460px; background: var(--primary-light); bottom: -180px; left: -120px; }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }

.hero-eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 18px;
}

.hero-title { font-size: clamp(2.6rem, 5vw, 4rem); margin: 0 0 8px; color: var(--text); }
.hero-tagline { display: block; color: var(--primary); font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

.hero-sub { font-size: 1.15rem; color: var(--text-soft); max-width: 52ch; margin: 18px 0 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--primary-dark); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary-light); }

.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.hero-badges li {
  background: var(--surface);
  border: 1px solid rgba(46, 125, 102, 0.18);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
}

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-logo { border-radius: 48px; box-shadow: var(--shadow-md); animation: float 5s ease-in-out infinite; }

.hero-emoji { position: absolute; font-size: 2.4rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15)); animation: float 4s ease-in-out infinite; }
.emoji-1 { top: -8px; left: 6%; animation-delay: 0.3s; }
.emoji-2 { top: 12%; right: 2%; animation-delay: 0.9s; }
.emoji-3 { bottom: 16%; left: 0; animation-delay: 1.4s; }
.emoji-4 { bottom: 2%; right: 8%; animation-delay: 0.6s; }
.emoji-5 { top: -20px; right: 26%; animation-delay: 1.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: linear-gradient(180deg, #fff8ec, #f3fbf7); }
.section-cta { background: linear-gradient(160deg, var(--primary-dark), var(--primary)); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-kicker {
  display: inline-block;
  color: var(--primary-dark);
  background: var(--primary-light);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0 0 14px;
}
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 10px; }
.section-sub { color: var(--text-soft); font-size: 1.05rem; margin: 0; }
.section-cta .section-kicker { background: rgba(255,255,255,0.18); color: #fff; }
.section-cta .section-title { color: #fff; }
.section-cta .section-sub { color: rgba(255,255,255,0.9); }

/* ---------- Spotlight cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.spot-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--accent, var(--primary));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.spot-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.spot-trace { --accent: var(--alphabet); }
.spot-draw { --accent: var(--drawing); }
.spot-play { --accent: var(--primary); }

.spot-icon { font-size: 2.6rem; margin-bottom: 12px; }
.spot-card h3 { font-size: 1.4rem; margin: 0 0 8px; }
.spot-card p { color: var(--text-soft); margin: 0; }

/* ---------- Screenshots ---------- */
.shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.shot {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot figcaption { padding: 12px 18px; font-weight: 800; color: var(--primary-dark); background: #fff; }

/* ---------- Video ---------- */
.video-shell {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.video-shell img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-shell .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-shell:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.video-shell .video-soon {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(46, 125, 102, 0.9);
  color: #fff;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.video-shell:focus-visible { outline: 4px solid var(--secondary); outline-offset: 2px; }

/* ---------- Mini cards ---------- */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.mini-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-bottom: 4px solid var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mini-emoji { font-size: 2rem; }
.mini-card h3 { margin: 10px 0 6px; font-size: 1.2rem; color: var(--accent); }
.mini-card p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Parents ---------- */
.parent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.parent-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.parent-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.parent-emoji { font-size: 2.8rem; }
.parent-card h3 { font-size: 1.35rem; margin: 14px 0 8px; }
.parent-card p { color: var(--text-soft); margin: 0; }

/* ---------- Download ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.dl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  padding: 32px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.dl-os { font-size: 2.8rem; }
.dl-name { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--primary-dark); }
.dl-meta { color: var(--text-soft); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); padding: 48px 0 36px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin: 8px 0 0; font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-content: flex-start; justify-content: flex-end; }
.footer-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-note { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 20px; margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.85rem; }
.footer-note p { margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; margin-bottom: 10px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .card-grid, .parent-grid, .dl-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid rgba(46, 125, 102, 0.15);
    box-shadow: var(--shadow-sm);
    padding: 14px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; text-align: center; }
}

@media (max-width: 560px) {
  .shot-grid, .mini-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 220px; height: 220px; }
}
