/* ============================================================
   Sprout — marketing site styles
   Aesthetic: warm "storybook garden" — playful, trustworthy,
   green-forward with organic shapes and soft depth.
   Self-contained: Google Fonts enhance, system fonts fall back.
   ============================================================ */

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

:root {
  /* Brand palette — sourced from the app's theme/variables.css */
  --green: #4CAF50;
  --green-light: #81C784;
  --green-dark: #2E7D32;
  --green-soft: #eafbe9;
  --teal: #1eb6a1;
  --gold: #ff9700;
  --gold-soft: #fff5e3;

  --ink: #243024;
  --ink-soft: #4f5b4f;
  --muted: #7d877d;
  --paper: #f6f8fc;
  --white: #ffffff;
  --line: #e3ece3;

  --display: 'Fredoka', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 4px 14px rgba(46, 125, 50, 0.08);
  --shadow-md: 0 14px 40px rgba(46, 125, 50, 0.12);
  --shadow-lg: 0 30px 70px rgba(46, 125, 50, 0.18);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* subtle layered atmosphere */
  background-image:
    radial-gradient(circle at 12% -5%, rgba(76, 175, 80, 0.10), transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(30, 182, 161, 0.10), transparent 34%);
  background-attachment: fixed;
}

h1, h2, h3, .display { font-family: var(--display); font-weight: 600; line-height: 1.1; color: var(--ink); }
a { color: var(--green-dark); }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--display); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.8rem; color: var(--teal);
  display: inline-flex; align-items: center; gap: 8px;
}
.section { padding: 88px 0; position: relative; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 10px 0 14px; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 56ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--white); color: var(--green-dark); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246, 248, 252, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand .leaf { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 0.98rem; }
.nav-links a:hover { color: var(--green-dark); }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: 70px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 16px 0 18px; }
.hero h1 .grow { color: var(--green); position: relative; white-space: nowrap; }
.hero h1 .grow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 14px;
  background: var(--green-light); opacity: 0.45; border-radius: 8px; z-index: -1;
}
.hero p.lede { font-size: 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.trust-row { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 0.92rem; font-weight: 700; flex-wrap: wrap; }
.trust-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-light); }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-blob {
  position: absolute; inset: 0; margin: auto; width: 86%; aspect-ratio: 1;
  background: radial-gradient(circle at 50% 40%, var(--green-soft), #d6f3ef 70%, transparent 72%);
  border-radius: 46% 54% 56% 44% / 52% 44% 56% 48%;
  filter: blur(2px);
  animation: blob 12s ease-in-out infinite;
}
@keyframes blob {
  0%,100% { border-radius: 46% 54% 56% 44% / 52% 44% 56% 48%; }
  50% { border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; }
}
.hero-pom { position: relative; width: min(360px, 78%); filter: drop-shadow(0 24px 30px rgba(46,125,50,0.25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.coin {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd87a, var(--gold));
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #7a4a00;
  animation: float 5s ease-in-out infinite;
}
.coin.c1 { top: 8%; right: 14%; animation-delay: .4s; }
.coin.c2 { bottom: 18%; left: 6%; width: 38px; height: 38px; animation-delay: 1.1s; }
.coin.c3 { bottom: 6%; right: 22%; width: 30px; height: 30px; animation-delay: .8s; }

/* store badges */
.badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px;
  transition: transform .18s ease, opacity .18s ease; position: relative;
}
.badge:hover { transform: translateY(-3px); }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge .b-top { font-size: 0.68rem; line-height: 1; opacity: 0.78; display: block; }
.badge .b-main { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.1; }
.badge .soon { position: absolute; top: -9px; right: -8px; background: var(--gold); color: #4a2c00; font-size: 0.6rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; letter-spacing: .04em; }

/* ---------- value cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 16px; }
.card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.ic-green { background: var(--green-soft); }
.ic-teal { background: #e2f6f1; }
.ic-gold { background: var(--gold-soft); }
.ic-pink { background: #fde9ee; }

/* ---------- how it works ---------- */
.how { background: linear-gradient(180deg, #eafbe9 0%, var(--paper) 100%); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px 24px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; left: 22px;
  width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.1rem; margin: 12px 0 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- screenshots ---------- */
.screens-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 48px; }
.phone { width: 250px; }
.phone-frame {
  background: #1d241d; border-radius: 38px; padding: 12px; box-shadow: var(--shadow-lg);
  position: relative; transition: transform .25s ease;
}
.phone:nth-child(1) .phone-frame { transform: rotate(-3deg); }
.phone:nth-child(3) .phone-frame { transform: rotate(3deg); }
.phone:hover .phone-frame { transform: rotate(0) translateY(-8px); }
.phone-frame::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #1d241d; border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-screen { border-radius: 28px; overflow: hidden; background: #fff; display: block; aspect-ratio: 390 / 844; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-cap { text-align: center; font-family: var(--display); font-weight: 600; margin-top: 16px; color: var(--ink-soft); }

/* ---------- pricing ---------- */
.pricing { background: linear-gradient(180deg, var(--paper), #eef5ee); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; max-width: 860px; margin: 44px auto 0; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--gold); box-shadow: var(--shadow-md); position: relative; }
.plan .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #4a2c00; font-family: var(--display); font-weight: 700; font-size: 0.82rem; padding: 5px 16px; border-radius: 999px; }
.plan h3 { font-size: 1.4rem; margin: 0 0 4px; }
.plan .price { font-family: var(--display); font-weight: 700; font-size: 2.6rem; color: var(--ink); margin: 6px 0 2px; }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan .price-note { color: var(--teal); font-weight: 800; font-size: 0.9rem; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.plan li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.plan li::before { content: "🌱"; position: absolute; left: 0; top: 0; }
.plan.featured li::before { content: "✨"; }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.plan.featured .btn-primary { background: var(--gold); color: #4a2c00; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 40px auto 0; display: grid; gap: 14px; }
details.faq {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 24px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease;
}
details.faq[open] { box-shadow: var(--shadow-md); }
details.faq summary {
  list-style: none; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--green); transition: transform .2s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0 0 20px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { padding: 84px 0; }
.cta-card {
  background: linear-gradient(135deg, var(--green), var(--teal)); color: #fff;
  border-radius: var(--radius-lg); padding: 56px 40px; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-card h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-card p { color: rgba(255,255,255,0.92); max-width: 50ch; margin: 12px auto 26px; font-size: 1.1rem; }
.cta-card .badges { justify-content: center; }
.cta-card .badge { background: #fff; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: #1d241d; color: #cdd6cd; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer p { color: #9fab9f; max-width: 36ch; }
.footer-col h4 { font-family: var(--display); color: #fff; font-size: 1rem; margin: 0 0 14px; letter-spacing: .03em; }
.footer-col a { display: block; color: #cdd6cd; text-decoration: none; padding: 5px 0; }
.footer-col a:hover { color: var(--green-light); }
.footer-bottom { border-top: 1px solid #2c352c; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #8a958a; font-size: 0.9rem; }
.footer-bottom a { color: #cdd6cd; text-decoration: none; }
.footer-bottom a:hover { color: var(--green-light); }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 90px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--teal); font-weight: 700; margin-bottom: 24px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-weight: 700; margin: 0 0 28px; }
.legal h2 { font-size: 1.4rem; margin: 38px 0 10px; color: var(--green-dark); }
.legal h3 { font-size: 1.1rem; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--green-dark); }
.notice {
  background: var(--gold-soft); border: 1px solid #f3dcaf; border-left: 5px solid var(--gold);
  border-radius: 14px; padding: 18px 22px; margin: 0 0 34px;
}
.notice strong { color: #8a5a00; }
.placeholder { background: #eef5ee; border-radius: 6px; padding: 0 6px; font-weight: 700; color: var(--green-dark); }

/* ---------- reveal-on-load ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s ease forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .badges, .trust-row { justify-content: center; }
  .hero-art { order: -1; min-height: 320px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 20px 24px; gap: 16px; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: inline-flex; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }
  .cards, .steps, .plans, .footer-grid { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
