/**
 * Variant CSS: guarantee--seal-grid
 *
 * A grid of guarantee "seal" cards — intro (kicker + headline + one line), then
 * bordered cards each with an inline-SVG seal icon in an accent ring, a title, a
 * short description and a highlighted single-line terms chip at the card bottom.
 * Reads as a formal, written commitment (every promise gets its own sealed card)
 * rather than a loose badge row. Text is --ink (polarity-aware); kicker, em, seal
 * icon and the terms chip use --accent so they stay visible in every theme.
 * 3-up grid → 2-up on tablet → 1-up on phone. Part of the `guarantee` role.
 */

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

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

body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest, 0.18em) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 auto var(--space-sm) auto !important;
}

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

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

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

/* Grid — equal cards, sized rows so terms chip aligns to the bottom. */
body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__grid {
	gap: clamp(1rem, 2.2vw, 1.6rem) !important;
}

/* Seal card surface. */
body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__seal {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.7rem;
	height: 100%;
	box-sizing: border-box;
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
	border-radius: var(--decor-radius, 14px);
	background: color-mix(in srgb, var(--ink) 2.5%, transparent);
	transition: border-color var(--duration-fast, 150ms) var(--ease-default, ease),
		transform var(--duration-fast, 150ms) var(--ease-default, ease);
}

body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__seal:hover {
	border-color: color-mix(in srgb, var(--accent) 45%, transparent);
	transform: translateY(-2px);
}

/* Seal icon in an accent ring (inline SVG inherits currentColor). */
body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__seal-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--decor-radius-pill, 999px);
	color: var(--accent);
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
	margin-bottom: 0.2rem;
}

body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__seal-icon svg {
	width: 1.5rem;
	height: 1.5rem;
	display: block;
}

body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__seal-title {
	font-family: var(--font-display) !important;
	font-size: clamp(1.1rem, 2vw, 1.3rem) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	color: var(--ink) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__seal-desc {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	line-height: var(--leading-relaxed, 1.6) !important;
	color: var(--ink) !important;
	opacity: 0.74;
	margin: 0 !important;
}

/* Terms chip — pinned to the bottom of the card, accent treatment. */
body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__seal-terms {
	margin: auto 0 0 0 !important;
	padding-top: 0.85rem;
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-wide, 0.04em) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
}

/* 2-up on tablet. */
@media (max-width: 781px) {
	body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* 1-up on phone; kill tracking to avoid clipping (A5). */
@media (max-width: 480px) {
	body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
	body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__kicker {
		letter-spacing: 0 !important;
	}
	body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__seal-terms {
		letter-spacing: 0 !important;
	}
}

/* Respect reduced-motion: keep the border-color hover, drop the lift transform. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__seal {
		transition: border-color var(--duration-fast, 150ms) var(--ease-default, ease);
	}
	body.aibt-universal .universal-guarantee--seal-grid .universal-guarantee__seal:hover {
		transform: none;
	}
}
