/**
 * Variant CSS: features--three-col-compare
 * Layer 2 — Path B features role (2026-06-06).
 *
 * Three feature columns set side by side with a shared header rhythm
 * (icon + tier label, then title, desc and a bulleted point list). The middle
 * column is featured — raised, accent-bordered, with a "recommended" badge —
 * giving a lightweight comparison-table read. Distinct from the two-column
 * before/after contrast, the key|value spec table and the icon-card grids.
 *
 * All selectors scoped to .universal-features--three-col-compare — no leak.
 */

body.aibt-universal .universal-features--three-col-compare {
	background: var(--background);
	color: var(--text-primary);
	border-bottom: 1px solid var(--divider-primary);
}

/* Constrained-layout safety net: every centred intro child keeps auto inline
   margins so it never left-pins inside the full-width section (A8/A9). */
body.aibt-universal .universal-features.universal-features--three-col-compare .has-text-align-center {
	margin-inline: auto !important;
}

/* ── Intro ─────────────────────────────────────────────────────── */
body.aibt-universal .universal-features--three-col-compare .universal-features__intro {
	margin: 0 auto var(--space-2xl) auto;
	text-align: center;
}

body.aibt-universal .universal-features--three-col-compare .universal-features__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-features--three-col-compare h2.universal-features__headline,
body.aibt-universal .universal-features--three-col-compare .universal-features__headline {
	font-family: var(--font-display) !important;
	color: var(--text-primary) !important;
	margin: 0 auto !important;
	max-width: 20ch;
}

/* Emphasised headline word picks up the accent. */
body.aibt-universal .universal-features--three-col-compare .universal-features__headline em {
	color: var(--accent) !important;
	font-style: italic;
}

body.aibt-universal .universal-features--three-col-compare .universal-features__deck {
	font-family: var(--font-body) !important;
	font-size: var(--text-lg) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--text-secondary) !important;
	margin: var(--space-md) auto 0 auto !important;
	max-width: 56ch;
}

/* ── Compare row ───────────────────────────────────────────────── */
body.aibt-universal .universal-features--three-col-compare .universal-features__compare {
	gap: clamp(1rem, 2vw, 1.5rem) !important;
	align-items: stretch !important;
}

/* ── Column ────────────────────────────────────────────────────── */
body.aibt-universal .universal-features--three-col-compare .universal-features__col {
	position: relative;
	display: flex !important;
	flex-direction: column;
	gap: var(--space-sm);
	padding: clamp(1.6rem, 2.6vw, 2.4rem) !important;
	background: var(--background);
	border: 1px solid var(--divider-primary);
	border-radius: var(--decor-radius, 0);
	transition: border-color var(--duration-fast) var(--ease-default),
		transform var(--duration-fast) var(--ease-default);
}

body.aibt-universal .universal-features--three-col-compare .universal-features__col:hover {
	border-color: color-mix(in srgb, var(--accent) 45%, var(--divider-primary));
}

/* Featured middle column — raised, accent-bordered, faint accent wash. */
body.aibt-universal .universal-features--three-col-compare .universal-features__col--featured {
	border-color: var(--accent);
	border-width: 2px;
	background: color-mix(in srgb, var(--accent) 4%, var(--background));
	transform: translateY(-12px);
	box-shadow: var(--decor-shadow-elevated, 0 8px 32px color-mix(in srgb, var(--ink) 12%, transparent));
}

/* Keep the featured column's hover from cancelling its accent border. */
body.aibt-universal .universal-features--three-col-compare .universal-features__col--featured:hover {
	border-color: var(--accent);
}

/* "Recommended" badge — accent pill pinned to the featured column's top edge. */
body.aibt-universal .universal-features--three-col-compare .universal-features__col-badge {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0 !important;
	padding: 0.4em 1em;
	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;
	white-space: nowrap;
	color: var(--cta-text-primary) !important;
	background: var(--accent);
	border-radius: var(--decor-radius-pill, 999px);
}

/* ── Column head (icon + tier label) ───────────────────────────── */
body.aibt-universal .universal-features--three-col-compare .universal-features__col-head {
	display: flex !important;
	align-items: center;
	gap: 0.6em;
	padding-bottom: var(--space-sm);
	border-bottom: 1px solid var(--divider-primary);
}

body.aibt-universal .universal-features--three-col-compare .universal-features__col-icon {
	font-size: 1.5rem !important;
	line-height: 1 !important;
	margin: 0 !important;
}

body.aibt-universal .universal-features--three-col-compare .universal-features__col-tier {
	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(--text-secondary) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-features--three-col-compare .universal-features__col--featured .universal-features__col-tier {
	color: var(--accent) !important;
}

/* ── Column title + desc ───────────────────────────────────────── */
body.aibt-universal .universal-features--three-col-compare h3.universal-features__col-title,
body.aibt-universal .universal-features--three-col-compare .universal-features__col-title {
	font-family: var(--font-display) !important;
	font-weight: 600 !important;
	font-size: clamp(1.3rem, 2.2vw, 1.7rem) !important;
	line-height: 1.18 !important;
	letter-spacing: -0.015em !important;
	color: var(--text-primary) !important;
	margin: var(--space-xs) 0 0 0 !important;
}

body.aibt-universal .universal-features--three-col-compare .universal-features__col-desc {
	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 !important;
}

/* ── Point list — accent check markers, pushed to the column foot ─ */
body.aibt-universal .universal-features--three-col-compare .universal-features__col-list {
	list-style: none !important;
	margin: var(--space-sm) 0 0 0 !important;
	padding: var(--space-sm) 0 0 0 !important;
	border-top: 1px solid var(--divider-primary);
	display: flex;
	flex-direction: column;
	gap: 0.6em;
	margin-top: auto !important; /* anchor lists to a shared baseline across columns */
}

body.aibt-universal .universal-features--three-col-compare .universal-features__col-list li {
	position: relative;
	margin: 0 !important;
	padding-left: 1.8em;
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--text-primary) !important;
}

/* Accent check glyph drawn with a border-based tick (no extra markup). */
body.aibt-universal .universal-features--three-col-compare .universal-features__col-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.34em;
	width: 0.5em;
	height: 0.85em;
	border: solid var(--accent);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* ── Tablet: 1-up stack; lift the featured column's negative offset ─ */
@media (max-width: 781px) {
	body.aibt-universal .universal-features--three-col-compare .universal-features__compare {
		gap: clamp(1.75rem, 5vw, 2.5rem) !important;
	}
	body.aibt-universal .universal-features--three-col-compare .universal-features__col {
		flex-basis: 100% !important;
	}
	/* Negative translate would collide with the column above once stacked. */
	body.aibt-universal .universal-features--three-col-compare .universal-features__col--featured {
		transform: none;
	}
	/* List no longer needs a shared baseline when columns are stacked. */
	body.aibt-universal .universal-features--three-col-compare .universal-features__col-list {
		margin-top: var(--space-sm) !important;
	}
}

/* Drop wide uppercase tracking on narrow phones so labels never strain (A5). */
@media (max-width: 640px) {
	body.aibt-universal .universal-features--three-col-compare .universal-features__kicker,
	body.aibt-universal .universal-features--three-col-compare .universal-features__col-tier,
	body.aibt-universal .universal-features--three-col-compare .universal-features__col-badge {
		letter-spacing: 0 !important;
	}
}

/* Honour reduced-motion: freeze hover/featured transforms. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-features--three-col-compare .universal-features__col {
		transition: none;
	}
}
