/* 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; }
}

/* Calculators */
.calc h1 { font-size: clamp(30px, 5vw, 44px); margin: 6px 0; letter-spacing: -.02em; }
.calc .lede { max-width: 760px; }
.calc-switch { margin: 0 0 20px; }
.calc-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .calc-out { position: sticky; top: 90px; } }
.calc fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 18px; margin: 0 0 16px; background: var(--panel); }
.calc legend { padding: 0 8px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.calc label, .calc .calc-label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.calc input[type="text"], .calc select { width: 100%; padding: 11px 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.calc input:focus-visible, .calc select:focus-visible, .calc button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc-row { display: grid; grid-template-columns: 1fr 100px; gap: 8px; }
.calc-hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.calc .calc-radio { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14px; margin: 8px 0; }
.calc-radio input { accent-color: var(--accent); }
.calc-out { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; }
.calc-out h2 { margin: 0 0 10px; font-size: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.calc-big { font-size: 20px; margin: 0 0 8px; }
.calc-big strong { color: var(--accent); font-size: 34px; display: block; line-height: 1.1; }
.calc-dl { display: grid; gap: 8px; margin: 14px 0 0; }
.calc-dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.calc-dl dt { color: var(--muted); font-size: 14px; }
.calc-dl dd { margin: 0; font-weight: 700; text-align: right; }
.calc-warn { margin: 14px 0 0; padding-left: 18px; color: #f1c27d; font-size: 14px; }
.calc-warn li { margin: 4px 0; }
.calc-block { margin: 28px 0; }
.calc-block h2 { font-size: 22px; margin: 0 0 10px; }
.calc-block h3 { font-size: 17px; margin: 18px 0 4px; }
.calc-block label { max-width: 320px; }
.calc-block select { max-width: 320px; }
#planner, #print { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
#planner[hidden], #print[hidden] { display: none; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.calc-actions .btn.ghost { margin-left: 0; background: transparent; }
.calc-actions .calc-label { margin: 0 4px 0 12px; }
.calc-formulas { padding-left: 18px; }
.comp-row { display: grid; grid-template-columns: 14px 1fr 120px 40px; gap: 8px; align-items: end; margin-bottom: 8px; }
.comp-row .swatch { align-self: center; margin-top: 18px; }
.comp-row .c-err { grid-column: 2 / -1; margin: -2px 0 0; }
.comp-row .c-remove { padding: 10px 0; margin-left: 0; }
.calc-table-wrap { overflow-x: auto; margin-top: 10px; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.calc-table th, .calc-table td { text-align: right; padding: 8px 6px; border-top: 1px solid var(--line); white-space: nowrap; }
.calc-table th:first-child { text-align: left; white-space: normal; }
.calc-table thead th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.syringe { margin: 4px 0 6px; }
.syringe svg { display: block; max-width: 100%; height: auto; }
.sy-barrel { fill: #202020; stroke: #5a5a5a; stroke-width: 1.5; }
.sy-fill { fill: var(--accent); opacity: .75; }
.sy-over { fill: #e08a6a; }
.sy-rod { fill: #3a3a3a; stroke: #5a5a5a; }
.sy-needle { stroke: #8a8a8a; stroke-width: 2; }
.sy-tick { stroke: #8a8a8a; stroke-width: 1.5; }
.sy-num { fill: var(--muted); font-size: 11px; }
.sy-mark { stroke: #fff; stroke-width: 2; }
.sy-mark-head { fill: #fff; }
/* Calculator v2: preset chips, errors, live graphics */
.calc-note { margin: 0 0 14px; }
.step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #101010; font-size: 13px; font-weight: 800; margin-right: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { appearance: none; cursor: pointer; padding: 9px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #101010; font-weight: 700; }
.chip-other { border-style: dashed; }
.chip-other[aria-pressed="true"] { border-style: solid; }
.chip-box { display: flex; align-items: center; gap: 8px; margin-top: 10px; max-width: 300px; }
.chip-box input { flex: 1; min-width: 0; }
.chip-box select { width: auto; flex: 0 0 auto; }
.chip-unit { color: var(--muted); font-size: 14px; min-width: 2.2em; }
.calc input[aria-invalid="true"] { border-color: #e08a6a; }
.field-err { margin: 8px 0 0; color: #f0a07e; font-size: 13px; }
.field-err[hidden] { display: none; }
.calc .calc-hint[hidden], .calc [hidden] { display: none; }
.calc-empty { color: var(--muted); font-size: 14px; border: 1px dashed var(--line); border-radius: 10px; padding: 14px; margin: 0 0 12px; }
.viz-row { display: flex; gap: 16px; align-items: center; margin: 0 0 8px; }
.viz-vial { flex: 0 0 96px; }
.viz-vial svg { display: block; width: 96px; height: auto; }
.viz-row .viz-main { flex: 1; min-width: 0; }
.viz-row .calc-big { margin: 0; }
.v-cap { fill: #6b6b6b; }
.v-ring { fill: #9a9a9a; }
.v-glass { fill: rgba(255,255,255,.07); stroke: #8a8a8a; stroke-width: 1.5; }
.v-liquid { fill: var(--accent); opacity: .55; transform-box: fill-box; transform-origin: center bottom; transition: transform .45s ease; }
.v-powder circle { fill: #e9e3d3; }
.v-powder { transition: opacity .3s; }
.v-label { fill: #f4f1e8; }
.v-text { fill: #101010; font-size: 13px; font-weight: 800; }
.v-sub { fill: var(--text); font-size: 11px; }
.sy-fill { transform-box: fill-box; transform-origin: left center; transition: transform .45s ease; }
.sy-markg { transition: transform .45s ease, opacity .25s; }
.sy-hub { fill: #3a3a3a; stroke: #5a5a5a; }
.sy-flange { fill: #5a5a5a; }
.sy-bubble { fill: var(--text); font-size: 13px; font-weight: 700; }
.draws-viz { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 0; align-items: center; }
.draws-viz i { display: block; width: 14px; height: 22px; border-radius: 3px; background: var(--accent); opacity: .8; animation: blockin .35s ease both; }
.draws-viz em { font-style: normal; color: var(--muted); font-size: 13px; margin-left: 4px; }
.draws-viz p { flex-basis: 100%; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
@keyframes blockin { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: .8; } }
.plan-viz { margin: 14px 0 0; padding-bottom: 28px; }
.plan-track { position: relative; height: 16px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); overflow: visible; }
.plan-fill, .plan-over { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 8px; background: var(--accent); transition: width .45s ease; }
.plan-over { background: #e08a6a; border-radius: 0 8px 8px 0; }
.plan-mark { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--text); }
.plan-mark b { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.mix-viz { display: flex; height: 16px; border-radius: 8px; overflow: hidden; margin: 14px 0 0; background: var(--bg); }
.mix-viz span { display: block; transition: flex .4s ease; min-width: 2px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
.swatch.sm { width: 10px; height: 10px; margin-right: 6px; vertical-align: baseline; }
@media (prefers-reduced-motion: reduce) { .v-liquid, .sy-fill, .sy-markg, .plan-fill, .mix-viz span { transition: none; } .draws-viz i { animation: none; } }
