/**
 * Variant CSS: pricing--trio-horizontal-bands
 * Layer 2 — Path B pricing role (brief-bound, Element Count 3, 2026-06-10).
 *
 * Exactly three priced plans as three full-width horizontal BANDS stacked
 * vertically. Each band is an internal flex row: plan name + one-line tagline
 * on the LEFT, big price anchored to the RIGHT. The middle band carries a
 * subtle accent tint plus a "Polecany" tag, so the trio reads top-to-bottom as
 * three confident rows — NOT a 3-column card grid (that is three-tier-cards /
 * tiers-3). No feature lists, no per-plan CTA: just name | tagline | price.
 *
 * The band's body holds min-width:0 + flex:1 so a long plan name wraps instead
 * of shoving the price off-band; the price is flex:none and keeps its own line.
 * At <=560px the row collapses to a column (price drops below the body).
 */

body.aibt-universal .universal-pricing--trio-horizontal-bands {
	background: var(--background);
	color: var(--text-primary);
}

/* ── Intro ─────────────────────────────────────────────────────── */
body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__intro {
	margin-bottom: var(--space-6);
}

body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest, 0.16em) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 0 var(--space-3) 0 !important;
}

body.aibt-universal .universal-pricing--trio-horizontal-bands h2.universal-pricing__headline,
body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__headline {
	font-family: var(--font-display) !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
	max-width: 20ch;
}

body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__deck {
	font-family: var(--font-body) !important;
	font-size: var(--text-lg) !important;
	line-height: var(--leading-relaxed, 1.6) !important;
	color: var(--text-secondary) !important;
	margin: var(--space-4) 0 0 0 !important;
	max-width: 54ch;
}

/* ── The vertical stack of three bands ─────────────────────────── */
body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__tiers {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

/* Each full-width band: an internal flex row, body left | price right.
   The container query for "stays one row" is min-width:0 on the body, so a
   long name wraps inside the band rather than pushing the price out. */
body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__tier {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-5);
	background: var(--background-alt);
	border: 1px solid var(--divider-primary);
	border-radius: var(--decor-radius);
	padding: var(--space-5) var(--space-6);
	transition: transform var(--duration-fast, 0.18s) var(--ease-standard, ease),
		border-color var(--duration-fast, 0.18s) var(--ease-standard, ease),
		box-shadow var(--duration-fast, 0.18s) var(--ease-standard, ease);
}

/* Subtle hover lift (<250ms via --duration-fast). */
body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__tier:hover {
	transform: translateY(-2px);
	border-color: var(--accent);
	box-shadow: var(--decor-shadow-elevated, var(--decor-shadow));
}

body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__tier:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* ── Featured middle band: light accent tint so text stays --text-primary
   (never paint --accent bg here — keeps KI-020 / contrast safe). ────── */
body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__tier--featured {
	background: color-mix(in srgb, var(--accent) 8%, var(--background));
	border-color: color-mix(in srgb, var(--accent) 40%, var(--divider-primary));
}

/* "Polecany" tag — small accent pill above the featured plan name. */
body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__badge {
	display: inline-block;
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 700 !important;
	letter-spacing: var(--tracking-wide, 0.04em) !important;
	text-transform: uppercase !important;
	color: var(--on-accent, #fff) !important;
	background: var(--accent);
	border-radius: var(--decor-radius);
	padding: var(--space-1) var(--space-2);
	margin: 0 0 var(--space-2) 0 !important;
}

/* ── Band body (left): name + tagline. min-width:0 lets it shrink/wrap. ── */
body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__tier-body {
	flex: 1 1 auto;
	min-width: 0;
}

body.aibt-universal .universal-pricing--trio-horizontal-bands h3.universal-pricing__tier-name,
body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__tier-name {
	font-family: var(--font-display) !important;
	font-size: var(--text-xl) !important;
	font-weight: 600 !important;
	line-height: var(--leading-tight, 1.15) !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__tier-tagline {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	line-height: 1.5 !important;
	color: var(--text-secondary) !important;
	margin: var(--space-1) 0 0 0 !important;
	max-width: 46ch;
}

/* ── Price (right): the anchor. flex:none keeps it on its own column.
   Font capped + keep-all so a long text price ("wycena indywidualna")
   wraps at spaces rather than breaking mid-word against the base.css
   overflow-wrap floor. ─────────────────────────────────────────────── */
body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__tier-price {
	flex: none;
	text-align: right;
	font-family: var(--font-display) !important;
	font-size: clamp(1.6rem, 3vw, 2.3rem) !important;
	font-weight: 700 !important;
	line-height: 1.04 !important;
	letter-spacing: -0.02em !important;
	color: var(--accent) !important;
	margin: 0 !important;
	font-variant-numeric: tabular-nums;
	overflow-wrap: normal;
	word-break: keep-all;
	max-width: 42%;
}

body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__tier-price span {
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 400;
	letter-spacing: 0;
	color: var(--text-muted);
}

/* ── Mobile: collapse each band to a column (price below the body). ──── */
@media (max-width: 560px) {
	body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__tier {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-3);
		padding: var(--space-5);
	}
	body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__tier-price {
		text-align: left;
		max-width: 100%;
	}
	/* A5: drop the wide tracking on the uppercase kicker at narrow widths. */
	body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__kicker {
		letter-spacing: 0.08em !important;
	}
}

/* Respect reduced-motion. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__tier {
		transition: none;
	}
	body.aibt-universal .universal-pricing--trio-horizontal-bands .universal-pricing__tier:hover {
		transform: none;
	}
}
