/**
 * Variant CSS: hero--centered-badge-stack
 * Layer 2 — Variants Library (Path B Recipes architecture).
 *
 * Centered, photo-free hero where PROOF leads: a wrapping row of bordered trust
 * PILLS sits at the very TOP, ABOVE the kicker + display H1 + deck + dual CTA.
 * Distinct from badge-row-trust-centered (a flat dotted inline row BELOW the CTA)
 * — here each badge is an outlined chip, the cluster opens the section, and the
 * pills wrap/stack as the viewport narrows. All centered elements keep horizontal
 * auto margins (A8/A9) so they stay optically centred inside the full-width band.
 * Headline em + the leading star glyph take the accent; text stays --text-primary.
 * Scoping: body.aibt-universal .universal-hero--centered-badge-stack
 * @since 2026-06-06 (Path B Variants Library)
 */

body.aibt-universal .universal-hero--centered-badge-stack {
	background: var(--background);
	border-bottom: 1px solid var(--divider-primary, rgba(0, 0, 0, 0.08));
	overflow: hidden;
	padding-block: calc(clamp(var(--space-2xl, 5rem), 13vh, calc(var(--space-3xl, 7rem) + 1rem)) * var(--density, 1)) !important;
	padding-inline: clamp(var(--space-md, 1.25rem), 6vw, var(--space-2xl, 5rem)) !important;
	text-align: center;
}

/* === Trust pill cluster — leads the section, sits ABOVE the kicker. === */
body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: var(--space-sm, 0.7rem);
	margin: 0 auto clamp(var(--space-lg, 2rem), 4vh, var(--space-xl, 3rem)) auto;
	max-width: 46rem;
}

body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--font-body) !important;
	font-size: var(--text-sm, 0.875rem) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	color: var(--text-primary) !important;
	background: color-mix(in srgb, var(--accent) 6%, transparent);
	border: 1px solid color-mix(in srgb, var(--ink, var(--text-primary)) 16%, transparent);
	border-radius: var(--decor-radius-pill, 999px);
	padding: 0.5rem 1.05rem;
	margin: 0 !important;
}

/* Make the leading ★ glyph in any badge read as accent (KI-020 safe). */
body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__badge:first-child {
	color: var(--text-primary) !important;
	border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

/* === Kicker — small uppercase eyebrow, centred with auto margins (A8/A9). === */
body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__kicker {
	display: block;
	font-family: var(--font-body) !important;
	font-size: var(--text-xs, 0.75rem) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest, 0.18em) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 auto var(--space-sm, 0.85rem) auto !important;
}

/* === Headline — centred display type. === */
body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__headline {
	font-family: var(--font-display) !important;
	color: var(--text-primary) !important;
	text-wrap: balance;
	max-width: 18ch;
	margin: 0 auto var(--space-md, 1.25rem) auto !important;
}

body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__headline em {
	font-style: italic;
	color: var(--italic-color, var(--accent)) !important;
	font-weight: inherit;
}

/* === Deck — centred supporting sentence. === */
body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__deck {
	font-family: var(--font-body) !important;
	font-size: var(--text-lg, 1.25rem) !important;
	line-height: var(--leading-relaxed, 1.6) !important;
	color: var(--text-secondary, color-mix(in srgb, var(--ink, var(--text-primary)) 70%, transparent)) !important;
	max-width: 46ch;
	margin: 0 auto clamp(var(--space-lg, 2rem), 4vh, var(--space-xl, 3rem)) auto !important;
}

/* === Dual CTA — centred cluster. === */
body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__actions {
	gap: var(--space-sm, 0.75rem) !important;
}

body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__cta .wp-block-button__link {
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	font-size: var(--text-base, 1rem) !important;
	letter-spacing: var(--tracking-wide, 0.02em) !important;
	padding: 1.05rem 2.25rem !important;
	min-height: var(--target-min, 44px);
	display: inline-flex;
	align-items: center;
	border-radius: var(--decor-radius, 8px) !important;
	transition: background var(--duration-fast, 0.18s) var(--ease-default, ease),
		border-color var(--duration-fast, 0.18s) var(--ease-default, ease),
		color var(--duration-fast, 0.18s) var(--ease-default, ease),
		transform var(--duration-fast, 0.18s) var(--ease-default, ease);
}

body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__cta--primary .wp-block-button__link {
	background: var(--cta-bg-primary, var(--accent)) !important;
	color: var(--cta-text-primary, #ffffff) !important;
	border: 1px solid var(--cta-bg-primary, var(--accent)) !important;
}

body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__cta--primary .wp-block-button__link:hover {
	background: var(--accent-hover, var(--accent)) !important;
	transform: translateY(-2px);
}

body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__cta--ghost .wp-block-button__link {
	background: transparent !important;
	color: var(--text-primary) !important;
	border: 1px solid var(--divider-strong, color-mix(in srgb, var(--ink, var(--text-primary)) 28%, transparent)) !important;
}

body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__cta--ghost .wp-block-button__link:hover {
	border-color: var(--text-primary) !important;
	background: color-mix(in srgb, var(--ink, var(--text-primary)) 6%, transparent) !important;
	color: var(--text-primary) !important;
	transform: translateY(-2px);
}

/* Keyboard focus ring on both CTAs (a11y). */
body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__cta .wp-block-button__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: var(--focus-offset, 2px);
	border-radius: inherit;
}

/* === Mobile — tighten headline, stack pills + CTA full-width. === */
@media (max-width: 640px) {
	body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__headline {
		font-size: clamp(2.1rem, 8.6vw, 2.8rem) !important;
		max-width: 100%;
	}

	/* Cap uppercase kicker letter-spacing on the smallest screens (A5). */
	body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__kicker {
		letter-spacing: 0 !important;
	}

	body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__badges {
		flex-direction: column;
		align-items: center;
		gap: var(--space-sm, 0.6rem);
	}

	body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__badge {
		width: 100%;
		max-width: 22rem;
		justify-content: center;
	}

	body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__cta .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}
}

/* === Reduced motion — kill the CTA hover lift for motion-sensitive users. === */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__cta .wp-block-button__link {
		transition: none;
	}

	body.aibt-universal .universal-hero--centered-badge-stack .universal-hero__cta .wp-block-button__link:hover {
		transform: none;
	}
}
