/**
 * Variant CSS: guarantee--tiered-promise-cards
 *
 * Three guarantee cards arranged as an escalating ladder of commitment — intro
 * (kicker + headline + one line), then a 3-column grid of tier cards where the
 * DURATION is the hero of each card (e.g. 30 dni / 12 miesięcy / dożywotnio).
 * Each card carries a tier label, a big display figure, a description and a
 * highlighted single-line terms strip; the middle card is lifted as the
 * recommended tier. Light bordered cards; --accent drives kicker, em, tier label,
 * the figure on the featured card and the terms rule so they stay visible in every
 * theme (KI-020 safe — never --bg-main as foreground). Part of the `guarantee` role.
 */

body.aibt-universal .universal-guarantee--tiered-promise-cards {
	padding-block: calc(clamp(3.4rem, 7vw, 5.5rem) * var(--density, 1));
}

/* Intro. */
body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__intro {
	margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}

body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__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-sm) auto !important;
}

body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__headline {
	font-family: var(--font-display) !important;
	color: var(--ink) !important;
	margin: 0 auto !important;
}

body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__headline em {
	color: var(--accent) !important;
	font-style: italic;
}

body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__deck {
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--ink) !important;
	opacity: 0.78;
	margin: var(--space-sm) auto 0 auto !important;
}

/* Tier grid. */
body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tiers {
	gap: clamp(1.2rem, 2.6vw, 1.8rem) !important;
	align-items: stretch !important;
}

/* Tier card — bordered ladder rung. */
body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tier {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1.4rem, 2.6vw, 1.9rem);
	background: color-mix(in srgb, var(--ink) 3%, transparent);
	border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
	border-radius: var(--decor-radius, 14px);
	transition: transform var(--duration-fast, 0.18s) var(--ease-default, ease),
		border-color var(--duration-fast, 0.18s) var(--ease-default, ease);
}

/* Non-featured tiers lift slightly on hover for tactile feedback. */
body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tier:not(.universal-guarantee__tier--featured):hover {
	transform: translateY(-0.3rem);
	border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}

/* Featured (middle) tier — recommended, lifted + accent framed. */
body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tier--featured {
	background: color-mix(in srgb, var(--accent) 7%, transparent);
	border-color: color-mix(in srgb, var(--accent) 40%, transparent);
	box-shadow: 0 1.4rem 2.6rem -1.6rem color-mix(in srgb, var(--ink) 40%, transparent);
	transform: translateY(-0.5rem);
}

/* Tier label. */
body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tier-label {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 0 0.7rem 0 !important;
}

/* Big duration figure — the hero of the card. */
body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tier-figure {
	font-family: var(--font-display) !important;
	font-size: clamp(1.9rem, 4vw, 2.7rem) !important;
	font-weight: 700 !important;
	line-height: 1.05 !important;
	letter-spacing: -0.02em !important;
	color: var(--ink) !important;
	margin: 0 0 0.85rem 0 !important;
}

/* Featured figure lifts to accent for extra emphasis. */
body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tier--featured .universal-guarantee__tier-figure {
	color: var(--accent) !important;
}

body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tier-desc {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--ink) !important;
	opacity: 0.78;
	margin: 0 0 1.2rem 0 !important;
}

/* Terms strip — pinned to the bottom with an accent top rule. */
body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tier-terms {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase !important;
	color: var(--ink) !important;
	margin: auto 0 0 0 !important;
	padding-top: 0.9rem;
	border-top: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

/* Two-up then one-up on smaller viewports. */
@media (max-width: 781px) {
	body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tiers {
		grid-template-columns: 1fr 1fr !important;
	}
	/* Drop the lift so the featured card aligns in the stacked grid. */
	body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tier--featured {
		transform: none;
	}
}

@media (max-width: 540px) {
	body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tiers {
		grid-template-columns: 1fr !important;
	}
	/* Kill tracking on small uppercase to avoid clipping (A5). */
	body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__kicker,
	body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tier-label,
	body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tier-terms {
		letter-spacing: 0 !important;
	}
}

/* Focus ring for keyboard users on any future interactive child. */
body.aibt-universal .universal-guarantee--tiered-promise-cards a:focus-visible,
body.aibt-universal .universal-guarantee--tiered-promise-cards button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* Respect reduced-motion: no lift transition or hover translate. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tier {
		transition: none;
	}
	body.aibt-universal .universal-guarantee--tiered-promise-cards .universal-guarantee__tier:not(.universal-guarantee__tier--featured):hover {
		transform: none;
	}
}
