/* Replete marketing + legal pages — shared styles
   Brand: white canvas, sage-forest CTA (#3F7349), vivid leaf progress (#5CB85C).
   Fraunces for hero headlines, Quicksand for everything else, Pacifico for figures.

   Layout sections below are grouped: SHARED (header / footer / legal — used by
   index, privacy, terms) and LANDING (index.html only). Editing the LANDING
   block never touches the legal pages. */

:root {
  --accent: #3f7349;
  --accent-muted: #2c5234;
  --accent-soft: #ecf3ee;
  --leaf: #5cb85c;
  --leaf-soft: #e2f1de;
  --leaf-bright: #7ab26e; /* doodle fill — matches the app's hand-drawn SVGs */
  --cream: #fcf7f0; /* warm organic blob frame */
  --ink: #1a1a1a;
  --muted: #5a5f5c;
  --dim: #9ca29f;
  --surface2: #f7f7f5;
  --surface3: #edede7;
  --hairline: rgba(26, 26, 26, 0.1);
  --maxw: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* Shared eyebrow — small uppercase label above a section heading */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================
   SHARED — site header (index + legal pages)
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand svg {
  width: 28px;
  height: 32px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
  font-size: 15px;
}
.nav-links a {
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--accent);
}
/* Conversion CTA pill in the nav (index.html only) */
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.nav-cta:hover {
  background: var(--accent-muted);
  text-decoration: none;
}

/* ============================================================
   LANDING — index.html only
   ============================================================ */

/* ---- Hero ---- */
.hero {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 24px 60px;
}
.hero .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(36px, 6.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
/* Highlighted word with a hand-drawn underline swash */
.hero h1 .hl {
  position: relative;
  color: var(--accent);
  white-space: nowrap;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.16em;
  height: 0.32em;
  background: url("underline.svg") no-repeat center / 100% 100%;
  pointer-events: none;
}
.hero p.lead {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 30px;
  line-height: 1.55;
}
/* Decorative hand-drawn doodles flanking the hero (purely ornamental) */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.92;
}
.hero::before {
  width: 64px;
  height: 106px;
  top: 0;
  left: 1%;
  background-image: url("leaf-sprout.svg");
  transform: rotate(-14deg);
}
.hero::after {
  width: 58px;
  height: 48px;
  top: 36px;
  right: 2%;
  background-image: url("leaf-sprig.svg");
  transform: rotate(8deg) scaleX(-1);
}

/* ---- Store badges ---- */
.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 12px 22px;
  min-width: 204px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.badge:hover {
  text-decoration: none;
  background: #000;
  transform: translateY(-2px);
}
.badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.14;
  text-align: left;
}
.badge .badge-small {
  font-size: 11px;
  opacity: 0.85;
}
.badge .badge-big {
  font-size: 18px;
  font-weight: 700;
}
.badge.coming-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.store-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--dim);
}

/* ---- Star rating / social proof ---- */
.rating {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.rating .stars {
  color: var(--leaf);
  letter-spacing: 2px;
  font-size: 18px;
}
.rating span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* ---- How it works ---- */
.how {
  text-align: center;
  padding: 60px 24px 24px;
}
.how .eyebrow {
  display: block;
  margin-bottom: 12px;
}
.how h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 44px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}
.step-art {
  width: 134px;
  height: 110px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  /* organic hand-drawn frame (cream blob) instead of a crisp card */
  background: url("blob.svg") no-repeat center / 100% 100%;
}
.step-num {
  font-family: "Pacifico", cursive;
  font-size: 46px;
  color: var(--accent);
  line-height: 1;
  transform: translateY(-3px);
}
.step h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 8px;
}
.step p {
  margin: 0 auto;
  max-width: 300px;
  color: var(--muted);
  font-size: 15px;
}

/* ---- Nutrient strip ---- */
.nutrients {
  text-align: center;
  padding: 60px 24px 16px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nutrients .eyebrow {
  display: block;
  margin-bottom: 12px;
}
.nutrients h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.nutrients .sub {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.chip {
  background: var(--surface2);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--surface3);
}
/* The 4 hero nutrients — white-on-accent, matching the app's selected state */
.chip.hero {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---- Value strip (brand voice) ---- */
.values {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 24px 8px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  text-align: center;
}
.value .vmark {
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  background: url("leaf-sprig.svg") no-repeat center / contain;
}
.value h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 6px;
}
.value p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 auto;
  max-width: 280px;
}

/* ---- Bottom CTA ---- */
.cta-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  text-align: center;
  border-radius: 32px;
  padding: 56px 28px;
  margin: 60px 0 24px;
}
/* soft light pools for depth (no asset, no shadow) */
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-band::before {
  width: 320px;
  height: 320px;
  top: -140px;
  left: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
}
.cta-band::after {
  width: 280px;
  height: 280px;
  bottom: -130px;
  right: -70px;
  background: radial-gradient(circle, rgba(92, 184, 92, 0.28), transparent 70%);
}
.cta-band > * {
  position: relative;
}
.cta-band h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.cta-band .cta-sub {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 26px;
  max-width: 460px;
  font-size: 16px;
}
.cta-band .store-badges .badge {
  background: #fff;
  color: var(--ink);
}
.cta-band .store-badges .badge:hover {
  background: #f3f3f1;
}
.cta-band .store-note {
  color: rgba(255, 255, 255, 0.72);
}

/* ---- Subtle entrance ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero > *:not(.eyebrow) {
    animation: rise 0.6s ease both;
  }
  .hero h1 {
    animation-delay: 0.04s;
  }
  .hero p.lead {
    animation-delay: 0.1s;
  }
  .hero .store-badges {
    animation-delay: 0.16s;
  }
  .hero .store-note {
    animation-delay: 0.22s;
  }
  .hero .rating {
    animation-delay: 0.28s;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   SHARED — footer (index + legal pages)
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
  padding: 28px 24px 48px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--dim);
  font-size: 14px;
}
.footer-links {
  display: flex;
  gap: 20px;
  font-weight: 600;
}
.footer-links a {
  color: var(--muted);
}

/* ============================================================
   SHARED — legal pages (privacy.html, terms.html)
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.legal h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 5vw, 42px);
  margin: 8px 0 6px;
}
.legal .updated {
  color: var(--dim);
  font-size: 14px;
  margin: 0 0 32px;
}
.legal h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  margin: 36px 0 10px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 6px;
}
.legal p,
.legal li {
  color: var(--muted);
  font-size: 16px;
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin-bottom: 6px;
}
.legal strong {
  color: var(--ink);
}
.legal .callout {
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 24px 0;
}
.legal .callout p {
  margin: 0;
  color: var(--accent-muted);
}
.back-link {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .steps,
  .values-grid {
    grid-template-columns: 1fr;
  }
  .hero::before,
  .hero::after {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-links {
    gap: 16px;
    font-size: 14px;
  }
}
