/* PollyGlot landing — jungle-toy aesthetic */
:root {
  --cream: #FFF9EF;
  --cream-deep: #FCF1DC;
  --ink: #17402B;
  --ink-soft: #4A6B58;
  --green: #1FB080;
  --green-deep: #0E8A62;
  --orange: #FF9E26;
  --orange-deep: #F0820A;
  --berry: #E0446E;
  --sky: #4FA8E8;
  --card: #FFFFFF;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-pop: 0 10px 30px rgba(23, 64, 43, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", "PingFang SC", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Baloo 2", "Nunito", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--green-deep); text-decoration: none; }

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

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; border-radius: 12px; box-shadow: var(--shadow-pop); }
.brand span { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.nav-links { display: flex; gap: 26px; align-items: center; font-weight: 700; font-size: .95rem; }
.nav-links a { color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--green-deep); }

.btn {
  display: inline-block; font-family: "Baloo 2", sans-serif; font-weight: 700;
  padding: 14px 30px; border-radius: 999px; font-size: 1.05rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(31,176,128,.35); }
.btn-green:hover { box-shadow: 0 12px 28px rgba(31,176,128,.45); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(255,158,38,.4); }
.btn-ghost { border: 2.5px solid var(--green); color: var(--green-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: 56px 0 90px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  font-weight: 800;
}
.hero h1 .u-green { color: var(--green-deep); }
.hero h1 .u-orange { color: var(--orange-deep); }
.hero p.lede {
  margin-top: 18px; font-size: 1.2rem; color: var(--ink-soft); max-width: 32rem;
}
.hero-cta { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: .85rem; color: var(--ink-soft); margin-top: 14px; }

.hero-polly { position: relative; text-align: center; }
.hero-polly img.polly {
  width: min(380px, 80%); filter: drop-shadow(0 24px 40px rgba(23,64,43,.18));
  animation: float 4.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}
.blob {
  position: absolute; border-radius: 50%; z-index: -1; opacity: .55; filter: blur(2px);
}
.blob.b1 { width: 340px; height: 340px; background: #CFF3E4; top: 6%; right: 4%; }
.blob.b2 { width: 120px; height: 120px; background: #FFE3B8; bottom: 4%; left: 8%; }
.blob.b3 { width: 62px; height: 62px; background: #FAD1DD; top: 12%; left: 16%; }

/* dotted confetti in hero */
.dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; }
.dot.d1 { background: var(--berry); top: 18%; right: 8%; }
.dot.d2 { background: var(--sky); bottom: 24%; right: 20%; width: 9px; height: 9px; }
.dot.d3 { background: var(--orange); top: 40%; left: 4%; width: 10px; height: 10px; }

/* ---------- Wave divider ---------- */
.wave { display: block; width: 100%; height: 70px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.sec-title { text-align: center; font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
.sec-sub { text-align: center; color: var(--ink-soft); margin: 12px auto 0; max-width: 36rem; font-size: 1.08rem; }

/* Features */
.features { background: var(--cream-deep); }
.feature-grid {
  margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature {
  background: var(--card); border-radius: var(--radius-lg); padding: 30px 26px;
  box-shadow: var(--shadow-pop); transition: transform .2s ease;
  border: 2px solid transparent;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(31,176,128,.25); }
.feature .ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 16px;
}
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: .98rem; }
.ico.green { background: #DEF5EB; }
.ico.orange { background: #FFEFD6; }
.ico.berry { background: #FBE1E9; }
.ico.sky { background: #E2F1FC; }

/* Evolution strip */
.evolution { text-align: center; }
.evo-strip {
  margin-top: 48px; display: flex; align-items: flex-end; justify-content: center;
  gap: 6px; flex-wrap: wrap;
}
.evo-item { text-align: center; flex: 0 1 150px; }
.evo-item img { width: 100%; max-width: 150px; transition: transform .25s ease; }
.evo-item:hover img { transform: scale(1.12) rotate(-3deg); }
.evo-item .evo-name { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: .95rem; margin-top: 6px; }
.evo-item .evo-xp { font-size: .8rem; color: var(--ink-soft); }
.evo-arrow { font-size: 1.6rem; color: var(--orange); align-self: center; padding-bottom: 40px; }

/* Screens */
.screens { background: linear-gradient(180deg, var(--cream) 0%, #EAF7F0 100%); }
.screens-flex { margin-top: 48px; display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.phone {
  width: 270px; border-radius: 42px; padding: 12px; background: var(--ink);
  box-shadow: 0 30px 60px rgba(23,64,43,.25);
  transition: transform .25s ease;
}
.phone:hover { transform: translateY(-8px) rotate(-1deg); }
.phone img { width: 100%; border-radius: 32px; display: block; }
.phone-caption { text-align: center; margin-top: 16px; font-weight: 700; color: var(--ink-soft); }

/* Pricing */
.pricing-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 780px; margin-left: auto; margin-right: auto; }
.plan {
  background: var(--card); border-radius: var(--radius-lg); padding: 36px 32px;
  box-shadow: var(--shadow-pop); position: relative;
}
.plan.plus { border: 3px solid var(--orange); }
.plan .tag {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-family: "Baloo 2", sans-serif; font-weight: 700;
  padding: 4px 18px; border-radius: 999px; font-size: .85rem;
}
.plan h3 { font-size: 1.5rem; }
.plan .price { font-family: "Baloo 2", sans-serif; font-size: 2.4rem; font-weight: 800; margin: 10px 0 2px; }
.plan .per { color: var(--ink-soft); font-size: .9rem; margin-bottom: 20px; }
.plan ul { list-style: none; }
.plan li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-soft); font-size: .98rem; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
.plan li.no::before { content: "—"; color: #C9C1B2; }

/* CTA band */
.cta-band {
  background: var(--green-deep);
  border-radius: var(--radius-lg);
  color: #fff; text-align: center; padding: 60px 32px;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { opacity: .85; margin: 12px auto 28px; max-width: 30rem; }
.cta-band .btn-orange { font-size: 1.15rem; padding: 16px 40px; }
.cta-band img.peek { position: absolute; width: 130px; bottom: -18px; right: 5%; transform: rotate(8deg); opacity: .95; }

/* Footer */
footer { padding: 48px 0 60px; color: var(--ink-soft); font-size: .92rem; }
.foot-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; font-weight: 700; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 24px 90px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 6px; }
.legal .updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { color: #3A5546; font-size: 1rem; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal .card-note {
  background: #EAF7F0; border-radius: var(--radius-md); padding: 18px 22px; margin: 20px 0;
  border-left: 5px solid var(--green);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); animation: rise .7s ease forwards; }
.reveal.r2 { animation-delay: .12s; }
.reveal.r3 { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 28px; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .evo-arrow { display: none; }
}
