/* MacroSnap landing — shared styles. Brand tokens mirror the app (docs/DESIGN_SYSTEM.md):
   green #4ade80 / deep #16a34a, surface #f7f8fa, ink #0f172a. System font stack, no webfonts. */
:root {
  --green: #4ade80;
  --green-deep: #16a34a;
  --green-ink: #14532d;
  --fat: #f59e0b;
  --protein: #ef4444;
  --carb: #3b82f6;
  --surface: #f7f8fa;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-deep); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.prose { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 248, 250, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; color: var(--ink); }
.brand .dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(var(--fat) 0 25%, var(--protein) 25% 55%, var(--carb) 55% 78%, var(--green) 78% 100%);
  -webkit-mask: radial-gradient(circle 6px at center, transparent 98%, #000 100%);
          mask: radial-gradient(circle 6px at center, transparent 98%, #000 100%);
}
.nav a { margin-left: 18px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--green-deep), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: clamp(17px, 2.5vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badge-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.badge-btn:hover { transform: translateY(-1px); }
.badge-btn.disabled { opacity: 0.45; pointer-events: none; }
.badge-btn small { display: block; font-weight: 500; font-size: 11px; opacity: 0.7; }
.note-soon { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Pie hero graphic */
.pie-hero { margin: 40px auto 0; width: 180px; height: 180px; position: relative; }
.pie-hero .ring {
  width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(var(--fat) 0 32%, var(--protein) 32% 60%, var(--carb) 60% 72%, var(--green) 72% 100%);
  -webkit-mask: radial-gradient(circle 56px at center, transparent 98%, #000 100%);
          mask: radial-gradient(circle 56px at center, transparent 98%, #000 100%);
  box-shadow: var(--shadow);
}
.pie-hero .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.pie-hero .center b { font-size: 24px; } .pie-hero .center span { font-size: 12px; color: var(--muted); }

/* Feature grid */
.features { padding: 56px 0; }
.features h2 { text-align: center; font-size: 30px; margin: 0 0 8px; letter-spacing: -0.01em; }
.features .lead { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card .ico { font-size: 28px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Waitlist */
.waitlist { padding: 56px 0 72px; }
.waitlist .box {
  background: linear-gradient(135deg, var(--green-ink), var(--green-deep));
  color: #fff; border-radius: 24px; padding: 44px 28px; text-align: center; box-shadow: var(--shadow);
}
.waitlist h2 { margin: 0 0 8px; font-size: 28px; }
.waitlist p { margin: 0 auto 24px; max-width: 480px; opacity: 0.9; }
.wl-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.wl-form input {
  flex: 1 1 220px; min-width: 0; padding: 13px 16px; border-radius: 12px; border: none;
  font-size: 15px; background: rgba(255,255,255,0.95); color: var(--ink);
}
.wl-form button {
  padding: 13px 22px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
}
.wl-form button:hover { opacity: 0.9; }
.wl-msg { margin-top: 14px; font-size: 14px; min-height: 20px; }
/* Honeypot — off-screen, not focusable; bots that fill every field get dropped. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.site-footer a:hover { color: var(--ink); }

/* Section scaffolding */
.section { padding: 64px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { text-align: center; font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; letter-spacing: -0.02em; }
.section .lead { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 44px; font-size: 17px; }
.eyebrow { text-align: center; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 800; color: var(--green-deep); margin: 0 0 10px; }

/* How it works — 3 steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { text-align: center; padding: 8px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--green-deep), var(--green)); font-size: 18px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Spotlight (Menu Mode) — two-column */
.spotlight { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.spotlight .copy h2 { text-align: left; }
.spotlight .copy .tag {
  display: inline-block; background: #ecfdf5; color: var(--green-ink); border: 1px solid #a7f3d0;
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; margin-bottom: 14px;
}
.spotlight .copy p { color: var(--muted); font-size: 16px; }
.spotlight ol { margin: 16px 0 0; padding-left: 0; list-style: none; }
.spotlight ol li { position: relative; padding: 8px 0 8px 30px; color: #1e293b; }
.spotlight ol li::before { content: "✓"; position: absolute; left: 0; color: var(--green-deep); font-weight: 800; }
.spotlight .visual {
  background: linear-gradient(135deg, var(--green-ink), var(--green-deep));
  border-radius: 24px; padding: 32px; color: #fff; box-shadow: var(--shadow); min-height: 240px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.spotlight .visual .menu-row {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.12); border-radius: 12px; padding: 12px 14px; font-size: 14px;
}
.spotlight .visual .menu-row .keto { background: var(--green); color: var(--green-ink); border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 800; }
.spotlight .visual .menu-row.dim { opacity: 0.55; }
@media (max-width: 720px) { .spotlight { grid-template-columns: 1fr; } .spotlight .copy h2 { text-align: center; } }

/* Why-different rows */
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.diff { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.diff .badge { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-deep); }
.diff h3 { margin: 8px 0 6px; font-size: 17px; }
.diff p { margin: 0; color: var(--muted); font-size: 14px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 720px; margin: 0 auto; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--green); position: relative; }
.price-card.featured .ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green-deep); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  padding: 4px 12px; border-radius: 999px; text-transform: uppercase;
}
.price-card h3 { margin: 0 0 4px; font-size: 20px; }
.price-card .amount { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.price-card .amount small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card .sub { color: var(--muted); font-size: 14px; margin: 2px 0 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0; }
.price-card li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; color: #1e293b; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green-deep); font-weight: 800; }
.pricing-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-deep); font-size: 22px; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 15px; }

/* Legal pages */
.legal { padding: 40px 0 64px; }
.legal h1 { font-size: 34px; margin: 0 0 4px; }
.legal .meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.legal .back { font-size: 14px; font-weight: 600; text-decoration: none; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; letter-spacing: -0.01em; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { color: #1e293b; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: #f1f5f9; }
.legal .callout {
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 14px 16px; margin: 18px 0; font-size: 14px;
}
.legal code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
