:root {
  --violet: #6a5acd;
  --violet-deep: #4c3aad;
  --pink: #ffb6c1;
  --pink-deep: #ff8fa3;
  --yellow: #ffd54a;
  --mint: #7edc8a;
  --sky: #d7f4fb;
  --ink: #2c2a33;
  --muted: #5e5a6b;
  --card: #ffffff;
  --radius: 28px;
  --shadow: 0 18px 40px rgba(74, 58, 140, 0.12);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% -10%, rgba(255, 182, 193, 0.55), transparent 32%),
    radial-gradient(circle at -10% 20%, rgba(168, 230, 241, 0.7), transparent 34%),
    radial-gradient(circle at 80% 90%, rgba(255, 213, 74, 0.28), transparent 28%),
    #f8fbff;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--violet-deep); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; letter-spacing: -0.02em; margin: 0; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 700; }
.nav-toggle { display: none; }
.menu-btn { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--yellow);
  color: #3a2a00;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: 0 8px 0 #e2b423;
}
.btn.violet { background: var(--violet); color: white; box-shadow: 0 8px 0 var(--violet-deep); }
.btn.ghost { background: white; box-shadow: 0 8px 0 #eadff8; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; padding: 12px 0 64px; }
.kicker { display: inline-block; background: white; color: var(--violet-deep); font-weight: 800; border-radius: 999px; padding: 6px 12px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 0.95; }
.hero h1 span { color: var(--violet); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.trust span { background: white; border-radius: 999px; padding: 6px 12px; font-size: 0.92rem; font-weight: 700; }

.devices { display: flex; align-items: center; justify-content: center; }
.phone, .tablet {
  background: #1c1c1e;
  padding: 10px;
  box-shadow: var(--shadow);
}
.phone { width: 230px; border-radius: 36px; position: relative; z-index: 2; }
.tablet { width: 280px; border-radius: 24px; margin-right: -40px; }
.phone img, .tablet img { border-radius: 26px; }

.section { padding: 28px 0 64px; }
.section h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 8px; }
.section .intro { color: var(--muted); max-width: 40rem; margin-bottom: 24px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 18px 20px;
  box-shadow: var(--shadow);
  min-height: 220px;
}
.card h3 { font-size: 1.45rem; margin: 10px 0 6px; }
.card p { margin: 0; color: var(--muted); }
.card.learn { background: #7c6bd6; color: white; }
.card.play { background: #ffb7c5; color: #5c2433; }
.card.create { background: #ffd0dc; color: #5c2433; }
.card.stories { background: #6a5acd; color: white; }
.card.learn p, .card.stories p { color: rgba(255,255,255,0.9); }
.card.play p, .card.create p { color: #6b3140; }
.emoji { font-size: 2rem; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature {
  background: white;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature h3 { margin-bottom: 8px; }
.feature ul { margin: 0; padding-left: 18px; color: var(--muted); }
.feature li { margin: 6px 0; }

.parents {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  background: white;
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.pills { display: flex; flex-direction: column; gap: 10px; }
.pill { background: var(--sky); border-radius: 18px; padding: 14px 16px; font-weight: 700; }

.page { padding-bottom: 64px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); margin: 10px 0 16px; }
.prose { background: white; border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.prose h2 { font-size: 1.4rem; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.form { display: grid; gap: 12px; margin-top: 16px; }
label { font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 2px solid #efeaf8;
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  background: #fbfaff;
}
textarea { min-height: 140px; resize: vertical; }
.note { font-size: 0.92rem; color: var(--muted); }

footer {
  padding: 28px 0 40px;
  color: var(--muted);
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(106, 90, 205, 0.15);
  padding-top: 18px;
}
.foot a { margin-right: 14px; font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .features, .parents, .grid { grid-template-columns: 1fr 1fr; }
  .tablet { display: none; }
  .phone { margin: 8px auto 0; }
}
@media (max-width: 680px) {
  .grid, .features, .parents { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex !important; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
    z-index: 20;
  }
  .nav-links .btn { box-shadow: none; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  header { position: relative; }
}
