/**
 * Variant CSS: features--quadrant-2x2-grid
 * Layer 2 — Path B features role (2026-06-06).
 *
 * Four features in a 2×2 quadrant. A subtle hairline cross-seam splits the
 * grid through the centre (built from the grid gap rendered over a hairline
 * surface) and each quadrant gets a small accent corner tick at its inner
 * corner. Each cell: icon + 0N index in the head, title, desc. A balanced,
 * "four pillars" composition — distinct from 3×2 bento, 3-col icon cards and
 * horizontal lists.
 *
 * All selectors scoped to .universal-features--quadrant-2x2-grid — no leak.
 */

body.aibt-universal .universal-features--quadrant-2x2-grid {
	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--quadrant-2x2-grid .has-text-align-center {
	margin-inline: auto !important;
}

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

body.aibt-universal .universal-features--quadrant-2x2-grid .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--quadrant-2x2-grid h2.universal-features__headline,
body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__headline {
	font-family: var(--font-display) !important;
	color: var(--text-primary) !important;
	margin: 0 auto !important;
	max-width: 18ch;
}

body.aibt-universal .universal-features--quadrant-2x2-grid .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: 52ch;
}

/* ── Quadrant grid ─────────────────────────────────────────────── */
/* The 1px hairline gap rendered over a divider-coloured surface draws the
   centre cross-seam; the outer ring border closes the box. */
body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__quad {
	gap: 1px !important;
	background: var(--divider-primary);
	border: 1px solid var(--divider-primary);
	border-radius: var(--decor-radius, 0);
	overflow: hidden;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* ── Cell ──────────────────────────────────────────────────────── */
body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__cell {
	position: relative;
	background: var(--background);
	padding: clamp(1.6rem, 3vw, 2.6rem) !important;
	display: flex !important;
	flex-direction: column;
	gap: var(--space-sm);
	transition: background var(--duration-fast) var(--ease-default);
}

body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__cell:hover {
	background: color-mix(in srgb, var(--accent) 4%, var(--background));
}

/* Accent corner tick — a small L mark drawn at the quadrant's inner corner,
   pointing toward the centre seam. Each cell rotates it to its own corner. */
body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__cell::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 14px;
	border-color: var(--accent);
	border-style: solid;
	pointer-events: none;
}

/* Q1 top-left cell → tick at its bottom-right (inner) corner. */
body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__cell:nth-child(1)::after {
	right: -1px;
	bottom: -1px;
	border-width: 0 2px 2px 0;
}
/* Q2 top-right cell → tick at its bottom-left (inner) corner. */
body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__cell:nth-child(2)::after {
	left: -1px;
	bottom: -1px;
	border-width: 0 0 2px 2px;
}
/* Q3 bottom-left cell → tick at its top-right (inner) corner. */
body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__cell:nth-child(3)::after {
	right: -1px;
	top: -1px;
	border-width: 2px 2px 0 0;
}
/* Q4 bottom-right cell → tick at its top-left (inner) corner. */
body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__cell:nth-child(4)::after {
	left: -1px;
	top: -1px;
	border-width: 2px 0 0 2px;
}

/* Cell head — icon + index on one baseline. */
body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__cell-head {
	gap: var(--space-sm) !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	justify-content: space-between !important;
}

body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__icon {
	font-size: 1.6rem !important;
	line-height: 1 !important;
	margin: 0 !important;
}

/* Watermark-ish index, accent-tinted, light weight. */
body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__index {
	font-family: var(--font-display) !important;
	font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: -0.02em !important;
	color: color-mix(in srgb, var(--accent) 40%, transparent) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-features--quadrant-2x2-grid h3.universal-features__cell-title,
body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__cell-title {
	font-family: var(--font-display) !important;
	font-weight: 600 !important;
	font-size: clamp(1.25rem, 2.2vw, 1.6rem) !important;
	line-height: 1.2 !important;
	letter-spacing: -0.015em !important;
	color: var(--text-primary) !important;
	margin: var(--space-xs) 0 0 0 !important;
}

body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__cell-desc {
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--text-secondary) !important;
	margin: 0 !important;
}

/* ── Mobile: collapse 2×2 to a single column ───────────────────── */
@media (max-width: 781px) {
	body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__quad {
		grid-template-columns: minmax(0, 1fr) !important;
	}
	/* In a single column only the vertical seam between stacked cells remains;
	   reset corner ticks so they don't float on the wrong edges. */
	body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__cell::after {
		display: none;
	}
	body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__cell {
		padding: var(--space-lg) !important;
	}
}

/* Drop wide uppercase tracking on narrow phones so the kicker never strains (A5). */
@media (max-width: 640px) {
	body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__kicker {
		letter-spacing: 0 !important;
	}
}

/* Honour reduced-motion: kill the hover surface transition. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-features--quadrant-2x2-grid .universal-features__cell {
		transition: none;
	}
}
