/* ==========================================================================
   Biohack Therapeutics — full-screen age / research-use entry gate.
   Fonts referenced by name only (Belleza / Instrument Sans) — the theme is
   responsible for loading them, this file never enqueues them.

   Colour strategy: the theme's own :root custom properties (--bg, --text,
   --teal, in base.css, loaded on every front-end page) are exact matches
   for the pale-background/charcoal/teal design tokens, so those are reused
   directly rather than duplicated here. The theme has no equivalent for the
   muted-text or hairline tokens — base.css's --text-muted is a translucent
   rgba() over charcoal, not the flat #6B7A87 given, and --border is a
   different colour (#E1EEF0) entirely — so those two are declared locally,
   scoped to .bhc-gate the same way calculator.css scopes its own --bhc-*
   tokens to .bhc-calculator instead of :root.
   ========================================================================== */

.bhc-gate {
	--bhc-muted: #6b7a87;
	--bhc-line: #dde6e9;

	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
	padding: 48px 24px;
	background-color: var( --bg, #f5f9fa );
	font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var( --text, #27323c );
}

/* Mirrors the critical inline <style> in wp_head — must be duplicated here,
   not just there, because bhc-gate.js removes the inline critical tag once
   this stylesheet has taken over, and dismissal (adding this class) can
   happen at any point after that. */
html.bhc-gate-ack .bhc-gate {
	display: none !important;
}

.bhc-gate__scrim {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: var( --bg, #f5f9fa );
	background-repeat: no-repeat;
	background-position: right center;
	background-size: cover;
}

/* Homepage background is pale, so the scrim lightens toward white rather
   than darkening — a soft white radial keeps the centred column legible
   over the brightest part of the image without the site suddenly reading
   as dark. */
.bhc-gate__scrim::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 38%, rgba(255, 255, 255, 0.5) 68%, rgba(255, 255, 255, 0.18) 100%);
}

.bhc-gate__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Reuses the theme's own .site-header__logo / .site-header__mark /
   .site-header__logo-sub classes (same typographic treatment, same asset)
   — this modifier only re-centers them, since the header's version is
   left-aligned in a horizontal bar and this context is a centred column. */
.bhc-gate__logo {
	align-items: center;
	margin-bottom: 28px;
}

.bhc-gate__logo .site-header__mark {
	align-self: center;
}

/* Same treatment as .bhc-eyebrow ("Lab reference tool" on the reconstitution
   calculator page): 0.8rem, weight 600, 0.16em tracking, uppercase, teal. */
.bhc-gate__eyebrow {
	display: block;
	margin: 0 0 14px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var( --teal, #3ed2c4 );
}

/* Belleza, sentence case, normal tracking — the same treatment as .bhc-h1
   elsewhere in this plugin, not the homepage hero's wide all-caps tracking. */
.bhc-gate__headline {
	margin: 0 0 20px;
	font-family: 'Belleza', Georgia, 'Times New Roman', serif;
	font-weight: 400;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.2;
	padding-bottom: 0.1em;
	letter-spacing: 0.02em;
	color: var( --text, #27323c );
}

.bhc-gate__body {
	margin: 0 0 18px;
	max-width: 52ch;
	font-size: 1rem;
	line-height: 1.6;
	color: var( --text, #27323c );
}

/* .btn.btn--pill.btn--bronze (base.css) supplies the fill, text colour,
   radius, weight, and padding rhythm identical to the homepage "Shop Now"
   button — this modifier only changes width, case, and tracking. */
.bhc-gate__button {
	width: 100%;
	margin-top: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.bhc-gate__trust {
	margin: 22px 0 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var( --bhc-muted );
}

.bhc-gate__links {
	margin: 22px 0 0;
	padding-top: 18px;
	border-top: 1px solid var( --bhc-line );
	width: 100%;
	font-size: 0.9rem;
	color: var( --bhc-muted );
}

.bhc-gate__links a {
	color: var( --bhc-muted );
	text-decoration: underline;
}

.bhc-gate__links a:hover {
	color: var( --teal, #3ed2c4 );
}

.bhc-gate__leave {
	margin: 14px 0 0;
}

.bhc-gate__leave a {
	font-size: 0.85rem;
	color: var( --bhc-muted );
	text-decoration: underline;
}

.bhc-gate__leave a:hover {
	color: var( --text, #27323c );
}

.bhc-gate a:focus-visible,
.bhc-gate button:focus-visible {
	outline: 2px solid var( --teal, #3ed2c4 );
	outline-offset: 3px;
}

@media (max-width: 480px) {
	.bhc-gate {
		padding: 32px 20px;
	}

	.bhc-gate__headline {
		font-size: clamp(1.6rem, 7vw, 2.1rem);
	}

	.bhc-gate__body {
		font-size: 0.92rem;
	}
}
