/* ============ RESET + BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #b07c7c;
  --gold-soft: #ead4d4;
  --ink: #1a1a1a;
  --ink-2: #3b302b;
  --muted: #8a7a73;
  --line: #ece4dd;
  --bg: #faf5f0;
  --tint: #f2e8e0;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(26,26,26,0.04);
  --shadow-md: 0 8px 24px rgba(26,26,26,0.06);
  --shadow-lg: 0 16px 48px rgba(26,26,26,0.08);
  --radius: 16px;
  --radius-lg: 24px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: 'Fraunces', 'Inter', serif; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.gold { color: var(--gold); }

a { color: var(--ink); text-decoration: none; }

/* ============ HEADER ============ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--ink);
}
.logo span { color: var(--gold); }
.header-cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  transition: transform 0.15s, background 0.15s;
}
.header-cta:hover { background: #000; transform: translateY(-1px); }

/* ============ HERO ============ */
.hero {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--tint) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--ink);
  background: var(--gold-soft);
  padding: 7px 14px;
  border-radius: 999px;
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 540px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary { background: var(--ink); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-lg { padding: 18px 38px; font-size: 1.1rem; }
.trust-row { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ============ DISCLAIMER STRIP ============ */
.disclaimer-strip {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 18px 0;
  font-size: 0.85rem;
}
.disclaimer-strip p { max-width: 880px; margin: 0 auto; text-align: center; }

/* ============ SECTION BASE ============ */
.section {
  padding: 88px 0;
}
.section-tint {
  background: var(--tint);
}
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ============ SPLIT SECTION ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-copy h2 { margin-bottom: 16px; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.checklist li {
  padding-left: 30px;
  position: relative;
  color: var(--ink-2);
  font-size: 1rem;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 18px; height: 18px;
  background: var(--gold);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ============ FORMULA SECTION ============ */
.formula-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 32px auto 0;
  max-width: 700px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.formula-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.formula-row:last-child { border-bottom: none; }
.formula-row.optional { opacity: 0.65; }
.formula-num {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 140px;
}
.formula-label {
  font-size: 1.05rem;
  color: var(--ink-2);
  font-weight: 500;
}
.formula-cadence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 28px auto 0;
}
.cadence-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.cadence-num {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.cadence-card p { color: var(--muted); font-size: 0.95rem; }
.formula-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* ============ FOOD GRID ============ */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.food-grid.small {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.food-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--line);
}
.food-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.food-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(135deg, var(--gold-soft) 0%, #f5e8a8 100%);
}
/* Bulletproof fallback: when img fails, JS strips it and parent card shows centered label */
.food-card.fallback {
  background: linear-gradient(135deg, var(--gold-soft) 0%, #f5e8a8 100%);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.food-card.fallback span {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 16px;
  text-align: center;
  font-weight: 600;
}
.food-card.fallback.sm { min-height: 130px; }
.food-card.fallback.sm span { font-size: 0.85rem; }
.food-card span {
  display: block;
  padding: 14px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
}
.food-card.sm img { aspect-ratio: 1 / 1; }
.food-card.sm span { font-size: 0.8rem; padding: 10px 8px; }

/* ============ CALLOUT ============ */
.callout {
  margin: 36px auto 0;
  max-width: 820px;
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.callout strong { color: var(--ink); }

/* ============ PORTION STRIP ============ */
.portion-strip {
  margin: 40px auto 0;
  max-width: 820px;
  background: var(--ink);
  color: var(--white);
  padding: 28px 32px;
  border-radius: var(--radius);
}
.portion-strip h3 { color: var(--white); margin-bottom: 16px; font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.portion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}
.portion-grid div { display: flex; flex-direction: column; gap: 2px; }
.portion-grid strong { color: var(--white); font-size: 0.95rem; }
.portion-grid span { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* ============ DUAL GRID (veggies + fruits) ============ */
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
}
.dual-title {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 16px;
}

/* ============ MEAL CARDS ============ */
.meal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.meal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.meal-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.meal-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.meal-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}
.meal-card h3 { font-size: 1.15rem; }
.meal-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.meal-card li {
  font-size: 0.92rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.meal-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============ SAMPLE DAY ============ */
.sample-day {
  background: linear-gradient(180deg, var(--bg) 0%, var(--tint) 100%);
}
.day-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.day-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.day-time {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}
.day-block h3 { font-size: 1.15rem; }
.day-block p { color: var(--muted); font-size: 0.95rem; }

.totals-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 20px;
  box-shadow: var(--shadow-lg);
}
.totals-card h3 {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-align: center;
}
.totals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  text-align: center;
}
.totals-grid > div { display: flex; flex-direction: column; gap: 4px; }
.totals-num {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}
.totals-grid span:last-child { font-size: 0.8rem; letter-spacing: 1px; color: rgba(255,255,255,0.7); text-transform: uppercase; }
.totals-note { margin-top: 20px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.65); font-style: italic; }

/* ============ FINAL CTA ============ */
.final-cta {
  padding: 96px 0;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}
.final-cta h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin-bottom: 16px;
}
.final-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 32px;
}
.final-cta .btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.final-cta .btn-primary:hover { background: #c89494; }
.small-note { margin-top: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 32px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.85rem;
}
.site-footer .small { font-size: 0.75rem; margin-top: 6px; color: rgba(255,255,255,0.35); }

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { aspect-ratio: 16/10; order: -1; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-img { order: -1; }
  .section { padding: 64px 0; }
  .formula-card { padding: 28px; }
  .formula-num { font-size: 1.3rem; min-width: 110px; }
  .formula-row { gap: 16px; padding: 14px 0; }
  .formula-cadence { grid-template-columns: 1fr; }
  .dual-grid { grid-template-columns: 1fr; gap: 32px; }
  .food-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .food-grid.small { grid-template-columns: repeat(3, 1fr); }
  .header-cta { padding: 7px 14px; font-size: 0.78rem; }
  .totals-card { padding: 24px; }
  .final-cta { padding: 64px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .food-grid.small { grid-template-columns: repeat(2, 1fr); }
  .trust-row { gap: 12px; font-size: 0.8rem; }
}

/* ============ SUPPLEMENT TWEAKS ============ */
.supp-link { display: block; color: inherit; }
.supp-link .food-card { height: 100%; display: flex; flex-direction: column; }
.supp-link .food-card img {
  background: linear-gradient(160deg, #faf5f0 0%, var(--tint) 100%);
  object-fit: contain;
  padding: 14px;
}
.supp-link .food-card span { display: flex; flex-direction: column; gap: 4px; }
.supp-link .food-card .shop {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.supp-link:hover .food-card { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.supp-link:hover .shop { color: var(--ink); }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.stack-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.stack-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.stack-card p { color: var(--ink-2); font-size: 0.95rem; }
.stack-card .time {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 4px;
}
