/**
 * Variant CSS: cta-banner--reassurance-stack
 * Layer 2 — Path B cta-banner role (2026-06-06).
 *
 * Centred conversion band that pairs ONE strong action with a row of three
 * reassurance ticks below it — the objection-busting close. Colour logic
 * mirrors full-width-accent: band background = --conversion-band-bg (falls
 * back to --accent), every text token = --conversion-band-text (the theme's
 * contrast pair FOR the accent — paper-on-wine, dark-on-lime), so legibility
 * holds on every theme. Primary CTA inverts to a light/dark chip; secondary
 * is a ghost outline; tick glyphs take an accent→on-dark lift so they pop on
 * the band without dropping below AA (KI-020 — never --bg-main as foreground).
 *
 * All selectors scoped to .universal-cta-banner--reassurance-stack — no leak.
 */

body.aibt-universal .universal-cta-banner--reassurance-stack {
	background: var(--conversion-band-bg, var(--accent, #1a1a1a));
	color: var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff)));
	text-align: center;
	position: relative;
	overflow: hidden;
	border-bottom: none;
}

/* Decorative depth glow (non-layout). */
body.aibt-universal .universal-cta-banner--reassurance-stack::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient( ellipse 80% 60% at 50% -10%, rgba(255,255,255,0.10), transparent 70% );
	pointer-events: none;
}

body.aibt-universal .universal-cta-banner--reassurance-stack > * {
	position: relative;
	z-index: 1;
}

/* Restore WP constrained-layout centering. */
body.aibt-universal .universal-cta-banner.universal-cta-banner--reassurance-stack .has-text-align-center {
	margin-inline: auto !important;
}

body.aibt-universal .universal-cta-banner--reassurance-stack .universal-cta-banner__kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest) !important;
	text-transform: uppercase !important;
	color: var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff))) !important;
	/* 0.82 keeps the kicker reading AA on the lower-contrast white-text bands. */
	opacity: 0.82;
	margin: 0 auto var(--space-md) auto !important;
}

/* Scoped headline colour beats any global heading rule. */
body.aibt-universal .universal-cta-banner--reassurance-stack h2.universal-cta-banner__headline,
body.aibt-universal .universal-cta-banner--reassurance-stack .universal-cta-banner__headline {
	font-family: var(--font-display) !important;
	color: var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff))) !important;
	margin: 0 auto var(--space-md) auto !important;
	max-width: 20ch;
}

/* On the band, an accent <em> would clash with the bg — neutralise it. */
body.aibt-universal .universal-cta-banner--reassurance-stack .universal-cta-banner__headline em {
	color: inherit !important;
	font-style: italic;
}

body.aibt-universal .universal-cta-banner--reassurance-stack .universal-cta-banner__deck {
	font-family: var(--font-body) !important;
	font-size: var(--text-lg) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff))) !important;
	opacity: 0.9;
	margin: 0 auto var(--space-lg) auto !important;
	max-width: 50ch;
}

body.aibt-universal .universal-cta-banner--reassurance-stack .universal-cta-banner__cta-wrap {
	gap: var(--space-sm) !important;
	margin-bottom: var(--space-lg);
}

/* ── Primary CTA — inverted chip on the band ───────────────────── */
body.aibt-universal .universal-cta-banner--reassurance-stack .wp-block-button.universal-cta-banner__cta--primary .wp-block-button__link {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--text-base);
	letter-spacing: var(--tracking-wide);
	padding: 1.15rem 2.75rem;
	color: var(--conversion-band-bg, var(--accent, #1a1a1a));
	background: var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff)));
	border: var(--decor-border-width, 2px) solid var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff)));
	border-radius: var(--decor-radius);
	min-height: var(--target-min);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background var(--duration-fast) var(--ease-default),
		color var(--duration-fast) var(--ease-default),
		transform var(--duration-fast) var(--ease-default);
}

body.aibt-universal .universal-cta-banner--reassurance-stack .wp-block-button.universal-cta-banner__cta--primary .wp-block-button__link:hover,
body.aibt-universal .universal-cta-banner--reassurance-stack .wp-block-button.universal-cta-banner__cta--primary .wp-block-button__link:focus-visible {
	background: transparent;
	color: var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff)));
	transform: translateY(-2px);
}

/* ── Secondary CTA — subordinate underlined link in band-text colour ── */
body.aibt-universal .universal-cta-banner--reassurance-stack .wp-block-button.universal-cta-banner__cta--ghost .wp-block-button__link {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--text-sm);
	letter-spacing: var(--tracking-wide);
	padding: var(--space-xs) var(--space-sm);
	color: var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff)));
	background: transparent;
	border: none;
	border-radius: 0;
	min-height: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: underline;
	text-underline-offset: 0.25em;
	text-decoration-thickness: 1px;
	opacity: 0.86;
	transition: opacity var(--duration-fast) var(--ease-default),
		text-decoration-thickness var(--duration-fast) var(--ease-default),
		transform var(--duration-fast) var(--ease-default);
}

body.aibt-universal .universal-cta-banner--reassurance-stack .wp-block-button.universal-cta-banner__cta--ghost .wp-block-button__link:hover,
body.aibt-universal .universal-cta-banner--reassurance-stack .wp-block-button.universal-cta-banner__cta--ghost .wp-block-button__link:focus-visible {
	opacity: 1;
	text-decoration-thickness: 2px;
	transform: translateY(-1px);
}

/* Keyboard focus ring — band-text colour reads on the accent/dark band. */
body.aibt-universal .universal-cta-banner--reassurance-stack .wp-block-button.universal-cta-banner__cta .wp-block-button__link:focus-visible {
	outline: 2px solid var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff)));
	outline-offset: 3px;
}

/* ── Reassurance tick row ──────────────────────────────────────── */
body.aibt-universal .universal-cta-banner--reassurance-stack .universal-cta-banner__ticks {
	gap: clamp(var(--space-md), 3vw, var(--space-xl)) !important;
	row-gap: var(--space-sm) !important;
	padding-top: var(--space-md);
	border-top: 1px solid color-mix(in srgb, var(--conversion-band-text, #ffffff) 18%, transparent);
	max-width: 44rem;
	margin-inline: auto;
}

body.aibt-universal .universal-cta-banner--reassurance-stack .universal-cta-banner__tick {
	gap: var(--space-xs) !important;
	align-items: center;
}

/* Tick glyph: an accent→on-dark lift so it reads as a positive cue on the
   band without becoming low-contrast (KI-020-safe). */
body.aibt-universal .universal-cta-banner--reassurance-stack .universal-cta-banner__tick-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	flex: 0 0 auto;
	color: color-mix(in srgb, var(--accent) 60%, var(--on-dark, #ffffff));
}

body.aibt-universal .universal-cta-banner--reassurance-stack .universal-cta-banner__tick-text {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	color: var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff))) !important;
	margin: 0 !important;
	white-space: nowrap;
}

/* ── Mobile: full-width primary, ticks stack to a centred column ── */
@media (max-width: 781px) {
	body.aibt-universal .universal-cta-banner--reassurance-stack .universal-cta-banner__cta-wrap {
		flex-direction: column;
		align-items: stretch;
	}
	body.aibt-universal .universal-cta-banner--reassurance-stack .wp-block-button.universal-cta-banner__cta--primary .wp-block-button__link {
		width: 100%;
	}
	/* Ghost stays a centred subordinate link, not a full-width block. */
	body.aibt-universal .universal-cta-banner--reassurance-stack .wp-block-button.universal-cta-banner__cta--ghost .wp-block-button__link {
		width: auto;
		margin-inline: auto;
	}
	body.aibt-universal .universal-cta-banner--reassurance-stack .universal-cta-banner__ticks {
		flex-direction: column;
		align-items: center;
		gap: var(--space-sm) !important;
	}
	/* Let long ticks wrap once stacked rather than overflow. */
	body.aibt-universal .universal-cta-banner--reassurance-stack .universal-cta-banner__tick-text {
		white-space: normal;
		text-align: left;
	}
}

/* ── Small mobile: drop kicker tracking so uppercase never forces overflow ── */
@media (max-width: 640px) {
	body.aibt-universal .universal-cta-banner--reassurance-stack .universal-cta-banner__kicker {
		letter-spacing: 0 !important;
	}
}

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-cta-banner--reassurance-stack .wp-block-button.universal-cta-banner__cta .wp-block-button__link {
		transition: none;
	}
	body.aibt-universal .universal-cta-banner--reassurance-stack .wp-block-button.universal-cta-banner__cta .wp-block-button__link:hover,
	body.aibt-universal .universal-cta-banner--reassurance-stack .wp-block-button.universal-cta-banner__cta .wp-block-button__link:focus-visible {
		transform: none;
	}
}
