/* Eat Matters — shared marketing-site styles (Cloudflare Pages, no build step) */

:root {
  --brand: #e8603c;
  --brand-2: #ff8a65;
  --brand-ink: #bf360c;
  --accent: #3b6d11;
  --accent-fill: #4caf50;
  --gold: #b8860b;
  --gold-soft: #ca8a04;

  --font-display: "Varela Round", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f1ea;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: rgba(20, 18, 15, 0.1);
  --shadow: 0 16px 44px rgba(40, 24, 12, 0.12);
  --shadow-sm: 0 6px 18px rgba(40, 24, 12, 0.08);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ff7a52;
    --brand-2: #ff9e7e;
    --brand-ink: #ffb59a;
    --accent: #9cc46a;
    --gold: #e0b341;
    --gold-soft: #e0a82e;

    --bg: #141310;
    --surface: #1e1c18;
    --surface-2: #252219;
    --text: #f3f1ec;
    --muted: #b4afa4;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 0.4em; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; font-family: var(--font-display); }
h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.8vw, 41px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 46ch; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 14px;
}

.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;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.center .badges { justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 14px;
  background: #111; color: #fff; min-width: 168px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.badge:hover { text-decoration: none; background: #000; transform: translateY(-1px); transition: transform 0.12s ease; }
.badge svg { width: 24px; height: 24px; flex: none; fill: #fff; }
.badge .b-top { display: block; font-size: 10px; letter-spacing: 0.04em; opacity: 0.85; }
.badge .b-main { display: block; font-size: 16px; font-weight: 600; line-height: 1.15; }
.badge.soon { opacity: 0.62; cursor: default; }
.badge.soon:hover { transform: none; background: #111; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-cta { display: inline-flex; align-items: center; gap: 14px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 28px; font-size: clamp(17px, 2.1vw, 21px); }
.hero-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero-note { font-size: 13px; color: var(--muted); }

/* phone mockup */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 280px; aspect-ratio: 9 / 19.5;
  background: #111; border-radius: 42px; padding: 11px;
  box-shadow: var(--shadow); transform: rotate(2deg);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: var(--surface); position: relative;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 16px 16px; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}
.phone-cap .t { font-weight: 700; font-size: 16px; }
.phone-cap .s { font-size: 12px; opacity: 0.9; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 13px;
  padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.chip i { color: var(--brand); font-size: 18px; }
.chip-1 { top: 26px; left: -14px; }
.chip-2 { bottom: 84px; right: -22px; }
.chip .k { color: var(--accent); }

/* ---------- trust strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 22px 0; }
.strip-item { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 500; font-size: 15px; }
.strip-item i { color: var(--brand); font-size: 20px; }

/* ---------- features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.feature-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  color: var(--brand); font-size: 26px; margin-bottom: 16px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: stretch; }
.price {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.price.featured { border-color: var(--brand); border-width: 2px; }
.price .tag {
  position: absolute; top: -12px; left: 24px; background: var(--gold); color: #2a1d00;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 5px 12px; border-radius: var(--radius-pill);
}
.price .plan { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.price-amt { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.price-amt span { font-size: 15px; font-weight: 500; color: var(--muted); }
.price .note { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- cta band ---------- */
.band { background: var(--brand); color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center; box-shadow: var(--shadow); }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.92); max-width: 44ch; margin: 0 auto 26px; }
.band .badge { background: #fff; color: #111; border-color: rgba(0, 0, 0, 0.1); }
.band .badge svg { fill: #111; }
.band .badge:hover { background: #fff; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; background: var(--surface-2); margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 30ch; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 14px; font-weight: 700; }
.foot-col a { display: block; color: var(--text); font-weight: 500; font-size: 15px; margin-bottom: 10px; }
.foot-col a:hover { color: var(--brand); text-decoration: none; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* ---------- legal / article pages ---------- */
.page-head { padding: 56px 0 8px; }
.page-head .eyebrow { margin-bottom: 10px; }
.legal { padding: 16px 0 64px; }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 80px; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--brand-ink); }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 8px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--surface-2); font-weight: 700; }
.callout {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0; box-shadow: var(--shadow-sm);
}
.callout p:last-child { margin-bottom: 0; }
.toc { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; margin: 8px 0 8px; }
.toc strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.toc a { display: inline-block; margin: 0 16px 8px 0; font-weight: 500; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 16px; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 24px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div a { color: var(--brand-ink); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-actions { align-items: center; text-align: center; }
  .hero { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .section { padding: 56px 0; }
  .band { padding: 40px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .badge { flex: 1 1 auto; }
}

/* accessibility: respect reduced-motion (ui-ux-pro-max UX rule) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .phone { transform: none; }
  .btn:hover, .badge:hover, .chip { transform: none; }
}

/* accessibility: visible keyboard focus (ui-ux-pro-max a11y rule) */
a:focus-visible, .btn:focus-visible, .badge:focus-visible,
summary:focus-visible, .nav-links a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
