/* ===== TRUE LIFE LABS — LANDING PAGE ===== */

:root {
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl:  clamp(2.5rem, 1rem + 4vw, 5rem);

  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;

  --radius-sm: 0.375rem; --radius-md: 0.5rem;
  --radius-lg: 0.75rem;  --radius-xl: 1.25rem; --radius-full: 9999px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content: 1100px;
  --content-narrow: 720px;

  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
}

/* === LIGHT MODE === */
:root, [data-theme='light'] {
  --bg:        #f5f3ee;
  --surface:   #f8f6f1;
  --surface-2: #faf9f5;
  --offset:    #ece9e2;
  --offset-2:  #e5e1d8;
  --divider:   #d9d5cc;
  --border:    #ccc8be;
  --text:      #2a2620;
  --text-muted:#6e6a62;
  --text-faint:#aea9a0;
  --text-inv:  #f8f6f1;
  --primary:        #4a7c5c;
  --primary-hover:  #3a6349;
  --primary-active: #2c4d38;
  --primary-hi:     #d4e4da;
  --gold:      #b8860b;
  --shadow-sm: 0 1px 3px oklch(0.2 0.01 80 / 0.07);
  --shadow-md: 0 4px 14px oklch(0.2 0.01 80 / 0.09);
  --shadow-lg: 0 16px 40px oklch(0.2 0.01 80 / 0.13);
}

/* === DARK MODE === */
[data-theme='dark'] {
  --bg:        #191815;
  --surface:   #1e1d1a;
  --surface-2: #232119;
  --offset:    #201f1c;
  --offset-2:  #252320;
  --divider:   #2e2c28;
  --border:    #3d3b36;
  --text:      #d4d0c8;
  --text-muted:#7e7a72;
  --text-faint:#5a5751;
  --text-inv:  #2a2620;
  --primary:        #6aaa82;
  --primary-hover:  #539068;
  --primary-active: #3f7050;
  --primary-hi:     #263830;
  --gold:      #d4a843;
  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #191815; --surface: #1e1d1a; --surface-2: #232119;
    --offset: #201f1c; --offset-2: #252320; --divider: #2e2c28;
    --border: #3d3b36; --text: #d4d0c8; --text-muted: #7e7a72;
    --text-faint: #5a5751; --text-inv: #2a2620;
    --primary: #6aaa82; --primary-hover: #539068;
    --primary-active: #3f7050; --primary-hi: #263830; --gold: #d4a843;
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.25);
    --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
  }
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; }
h1,h2,h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: color-mix(in oklab, var(--primary), transparent 75%); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.01em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none; border: none; cursor: pointer; white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-active); transform: scale(0.98); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--text-muted); background: var(--offset); }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: rgba(255,255,255,0.9); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn-xl { padding: var(--space-5) var(--space-10); font-size: var(--text-lg); font-weight: 700; }
.btn-block { width: 100%; justify-content: center; border-radius: var(--radius-lg); }

/* === HEADER === */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg), transparent 8%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex; align-items: center;
  gap: var(--space-4);
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 72px; width: auto; }
.header-inner .header-cta { margin-left: auto; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover { background: var(--offset); color: var(--text); }

/* === HERO === */
.hero {
  padding: clamp(var(--space-20), 12vw, var(--space-24)) var(--space-6) clamp(var(--space-16), 10vw, var(--space-20));
  text-align: center;
}
.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--space-6);
}
.eyebrow-line {
  display: inline-block; flex: 1; max-width: 32px; height: 1.5px;
  background: var(--primary); border-radius: 1px;
}
.hero-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: var(--space-6);
}
.hero-heading em { font-style: italic; color: var(--primary); padding-right: 0.06em; }
.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-8);
}
.hero-ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center; margin-bottom: var(--space-5); }
.hero-offer {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--text-muted);
}
.hero-offer svg { color: var(--primary); }
.hero-offer strong { color: var(--primary); }

/* === TRUST BAR === */
.trust-bar {
  background: var(--offset);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: var(--space-4) var(--space-6);
  overflow-x: auto;
}
.trust-bar-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: flex; align-items: center;
  justify-content: center;
  gap: var(--space-4); flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.02em;
  white-space: nowrap;
}
.trust-item svg { color: var(--primary); flex-shrink: 0; }
.trust-divider { width: 1px; height: 14px; background: var(--divider); flex-shrink: 0; }
@media (max-width: 600px) { .trust-divider { display: none; } }

/* === SECTIONS SHARED === */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-20)) var(--space-6);
}
.section-inner { max-width: var(--content); margin: 0 auto; }
.section-header { margin-bottom: var(--space-10); }
.eyebrow-label {
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: var(--space-4);
}
.section-desc {
  font-size: var(--text-base); color: var(--text-muted);
  line-height: 1.7; max-width: 52ch;
}

/* === PRODUCTS PILLS === */
.products-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  cursor: default;
}
.pill:hover {
  border-color: var(--primary);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.pill-featured {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--primary-hi), transparent 30%);
}
.pill-featured:hover {
  background: var(--primary-hi);
}
.pill-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.pill-dose {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.pill-price {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.pill-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--primary);
  color: white;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pill-badge-glp {
  background: var(--gold);
  color: #2a2620;
}
.pill-separator {
  width: 1px;
  height: 14px;
  background: var(--divider);
  flex-shrink: 0;
}
.table-note {
  margin-top: var(--space-5);
  font-size: var(--text-xs); color: var(--text-faint); font-style: italic;
}

/* === STACKS === */
.stacks-section { background: var(--offset); }
.stacks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 960px) { .stacks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stacks-grid { grid-template-columns: 1fr; } }

.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-5);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.stack-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.stack-featured {
  background: var(--primary);
  border-color: transparent;
  color: white;
}
.stack-featured .stack-name,
.stack-featured .stack-goal,
.stack-featured .stack-price,
.stack-featured .sq,
.stack-featured .sd { color: white; }
.stack-featured .stack-list { border-color: rgba(255,255,255,0.2); }
.stack-featured .stack-list li { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.stack-featured .sq { background: rgba(255,255,255,0.2); }

.stack-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #2a2620;
  font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px var(--space-3); border-radius: 0 0 var(--radius-md) var(--radius-md);
  white-space: nowrap;
}

.stack-top {
  display: flex; gap: var(--space-4); justify-content: space-between; align-items: flex-start;
}
.stack-name {
  font-family: var(--font-display);
  font-size: var(--text-lg); font-weight: 700; line-height: 1.2;
  margin-bottom: var(--space-1);
}
.stack-goal { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.5; }
.stack-note { color: var(--primary); font-weight: 600; font-size: var(--text-xs); margin-left: var(--space-1); }
.stack-price {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 700; white-space: nowrap; line-height: 1; text-align: right;
}

.stack-list {
  list-style: none; flex: 1;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: var(--space-3) 0;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.stack-list li {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--text-muted);
  border-bottom: 1px solid var(--divider); padding-bottom: var(--space-2);
}
.stack-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sq {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px;
  background: var(--primary-hi); color: var(--primary);
  font-size: 11px; font-weight: 700;
  border-radius: var(--radius-sm); flex-shrink: 0;
}
.sd { font-size: var(--text-xs); color: var(--text-faint); margin-left: auto; }

.stack-featured .btn-block {
  background: white; color: var(--primary); border: none;
}
.stack-featured .btn-block:hover { background: rgba(255,255,255,0.9); }

/* === HOW IT WORKS === */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6);
}
@media (max-width: 768px) { .how-grid { grid-template-columns: 1fr; } }
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.how-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--primary-hi);
  line-height: 1; margin-bottom: var(--space-5);
}
[data-theme='dark'] .how-num { color: color-mix(in oklab, var(--primary), transparent 60%); }
.how-title {
  font-family: var(--font-display);
  font-size: var(--text-lg); font-weight: 600;
  margin-bottom: var(--space-3);
}
.how-desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }

/* === TESTIMONIALS === */
.testimonials-section { background: var(--offset); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
}
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }
.tcard-wide {
  background: var(--surface-2);
  border-color: var(--primary);
  border-width: 1.5px;
}
.tcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.tcard-stars {
  color: var(--gold);
  font-size: var(--text-lg);
  letter-spacing: 0.08em;
  line-height: 1;
}
.tcard-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.7;
  flex: 1;
  max-width: 100%;
  padding-left: var(--space-4);
  border-left: 3px solid var(--primary-hi);
}
[data-theme='dark'] .tcard-quote { border-left-color: var(--primary); opacity: 0.9; }
.tcard-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.tcard-author::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  margin-bottom: var(--space-2);
}

/* === ABOUT === */
.about-block {
  max-width: var(--content-narrow);
  margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.about-body {
  font-size: var(--text-base); color: var(--text-muted);
  line-height: 1.75; margin-bottom: var(--space-5); max-width: 62ch;
}
.about-stats {
  display: flex; gap: var(--space-10); flex-wrap: wrap; justify-content: center;
  margin-top: var(--space-10); padding-top: var(--space-8);
  border-top: 1px solid var(--divider); width: 100%;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl); font-weight: 700; color: var(--primary); line-height: 1;
}
.stat-label { font-size: var(--text-xs); color: var(--text-muted); }

/* === FINAL CTA === */
.cta-section {
  background: var(--primary);
  padding: clamp(var(--space-16), 10vw, var(--space-24)) var(--space-6);
  text-align: center;
}
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl); font-weight: 700;
  letter-spacing: -0.02em; color: white;
  margin-bottom: var(--space-4);
}
.cta-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.8); line-height: 1.7;
  margin-bottom: var(--space-8);
}
.cta-flag {
  margin-top: var(--space-6);
  font-size: var(--text-xs); color: rgba(255,255,255,0.55);
}

/* === FOOTER === */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--divider);
  padding: var(--space-12) var(--space-6);
  text-align: center;
}
.footer-inner { max-width: var(--content); margin: 0 auto; }
.footer-logo { height: 60px; width: auto; margin: 0 auto var(--space-4); }
.footer-tagline {
  font-size: var(--text-sm); color: var(--text-muted);
  line-height: 1.6; margin-bottom: var(--space-6);
}
.footer-copy {
  font-size: var(--text-xs); color: var(--text-faint);
  margin-bottom: var(--space-3);
}
.footer-disclaimer {
  font-size: var(--text-xs); color: var(--text-faint);
  max-width: 60ch; margin: 0 auto; line-height: 1.5;
}

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 550ms cubic-bezier(0.16,1,0.3,1), transform 550ms cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }
