/* LeafSource Design System
   ------------------------------------------------------------
   Shared by all landing pages. Each product page sets its own
   accent palette via :root override in <style> tag.
*/

:root {
  /* Brand foundation */
  --green-900: #0e2e1f;
  --green-800: #143b29;
  --green-700: #1c4e36;
  --green-500: #3d7a5a;
  --green-300: #b8d2bd;
  --cream:     #f5efe3;
  --cream-2:   #ece4d2;
  --paper:     #fbf8f1;
  --ink:       #1a1a1a;
  --muted:     #5e5d57;

  /* Per-page accent (override below) */
  --accent:    #d96b3c;
  --accent-2:  #e8b86b;

  --radius:    22px;
  --radius-lg: 36px;
  --shadow-sm: 0 2px 10px rgba(20, 59, 41, 0.06);
  --shadow-md: 0 12px 40px rgba(14, 46, 31, 0.12);
  --shadow-lg: 0 30px 80px rgba(14, 46, 31, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; }
p  { margin: 0 0 1em; color: var(--muted); }
a  { color: inherit; text-decoration: none; }
em { font-style: italic; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.wide      { width: min(1320px, 94%); margin: 0 auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-700);
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(251, 248, 241, 0.78);
  border-bottom: 1px solid rgba(20, 59, 41, 0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand { display:flex; align-items:center; gap:10px; font-weight: 700; font-family: 'Fraunces', serif; font-size: 1.25rem; color: var(--green-900); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #5fae7a, var(--green-700));
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.18);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 8px;
  background: var(--cream); opacity: 0.85;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 C 6 6, 6 14, 12 22 C 18 14, 18 6, 12 2 Z' fill='black'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 C 6 6, 6 14, 12 22 C 18 14, 18 6, 12 2 Z' fill='black'/></svg>") no-repeat center / contain;
}
.nav-links { display:flex; gap: 28px; font-size: 0.95rem; }
.nav-links a { color: var(--ink); opacity: 0.75; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; color: var(--green-900); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  background: var(--green-800);
  color: #fff;
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--green-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--green-900); border: 1.5px solid var(--green-800); }
.btn-secondary:hover { background: var(--green-800); color: #fff; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 80%, black); }
.btn-light { background: var(--cream); color: var(--green-900); }
.btn-light:hover { background: #fff; color: var(--green-900); }
.btn-lg { padding: 18px 32px; font-size: 1rem; }

/* HERO */
.hero { position: relative; padding: 80px 0 60px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(20, 59, 41, 0.08);
  color: var(--green-800);
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero-tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.hero h1 .accent-italic { font-style: italic; color: var(--green-700); font-weight: 400; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 500px; margin-top: 20px; }
.hero-cta { display:flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust {
  display:flex; gap: 28px; margin-top: 40px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--muted);
}
.hero-trust span { display:flex; align-items: center; gap: 8px; }
.check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.6), transparent 50%),
    var(--hero-gradient, linear-gradient(160deg, #e9dfca 0%, #d6c8a8 45%, #b9a982 100%));
  display:flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 75% 80%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 45%),
    radial-gradient(circle at 20% 85%, rgba(20,59,41,0.18), transparent 50%);
}
.hero-visual img {
  position: relative; width: 78%;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.28));
  transform: rotate(-3deg);
}
.floating-stat {
  position: absolute;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  color: var(--muted);
}
.floating-stat strong {
  display:block; font-family: 'Fraunces', serif; font-size: 1.5rem;
  color: var(--green-900); line-height: 1; margin-bottom: 4px;
}
.floating-stat.s1 { top: 18px; left: 18px; max-width: calc(50% - 18px); }
.floating-stat.s2 { bottom: 18px; right: 18px; max-width: calc(60% - 18px); }

/* Claims marquee */
.claims-band {
  background: var(--green-800);
  color: var(--cream);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.claims-track {
  display:flex; gap: 60px; white-space: nowrap;
  animation: marquee 36s linear infinite;
  font-family: 'Fraunces', serif; font-size: 1.15rem;
}
.claims-track span { display:inline-flex; align-items: center; gap: 16px; }
.claims-track span::after { content: "✦"; color: var(--accent-2); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.section-light { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-dark  { background: var(--green-900); color: var(--cream); }
.section-dark p, .section-dark .eyebrow { color: rgba(245,239,227,0.72); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }

.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; display:inline-block; }

/* Benefit cards */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.benefit-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20, 59, 41, 0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--green-700);
}
.benefit-card h3 { color: var(--green-900); }
.benefit-card p { font-size: 0.95rem; margin: 0; }

/* Two-up grid */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-grid.reverse > div:first-child { order: 2; }
.why-visual {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 70% 20%, rgba(255,255,255,0.5), transparent 60%),
    var(--why-gradient, linear-gradient(150deg, #d1bf95 0%, #a99372 100%));
  display:flex; align-items:center; justify-content:center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.why-visual img { width: 72%; filter: drop-shadow(0 25px 35px rgba(0,0,0,0.28)); }
.why-list { list-style: none; padding: 0; margin: 28px 0 0; }
.why-list li {
  display: flex; gap: 16px; padding: 18px 0;
  border-top: 1px solid rgba(20, 59, 41, 0.12);
}
.why-list li:last-child { border-bottom: 1px solid rgba(20, 59, 41, 0.12); }
.why-list .num {
  flex: 0 0 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-800); color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 600;
}
.why-list h4 { margin: 0 0 4px; color: var(--green-900); font-size: 1.1rem; }
.why-list p { margin: 0; font-size: 0.95rem; }

/* Formula card */
.formula-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ingredients {
  list-style:none; padding:0; margin: 24px 0 0;
  display: grid; gap: 14px;
}
.ingredients li {
  display:flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(20, 59, 41, 0.2);
}
.ingredients .name { font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--green-900); }
.ingredients .dose { font-weight: 600; color: var(--green-700); white-space: nowrap; }
.molecule {
  aspect-ratio: 1/1;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.6), transparent 60%);
  display:flex; align-items: center; justify-content: center;
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(245,239,227,0.18);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 50px;
}
.stat {
  background: var(--green-900);
  padding: 32px 24px;
  text-align: center;
}
.stat strong {
  display:block; font-family: 'Fraunces', serif;
  font-size: 2.4rem; color: var(--accent-2); line-height: 1; margin-bottom: 8px;
}
.stat span { font-size: 0.9rem; color: rgba(245,239,227,0.75); letter-spacing: 0.02em; }

/* Testimonials */
.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.testimonial {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(245,239,227,0.15);
  padding: 32px;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.testimonial blockquote {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem; line-height: 1.4;
  color: var(--cream); margin: 0 0 24px;
}
.testimonial .who { display:flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--cream); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex: 0 0 40px;
  display:flex; align-items:center; justify-content:center;
  font-family: 'Fraunces', serif; font-weight: 600; color: var(--green-900);
}

/* Collection */
.collection-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 50px;
}
.product-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid transparent;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(20,59,41,0.1); }
.product-card img {
  width: 100%; height: 200px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,0.15));
}
.product-card h4 { font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--green-900); margin: 0 0 6px; }
.product-card p  { font-size: 0.85rem; margin: 0 0 14px; min-height: 36px; }

/* CTA */
.cta-card {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  text-align: center;
  color: var(--cream);
  position: relative; overflow: hidden;
}
.cta-card::before {
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 40%),
    radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--accent-2) 25%, transparent), transparent 40%);
}
.cta-card > * { position: relative; }
.cta-card h2 { color: var(--cream); }
.cta-card p { color: rgba(245,239,227,0.78); max-width: 540px; margin: 0 auto 32px; }

/* Footer */
footer { padding: 60px 0 30px; background: var(--cream); color: var(--muted); font-size: 0.9rem; }
.footer-inner { display:flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-links { display:flex; gap: 24px; flex-wrap: wrap; }
.disclaimer { margin-top: 32px; font-size: 0.78rem; color: var(--muted); max-width: 800px; }

/* Lifestyle / story strip */
.story-strip {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  margin-top: 60px;
}
.story-tile {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
  display:flex; align-items: flex-end;
  padding: 22px;
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.story-tile.tall { aspect-ratio: 3/5; }
.story-tile p {
  position: relative; z-index: 2;
  margin: 0; color: var(--cream);
  font-family: 'Fraunces', serif; font-size: 1.05rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.story-tile::after {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(14,46,31,0.7) 100%);
  z-index: 1;
}

/* Pull-quote */
.pull-quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.25;
  color: var(--green-900);
  max-width: 860px; margin: 0 auto;
  text-align: center;
}
.pull-quote span { color: var(--accent); font-style: italic; }
.pull-quote cite {
  display: block; font-size: 0.9rem; color: var(--muted);
  font-family: 'Inter', sans-serif; font-style: normal;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 18px;
}

/* FAQ */
.faq { max-width: 760px; margin: 50px auto 0; }
.faq details {
  border-bottom: 1px solid rgba(20,59,41,0.15);
  padding: 22px 0;
  cursor: pointer;
}
.faq summary {
  list-style: none; cursor: pointer;
  font-family: 'Fraunces', serif; font-size: 1.2rem;
  color: var(--green-900);
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--green-700); transition: transform .3s; }
.faq details[open] summary::after { content: "−"; }
.faq details > p { margin: 14px 0 0; font-size: 0.98rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .why-grid, .formula-card, .story-strip { grid-template-columns: 1fr; gap: 40px; }
  .why-grid.reverse > div:first-child { order: 0; }
  .formula-card { padding: 36px; }
  .testimonial-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cta-card { padding: 50px 28px; }
  .section { padding: 70px 0; }
  .hero { padding: 50px 0 40px; }
  .floating-stat.s1 { left: 10px; top: 14px; }
  .floating-stat.s2 { right: 10px; bottom: 14px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* LeafSource logo in top nav (product pages) */
.logo-img { height: 44px; width: auto; display: block; }
@media (max-width: 720px) {
  .logo-img { height: 36px; }
}

/* ------------------------------------------------------------
   AI imagery — science cover + lifestyle banner
   ------------------------------------------------------------ */
.why-visual.cover { background: none; padding: 0; }
.why-visual.cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: none;
  border-radius: var(--radius-lg);
}

.lifestyle-band {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--cream);
}
.lifestyle-band img {
  display: block;
  width: 100%;
  height: clamp(360px, 48vw, 580px);
  object-fit: cover;
  object-position: center;
}
@media (max-width: 720px) {
  .lifestyle-band img { height: clamp(260px, 70vw, 420px); }
}

/* ------------------------------------------------------------
   Free eBook download (gated by email)
   ------------------------------------------------------------ */
.ebook-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.ebook-cover {
  position: relative;
  display: flex;
  justify-content: center;
}
.ebook-cover img {
  width: 100%;
  max-width: 360px;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(14, 46, 31, 0.28), 0 8px 16px rgba(0,0,0,0.12);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}
.ebook-cover img:hover { transform: rotate(0deg); }
.ebook-form {
  display: grid;
  gap: 14px;
  max-width: 460px;
  margin-top: 22px;
}
.ebook-form label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--green-900);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ebook-form input[type="text"],
.ebook-form input[type="email"] {
  border: 1.5px solid rgba(20, 59, 41, 0.15);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s ease;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.ebook-form input:focus {
  outline: none;
  border-color: var(--accent, var(--green-700));
}
.ebook-form .form-hp { position: absolute; left: -9999px; }
.ebook-form button { justify-self: start; margin-top: 8px; }
.form-thanks {
  color: var(--green-800);
  font-weight: 500;
  padding: 20px 0;
  font-size: 1.05rem;
}
.form-error {
  color: #b14a3c;
  font-size: 0.9rem;
  margin-top: 8px;
}
.ebook-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.ebook-meta span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 820px) {
  .ebook-grid { grid-template-columns: 1fr; gap: 40px; }
  .ebook-cover img { max-width: 280px; }
}
