:root {
  color-scheme: light;
  --ink: #2b3a2e;
  --muted: #5f6f60;
  --cream: #fff8ec;
  --cream-deep: #fdf1da;
  --green: #2e7d4f;
  --green-deep: #1f5c3a;
  --grass: #7ecb8f;
  --yellow: #ffc93c;
  --yellow-soft: #ffe7a3;
  --orange: #e8762d;
  --pink: #ff8fb1;
  --sky-top: #aee4ff;
  --sky-bottom: #e6fff0;
  --card: #ffffff;
  --line: #ecdfc3;
  --radius: 26px;
  --shadow: 0 12px 32px rgba(47, 62, 42, 0.14);
  font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .wordmark, .btn {
  font-family: "Baloo 2", "Nunito", ui-rounded, ui-sans-serif, system-ui, sans-serif;
}

a { color: var(--green); }

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

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 248, 236, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--yellow);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid var(--yellow);
  transition: transform 0.3s ease;
}

.brand:hover img { transform: rotate(-10deg) scale(1.1); }

.wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
}

.site-nav a:hover { background: var(--yellow-soft); transform: rotate(-2deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active { transform: scale(0.94); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 0 var(--green-deep);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--green-deep); }

.btn-horn {
  background: var(--yellow);
  color: var(--green-deep);
  box-shadow: 0 6px 0 #d9a410;
}

.btn-horn:hover { transform: translateY(-3px) rotate(-2deg); box-shadow: 0 9px 0 #d9a410; }

.site-nav .btn { min-height: 42px; padding: 8px 18px; font-size: 1rem; box-shadow: 0 4px 0 var(--green-deep); }

/* ---------- hero scene ---------- */

.hero-scene {
  position: relative;
  min-height: min(92svh, 940px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(var(--sky-top), var(--sky-bottom) 78%);
  overflow: hidden;
}

.sun {
  position: absolute;
  top: 40px;
  right: 6vw;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3b0, #ffd23e 70%);
  box-shadow: 0 0 60px 18px rgba(255, 210, 62, 0.55);
  z-index: 1;
}

.sun .rays {
  position: absolute;
  inset: -34px;
  animation: spin 26s linear infinite;
}

.sun .rays::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 210, 62, 0.65) 0deg 9deg, transparent 9deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%);
  mask: radial-gradient(circle, transparent 56%, #000 57%);
}

.cloud {
  position: absolute;
  width: 160px;
  height: 54px;
  background: #fff;
  border-radius: 999px;
  opacity: 0.95;
  filter: drop-shadow(0 8px 12px rgba(120, 150, 170, 0.25));
  z-index: 1;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.cloud::before { width: 62px; height: 62px; top: -30px; left: 28px; }
.cloud::after { width: 44px; height: 44px; top: -20px; left: 84px; }

.cloud.c1 { top: 9%; animation: drift 48s linear infinite; }
.cloud.c2 { top: 22%; transform: scale(0.72); animation: drift 64s linear infinite; animation-delay: -22s; }
.cloud.c3 { top: 5%; transform: scale(0.55); animation: drift 38s linear infinite; animation-delay: -9s; }

@keyframes drift {
  from { left: -220px; }
  to { left: 110vw; }
}

.floaty {
  position: absolute;
  font-size: 1.9rem;
  z-index: 2;
  animation: floaty 5.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-22px) rotate(10deg); }
}

.hero-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 48px 20px 0;
}

.bubble-title {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: 1px;
}

.bubble-title .word { display: inline-block; white-space: nowrap; }

.bubble-title .word span {
  display: inline-block;
  animation: bob 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.08s);
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.85), 0 8px 18px rgba(47, 62, 42, 0.18);
}

.bubble-title .word span:nth-child(4n + 1) { color: var(--green); }
.bubble-title .word span:nth-child(4n + 2) { color: var(--orange); }
.bubble-title .word span:nth-child(4n + 3) { color: #e3a70c; }
.bubble-title .word span:nth-child(4n + 4) { color: #3f9ecf; }

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

.hero-copy .lede {
  margin: 14px auto 0;
  max-width: 520px;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 700;
  color: #3c5544;
}

.hero-copy .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

/* ---------- bus scene ---------- */

.scene {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding-top: 26px;
}

.hills {
  position: absolute;
  bottom: 64px;
  left: 0;
  width: 100%;
  z-index: -1;
}

.hills svg { display: block; width: 100%; height: 190px; }

.bus-wrap {
  position: relative;
  width: min(600px, 88vw);
  margin: 0 auto -6px;
  animation: busBob 1.7s ease-in-out infinite;
}

.bus-wrap.hop { animation: busHop 0.55s ease; }

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

@keyframes busHop {
  0% { transform: translateY(0); }
  35% { transform: translateY(-30px) rotate(-2deg); }
  70% { transform: translateY(0); }
  85% { transform: translateY(-9px); }
  100% { transform: translateY(0); }
}

.bus-wrap svg { width: 100%; height: auto; display: block; }

.wheel {
  animation: spin 1.15s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes spin { to { transform: rotate(360deg); } }

.puff {
  animation: puff 2.4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}

.puff.p2 { animation-delay: 0.8s; }
.puff.p3 { animation-delay: 1.6s; }

@keyframes puff {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  20% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(-46px, -34px) scale(1.5); }
}

.beep-bubble {
  position: absolute;
  top: -34px;
  right: 4%;
  background: #fff;
  color: var(--orange);
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  padding: 10px 22px;
  border-radius: 24px 24px 24px 6px;
  border: 4px solid var(--orange);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: scale(0.4) rotate(8deg);
  pointer-events: none;
  z-index: 4;
}

.beep-bubble.show { animation: beepPop 1.5s ease forwards; }

@keyframes beepPop {
  0% { opacity: 0; transform: scale(0.4) rotate(8deg); }
  16% { opacity: 1; transform: scale(1.12) rotate(-4deg); }
  28% { transform: scale(1) rotate(2deg); }
  78% { opacity: 1; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(0.7) translateY(-24px); }
}

.road {
  position: relative;
  height: 74px;
  background: #55645a;
  z-index: 3;
}

.road::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 10px;
  margin-top: -5px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 56px, transparent 56px 116px);
  animation: dashMove 0.7s linear infinite;
}

@keyframes dashMove { to { background-position-x: -116px; } }

.confetti {
  position: absolute;
  z-index: 5;
  font-size: 1.6rem;
  pointer-events: none;
  animation: confettiUp 1.3s ease-out forwards;
}

@keyframes confettiUp {
  0% { opacity: 1; transform: translateY(0) scale(0.7) rotate(0deg); }
  100% { opacity: 0; transform: translateY(-130px) scale(1.4) rotate(40deg); }
}

/* ---------- wave divider ---------- */

.wave { display: block; width: 100%; height: 70px; margin-bottom: -1px; }

/* ---------- pillars ---------- */

.pillars {
  background: var(--green);
  padding: 30px 0 40px;
}

.pillars .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green-deep);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.2s ease;
}

.pill:hover { transform: rotate(0deg) scale(1.12); }

.pill .emoji { font-size: 1.5rem; }

.pill:nth-child(1) { --tilt: -3deg; background: var(--yellow-soft); }
.pill:nth-child(2) { --tilt: 2deg; }
.pill:nth-child(3) { --tilt: -2deg; background: #ffe1ec; }
.pill:nth-child(4) { --tilt: 3deg; background: #dff3ff; }
.pill:nth-child(5) { --tilt: -2deg; background: #e8ffe0; }

/* ---------- sections ---------- */

.section { padding: 72px 0; position: relative; }

.section-yellow { background: #fff3d6; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--green-deep);
}

.section-head h2 .accent { color: var(--orange); }

.section-head p { margin: 0; color: var(--muted); font-size: 1.12rem; font-weight: 700; }

/* ---------- friends ---------- */

.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 26px;
}

.friend {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  border: 5px solid #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  padding-bottom: 18px;
  transform: rotate(var(--tilt, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.friend:nth-child(odd) { --tilt: -1.6deg; }
.friend:nth-child(even) { --tilt: 1.6deg; }

.friend img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.friend h3 {
  margin: -22px auto 4px;
  position: relative;
  width: max-content;
  background: var(--yellow);
  color: var(--green-deep);
  padding: 4px 20px;
  border-radius: 999px;
  border: 3px solid #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(47, 62, 42, 0.2);
  transform: translateZ(30px);
}

.friend .role {
  margin: 4px 12px 2px;
  color: var(--orange);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.friend p {
  margin: 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

/* ---------- episodes ---------- */

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 26px;
}

.episode {
  position: relative;
  display: block;
  border-radius: var(--radius);
  border: 6px solid #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  background: var(--card);
  transform: rotate(var(--tilt, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}

.episode:nth-child(3n + 1) { --tilt: -1.8deg; }
.episode:nth-child(3n + 2) { --tilt: 1.4deg; }
.episode:nth-child(3n + 3) { --tilt: -0.8deg; }

.episode img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

.episode .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 46px 14px 14px;
  background: linear-gradient(transparent, rgba(20, 40, 26, 0.9));
  color: #fff;
}

.episode .meta h3 { margin: 0 0 5px; font-size: 1.08rem; line-height: 1.2; }

.episode .tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 800;
}

.episode .play {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

.episode.coming { pointer-events: none; }
.episode.coming img { filter: saturate(0.75); opacity: 0.9; }
.episode.coming .play { display: none; }

.episode .soon {
  position: absolute;
  top: 14px;
  left: -34px;
  background: var(--orange);
  color: #fff;
  padding: 6px 40px;
  font-size: 0.85rem;
  font-weight: 800;
  transform: rotate(-35deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.episodes-cta { margin-top: 40px; text-align: center; }

/* ---------- parents ---------- */

.parents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.note {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.note .icon { font-size: 2rem; }

.note h3 { margin: 0 0 2px; color: var(--green-deep); font-size: 1.08rem; }

.note p { margin: 0; color: var(--muted); font-size: 0.95rem; font-weight: 700; }

/* ---------- workflow ---------- */

.workflow { background: var(--cream-deep); }

.workflow .wrap { padding: 34px 0; }

.workflow h2 { margin: 0 0 8px; font-size: 1.15rem; color: var(--green-deep); }

.workflow p { max-width: 760px; margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--green-deep);
  color: #e8f3ea;
  padding: 44px 0 34px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}

.site-footer .brand { color: #fff; }

.site-footer .signoff {
  font-family: "Baloo 2", sans-serif;
  font-size: 1.15rem;
  margin: 0;
  color: var(--yellow);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-left: auto;
}

.footer-links a { color: #e8f3ea; text-decoration: none; font-weight: 800; font-size: 0.95rem; }

.footer-links a:hover { text-decoration: underline; }

.site-footer .legal {
  width: 100%;
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: rgba(232, 243, 234, 0.75);
}

/* ---------- documents (privacy / terms / auth) ---------- */

.document {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.document h1 {
  margin: 8px 0 6px;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--green-deep);
}

.document h2 { margin: 32px 0 10px; font-size: 1.2rem; color: var(--green-deep); }

.document p { margin: 0 0 16px; color: var(--muted); }

.updated { font-size: 0.92rem; color: var(--orange); font-weight: 700; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .site-nav a:not(.btn) { display: none; }
  .sun { width: 84px; height: 84px; right: 4vw; top: 26px; }
}

@media (max-width: 560px) {
  .friends-grid { grid-template-columns: repeat(2, 1fr); }
  .episodes-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { margin-left: 0; }
  .brand img { width: 36px; height: 36px; }
  .wordmark { font-size: 1.02rem; white-space: nowrap; }
  .site-nav .btn { min-height: 36px; padding: 4px 14px; font-size: 0.92rem; }
  .hero-copy { padding-top: 30px; }
  .road { height: 56px; }
  .beep-bubble { font-size: 1.1rem; top: -26px; }
  .floaty { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
