/**
 * Component: App Features Grid — styles
 * Figma: node 11383:3036 — 3-column feature showcase with committed app-UI card images.
 * Scoped to .app-features-grid (BEM root). No global/site-wide selectors.
 */

/* ── Section root ─────────────────────────────────────────── */
.app-features-grid {
	background-color: var(--color-bg);
	padding-block: 7.5rem;
	padding-inline: clamp(1.5rem, 9vw, 8.125rem);
}

/* ── Inner container (1180 px centred) ───────────────────── */
.app-features-grid__inner {
	max-width: 1180px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 4rem; /* 64 px — header → grid */
}

/* ── Section header ──────────────────────────────────────── */
.app-features-grid__header {
	display: flex;
	flex-direction: column;
	gap: 10px; /* label → heading-group */
	max-width: 680px;
}

.app-features-grid__heading-group {
	display: flex;
	flex-direction: column;
	gap: 8px; /* heading → subhead */
}

/* ── Label ───────────────────────────────────────────────── */
.app-features-grid__label {
	font-family: var(--font-body);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--color-brand);
	margin: 0;
}

/* ── Section heading ─────────────────────────────────────── */
.app-features-grid__heading {
	font-family: var(--font-title);
	font-size: var(--text-h3); /* clamp(1.75rem, 3vw, 2.25rem) → max 36 px */
	font-weight: 400;          /* Regular — Figma spec; hero H1 is 600 */
	line-height: 44px;
	letter-spacing: -2px;
	color: var(--color-text-pri);
	margin: 0;
}

/* ── Section subhead ─────────────────────────────────────── */
.app-features-grid__subhead {
	font-family: var(--font-body);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--color-text-sec);
	margin: 0;
}

/* ── 3-column card grid ──────────────────────────────────── */
.app-features-grid__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4.4375rem; /* 71 px — Figma exact gap between card columns */
}

/* ── Individual card column ──────────────────────────────── */
.app-features-grid__card {
	display: flex;
	flex-direction: column;
	gap: var(--space-xl); /* 24 px — card image → feature text */
}

/* ── App-UI mockup image ─────────────────────────────────── */
.app-features-grid__card-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius-lg); /* 16 px — matches Figma card border-radius */
}

/* ── Feature text below card ─────────────────────────────── */
.app-features-grid__feature-text {
	display: flex;
	flex-direction: column;
	gap: 6px; /* name → description gap from Figma */
}

.app-features-grid__feature-name {
	font-family: var(--font-body);
	font-size: 20px;
	font-weight: 600; /* SemiBold */
	line-height: 1.3; /* ≈ 26 px at 20 px */
	color: var(--color-text-pri);
	margin: 0;
}

.app-features-grid__feature-desc {
	font-family: var(--font-body);
	font-size: var(--text-body); /* 1 rem = 16 px */
	font-weight: 400;
	line-height: 1.875; /* 30 px at 16 px */
	color: var(--color-text-sec);
	margin: 0;
}

/* ── Tablet ≤ 900 px ─────────────────────────────────────── */
@media (max-width: 900px) {
	.app-features-grid {
		padding-block: 4rem;
	}

	.app-features-grid__inner {
		gap: 2.5rem;
	}

	.app-features-grid__grid {
		grid-template-columns: 1fr;
		gap: var(--space-3xl);
	}

	.app-features-grid__label,
	.app-features-grid__subhead {
		font-size: var(--text-body-lg);
	}
}

/* ── Mobile ≤ 480 px ─────────────────────────────────────── */
@media (max-width: 480px) {
	.app-features-grid {
		padding-block: 3rem;
		padding-inline: 1.25rem;
	}

	.app-features-grid__label,
	.app-features-grid__subhead {
		font-size: var(--text-body);
	}

	.app-features-grid__feature-name {
		font-size: var(--text-body-lg);
	}
}
