:root {
  --ink: #25492b;
  --deep: #163c22;
  --paper: #f8f6ef;
  --mist: #edf4ec;
  --white: #fff;
  --orange: #e66b30;
  --muted: #5f6c60;
  --line: #c9d8c8;
  --shadow: 0 12px 32px rgba(30, 58, 34, .11);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #27352a;
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.56;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
h4 { font-size: 1.15rem; }
.eyebrow { color: var(--orange); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.accent { color: var(--orange); }
.muted { color: var(--muted); }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 96px 0; }
.section.mist { background: var(--mist); }
.section.white { background: #fffdf8; }
.section.dark { color: white; background: var(--deep); }
.section.dark h2, .section.dark h3, .section.dark h4 { color: white; }
.topbar { height: 28px; background: var(--deep); color: white; display: grid; place-items: center; font-size: .7rem; }
.nav { min-height: 78px; background: rgba(255,253,248,.97); border-bottom: 1px solid #d9dfd4; position: sticky; top: 0; z-index: 20; box-shadow:0 8px 28px rgba(31,62,35,.08); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: #1f2c22; font-family: Georgia, serif; font-size: 1rem; letter-spacing: .25em; font-weight: 700; }
.brand-logo { display:block; width:auto; height:23px; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #9da89e; font-size: .58rem; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--ink); font-size: .83rem; font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border-radius: 99px; background: var(--ink); color: white; font-weight: 750; font-size: .84rem; box-shadow: 0 8px 18px rgba(25,74,35,.18); }
.button.orange { background: var(--orange); }
.menu-button { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); }
.media {
  min-height: 270px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(36,73,42,.68);
  border: 1px dashed rgba(36,73,42,.32);
  background:
    linear-gradient(135deg, rgba(238,244,235,.88), rgba(221,232,217,.82)),
    repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(36,73,42,.04) 18px, rgba(36,73,42,.04) 36px);
  overflow: hidden;
}
.media::before { content: "IMAGE / VIDEO PLACEHOLDER"; font-size: .72rem; font-weight: 850; letter-spacing: .14em; padding: 12px; }
.media.has-image::before { display: none; }
.media img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; display: block; }
.media.tall { min-height: 430px; }
.media.hero-media { border-radius: 0; min-height: 430px; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.split.reverse .media { order: -1; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: white; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.rule-card { border-top: 3px solid #83a679; padding-top: 20px; }
.rule-card.orange-rule { border-top-color: var(--orange); }
.hero { position: relative; min-height: 470px; color: white; display: flex; align-items: center; background: linear-gradient(90deg, rgba(20,49,26,.88), rgba(20,49,26,.25)), #71806e; }
.hero .hero-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.55); font-size: .75rem; letter-spacing: .16em; border: 1px dashed rgba(255,255,255,.28); }
.hero .hero-placeholder::after { content: "HERO IMAGE PLACEHOLDER"; }
.section-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero > .section-bg { z-index: 0; }
.hero.has-photo { background: #50604e; }
.hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(20,49,26,.86), rgba(20,49,26,.18)); }
.cta.has-photo { position: relative; overflow: hidden; background: #35543b; }
.cta.has-photo::after { content: ""; position: absolute; inset: 0; background: rgba(20,65,31,.80); }
.cta.has-photo > div { position: relative; z-index: 1; }
.cta.has-photo > .section-bg { z-index: 0; }
.hero-content { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 1; }
.hero h1, .hero h2 { color: white; max-width: 620px; }
.hero p { max-width: 560px; font-size: 1.08rem; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product { overflow: hidden; background: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.product .media { width:100%; min-height:300px; margin:0; border:0; border-radius:0; overflow:hidden; }
.product .media img { width:100%; height:100%; min-height:300px; object-fit:cover; display:block; }
.product-copy { padding: 28px 30px 34px; }
.product-copy .eyebrow { font-size: .62rem; }
.flag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.flag { background: white; border-radius: 99px; padding: 6px 12px; box-shadow: 0 3px 12px rgba(25,55,30,.08); font-size: .75rem; }
.cta { min-height: 470px; display: grid; place-items: center; text-align: center; color: white; background: linear-gradient(rgba(20,65,31,.82), rgba(20,65,31,.82)), #55765a; padding: 80px 24px; }
.cta h2 { color: white; max-width: 700px; margin-inline: auto; }
.cta p { max-width: 600px; margin-inline: auto; }
.footer { background: #fbfaf5; padding: 52px 0 30px; font-size: .78rem; color: #657066; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 44px; }
.footer h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; }
.footer a { display: block; margin: 8px 0; }
.legal { border-top: 1px solid #e0e3dc; margin-top: 36px; padding-top: 20px; font-size: .68rem; }

/* Ingredients */
.ingredients-hero { min-height: 400px; }
.formula-nav { background: var(--mist); padding: 18px 0; }
.formula-inner { display: flex; align-items: center; justify-content: space-between; }
.pills { display: flex; background: white; border-radius: 99px; padding: 4px; box-shadow: 0 8px 22px rgba(30,65,32,.1); }
.pill { border: 0; background: transparent; padding: 10px 23px; border-radius: 99px; color: var(--ink); font-weight: 750; cursor: pointer; }
.pill.active { background: var(--ink); color: white; }
.ingredient-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 45px; }
.ingredient-head p { max-width: 650px; }
.ingredient-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ingredient-card { min-height: 300px; padding: 0; display: grid; grid-template-columns: 42% 1fr; overflow: hidden; }
.ingredient-card .media { border: 0; border-radius: 0; min-height: 100%; }
.ingredient-copy { padding: 25px 24px; }
.ingredient-title { display: flex; justify-content: space-between; gap: 10px; }
.ingredient-title h3 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 5px; }
.dose { color: var(--orange); white-space: nowrap; font-size: .65rem; font-weight: 800; }
.ingredient-copy p { font-size: .8rem; line-height: 1.5; }
.tag { display: inline-block; background: #558a4d; color: white; border-radius: 99px; padding: 4px 9px; font-size: .57rem; margin: 3px 0 9px; }
.read-more { color: var(--orange); font-weight: 800; font-size: .72rem; }
.subhead { margin: 46px 0 22px; color: var(--orange); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

/* Science */
.science-intro { padding: 76px 0; }
.science-intro .split { align-items: start; }
.fronts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 34px; }
.front-card { border-radius: 14px; background: white; padding: 26px; box-shadow: 0 9px 24px rgba(25,62,31,.08); }
.front-card span, .science-badges span { display: inline-block; margin: 8px 5px 0 0; padding: 4px 9px; border-radius: 99px; background: var(--mist); color: var(--ink); font-size: .66rem; font-weight: 750; }
.joint-jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.job { padding: 20px; border: 1px solid #d8e2d7; border-radius: 12px; }
.job h4 { margin-bottom: 8px; }
.job p { font-size: .82rem; }
.green-panel { background: radial-gradient(circle at 80% 20%, rgba(112,163,100,.35), transparent 35%), var(--deep); color: white; }
.green-panel h2, .green-panel h3, .green-panel h4 { color: white; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.principle { border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 22px; background: rgba(255,255,255,.06); }
.principle p { font-size: .82rem; color: rgba(255,255,255,.78); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 30px 0; }
.stat { padding: 18px 0; border-top: 2px solid var(--orange); }
.stat strong { display: block; color: var(--orange); font-size: 2.2rem; }
.tiers { display: grid; gap: 10px; counter-reset: tier; }
.tier { counter-increment: tier; display: grid; grid-template-columns: 52px 1fr; gap: 18px; background: white; padding: 20px; border-radius: 12px; box-shadow: 0 5px 16px rgba(30,55,32,.06); }
.tier::before { content: counter(tier); color: var(--orange); font-size: 1.5rem; font-weight: 850; }
.tier.featured { background: var(--deep); color: white; }
.tier.featured h3 { color: white; }
.origin-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.origin-table th, .origin-table td { padding: 15px 18px; border-bottom: 1px solid #e8ebe4; text-align: left; font-size: .82rem; }
.origin-table th { background: #e8efe5; color: var(--ink); }
.experts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.expert { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; }
.expert .media { width:190px; height:230px; min-height:230px; margin:0; border:0; border-radius:16px; background:#eef2ec; }
.expert .media img { width:100%; height:100%; object-fit:contain; object-position:center bottom; }
.avatars { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.avatar { width: 150px; text-align: center; font-size: .78rem; line-height:1.45; }
.avatar .media { width: 92px; height:92px; min-height: 92px; border-radius: 50%; margin: 0 auto 10px; }
.avatar .media img { width:100%; height:100%; object-fit:cover; object-position:top center; }
.evidence-group { margin-top: 44px; }
.evidence-item { display: grid; grid-template-columns: 180px 1fr; gap: 34px; padding: 32px 0; border-top: 1px solid #cdd9ca; }
.evidence-item h3 { font-size: 1.55rem; }
.evidence-item p { font-size: .83rem; }
.study-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.study { padding: 16px; background: rgba(255,255,255,.6); border-radius: 10px; font-size: .72rem; }

@media (max-width: 820px) {
  .wrap, .narrow, .hero-content { width: min(100% - 32px, var(--max)); }
  .section { padding: 64px 0; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 78px; padding: 22px; background: white; flex-direction: column; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .menu-button { display: block; }
  .split, .split.reverse, .products, .cards-3, .ingredient-grid, .fronts, .principles, .experts { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
  .ingredient-card { grid-template-columns: 38% 1fr; }
  .joint-jobs, .study-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .evidence-item { grid-template-columns: 1fr; gap: 4px; }
  .hero .hero-placeholder::after { content: none; display: none; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .topbar { font-size: .6rem; }
  .hero { min-height: 430px; }
  .ingredient-head, .formula-inner { align-items: flex-start; flex-direction: column; }
  .ingredient-card { grid-template-columns: 1fr; }
  .ingredient-card .media { min-height: 190px; }
  .stats { grid-template-columns: 1fr; }
  .expert { grid-template-columns: 1fr; }
  .expert .media { width:100%; height:300px; }
}
