/* ============================================================================
   FlavorDay design system — warm dark, built on the Excludium system shared by
   excludium.com / pfexplainer, retuned for a food / meal-planning brand.
   Static site. Only JS is reveal-on-scroll + footer year (assets/site.js).
   ============================================================================ */

:root {
  --primary: #ff8a3d;
  --primary-hover: #f0731e;
  --secondary: #ffc24b;
  --tertiary: #5bd08a;
  --bg: #15110c;
  --surface: #1e1812;
  --surface-2: #271f17;
  --surface-3: #31271d;
  --text: #f7f0e7;
  --text-muted: #bbae9d;
  --text-faint: #80715f;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.15);
  --grad-primary: linear-gradient(135deg, #ff8a3d 0%, #ff5e5b 100%);
  --grad-warm: linear-gradient(135deg, #ffc24b 0%, #ff8a3d 55%, #ff5e5b 100%);
  --grad-subtle: linear-gradient(180deg, rgba(255, 138, 61, 0.10) 0%, rgba(255, 94, 91, 0.02) 100%);
  --shadow-lg: 0 24px 64px rgba(255, 138, 61, 0.16);
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1140px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 138, 61, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 88% 12%, rgba(255, 194, 75, 0.07), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--secondary); }
::selection { background: rgba(255, 138, 61, 0.4); color: #fff; }

h1, h2, h3, h4 { margin: 0; line-height: 1.14; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(34px, 5.5vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 16px; }
h3 { font-size: clamp(18px, 2.4vw, 22px); margin-bottom: 8px; }
h4 { font-size: 16px; margin-bottom: 6px; }
p  { margin: 0 0 16px; color: var(--text-muted); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-muted); max-width: 60ch; }
.grad-text { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 700; color: var(--primary); margin-bottom: 14px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 116px 0; } }
.section-narrow { max-width: 720px; margin: 0 auto; text-align: center; }
.section-narrow p, .section-narrow .lead { margin-left: auto; margin-right: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(21, 17, 12, 0.72); border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 16px; }
.nav-brand:hover { color: var(--text); }
.nav-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; object-fit: cover;
  display: block; box-shadow: 0 4px 14px rgba(255, 138, 61, 0.34); background: var(--surface-2);
}
.nav-links { display: none; gap: 26px; align-items: center; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-md); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 6px 18px rgba(255, 138, 61, 0.34); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(255, 138, 61, 0.46); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-3); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--text-muted); cursor: default; border-color: var(--border); }

/* Hero */
.hero { padding: 64px 0 32px; }
@media (min-width: 768px) { .hero { padding: 96px 0 56px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.04fr 0.96fr; gap: 64px; } }
.hero-content h1 { margin-bottom: 22px; }
.hero-content .lead { margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { margin-top: 22px; color: var(--text-faint); font-size: 13px; }
.hero-stage { display: flex; justify-content: center; perspective: 1400px; }

/* Phone mockup — pure-CSS render of the in-app menu screen (no screenshots yet) */
.phone {
  width: 304px; max-width: 100%; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #2c2419, #16110b);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-strong);
  transform: rotate(-2deg); transition: transform .5s;
}
@media (min-width: 960px) { .phone { transform: perspective(1200px) rotateY(-9deg) rotateX(4deg) rotate(-2deg); } }
.phone:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) rotate(0); }
.phone-shot { display: block; width: 100%; border-radius: 32px; }

/* Trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: center; align-items: center; padding: 8px 0 0; }
.trust span { color: var(--text-faint); font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tertiary); flex-shrink: 0; }

/* Features */
.features-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.feature {
  padding: 26px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--grad-subtle);
  border: 1px solid rgba(255, 138, 61, 0.22); display: inline-flex; align-items: center;
  justify-content: center; color: var(--primary); margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 10px; }
.feature p { margin: 0; font-size: 15px; }

/* Steps */
.steps { display: grid; gap: 22px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  padding: 28px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); counter-increment: s;
}
.step::before {
  content: counter(s, decimal-leading-zero); display: block; font-weight: 800; font-size: 14px;
  background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.1em; margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: 15px; }

/* Pricing */
.pricing { max-width: 480px; margin: 0 auto; padding: 40px 32px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border-strong); position: relative; text-align: left; }
.pricing::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius-xl); padding: 1px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.55;
}
.pricing-eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--grad-primary); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.pricing-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.pricing-price strong { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.pricing-price span { color: var(--text-muted); font-size: 16px; }
.pricing-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.pricing-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text); }
.pricing-list li svg { width: 18px; height: 18px; color: var(--tertiary); flex-shrink: 0; margin-top: 3px; }
.pricing-footnote { color: var(--text-faint); font-size: 13px; margin: 16px 0 0; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: border-color .15s, background .15s; }
.faq details[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform .2s; margin-right: 6px; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq-body { padding: 0 22px 20px; color: var(--text-muted); font-size: 15px; }
.faq-body p { margin: 0 0 10px; }
.faq-body p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { margin: 0 auto; max-width: 880px; padding: 48px 32px; border-radius: var(--radius-xl); text-align: center; background: var(--grad-subtle); border: 1px solid rgba(255, 138, 61, 0.22); }
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { margin: 0 auto 26px; }

/* Legal docs */
.legal { padding: 48px 0 72px; }
.legal-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .legal-grid { grid-template-columns: 232px 1fr; gap: 56px; } }
.legal-aside { align-self: start; }
@media (min-width: 1024px) { .legal-aside { position: sticky; top: 84px; } }
.legal-aside .eyebrow { margin-bottom: 8px; }
.legal-aside h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.legal-meta { color: var(--text-faint); font-size: 13px; margin: 0 0 18px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-article { font-size: 15.5px; max-width: 760px; }
.legal-article h1 { font-size: clamp(28px, 4vw, 36px); margin: 0 0 18px; }
.legal-article h2 { font-size: 21px; margin: 36px 0 12px; scroll-margin-top: 80px; }
.legal-article h3 { font-size: 17px; margin: 22px 0 8px; }
.legal-article p, .legal-article li { color: var(--text); line-height: 1.7; }
.legal-article p { margin: 0 0 14px; }
.legal-article ul, .legal-article ol { padding-left: 22px; margin: 0 0 14px; }
.legal-article li { margin-bottom: 8px; }
.legal-article strong { color: var(--text); }
.legal-article a { word-break: break-word; }
.legal-article hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.legal-article code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: 13.5px; }
.legal-article table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.legal-article th, .legal-article td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.legal-article th { background: var(--surface-2); font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 52px 0 30px; margin-top: 8px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; margin-bottom: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-muted); font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.footer-brand p { font-size: 14px; max-width: 38ch; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--text-faint); font-size: 13px; }

/* Reveal-on-scroll (driven by site.js; noscript fallback keeps it visible) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .56s ease, transform .56s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.muted { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
