/* ===== TRL theme: "Clinical sage" (v2, 2026-10-08) — refines "Deep sage".
   Mint = actions only. Emerald = lab proof (COA, lot, verified). ===== */
  :root {
    --sage-deep: #0F2E23;   /* header, hero, footer */
    --sage-darker: #0A211A; /* top compliance bar, footer base */
    --sage-light: #F3F6F4;  /* page background (cleaner than v1 #EEF2EF) */
    --white: #FFFFFF;       /* cards */
    --mint: #10B981;        /* main button */
    --emerald: #047857;     /* links, hover */
    --line: #DCE5DF;        /* card borders */
    --text: #0F2E23;
    --muted: #52615A;       /* green-grey, 6:1 on page */
    --proof-bg: #ECF7F1;    /* COA / verified chips */
    --proof-line: #A7D7C2;
    --field-line: #C9D6CE;
    --on-dark: #A9C4B8;     /* soft text on dark green */
    --photo-bg: #DCE7E1;    /* edge colour of the vial photos' light-sage studio backdrop (2026-10-08) */
    --accent: #FF9473;      /* coral accent on dark green (labels, details; never buttons) */
    --accent-ink: #C0492A;  /* coral for small text on light backgrounds (4.6:1) */
  }
  * { 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; } }
  /* Puerto Rico tag in the top bar (text hidden on phones, flag stays) and in the footer */
  .tb-right { display: inline-flex; align-items: center; gap: 14px; flex: none; }
  .pr-tag { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); white-space: nowrap; }
  .pr-flag { width: 18px; height: 12px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
  @media (max-width: 640px) { .pr-txt { display: none; } .tb-right { gap: 10px; } }
  @media (max-width: 420px) { .topbar .pr-tag { display: none; } }  /* keep the RUO line on one row */
  .pr-line { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--accent); font-size: 13px; }
  @media (min-width: 901px) { .pr-line { white-space: nowrap; } }
  .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; }
  /* Logo: leaf icon cropped from logo-wordmark.png + the name as real text (readable at any size).
     --h = logo height. The image is zoomed to 125% so the leaf icon (left part of the PNG) fills the full height. */
  .tlogo { --h: 46px; display: inline-flex; align-items: center; gap: 10px; color: #fff; line-height: 1; }
  .tlogo-icon { width: calc(var(--h) * .76); height: var(--h); flex: none;
                background: url(images/logo-wordmark.png) calc(var(--h) * -.09) calc(var(--h) * -.07) / auto 125% no-repeat; }
  .tlogo-text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .tlogo-text b { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: calc(var(--h) * .43); letter-spacing: .08em; }
  .tlogo-text small { font-family: 'JetBrains Mono', monospace; font-size: calc(var(--h) * .26); letter-spacing: .18em; color: #6EE7B7; font-weight: 500; }
  .mm-head .tlogo { --h: 40px; }
  footer .tlogo { --h: 52px; margin-bottom: 14px; }
  .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.9fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
  /* line the footer columns and bottom line up with the text inside the RUO box (18px padding + 1px border) */
  .f-grid, .f-bottom { padding: 0 32px; }
  footer .ruo-box { padding: 18px 31px; }  /* text starts 32px in, same as the columns above */
  @media (max-width: 640px) { .f-grid, .f-bottom { padding: 0 17px; } footer .ruo-box { padding: 16px; } }
  /* Phones/tablets: logo + blurb on its own full-width row, then the 4 link
     columns as a tidy 2x2 grid so headings line up (Shop|Quality, Support|Legal). */
  @media (max-width: 860px) {
    .f-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
    .f-grid > div:first-child { grid-column: 1 / -1; }
  }
  footer img.logo { height: 56px; width: auto; margin-bottom: 14px; }
  footer h4 { color: var(--accent); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
  /* research-use line under the logo: small and muted so it reads as fine print */
  footer .f-ruo { margin: 14px 0 0; max-width: 300px; font-size: 12px; line-height: 1.5; opacity: .7; }
  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); } }
@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 */
/* Vial photos: the calm sage tint + sage background (#4E7363) are baked into the JPGs (2026-10-08), so no CSS filter */
img[src*="/vials/"] { background: var(--photo-bg); border-radius: inherit; }


/* ===================================================================
   v2 shared components (header cart, order bar, proof chip, toast)
   =================================================================== */
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.hdr-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #3E6B59; color: #fff; background: transparent; }
.hdr-cart:hover { border-color: var(--mint); }
.hdr-cart .n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--mint); color: #04231A; font: 600 11px/20px 'Inter', sans-serif; text-align: center; }
.hdr-cart .n[hidden] { display: none; }
.burger { width: 44px; height: 44px; padding: 0; display: none; align-items: center; justify-content: center; flex-direction: column; }
@media (max-width: 900px) { .burger { display: inline-flex; } .header .wrap { height: 64px; } .header .tlogo { --h: 40px; }
  /* Phones/tablets: menu button left, logo centred, cart right */
  .header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .header .wrap > a:first-child { grid-column: 2; grid-row: 1; }
  .header .hdr-actions { display: contents; }
  .header .burger { grid-column: 1; grid-row: 1; justify-self: start; }
  .header .hdr-cart { grid-column: 3; grid-row: 1; justify-self: end; }
}
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* Proof chip: links straight to a lot's COA PDF */
.coa-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--proof-line); background: var(--proof-bg); color: var(--emerald); font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.coa-chip:hover { background: #fff; }
.coa-chip.pending { border-color: var(--line); background: var(--sage-light); color: var(--muted); }
.coa-chip svg { flex: none; }

/* Order bar: pinned to the bottom whenever the order has items */
.order-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 560px; margin: 0 auto; display: none; align-items: center; justify-content: space-between; gap: 12px; background: var(--sage-deep); color: #fff; border-radius: 14px; padding: 8px 8px 8px 16px; box-shadow: 0 12px 32px rgba(10,33,26,.35); }
.order-bar.show { display: flex; }
.order-bar .ob-sum { background: none; border: 0; color: inherit; text-align: left; padding: 4px 0; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; min-height: 44px; justify-content: center; }
.order-bar .ob-n { font-size: 12px; color: var(--on-dark); }
.order-bar .ob-t { font-weight: 600; font-size: 17px; }
.order-bar .ob-pay { background: var(--mint); color: #04231A; font-weight: 600; font-size: 15px; padding: 13px 20px; border-radius: 10px; white-space: nowrap; }
.order-bar .ob-pay:hover { background: #34D399; }
body.has-order-bar { padding-bottom: 84px; }
body.has-order-bar .cookie-banner { bottom: 96px; }

/* Toast used by quick-add outside the catalog */
.trl-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 80; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-size: 14px; box-shadow: 0 8px 24px rgba(15,46,35,.16); opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); }
.trl-toast.show { opacity: 1; }

/* "Repeat last order" only shows when this phone has one saved */
.reorder-only { display: none !important; }
html.has-reorder .reorder-only { display: inline-flex !important; }

/* Generic surface + chips used on several pages */
.surface { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald); }
.page-hero .eyebrow, .hero .eyebrow { color: #6EE7B7; }
.ruo-line { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }

/* Inner-page heroes: shorter on phones so content starts above the fold */
section.page-hero h1, section.page-hero .hero-title { font-size: var(--fs-h1) !important; line-height: var(--lh-h1) !important; }
@media (max-width: 640px) { section.page-hero { padding-top: 28px !important; padding-bottom: 32px !important; } }

/* Slim header (checkout / thank-you): keep the "keep shopping" link visible on phones */
@media (max-width: 900px) { .header .wrap > .nav:last-child { display: flex; font-size: 14px; } .header .wrap > .nav:last-child a { padding: 12px 0; } }

/* v2 refinements for the older inner pages (about, contact, affiliates, legal) */
.faq-item { background: #fff; border: 1px solid var(--line) !important; border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.faq-question { min-height: 56px; padding: 14px 16px !important; text-align: left; }
.faq-q-text { font-family: 'Inter', sans-serif !important; font-weight: 600; font-size: 16px !important; letter-spacing: 0 !important; text-transform: none !important; }
.faq-answer-inner { padding: 0 16px 16px !important; font-size: 15px !important; line-height: 1.6 !important; color: var(--muted) !important; }
.btn-magnetic { border-radius: 10px !important; min-height: 48px; }
.form-label, label.mono { letter-spacing: 0 !important; text-transform: none !important; font-family: 'Inter', sans-serif !important; font-size: 13px !important; font-weight: 500; color: var(--text) !important; }
.form-input, .form-textarea, .form-select { border-radius: 8px !important; border-color: var(--field-line) !important; background-color: #fff !important; font-size: 16px !important; }
.standard-card, .value-card, .info-card, .contact-card, .stat-card, .legal-card, .toc { border-radius: 14px !important; }
main .mono.uppercase[class*="tracking-[0.3em]"], main .mono.uppercase[class*="tracking-[0.4em]"] { letter-spacing: .08em !important; }
@media (max-width: 640px) {
  main section[class*="px-6"] { padding-left: 16px !important; padding-right: 16px !important; }
  main h2.display { font-size: clamp(24px, 7vw, 32px) !important; line-height: 1.15 !important; }
}


/* ===================================================================
   TYPE SCALE + SPACING (v2.1, 2026-10-08)
   One scale for every page. Sizes grow smoothly from phone (375px) to
   desktop (1280px+). Use these variables instead of fixed sizes.
   =================================================================== */
:root {
  --fs-display: clamp(30px, 2.6vw + 20px, 54px);  /* home hero only */
  --fs-h1: clamp(30px, 1.8vw + 22px, 44px);       /* page title */
  --fs-h2: clamp(24px, 1.2vw + 18px, 34px);       /* section title */
  --fs-h3: clamp(18px, 0.45vw + 15.5px, 21px);    /* card / sub-section title */
  --fs-lead: clamp(16px, 0.25vw + 15px, 18px);    /* intro text under a title */
  --fs-body: 16px;
  --fs-card: 15px;                                /* text inside cards */
  --fs-small: 13.5px;                             /* notes, captions */
  --fs-eyebrow: 12px;                             /* small mono label above a title */
  --lh-display: 1.12; --lh-h1: 1.15; --lh-h2: 1.2; --lh-h3: 1.3; --lh-text: 1.6;
  --sp-section: clamp(48px, 4vw + 32px, 80px);    /* space between page sections */
  --sp-title: 12px;                               /* title -> its intro text */
  --sp-content: 32px;                             /* section header -> its content */
}
body { font-size: var(--fs-body); line-height: var(--lh-text); }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }

/* ---- Headings (also tames the old Tailwind sizes on inner pages) ---- */
main h1, main .hero-title, main h1.display { font-size: var(--fs-h1) !important; line-height: var(--lh-h1) !important; letter-spacing: -0.02em !important; margin-bottom: 0 !important; }
main .hero h1 { font-size: var(--fs-display) !important; line-height: var(--lh-display) !important; }
main h2, main h2.display { font-size: var(--fs-h2) !important; line-height: var(--lh-h2) !important; letter-spacing: -0.015em !important; }
main h3, main h3.display { font-size: var(--fs-h3) !important; line-height: var(--lh-h3) !important; letter-spacing: -0.01em !important; }
/* Old pages split titles over two lines with <br> and a second colored italic part.
   Let titles wrap naturally and keep one color, like the new pages. */
main h1 br, main h2 br, main h3 br { display: none; }
main h1 > span + span::before, main h2 > span + span::before { content: " "; }
main h1 [style*="italic"], main h2 [style*="italic"], main h1 span[style], main h2 span[style] { font-style: normal !important; color: inherit !important; }
main .page-hero h1, main .page-hero h1 * { color: #fff !important; }
.reveal-text-line { display: inline !important; }
.reveal-text-line + .reveal-text-line::before { content: " "; }

/* Old pages: section titles carried mb-8 / mb-12 / mb-16. Normalize the rhythm. */
main h2.display { margin-bottom: var(--sp-title) !important; }
main h2.display + :not(p) { margin-top: var(--sp-content) !important; }
main h3.display { margin-bottom: 8px !important; }

/* ---- Text ---- */
main .page-hero p, main p.lead, main .text-base.md\:text-lg, main p.text-lg { font-size: var(--fs-lead) !important; line-height: 1.55 !important; max-width: 62ch; }
main p.text-sm, main .text-sm.leading-relaxed { font-size: var(--fs-card) !important; line-height: var(--lh-text) !important; }
main p.text-xs { font-size: var(--fs-small) !important; line-height: 1.5 !important; }
main p.text-base { font-size: var(--fs-body) !important; line-height: var(--lh-text) !important; }
/* Oversized pull quotes (text-3xl/4xl paragraphs) become a calm lead-sized statement */
main p.display, main p[class*="text-3xl"], main p[class*="text-4xl"] { font-size: calc(var(--fs-h3) + 2px) !important; line-height: 1.4 !important; letter-spacing: -0.01em !important; }

/* Small labels above titles ("/01 — Misión", status pills) */
.section-eyebrow, .status-badge, main .mono[class*="tracking-[0.3em]"], main .mono[class*="tracking-[0.4em]"], .legal-hero-num, .num-badge { font-size: var(--fs-eyebrow) !important; letter-spacing: .08em !important; }
.section-eyebrow { margin-bottom: var(--sp-title) !important; gap: 10px !important; }
.section-eyebrow::before { width: 20px !important; }

/* ---- Section spacing ---- */
main section[class*="py-32"], main section[class*="py-24"], main section[class*="py-20"], main section.relative[class*="py-"] { padding-top: var(--sp-section) !important; padding-bottom: var(--sp-section) !important; }
section.page-hero { padding-top: clamp(32px, 3vw + 20px, 56px) !important; padding-bottom: clamp(32px, 3vw + 20px, 56px) !important; }
section.page-hero h1 { margin-top: 4px !important; }
section.page-hero h1 + p, section.page-hero h1 + div { margin-top: var(--sp-title) !important; }
main [class*="mb-16"], main [class*="mb-20"] { margin-bottom: var(--sp-content) !important; }
main [class*="mt-16"], main [class*="mt-20"] { margin-top: var(--sp-content) !important; }

/* ---- Legal pages: document headings sit below page titles in the scale ---- */
.legal-body h2 { font-size: clamp(20px, 0.6vw + 17px, 24px) !important; line-height: 1.25 !important; letter-spacing: -0.01em !important; margin-top: 40px !important; margin-bottom: 12px !important; }
.legal-body h3 { font-size: var(--fs-eyebrow) !important; letter-spacing: .08em !important; margin-top: 20px !important; }
.legal-body p, .legal-body li { font-size: var(--fs-body) !important; line-height: 1.7 !important; color: #2B3D35 !important; }
.legal-body { max-width: 72ch !important; }

/* ---- Footer + compliance box: readable small print ---- */
.ruo-box { font-size: 13px; line-height: 1.6; }
footer h4 { font-size: 12px; }
footer li a { display: inline-block; padding: 3px 0; }

/* Titles that sit inside a card use the card-title size, not the section size */
main .ask h2, main .reorder-card h2, main .wa h2, main .card h3, main .pc h3 { font-size: var(--fs-h3) !important; line-height: var(--lh-h3) !important; }
main .wa h2 { font-size: calc(var(--fs-h3) + 3px) !important; }
main .acct-wrap .h-title { font-size: var(--fs-h2) !important; }

/* Tiny 10px mono notes under forms (old pages) -> readable small print */
main p[class*="text-[10px]"], main p[class*="text-[9px]"] { font-family: 'Inter', sans-serif !important; font-size: var(--fs-small) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--muted) !important; line-height: 1.5 !important; }
/* Inner-page titles: one color, like the home page (beats the old two-tone rules) */
main section.page-hero h1 span[style], main section.page-hero h1 .reveal-text-inner, main section h2.display span[style] { color: inherit !important; font-style: normal !important; }
