/* Sila — Intro (Figma 78:618 photo, 78:630 pattern, 78:600 copy)
   Desktop geometry on the 1920 frame: photo x259 w567 h833, 155 below the
   hero; copy x976 w591, 152 below the photo top. */

.sila-intro {
	overflow: clip;
}

.sila-intro__inner {
	display: grid;
	grid-template-columns: calc(567 * var(--u)) minmax(0, 591px);
	column-gap: calc(150 * var(--u));
	align-items: start;
	padding: calc(155 * var(--u)) 20px 0 calc(259 * var(--u));
}

.sila-intro__media {
	position: relative;
}

.sila-intro__photo {
	aspect-ratio: 567 / 833;
	overflow: hidden;
	border-radius: 0 var(--sila-radius) 0 var(--sila-radius);
}

.sila-intro__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Pattern sits over the photo's left edge: x18 / y+176 relative to it */
.sila-intro__pattern {
	z-index: 1;
	top: calc(21.13% - 0.5px);
	left: calc(-42.5% - 0.5px);
	width: 85.02%;
}

.sila-intro__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sila-stack-gap);
	margin-top: calc(152 * var(--u));
	margin-bottom: 64px;
	color: #000;
}

.sila-intro__copy {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* Unit pills: four 0.6px sand outlines overlapping by ~20px.
   First has a square bottom-left, last a square top-right.
   Each pill holds its label and, under it, the "à partir de" price
   (client QA: both inside the bubble). */
.sila-intro__units {
	display: flex;
	width: 100%;
	max-width: 591px;
	margin: calc(64px - var(--sila-stack-gap)) 0 0;
	padding: 0;
	list-style: none;
}

.sila-intro__unit {
	display: flex;
	flex: 0 0 calc((100% + 3 * 20.3px) / 4);
	min-width: 0;
	margin: 0;
}

.sila-intro__unit + .sila-intro__unit {
	margin-left: -20.3px;
}

.sila-intro__unit-pill {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 100%;
	aspect-ratio: 163.5 / 95.12;
	padding: 8px 22px;
	border: 0.6px solid var(--sila-sand);
	color: var(--sila-ink);
	text-align: center;
}

.sila-intro__unit-label {
	font-size: 20px;
	line-height: 30px;
	white-space: nowrap;
}

.sila-intro__unit-price {
	font-size: 13px;
	line-height: 17px;
	letter-spacing: 0.2px;
}

/* Figma clamps each corner by both adjacent sides independently: next to
   the square corner, the round is capped by the width (81.75 → 50% ×
   85.94%); every other corner is a half-height round (29.1% × 50%). */
.sila-intro__unit-pill {
	border-radius: 29.1% / 50%;
}

.sila-intro__unit:first-child .sila-intro__unit-pill {
	border-radius: 50% 29.1% 29.1% 0 / 85.94% 50% 50% 0;
}

.sila-intro__unit:last-child .sila-intro__unit-pill {
	border-radius: 29.1% 0 50% 29.1% / 50% 0 85.94% 50%;
}

@media (max-width: 1023px) {
	.sila-intro__inner {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 64px;
		padding: 64px var(--sila-gutter) 0;
	}

	.sila-intro__media {
		width: min(100%, 420px);
		margin-left: auto;
		margin-right: 12%;
	}

	.sila-intro__content {
		margin-top: 0;
	}
}

@media (max-width: 767px) {
	.sila-intro__media {
		width: 78%;
		margin-right: 0;
	}

	.sila-intro__unit-pill {
		padding-inline: 14px;
	}

	.sila-intro__unit-label {
		font-size: 16px;
		line-height: 22px;
	}

	.sila-intro__unit-price {
		font-size: 11px;
		line-height: 14px;
		letter-spacing: 0;
	}
}
