/**
 * Variant CSS: cta-banner--guarantee-backed-band
 * Layer 2 — Path B cta-banner role (2026-06-06).
 *
 * A centred conversion band built around a guarantee seal: a large medallion
 * (inline SVG) sits above kicker + headline + one-line terms, then a single CTA,
 * and a closing reassurance line under a hairline. The VISIBLE seal — not text
 * ticks (reassurance-stack) or numeric figures (stats-backed) — is what anchors
 * trust right above the ask. Band colour logic mirrors full-width-accent: band bg
 * = --conversion-band-bg (falls back to --accent), every text/icon token =
 * --conversion-band-text (the theme's contrast pair FOR the accent —
 * paper-on-wine, dark-on-lime), so legibility holds across every theme and we
 * never use --bg-main as foreground (KI-020-safe). Primary CTA inverts to a chip.
 *
 * All selectors scoped to .universal-cta-banner--guarantee-backed-band — no leak.
 */

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

/* Decorative depth glow (non-layout). */
body.aibt-universal .universal-cta-banner--guarantee-backed-band::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--guarantee-backed-band > * {
	position: relative;
	z-index: 1;
}

/* Restore WP constrained-layout centering on the centred blocks. */
body.aibt-universal .universal-cta-banner--guarantee-backed-band .has-text-align-center {
	margin-inline: auto !important;
}

/* ── Guarantee seal medallion ──────────────────────────────────── */
body.aibt-universal .universal-cta-banner--guarantee-backed-band .universal-cta-banner__seal-wrap {
	margin: 0 auto var(--space-md) auto !important;
}

body.aibt-universal .universal-cta-banner--guarantee-backed-band .universal-cta-banner__seal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff)));
	/* Subtle filled disc behind the scalloped outline so the seal reads as a stamp. */
	background: color-mix(in srgb, var(--conversion-band-text, #ffffff) 10%, transparent);
	border-radius: 50%;
	padding: 0.5rem;
	line-height: 0;
}

body.aibt-universal .universal-cta-banner--guarantee-backed-band .universal-cta-banner__seal svg {
	width: clamp(64px, 9vw, 84px);
	height: clamp(64px, 9vw, 84px);
	display: block;
}

/* ── Copy block ────────────────────────────────────────────────── */
body.aibt-universal .universal-cta-banner--guarantee-backed-band .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-sm) auto !important;
}

body.aibt-universal .universal-cta-banner--guarantee-backed-band h2.universal-cta-banner__headline,
body.aibt-universal .universal-cta-banner--guarantee-backed-band .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--guarantee-backed-band .universal-cta-banner__headline em {
	color: inherit !important;
	font-style: italic;
}

body.aibt-universal .universal-cta-banner--guarantee-backed-band .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-xl) auto !important;
	max-width: 50ch;
}

body.aibt-universal .universal-cta-banner--guarantee-backed-band .universal-cta-banner__cta-wrap {
	gap: var(--space-sm) !important;
	margin: 0 auto !important;
}

/* ── Primary CTA — inverted chip on the band ───────────────────── */
body.aibt-universal .universal-cta-banner--guarantee-backed-band .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--guarantee-backed-band .wp-block-button.universal-cta-banner__cta--primary .wp-block-button__link:hover,
body.aibt-universal .universal-cta-banner--guarantee-backed-band .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);
}

/* Keyboard focus ring — band-text colour reads on the accent/dark band. */
body.aibt-universal .universal-cta-banner--guarantee-backed-band .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;
}

/* ── Closing reassurance line — under a hairline ───────────────── */
body.aibt-universal .universal-cta-banner--guarantee-backed-band .universal-cta-banner__reassure {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	font-weight: 500 !important;
	letter-spacing: var(--tracking-wide) !important;
	color: var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff))) !important;
	opacity: 0.78;
	max-width: 52ch;
	margin: var(--space-xl) auto 0 auto !important;
	padding-top: var(--space-lg);
	border-top: 1px solid color-mix(in srgb, var(--conversion-band-text, #ffffff) 22%, transparent);
}

/* ── Mobile: CTA stretches; tighten spacing ────────────────────── */
@media (max-width: 781px) {
	body.aibt-universal .universal-cta-banner--guarantee-backed-band .universal-cta-banner__cta-wrap {
		flex-direction: column;
		align-items: stretch;
	}
	body.aibt-universal .universal-cta-banner--guarantee-backed-band .wp-block-button.universal-cta-banner__cta .wp-block-button__link {
		width: 100%;
	}
}

/* ── Small mobile: drop uppercase tracking so it never overflows (A5) ── */
@media (max-width: 540px) {
	body.aibt-universal .universal-cta-banner--guarantee-backed-band .universal-cta-banner__kicker {
		letter-spacing: 0 !important;
	}
}

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