/* ============================================================
   Lifestack Digital — Unified Shell  (Version C / Hybrid)
   Single source of truth for header, trust-bar, footer, CTA.

   THE FLOW (matches the brand hub homepage):
     1. White sticky header        → universal trust signal
     2. Cream body                 → warm, editorial, family-friendly
     3. Forest green CTAs          → same buy-button everywhere
     4. Dark green trust bar       → strong contrast pre-footer
     5. Dark forest gradient footer → PIXEL-MATCHES brand hub footer

   COLOR SYSTEM (Lifestack Parent — never product-specific):
     Header bg:           #FFFFFF
     Page bg / footer-top transition: cream  #F4F7F0
     Brand hub footer colors (matched exactly):
       gradient: #08201a → #0f2e23 → #1f4d3a
       text:     rgba(247,240,222, *)
     Primary CTA / Cart pill / Trust bar bg:  #1A2F22 (Meadow green)
     CTA text:            #A8D5B5 (Sage)
     Sage border:         #E5EFE0

   Each page wraps a DIFFERENT product middle in the SAME shell.
   ============================================================ */

:root {
  /* Color tokens — matched EXACTLY to brand hub (index.html) so any page
     using ls-shell renders identical to the hub side-by-side. */
  --ls-cream:       #f7f0de;  /* matches hub --bg */
  --ls-cream-2:     #fefbf3;  /* matches hub --bg-card */
  --ls-cream-warm:  #ede4cd;  /* matches hub --bg-warm */
  --ls-sage:        #A8D5B5;
  --ls-sage-soft:   #E5EFE0;
  --ls-sage-deep:   #6BA37B;
  --ls-green:       #1f4d3a;  /* matches hub --forest */
  --ls-green-2:     #2a6347;  /* matches hub --forest-600 */
  --ls-green-hover: #0f2e23;
  --ls-ink:         #0d1a14;  /* matches hub --ink */
  --ls-ink-soft:    #1a2b21;  /* matches hub --ink-2 */
  --ls-ink-faint:   #6b7669;  /* matches hub --muted */
  --ls-line:        #e3dec5;  /* matches hub --line */
  --ls-paper:       #FFFFFF;
  /* Brand-hub forest gradient — used in footer + dark band */
  --ls-forest-900:  #08201a;
  --ls-forest-800:  #0f2e23;
  --ls-forest:      #1f4d3a;
  --ls-foot-text:        rgba(247,240,222,.85);
  --ls-foot-text-soft:   rgba(247,240,222,.55);
  --ls-foot-text-faint:  rgba(247,240,222,.4);
  --ls-foot-line:        rgba(247,240,222,.1);
  --ls-foot-link:        #f7f0de;
  --ls-foot-link-hover:  #fff;
}

/* ============================================================
   .ls-header — solid muted olive-forest, matches the brand hub's
   rendered output at the top of the page.

   The brand hub uses translucent rgba(15,46,35,.55) over cream body,
   which mathematically renders as approximately #778577 (muted olive).
   We use that solid color directly so the visual matches regardless
   of what's behind the header on each LP/checkout page.
   ============================================================ */
.ls-header {
  background: #778577;
  border-bottom: 1px solid rgba(247,244,236,.08);
  position: sticky;
  top: 0;
  z-index: 50;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Logo text fills — light on dark forest */
.ls-header .ls-logo svg text { fill: #fff; }
.ls-header .ls-logo svg text:last-of-type { fill: rgba(247,244,236,.7); }
.ls-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
@media (max-width: 720px) {
  .ls-header-inner { padding: 14px 18px; gap: 12px; }
}
.ls-logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.ls-logo svg { display: block; height: 44px; width: auto; }
@media (max-width: 600px) { .ls-logo svg { height: 36px; } }
.ls-header-right { display: flex; align-items: center; gap: 26px; flex: none; }

/* Full nav — matches brand hub homepage nav exactly.
   Desktop: text links + outlined My Orders + gold offer pill + dark green CTA.
   Mobile: hides text links, keeps logo + gold offer pill. */
.ls-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.ls-nav a {
  color: rgba(247,244,236,.85);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: color .15s;
}
.ls-nav a:hover { color: #fff; }

/* Outlined "My Orders" pill — matches brand hub .nav-account (default dark state) */
.ls-nav a.ls-nav-account {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(247,244,236,.7);
  font-size: .84rem;
  font-weight: 500;
  border: 1px solid rgba(247,244,236,.2);
  padding: 7px 11px;
  border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s;
}
.ls-nav a.ls-nav-account:hover {
  color: #fff;
  border-color: rgba(247,244,236,.45);
}

/* Gold offer pill — matches brand hub .nav-offer */
.ls-nav a.ls-nav-offer {
  background: #c8a05a;
  color: var(--ls-forest-900);
  font-weight: 700;
  font-size: .9rem;
  border: 1.5px solid #c8a05a;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(200,169,106,.5);
  transition: transform .15s, box-shadow .15s, background .2s, color .2s, border-color .2s;
}
.ls-nav a.ls-nav-offer:hover {
  background: #8a6433;
  color: #fff;
  border-color: #8a6433;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(200,169,106,.6);
}

/* Dark green CTA pill — matches brand hub .nav-cta */
.ls-nav a.ls-nav-cta {
  background: linear-gradient(135deg, var(--ls-forest) 0%, var(--ls-forest-800) 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: 0 4px 14px rgba(15,46,35,.32);
  transition: transform .15s, box-shadow .15s, background .25s;
}
.ls-nav a.ls-nav-cta:hover {
  background: linear-gradient(135deg, var(--ls-green-2) 0%, var(--ls-forest) 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15,46,35,.45);
}

/* Responsive: hide text links on tablet, keep just offer + cta pills */
@media (max-width: 920px) {
  .ls-nav { gap: 16px; }
  .ls-nav a.ls-nav-link { display: none; }
}
@media (max-width: 600px) {
  .ls-nav a.ls-nav-account { display: none; }
  .ls-nav a.ls-nav-cta { display: none; }
  .ls-nav { gap: 10px; }
  .ls-nav a.ls-nav-offer { font-size: .78rem; padding: 7px 14px; }
}

/* Header Stripe-mark (checkout-only) — solid white for max readability
   on the muted olive header. Stripe brand allows a white wordmark. */
.ls-header .ls-stripe-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
}
.ls-header .ls-stripe-mark .ls-lock {
  width: 16px;
  height: 16px;
  color: #fff;
  flex: none;
}
.ls-header .ls-stripe-mark .ls-stripe-logo {
  height: 16px;
  width: auto;
  color: #fff;
  flex: none;
}
.ls-header .ls-stripe-mark .ls-stripe-text {
  color: #fff;
  font-weight: 500;
}
@media (max-width: 720px) {
  .ls-header .ls-stripe-mark { font-size: .78rem; gap: 6px; }
  .ls-header .ls-stripe-mark .ls-stripe-logo { height: 14px; }
  .ls-header .ls-stripe-mark .ls-lock { width: 14px; height: 14px; }
}
@media (max-width: 600px) {
  .ls-header .ls-stripe-mark .ls-stripe-domain { display: none; }
}

/* Brand-tag chip (small "Order confirmed" / "Beyond The Behavior" next to logo) */
.ls-brand-tag {
  color: #fff;
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}
@media (max-width: 720px) { .ls-brand-tag { display: none; } }

/* ============================================================
   .ls-cta-primary — ALWAYS Lifestack green
   Builds muscle memory: green button = buy on Lifestack
   ============================================================ */
a.ls-cta-primary,
button.ls-cta-primary,
.ls-cta-primary {
  display: inline-block;
  background: var(--ls-green);
  color: var(--ls-sage);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .4px;
  padding: 16px 28px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(26,47,34,.22);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  line-height: 1.2;
}
a.ls-cta-primary:hover,
a.ls-cta-primary:focus,
button.ls-cta-primary:hover,
button.ls-cta-primary:focus,
.ls-cta-primary:hover,
.ls-cta-primary:focus {
  background: var(--ls-green-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(26,47,34,.32);
}
a.ls-cta-primary:active,
button.ls-cta-primary:active,
.ls-cta-primary:active { transform: translateY(0); }
.ls-header .ls-cta-primary { padding: 10px 20px; font-size: .82rem; }

/* ============================================================
   .ls-trust-bar — dark Meadow green, 4 icons, pre-footer
   Designed to merge visually into the dark footer below it.
   ============================================================ */
.ls-trust-bar {
  background: var(--ls-green);
  color: #fff;
  padding: 22px 28px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ls-trust-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.ls-trust-bar .ls-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
}
@media (max-width: 820px) {
  .ls-trust-bar .ls-trust-row { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 420px) {
  .ls-trust-bar .ls-trust-row { grid-template-columns: 1fr; }
}
.ls-trust-bar .ls-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ls-trust-bar .ls-trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(168,213,181,.16);
  color: var(--ls-sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ls-trust-bar .ls-trust-icon svg { width: 18px; height: 18px; }
.ls-trust-bar .ls-trust-body { line-height: 1.35; }
.ls-trust-bar .ls-trust-body b {
  display: block;
  font-weight: 700;
  font-size: .92rem;
  color: #fff;
}
.ls-trust-bar .ls-trust-body span {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
}

/* In-page trust-bar variant (drops above a product CTA, not above footer) */
.ls-trust-bar.is-inline {
  margin: 18px auto;
  max-width: 1080px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(26,47,34,.18);
  border-top: 0;
}

/* Payment-badge strip — realistic card-style logos (matches checkout.html) */
.ls-paychips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.ls-paybadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 34px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(16,24,40,.04);
}
.ls-paybadge svg, .ls-paybadge img { display: block; width: 100%; height: 100%; }
.ls-paybadge.brand-card { background: transparent; border: 0; box-shadow: none; }
.ls-paybadge.shop { background: #5A31F4; border-color: #5A31F4; }

/* ============================================================
   .ls-footer — dark forest gradient (PIXEL-MATCH brand hub)
   ============================================================ */
.ls-footer {
  background: linear-gradient(135deg, var(--ls-forest-900) 0%, var(--ls-forest-800) 60%, var(--ls-forest) 100%);
  color: var(--ls-foot-text);
  padding: 56px 0 28px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: .92rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.ls-footer a {
  color: var(--ls-foot-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.ls-footer a:hover {
  color: var(--ls-foot-link-hover);
  border-bottom-color: var(--ls-foot-text-soft);
}
.ls-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .ls-footer-inner { padding: 0 18px; } }
.ls-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 820px) {
  .ls-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .ls-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.ls-foot-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ls-foot-text-soft);
  margin: 0 0 14px;
}
.ls-foot-col a {
  display: block;
  padding: 4px 0;
  color: var(--ls-foot-text);
  font-size: .92rem;
}
.ls-foot-brand .ls-foot-logo {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}
.ls-foot-brand .ls-foot-blurb {
  color: var(--ls-foot-text-soft);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: .94rem;
  line-height: 1.55;
  max-width: 320px;
  margin: 0 0 12px;
}
.ls-foot-brand .ls-foot-ai {
  font-size: .76rem;
  color: var(--ls-foot-text-faint);
  line-height: 1.55;
  margin: 0;
}
.ls-foot-philosophy {
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: .9rem;
  color: var(--ls-foot-text-soft);
  padding: 22px 16px 14px;
  letter-spacing: .005em;
  border-top: 1px solid var(--ls-foot-line);
}
.ls-foot-philosophy .ls-foot-attrib {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ls-foot-text-faint);
}
.ls-foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  color: var(--ls-foot-text-faint);
  font-size: .8rem;
  border-top: 1px solid var(--ls-foot-line);
}
.ls-foot-disc {
  max-width: 880px;
  margin: 16px auto 0;
  padding: 14px 18px;
  background: rgba(247,240,222,.04);
  border-left: 3px solid var(--ls-foot-line);
  border-radius: 6px;
  color: var(--ls-foot-text-soft);
  font-size: .78rem;
  line-height: 1.6;
}
