/* ==========================================================================
   NUXTRAX — shared design system
   Premium plant-wellness brand. Forest green + warm cream + muted gold.
   Extracted from the distributor-approved mockups (2026-05). Every page
   (index, science, products, product detail, about, start, stories,
   opportunity) loads this file and builds on the tokens + components below.
   Compliance: structure-function language only — no disease / age-reversal /
   telomere / stem-cell claims anywhere in copy.
   ========================================================================== */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --ink:        #1b2419;   /* deepest — darkest text on cream            */
  --green-900:  #232e21;   /* nav bar, deepest panels                    */
  --green-800:  #2e3b2b;   /* footer, dark sections                      */
  --green-700:  #3c4a37;   /* "How It Works" panel, raised dark surfaces */
  --green-600:  #4a5942;   /* dark-section hairlines / muted-on-dark      */
  --cream:      #f3efe6;   /* page background                            */
  --cream-2:    #ece7da;   /* alt cream band                             */
  --card:       #ffffff;   /* card surface on cream                      */
  --gold:       #c2a14e;   /* primary accent — buttons, marks            */
  --gold-bright:#d2b463;   /* gold hover                                 */
  --gold-deep:  #a3853c;   /* gold pressed / on-light text               */
  --text:       #232a20;   /* body text on cream                         */
  --muted:      #6c7264;   /* secondary text on cream                    */
  --on-dark:    #f4f1e8;   /* body text on dark green                    */
  --on-dark-mut:#aab3a0;   /* secondary text on dark green               */
  --line:       rgba(35,46,33,0.14);   /* hairline on cream              */
  --line-dark:  rgba(244,241,232,0.16);/* hairline on dark green         */
  --shadow:     0 18px 48px rgba(27,36,25,0.12);
  --radius:     14px;
  --radius-sm:  9px;
  --maxw:       1180px;
  --nav-h:      68px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.62;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Typography ──────────────────────────────────────────────────────────── */
.display, h1, h2, h3 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.05rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.display em, h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.lead { font-size: 1.08rem; color: var(--muted); line-height: 1.66; }

/* ── Layout primitives ───────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--cream2 { background: var(--cream-2); }
.section--dark   { background: var(--green-800); color: var(--on-dark); }
.section--dark .eyebrow { color: var(--gold-bright); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark .display { color: #fff; }
.section--dark .lead { color: var(--on-dark-mut); }
.section-head { max-width: 660px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  border-radius: 7px; border: 1.5px solid transparent;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.btn--gold    { background: var(--gold); color: #20250f; }
.btn--gold:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn--ghost   { background: transparent; border-color: var(--gold); color: var(--gold-deep); }
.btn--ghost:hover { background: var(--gold); color: #20250f; }
.btn--on-dark { background: transparent; border-color: rgba(244,241,232,0.5); color: #fff; }
.btn--on-dark:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn--lg { padding: 17px 38px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.textlink {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-deep); display: inline-flex; align-items: center; gap: 7px;
}
.textlink:hover { color: var(--gold); }
.textlink::after { content: '→'; transition: transform .16s; }
.textlink:hover::after { transform: translateX(3px); }

/* ── Header / nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--green-900);
  border-bottom: 1px solid var(--line-dark);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: baseline; gap: 2px; }
.brand-word {
  font-weight: 800; font-size: 19px; letter-spacing: 0.16em;
  color: #fff; text-transform: uppercase;
}
.brand-x { color: var(--gold); font-weight: 800; }
.brand-tag {
  display: block; font-size: 8px; letter-spacing: 0.22em;
  color: var(--on-dark-mut); text-transform: uppercase; font-weight: 600;
  margin-top: 2px;
}
.nav-links {
  display: flex; gap: 26px; margin-left: 14px;
  list-style: none; align-items: center;
}
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-mut); transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-icon { color: var(--on-dark-mut); display: inline-flex; }
.nav-icon:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ── Feature-icon grid (the thin-line icon rows) ─────────────────────────── */
.feature-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
}
.feature {
  text-align: center; padding: 8px 6px;
}
.feature-ico {
  width: 42px; height: 42px; margin: 0 auto 12px;
  color: var(--gold-deep);
}
.section--dark .feature-ico { color: var(--gold-bright); }
.feature-name {
  font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  margin-bottom: 5px;
}
.feature-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.section--dark .feature-desc { color: var(--on-dark-mut); }
@media (max-width: 860px) { .feature-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .feature-row { grid-template-columns: repeat(2, 1fr); } }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.product-card { text-align: center; display: flex; flex-direction: column; }
.product-card img { height: 168px; object-fit: contain; margin: 0 auto 16px; }
.product-card .product-name {
  font-family: 'Fraunces', Georgia, serif; font-size: 1.2rem; color: var(--ink);
  margin-bottom: 6px;
}
.product-card .product-blurb {
  font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 16px;
  flex: 1;
}

/* program-tier card */
.tier {
  background: var(--green-700); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 30px 26px; color: var(--on-dark);
  position: relative;
}
.tier.featured { border-color: var(--gold); }
.tier-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #20250f;
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
}
.tier-name {
  font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 4px;
}
.tier-sub { font-size: 12.5px; color: var(--on-dark-mut); margin-bottom: 18px; }
.tier-price {
  font-family: 'Fraunces', Georgia, serif; font-size: 2.5rem; color: #fff; line-height: 1;
  margin-bottom: 18px;
}
.tier ul { list-style: none; margin-bottom: 22px; }
.tier li {
  font-size: 13.5px; color: var(--on-dark); padding: 7px 0 7px 24px;
  position: relative; border-bottom: 1px solid var(--line-dark);
}
.tier li::before {
  content: '✓'; position: absolute; left: 0; color: var(--gold-bright); font-weight: 700;
}

/* testimonial */
.quote {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column;
}
.quote-text { font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.quote-who { display: flex; align-items: center; gap: 11px; }
.quote-who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote-name { font-size: 13px; font-weight: 700; }
.quote-meta { font-size: 12px; color: var(--muted); }

/* ── Trust strip ─────────────────────────────────────────────────────────── */
.trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 42px;
  align-items: center;
}
.trust-item {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.section--dark .trust-item { color: var(--on-dark-mut); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--green-900); color: var(--on-dark-mut); padding: 64px 0 30px; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 36px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line-dark);
}
.footer h4 {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 16px;
}
.footer-blurb { font-size: 13px; line-height: 1.6; margin: 14px 0 18px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { font-size: 13px; transition: color .15s; }
.footer ul a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a { color: var(--on-dark-mut); }
.footer-social a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; font-size: 12px;
}
.footer-legal { display: flex; gap: 20px; }
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ── Compliance line ─────────────────────────────────────────────────────── */
.compliance {
  max-width: 720px; margin: 22px auto 0; text-align: center;
  font-size: 11px; line-height: 1.6; color: var(--on-dark-mut); opacity: 0.8;
}

/* ── Responsive section padding ──────────────────────────────────────────── */
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .wrap { padding: 0 18px; }
}
