/* MealPrep landing page (mealprep.bragdeal.com). Tokens follow the app's design system v2.1: graphite surfaces, one green, tonal cards. */
:root {
  --bg: #0e1012;
  --bg2: #141719;
  --card: #181b1f;
  --card2: #22262b;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #f4f6f5;
  --text2: rgba(244, 246, 245, 0.66);
  --text3: rgba(244, 246, 245, 0.5);
  --accent: #34c77b;
  --accent-text: #5ee39e;
  --ink: #0b1711;
  --hl: rgba(52, 199, 123, 0.11);
  --hl-line: rgba(52, 199, 123, 0.28);
  --kcal: #e3f8eb;
  --protein: #b9efa6;
  --carbs: #4fd48e;
  --fat: #62d0c6;
  --warn: #fbbf24;
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.08; font-weight: 800; }
h1 { font-size: clamp(38px, 6.4vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 19px; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.muted { color: var(--text2); }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(14, 16, 18, 0.72); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -0.02em; font-size: 20px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand-footer { font-size: 17px; }
.brand-footer img { width: 36px; height: 36px; border-radius: 10px; }
footer a { color: var(--text2); font-weight: 500; }
footer a:hover { color: var(--text); }
.nav-links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--text2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; border: 1px solid transparent; cursor: pointer; transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), filter 120ms; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(90deg, #3dd48a, #22b873); color: var(--ink); box-shadow: 0 8px 24px rgba(34, 184, 115, 0.28); }
.btn-secondary { background: var(--card2); color: var(--text); border-color: var(--line2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }

/* hero */
.hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 0; overflow: hidden; }
.hero-glow { position: absolute; left: 50%; top: 42%; width: min(120vw, 1100px); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(52, 199, 123, 0.22) 0%, rgba(52, 199, 123, 0.08) 38%, transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero-copy { align-items: center; } }
.hero-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero-copy p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text2); max-width: 54ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-note { font-size: 13px; color: var(--text3); }

/* phones */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 560px; }
.phone { width: 236px; border-radius: 38px; padding: 10px; background: #0a0b0c; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 393 / 852; object-fit: cover; object-position: top; }
.phone.main { z-index: 3; width: 268px; }
.phone.left, .phone.right { position: absolute; bottom: 24px; z-index: 2; opacity: 0.92; }
.phone.left { left: 0; transform: rotate(-8deg) translateY(10px); }
.phone.right { right: 0; transform: rotate(8deg) translateY(10px); }
@media (max-width: 1100px) { .phone.left { left: -20px; } .phone.right { right: -20px; } }
@media (max-width: 560px) { .phones { min-height: 520px; } .phone { width: 200px; } .phone.main { width: 232px; } .phone.left, .phone.right { width: 180px; } .phone.left { left: -36px; } .phone.right { right: -36px; } }

/* numbers strip */
.strip { margin-top: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(24, 27, 31, 0.5); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 0; }
@media (max-width: 760px) { .strip .wrap { grid-template-columns: repeat(2, 1fr); } }
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--kcal); }
.stat span { font-size: 13px; color: var(--text2); }

/* sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 640px; margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.section-head p { color: var(--text2); font-size: 17px; }
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.card h3 { margin-top: 14px; }
.card p { margin-top: 8px; color: var(--text2); font-size: 15px; }
.icon { width: 42px; height: 42px; border-radius: 13px; background: var(--hl); border: 1px solid var(--hl-line); display: grid; place-items: center; color: var(--accent-text); }
.icon svg { width: 22px; height: 22px; }

/* macro demo card */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
.budget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.budget .num { font-size: 36px; font-weight: 800; letter-spacing: -0.035em; color: var(--kcal); }
.budget .num small { font-size: 15px; font-weight: 600; color: var(--text2); letter-spacing: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(52, 199, 123, 0.16); color: var(--accent-text); }
.bar { position: relative; height: 10px; border-radius: 5px; background: var(--card2); overflow: hidden; margin-top: 14px; display: flex; gap: 2px; }
.bar i { display: block; height: 100%; }
.bar .p { width: 27.5%; background: var(--protein); }
.bar .c { width: 44.5%; background: var(--accent); }
.bar .f { width: 27.4%; background: #3fb8ae; background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 6px); }
.chips { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 4px; border-radius: 12px; background: var(--card2); font-size: 13px; font-weight: 700; }
.chip b { width: 22px; height: 22px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; color: var(--ink); }
.chip.p b { background: var(--protein); } .chip.p { color: var(--protein); }
.chip.c b { background: var(--accent); } .chip.c { color: var(--carbs); }
.chip.f b { background: #3fb8ae; } .chip.f { color: var(--fat); }
.chip small { font-weight: 500; color: var(--text3); }
.ing { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ing span:last-child { color: var(--accent-text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #3dd48a, #22b873); color: var(--ink); }

/* pricing */
.price { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; align-items: stretch; }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }
.price .card.hl { background: #1b2e29; border-color: var(--hl-line); }
.price .amount { font-size: 40px; font-weight: 800; letter-spacing: -0.035em; color: var(--kcal); margin-top: 6px; }
.price .amount small { font-size: 14px; color: var(--text2); font-weight: 500; letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--text2); }
.price li::before { content: "✓"; color: var(--accent-text); font-weight: 800; margin-right: 8px; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-text); font-size: 22px; font-weight: 500; }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 16px; color: var(--text2); font-size: 15px; }

/* final cta */
.final { text-align: center; }
.final .card { padding: clamp(32px, 6vw, 64px) 24px; background: radial-gradient(60% 100% at 50% 0%, rgba(52, 199, 123, 0.18), transparent 70%), var(--card); }
.final p { max-width: 52ch; margin: 12px auto 24px; color: var(--text2); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--text3); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a { color: var(--text2); font-weight: 500; }

/* legal pages */
.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text2); font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 10px 0; display: grid; gap: 6px; }
.legal .meta { color: var(--text3); font-size: 14px; margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---------------------------------------------------------------- motion (motion.js) */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 600ms cubic-bezier(0.23, 1, 0.32, 1), transform 600ms cubic-bezier(0.23, 1, 0.32, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }
.motion-reduced [data-reveal] { opacity: 1; transform: none; transition: none; }
[data-parallax] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* floating hero phones: each phone drifts on its own rhythm; the stack tilts with the pointer */
.phones { perspective: 1200px; --tx: 0deg; --ty: 0deg; }
.phones .phone { transform-style: preserve-3d; }
.motion-on .phone.main { animation: floatMain 7s ease-in-out infinite; }
.motion-on .phone.left { animation: floatLeft 8.5s ease-in-out infinite; animation-delay: -2s; }
.motion-on .phone.right { animation: floatRight 9.5s ease-in-out infinite; animation-delay: -4s; }
.motion-on .phones { transform: rotateY(var(--tx)) rotateX(var(--ty)); transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes floatMain { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatLeft { 0%, 100% { transform: rotate(-8deg) translateY(10px); } 50% { transform: rotate(-9deg) translateY(-6px); } }
@keyframes floatRight { 0%, 100% { transform: rotate(8deg) translateY(10px); } 50% { transform: rotate(9deg) translateY(-8px); } }
.phone-wrap { transform: translate3d(0, var(--py, 0px), 0); }
.phone-wrap.main { position: relative; z-index: 3; }
.phone-wrap.left, .phone-wrap.right { position: absolute; bottom: 24px; z-index: 2; }
.phone-wrap.left { left: 0; } .phone-wrap.right { right: 0; }
.phone-wrap.left .phone, .phone-wrap.right .phone { position: static; bottom: auto; left: auto; right: auto; }
@media (max-width: 1100px) { .phone-wrap.left { left: -20px; } .phone-wrap.right { right: -20px; } }
@media (max-width: 560px) { .phone-wrap.left { left: -36px; } .phone-wrap.right { right: -36px; } }
.hero-glow { transform: translate(-50%, -50%) translate3d(0, var(--py, 0px), 0); }
.motion-on .hero-glow { animation: glowBreathe 6s ease-in-out infinite; }
@keyframes glowBreathe { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
