/* ═══════════════════ PEPTIDES PAGE — SECTION-SPECIFIC STYLES ═══════════════════
   Sections unique to the Peptides page (not shared across other templates
   the way phero.css is). */

/* ═══════════════════ SECTION 2 — TRUST & PROVENANCE (full-bleed video) ═══════════════════ */
.trust { position: relative; background: var(--bg); color: var(--ink); }
.trust__header {
  text-align: center; padding: clamp(72px, 11vh, 130px) 0 clamp(40px, 6vh, 64px);
  background: #ffffff;
}
.trust__header .section-title { color: var(--ink); }
.trust__media { position: relative; overflow: hidden; background: #ffffff; }
.trust__bgvideo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.trust__inner {
  position: relative; z-index: 2; width: min(1280px, 92vw); margin: 0 auto;
  min-height: clamp(540px, 80vh, 820px); display: flex; flex-direction: column; justify-content: center;
  padding: clamp(60px, 9vh, 110px) 0;
}
.trust__stage {
  display: grid; grid-template-columns: 1fr clamp(180px, 22vw, 340px) 1fr; align-items: center;
  gap: clamp(24px, 3vw, 56px);
}
.trust__col { display: flex; flex-direction: column; gap: clamp(40px, 7vh, 80px); }
.trust__col--left { text-align: right; align-items: flex-end; grid-column: 1; }
.trust__col--right { text-align: left; align-items: flex-start; grid-column: 3; }
.trust__stmt { max-width: 300px; }
.trust__stmt-title { font-family: var(--sans); font-size: clamp(17px, 1.4vw, 21px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px; }
.trust__stmt-desc { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; text-wrap: pretty; }

/* Single-column fallback when only one .trust__col renders (e.g. 1 statement,
   left-only) — the fixed 3-column grid above assumes both flanks are present. */
.trust__stage:has(.trust__col--left):not(:has(.trust__col--right)),
.trust__stage:has(.trust__col--right):not(:has(.trust__col--left)) {
  grid-template-columns: 1fr;
}
.trust__stage:has(.trust__col--left):not(:has(.trust__col--right)) .trust__col--left,
.trust__stage:has(.trust__col--right):not(:has(.trust__col--left)) .trust__col--right {
  grid-column: 1; text-align: center; align-items: center;
}
.trust__stage:has(.trust__col--left):not(:has(.trust__col--right)) .trust__stmt,
.trust__stage:has(.trust__col--right):not(:has(.trust__col--left)) .trust__stmt {
  max-width: 420px;
}

/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 880px) {
  .trust__stage { grid-template-columns: 1fr; gap: clamp(30px, 5vh, 48px); }
  .trust__col { flex-direction: column; gap: clamp(28px, 5vh, 44px); }
  .trust__col--left, .trust__col--right { grid-column: auto; text-align: left; align-items: flex-start; }
  .trust__stmt { max-width: none; }
}

/*
 * Phones (≤860px): the video stops being a background behind the text and
 * becomes its own square block under the title (slightly zoomed so the pen
 * fills it), with the statements underneath in a two-column grid.
 * .trust__inner drops its desktop min-height.
 */
@media (max-width: 860px) {
  .trust__header { padding: clamp(56px, 9svh, 80px) 22px 24px; }
  .trust__media { display: flex; flex-direction: column; overflow: hidden; }
  .trust__bgvideo { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 auto; transform: scale(1.18); }
  .trust__inner { width: calc(100% - 44px); min-height: 0; padding: 20px 0 clamp(56px, 9svh, 80px); }
  .trust__stage { display: flex; flex-direction: column; gap: 24px; }
  .trust__col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .trust__stmt { max-width: none; text-align: left; }
  .trust__stmt-title { font-size: 16.5px; margin-bottom: 6px; }
  .trust__stmt-desc { font-size: 14.5px; line-height: 1.5; }
}

/* ═══════════════════ SECTION 4 — BROWSE PEPTIDES BY THEME ═══════════════════
   Cards rendered by smudgechild_browse_peptides_section(). */
.browse { background: var(--bg); padding: clamp(72px, 11vh, 140px) 0 clamp(64px, 9vh, 120px); }
.browse__inner { width: min(1240px, 92vw); margin: 0 auto; }
.browse__head { max-width: 760px; margin: 0 auto clamp(34px, 4.6vh, 52px); text-align: center; }
.browse__head .eyebrow { margin-bottom: 18px; }
.browse__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(34px, 4.6vh, 52px); }
.chip {
  font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.5);
  cursor: pointer; white-space: nowrap; transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.chip:hover { color: var(--ink); border-color: rgba(12,12,13,0.24); }
.chip.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }

.pep-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.pep-card {
  flex: 0 1 calc((100% - 40px) / 3); max-width: 400px;
  position: relative; display: flex; flex-direction: column; padding: 26px 26px 24px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 26px 60px -44px rgba(12, 12, 13, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(120%); -webkit-backdrop-filter: blur(20px) saturate(120%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pep-card.is-hidden { display: none; }
.pep-card__name { font-family: var(--sans); font-size: 23px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 4px; }
.pep-card__theme { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.pep-block { margin-bottom: 16px; }
.pep-block__label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.pep-block__text { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; text-wrap: pretty; }
.pep-card__guide {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  color: var(--accent); text-decoration: none; cursor: pointer; transition: gap 0.2s ease;
}
.pep-card__guide .arrow { transition: transform 0.2s ease; }
.pep-card__guide:hover .arrow { transform: translateX(3px); }
.browse__empty { display: none; text-align: center; padding: 60px 0; font-family: var(--sans); color: var(--ink-soft); }

/* Card columns by width: 3 across on desktop, 2 on tablets, 1 on phones. */
@media (max-width: 1080px) {
  .pep-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 720px) {
  .pep-card { flex-basis: 100%; max-width: 440px; }
}

/*
 * Phones (≤860px): tighter section padding, the site's 22px side gutter,
 * wrapping centred filter chips with a 40px tap height, and full-width
 * cards with slightly larger text.
 */
@media (max-width: 860px) {
  .browse { padding: clamp(56px, 9svh, 80px) 0 clamp(48px, 8svh, 72px); }
  .browse__inner { width: calc(100% - 44px); }
  .browse__head { margin-bottom: 24px; }
  .browse__filters { flex-wrap: wrap; justify-content: center; margin: 0 0 24px; padding: 0; gap: 8px; }
  .chip { flex: none; min-height: 40px; padding: 9px 14px; font-size: 14px; }
  .pep-grid { gap: 14px; }
  .pep-card { flex-basis: 100%; max-width: none; padding: 22px 20px 20px; border-radius: 18px; }
  .pep-card__name { font-size: 21px; }
  .pep-block__text { font-size: 15px; }
  .pep-card__guide { font-size: 14px; }
}
/* ═══════════════════ SECTION 5 — PEPTIDE GUIDE (full-bleed CTA, reveals footer) ═══════════════════
   Same full-bleed image + scrim + copy-block + CTA pattern as the
   site-wide Final CTA (final-cta.css). .reveal/.reveal.in are scoped
   locally; the reveal observer in peptides-sections.js picks them up.
   The button is the shared .btn/.btn-primary from custom.css. */
.guide {
  position: relative; z-index: 1; min-height: 70vh; display: flex; align-items: flex-end;
  overflow: hidden;
  background-image: var(--guide-bg-image, none); background-size: cover; background-position: 50% 38%;
}
.guide__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(12,10,8,0.7) 0%, rgba(12,10,8,0.32) 26%, rgba(12,10,8,0) 52%),
    linear-gradient(90deg, rgba(12,10,8,0.5) 0%, rgba(12,10,8,0.12) 38%, rgba(12,10,8,0) 64%);
}
.guide__inner { position: relative; z-index: 2; width: min(1240px, 92vw); margin: 0 auto; padding: 0 0 clamp(56px, 10vh, 120px); }
.guide__copy { max-width: var(--copy-max, 700px); }
.guide__title { font-family: var(--sans); font-weight: 500; font-size: clamp(30px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.025em; color: #fff; margin: 0 0 18px; text-wrap: balance; }
.guide__body { font-family: var(--sans); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; color: #fff; margin: 0 0 28px; max-width: 48ch; text-wrap: pretty; }
.guide__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.guide__actions .btn .arrow { transition: transform 0.2s ease; }
.guide__actions .btn:hover .arrow { transform: translateX(3px); }

.guide .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.guide .reveal.in { opacity: 1; transform: none; }
/* Lumart, 12 Nov: the facts sit on subtle rounded cards, with slightly
   smaller body text (GLP-1, Hormones and Peptides share this section). */
.trust__stmt {
  padding: 18px 20px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(12, 12, 13, 0.06);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -30px rgba(12, 12, 13, 0.35);
}
.trust__stmt-desc { font-size: 13.5px; }
@media (max-width: 860px) {
  .trust__stage { gap: 12px; }
  .trust__col { gap: 12px; align-items: stretch; }
  .trust__stmt { padding: 14px 14px 16px; border-radius: 16px; background: #f6f5f2; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .trust__stmt-title { font-size: 15.5px; line-height: 1.25; }
  .trust__stmt-desc { font-size: 13px; line-height: 1.45; }
}

/* Lumart, 13 Nov (phones): the statement cards match the desktop look: the
   same white card, hairline border and soft shadow, desktop type, one per row
   so the text has room. */
@media (max-width: 860px) {
  .trust__stage, .trust__col { gap: 14px; }
  .trust__col { grid-template-columns: 1fr; }
  .trust__stmt {
    padding: 18px 20px 20px; border-radius: 18px;
    background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(12, 12, 13, 0.06);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px -30px rgba(12, 12, 13, 0.35);
  }
  .trust__stmt-title { font-size: 18px; line-height: 1.25; margin-bottom: 8px; }
  .trust__stmt-desc { font-size: 14px; line-height: 1.55; }
}

/* Lumart, 13 Nov: peptide cards in the style of Hims' product cards.
   Square, OUTLIV orange, no border or shadow; one radial glow spans every
   visible card (peptides-sections.js sizes each card's background to the
   visible cards' box, --gw/--gh, and offsets it by the card's place, --gx/--gy).
   Theme pill, a hairline, a large white name, then two plain lines; no mono
   type and no guide link. Cards grow past square only if the text needs it. */
.pep-grid { gap: 16px; }
.pep-card {
  aspect-ratio: 1 / 1; padding: clamp(24px, 2.4vw, 34px); border-radius: 28px;
  border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  /* Lumart, 13 Nov (later): darker orange, a whiter glow, off centre (low
     left, as on Hims), with a second faint wash top right for depth. */
  background-color: #b8400c;
  background-image:
    radial-gradient(ellipse 60% 58% at 22% 100%, rgba(255, 244, 234, 0.92) 0%, rgba(255, 196, 150, 0.7) 16%, rgba(240, 112, 48, 0.5) 40%, rgba(200, 74, 16, 0) 70%),
    radial-gradient(ellipse 50% 55% at 88% 6%, rgba(255, 170, 110, 0.28) 0%, rgba(255, 170, 110, 0) 70%),
    linear-gradient(160deg, #c8480f 0%, #a8390a 55%, #8a2d06 100%);
  background-size: var(--gw, 100%) var(--gh, 100%), var(--gw, 100%) var(--gh, 100%), var(--gw, 100%) var(--gh, 100%);
  background-position: calc(-1 * var(--gx, 0px)) calc(-1 * var(--gy, 0px)), calc(-1 * var(--gx, 0px)) calc(-1 * var(--gy, 0px)), calc(-1 * var(--gx, 0px)) calc(-1 * var(--gy, 0px));
  background-repeat: no-repeat;
  color: #fff;
}
.pep-card__top { padding-bottom: clamp(18px, 2vw, 24px); margin-bottom: clamp(20px, 2.2vw, 28px); border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.pep-card__theme {
  display: inline-block; font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: -0.005em; text-transform: none;
  color: #fff; background: rgba(255, 255, 255, 0.2); padding: 7px 16px; border-radius: 999px; margin: 0;
}
.pep-card__name { font-family: var(--sans); font-size: clamp(28px, 2.4vw, 36px); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; color: #fff; margin: 0 0 12px; text-wrap: balance; }
.pep-card__line { font-family: var(--sans); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.4; color: rgba(255, 255, 255, 0.86); margin: 0 0 10px; text-wrap: pretty; }
.pep-card__line--out { color: rgba(255, 255, 255, 0.95); }
.pep-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 860px) {
  .pep-grid { gap: 12px; }
  .pep-card { padding: 24px 22px; border-radius: 24px; }
  .pep-card__name { font-size: 28px; }
  .pep-card__line { font-size: 16px; }
}

/* Phones: the cards stack into one tall column, so the glow sits low-left
   across the stack's foot and stays softer, clear of the text. */
@media (max-width: 860px) {
  .pep-card {
    background-image:
      radial-gradient(ellipse 120% 26% at 0% 100%, rgba(255, 240, 228, 0.8) 0%, rgba(255, 190, 140, 0.55) 20%, rgba(240, 112, 48, 0.4) 45%, rgba(200, 74, 16, 0) 75%),
      radial-gradient(ellipse 90% 22% at 100% 0%, rgba(255, 170, 110, 0.25) 0%, rgba(255, 170, 110, 0) 70%),
      linear-gradient(170deg, #c8480f 0%, #a8390a 55%, #8a2d06 100%);
  }
}

/* Lumart, 13 Nov (later): white square card; the top is a textured dark-orange
   band, the peptide's vial sits half over the band and half over the white,
   and the name and compact text sit underneath (Hims-like). The shared glow
   above is replaced; peptides without a vial image show the band only. */
.pep-card {
  position: relative; overflow: hidden; background: #fff; background-image: none; color: var(--ink);
  padding: 0; display: flex; flex-direction: column; justify-content: flex-end;
}
.pep-card__band {
  position: absolute; left: 0; right: 0; top: 0; height: 44%;
  background-color: #a8390a;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 90% at 18% 100%, rgba(255, 150, 90, 0.55) 0%, rgba(255, 150, 90, 0) 70%),
    linear-gradient(155deg, #c4470e 0%, #a2380a 55%, #7d2a05 100%);
  background-size: 180px 180px, 100% 100%, 100% 100%;
}
.pep-card__vial {
  position: absolute; left: 50%; top: 15%; height: 40%; width: auto; transform: translateX(-50%);
  filter: drop-shadow(0 18px 22px rgba(60, 20, 0, 0.28)); pointer-events: none;
}
.pep-card__top { position: absolute; top: clamp(16px, 1.6vw, 22px); left: clamp(16px, 1.6vw, 22px); padding: 0; margin: 0; border: 0; z-index: 2; }
.pep-card__theme { background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 13px; padding: 6px 13px; }
.pep-card__body { position: relative; z-index: 2; padding: 0 clamp(20px, 2vw, 28px) clamp(20px, 2vw, 26px); text-align: center; }
.pep-card__name { color: var(--ink); font-size: clamp(21px, 1.7vw, 25px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.pep-card__line { display: none; }
.pep-card__line--out {
  display: block; color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; margin: 0 auto; max-width: 30ch;
}
@media (max-width: 860px) {
  .pep-card { padding: 0; }
  .pep-card__name { font-size: 22px; }
  .pep-card__line--out { font-size: 15px; }
}

.pep-card.is-hidden { display: none; }

/* 4 visible cards: 2x2 (Lumart, 13 Nov). */
@media (min-width: 861px) {
  .pep-grid.pep-grid--four { max-width: 820px; margin-left: auto; margin-right: auto; }
  .pep-grid.pep-grid--four .pep-card { flex-basis: calc((100% - 20px) / 2); }
}

/* Lumart, 13 Nov 10:07: text sits just under the vial, the two subheadings
   (mechanism of action, potential clinical outcomes) are back, text right-aligned.
   The card grows with its text instead of staying square. */
.pep-card { aspect-ratio: auto; justify-content: flex-start; }
.pep-card__band { height: 150px; }
.pep-card__vial { top: 44px; height: 168px; }
.pep-card__body { padding-top: 228px; text-align: right; }
.pep-card__body--novial { padding-top: 172px; }
.pep-card__name { margin: 0 0 14px; }
.pep-card__sub {
  display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 4px;
}
.pep-card__line, .pep-card__line--out {
  display: block; color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; margin: 0 0 14px; max-width: none;
}
.pep-card__body > .pep-card__line:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .pep-card__line, .pep-card__line--out { font-size: 15px; }
}
/* Lumart, 13 Nov 10:11: peptide card text left-aligned. */
.pep-card__body { text-align: left; }

/* Lumart, 13 Nov 10:12: tiny "illustrative" notes under the vials and on the pen video. */
.pep-note { font-family: var(--sans); font-size: 11.5px; line-height: 1.4; color: rgba(12, 12, 13, 0.45); text-align: center; margin: 18px auto 0; }
.pep-note--pen { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; z-index: 3; pointer-events: none; }
@media (max-width: 860px) {
  .pep-note--pen { position: relative; bottom: auto; margin: 6px 0 0; }
}

/* Lumart, 13 Nov 10:15: thin orange pinstripe around the peptide cards. */
.pep-card { border: 1px solid var(--accent); }

/* Lumart, 15 Nov: a faint grey box showed around the vials on iPhone Safari.
   It comes from Safari drawing filter: drop-shadow on a transformed image, so
   the vial has no filter or transform now (centred with auto margins), and its
   shadow is a separate soft ellipse under the vial. */
.pep-card__vial { filter: none; transform: none; left: 0; right: 0; margin: 0 auto; }
.pep-card__vshadow {
  position: absolute; left: 50%; top: 196px; width: 120px; height: 30px; margin-left: -60px;
  background: radial-gradient(closest-side, rgba(60, 20, 0, 0.26), rgba(60, 20, 0, 0)); pointer-events: none;
}

/* Lumart, 15 Nov (phones): subheading + membership button under "Uncompromised
   standards", before the pen video, like the GLP-1 intro. Lumart, 17 Nov: the
   subheading shows on desktop too; the button stays phones only. */
.trust__cta { display: none; }
.trust__sub { font-family: var(--sans); font-size: clamp(16px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-soft); margin: 18px auto 0; max-width: 40em; padding: 0 22px; text-wrap: pretty; }
@media (max-width: 860px) {
  .trust__sub { display: block; padding: 0; font-family: var(--sans); font-size: 16.5px; line-height: 1.5; color: var(--ink-soft); margin: 14px auto 0; max-width: 34em; text-wrap: pretty; }
  .trust__cta { display: inline-flex; margin-top: 24px; margin-bottom: 40px; }
}

/* Lumart, 15 Nov (phones): no cards. The statements are a list with orange
   dots, like "Why testing matters": the dot sits on the heading line and the
   text runs next to it. Shared by Peptides, GLP-1 and Hormones. */
@media (max-width: 860px) {
  .trust__stage, .trust__col { gap: 22px; }
  .trust__stage { padding-top: 28px; }
  .trust__stmt {
    position: relative; padding: 0 0 0 26px; border: 0; border-radius: 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  }
  .trust__stmt::before {
    content: ""; position: absolute; left: 1px; top: 7px;
    width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  }
  .trust__stmt-title { font-size: 18px; line-height: 1.25; margin-bottom: 6px; }
  .trust__stmt-desc { font-size: 15px; line-height: 1.55; }
}
