@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --coral: #FF5A36;
  --coral-dark: #C2431F;
  --teal: #1D9E75;
  --blue: #378ADD;
  --amber: #EF9F27;
  --amber-text: #412402;
  --pink: #D4537E;
  --text: #1E1B2E;
  --text-muted: #6B6478;
  --bg: #FFF7ED;
  --card: #FFFFFF;
  --border: #F1E4D8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--coral);
  overflow: hidden;
  padding: 100px 24px 150px;
  text-align: center;
}

.blob { position: absolute; border-radius: 50%; opacity: 0.35; }
.blob-1 { width: 260px; height: 260px; background: var(--amber); top: -90px; left: -80px; }
.blob-2 { width: 220px; height: 220px; background: var(--teal); bottom: -60px; right: -60px; }

.minicard {
  position: absolute;
  background: rgba(255,255,255,0.62);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(30,27,46,0.88);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: max-content;
  white-space: nowrap;
  opacity: 0;
  animation: mc-in 0.9s ease both, bob 4s ease-in-out infinite;
}
@keyframes mc-in { from { opacity: 0; } to { opacity: 1; } }
.mctag {
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.sz-sm { font-size: 12px; padding: 10px 14px; }
.sz-md { font-size: 13px; padding: 12px 16px; }
.sz-lg { font-size: 14.5px; padding: 13px 18px; }

@media (max-width: 720px) {
  .minicard { display: none; }
}

/* --py is set by the parallax script so cards drift at different depths on scroll */
@keyframes bob {
  0%, 100% { transform: translateY(var(--py, 0px)) rotate(var(--r, 0deg)); }
  50% { transform: translateY(calc(var(--py, 0px) - 10px)) rotate(var(--r, 0deg)); }
}

.logo {
  position: relative;
  z-index: 2;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 13vw, 118px);
  color: #fff;
  letter-spacing: -1.5px;
  margin: 0;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.tagline {
  position: relative;
  z-index: 2;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 2.4vw, 20px);
  color: #FFE4D6;
  margin: 14px 0 40px;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.store-badges {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.scroll-hint {
  position: absolute;
  bottom: 106px;
  left: 50%;
  margin-left: -9px;
  z-index: 2;
  opacity: 0.85;
  transition: opacity 0.4s ease;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}
.scroll-hint span {
  display: block;
  width: 13px;
  height: 13px;
  border-right: 3px solid rgba(255,255,255,0.85);
  border-bottom: 3px solid rgba(255,255,255,0.85);
  border-radius: 2px;
  animation: hint-bob 1.6s ease-in-out infinite;
}
.scroll-hint.gone { opacity: 0; }
@keyframes hint-bob {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(7px) rotate(45deg); }
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 11px 20px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: default;
  opacity: 0.94;
}
.appstore-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.appstore-badge .lines { text-align: left; line-height: 1.2; }
.appstore-badge .small { font-size: 10px; color: #ddd; display: block; }
.appstore-badge .big { font-size: 16px; font-weight: 700; display: block; }

/* ---------- Main content ---------- */

main {
  max-width: 880px;
  margin: -80px auto 0;
  padding: 0 24px 60px;
  position: relative;
  z-index: 3;
}

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.section-kicker {
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--text);
}
h2:first-child, .card > .section-kicker + h2 { margin-top: 0; }

p, li { color: var(--text-muted); font-size: 15.5px; }

/* value props grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 680px) { .grid-3 { grid-template-columns: 1fr; } }

.feature {
  background: var(--bg);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.07);
}
.feature:hover .icon { transform: rotate(-8deg) scale(1.12); }
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature.f1 .icon { background: #FAEEDA; }
.feature.f2 .icon { background: #E1F5EE; }
.feature.f3 .icon { background: #E6F1FB; }
.feature h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}
.feature p { font-size: 14px; margin: 0; }

/* badge tier strip */
.badge-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 24px;
  background: var(--bg);
  border-radius: 18px;
  border: 1px solid var(--border);
}
.badge-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 76px;
}

/* badge tiers spring in one by one once the strip scrolls into view */
.badge-strip.reveal .badge-tier,
.badge-strip.reveal .badge-arrow {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.badge-strip.reveal.in .badge-tier,
.badge-strip.reveal.in .badge-arrow {
  opacity: 1;
  transform: scale(1);
}
.badge-strip.reveal > *:nth-child(2) { transition-delay: 0.09s; }
.badge-strip.reveal > *:nth-child(3) { transition-delay: 0.18s; }
.badge-strip.reveal > *:nth-child(4) { transition-delay: 0.27s; }
.badge-strip.reveal > *:nth-child(5) { transition-delay: 0.36s; }
.badge-strip.reveal > *:nth-child(6) { transition-delay: 0.45s; }
.badge-strip.reveal > *:nth-child(7) { transition-delay: 0.54s; }
.badge-strip.reveal > *:nth-child(8) { transition-delay: 0.63s; }
.badge-strip.reveal > *:nth-child(9) { transition-delay: 0.72s; }
.badge-emoji { font-size: 28px; }
.badge-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.badge-pts { font-size: 11.5px; color: var(--text-muted); }
.badge-tier-top .badge-name { color: var(--coral); }
.badge-arrow { color: var(--border); font-size: 18px; }
@media (max-width: 680px) {
  .badge-arrow { display: none; }
  .badge-strip { gap: 20px 14px; }
}

/* how it works */
.steps {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 160px;
  text-align: center;
}
.step .num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.step.reveal .num {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--d, 0s) + 0.15s);
}
.step.reveal.in .num {
  opacity: 1;
  transform: scale(1);
}
.step h3 { font-family: 'Fredoka', sans-serif; font-size: 15px; font-weight: 600; color: var(--text); margin: 0 0 6px; }
.step p { font-size: 13.5px; margin: 0; }

nav.legal-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 0 0;
}
nav.legal-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
nav.legal-nav a:hover { color: var(--coral); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.grid-3 > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { --d: 0.12s; }
.grid-3 > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { --d: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .minicard, .logo, .tagline, .store-badges, .scroll-hint, .scroll-hint span { animation: none; opacity: 1; }
  .reveal, .badge-strip.reveal .badge-tier, .badge-strip.reveal .badge-arrow, .step.reveal .num {
    opacity: 1; transform: none; transition: none;
  }
}

/* ---------- Closing CTA ---------- */

.cta-card {
  background: var(--coral);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card .blob-3 { width: 200px; height: 200px; background: var(--amber); top: -80px; right: -70px; }
.cta-card .blob-4 { width: 170px; height: 170px; background: var(--pink); bottom: -70px; left: -60px; }
.cta-inner { position: relative; z-index: 2; }
.cta-card h2 { color: #fff; }
.cta-card p { color: #FFE4D6; max-width: 480px; margin: 8px auto 0; }
.cta-btn {
  display: inline-block;
  margin-top: 26px;
  background: #fff;
  color: var(--coral);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* ---------- Sub pages (privacy/terms/support) ---------- */

.subheader {
  background: var(--coral);
  padding: 48px 24px 64px;
  text-align: center;
  color: #fff;
}
.subheader img { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 14px; }
.subheader h1 {
  font-family: 'Fredoka', sans-serif;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}
.subheader nav { display: flex; gap: 18px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.subheader nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  background: rgba(255,255,255,0.18);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
}
.sub-main {
  max-width: 720px;
  margin: -32px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.updated { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
}
