/**
 * Variant CSS: cta-banner--three-step-arrows-band
 * Layer 2 — Path B cta-banner role (2026-06-06).
 *
 * A centred "how to start" conversion band: kicker + headline + one line, then a
 * horizontal chain of three numbered steps (1 → 2 → 3) joined by accent arrows,
 * closed by a single CTA. The hook here is SIMPLICITY OF THE PATH — distinct from
 * reassurance-stack (text ticks), stats-backed-cta (numbers) and countdown-urgency
 * (timer). Band colour logic mirrors full-width-accent: band bg = --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 across every theme and we never use --bg-main as foreground (KI-020-safe).
 * Step numbers sit in translucent inset chips carved from the band-text colour, so
 * they read on light AND dark bands. The arrow connectors collapse when the chain
 * wraps to a vertical stack on mobile (no orphaned sideways arrows).
 *
 * All selectors scoped to .universal-cta-banner--three-step-arrows-band — no leak.
 */

body.aibt-universal .universal-cta-banner--three-step-arrows-band {
	background: var(--conversion-band-bg, var(--accent, #1a1a1a));
	color: var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff)));
	/* Explicit generous band padding (library convention for cta-banner bands). */
	padding-block: calc(clamp(3rem, 7vw, 5rem) * var(--density, 1));
	position: relative;
	overflow: hidden;
	text-align: center;
	border-bottom: none;
}

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

/* Restore WP constrained-layout centering on the centred blocks (A8/A9). */
body.aibt-universal .universal-cta-banner--three-step-arrows-band .has-text-align-center {
	margin-inline: auto !important;
}

/* ── Copy block (above the chain) ──────────────────────────────── */
body.aibt-universal .universal-cta-banner--three-step-arrows-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--three-step-arrows-band h2.universal-cta-banner__headline,
body.aibt-universal .universal-cta-banner--three-step-arrows-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--three-step-arrows-band .universal-cta-banner__headline em {
	color: inherit !important;
	font-style: italic;
}

body.aibt-universal .universal-cta-banner--three-step-arrows-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: 48ch;
}

/* ── Step chain ────────────────────────────────────────────────── */
body.aibt-universal .universal-cta-banner--three-step-arrows-band .universal-cta-banner__steps {
	gap: clamp(var(--space-xs, 0.5rem), 1.6vw, var(--space-md)) !important;
	margin: 0 auto var(--space-xl) auto !important;
	align-items: flex-start;
}

/* Each step is a slim column: numbered chip + short title + one line. */
body.aibt-universal .universal-cta-banner--three-step-arrows-band .universal-cta-banner__step {
	flex: 0 1 14.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-xs, 0.5rem);
}

/* Numbered chip — translucent inset disc carved from band-text colour. */
body.aibt-universal .universal-cta-banner--three-step-arrows-band .universal-cta-banner__step-num {
	font-family: var(--font-display) !important;
	font-size: var(--text-lg) !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	font-variant-numeric: tabular-nums;
	color: var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff))) !important;
	width: 2.75rem;
	height: 2.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--conversion-band-text, #ffffff) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--conversion-band-text, #ffffff) 28%, transparent);
	border-radius: var(--decor-radius-pill, 999px);
	margin: 0 auto var(--space-xs, 0.5rem) auto !important;
	box-sizing: border-box;
}

body.aibt-universal .universal-cta-banner--three-step-arrows-band h3.universal-cta-banner__step-title,
body.aibt-universal .universal-cta-banner--three-step-arrows-band .universal-cta-banner__step-title {
	font-family: var(--font-display) !important;
	font-size: var(--text-base) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.01em !important;
	color: var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff))) !important;
	margin: 0 auto 0.25rem auto !important;
	max-width: 16ch;
}

body.aibt-universal .universal-cta-banner--three-step-arrows-band .universal-cta-banner__step-desc {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--conversion-band-text, var(--cta-text-primary, var(--text-on-dark, #ffffff))) !important;
	opacity: 0.82;
	margin: 0 auto !important;
	max-width: 22ch;
}

/* Accent arrow connector between steps — lifted accent over the band (KI-020). */
body.aibt-universal .universal-cta-banner--three-step-arrows-band .universal-cta-banner__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	/* On the accent band the pure accent would vanish; lift it toward band-text. */
	color: color-mix(in srgb, var(--accent) 45%, var(--conversion-band-text, var(--on-dark, #ffffff)));
	/* Nudge down so the arrow lines up with the numbered chips, not the titles. */
	margin-top: 0.5rem;
	opacity: 0.9;
}

body.aibt-universal .universal-cta-banner--three-step-arrows-band .universal-cta-banner__arrow svg {
	display: block;
	width: clamp(20px, 2.4vw, 26px);
	height: clamp(20px, 2.4vw, 26px);
}

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

/* ── Tablet: keep chain horizontal but tighten step widths ─────── */
@media (max-width: 781px) {
	body.aibt-universal .universal-cta-banner--three-step-arrows-band .universal-cta-banner__step {
		flex-basis: 11rem;
	}
}

/* ── Mobile: stack the chain vertically, hide sideways arrows ───── */
@media (max-width: 600px) {
	body.aibt-universal .universal-cta-banner--three-step-arrows-band .universal-cta-banner__steps {
		flex-direction: column;
		align-items: center;
	}
	body.aibt-universal .universal-cta-banner--three-step-arrows-band .universal-cta-banner__step {
		flex-basis: auto;
		width: 100%;
		max-width: 24rem;
	}
	/* Rotate the connector to point downward between stacked steps. */
	body.aibt-universal .universal-cta-banner--three-step-arrows-band .universal-cta-banner__arrow {
		margin-top: 0;
		transform: rotate(90deg);
	}
	body.aibt-universal .universal-cta-banner--three-step-arrows-band .universal-cta-banner__cta-wrap {
		flex-direction: column;
		align-items: stretch;
	}
	body.aibt-universal .universal-cta-banner--three-step-arrows-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--three-step-arrows-band .universal-cta-banner__kicker {
		letter-spacing: 0 !important;
	}
}

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