/*
 * First-time user. Figma 2207:47869 (instance 2208:49025 / 2208:49156) desktop:
 * full-bleed grey band 490 high, text column 446 wide on the 1220 grid (x 110),
 * photo area 820x490 from x 620 to the right edge of the page (photo 820x432
 * at the bottom), three bubbles in fixed spots.
 * 2207:48983 (instance 2208:49059 / 2208:49190) mobile: 42px padding, photo
 * area 390x244 full bleed on top (photo 390x205 at the bottom), bubbles two
 * lines each: "Do I need…" left 8 / top 22, "What documents…" right 28 / top 0,
 * "Is my project…" right 16 / top 52; text below.
 */

/* Desktop: the left padding keeps the text on the container grid; no right
   padding, so the photo column runs to the page edge. */
.ftu__band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) min(820px, 62%);
	align-items: center;
	min-height: 490px;
	padding-left: max(var(--gutter), (100% - var(--container)) / 2);
	background: var(--c-bg-grey);
	overflow: hidden;
}

.ftu__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	max-width: 446px;
	padding-block: 64px;
	padding-right: 24px;
}

.ftu__head .section-head__text { font: var(--f-body-s); }

.ftu__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Photo area keeps the Figma 820x490 proportions so the bubbles stay in place. */
.ftu__figure {
	position: relative;
	align-self: end;
	aspect-ratio: 820 / 490;
}

.ftu__img {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 88.16%;                    /* 432 / 490 */
	object-fit: cover;
	object-position: center bottom;
}

.ftu__bubbles { position: absolute; inset: 0; }

.ftu__bubble {
	position: absolute;
	padding: 8px 12px;
	border-radius: var(--r-xs) var(--r-xs) var(--r-xs) 1px;
	background: var(--c-secondary);
	color: var(--c-text-dark);
	font: var(--f-subtitle-m);
	white-space: nowrap;
}

/* Bubble spots from Figma (percent of the 820x490 area): left 25 / top 73,
   left 466 / top 45, left 578 / top 112. */
.ftu__bubble:nth-child(1) { left: 3.05%; top: 14.9%; border-radius: var(--r-xs) var(--r-xs) 1px var(--r-xs); }
.ftu__bubble:nth-child(2) { left: 56.83%; top: 9.18%; }
.ftu__bubble:nth-child(3) { left: 70.49%; top: 22.86%; }

/* Small laptops / tablets: half and half, smaller wrapping bubbles. */
@media (max-width: 1100px) and (min-width: 768px) {
	.ftu__band { grid-template-columns: minmax(0, 1fr) 50%; }

	.ftu__bubble {
		max-width: 150px;
		padding: 4px 8px;
		font: var(--f-subtitle-s);
		white-space: normal;
		text-wrap: balance;
	}
}

@media (max-width: 767px) {
	.ftu__band {
		display: flex;
		flex-direction: column;
		gap: 24px;
		min-height: 0;
		padding: 42px var(--gutter);
	}

	/* Full bleed: 0–390 on the 390 frame. */
	.ftu__figure {
		order: -1;
		align-self: stretch;
		aspect-ratio: auto;
		height: 244px;
		margin-inline: calc(-1 * var(--gutter));
	}

	.ftu__img { height: 205px; }

	/* Two lines each (text-wrap: balance keeps the lines even), sized a little
	   wider than Figma so a wider fallback font still fits in two lines. */
	.ftu__bubble {
		width: max-content;
		padding: 4px 8px;
		font: var(--f-subtitle-s);
		white-space: normal;
		text-wrap: balance;
	}

	.ftu__bubble:nth-child(1) { left: 8px; top: 22px; max-width: 140px; }
	.ftu__bubble:nth-child(2) { right: 28px; left: auto; top: 0; max-width: 132px; }
	.ftu__bubble:nth-child(3) { right: 16px; left: auto; top: 52px; max-width: 112px; }

	.ftu__content {
		width: 100%;
		max-width: none;
		gap: 16px;
		padding: 0;
	}

	.ftu__btn { width: 100%; }
}
