/* ===== TRL theme: "Deep sage" (approved 2026-10-07) ===== */
  :root {
    --sage-deep: #0F2E23;   /* header, hero, footer */
    --sage-darker: #0A211A; /* top compliance bar, footer base */
    --sage-light: #EEF2EF;  /* page background */
    --white: #FFFFFF;       /* cards */
    --mint: #10B981;        /* main button */
    --emerald: #047857;     /* links, hover */
    --line: #DCE5DF;        /* card borders */
    --text: #0F2E23;
    --muted: #475569;
    --on-dark: #A9C4B8;     /* soft text on dark green */
  }
  * { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--sage-light); color: var(--text); font-family: 'Inter', system-ui, sans-serif; line-height: 1.6; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }

  h1, h2, h3, .head { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
  .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; }
  .wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

  /* Buttons: 8px corners */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; font-family: inherit; }
  .btn-primary { background: var(--mint); color: #04231A; }
  .btn-primary:hover { background: #34D399; }
  .btn-ghost { border-color: #4C7D69; color: #fff; background: transparent; }
  .btn-ghost:hover { border-color: #fff; }
  .btn-dark { background: var(--sage-deep); color: #fff; }
  .btn-dark:hover { background: var(--emerald); }
  .btn-outline { border-color: var(--sage-deep); color: var(--sage-deep); background: transparent; }
  .btn-outline:hover { background: var(--sage-deep); color: #fff; }

  /* Top compliance bar */
  .topbar { background: var(--sage-darker); color: #CFE0D6; font-size: 11px; letter-spacing: .06em; }
  .topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 12px; }
  .lang { background: none; border: 1px solid #3E6B59; color: #fff; border-radius: 6px; padding: 3px 10px; cursor: pointer; font-size: 11px; }
  .lang { white-space: nowrap; flex: none; }
  @media (max-width: 480px) { .topbar { font-size: 9px; letter-spacing: .03em; } }
  .lang:hover { border-color: var(--mint); }
  .lang b { color: var(--mint); font-weight: 500; }

  /* Header */
  .header { background: var(--sage-deep); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #1D4A3A; }
  .header .wrap { display: flex; justify-content: space-between; align-items: center; height: 76px; }
  .header img.logo { height: 48px; width: auto; }
  .nav { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--on-dark); }
  .nav a:hover { color: #fff; }
  .nav .cta { background: var(--mint); color: #04231A; padding: 9px 18px; border-radius: 8px; font-weight: 600; }
  .nav .cta:hover { background: #34D399; color: #04231A; }
  .burger { display: none; background: none; border: 1px solid #3E6B59; border-radius: 8px; padding: 9px 10px; cursor: pointer; }
  .burger span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }
  @media (max-width: 900px) { .nav { display: none; } .burger { display: block; } }
  .mobile-menu { position: fixed; inset: 0; z-index: 70; background: var(--sage-deep); display: none; flex-direction: column; padding: 24px; overflow-y: auto; }
  .mobile-menu.open { display: flex; }
  .mm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
  .mm-head img { height: 40px; width: auto; }
  .mm-close { background: none; border: 1px solid #3E6B59; border-radius: 8px; color: #fff; font-size: 16px; padding: 8px 13px; cursor: pointer; }
  .mm-links { display: flex; flex-direction: column; }
  .mm-links a { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 24px; color: #fff; padding: 14px 4px; border-bottom: 1px solid #1D4A3A; }
  .mm-links a.mm-cta { background: var(--mint); color: #04231A; text-align: center; border-radius: 8px; margin-top: 20px; border: none; font-size: 17px; }

  /* Footer */
  footer { background: var(--sage-darker); color: var(--on-dark); padding: 56px 0 28px; font-size: 14px; }
  .f-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
  @media (max-width: 860px) { .f-grid { grid-template-columns: 1fr 1fr; } }
  footer img.logo { height: 56px; width: auto; margin-bottom: 14px; }
  footer h4 { color: #fff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
  footer ul { list-style: none; margin: 0; padding: 0; }
  footer li { margin-bottom: 8px; }
  footer a:hover { color: #fff; }
  .ruo-box { border: 1px solid #27614D; background: rgba(16,185,129,.06); border-radius: 12px; padding: 18px; font-size: 12px; line-height: 1.7; color: #CFE0D6; margin-bottom: 22px; }
  .ruo-box strong { color: #fff; }
  .f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 11px; color: #7FA392; }

  /* Age gate and cookies */
  .age-gate { position: fixed; inset: 0; z-index: 9999; background: rgba(10,33,26,.97); display: flex; align-items: center; justify-content: center; padding: 24px; transition: opacity .4s; }
  .age-card { max-width: 520px; width: 100%; background: #fff; border-radius: 20px; padding: 40px 32px; text-align: center; }
  .age-card img { height: 84px; width: auto; margin: 0 auto 18px; }
  .age-card .eyebrow { color: var(--emerald); }
  .age-card h2 { font-size: 26px; margin-bottom: 12px; }
  .age-card p { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
  .age-card .btns { display: flex; flex-direction: column; gap: 10px; }
  .age-card .fine { font-size: 10px; letter-spacing: .08em; color: #7B8A83; margin-top: 20px; margin-bottom: 0; text-transform: uppercase; }
  .cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 480px; margin: 0 auto; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 30px rgba(15,46,35,.18); z-index: 9000; font-size: 13px; display: none; }
  .cookie-banner.show { display: block; }
  .cookie-banner p { margin: 0 0 12px; color: var(--muted); }
  .cookie-banner .btns { display: flex; gap: 8px; }
  .cookie-banner .btn { padding: 8px 14px; font-size: 13px; }

  :focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }


/* ===================================================================
   Compatibility layer for inner pages (converted from the old dark theme)
   =================================================================== */
.display { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important; font-weight: 700; letter-spacing: -0.02em !important; line-height: 1.12; }
h1.display { font-size: clamp(32px, 4.6vw, 52px) !important; }
h2.display { font-size: clamp(26px, 3.2vw, 38px) !important; }
.mono, .legal-hero-num, .toc-title, .section-eyebrow { font-family: 'JetBrains Mono', ui-monospace, monospace !important; }

/* Retire decorative effects from the old theme */
.cursor-dot, .cursor-ring, .orb, .legal-orb, .peptide-svg, .grid-bg::before { display: none !important; }
body::before { display: none !important; }
html, body { cursor: auto !important; overflow-x: clip !important; overflow-y: visible !important; }
.reveal-up, .reveal-text-inner, .reveal-text-line { opacity: 1 !important; transform: none !important; }
.reveal-text-line { overflow: visible !important; }

/* Tighter vertical rhythm than the old 128px sections */
main section[class*="py-32"], section.relative[class*="py-32"] { padding-top: 64px !important; padding-bottom: 64px !important; }
section[class*="py-24"] { padding-top: 56px !important; padding-bottom: 56px !important; }
section[class*="min-h-"] { min-height: 0 !important; }
section.page-hero { padding-top: 56px !important; padding-bottom: 56px !important; }
@media (max-width: 640px) { section.page-hero { padding-top: 36px !important; padding-bottom: 40px !important; } }

/* Dark green hero band on every inner page */
section.page-hero { background: var(--sage-deep); color: #fff; position: relative; z-index: 1; }

/* Shared button names used by older pages */
.btn-magnetic { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font-weight: 600; font-size: 14px; letter-spacing: 0 !important; text-transform: none !important; font-family: 'Inter', sans-serif !important; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--mint) !important; color: #04231A !important; border: 1.5px solid var(--mint) !important; font-weight: 600; }
.btn-primary:hover { background: #34D399 !important; border-color: #34D399 !important; color: #04231A !important; }
.btn-ghost { background: transparent; color: var(--sage-deep); border: 1.5px solid var(--sage-deep); }
.btn-ghost:hover { background: var(--sage-deep); color: #fff; }
.page-hero .btn-ghost { color: #fff; border-color: #4C7D69; }
.page-hero .btn-ghost:hover { border-color: #fff; background: transparent; }

/* Form fields: clear, high-contrast, 16px (no iOS zoom) */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
  font-size: 16px; border-radius: 8px !important; background: #fff; color: var(--text);
}
input::placeholder, textarea::placeholder { color: #7B8A83; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(16,185,129,.35); outline-offset: 0; border-color: var(--emerald) !important; }

/* Images that sat on dark backgrounds */
img { max-width: 100%; }

/* Footer compat: old pages had nav spacing above sections; keep footer last */
footer { margin-top: 0; }

/* Skip link + current page in nav */
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--sage-deep); padding: 10px 16px; z-index: 10000; border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
.nav a[aria-current="page"], .mm-links a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--mint); }

/* Old page scripts still try to restyle #mainNav on scroll; keep the new header fixed in place */
#mainNav { background: var(--sage-deep) !important; padding: 0 !important; backdrop-filter: none !important; border-bottom: 1px solid #1D4A3A !important; position: sticky !important; top: 0 !important; }

/* Big hero titles from the old theme */
.hero-title { font-family: 'Plus Jakarta Sans', sans-serif !important; font-size: clamp(34px, 5.2vw, 60px) !important; line-height: 1.1 !important; font-weight: 700; letter-spacing: -0.02em !important; text-transform: none !important; }
.hero-title [style*="italic"] { font-style: normal !important; color: #6EE7B7 !important; }
.vertical-text { display: none !important; }
.filter-bar { top: 76px !important; }
.page-hero [style*="coral"] { color: #6EE7B7 !important; font-style: normal !important; }
.page-hero .section-eyebrow, .page-hero .section-eyebrow::before { color: #6EE7B7; }
.page-hero .section-eyebrow::before { background: #6EE7B7; }
main [style*="italic"] { font-style: normal !important; color: var(--emerald) !important; }

/* Phone-width safety: grid children may shrink, so forms never push the page wider */
.grid > * { min-width: 0; }
@media (max-width: 767px) { form.grid { grid-template-columns: minmax(0, 1fr); } }
.bundle-line-label { font-size: clamp(22px, 5.2vw, 34px) !important; letter-spacing: -0.01em !important; flex-shrink: 1 !important; font-weight: 700; }
@media (max-width: 640px) { .form-section { padding: 22px 18px !important; } }

/* Product photos: nudge the teal backdrop toward the site's deep green so photos and page feel like one set */
img[src*="/vials/"] { filter: hue-rotate(-18deg) saturate(.88) brightness(.97); background: var(--sage-darker); border-radius: inherit; }
