/* Activtrim Peptides - reference site. Dark theme matching the current brand. */
:root {
  --bg: #0d0d0d;
  --panel: #161616;
  --panel-2: #1d1d1d;
  --line: #2a2a2a;
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --accent: #4fd1c5;
  --accent-ink: #062b28;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration: none; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #0a0a0a; position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.brand { font-weight: 800; letter-spacing: .08em; color: var(--text); text-decoration: none; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 64px; width: auto; display: block; }
@media (max-width: 560px) { .brand img { height: 48px; } }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.02em; }
.hero p { color: var(--muted); max-width: 640px; font-size: 18px; margin: 0 0 24px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 12px 20px; border-radius: 8px; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); margin-left: 8px; }

/* Sections */
.section { padding: 48px 0; }
.section h2 { font-size: 24px; margin: 0 0 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--text); display: block; }
.card:hover { border-color: var(--accent); }
.card h3 { margin: 6px 0; font-size: 18px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0; font-weight: 700; }

/* A-Z index */
.az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.az-nav a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--muted); }
.az-nav a:hover { color: var(--text); border-color: var(--accent); }
.az-group h2 { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.az-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 4px; }
.az-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); }
.az-list a:hover { border-color: var(--accent); }
.az-list small { color: var(--muted); }
.search { width: 100%; padding: 12px 14px; margin: 0 0 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; }

/* Peptide page */
.peptide { padding: 28px 0 56px; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.peptide-head h1 { font-size: clamp(32px, 5vw, 46px); margin: 6px 0; letter-spacing: -.02em; }
.aka { color: var(--muted); margin: 0 0 10px; }
.lede { font-size: 18px; color: #d8d8d8; max-width: 760px; }
.peptide-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 860px) { .peptide-grid { grid-template-columns: 1fr 300px; align-items: start; } }
.peptide-body h2 { margin: 32px 0 10px; font-size: 22px; }
.peptide-body h2:first-child { margin-top: 0; }
.fact-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; position: sticky; top: 76px; }
.fact-card h2 { margin: 0 0 10px; font-size: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.fact-card dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-top: 10px; }
.fact-card dd { margin: 2px 0 0; }
.status { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.refs { padding-left: 18px; }

/* Disclaimers & footer */
.box { background: var(--panel-2); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 6px; color: var(--muted); font-size: 14px; margin-top: 36px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; background: #0a0a0a; }
.disclaimer { color: var(--muted); font-size: 13px; max-width: 820px; }
.fine { color: #6f6f6f; font-size: 13px; }

/* Language switcher: flag + code, "En | Es | Pt" */
.lang-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.lang-switch a, .lang-switch .lang-current { color: var(--muted); text-decoration: none; padding: 2px 4px; border-radius: 4px; }
.lang-switch a:hover { color: var(--text); }
.lang-switch .lang-current { color: var(--text); font-weight: 700; }
.lang-switch .lang-sep { color: var(--line); }
.nav .lang-switch a { text-transform: none; letter-spacing: 0; font-size: 14px; }
.footer-lang { margin-top: 16px; }
.site-footer .disclaimer.notices { max-width: none; margin-top: 10px; }

/* Lead-gen popup and Playbook banner */
.lead-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.lead-banner h2 { margin: 0 0 6px; }
.lead-banner p { margin: 0; color: var(--muted); max-width: 640px; }
.lead-banner .eyebrow { color: var(--accent); margin-bottom: 4px; }
.lead-modal { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 28px; width: min(92vw, 440px); max-height: 92vh; overflow: auto; }
.lead-modal::backdrop { background: rgba(0, 0, 0, .72); }
.lead-modal h2 { margin: 0 0 8px; font-size: 24px; }
.lead-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.lead-close:hover { color: var(--text); }
.lead-asset { margin: 0 0 8px; color: var(--muted); }
.lead-asset strong { color: var(--accent); }
.lead-intro { margin: 0 0 16px; color: var(--muted); }
.lead-modal label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.lead-modal input[type="text"], .lead-modal input[type="email"], .lead-modal input[type="tel"] { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.lead-modal input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lead-hp { position: absolute; left: -9999px; }
.lead-modal .lead-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; }
.lead-consent input { margin-top: 3px; flex: none; }
.lead-error { color: #ff8a8a; margin: 0 0 12px; font-size: 14px; }
.lead-submit { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.lead-submit:disabled { opacity: .6; cursor: wait; }
.lead-edu { margin: 14px 0 0; font-size: 11px; color: var(--muted); }
.lead-done { text-align: center; padding: 8px 0; }
.lead-done p { color: var(--muted); }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }

/* Featured cards: keep the title and summary on the same line across cards, even when a category label wraps */
@supports (grid-template-rows: subgrid) {
  .grid.featured .card { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
}
