/* ============================================================================
   Pharma pass — preview3 refinement (Naem spec 2026-08-25).
   Loaded last. Additive: it retunes typography discipline and adds the new
   front-page structure without rewriting the baseline theme.
   Reference feel: beyond-peptides.com — one grotesk, restrained weights,
   quiet colour, generous vertical rhythm, still by default.
   ========================================================================= */

:root {
	--font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1360px;
	--rail-gap: 16px;
	--tg-size: 52px;
}

/* --- Type discipline ----------------------------------------------------- */

body { font-family: var(--font-sans); letter-spacing: -.005em; }

h1, h2, h3, h4, .display { font-family: var(--font-sans); font-weight: 600; }
h3 { font-size: clamp(18px, 1.5vw, 21px); letter-spacing: -.012em; }

/* Numbers used to be monospaced. Keep them aligned without a second typeface. */
.cprice, .cprice .amount, .cprice bdi,
.rail-price, .rail-price .amount, .rail-price bdi,
.hero-price, .hero-price .amount, .hero-price bdi,
.pd-price .price, .pd-price .amount, .pd-price bdi,
.saved-price, .price-pending, .report-summary span, .promo-amount,
.woocommerce table.shop_table .amount, .woocommerce-mini-cart__total,
.quantity input, .mono-data, .report-id, .pd-meta > div {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1, "cv05" 1;
}

/* Micro-labels: still uppercase, but no longer shouting. */
.eyebrow, .mono-label { font-weight: 600; letter-spacing: .01em; }
.eyebrow { color: var(--accent-text); }

.wrap { padding-inline: clamp(18px, 3.4vw, 44px); }
.sec-tight { padding-block: clamp(56px, 5.6vw, 88px); }
.sec-lede { margin-top: var(--s3); max-width: 58ch; }
.sec-head { margin-bottom: var(--s6); }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); }

/* The molecular field stays, but the HUD chrome around it was the loudest
   "gaming" tell on the page. It goes. */
.hud { display: none !important; }

/* --- Hero: big text left, one product right ------------------------------ */

.hero-split { position: relative; padding-block: clamp(40px, 4.4vw, 72px) clamp(36px, 3.6vw, 60px); overflow: hidden; }
.hero-split-grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	align-items: center;
	gap: clamp(28px, 4vw, 72px);
	min-height: 0;
}
.hero-split .hero-copy { max-width: 44ch; }
.hero-split h1 { margin-bottom: var(--s4); font-size: clamp(38px, 4.3vw, 58px); text-wrap: balance; }
.hero-split .sub { max-width: 52ch; margin-bottom: var(--s6); color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; }
.hero-split .trust-strip { gap: var(--s3) var(--s5); }

/* The product sits on a soft translucent plate that belongs to the background
   rather than a hard card floating on top of it — the reference treatment. */
.hero-stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: clamp(320px, 40vw, 480px);
	padding: clamp(22px, 2.6vw, 40px) clamp(18px, 2.2vw, 34px) clamp(18px, 2vw, 30px);
	border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
	border-radius: var(--r-xl);
	background: linear-gradient(180deg, color-mix(in srgb, var(--surface-raised) 62%, transparent), color-mix(in srgb, var(--surface) 34%, transparent));
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	touch-action: pan-y;
}
.hero-chip {
	position: absolute;
	z-index: 3;
	top: clamp(14px, 1.6vw, 20px);
	left: clamp(14px, 1.6vw, 20px);
	padding: 6px 12px;
	border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
	border-radius: var(--r-pill);
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	color: var(--accent-text);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .01em;
	text-transform: uppercase;
}
/* "highlighted but integrated in the background": a soft halo, not a card. */
.hero-stage-halo {
	position: absolute;
	inset: 4% 6% 12%;
	z-index: 0;
	border-radius: 50%;
	background:
		radial-gradient(58% 52% at 50% 46%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%),
		radial-gradient(72% 64% at 50% 54%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 78%);
	filter: blur(6px);
	pointer-events: none;
}

.hero-slides { position: relative; z-index: 1; width: 100%; display: grid; }
.hero-slide {
	grid-area: 1 / 1;
	display: grid;
	justify-items: center;
	gap: var(--s4);
	opacity: 0;
	transform: translateY(10px) scale(.985);
	visibility: hidden;
	transition: opacity 420ms var(--ease), transform 420ms var(--ease), visibility 0s linear 420ms;
}
.hero-slide.is-active { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.hero-shot { display: block; width: min(100%, 360px); }
.hero-shot img {
	border-radius: var(--r-md);
	width: 100%;
	height: auto;
	max-height: clamp(240px, 32vw, 380px);
	object-fit: contain;
}

.hero-slide-meta { display: grid; justify-items: center; gap: 6px; text-align: center; }
.hero-name { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.015em; }
.hero-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-line { display: inline-flex; align-items: baseline; gap: var(--s3); }
.hero-strength { color: var(--muted); font-size: 14px; }
.hero-price, .hero-price .amount, .hero-price bdi { color: var(--text); font-size: 16px; font-weight: 600; }
.hero-stock { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; }
.hero-stock.in { color: var(--ok); }

.hero-stage-controls { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: var(--s4); margin-top: var(--s5); }
.hero-arrow, .rail-nav {
	width: 44px; height: 44px;
	display: grid; place-items: center;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: color-mix(in srgb, var(--surface) 78%, transparent);
	color: var(--text);
	cursor: pointer;
	transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.hero-arrow:hover, .rail-nav:hover { border-color: var(--accent); background: var(--surface-raised); }
.hero-dots { display: flex; align-items: center; gap: 6px; }
.hero-dot { width: 32px; min-height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; padding: 0; }
.hero-dot span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--line-strong); transition: background 200ms var(--ease); }
.hero-dot.is-active span { background: var(--accent); }

/* --- Hero stage must opt back into pointer events ------------------------ */
/* `.hero .wrap` is pointer-events:none so the molecular field stays draggable
   underneath it; only `.hero-copy` opted back in. The stage has to as well, or
   every arrow, dot and swipe target is dead to real input. */
.hero-split .hero-stage,
.hero-split .hero-stage * { pointer-events: auto; }
.hero-stage-halo { pointer-events: none !important; }

/* --- Input correctness on the hero stage --------------------------------- */
/* A real drag that starts on the product photo was being swallowed by the
   browser's native image/link drag, so the swipe never reached the pointer
   handler even though the arrows worked. Also: <b> inside the support pill
   inherits `bolder`, which resolved to a synthesised 900 — the only weight on
   the page outside the loaded 400/500/600/700 ramp. */
.hero-stage { -webkit-user-select: none; user-select: none; }
.hero-shot, .hero-shot img { -webkit-user-drag: none; -khtml-user-drag: none; user-drag: none; }
.tg-support-text b { font-weight: 600; }
.rail-cell, .rail-shot img { -webkit-user-drag: none; user-drag: none; }

/* --- Quality CTA band ---------------------------------------------------- */

.quality-band { border-block: 1px solid var(--line); background: var(--band); }
.quality-grid { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s4) var(--s5); padding-block: clamp(20px, 2.4vw, 32px); }
.quality-line { margin: 0; max-width: 62ch; color: var(--text); font-size: clamp(16px, 1.5vw, 21px); font-weight: 500; letter-spacing: -.012em; line-height: 1.4; }

/* --- Product rails ------------------------------------------------------- */

.pharma-rail { position: relative; margin-top: var(--s5); }
.pharma-rail:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }
.pharma-rail-viewport { overflow: hidden; padding-inline: clamp(18px, 3.4vw, 44px); padding-block: 4px; }
.pharma-rail.is-static .pharma-rail-viewport { overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.pharma-rail-track { display: flex; gap: var(--rail-gap); width: max-content; will-change: transform; }
.pharma-rail.is-static .pharma-rail-track { transform: none !important; }
.rail-clone { display: contents; }
.pharma-rail.is-dragging { cursor: grabbing; }

.rail-cell {
	flex: 0 0 auto;
	width: clamp(190px, 22vw, 300px);
	display: grid;
	gap: var(--s3);
	padding: var(--s4);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	scroll-snap-align: start;
	transition: border-color 200ms var(--ease), transform 240ms var(--ease);
}
.rail-cell:hover { border-color: color-mix(in srgb, var(--accent) 46%, var(--line)); }
.rail-shot { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-raised); }
.rail-shot img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.rail-meta { display: grid; gap: 3px; }
.rail-name { font-size: 14px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; }
.rail-strength { color: var(--muted); font-size: 12px; }
.rail-price, .rail-price .amount, .rail-price bdi { color: var(--text); font-size: 14px; font-weight: 600; }
.rail-stock { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; }
.rail-stock.in { color: var(--ok); }

.pharma-rail-controls { display: flex; align-items: center; justify-content: flex-end; gap: var(--s2); margin-top: var(--s4); padding-inline: clamp(18px, 3.4vw, 44px); }
.rail-pause .ico-play { display: none; }
.pharma-rail.is-user-paused .rail-pause .ico-pause { display: none; }
.pharma-rail.is-user-paused .rail-pause .ico-play { display: block; }

/* Edge fade so the rail reads as continuous, not clipped. */
.pharma-rail-viewport { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%); }

/* --- Category selection -------------------------------------------------- */

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.category-tile {
	display: grid;
	align-content: start;
	gap: 6px;
	min-height: 148px;
	padding: var(--s5);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.category-tile:hover { border-color: color-mix(in srgb, var(--accent) 46%, var(--line)); background: var(--surface-raised); }
.category-tile .ci { color: var(--accent-text); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.category-tile b { font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; letter-spacing: -.015em; }
.category-tile .cn { color: var(--muted); font-size: 12px; }
.category-tile .cgo { margin-top: var(--s3); color: var(--accent-text); font-size: 12px; font-weight: 600; }
.category-tile.is-empty { background: transparent; border-style: dashed; }
.category-tile.is-empty:hover { border-color: var(--line); background: transparent; }
.category-tile.is-empty b { color: var(--muted); }
.cgo-quiet { color: var(--quiet) !important; font-weight: 500 !important; }

/* --- $349 pen promo banner ----------------------------------------------- */

.promo-banner {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
	align-items: center;
	gap: clamp(24px, 3vw, 56px);
	padding: clamp(28px, 3.4vw, 56px);
	border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
	border-radius: var(--r-lg);
	background:
		radial-gradient(84% 120% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 68%),
		var(--surface);
}
.promo-banner h2 { margin-bottom: var(--s3); font-size: clamp(26px, 3vw, 40px); }
.promo-banner .body-copy { margin-bottom: var(--s5); max-width: 56ch; }
.promo-figure { display: grid; justify-items: end; gap: 4px; text-align: right; }
.promo-amount { color: var(--accent-text); font-size: clamp(48px, 7vw, 92px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.promo-amount-note { max-width: 22ch; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* --- Purchase experience + storage --------------------------------------- */

.purchase-grid, .storage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); margin-bottom: var(--s6); }
.purchase-item, .storage-item { display: grid; align-content: start; gap: 8px; padding-top: var(--s4); border-top: 1px solid var(--line); }
.purchase-item .pi, .storage-item .si { color: var(--accent-text); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.purchase-item b, .storage-item b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.purchase-item p, .storage-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.storage-ruo { margin: 0; max-width: 76ch; }

/* --- Transparency: logo on the left -------------------------------------- */

.transparency-section .transparency-grid {
	display: grid;
	grid-template-columns: auto minmax(0, 1.1fr) minmax(0, .9fr);
	align-items: start;
	gap: clamp(24px, 3vw, 56px);
}
.transparency-mark { display: grid; justify-items: center; gap: var(--s3); padding-top: 6px; }
.transparency-mark svg, .transparency-mark img { width: clamp(56px, 5vw, 78px); height: auto; }
.transparency-mark-name { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; }

/* --- Telegram support button (inert until the handle is supplied) --------- */

.tg-support {
	position: fixed;
	z-index: 210;
	right: clamp(14px, 2.4vw, 26px);
	bottom: calc(clamp(14px, 2.4vw, 26px) + env(safe-area-inset-bottom));
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: var(--tg-size);
	padding: 0 18px 0 14px;
	border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line-strong));
	border-radius: var(--r-pill);
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -.005em;
	cursor: pointer;
	transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.tg-support:hover { border-color: var(--accent); transform: translateY(-1px); }
.tg-support svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--accent-text); }
.tg-support-note { display: block; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .01em; text-transform: uppercase; }
.tg-support-text { display: grid; gap: 1px; text-align: left; line-height: 1.25; }
body.compare-active .tg-support { bottom: calc(96px + env(safe-area-inset-bottom)); }
.is-compare.compare-active .tg-support { bottom: calc(clamp(14px, 2.4vw, 26px) + env(safe-area-inset-bottom)); }

/* --- Lab reports: product selection + direct download --------------------- */

.reports-filter { display: grid; gap: var(--s4); margin-bottom: var(--s6); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.reports-filter-row { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s4); }
.reports-filter label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; }
.reports-filter select, .reports-filter input[type="search"] {
	min-height: 48px;
	min-width: 240px;
	padding: 0 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	background: var(--surface-raised);
	color: var(--text);
	font-size: 14px;
}
.reports-filter-toggles { display: flex; flex-wrap: wrap; gap: var(--s4); }
.reports-filter-toggles label { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; text-transform: none; letter-spacing: 0; font-size: 14px; }
.reports-count { color: var(--muted); font-size: 14px; }
.report-record[hidden] { display: none !important; }
.report-empty { padding: var(--s6); border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--muted); text-align: center; }
.report-download { display: inline-flex; align-items: center; gap: 8px; }
.report-download svg { width: 15px; height: 15px; }

/* --- Side gaps: kill dead horizontal space ------------------------------- */

.shopgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1180px) {
	.category-grid, .purchase-grid, .storage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.transparency-section .transparency-grid { grid-template-columns: auto minmax(0, 1fr); }
	.transparency-section .evidence-plate { grid-column: 1 / -1; }
	.shopgrid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	/* Mobile stacks big text ABOVE the product — reference sites lead with the
	   claim, and the product then reads as the proof of it. */
	.hero-split-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); min-height: 0; }
	.hero-split .hero-copy { max-width: none; }
	.hero-stage { min-height: 0; }
	.promo-banner { grid-template-columns: minmax(0, 1fr); }
	.promo-figure { justify-items: start; text-align: left; }
	.quality-grid { justify-content: flex-start; }
}

@media (max-width: 680px) {
	:root { --mobile-gutter: clamp(14px, 4vw, 18px); --rail-gap: 12px; }
	.wrap { padding-inline: max(var(--mobile-gutter), env(safe-area-inset-left)); }
	.sec-tight { padding-block: clamp(40px, 11vw, 56px); }
	.sec-head { margin-bottom: var(--s5); }
	.sec-head.row { flex-direction: column; align-items: flex-start; gap: var(--s3); }
	.hero-split { padding-block: var(--s6) var(--s5); }
	.hero-split h1 { font-size: clamp(31px, 8.6vw, 39px); line-height: 1.06; }
	.hero-split .sub { margin-bottom: var(--s5); font-size: 16px; }
	.hero-shot { width: min(100%, 260px); }
	.hero-shot img { max-height: 236px; }
	.pharma-rail-viewport, .pharma-rail-controls { padding-inline: var(--mobile-gutter); }
	.rail-cell { width: 62vw; max-width: 250px; padding: var(--s3); }
	.category-grid, .purchase-grid, .storage-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
	.category-tile { min-height: 0; padding: var(--s4); }
	.shopgrid-3 { grid-template-columns: minmax(0, 1fr); }
	.promo-banner { padding: var(--s5); }
	.transparency-section .transparency-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
	.transparency-mark { justify-items: start; grid-auto-flow: column; align-items: center; justify-content: start; }
	.tg-support { padding: 0 14px 0 12px; font-size: 12px; }
	.reports-filter select, .reports-filter input[type="search"] { min-width: 0; width: 100%; }
	.reports-filter-row { flex-direction: column; align-items: stretch; }
}

@media (max-width: 380px) {
	.tg-support-text { display: none; }
	.tg-support { padding: 0; width: var(--tg-size); justify-content: center; }
}


/* --- Legacy hero reservations ------------------------------------------- */
/* mobile.css reserved 238-246px of bottom padding and a 724px min-height for the
   OLD hero, whose three vials were absolutely positioned at the bottom. That
   markup is gone, so those reservations are now pure dead vertical space — the
   "unnecessary gaps" complaint, in the vertical axis. Reclaim them. */
.hero-split {
	display: block;
	min-height: 0;
	align-items: initial;
}
.hero-split > .wrap { padding-block: 0; }

@media (max-width: 900px) {
	/* The chip is absolute; on narrow screens the product image reaches the top
	   of the plate, so reserve room for it instead of letting them collide. */
	.hero-stage { padding-top: 62px; }
}

@media (max-width: 680px) {
	.hero-split { min-height: 0; padding-block: var(--s5) var(--s5); }
	.hero-split > .wrap { padding-block: 0; }
	.hero-stage { padding-top: 58px; }
}

/* --- Last of the uppercase, and the motion toggle's position ------------- */
/* The trust strip was three stacked all-caps lines directly under the hero
   claim. The reference sets equivalent copy in sentence case; caps here was a
   large share of the remaining uppercase count in the first fold. */
.hero-split .trust-strip {
	text-transform: none;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	gap: var(--s3) var(--s5);
}
/* The molecular pause control sat bottom-right, directly under the product
   plate and colliding with the fixed Telegram pill. Move it to the opposite
   corner so the two controls stop competing. */
#molecularMotionToggle {
	right: auto !important;
	left: clamp(18px, 3.4vw, 44px) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-size: 12px !important;
}
@media (max-width: 900px) {
	#molecularMotionToggle { left: var(--mobile-gutter, 16px) !important; }
}

/* --- Reduced motion: stable poster state, no decorative motion ------------ */

@media (prefers-reduced-motion: reduce) {
	.pharma-rail-track { transform: none !important; transition: none !important; }
	.pharma-rail-viewport { overflow-x: auto; }
	.hero-slide { transition: none !important; }
	.rail-cell, .category-tile, .hero-arrow, .rail-nav, .tg-support { transition: none !important; }
	.tg-support:hover { transform: none; }
}
