/* Puddle Pals — shared site styles */

:root {
  --water: #5BC8E8;
  --water-deep: #2FA8D5;
  --foam: #FFF7E6;
  --duck-yellow: #FFD23F;
  --beak: #FF8A3D;
  --ink: #2B3A55;
  --grass: #8FD68A;
  --grass-deep: #5FB86A;
  --pad: #5CB85C;
  --white: #ffffff;
  --shadow: rgba(43, 58, 85, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Fredoka", "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--foam);
  line-height: 1.5;
}

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

a { color: var(--water-deep); }
a:hover { color: var(--beak); }

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

/* ---------- Top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 247, 230, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--pad);
}
.topnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; }
.navlinks { display: flex; gap: 18px; font-weight: 600; flex-wrap: wrap; }
.navlinks a { text-decoration: none; color: var(--ink); white-space: nowrap; }
.navlinks a:hover { color: var(--water-deep); }

@media (max-width: 480px) {
  .brand { font-size: 1.05rem; }
  .brand img { width: 32px; height: 32px; }
  .navlinks { gap: 12px; font-size: 0.9rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #BEE9FA 0%, var(--water) 55%, var(--water-deep) 100%);
  padding: 64px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  background: var(--grass);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleX(1.3);
}
.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  box-shadow: 0 12px 30px var(--shadow);
  margin: 0 auto 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin: 0 0 8px;
  color: var(--white);
  text-shadow: 0 3px 0 rgba(43,58,85,0.35);
}
.hero .tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--foam);
  display: inline-block;
  padding: 8px 22px;
  border-radius: 999px;
  margin-bottom: 26px;
  box-shadow: 0 4px 0 rgba(43,58,85,0.15);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}
.badge {
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 999px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 16px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 24px; height: 24px; }
.store-note {
  margin-top: 14px;
  color: var(--white);
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ---------- Screenshot strip ---------- */
.shots {
  margin-top: -70px;
  padding-bottom: 40px;
}
.shots-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 24px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots-row::-webkit-scrollbar { height: 8px; }
.shots-row::-webkit-scrollbar-thumb { background: var(--pad); border-radius: 8px; }
.shot-card {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: 0 10px 24px var(--shadow);
}
.shot-card img {
  border-radius: 12px;
}
.shot-caption {
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 8px;
  color: var(--ink);
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--white); }
h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  text-align: center;
  margin: 0 0 12px;
}
.section-sub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
  color: #55617e;
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--foam);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(43,58,85,0.08);
}
.feature-emoji { font-size: 2.4rem; margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-card p { margin: 0; color: #55617e; font-size: 0.95rem; }

.games-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.game-pill {
  background: var(--grass);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
}

.parent-panel {
  background: var(--water);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
}
.parent-panel h2 { color: var(--white); }
.parent-panel .section-sub { color: rgba(255,255,255,0.9); }
.check-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  display: grid;
  gap: 14px;
}
.check-list li {
  background: rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
}
.check-list li::before {
  content: "✓";
  font-weight: 900;
  background: var(--duck-yellow);
  color: var(--ink);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-band {
  text-align: center;
  padding: 70px 0;
  background: linear-gradient(180deg, var(--grass) 0%, var(--grass-deep) 100%);
  color: var(--ink);
}
.cta-band h2 { color: var(--ink); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 28px;
  font-size: 0.9rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
footer a { color: var(--white); text-decoration: underline; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-copy { opacity: 0.7; }

/* ---------- Legal pages (privacy / support) ---------- */
.legal {
  background: var(--white);
  max-width: 780px;
  margin: 40px auto 80px;
  padding: 44px 48px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px var(--shadow);
}
.legal h1 { margin-top: 0; }
.legal .updated {
  color: #7a869e;
  font-size: 0.9rem;
  margin-bottom: 30px;
}
.legal h2 {
  text-align: left;
  font-size: 1.3rem;
  margin-top: 36px;
}
.legal p, .legal li { color: #3d4a63; }
.legal ul { padding-left: 22px; }
.legal-page-hero {
  background: linear-gradient(180deg, #BEE9FA 0%, var(--water) 100%);
  padding: 50px 0 20px;
  text-align: center;
}
.legal-page-hero h1 { color: var(--white); text-shadow: 0 3px 0 rgba(43,58,85,0.3); }
.callout {
  background: var(--foam);
  border-left: 6px solid var(--pad);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}

@media (max-width: 560px) {
  .legal { padding: 30px 22px; margin: 24px 14px 60px; }
}
