/* BLW Recipes — landing site. Palette mirrors mobile/src/theme.ts (app-icon derived). */
:root {
  --bg: #FCF8F5;
  --blush: #FDE0DE;
  --surface: #FFFFFF;
  --surface-muted: #F6EFEA;
  --hairline: #F0E6DF;
  --ink: #2A211C;
  --ink-soft: #4A3B31;
  --text-secondary: #6B5A4E;
  --text-muted: #8A7A6E;
  --coral: #E85567;
  --coral-dark: #D2455A;
  --coral-light: #F6717B;
  --coral-tint: #FDE0DE;
  --brown: #6C4324;
  --brown-tint: #EFE3DA;
  --green: #2F8A5B;
  --green-tint: #E7F2EB;
  --amber: #BF7E2A;
  --amber-tint: #FCF1D8;
  --gold: #F4C753;
  --shadow-sm: 0 2px 8px rgba(108, 67, 36, 0.06);
  --shadow-md: 0 12px 32px rgba(108, 67, 36, 0.10);
  --shadow-lg: 0 30px 70px rgba(108, 67, 36, 0.18);
  --radius: 22px;
  --radius-lg: 34px;
  --max: 1120px;
  --font-display: "Fredoka", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--ink); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; margin: 0 0 0.35em; }
p { margin: 0 0 1em; color: var(--text-secondary); }
a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.78rem; color: var(--coral-dark);
  margin-bottom: 0.6em; display: inline-block;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display); font-weight: 500; font-size: 1.02rem;
  padding: 0.85em 1.5em; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(232, 85, 103, 0.32); }
.btn-primary:hover { background: var(--coral-dark); box-shadow: 0 12px 26px rgba(232, 85, 103, 0.40); }
.btn-ghost { background: var(--surface); color: var(--brown); border-color: var(--hairline); box-shadow: var(--shadow-sm); }
.btn-lg { font-size: 1.1rem; padding: 1em 1.9em; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 248, 245, 0.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.scrolled { border-color: var(--hairline); box-shadow: var(--shadow-sm); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.6em; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand b { color: var(--coral); }
.nav-links { display: flex; align-items: center; gap: 1.8em; }
.nav-links a { color: var(--ink-soft); font-weight: 700; font-size: 0.98rem; }
.nav-links a:hover { color: var(--coral-dark); text-decoration: none; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---- Hero ---- */
.hero { position: relative; padding: 84px 0 56px; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 500px at 50% -8%, var(--blush) 0%, rgba(253, 224, 222, 0) 62%),
    var(--bg);
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -0.02em; margin: 0.15em 0 0.25em; }
.hero h1 .hl { color: var(--coral); }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--text-secondary); max-width: 620px; margin: 0 auto 2em; }
.hero-cta { display: flex; gap: 0.8em; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5em; }
.hero-note { font-size: 0.92rem; color: var(--text-muted); margin-top: 0.25em; }

/* Floating emoji confetti */
.floaties { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.floaties span { position: absolute; font-size: 2rem; opacity: 0.9; will-change: transform; }

/* Phone showcase */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 22px; margin-top: 60px; perspective: 1400px; }
.phone {
  width: 240px; flex: 0 0 auto; border-radius: 40px; background: #1c1512;
  padding: 9px; box-shadow: var(--shadow-lg); will-change: transform;
}
.phone img { border-radius: 32px; width: 100%; display: block; }
.phone.side { width: 205px; margin-bottom: 26px; opacity: 0.96; }
@media (max-width: 820px) { .phone.side { display: none; } .phone { width: 260px; } }

/* ---- Stats bar ---- */
.stats { background: var(--brown); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 34px 24px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold); line-height: 1; }
.stat .lbl { font-size: 0.9rem; color: rgba(255,255,255,0.82); margin-top: 0.35em; font-weight: 700; }
@media (max-width: 640px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; } }

/* ---- Sections ---- */
section { padding: 82px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head p { font-size: 1.12rem; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 40px; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: 260px; }
.feature-text .pill {
  display: inline-flex; align-items: center; gap: 0.45em; font-weight: 800; font-size: 0.85rem;
  color: var(--coral-dark); background: var(--coral-tint); padding: 0.4em 0.9em; border-radius: 999px; margin-bottom: 1em;
}
.feature-text ul { list-style: none; padding: 0; margin: 1.2em 0 0; }
.feature-text li { display: flex; gap: 0.7em; align-items: flex-start; margin-bottom: 0.7em; color: var(--ink-soft); font-weight: 600; }
.feature-text li svg { flex: 0 0 auto; margin-top: 3px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 32px; text-align: center; margin-bottom: 20px; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-text li { text-align: left; }
}

/* ---- Privacy band ---- */
.privacy-band { background: var(--green-tint); }
.privacy-band .card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 48px; text-align: center;
  box-shadow: var(--shadow-md); border: 1px solid var(--hairline);
}
.privacy-band .lock { font-size: 2.6rem; margin-bottom: 0.2em; }
.privacy-band .tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 1.2em; }
.privacy-band .tags span {
  background: var(--green-tint); color: var(--green); font-weight: 800; font-size: 0.9rem;
  padding: 0.5em 1em; border-radius: 999px;
}

/* ---- Pricing ---- */
.pricing { background: var(--surface-muted); }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 780px; margin: 0 auto; }
.plan {
  background: var(--surface); border-radius: var(--radius-lg); padding: 34px; border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm); position: relative; will-change: transform, opacity;
}
.plan.featured { border: 2px solid var(--coral); box-shadow: var(--shadow-md); }
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--coral); color: #fff; font-family: var(--font-display); font-weight: 500;
  font-size: 0.8rem; padding: 0.35em 1em; border-radius: 999px; letter-spacing: 0.03em;
}
.plan h3 { font-size: 1.5rem; }
.plan .price { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; color: var(--ink); margin: 0.1em 0; }
.plan .price small { font-size: 1rem; color: var(--text-muted); font-weight: 500; font-family: var(--font-body); }
.plan .price-alt { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.2em; }
.plan ul { list-style: none; padding: 0; margin: 1.4em 0 0; }
.plan li { display: flex; gap: 0.6em; align-items: flex-start; margin-bottom: 0.7em; color: var(--ink-soft); font-weight: 600; font-size: 0.98rem; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 4px 24px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--font-display);
  font-weight: 500; font-size: 1.12rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--coral); transition: transform 0.2s ease; line-height: 1; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 20px; margin: 0; }

/* ---- CTA footer band ---- */
.cta-band { background: var(--coral); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 520px; margin: 0 auto 1.6em; }
.cta-band .btn-primary { background: #fff; color: var(--coral-dark); box-shadow: 0 10px 26px rgba(0,0,0,0.16); }
.cta-band .btn-primary:hover { background: #fff; }

/* ---- Footer ---- */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 56px 0 40px; font-size: 0.95rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer .brand { color: #fff; }
.footer .brand b { color: var(--coral-light); }
.footer nav { display: flex; gap: 1.6em; flex-wrap: wrap; }
.footer a { color: rgba(255,255,255,0.78); font-weight: 700; }
.footer a:hover { color: #fff; }
.footer .copy { width: 100%; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 12px; padding-top: 22px; color: rgba(255,255,255,0.5); font-size: 0.86rem; }

/* ---- Legal pages ---- */
.legal { padding: 56px 0 90px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.1em; }
.legal .updated { color: var(--text-muted); font-weight: 700; margin-bottom: 2em; }
.legal h2 { font-size: 1.4rem; margin: 1.8em 0 0.5em; }
.legal h3 { font-size: 1.1rem; margin: 1.4em 0 0.4em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal .callout {
  background: var(--amber-tint); border: 1px solid #efd9a8; border-radius: var(--radius);
  padding: 18px 22px; margin: 1.5em 0;
}
.legal .callout p { margin: 0; color: var(--amber); font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 800; margin-bottom: 1.4em; }

/* ---- Reveal (GSAP sets initial state via JS; fallback keeps content visible) ---- */
.js-ready .reveal { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-ready .reveal { opacity: 1; }
}
