/* ============================
   Marrow — tokens
   ============================ */
:root {
  --bone: #F3EEE4;
  --paper: #FFFFFF;
  --ink: #1B1812;
  --ink-soft: #55503F;
  --line: #DFD6C3;
  --rust: #B5502F;
  --rust-deep: #8C3B22;
  --moss: #5C6B4F;
  --can-bg: #ECEFE6;
  --can-line: #A9BC97;
  --cant-bg: #F7E9E2;
  --cant-line: #E0AE97;

  --font-display: "Bitter", serif;
  --font-body: "Figtree", sans-serif;
  --font-mono: "DM Mono", monospace;

  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  margin: 0 0 42px;
  max-width: 34ch;
}

/* ============================
   Header
   ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243,238,228,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--rust); display: inline-flex; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--rust-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ============================
   Hero
   ============================ */
.hero { padding: 70px 0 50px; }
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--rust-deep);
  margin: 0 0 18px;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 22px;
  max-width: 21ch;
}
.hero-sub {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-deep); transform: translateY(-1px); }
.btn-ghost { border: 1.4px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--rust-deep); color: var(--rust-deep); }
.hero-disclosure {
  font-size: 0.83rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}
.hero-visual {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}

/* ============================
   Trust strip
   ============================ */
.trust-strip {
  background: var(--ink);
  color: var(--bone);
  padding: 30px 0;
}
.trust-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item { display: flex; flex-direction: column; gap: 6px; }
.trust-figure {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--rust);
}
.trust-label { font-size: 0.82rem; color: #CFC6B2; }

/* ============================
   Honest section
   ============================ */
.honest { padding: 80px 0; }
.honest-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  margin: 0 0 34px;
}
.honest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 26px;
}
.honest-card {
  padding: 28px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.honest-can { background: var(--can-bg); border-color: var(--can-line); }
.honest-cant { background: var(--cant-bg); border-color: var(--cant-line); }
.honest-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 12px;
}
.honest-card p { margin: 0; color: var(--ink-soft); }
.honest-footnote {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 70ch;
  border-left: 2px solid var(--rust);
  padding-left: 16px;
  margin: 0;
}

/* ============================
   Ingredients (card grid)
   ============================ */
.ingredients { padding: 80px 0; background: var(--paper); }
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ingredient-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
}
.ingredient-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  color: var(--rust);
  margin-bottom: 14px;
}
.ingredient-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.ingredient-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.ingredient-card-note {
  background: var(--bone);
  border-style: dashed;
}

/* ============================
   How it works (timeline)
   ============================ */
.how-it-works { padding: 80px 0; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  padding-bottom: 36px;
  position: relative;
}
.timeline-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline-marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.timeline-content p { margin: 0; color: var(--ink-soft); max-width: 58ch; }

/* ============================
   Supplement facts
   ============================ */
.facts { padding: 80px 0; background: var(--ink); color: var(--bone); }
.facts .section-heading { color: var(--bone); }
.facts-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
}
.facts-card {
  background: #2A2620;
  border-radius: 6px;
  padding: 26px;
  border: 1px solid #3C372D;
}
.facts-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 16px;
  color: var(--rust);
}
.facts-card p { margin: 0; color: #CFC6B2; font-size: 0.92rem; }
.facts-panel dl { margin: 0; }
.facts-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #3C372D;
  font-size: 0.9rem;
}
.facts-panel dl > div:last-child { border-bottom: none; }
.facts-panel dt { color: #CFC6B2; }
.facts-panel dd { margin: 0; font-family: var(--font-mono); font-size: 0.82rem; text-align: right; }

/* ============================
   FAQ
   ============================ */
.faq { padding: 80px 0; }
.faq-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--font-mono);
  color: var(--rust);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 12px 0 0; color: var(--ink-soft); }

/* ============================
   CTA
   ============================ */
.cta { padding: 90px 0; text-align: center; }
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  margin: 0 0 16px;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-inner p {
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 30px;
}

/* ============================
   Footer
   ============================ */
.site-footer { background: var(--ink); color: #CFC6B2; padding: 50px 0 30px; }
.footer-inner { display: grid; gap: 20px; }
.footer-brand .brand-name {
  font-family: var(--font-display);
  color: var(--bone);
  font-size: 1.2rem;
}
.footer-brand p { margin: 6px 0 0; font-size: 0.88rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.88rem; color: #CFC6B2; }
.footer-nav a:hover { color: var(--rust); }
.footer-disclaimer {
  font-size: 0.78rem;
  color: #938C76;
  max-width: 75ch;
  border-top: 1px solid #3C372D;
  padding-top: 18px;
  margin: 10px 0 0;
}
.footer-copy { font-size: 0.78rem; color: #726C5A; margin: 0; }

/* ============================
   Reveal on scroll
   ============================ */
.reveal-ready { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-in { opacity: 1; transform: translateY(0); }

/* ============================
   Responsive
   ============================ */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    padding: 16px 28px 24px;
    gap: 16px;
  }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .honest-grid { grid-template-columns: 1fr; }
  .ingredient-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: 1fr; }
  .faq-columns { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .section-inner { padding: 0 18px; }
  .header-inner { padding: 14px 18px; }
  .hero { padding: 40px 0 36px; }
  .hero-inner { padding: 0 18px; gap: 34px; }
  .trust-inner { grid-template-columns: 1fr 1fr; padding: 0 18px; }
  .ingredient-grid { grid-template-columns: 1fr; }
  .honest, .ingredients, .how-it-works, .facts, .faq, .cta { padding: 54px 0; }
}
