/**
 * Variant CSS: offer--bundled-packages-3tier
 * Layer 2 - Path B universal offer variant (authored 2026-06-06).
 *
 * Concept: three bundled package columns (Start / Standard / Pro). Each column
 * carries a label, a one-line tagline, a price + unit, a feature list with
 * accent ticks, and its own CTA. The MIDDLE column (.is--featured) is the hero
 * pick: a dark band surface (--background-dark) with on-dark text, an accent
 * "najpopularniejszy" badge, a solid accent CTA, and a slight vertical lift so
 * it visually steps forward of the two flanking tiers.
 *
 * Differentiator vs sibling offer variants:
 *   - two-tier-packages: only TWO priced columns (this adds a third tier).
 *   - pricing-list-menu-style: a flat stacked price list, no columns/bundles.
 *   - accordion-categories: grouped service lists, no pricing columns.
 *   THIS one: a 3-tier good/better/best pricing matrix with a dark centre.
 *
 * Tokens: semantic only. The dark featured band uses --background-dark +
 * --text-on-dark; its accent reads via the KI-020 lift (never --bg-main as fg).
 */

/* == Section shell == */
body.aibt-universal .universal-offer--bundled-packages-3tier {
	background: var(--background);
	color: var(--text-primary);
	border-bottom: 1px solid var(--divider-primary);
}

/* Intro: centred, capped measure. text-align:center + margin → margin:0 auto (A8). */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__intro {
	margin: 0 auto clamp(2rem, 5vh, 3rem) auto !important;
}

body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__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(--accent) !important;
	margin: 0 auto var(--space-md) auto !important;
}

body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__headline {
	font-family: var(--font-display) !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

/* == Bundles row: three equal columns == */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundles {
	gap: clamp(1rem, 2vw, 1.5rem) !important;
	align-items: stretch !important;
	margin-bottom: clamp(1.5rem, 3vh, 2rem) !important;
}

/* Package card (default light tier): hairline-framed surface, column flex so the
   CTA pins to the bottom regardless of list length. */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle {
	display: flex !important;
	flex-direction: column;
	padding: clamp(1.5rem, 2.6vw, 2.25rem) !important;
	background: var(--background-card, var(--background)) !important;
	border: 1px solid var(--divider-primary);
	border-radius: var(--decor-radius, 0px);
}

/* Featured middle tier: dark band, lifted, accent CTA. KI-020-safe on-dark text. */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle--featured {
	background: var(--background-dark, #141414) !important;
	border-color: var(--background-dark, #141414);
	transform: translateY(-0.75rem);
	position: relative;
	z-index: 1;
}

/* Badge: accent pill on the featured tier. */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-badge {
	display: inline-block;
	align-self: flex-start;
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 700 !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase !important;
	color: var(--cta-text-primary, #fff) !important;
	background: var(--accent);
	padding: 0.4rem 0.85rem !important;
	border-radius: var(--decor-radius-pill, 999px);
	margin: 0 0 var(--space-md) 0 !important;
}

/* Tier label (plan name). */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-label {
	font-family: var(--font-display) !important;
	font-size: var(--text-lg) !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em !important;
	line-height: 1.1 !important;
	color: var(--text-primary) !important;
	margin: 0 0 var(--space-xs) 0 !important;
}

body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-tagline {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--text-secondary) !important;
	margin: 0 0 var(--space-md) 0 !important;
	min-height: 2.6em;
}

/* Price row: amount + unit baseline-aligned. */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-price {
	gap: 0.4rem !important;
	margin: 0 0 var(--space-md) 0 !important;
	padding: 0 0 var(--space-md) 0 !important;
	border-bottom: 1px solid var(--divider-primary);
}

body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-amount {
	font-family: var(--font-display) !important;
	font-size: clamp(1.9rem, 3.4vw, 2.6rem) !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: -0.02em !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-unit {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	color: var(--text-secondary) !important;
	margin: 0 0 0.2rem 0 !important;
}

/* Feature list: accent-tick rows, no bullets. */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-list {
	list-style: none !important;
	margin: 0 0 var(--space-lg) 0 !important;
	padding: 0 !important;
}

body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-list li {
	position: relative;
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	line-height: 1.4 !important;
	color: var(--text-primary) !important;
	padding: 0.5rem 0 0.5rem 1.55rem !important;
	margin: 0 !important;
}

/* Accent tick — pure CSS check, no extra markup. */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.85rem;
	width: 0.6rem;
	height: 0.34rem;
	border-left: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	transform: rotate(-45deg);
}

/* CTA wrapper pins to the card bottom. */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-cta-wrap {
	margin-top: auto !important;
}

/* Outline CTA on the light tiers. */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-cta .wp-block-button__link {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em !important;
	width: 100%;
	text-align: center;
	padding: 0.8rem 1.4rem !important;
	background: transparent !important;
	color: var(--text-primary) !important;
	border: 1px solid var(--ink) !important;
	transition:
		background var(--duration-fast) var(--ease-default),
		color var(--duration-fast) var(--ease-default);
}

body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-cta .wp-block-button__link:hover {
	background: var(--ink) !important;
	color: var(--text-on-dark, #fff) !important;
}

/* Keyboard focus ring on every tier CTA (a11y; accent reads on light + dark band). */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-cta .wp-block-button__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: inherit;
}

/* == Featured tier on-dark overrides (KI-020: lift accent, never --bg-main fg) == */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle--featured .universal-offer__bundle-label,
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle--featured .universal-offer__bundle-amount {
	color: var(--text-on-dark, #fff) !important;
}

body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle--featured .universal-offer__bundle-tagline,
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle--featured .universal-offer__bundle-unit {
	color: color-mix(in srgb, var(--text-on-dark, #fff) 72%, transparent) !important;
}

body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle--featured .universal-offer__bundle-price {
	border-bottom-color: color-mix(in srgb, var(--text-on-dark, #fff) 22%, transparent);
}

body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle--featured .universal-offer__bundle-list li {
	color: color-mix(in srgb, var(--text-on-dark, #fff) 90%, transparent) !important;
}

/* Tick lifts on dark so it stays visible if --accent is itself dark. */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle--featured .universal-offer__bundle-list li::before {
	border-color: color-mix(in srgb, var(--accent) 60%, var(--on-dark, #fff));
}

/* Featured CTA: solid accent fill. */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle--featured .universal-offer__bundle-cta .wp-block-button__link {
	background: var(--cta-bg-primary, var(--accent)) !important;
	color: var(--cta-text-primary, #fff) !important;
	border-color: var(--cta-bg-primary, var(--accent)) !important;
}

body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle--featured .universal-offer__bundle-cta .wp-block-button__link:hover {
	background: var(--accent-hover, var(--accent)) !important;
	border-color: var(--accent-hover, var(--accent)) !important;
	color: var(--cta-text-primary, #fff) !important;
}

/* Featured CTA focus ring: lift the outline on-dark so it stays visible if --accent
   is itself dark against the --background-dark band (KI-020-style lift). */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle--featured .universal-offer__bundle-cta .wp-block-button__link:focus-visible {
	outline-color: color-mix(in srgb, var(--accent) 60%, var(--on-dark, #fff));
}

/* == Foot note == */
body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__foot {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--text-secondary) !important;
	margin: 0 auto !important;
	max-width: 52ch;
}

/* == Responsive == */
@media (max-width: 781px) {
	/* Columns stack to a single stream; drop the featured lift so nothing clips. */
	body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundles {
		flex-direction: column !important;
		gap: 1rem !important;
	}
	body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle {
		width: 100% !important;
	}
	body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle--featured {
		transform: none;
	}
	body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-tagline {
		min-height: 0;
	}
}

@media (max-width: 640px) {
	/* Cap uppercase tracking: wide letter-spacing reads as gaps at narrow widths. */
	body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__kicker,
	body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-badge {
		letter-spacing: 0 !important;
	}
}

/* == Motion respect == */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-offer--bundled-packages-3tier .universal-offer__bundle-cta .wp-block-button__link {
		transition: none;
	}
}

/* == Editor wrapper: the featured translateY can collide with editor chrome;
   neutralise the lift inside the editor so cards sit on the baseline grid. == */
.editor-styles-wrapper .universal-offer--bundled-packages-3tier .universal-offer__bundle--featured {
	transform: none;
}

/* A8/A9 left-shift fix (2026-06-08): centered intro element(s) were max-width-capped by
   WP constrained layout but pinned left by horizontal margin:0. Force margin-inline:auto.
   Section class doubled -> specificity (0,4,1) beats h2.__headline-style rules; harmless on
   already-centered elements (auto margins compute to 0). Only left/right are overridden. */
body.aibt-universal .universal-offer--bundled-packages-3tier.universal-offer--bundled-packages-3tier .universal-offer__headline { margin-inline: auto !important; }
