/* Moji Battery — kawaii sticker-scrapbook site */
:root {
  --milk: #FFF6FB;
  --milk-2: #FFEAF4;
  --bubblegum: #FF8FB8;
  --bubblegum-ink: #E5588F;
  --grape: #C9B6FF;
  --matcha: #A0E8D8;
  --custard: #FFE0A3;
  --peach: #FFC4B0;
  --cocoa: #4A3B44;
  --cocoa-soft: #7A6070;
  --white: #fff;
  --sticker-shadow: 6px 8px 0 rgba(74, 59, 68, .12);
  --ring: 3px solid var(--cocoa);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--cocoa);
  background: var(--milk);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo, .price-num, .btn { font-family: 'Fredoka', system-ui, sans-serif; }
a { color: var(--bubblegum-ink); text-decoration: none; font-weight: 700; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
img, svg { display: block; }

/* dotted paper texture */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 50% 50%, rgba(201,182,255,.10) 0 1.5px, transparent 2px) 0 0 / 26px 26px;
  pointer-events: none;
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,246,251,.82); backdrop-filter: blur(8px); border-bottom: 2px dashed var(--milk-2); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; }
.logo .lottie-mini { width: 40px; height: 40px; }
.nav-links { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--cocoa); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bubblegum); color: var(--white);
  padding: 13px 24px; border-radius: 999px; font-size: 16px; font-weight: 600;
  border: var(--ring); box-shadow: var(--sticker-shadow);
  transition: transform .12s ease, box-shadow .12s ease; cursor: pointer;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 9px 12px 0 rgba(74,59,68,.16); }
.btn:active { transform: translate(2px,3px); box-shadow: 2px 3px 0 rgba(74,59,68,.14); }
.btn.play { background: var(--white); color: var(--cocoa); }

/* Hero */
.hero { position: relative; padding: 70px 0 30px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; }
.hero h1 .wobble { display: inline-block; color: var(--bubblegum-ink); }
.hero p.lead { font-size: 20px; color: var(--cocoa-soft); margin: 20px 0 28px; max-width: 30ch; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 15px; color: var(--cocoa-soft); font-weight: 600; }

/* Battery mascot */
.mascot { position: relative; justify-self: center; width: min(420px, 86vw); }
.mascot-svg { width: 100%; height: auto; filter: drop-shadow(8px 12px 0 rgba(74,59,68,.10)); }
.sticker { position: absolute; width: 78px; height: 78px; }
.sticker.s1 { top: -6%; left: -8%; animation: bob 4s ease-in-out infinite; }
.sticker.s2 { top: 12%; right: -10%; width: 66px; height: 66px; animation: bob 5s ease-in-out infinite .6s; }
.sticker.s3 { bottom: 6%; left: -12%; width: 70px; height: 70px; animation: bob 4.5s ease-in-out infinite 1.1s; }
.sticker.s4 { bottom: -4%; right: -4%; animation: bob 5.4s ease-in-out infinite .3s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg) } 50% { transform: translateY(-14px) rotate(4deg) } }

/* Battery mascot animation */
.eye { transform-box: fill-box; transform-origin: center; animation: blink 4.2s infinite; }
.eye.r { animation-delay: .08s; }
@keyframes blink { 0%,92%,100% { transform: scaleY(1) } 95% { transform: scaleY(.12) } }
.liquid { animation: slosh 5s ease-in-out infinite; }
@keyframes slosh { 0%,100% { transform: translateX(-14px) } 50% { transform: translateX(0) } }
.fill-group { animation: charge 6s ease-in-out infinite; }
@keyframes charge { 0%,100% { transform: translateY(6px) } 50% { transform: translateY(-6px) } }
.bolt { transform-box: fill-box; transform-origin: center; animation: zap 2.6s ease-in-out infinite; }
@keyframes zap { 0%,100% { transform: scale(1) rotate(0) } 50% { transform: scale(1.14) rotate(-6deg) } }
.spark { transform-box: fill-box; transform-origin: center; animation: twinkle 2.2s ease-in-out infinite; }
.spark.b { animation-delay: .7s; } .spark.c { animation-delay: 1.3s; }
@keyframes twinkle { 0%,100% { opacity:.35; transform: scale(.7) } 50% { opacity:1; transform: scale(1.15) } }

/* squiggle divider */
.squiggle { width: 100%; height: 26px; color: var(--grape); }

/* Reactions band */
.reactions { padding: 30px 0 10px; }
.reactions h2 { text-align: center; font-size: clamp(30px, 4vw, 44px); }
.reactions .kicker { text-align: center; color: var(--cocoa-soft); font-size: 18px; margin: 8px auto 34px; max-width: 46ch; }
.react-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.react {
  background: var(--white); border: var(--ring); border-radius: 26px; box-shadow: var(--sticker-shadow);
  width: 168px; padding: 16px 14px 18px; text-align: center;
}
.react:nth-child(odd) { transform: rotate(-2.5deg); }
.react:nth-child(even) { transform: rotate(2deg); }
.react .face { width: 96px; height: 96px; margin: 0 auto 6px; }
.react b { display: block; font-family: 'Fredoka'; font-size: 17px; }
.react span { font-size: 13px; color: var(--cocoa-soft); }

/* Features — sticker sheet */
.features { padding: 60px 0; }
.features h2 { text-align: center; font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.features .kicker { text-align: center; color: var(--cocoa-soft); font-size: 18px; margin: 0 auto 40px; max-width: 50ch; }
.sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile {
  position: relative; background: var(--white); border: var(--ring); border-radius: 28px;
  box-shadow: var(--sticker-shadow); padding: 26px 24px;
}
.tile:nth-child(3n+1) { transform: rotate(-1.4deg); }
.tile:nth-child(3n+3) { transform: rotate(1.4deg); }
.tile .tab {
  position: absolute; top: -14px; left: 22px; background: var(--custard); color: var(--cocoa);
  border: var(--ring); border-radius: 999px; padding: 3px 14px; font-family: 'Fredoka'; font-size: 14px; font-weight: 600;
}
.tile.g .tab { background: var(--grape); } .tile.m .tab { background: var(--matcha); }
.tile.p .tab { background: var(--peach); } .tile.b .tab { background: var(--bubblegum); color:#fff; }
.tile .big { font-size: 40px; margin: 10px 0 8px; }
.tile h3 { font-size: 21px; }
.tile p { color: var(--cocoa-soft); margin-top: 6px; }

/* Pricing */
.pricing { padding: 30px 0 70px; }
.pricing h2 { text-align: center; font-size: clamp(30px, 4vw, 44px); }
.pricing .kicker { text-align:center; color: var(--cocoa-soft); font-size: 18px; margin: 8px auto 36px; max-width: 46ch; }
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 840px; margin: 0 auto; }
.plan { background: var(--white); border: var(--ring); border-radius: 28px; box-shadow: var(--sticker-shadow); padding: 28px 22px; text-align: center; }
.plan.hi { background: linear-gradient(180deg, #fff, var(--milk-2)); transform: scale(1.04) rotate(-1deg); }
.plan .ribbon { display:inline-block; background: var(--bubblegum); color:#fff; border: var(--ring); border-radius: 999px; padding: 4px 14px; font-family:'Fredoka'; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.price-num { font-size: 40px; font-weight: 700; }
.plan .per { color: var(--cocoa-soft); font-weight: 700; }
.plan small { display:block; margin-top: 10px; color: var(--cocoa-soft); }

/* Footer */
.foot { background: var(--white); border-top: 3px dashed var(--milk-2); padding: 40px 0 30px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.foot .logo { font-size: 20px; }
.foot nav { margin-left: auto; display: flex; gap: 20px; }
.foot nav a { color: var(--cocoa-soft); }
.fineprint { color: var(--cocoa-soft); font-size: 14px; margin-top: 14px; font-weight: 600; }

/* Legal pages */
.legal { padding: 54px 0 40px; max-width: 760px; }
.legal h1 { font-size: 42px; }
.legal .updated { color: var(--cocoa-soft); font-weight: 700; margin: 6px 0 26px; }
.legal h2 { font-size: 23px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--cocoa); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal .callout { background: var(--custard); border: var(--ring); border-radius: 18px; box-shadow: var(--sticker-shadow); padding: 14px 18px; margin: 18px 0; }

/* Hero entrance (one orchestrated moment) */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }

@media (max-width: 900px) {
  .hero .wrap, .sheet, .plans { grid-template-columns: 1fr; }
  .sheet { gap: 30px; }
  .nav-links a:not(.btn) { display: none; }
  .plan.hi { transform: none; }
  .mascot { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, .sticker { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
