/**
 * Miért váltanak a csapatok — STATS + FEATURE_GRID_ALTERNATING
 *
 * Felső sor: 3 egyforma stat-kártya (nagy szám + unit + label + leírás).
 * Alsó sor: 4 feature-kártya alternáló szélességgel — 1. sor wide/narrow,
 * 2. sor narrow/wide. Desktopon a teljes grid 3-unit raszterre épül, span-ekkel.
 *
 * Egységes 24px gap minden kártya közt (vízszintes és függőleges).
 */

/* ==========================================================================
   Szekció wrapper
   ========================================================================== */

.why-switch {
	padding: var(--spacing-section-mobile) var(--container-padding-mobile);
	background-color: var(--color-background);
}

@media (min-width: 768px) {
	.why-switch {
		padding: var(--spacing-section-tablet) var(--container-padding-tablet);
	}
}

@media (min-width: 1200px) {
	.why-switch {
		padding: var(--spacing-section-desktop) var(--container-padding-desktop);
	}
}

.why-switch__container {
	max-width: var(--container-max-width);
	margin: 0 auto;
}

/* ==========================================================================
   Intro
   ========================================================================== */

.why-switch__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
	max-width: 780px;
	margin: 0 auto 48px;
}

@media (min-width: 1200px) {
	.why-switch__intro {
		margin-bottom: 64px;
	}
}

.why-switch__title {
	font-size: var(--fs-h2);
	line-height: var(--lh-h2);
	font-weight: var(--fw-black);
	color: var(--color-text);
	letter-spacing: -0.02em;
	margin: 0;
}

.why-switch__subtitle {
	font-size: var(--fs-body-lg);
	line-height: var(--lh-body-lg);
	font-weight: var(--fw-medium);
	color: var(--color-text-muted);
	margin: 0;
}

/* ==========================================================================
   Grid wrapper — egységes 24px gap az összes kártya közt
   ========================================================================== */

.why-switch__grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (min-width: 768px) {
	.why-switch__grid {
		gap: 20px;
	}
}

@media (min-width: 1200px) {
	.why-switch__grid {
		gap: 24px;
	}
}

/* ==========================================================================
   Stats sor — 3 egyforma kártya
   ========================================================================== */

.why-switch__stats {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 768px) {
	.why-switch__stats {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (min-width: 1200px) {
	.why-switch__stats {
		gap: 24px;
	}
}

.why-switch-stat {
	background-color: var(--color-card-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-panel);
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

@media (min-width: 1200px) {
	.why-switch-stat {
		padding: 32px;
	}
}

.why-switch-stat__number {
	display: flex;
	align-items: baseline;
	gap: 2px;
	margin-bottom: 4px;
}

.why-switch-stat__value {
	font-size: 56px;
	line-height: 1;
	font-weight: var(--fw-black);
	color: var(--color-text);
	letter-spacing: -0.03em;
}

@media (min-width: 1200px) {
	.why-switch-stat__value {
		font-size: 64px;
	}
}

.why-switch-stat__unit {
	font-size: 28px;
	line-height: 1;
	font-weight: var(--fw-black);
	color: var(--color-primary);
	letter-spacing: -0.02em;
}

@media (min-width: 1200px) {
	.why-switch-stat__unit {
		font-size: 32px;
	}
}

.why-switch-stat__label {
	font-size: var(--fs-h5);
	line-height: var(--lh-h5);
	font-weight: var(--fw-bold);
	color: var(--color-text);
	margin: 0;
}

.why-switch-stat__text {
	font-size: var(--fs-body-md);
	line-height: var(--lh-body-md);
	font-weight: var(--fw-medium);
	color: var(--color-text-muted);
	margin: 0;
}

/* ==========================================================================
   Feature kártyák — 2×2 alternáló szélesség (wide/narrow → narrow/wide)
   ========================================================================== */

.why-switch__features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 768px) {
	.why-switch__features {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (min-width: 1200px) {
	.why-switch__features {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}

	/* 1. sor: wide (span 2) + narrow (span 1) */
	.why-switch-feature:nth-child(1) {
		grid-column: span 2;
	}
	.why-switch-feature:nth-child(2) {
		grid-column: span 1;
	}

	/* 2. sor: narrow (span 1) + wide (span 2) */
	.why-switch-feature:nth-child(3) {
		grid-column: span 1;
	}
	.why-switch-feature:nth-child(4) {
		grid-column: span 2;
	}
}

.why-switch-feature {
	background-color: var(--color-card-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-panel);
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (min-width: 1200px) {
	.why-switch-feature {
		padding: 32px;
		gap: 20px;
	}
}

.why-switch-feature__title {
	font-size: var(--fs-h4);
	line-height: var(--lh-h4);
	font-weight: var(--fw-bold);
	color: var(--color-text);
	margin: 0;
}

.why-switch-feature__text {
	font-size: var(--fs-body-md);
	line-height: var(--lh-body-md);
	font-weight: var(--fw-medium);
	color: var(--color-text-muted);
	margin: 0;
}
