/* ================================================================
   LENNOX COLOR MODES
   Warm clinical paper by day; botanical glass after dark.
   Loaded last so every page family shares one intentional system.
   ================================================================ */

:root {
  --forest-deep: #071b14;
  --theme-paper: #f7f5ed;
  --theme-panel: #fffdf7;
  --theme-ink: #0a2118;
  --theme-muted: #5d675f;
  --theme-line: rgba(10, 33, 24, .2);
  --theme-accent: #789176;
  --theme-shadow: 0 24px 70px rgba(16, 39, 29, .1);
}

:root[data-theme="dark"] {
  --theme-paper: #07100c;
  --theme-panel: #0d1a14;
  --theme-ink: #edf2e9;
  --theme-muted: #9ba99f;
  --theme-line: rgba(220, 228, 213, .18);
  --theme-accent: #a9bea2;
  --theme-shadow: 0 28px 90px rgba(0, 0, 0, .34);
}

html { background: var(--theme-paper); }
body { transition: color 280ms ease, background-color 280ms ease; }
.theme-changing *,
.theme-changing *::before,
.theme-changing *::after { transition-duration: 360ms !important; }

/* Theme switch */
.theme-toggle {
  min-width: 86px;
  height: 36px;
  padding: 3px 3px 3px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  color: rgba(255,255,255,.76);
  background: rgba(4,16,11,.32);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.theme-toggle:hover { color: white; background: rgba(4,16,11,.55); border-color: rgba(255,255,255,.42); transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid var(--sage, #a9bea2); outline-offset: 3px; }
.theme-toggle-label { min-width: 27px; font-family: var(--mono, monospace); font-size: 7px; font-weight: 600; letter-spacing: .07em; text-align: center; text-transform: uppercase; }
.theme-toggle-track { position: relative; width: 42px; height: 28px; display: block; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.07); }
.theme-toggle svg { position: absolute; z-index: 2; top: 7px; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; pointer-events: none; }
.theme-toggle-sun { left: 7px; opacity: 1; }
.theme-toggle-moon { right: 7px; opacity: .42; }
.theme-toggle-thumb { position: absolute; z-index: 1; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #f6f2df; box-shadow: 0 3px 12px rgba(0,0,0,.24); transition: transform 320ms cubic-bezier(.2,.8,.2,1), background 240ms ease; }
:root[data-theme="dark"] .theme-toggle-thumb { background: #a9bea2; transform: translateX(14px); }
:root[data-theme="dark"] .theme-toggle-sun { opacity: .38; }
:root[data-theme="dark"] .theme-toggle-moon { opacity: 1; }
.theme-toggle-mobile { display: none; }
.theme-toggle-intake {
  position: absolute;
  top: 18px;
  right: clamp(210px, 18vw, 245px);
}

/* Daylight receives a little extra material depth. */
:root[data-theme="light"] body { background-color: var(--theme-paper); }
:root[data-theme="light"] :is(.guide-form, .privacy-note, .compact-care-price) { box-shadow: var(--theme-shadow); }
:root[data-theme="light"] .site-header.is-scrolled .theme-toggle { background: rgba(4,16,11,.44); }

/* Homepage — botanical night */
:root[data-theme="dark"] body { color: var(--theme-ink); background: radial-gradient(circle at 72% 6%, rgba(62,102,81,.12), transparent 26%), var(--theme-paper); }
:root[data-theme="dark"] .hero::after { background: linear-gradient(180deg, rgba(5,9,7,0), #060e0a); }
:root[data-theme="dark"] .hero + .treatment-entry { background: radial-gradient(ellipse at 50% -12%, rgba(169,190,162,.12), transparent 34%), #060e0a; }

:root[data-theme="dark"] .process.section.journey {
  color: var(--theme-ink);
  background: #0a1510;
  border-color: var(--theme-line);
}
:root[data-theme="dark"] .journey-backdrop { opacity: .58; filter: saturate(.68) contrast(1.04) brightness(.84); }
:root[data-theme="dark"] .journey-backdrop::after { background: linear-gradient(90deg, rgba(6,15,10,.1), rgba(6,15,10,.36) 48%, rgba(6,15,10,.78) 76%), linear-gradient(180deg, rgba(6,15,10,.04), #0a1510 100%); }
:root[data-theme="dark"] :is(.journey-heading h2, .journey .journey-list li, .journey .journey-list .step-link-item) { color: var(--theme-ink); }
:root[data-theme="dark"] :is(.journey-heading .eyebrow, .journey-heading > p:last-child, .journey-panel-label, .journey .journey-list li > span, .journey .step-link .step-number, .journey .journey-list li small, .journey .journey-list p) { color: var(--theme-muted); }
:root[data-theme="dark"] .journey .journey-list li,
:root[data-theme="dark"] .journey .journey-list .step-link-item,
:root[data-theme="dark"] .journey .journey-list li.is-active {
  background: rgba(13,28,21,.7);
  border-color: var(--theme-line);
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 18px 44px rgba(0,0,0,.12);
  backdrop-filter: blur(14px);
}
:root[data-theme="dark"] .journey .journey-pillars span { color: #c4cec5; background: rgba(13,28,21,.72); border-color: var(--theme-line); }
:root[data-theme="dark"] .journey .journey-pillars b { color: var(--sage); border-color: rgba(169,190,162,.48); }

:root[data-theme="dark"] .guide {
  color: var(--theme-ink);
  background: radial-gradient(circle at 8% 30%, rgba(105,142,113,.18), transparent 26%), #102219;
  border-color: var(--theme-line);
}
:root[data-theme="dark"] .guide::before { color: rgba(220,228,213,.025); }
:root[data-theme="dark"] :is(.guide-edition, .guide .eyebrow) { color: var(--sage); }
:root[data-theme="dark"] .guide-copy ul,
:root[data-theme="dark"] .guide-copy li { border-color: rgba(220,228,213,.2); }
:root[data-theme="dark"] .guide-form { color: var(--theme-ink); background: rgba(7,16,12,.86); border-color: rgba(220,228,213,.28); box-shadow: 18px 18px 0 rgba(0,0,0,.2), var(--theme-shadow); backdrop-filter: blur(18px); }
:root[data-theme="dark"] :is(.guide-form input, .footer-updates input) { color: var(--theme-ink); background: rgba(255,255,255,.035); border-color: var(--theme-line); }
:root[data-theme="dark"] :is(.form-heading small, .guide-form label, .consent, .form-privacy) { color: var(--theme-muted); }

:root[data-theme="dark"] .faq-console {
  color: var(--theme-ink);
  background: radial-gradient(circle at 90% 10%, rgba(53,93,73,.16), transparent 24%), #08120d;
  border-color: var(--theme-line);
}
:root[data-theme="dark"] .faq-console::before { color: rgba(220,228,213,.025); }
:root[data-theme="dark"] .faq-console-heading .eyebrow { color: var(--sage); }
:root[data-theme="dark"] :is(.faq-console-aside p, .faq-console-number, .faq-console-answer p) { color: var(--theme-muted); }
:root[data-theme="dark"] :is(.faq-console-list, .faq-console-item) { border-color: var(--theme-line); }
:root[data-theme="dark"] .faq-console-item button { color: var(--theme-ink); }
:root[data-theme="dark"] .faq-console-item button > i { border-color: rgba(220,228,213,.34); }
:root[data-theme="dark"] .faq-console-item:hover { background: rgba(169,190,162,.06); }
:root[data-theme="dark"] .faq-console-item.is-open { background: linear-gradient(90deg, rgba(90,125,103,.18), rgba(90,125,103,.04)); }

:root[data-theme="dark"] .closing {
  color: var(--theme-ink);
  background: radial-gradient(circle at 86% 24%, rgba(104,139,111,.17), transparent 28%), #102219;
  border-color: var(--theme-line);
}
:root[data-theme="dark"] .closing :is(p, small) { color: var(--theme-muted); }

/* Treatment library and treatment education pages */
:root[data-theme="dark"] :is(.library-list, .overview, .mechanism, .delivery, .care-path) {
  color: var(--theme-ink);
  background: var(--theme-paper);
  border-color: var(--theme-line);
}
:root[data-theme="dark"] :is(.section-heading > p, .mechanism-head > p:last-child, .fact p, .evidence-note p, .delivery-copy > p, .care-step p, .library-intro > p, .library-policy p) { color: var(--theme-muted); }
:root[data-theme="dark"] :is(.fact-grid, .mechanism-grid, .ingredient-grid, .care-grid, .comparison-table, .library-policy-grid) { border-color: var(--theme-line); }
:root[data-theme="dark"] :is(.fact, .mechanism-card, .care-step, .comparison-row > *, .library-policy-grid > *) { border-color: var(--theme-line); }
:root[data-theme="dark"] .fact.accent,
:root[data-theme="dark"] .evidence-note { color: var(--theme-ink); background: #14291f; border-color: var(--theme-line); }
:root[data-theme="dark"] .mechanism-card::before { background: #2d624e; }
:root[data-theme="dark"] .mechanism-card:hover { color: white; }
:root[data-theme="dark"] .signal-band { border-color: var(--theme-line); }
:root[data-theme="dark"] .closing .button-dark { color: #071b14; background: var(--sage); border-color: var(--sage); }

/* Compact product templates */
:root[data-theme="dark"] .compact-treatment-page { color: var(--theme-ink); background: var(--theme-paper); }
:root[data-theme="dark"] :is(.compact-overview, .compact-benefits, .compact-care) { color: var(--theme-ink); background: var(--theme-paper); border-color: var(--theme-line); }
:root[data-theme="dark"] .compact-science { color: var(--theme-ink); background: #12261c; border-color: var(--theme-line); }
:root[data-theme="dark"] .compact-final-cta { color: var(--theme-ink); background: #162b21; border-color: var(--theme-line); }
:root[data-theme="dark"] :is(.compact-overview-copy p, .compact-fact p, .compact-science-layout > div:last-child > p, .compact-care-price small, .compact-process p, .compact-final-cta-inner > div:last-child p) { color: var(--theme-muted); }
:root[data-theme="dark"] .compact-overview-copy p:first-child { color: var(--theme-ink); }
:root[data-theme="dark"] :is(.compact-facts, .compact-fact, .compact-benefits ul, .compact-benefits li, .compact-science-links, .compact-science-links a, .compact-care-price, .compact-process, .compact-process li) { border-color: var(--theme-line); }
:root[data-theme="dark"] .compact-fact:nth-child(2) { background: rgba(87,121,96,.15); }
:root[data-theme="dark"] .compact-supporting-copy { color: var(--theme-ink); background: #162b21; }
:root[data-theme="dark"] .compact-supporting-copy > p:last-child { color: var(--theme-muted); }
:root[data-theme="dark"] .compact-care-intro .button-dark { color: #071b14; background: var(--product-accent); border-color: var(--product-accent); }

/* Bespoke Sermorelin page */
:root[data-theme="dark"] :is(.serm-overview, .serm-candidate) { color: var(--theme-ink); background: var(--theme-paper); border-color: var(--theme-line); }
:root[data-theme="dark"] .serm-goals { color: var(--theme-ink); background: #12261c; border-color: var(--theme-line); }
:root[data-theme="dark"] .serm-expectations { color: var(--theme-ink); background: #172c21; border-color: var(--theme-line); }
:root[data-theme="dark"] :is(.serm-overview-copy p, .serm-fact p, .serm-goals-heading > p, .serm-benefit-layout > div > p:last-child, .serm-goal-grid p, .serm-candidate-copy > p:not(.eyebrow), .serm-candidate-copy li p, .serm-timeline p, .serm-section-head.dark > p) { color: var(--theme-muted); }
:root[data-theme="dark"] .serm-overview-copy .serm-dropcap { color: var(--theme-ink); }
:root[data-theme="dark"] :is(.serm-fact-row, .serm-fact, .serm-benefit-layout, .serm-benefit-layout > div, .serm-benefit-layout li, .serm-goal-grid, .serm-goal-grid article, .serm-candidate-copy ul, .serm-candidate-copy li, .serm-timeline, .serm-timeline article) { border-color: var(--theme-line); }
:root[data-theme="dark"] .serm-fact:nth-child(2) { background: rgba(87,121,96,.15); }
:root[data-theme="dark"] .serm-benefit-layout { background: rgba(255,255,255,.025); }

/* Intake — this page starts dark, so daylight gets a full material redesign. */
:root[data-theme="dark"] .intake-header,
:root[data-theme="dark"] .intake-actions { background: rgba(5,12,8,.86); box-shadow: 0 16px 48px rgba(0,0,0,.16); }
:root[data-theme="dark"] .choice-card { box-shadow: inset 0 1px rgba(255,255,255,.02); }

:root[data-theme="light"] body:has(.intake-main) {
  color: #10251b;
  background: radial-gradient(circle at 82% 14%, rgba(120,145,118,.17), transparent 25%), radial-gradient(circle at 12% 82%, rgba(217,224,208,.48), transparent 28%), #f7f5ed;
}
:root[data-theme="light"] .intake-header {
  color: #10251b;
  background: rgba(247,245,237,.88);
  border-color: rgba(10,33,24,.16);
  box-shadow: 0 12px 42px rgba(18,44,32,.07);
}
:root[data-theme="light"] .intake-brand img { filter: none; }
:root[data-theme="light"] :is(.intake-header-note, .intake-exit, .step-heading > span, .privacy-note p, .field-help) { color: #667068; }
:root[data-theme="light"] .intake-exit span { color: #10251b; border-color: rgba(10,33,24,.22); }
:root[data-theme="light"] .intake-progress { background: rgba(10,33,24,.09); }
:root[data-theme="light"] .step-rail ol,
:root[data-theme="light"] .step-rail li { border-color: rgba(10,33,24,.17); }
:root[data-theme="light"] .step-rail li { color: rgba(10,33,24,.42); }
:root[data-theme="light"] .step-rail li.is-active { color: #10251b; }
:root[data-theme="light"] .step-rail li.is-complete { color: #55745f; }
:root[data-theme="light"] .privacy-note { border-color: rgba(10,33,24,.18); background: rgba(255,255,255,.44); box-shadow: 0 18px 52px rgba(18,44,32,.06); }
:root[data-theme="light"] .step-meta { color: rgba(10,33,24,.46); }
:root[data-theme="light"] .choice-card {
  color: #20382d;
  border-color: rgba(10,33,24,.18);
  background: rgba(255,253,247,.7);
  box-shadow: 0 10px 30px rgba(18,44,32,.045);
}
:root[data-theme="light"] .choice-card:hover { color: #071b14; border-color: rgba(36,85,69,.45); background: #fffdf7; box-shadow: 0 16px 40px rgba(18,44,32,.09); }
:root[data-theme="light"] .choice-card small { color: #6a746c; }
:root[data-theme="light"] .choice-card > img { border-color: rgba(10,33,24,.16); }
:root[data-theme="light"] .choice-card > i { border-color: rgba(10,33,24,.38); }
:root[data-theme="light"] .choice-card:has(input:checked),
:root[data-theme="light"] .choice-card.is-selected { color: #10251b; border-color: #789176; background: linear-gradient(90deg, rgba(169,190,162,.34), rgba(255,253,247,.9)); }
:root[data-theme="light"] :is(.detail-group legend, .text-field > span, .birth-grid label > span) { color: #536159; }
:root[data-theme="light"] .segment-grid span { color: #344b40; border-color: rgba(10,33,24,.18); background: rgba(255,253,247,.68); }
:root[data-theme="light"] .segment-grid input:checked + span { color: #10251b; border-color: #789176; background: rgba(169,190,162,.3); }
:root[data-theme="light"] :is(select, .text-field input) { color: #10251b; border-color: rgba(10,33,24,.2); background-color: rgba(255,253,247,.72); }
:root[data-theme="light"] :is(select, .text-field input):focus { border-color: #789176; background-color: #fffdf7; box-shadow: 0 0 0 3px rgba(120,145,118,.14); }
:root[data-theme="light"] .review-list,
:root[data-theme="light"] .review-list article { border-color: rgba(10,33,24,.18); }
:root[data-theme="light"] .review-list article > span { color: #69746c; }
:root[data-theme="light"] .review-consent { color: #4e5f56; border-color: rgba(10,33,24,.18); background: rgba(255,253,247,.5); }
:root[data-theme="light"] .intake-actions { border-color: rgba(10,33,24,.16); background: rgba(247,245,237,.88); box-shadow: 0 -16px 46px rgba(18,44,32,.07); }
:root[data-theme="light"] .back-button { color: #173b30; border-color: rgba(10,33,24,.22); }
:root[data-theme="light"] .continue-button:disabled { color: rgba(10,33,24,.36); background: rgba(10,33,24,.06); border-color: rgba(10,33,24,.13); }
:root[data-theme="light"] .theme-toggle-intake { color: #173b30; background: rgba(255,253,247,.76); border-color: rgba(10,33,24,.2); }
:root[data-theme="light"] .theme-toggle-intake .theme-toggle-track { border-color: rgba(10,33,24,.17); background: rgba(10,33,24,.055); }

@media (max-width: 1320px) {
  .theme-toggle-label { display: none; }
  .theme-toggle { min-width: 48px; padding-left: 3px; }
}

@media (max-width: 800px) {
  .theme-toggle-desktop { display: none; }
  .theme-toggle-mobile {
    position: absolute;
    z-index: 5;
    top: 16px;
    right: 62px;
    min-width: 44px;
    height: 36px;
    padding: 3px;
    display: inline-flex;
  }
  .theme-toggle-mobile .theme-toggle-track { width: 36px; }
  .theme-toggle-mobile .theme-toggle-thumb { width: 20px; }
  :root[data-theme="dark"] .theme-toggle-mobile .theme-toggle-thumb { transform: translateX(8px); }
  .theme-toggle-mobile svg { display: none; }

  :root[data-theme="dark"] .process.section.journey { background: #0a1510; }
  :root[data-theme="dark"] .journey-backdrop::after { background: linear-gradient(180deg, rgba(6,15,10,.04), rgba(6,15,10,.16) 56%, #0a1510 100%); }
  :root[data-theme="dark"] .journey .journey-list li,
  :root[data-theme="dark"] .journey .journey-list .step-link-item,
  :root[data-theme="dark"] .journey .journey-list li.is-active { color: var(--theme-ink); background: rgba(13,28,21,.92); border-color: var(--theme-line); }
}

@media (max-width: 620px) {
  .theme-toggle-intake {
    top: 14px;
    right: 70px;
    min-width: 44px;
    padding: 3px;
  }
  .theme-toggle-intake .theme-toggle-label { display: none; }
  .theme-toggle-intake .theme-toggle-track { width: 36px; }
  :root[data-theme="dark"] .theme-toggle-intake .theme-toggle-thumb { transform: translateX(8px); }
  .theme-toggle-intake svg { display: none; }
  :root[data-theme="dark"] .journey-backdrop { opacity: .62; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-changing *,
  .theme-changing *::before,
  .theme-changing *::after { transition-duration: .01ms !important; }
}

/* ================================================================
   READABILITY PASS
   Keep the editorial microtype as a visual accent, while ensuring
   useful information is comfortable to read at any age.
   ================================================================ */

:root {
  --readable-label: 13px;
  --readable-small: 15px;
  --readable-body: 17px;
  --readable-body-large: 18px;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: 17px; }

/* Navigation and actions */
:is(.site-nav a, .nav-login, .nav-contact, .nav-qualify, .button, .compact-primary-action, .serm-primary-action, .treatment-conversion-action) {
  font-size: 13px;
  line-height: 1.35;
}
.nav-qualify > span,
.nav-contact > span { font-size: inherit; }
.header-quicklinks a { font-size: 14px; }
.theme-toggle-label { font-size: 11px; }

/* Repeating section labels remain stylized, but no longer tiny. */
.eyebrow {
  font-size: var(--readable-label);
  letter-spacing: .085em;
  line-height: 1.55;
}
:is(.breadcrumb, .hero-proof, .compact-trust, .serm-hero-trust, .treatment-conversion-trust) {
  font-size: 13px;
  line-height: 1.55;
}

/* Every moving treatment band is now a readable information rail. */
.signal-band {
  border-block: 1px solid rgba(7,27,20,.72);
}
.signal-track {
  min-height: 76px;
  padding-inline: 36px;
  gap: 48px;
  color: var(--deep, #071b14);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .055em;
  line-height: 1.35;
  animation-duration: 44s;
}
.signal-track i { font-size: 16px; }
.signal-band:hover .signal-track,
.signal-band:focus-within .signal-track { animation-play-state: paused; }

/* Homepage treatment slider */
.treatment-carousel-bar { min-height: 72px; }
.treatment-carousel-bar > p {
  padding-left: 22px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  letter-spacing: .065em;
  line-height: 1.45;
}
.treatment-carousel-controls button { width: 72px; min-height: 72px; }
.treatment-carousel-progress { height: 6px; }
.treatment-carousel-hint {
  color: rgba(255,255,255,.68);
  font-size: 13px;
  letter-spacing: .045em;
  line-height: 1.55;
}
.treatment-carousel-hint span { color: rgba(255,255,255,.86); }
:is(.treatment-entry-index, .treatment-product-kicker) {
  font-size: 12px;
  line-height: 1.45;
}
.treatment-carousel .treatment-product-card p {
  max-width: 660px;
  color: rgba(255,255,255,.78);
  font-size: var(--readable-body);
  line-height: 1.55;
}
.card-price-cta span,
.card-price-cta small,
.card-price-cta em {
  font-size: 12px;
  letter-spacing: .045em;
  line-height: 1.35;
}
.treatment-product-card > .card-price-cta,
.library-card .card-price-cta { min-height: 126px; }

/* Homepage information */
:is(
  .hero-subhead,
  .section-intro > p:last-child,
  .process-heading > p:last-child,
  .journey-heading > p:last-child,
  .guide-lede,
  .goals-heading > p,
  .treatment-entry-aside p,
  .trust-lead p,
  .faq-heading > p:not(.eyebrow),
  .faq-console-aside p,
  .closing-action p
) {
  font-size: var(--readable-body);
  line-height: 1.6;
}
:is(
  .problem-card p,
  .steps-list p,
  .journey-list p,
  .goal-card p,
  .clinical-note,
  .treatment-entry-card p,
  .treatment-entry-note,
  .trust-card p,
  .faq-answer p,
  .faq-console-answer p
) {
  font-size: 16px;
  line-height: 1.6;
}
:is(.steps-list li small, .journey-list li small, .guide-edition, .guide-copy li span, .form-heading small, .field label) {
  font-size: 13px;
  line-height: 1.5;
}
.guide-copy li { font-size: 16px; }
:is(.consent, .form-status, .form-privacy) {
  font-size: 14px;
  line-height: 1.6;
}
.faq-item button span { font-size: 19px; line-height: 1.4; }
.faq-console-question { font-size: 21px; line-height: 1.35; }

/* Shared treatment pages and treatment library */
:is(
  .hero-lede,
  .section-heading > p,
  .question-copy p:last-child,
  .question-list p,
  .mechanism-head > p:last-child,
  .benefits-heading p,
  .delivery-copy > p:last-of-type,
  .safety-copy p:last-child,
  .faq-heading > p:not(.eyebrow),
  .closing-aside p,
  .library-intro p,
  .care-handoff-inner > div:last-child > p,
  .treatment-conversion-lede
) {
  font-size: var(--readable-body);
  line-height: 1.6;
}
:is(
  .fact p,
  .mechanism-card p,
  .benefit p,
  .placeholder p,
  .care-step p,
  .safety-point p,
  .policy-list p,
  .treatment-conversion-steps p
) {
  font-size: 16px;
  line-height: 1.6;
}
.library-card > span,
.library-card .card-kicker { font-size: 12px; line-height: 1.45; }
.library-card p {
  max-width: 640px;
  color: rgba(255,255,255,.82);
  font-size: var(--readable-body);
  line-height: 1.55;
}
.compact-science-links a,
.serm-sources a { font-size: 14px; line-height: 1.45; }
:is(.closing-aside small, .care-handoff small, .treatment-conversion-fineprint) {
  color: rgba(255,255,255,.64);
  font-size: 12px;
  line-height: 1.6;
}
.treatment-conversion-steps li > span,
.treatment-conversion-price span,
.treatment-conversion-price small,
.treatment-conversion-caption span,
.treatment-conversion-caption small { font-size: 11px; line-height: 1.45; }

/* Compact treatment product pages */
.compact-hero {
  height: auto;
  min-height: 820px;
  max-height: none;
}
.compact-intro {
  color: rgba(255,255,255,.76);
  font-size: var(--readable-body);
  line-height: 1.6;
}
.compact-price span,
.compact-price small {
  color: rgba(255,255,255,.7);
  font-size: 12px;
  line-height: 1.45;
}
.compact-fineprint {
  color: rgba(255,255,255,.68);
  font-size: 12px;
  line-height: 1.6;
}
.compact-overview-copy p {
  font-size: var(--readable-body);
  line-height: 1.65;
}
.compact-overview-copy p:first-child { font-size: 19px; line-height: 1.55; }
.compact-fact p,
.compact-mechanism-card p {
  font-size: 15px;
  line-height: 1.6;
}
.compact-fact span,
.compact-mechanism-card > span,
.compact-mechanism-card small,
.compact-benefits li span,
.compact-care-price span,
.compact-process li > span { font-size: 11px; line-height: 1.45; }
.compact-section-head > p,
.compact-supporting-copy > p:last-child,
.compact-science-layout > div:last-child > p,
.compact-process p,
.compact-safety > p:not(.eyebrow),
.compact-final-cta-inner > div:last-child p {
  font-size: var(--readable-body);
  line-height: 1.6;
}
.compact-care-price small { font-size: 13px; line-height: 1.5; }
.compact-safety li { font-size: 15px; line-height: 1.5; }
.compact-safety small {
  color: rgba(255,255,255,.64);
  font-size: 12px;
  line-height: 1.6;
}
.education-treatment-page .compact-hero-content::before {
  content: "GUIDE";
  right: -2%;
  font-size: min(12vw, 170px);
}

/* Bespoke Sermorelin page */
.serm-hero-lede,
.serm-overview-copy p,
.serm-section-head > p,
.serm-goals-heading > p,
.serm-candidate-copy > p:not(.eyebrow) {
  font-size: var(--readable-body);
  line-height: 1.6;
}
.serm-fact p,
.serm-signal-path p,
.serm-benefit-layout > div > p:last-child,
.serm-goal-grid p,
.serm-candidate-copy li p,
.serm-timeline p {
  font-size: 15px;
  line-height: 1.6;
}
.serm-pricing span,
.serm-pricing small,
.serm-hero-trust li,
.serm-fact span,
.serm-signal-path li > span,
.serm-signal-path small,
.serm-goal-grid span,
.serm-candidate-copy li > span,
.serm-timeline span,
.serm-sources span { font-size: 11px; line-height: 1.45; }
.serm-price-note {
  color: rgba(255,255,255,.64);
  font-size: 12px;
  line-height: 1.6;
}

/* Footer information should never require squinting. */
:is(.footer-column a, .footer-simple-top nav a, .footer-phone) {
  font-size: 14px;
  line-height: 1.5;
}
:is(.footer-column h3, .footer-compliance p, .footer-simple-bottom div) {
  font-size: 11px;
  line-height: 1.5;
}
:is(.footer-legal, .footer-simple-bottom p, .footer-disclosure p) {
  color: rgba(255,255,255,.64);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  :root {
    --readable-label: 11px;
    --readable-small: 13px;
    --readable-body: 15px;
    --readable-body-large: 16px;
  }

  .signal-track {
    min-height: 68px;
    padding-inline: 24px;
    gap: 34px;
    font-size: 12px;
    letter-spacing: .045em;
  }
  .compact-hero { min-height: 0; }
  .treatment-carousel-bar { min-height: 64px; }
  .treatment-carousel-controls button { width: 60px; min-height: 64px; }
  .treatment-carousel-bar > p,
  .treatment-carousel-hint { font-size: 11px; }
  .treatment-carousel .treatment-product-card p,
  .library-card p { font-size: 15px; }
  .treatment-entry-index,
  .treatment-product-kicker,
  .library-card > span,
  .library-card .card-kicker { font-size: 10px; }
  .card-price-cta span,
  .card-price-cta small,
  .card-price-cta em { font-size: 10.5px; }
  .compact-intro { font-size: 15px; }
  .compact-price small { font-size: 11px; }
  .compact-trust { grid-template-columns: 1fr; font-size: 11px; }
  .faq-item button span,
  .faq-console-question { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .signal-track { animation: none; }
}

/* ================================================================
   TREATMENT CARDS
   Keep the desktop editorial composition and give mobile a calmer,
   two-part decision surface with one clear next action.
   ================================================================ */

.treatment-card-media {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0;
  overflow: hidden;
}

.treatment-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(.2,.7,.2,1);
}

.treatment-card-media .treatment-entry-index {
  position: absolute;
  z-index: 3;
  top: 26px;
  left: 26px;
  padding: 0 190px 0 0;
}

.treatment-card-content-area { display: contents; }

.treatment-card-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.treatment-product-card > .treatment-card-detail-link {
  z-index: 1;
}

.treatment-purchase {
  position: absolute;
  z-index: 4;
  top: 22px;
  right: 22px;
  width: 166px;
  min-height: 148px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  color: var(--forest-deep);
  background: rgba(225,229,213,.96);
  border: 1px solid rgba(255,255,255,.5);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  box-shadow: 0 16px 34px rgba(2,12,8,.22);
  backdrop-filter: blur(10px);
}

.treatment-pricing {
  display: grid;
  gap: 2px;
}

.treatment-price-line {
  display: block;
  color: rgba(7,27,20,.68);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.35;
}

.treatment-price-line:first-child strong {
  display: block;
  margin: 3px 0 1px;
  color: var(--forest-deep);
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .95;
}

.treatment-price-line:last-child strong { font-weight: 600; }

.treatment-card-cta {
  min-height: 44px;
  margin-top: auto;
  padding-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(7,27,20,.2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.treatment-card-cta svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 180ms ease;
}

.treatment-card-cta:hover svg,
.treatment-card-cta:focus-visible svg { transform: translateX(3px); }

.treatment-card-cta:focus-visible {
  outline: 2px solid var(--forest-deep);
  outline-offset: 4px;
}

.treatment-carousel-progress span { width: calc(100% / 9); }

@media (hover: hover) and (pointer: fine) {
  .treatment-product-card:hover .treatment-card-media img { transform: scale(1.025); }
}

@media (max-width: 700px) {
  .treatment-entry {
    padding-block: 52px 48px;
    background: #07130e;
  }

  .treatment-entry::before { display: none; }
  .treatment-entry .page-shell { width: calc(100% - 32px); }

  .treatment-entry-heading { gap: 28px; }
  .treatment-entry-heading .eyebrow { margin-bottom: 14px; }
  .treatment-entry-heading h2 {
    max-width: 390px;
    font-size: clamp(40px, 11.5vw, 49px);
    letter-spacing: -.065em;
    line-height: .96;
  }

  .treatment-entry-aside p {
    margin-bottom: 20px;
    color: rgba(255,255,255,.72);
    font-size: 16px;
    line-height: 1.6;
  }

  .treatment-carousel { margin-top: 34px; }
  .treatment-carousel-bar {
    min-height: 38px;
    border: 0;
  }

  .treatment-carousel-bar > p {
    padding-left: 0;
    color: rgba(255,255,255,.62);
    font-size: 11px;
  }

  .treatment-carousel-bar > p span:first-child {
    color: var(--sage-soft);
    font-size: 14px;
  }

  .treatment-carousel-controls { display: none; }
  .treatment-carousel-viewport {
    overflow-x: auto;
    border: 0;
    border-radius: 0;
  }

  .treatment-carousel-track {
    gap: 16px;
    padding: 4px 0 8px;
  }

  .treatment-carousel .treatment-product-card {
    width: calc(100vw - 80px);
    height: 620px;
    min-height: 620px;
    padding: 0;
    display: flex;
    flex-direction: column;
    color: var(--forest-deep);
    background: #f2efe5;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(0,0,0,.16);
    overflow: hidden;
    isolation: isolate;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  .treatment-product-card::before,
  .treatment-product-card::after { display: none; }

  .treatment-card-media {
    position: relative !important;
    z-index: 0 !important;
    inset: auto;
    width: 100%;
    height: clamp(200px, 62vw, 256px);
    flex: 0 0 auto;
    background: #dfe3d8;
  }

  .treatment-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(4,18,13,.2), transparent 38%);
  }

  .treatment-card-media .treatment-entry-index {
    top: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 7px 9px;
    color: #fff;
    background: rgba(4,18,13,.74);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .05em;
    line-height: 1.35;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
  }

  .treatment-product-card > .treatment-card-detail-link {
    inset: 0 auto auto 0;
    width: 100%;
    height: clamp(200px, 62vw, 256px);
  }

  .treatment-card-detail-link:focus-visible {
    outline: 3px solid var(--sage);
    outline-offset: -5px;
    border-radius: 18px 18px 0 0;
  }

  .treatment-card-content-area {
    position: relative;
    z-index: 3;
    min-height: 0;
    padding: 22px 22px 20px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    background: #f2efe5;
  }

  .treatment-card-copy {
    position: static;
    margin: 0;
  }

  .treatment-product-kicker {
    margin-bottom: 7px;
    color: #496357;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .055em;
    line-height: 1.45;
  }

  .treatment-carousel .treatment-product-card h3 {
    max-width: none;
    margin: 0 0 10px;
    color: var(--forest-deep);
    font-size: clamp(30px, 9.2vw, 39px);
    font-weight: 500;
    letter-spacing: -.065em;
    line-height: .98;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .treatment-carousel .treatment-product-card p {
    max-width: none;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    overflow: hidden;
    color: #3f4c45;
    font-size: 16px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .treatment-purchase {
    position: static;
    width: 100%;
    min-height: 0;
    margin-top: auto;
    padding: 18px 0 0;
    display: block;
    color: var(--forest-deep);
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(7,27,20,.16);
    clip-path: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  .treatment-pricing { gap: 3px; }
  .treatment-price-line,
  .treatment-price-line:first-child strong {
    display: inline;
    margin: 0;
    color: var(--forest-deep);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.015em;
    line-height: 1.45;
  }

  .treatment-price-line { display: block; }
  .treatment-price-line strong { font-weight: 700; }

  .treatment-card-cta {
    width: 100%;
    min-height: 52px;
    margin-top: 14px;
    padding: 0 17px;
    color: white;
    background: var(--forest-deep);
    border: 1px solid var(--forest-deep);
    border-radius: 3px;
    font-size: 12px;
    letter-spacing: .045em;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
  }

  .treatment-card-cta svg {
    width: 20px;
    height: 20px;
  }

  .treatment-card-cta:hover {
    color: var(--forest-deep);
    background: var(--sage);
    border-color: var(--sage);
  }

  .treatment-card-cta:focus-visible {
    outline: 3px solid #6f8e7e;
    outline-offset: 3px;
  }

  .treatment-product-card:focus-within {
    border-color: rgba(169,190,162,.9);
    box-shadow: 0 16px 40px rgba(0,0,0,.24);
  }

  .treatment-carousel-progress {
    height: 3px;
    margin-top: 4px;
    border-radius: 999px;
    overflow: hidden;
  }

  .treatment-carousel-progress span {
    width: calc(100% / 9);
    border-radius: inherit;
  }

  .treatment-carousel-hint {
    margin-top: 13px;
    display: block;
    color: rgba(255,255,255,.68);
    font-size: 11px;
    letter-spacing: .04em;
    line-height: 1.5;
    text-transform: none;
  }

  .treatment-carousel-hint span { display: none; }
  .treatment-entry-note {
    margin-top: 18px;
    color: rgba(255,255,255,.62);
    font-size: 13px;
    line-height: 1.55;
  }

  .nav-shell { min-height: 60px; }
  .brand img { width: 27px; height: 22px; }
  .brand span { font-size: 21px; }
  .header-quicklinks {
    min-height: 44px;
    gap: 24px;
  }
  .header-quicklinks a {
    min-height: 44px;
    font-size: 9px;
  }
  .site-nav { inset: 104px 0 0; }
}

@media (max-width: 350px) {
  .treatment-card-content-area { padding-inline: 18px; }
  .treatment-carousel .treatment-product-card h3 { font-size: 30px; }
}

@media (hover: hover) and (pointer: fine) and (max-width: 700px) {
  .treatment-product-card:hover {
    border-color: rgba(169,190,162,.72);
    box-shadow: 0 18px 42px rgba(0,0,0,.22);
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .treatment-card-media img,
  .treatment-product-card,
  .treatment-card-cta,
  .treatment-card-cta svg,
  .treatment-carousel-progress span {
    transition: none;
  }
}

/* Treatment library: the same calm decision-card system used on home. */
.library-rail { margin-top: 50px; }
.library-carousel-bar,
.library-carousel-progress,
.library-carousel-hint { display: none; }
.library-cards { margin-top: 0; }
.library-card::before,
.library-card::after { z-index: 1; pointer-events: none; }
.library-card .treatment-card-media .treatment-entry-index {
  color: white;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}
.library-card .treatment-card-copy h3 {
  position: relative;
  z-index: 2;
}
.library-card .treatment-purchase { z-index: 4; }
.library-card .treatment-price-line {
  max-width: none;
  margin: 0;
  padding: 0;
  color: rgba(7,27,20,.68);
  font-size: 11px;
}
.library-card .treatment-pricing-contact .treatment-price-line:first-child strong {
  font-size: 20px;
  letter-spacing: -.035em;
  line-height: 1.05;
}
@media (min-width: 701px) {
  .library-card .treatment-purchase:has(.treatment-pricing-contact) { padding: 12px; }
}
.library-card .treatment-card-cta { color: var(--forest-deep); }

@media (hover: hover) and (pointer: fine) {
  .library-card:hover .treatment-card-media img { transform: scale(1.025); }
}

@media (max-width: 700px) {
  .library-list { overflow: hidden; }
  .library-list .shell { width: calc(100% - 32px); }
  .library-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .library-intro h2 {
    max-width: 390px;
    font-size: clamp(38px, 10.5vw, 46px);
    letter-spacing: -.065em;
    line-height: .97;
    overflow-wrap: normal;
  }
  .library-intro > p {
    color: #4d5a52;
    font-size: 16px;
    line-height: 1.6;
  }

  .library-rail {
    width: calc(100vw - 16px);
    margin-top: 34px;
  }
  .library-carousel-bar {
    min-height: 38px;
    display: flex;
    align-items: flex-start;
    color: var(--forest-deep);
  }
  .library-carousel-bar p {
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
  }
  .library-carousel-bar i {
    color: rgba(7,27,20,.38);
    font-style: normal;
  }

  .library-cards {
    width: 100%;
    margin: 0;
    padding: 0 0 4px;
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    scroll-behavior: smooth;
    scroll-padding-inline: 0 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .library-cards::-webkit-scrollbar { display: none; }
  .library-cards:focus-visible {
    outline: 3px solid #6f8e7e;
    outline-offset: 5px;
  }

  .library-card {
    width: calc(100vw - 64px);
    height: 620px;
    min-height: 620px;
    padding: 0;
    display: flex;
    flex: 0 0 auto;
    color: var(--forest-deep);
    background: #f5f1e8;
    border: 1px solid rgba(7,27,20,.16);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(7,27,20,.08);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .library-card::before,
  .library-card::after { display: none; }

  .library-card .treatment-card-media {
    position: relative !important;
    inset: auto;
    width: 100%;
    height: clamp(218px, 64vw, 264px);
    flex: 0 0 auto;
    background: #dfe6d9;
  }
  .library-card .treatment-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,27,20,.05), transparent 54%, rgba(7,27,20,.16));
    pointer-events: none;
  }
  .library-card .treatment-card-media img { transform: none; }
  .library-card .treatment-card-media .treatment-entry-index {
    top: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 7px 9px;
    color: white;
    background: rgba(7,27,20,.72);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: .045em;
    line-height: 1.25;
    backdrop-filter: blur(9px);
  }

  .library-card-detail-link {
    z-index: 1;
    bottom: auto;
    height: clamp(218px, 64vw, 264px);
  }
  .library-card-detail-link:focus-visible {
    outline: 3px solid #6f8e7e;
    outline-offset: -5px;
  }

  .library-card .treatment-card-content-area {
    position: relative;
    z-index: 2;
    min-height: 0;
    padding: 22px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    background: #f5f1e8;
  }
  .library-card .treatment-card-copy { margin: 0; }
  .library-card .card-kicker {
    margin: 0 0 8px;
    padding: 0;
    color: #61756a;
    font-size: 10px;
    line-height: 1.4;
  }
  .library-card .treatment-card-copy h3 {
    max-width: none;
    margin: 0 0 11px;
    color: var(--forest-deep);
    font-size: clamp(30px, 9vw, 39px);
    font-weight: 500;
    letter-spacing: -.065em;
    line-height: .98;
    overflow-wrap: normal;
    text-wrap: balance;
  }
  .library-card .treatment-card-copy > p:last-child {
    max-width: none;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    overflow: hidden;
    color: #3f4c45;
    font-size: 16px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .library-card .treatment-purchase {
    position: static;
    width: 100%;
    min-height: 0;
    margin-top: auto;
    padding: 16px 0 0;
    display: block;
    color: var(--forest-deep);
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(7,27,20,.16);
    clip-path: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  .library-card .treatment-pricing { gap: 3px; }
  .library-card .treatment-price-line,
  .library-card .treatment-price-line:first-child strong {
    display: inline;
    margin: 0;
    color: var(--forest-deep);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.015em;
    line-height: 1.45;
  }
  .library-card .treatment-price-line { display: block; }
  .library-card .treatment-price-line strong { font-weight: 700; }
  .library-card .treatment-card-cta {
    width: 100%;
    min-height: 52px;
    margin-top: 13px;
    padding: 0 17px;
    color: white;
    background: var(--forest-deep);
    border: 1px solid var(--forest-deep);
    border-radius: 3px;
    font-size: 12px;
    letter-spacing: .045em;
  }
  .library-card .treatment-card-cta:hover {
    color: var(--forest-deep);
    background: var(--sage);
    border-color: var(--sage);
  }

  .library-carousel-progress {
    position: relative;
    width: calc(100vw - 32px);
    height: 3px;
    margin-top: 12px;
    display: block;
    overflow: hidden;
    background: rgba(7,27,20,.14);
    border-radius: 999px;
  }
  .library-carousel-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(100% / 9);
    display: block;
    background: var(--forest-deep);
    border-radius: inherit;
    transition: transform 160ms ease-out;
  }
  .library-carousel-hint {
    margin: 12px 0 0;
    display: block;
    color: #5d6a62;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .035em;
    line-height: 1.5;
  }
}

@media (max-width: 350px) {
  .library-card .treatment-card-content-area { padding-inline: 18px; }
  .library-card .treatment-card-copy h3 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .library-cards { scroll-behavior: auto; }
  .library-card,
  .library-card .treatment-card-media img,
  .library-card .treatment-card-cta,
  .library-carousel-progress span { transition: none; }
}

/* ================================================================
   TREATMENT LIBRARY HERO — EDITORIAL CLINICAL STUDIO
   The collection image is intentionally contained to the product side.
   This keeps the copy on a calm solid field and restores bottle clarity.
   ================================================================ */

.library-hero {
  min-height: 720px;
  height: 86svh;
  max-height: 900px;
  isolation: isolate;
  background:
    radial-gradient(ellipse 38% 62% at 68% 46%, rgba(130,142,126,.15), transparent 72%),
    linear-gradient(108deg, #08120d 0%, #0d1912 46%, #243027 100%);
}

.library-hero-image {
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center 52%;
  filter: saturate(.88) brightness(.92) contrast(1.05);
  transform: none;
}

.library-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 1;
  background:
    linear-gradient(90deg,
      #08120d 0%,
      #08120d 39%,
      rgba(8,18,13,.98) 43%,
      rgba(8,18,13,.82) 48%,
      rgba(8,18,13,.26) 57%,
      transparent 69%);
  clip-path: none;
  mask-image: none;
  -webkit-mask-image: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

.library-hero-shade {
  z-index: 2;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5,12,8,.52), rgba(5,12,8,.12) 24%, transparent 38%, transparent 72%, rgba(5,12,8,.5)),
    linear-gradient(90deg, transparent 50%, rgba(5,12,8,.02) 68%, rgba(5,12,8,.25) 100%),
    radial-gradient(ellipse 34% 58% at 72% 47%, rgba(218,220,203,.11), transparent 74%);
}

.library-hero-shade::before { content: none; }

.library-hero-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 1px, transparent 1px 8px);
  mask-image: linear-gradient(90deg, transparent 42%, black 58%);
  -webkit-mask-image: linear-gradient(90deg, transparent 42%, black 58%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.library-hero .hero-layout {
  z-index: 3;
  align-items: center;
}

.library-hero .hero-copy {
  width: min(43%, 620px);
  padding-top: 60px;
  text-shadow: 0 2px 22px rgba(0,0,0,.24);
}

.library-hero .hero-copy h1,
.library-hero .hero-copy h1 em {
  max-width: 620px;
  overflow-wrap: normal;
  white-space: nowrap;
  font-size: clamp(66px, 5.1vw, 94px);
  letter-spacing: -.075em;
  line-height: .86;
}

.library-hero .hero-lede {
  max-width: 560px;
  margin-top: 30px;
  color: rgba(244,246,237,.78);
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.58;
  text-shadow: 0 1px 18px rgba(0,0,0,.3);
}

.library-hero .hero-actions { margin-top: 30px; }
.library-hero .hero-proof { margin-top: 20px; }

@media (min-width: 801px) and (max-width: 1100px) {
  .library-hero {
    min-height: 720px;
    height: 88svh;
    max-height: 850px;
  }

  .library-hero-image { object-position: center 52%; }

  .library-hero::before {
    background:
      linear-gradient(90deg,
        #08120d 0%,
        #08120d 42%,
        rgba(8,18,13,.94) 48%,
        rgba(8,18,13,.35) 60%,
        transparent 76%);
  }

  .library-hero .hero-copy {
    width: 46%;
    padding-top: 48px;
  }

  .library-hero .hero-copy h1,
  .library-hero .hero-copy h1 em {
    font-size: clamp(54px, 6.2vw, 64px);
    line-height: .88;
  }

  .library-hero .hero-lede {
    margin-top: 26px;
    font-size: 15px;
  }

  .library-hero .hero-actions {
    margin-top: 26px;
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

@media (max-width: 800px) {
  .library-hero {
    min-height: 0;
    height: auto;
    max-height: none;
    background: #08120d;
  }

  .library-hero-image {
    inset: 0 0 auto;
    width: 100%;
    height: clamp(320px, 43svh, 410px);
    object-position: 63% 56%;
    filter: saturate(.84) brightness(.9) contrast(1.05);
  }

  .library-hero::before {
    height: clamp(320px, 43svh, 410px);
    background:
      linear-gradient(180deg, rgba(8,18,13,.18) 0%, rgba(8,18,13,.08) 52%, #08120d 100%),
      linear-gradient(90deg, rgba(8,18,13,.18), transparent 54%, rgba(8,18,13,.08));
  }

  .library-hero-shade {
    background:
      linear-gradient(180deg, rgba(5,12,8,.12) 0%, transparent 52%, rgba(8,18,13,.58) 86%, #08120d 100%),
      radial-gradient(ellipse 52% 32% at 66% 20%, rgba(218,220,203,.08), transparent 76%);
  }

  .library-hero .hero-layout {
    min-height: 0;
    padding: clamp(354px, 47svh, 448px) 0 48px;
    align-items: flex-start;
  }

  .library-hero .hero-copy {
    width: 100%;
    padding-top: 0;
  }

  .library-hero .hero-copy h1,
  .library-hero .hero-copy h1 em {
    max-width: 720px;
    white-space: normal;
    font-size: clamp(48px, 9vw, 66px);
    line-height: .88;
  }

  .library-hero .hero-lede {
    max-width: 620px;
    color: rgba(244,246,237,.8);
    font-size: 16px;
    line-height: 1.58;
  }

  .library-hero .hero-actions {
    width: 100%;
    max-width: 620px;
  }

  .library-hero .hero-actions .button { width: 100%; }
}

@media (max-width: 540px) {
  .library-hero-image,
  .library-hero::before {
    height: clamp(285px, 39svh, 340px);
  }

  .library-hero-image { object-position: 64% 56%; }

  .library-hero .hero-layout {
    padding: clamp(318px, 43svh, 376px) 0 42px;
  }

  .library-hero .breadcrumb { margin-bottom: 18px; }
  .library-hero .eyebrow { margin-bottom: 16px; }
  .library-hero .hero-copy h1,
  .library-hero .hero-copy h1 em {
    font-size: clamp(45px, 13.8vw, 56px);
    line-height: .88;
  }
  .library-hero .hero-lede { margin-top: 22px; }
  .library-hero .hero-actions {
    margin-top: 24px;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .library-hero-image { animation: none; }
}

/* Homepage goal discovery */
:root[data-theme="dark"] .care-compass {
  color: var(--theme-ink);
  background:
    radial-gradient(circle at 84% 22%, rgba(96,132,105,.16), transparent 24%),
    #0b1711;
  border-color: var(--theme-line);
}

:root[data-theme="dark"] .care-compass::before { color: rgba(220,228,213,.025); }
:root[data-theme="dark"] .care-standards { background: #050d09; border-color: var(--theme-line); }
:root[data-theme="dark"] .care-compass-heading .eyebrow,
:root[data-theme="dark"] .care-compass-heading > div:last-child > p,
:root[data-theme="dark"] .care-compass-note { color: var(--theme-muted); }
:root[data-theme="dark"] .care-compass .text-link { color: var(--theme-ink); }
:root[data-theme="dark"] .care-goal-grid,
:root[data-theme="dark"] .care-goal-card { border-color: var(--theme-line); }

/* Site-wide type lift */
html { font-size: 17px; }

.mega-label {
  font-size: 10px;
  line-height: 1.5;
}

.mega-treatment-links small,
.mega-footer-guide small {
  font-size: 11px;
  line-height: 1.5;
}

.mega-feature-tags span {
  font-size: 9px;
}

.mega-feature-actions a,
.mega-menu-footer > a {
  font-size: 10px;
}

.mega-footer-guide > span {
  font-size: 13px;
}

.care-standard > span,
.care-goal-number,
.care-goal-copy p {
  font-size: 10px;
}

.care-standard strong {
  font-size: 14px;
}

.care-standard small,
.care-goal-copy small {
  font-size: 12px;
}

.care-compass-note {
  font-size: 13px;
}

.footer-simple-top nav a,
.footer-phone {
  font-size: 12px;
}

.footer-simple-bottom p {
  font-size: 11px;
}

.footer-simple-bottom div {
  font-size: 10px;
}

@media (min-width: 1181px) {
  .mega-trigger {
    font-size: 13px;
  }

  .site-nav .about-nav-link {
    font-size: 13px;
  }
}

@media (min-width: 801px) and (max-width: 1180px) {
  .mega-trigger-desktop,
  .site-nav .about-nav-link {
    font-size: 11px;
  }
}

@media (max-width: 800px) {
  .mega-trigger-mobile {
    font-size: 11px;
  }

  .header-quicklinks a {
    font-size: 11px;
  }
}
