/* ============================================================
   Poplings — poppinnnnggggg static site
   Palette + personality straight from the app.
   ============================================================ */

:root {
  --coral: #ff6b6b;
  --teal: #3dc7bd;
  --sunshine: #ffd23f;
  --purple: #a385f9;
  --pink: #ff8cab;
  --mint: #8ce6a8;
  --cream: #fff7ec;
  --sky: #8fd1fa;
  --ink: #2d3142;
  --ink-soft: rgba(45, 49, 66, 0.68);
  --radius: 30px;
  --shadow-pop: 0 14px 34px rgba(45, 49, 66, 0.16);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Baloo 2", ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------------- top bar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid rgba(45, 49, 66, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 22px;
}

.topbar .brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(45, 49, 66, 0.2);
}

.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
}

.topbar nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15.5px;
  transition: color 0.15s, transform 0.15s;
  display: inline-block;
}

.topbar nav a:hover { color: var(--coral); transform: translateY(-2px) rotate(-1deg); }

.topbar .nav-cta {
  background: var(--coral);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

@media (max-width: 720px) {
  .topbar nav a:not(.nav-cta) { display: none; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #f95d5d 0%, #f7597f 45%, #6ec1f2 100%);
  color: #fff;
  text-align: center;
  padding: 92px 22px 96px;
  border-radius: 0 0 44px 44px;
}

.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }

.hero .logo-bounce {
  width: 128px;
  height: 128px;
  border-radius: 32px;
  margin: 0 auto 18px;
  box-shadow: 0 18px 40px rgba(45, 49, 66, 0.3);
  animation: heroBounce 3.2s ease-in-out infinite;
}

@keyframes heroBounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2.5deg); }
}

.hero h1 {
  font-size: clamp(52px, 9vw, 88px);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 0 rgba(45, 49, 66, 0.22), 0 12px 32px rgba(45, 49, 66, 0.3);
}

.hero .tagline {
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 800;
  margin: 8px 0 16px;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.hero .sub {
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.chip {
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 8px 17px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(45, 49, 66, 0.18);
}

.cta {
  display: inline-block;
  background: var(--sunshine);
  color: var(--ink);
  font-family: inherit;
  font-weight: 800;
  font-size: 19px;
  padding: 18px 42px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(45, 49, 66, 0.28);
  animation: ctaPulse 1.9s ease-in-out infinite;
  transition: transform 0.15s;
}

.cta:hover { transform: scale(1.05) rotate(-1deg); }

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(45, 49, 66, 0.28); transform: scale(1); }
  50% { box-shadow: 0 16px 40px rgba(45, 49, 66, 0.38); transform: scale(1.035); }
}

.hero .store-note {
  margin-top: 14px;
  font-size: 13.5px;
  opacity: 0.85;
}

/* floating decorations */

.floaty {
  position: absolute;
  font-size: clamp(30px, 5vw, 54px);
  opacity: 0.9;
  z-index: 1;
  animation: floaty 6s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(45, 49, 66, 0.2));
}

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

.floaty:nth-child(1) { top: 12%; left: 6%; animation-delay: 0s; }
.floaty:nth-child(2) { top: 20%; right: 8%; animation-delay: 0.8s; }
.floaty:nth-child(3) { bottom: 16%; left: 12%; animation-delay: 1.6s; }
.floaty:nth-child(4) { bottom: 22%; right: 14%; animation-delay: 2.4s; }
.floaty:nth-child(5) { top: 46%; left: 2%; animation-delay: 3.1s; font-size: clamp(22px, 3.4vw, 38px); }
.floaty:nth-child(6) { top: 52%; right: 3%; animation-delay: 3.8s; font-size: clamp(22px, 3.4vw, 38px); }

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

.section { padding: 78px 0; }
.section-alt { background: #fff; }
.section-alt-cream { background: var(--cream); }

.section h2 {
  text-align: center;
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 800;
  margin: 0 0 10px;
}

.section .lead {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 46px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

.kicker {
  display: block;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}

/* game cards */

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.game {
  border-radius: var(--radius);
  padding: 34px 22px 28px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-pop);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game:hover {
  transform: translateY(-8px) rotate(-1.2deg) scale(1.02);
  box-shadow: 0 22px 44px rgba(45, 49, 66, 0.22);
}

.game:nth-child(even):hover { transform: translateY(-8px) rotate(1.2deg) scale(1.02); }

.game .emoji {
  font-size: 56px;
  display: block;
  margin-bottom: 12px;
  animation: floaty 5s ease-in-out infinite;
}

.game h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.game p { margin: 0; font-size: 14.5px; opacity: 0.94; line-height: 1.45; }

.g-bubble { background: linear-gradient(150deg, #8fd1fa, #3dc7bd); }
.g-match { background: linear-gradient(150deg, #ffd23f, #ff6b6b); }
.g-colors { background: linear-gradient(150deg, #ff8cab, #a385f9); }
.g-star { background: linear-gradient(150deg, #a385f9, #8fd1fa); }
.g-racer { background: linear-gradient(150deg, #8ce6a8, #3dc7bd); }

/* screenshots */

.shots {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 10px 26px 34px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots::-webkit-scrollbar { height: 10px; }
.shots::-webkit-scrollbar-thumb { background: rgba(45, 49, 66, 0.18); border-radius: 99px; }
.shots::-webkit-scrollbar-track { background: rgba(45, 49, 66, 0.05); border-radius: 99px; }

.shot {
  flex: 0 0 auto;
  width: 248px;
  border-radius: 38px;
  border: 7px solid #fff;
  box-shadow: 0 20px 44px rgba(45, 49, 66, 0.24);
  scroll-snap-align: center;
  transform: rotate(-1.4deg);
  transition: transform 0.25s ease;
}

.shot:nth-child(even) { transform: rotate(1.6deg); }
.shot:hover { transform: rotate(0) translateY(-10px) scale(1.03); }

/* why parents */

.why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 3px solid rgba(45, 49, 66, 0.05);
  box-shadow: 0 10px 26px rgba(45, 49, 66, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.why-card:hover { transform: translateY(-5px); border-color: var(--sunshine); }

.why-card .emoji { font-size: 42px; display: block; margin-bottom: 10px; }
.why-card h3 { margin: 0 0 6px; font-size: 18.5px; font-weight: 800; }
.why-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* premium strip */

.premium {
  background: linear-gradient(140deg, var(--purple) 0%, #7c63e8 55%, var(--coral) 130%);
  border-radius: 44px;
  color: #fff;
  text-align: center;
  padding: 58px 30px;
  box-shadow: 0 22px 50px rgba(124, 99, 232, 0.4);
  position: relative;
  overflow: hidden;
}

.premium h2 { color: #fff; }
.premium .lead { color: rgba(255, 255, 255, 0.9); }

.price-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 6px 0 30px;
}

.price-chip {
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 18px 30px;
  min-width: 190px;
}

.price-chip.best {
  background: #fff;
  color: var(--ink);
  transform: scale(1.06);
  box-shadow: 0 14px 30px rgba(45, 49, 66, 0.3);
}

.price-chip .plan { font-weight: 800; font-size: 15px; opacity: 0.85; }
.price-chip .amount { font-size: 32px; font-weight: 800; margin: 2px 0; }
.price-chip .per { font-size: 13px; opacity: 0.8; }

.price-chip .save {
  display: inline-block;
  margin-top: 8px;
  background: var(--sunshine);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 12px;
}

.trial-note {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
}

/* FAQ */

.faq { max-width: 720px; margin: 0 auto; }

.faq details {
  background: #fff;
  border-radius: 22px;
  border: 3px solid rgba(45, 49, 66, 0.05);
  box-shadow: 0 8px 20px rgba(45, 49, 66, 0.06);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.faq details[open] { border-color: var(--teal); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 24px;
  font-weight: 800;
  font-size: 16.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 800;
  color: var(--coral);
  transition: transform 0.2s;
  line-height: 1;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .answer {
  padding: 0 24px 20px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 15px;
}

/* final CTA */

.final {
  text-align: center;
  padding: 84px 22px;
  background: linear-gradient(160deg, var(--teal) 0%, var(--sky) 100%);
  border-radius: 44px;
  color: #fff;
}

.final h2 { color: #fff; text-shadow: 0 3px 0 rgba(45, 49, 66, 0.15); }
.final .lead { color: rgba(255, 255, 255, 0.95); }

/* ---------------- legal pages ---------------- */

.legal-hero {
  background: linear-gradient(150deg, var(--purple), var(--sky));
  color: #fff;
  text-align: center;
  padding: 64px 22px 46px;
  border-radius: 0 0 40px 40px;
}

.legal-hero h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 800; margin: 0 0 6px; }
.legal-hero p { margin: 0; opacity: 0.92; font-size: 15.5px; }

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 24px 80px;
  line-height: 1.7;
  font-size: 16px;
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 34px 0 8px;
  color: var(--ink);
}

.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }

.legal-body .card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: 0 10px 26px rgba(45, 49, 66, 0.07);
  border: 3px solid rgba(45, 49, 66, 0.04);
}

.legal-body .short {
  background: linear-gradient(140deg, rgba(255, 210, 63, 0.18), rgba(61, 199, 189, 0.14));
  border: 3px solid rgba(255, 210, 63, 0.4);
}

.back-link {
  display: inline-block;
  margin-top: 34px;
  font-weight: 800;
  color: var(--teal);
  text-decoration: none;
  font-size: 16px;
}

.back-link:hover { color: var(--coral); }

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

footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 46px 22px 40px;
  text-align: center;
}

footer .foot-brand {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

footer .foot-links {
  display: flex;
  gap: 26px;
  justify-content: center;
  margin: 16px 0 14px;
  flex-wrap: wrap;
}

footer .foot-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

footer .foot-links a:hover { color: var(--sunshine); }

footer .fine { font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* ---------------- a11y + misc ---------------- */

:focus-visible {
  outline: 4px solid var(--sunshine);
  outline-offset: 3px;
  border-radius: 8px;
}

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

@media (max-width: 640px) {
  .hero { padding: 66px 18px 70px; }
  .section { padding: 58px 0; }
  .shot { width: 208px; }
  .price-chip.best { transform: none; }
}
