/* Solutions page — Figma: Solutions (80:952), UNS Foundation (81:1287) */

/* List */
.solutions {
	padding-block: var(--section-y);
	background: var(--color-light);
}

.solutions__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(36px, 3.75vw, 54px);
}

.solutions__title {
	text-align: center;
	color: var(--color-dark);
}

/* "You can start at any stage" panel — Figma: Card (81:1125) */
.stages {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 100%;
	padding: clamp(28px, 4.17vw, 60px);
	border-radius: var(--radius-panel);
	background: var(--color-dark) var(--stages-bg) center / cover no-repeat;
}

.stages__text {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 313px;
}

.stages__title {
	max-width: 237px;
	color: var(--color-light);
}

.stages__lead {
	color: var(--color-neutral-3);
}

.stages__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 17px;
}

.stage-card {
	display: flex;
}

.stage-card__link {
	display: flex;
	flex-direction: column;
	gap: 28px;
	width: 100%;
	padding: 20px;
	border-radius: 12px;
	background: var(--color-neutral-4);
	transition: background-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.stage-card__link:hover {
	background: color-mix(in srgb, var(--color-neutral-4) 80%, #fff);
	transform: translateY(-2px);
}

.stage-card__icon {
	width: 30px;
	height: 30px;
}

.stage-card__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.stage-card__question {
	font-size: var(--fs-body-main);
	font-weight: var(--fw-medium);
	line-height: 1.4;
	letter-spacing: var(--ls-body);
	color: var(--color-dark);
}

.stage-card__tag {
	padding: 6px 10px;
	border: 1px solid var(--color-neutral-3);
	border-radius: var(--radius-pill);
	color: var(--color-neutral-1);
	white-space: nowrap;
}

/* iPad Pro (1024–1279): one row with a narrower, smaller text column and the three cards sharing the rest */
@media (min-width: 1024px) and (max-width: 1279px) {
	.stages {
		flex-direction: row;
		align-items: center;
		gap: 28px;
		padding: 36px;
	}

	.stages__text {
		flex: 0 0 240px;
	}

	.stages__list {
		flex: 1;
		min-width: 0;
		display: flex;
		gap: 12px;
	}

	.stage-card {
		flex: 1 1 0;
		min-width: 0;
	}

	/* Narrower cards, same height as desktop: only the side padding shrinks */
	.stage-card__link {
		padding-inline: 14px;
	}
}

@media (min-width: 1280px) {
	.stages {
		flex-direction: row;
		align-items: center;
		gap: 52px;
		min-height: 312px;
		padding-right: 61px;
	}

	.stages__text {
		flex: 0 0 313px;
	}

	.stages__list {
		flex: 1;
		display: flex;
		align-items: stretch;
	}

	.stage-card {
		flex: 1 1 240px;
		max-width: 240px;
	}
}

/* Foundation */
.foundation {
	padding-block: var(--section-y-sm);
	background: var(--color-dark) var(--foundation-bg) center / cover no-repeat;
	color: var(--color-light);
	overflow: hidden;
}

.foundation__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 56px;
}

.foundation__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 38px;
	max-width: 486px;
}

.foundation__lead {
	color: var(--color-neutral-3);
}

/* Tablet (stacked): text centred above the diagram, like the Home hero */
@media (min-width: 768px) and (max-width: 1279px) {
	.foundation__text {
		align-items: center;
		max-width: 600px;
		text-align: center;
	}
}

@media (min-width: 1280px) {
	.foundation__inner {
		flex-direction: row;
		justify-content: space-between;
		gap: 40px;
	}
}
