/**
 * Description cards: template-parts/product/description.php (2162:769).
 * Three cards side by side from 1024 (24px apart), stacked below. Radius 20,
 * 30px padding (20px on phones), at least 212px tall, white text; the index
 * in a 10% white pill, title Heading/H3, text Body/M. Backgrounds: the
 * Figma fill images with their crop (inline SVG in the template), over the
 * token gradients as loading fallback.
 */

.product-desc {
	padding-bottom: var(--section-space-m);
}

.product-desc__cards {
	display: grid;
	gap: var(--space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-desc__card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-sm);
	box-sizing: border-box;
	min-height: 212px;
	padding: var(--space-md) 20px;
	border-radius: 20px;
	background: var(--gradient-desc-1);
	color: var(--color-white);
}

.product-desc__card--2 {
	background: var(--gradient-desc-2);
}

.product-desc__card--3 {
	background: var(--gradient-desc-3);
}

/* The Figma fill image behind the content; the gradient above shows while it loads. */
.product-desc__bg {
	position: absolute;
	z-index: -1;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.product-desc__index {
	padding: 10px 18px;
	border-radius: var(--radius-pill);
	background: rgb(255 255 255 / 10%);
	font-size: var(--text-label-m);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-label-m);
}

.product-desc__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--text-h3);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-h3);
	line-height: var(--leading-h3);
}

.product-desc__text {
	font-size: var(--text-body-m);
	line-height: var(--leading-body-m);
}

.product-desc__text > * {
	margin: 0;
}

.product-desc__text > * + * {
	margin-top: 0.75em;
}

.product-desc__text a {
	color: inherit;
}

@media (min-width: 768px) {
	.product-desc__card {
		padding: 30px;
	}
}

@media (min-width: 1024px) {
	.product-desc {
		padding-bottom: 60px;
	}

	.product-desc__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-md);
	}
}
