/*
 * Apie - Figma 30:236 (desktop, 1440) and 33:588 (phone, 390).
 *
 * Every value is read from those nodes. Paired values (phone, desktop) interpolate linearly from 390
 * to 1440; the layout switches from the phone stack to the desktop row at 768px. All text is Inter
 * 400 and letter spacing is 0 in both frames (no letterSpacing on any node).
 */

/* The band: fill #0a0a09 (30:236 / 33:588). Padding 120 / 64 / 120 / 64 on the desktop,
   64 / 24 / 64 / 24 on the phone: the sides are the site gutter (24 to 64, held in the 1312 column
   above 1440). The children are the "Apie" label and the introduction column, 32 apart on the phone
   (33:588 item spacing) and side by side on the desktop. */
.inv-apie {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--neutral-30);
	box-sizing: border-box;
	margin: 0;
	padding: clamp(64px, calc(64px + 56 * (100vw - 390px) / 1050), 120px) var(--inv-inline);
	background: var(--wp--preset--color--c-01);
	/* Seam guard: where the hero's bottom edge falls between device pixels (any fractional height or
	   scaled view), the light page background bled through as a 1px line between two dark bands.
	   One pixel of this band's own colour painted upward covers it; nothing moves. */
	position: relative;
	box-shadow: 0 -1px 0 0 var(--wp--preset--color--c-01);
}

/* Label 30:238 Inter 400 20 / 24.2; 33:589 Inter 400 16 / 19.36 (both 121% of the size). #b1b1b1. */
.inv-apie .inv-apie__label {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: clamp(16px, calc(16px + 4 * (100vw - 390px) / 1050), 20px);
	font-weight: 400;
	line-height: 1.21;
	letter-spacing: 0;
	color: var(--wp--preset--color--c-03);
}

/* Introduction column 30:239: the paragraph, then the process line 36 below it on the desktop
   (32 on the phone, 33:588 item spacing). */
.inv-apie .inv-apie__intro {
	display: flex;
	flex-direction: column;
	gap: clamp(32px, calc(32px + 4 * (100vw - 390px) / 1050), 36px);
	min-width: 0;
	margin: 0;
}

/* Introduction 30:240 Inter 400 28 / 42; 33:590 Inter 400 22 / 33 (both 150%). #e8e8e3. */
.inv-apie .inv-apie__text {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: clamp(22px, calc(22px + 6 * (100vw - 390px) / 1050), 28px);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	color: var(--wp--preset--color--c-09);
}

/* Process line 30:241 Inter 400 14 / 16.94 (121%); 33:591 Inter 400 11 / 19.8 (180%). Uppercase in
   both (textCase UPPER), #b1b1b1. The line height is interpolated in pixels because the two frames
   draw different ratios. */
.inv-apie .inv-apie__process {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: clamp(11px, calc(11px + 3 * (100vw - 390px) / 1050), 14px);
	font-weight: 400;
	line-height: clamp(16.94px, calc(19.8px - 2.86 * (100vw - 390px) / 1050), 19.8px);
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--wp--preset--color--c-03);
}

/* Desktop shape (768 and up): the label column is 132 wide (30:237), the introduction fills the rest,
   both start at the top. The gap is 80 at 1440 (30:206 item spacing); it carries the phone's 32
   from 390 so the columns do not start 80 apart on a 768 screen. */
@media (min-width: 768px) {
	.inv-apie {
		flex-direction: row;
		align-items: flex-start;
		gap: clamp(32px, calc(32px + 48 * (100vw - 390px) / 1050), 80px);
	}

	.inv-apie .inv-apie__label {
		flex: 0 0 132px;
	}

	.inv-apie .inv-apie__intro {
		flex: 1 1 0;
	}
}
