:root {
  --sand: #F0E4CF;
  --sand-deep: #E6D6BA;
  --cream: #FBF5EA;
  --espresso: #4A3A2C;
  --espresso-soft: #9A8979;
  --honey: #F0A93C;
  --honey-deep: #D98E27;
  --sage: #79B09A;
  --clay: #DE8266;
  --sky: #7BA9C9;
  --berry: #C68AA6;

  --maxw: 1120px;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 18px 40px -18px rgba(74, 58, 44, 0.35);
  --shadow-soft: 0 10px 24px -14px rgba(74, 58, 44, 0.30);

  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.ink-honey { color: var(--honey-deep); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  margin-bottom: 18px;
}
.eyebrow--light { color: rgba(251, 245, 234, 0.75); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(240, 228, 207, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(74, 58, 44, 0.07);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__coin { width: 34px; height: 34px; filter: drop-shadow(0 4px 8px rgba(217, 142, 39, 0.35)); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 700; color: var(--espresso-soft); transition: color 0.15s ease; }
.nav a:hover { color: var(--espresso); }
.nav__cta {
  background: var(--espresso);
  color: var(--cream) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
}
.nav__cta:hover { background: #3a2d22; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__lede {
  font-size: 1.18rem;
  color: var(--espresso);
  max-width: 30em;
  margin-bottom: 30px;
}
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ghost-link { font-weight: 800; color: var(--honey-deep); }
.ghost-link:hover { color: var(--espresso); }

.hero__trust {
  margin-top: 26px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--espresso-soft);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(121, 176, 154, 0.22); }

/* Store badge */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  background: var(--espresso);
  color: var(--cream);
  padding: 11px 22px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.store-badge__top { font-size: 0.7rem; opacity: 0.8; }
.store-badge__bottom { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.store-badge--lg { padding: 14px 30px; }
.store-badge--lg .store-badge__bottom { font-size: 1.5rem; }

/* Hero coin art */
.coin-stage { position: relative; aspect-ratio: 1; max-width: 420px; margin-left: auto; }
.coin-hero {
  width: 72%;
  height: auto;
  display: block;
  margin: 14% auto 0;
  filter: drop-shadow(0 24px 38px rgba(217, 142, 39, 0.40));
  animation: bob 5s ease-in-out infinite;
}
.coin-float { position: absolute; opacity: 0.92; filter: drop-shadow(0 12px 18px rgba(217, 142, 39, 0.30)); }
.coin-float--a { width: 26%; top: 4%; right: 6%; animation: bob 4s ease-in-out infinite 0.3s; }
.coin-float--b { width: 18%; bottom: 10%; left: 0%; animation: bob 4.6s ease-in-out infinite 0.8s; }
.coin-float--c { width: 14%; top: 18%; left: 8%; animation: bob 5.4s ease-in-out infinite 1.2s; }

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

/* ---------- Mission ---------- */
.mission { padding: 92px 0; background: var(--cream); }
.mission__inner { max-width: 720px; text-align: center; }
.mission__statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.mission__body {
  font-size: 1.14rem;
  color: var(--espresso-soft);
  font-weight: 600;
  max-width: 36em;
  margin: 0 auto 16px;
}
.mission__body:last-child { margin-bottom: 0; }

/* ---------- Generic section ---------- */
.section { padding: 76px 0; }
.section--sand { background: var(--sand-deep); }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); text-align: center; letter-spacing: -0.01em; }
.section__title--left { text-align: left; }
.section__sub {
  text-align: center;
  max-width: 34em;
  margin: 16px auto 0;
  color: var(--espresso-soft);
  font-weight: 600;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
  counter-reset: none;
}
.step {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
}
.step__num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--honey), var(--honey-deep));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 18px;
  box-shadow: 0 8px 16px -8px rgba(217, 142, 39, 0.7);
}
.step__head { font-size: 1.3rem; margin-bottom: 8px; }
.step__body { color: var(--espresso-soft); font-weight: 600; }

/* ---------- Magic (signature) ---------- */
.magic {
  background: linear-gradient(150deg, #5a4636 0%, #4A3A2C 60%);
  color: var(--cream);
  padding: 84px 0;
}
.magic__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.magic__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 20px; }
.magic__lede { font-size: 1.1rem; color: rgba(251, 245, 234, 0.86); font-weight: 600; max-width: 30em; }
.magic__lede strong { color: var(--honey); }

.magic__chart {
  background: rgba(251, 245, 234, 0.06);
  border: 1px solid rgba(251, 245, 234, 0.12);
  border-radius: var(--radius);
  padding: 28px 26px 20px;
}
.bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: end;
  height: 240px;
}
.bar { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar::before {
  content: "";
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--honey), var(--honey-deep));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bar--peak::before { background: linear-gradient(180deg, #ffd27a, var(--honey)); }
.bars.in .bar::before { transform: scaleY(1); }
.bars.in .bar:nth-child(2)::before { transition-delay: 0.08s; }
.bars.in .bar:nth-child(3)::before { transition-delay: 0.16s; }
.bars.in .bar:nth-child(4)::before { transition-delay: 0.24s; }
.bars.in .bar:nth-child(5)::before { transition-delay: 0.32s; }
.bar__cap {
  position: absolute;
  bottom: -26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: rgba(251, 245, 234, 0.7);
}
.bars__note { margin-top: 36px; text-align: center; font-size: 0.82rem; color: rgba(251, 245, 234, 0.5); }

/* ---------- Features ---------- */
.features { padding: 78px 0; background: var(--cream); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.feature {
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 22px 22px;
}
.feature__icon { font-size: 1.6rem; line-height: 1; margin-bottom: 12px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { color: var(--espresso-soft); font-weight: 600; font-size: 0.97rem; }
.feature__learn {
  margin-top: 14px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--espresso) !important;
  font-family: var(--font-display);
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  background: rgba(121, 176, 154, 0.22);
  padding: 6px 12px;
  border-radius: 999px;
}
.feature__learn::before { content: "🌱"; font-size: 0.85rem; }

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}
.why-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}
.why-card__icon { font-size: 2rem; margin-bottom: 14px; }
.why-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.why-card p { color: var(--espresso-soft); font-weight: 600; }

/* ---------- Parents ---------- */
.parents { padding: 80px 0; }
.parents__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.check-list { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.check-list li {
  position: relative;
  padding-left: 38px;
  font-weight: 700;
  font-size: 1.05rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}
.pledge {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow);
  text-align: center;
}
.pledge__coin { width: 64px; height: 64px; margin-bottom: 18px; }
.pledge__quote { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.3; }
.pledge__by { margin-top: 16px; color: var(--espresso-soft); font-weight: 700; font-size: 0.92rem; }

/* ---------- Final CTA ---------- */
.final { padding: 90px 0; text-align: center; }
.final__inner { display: flex; flex-direction: column; align-items: center; }
.final__coin { width: 84px; height: 84px; margin-bottom: 22px; animation: bob 5s ease-in-out infinite; }
.final__title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.final__sub { color: var(--espresso-soft); font-weight: 600; margin: 12px 0 30px; max-width: 28em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: rgba(251, 245, 234, 0.8); padding: 40px 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; }
.brand--footer .brand__name { color: var(--cream); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-weight: 700; color: rgba(251, 245, 234, 0.8); }
.footer-nav a:hover { color: var(--honey); }
.copyright { width: 100%; font-size: 0.85rem; color: rgba(251, 245, 234, 0.55); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .coin-stage { max-width: 300px; margin: 0 auto; }
  .magic__inner, .parents__inner { grid-template-columns: 1fr; gap: 34px; }
  .steps, .why-grid { grid-template-columns: 1fr; }
  .section__title--left { text-align: center; }
  .check-list li { font-size: 1rem; }
}

@media (max-width: 560px) {
  .nav { gap: 14px; }
  .nav a:not(.nav__cta) { display: none; }
  .hero { padding: 40px 0 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coin-hero, .coin-float, .final__coin { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar::before { transform: scaleY(1); transition: none; }
}

/* ---------- Legal / content pages ---------- */
.page { padding: 60px 0 80px; }
.page__inner { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.page__updated { color: var(--espresso-soft); font-weight: 700; margin-bottom: 36px; }
.page h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.page p { margin-bottom: 14px; }
.page ul { margin: 0 0 16px 22px; }
.page li { margin-bottom: 8px; }
.page a:not(.brand) { color: var(--honey-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.back-link { display: inline-block; margin-top: 40px; font-weight: 800; color: var(--honey-deep); }
