/*
 * proof/hero-product. Figma Home hero 2396:2300 (0–1720), see
 * sites/proof/design/home-spec.md. The theme-builder header sits on top.
 * Background stack as in Figma: lime → page gradient with the brand shape
 * (hero-shape-1.svg, background), the blurred shape (::before) and a lime
 * fade from y 1341 (::after).
 */

.pf-block.pf-hproduct {
	padding-top: calc(182 * var(--pf-u));
	padding-bottom: calc(25 * var(--pf-u));
	background:
		url("../../assets/img/hero-shape-1.svg") no-repeat calc(-677 * var(--pf-u)) 0 / calc(3274 * var(--pf-u)) calc(2639 * var(--pf-u)),
		linear-gradient(180deg, #adf71e 0%, var(--pf-bg) 100%);
}
.pf-hproduct::before,
.pf-hproduct::after {
	content: "";
	position: absolute;
	z-index: 0;
	pointer-events: none;
}
/* Figma's 10% black noise on both shapes averages out to ~5.7% darker. */
.pf-hproduct::before {
	left: calc(-412 * var(--pf-u));
	top: calc(-327 * var(--pf-u));
	width: calc(2744 * var(--pf-u));
	height: calc(2291 * var(--pf-u));
	background:
		linear-gradient(rgba(0, 0, 0, 0.057), rgba(0, 0, 0, 0.057)),
		url("../../assets/img/hero-shape-2.svg") no-repeat center / 100% 100%;
}
.pf-hproduct::after {
	left: 0;
	right: 0;
	top: calc(1341 * var(--pf-u));
	height: calc(671 * var(--pf-u));
	background: linear-gradient(180deg, rgba(173, 247, 30, 0) 0%, #adf71e 100%);
}
.pf-hproduct > * {
	position: relative;
	z-index: 1;
}
/* Above 1920 the shapes stay centred on the content (both are centred at
   1920: x 960) and the darkening covers the whole hero, not only the
   shape's 2744 box, whose edge would show at 2332. */
@media (min-width: 1921px) {
	.pf-block.pf-hproduct {
		background-position: center 0, 0 0;
		/* Wider than its 3274 on ultrawide screens, so its edges stay out. */
		background-size: max(3274px, 100% + 400px) 2639px, auto;
	}
	.pf-hproduct::before {
		inset: 0;
		width: auto;
		height: auto;
		background:
			linear-gradient(rgba(0, 0, 0, 0.057), rgba(0, 0, 0, 0.057)),
			url("../../assets/img/hero-shape-2.svg") no-repeat center -327px / 2744px 2291px;
	}
}

.pf-block .pf-hproduct-title {
	align-self: center;
	width: calc(1329 * var(--pf-u));
	max-width: 100%;
	font-family: var(--pf-sans);
	font-weight: 700;
	font-size: calc(78 * var(--pf-t));
	line-height: 1;
	letter-spacing: -0.05em;
	text-align: center;
	text-transform: uppercase;
	background: linear-gradient(173.8deg, var(--pf-blue) 1.7%, var(--pf-blue-deep) 73.2%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.pf-block .pf-hproduct-sub {
	align-self: center;
	width: calc(478 * var(--pf-u));
	max-width: 100%;
	margin-top: calc(25 * var(--pf-u));
	font-weight: 600;
	font-size: calc(16 * var(--pf-t));
	line-height: 1.45;
	letter-spacing: -0.03em;
	text-align: center;
	color: rgba(0, 0, 0, 0.92);
}
.pf-block.pf-hproduct .pf-hproduct-ctas {
	margin-top: calc(25 * var(--pf-u));
	align-items: center;
}
/* Trust line under the buttons: short points with the blue check. */
.pf-block .pf-hproduct-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-self: center;
	gap: calc(8 * var(--pf-u)) calc(24 * var(--pf-u));
	margin: calc(18 * var(--pf-u)) 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--pf-mono);
	font-size: calc(13 * var(--pf-t));
	line-height: 1.3;
	letter-spacing: 0.5px;
	color: var(--pf-muted);
}
.pf-block .pf-hproduct-trust li {
	display: flex;
	align-items: center;
	gap: calc(8 * var(--pf-u));
	margin: 0;
	padding: 0;
}
.pf-block .pf-hproduct-trust li::before {
	content: "";
	flex: none;
	width: calc(14 * var(--pf-u));
	height: calc(14 * var(--pf-u));
	background: url("../../assets/img/pricing-check-blue.svg") no-repeat center / contain;
}

/* Screenshot 1477 wide on a blue 14% strip that shows 16 above it. */
.pf-block .pf-hproduct-media {
	align-self: center;
	width: calc(1477 * var(--pf-u));
	max-width: 100%;
	margin-top: calc(63 * var(--pf-u));
}
.pf-hproduct-media::before {
	content: "";
	position: absolute;
	left: calc(26 * var(--pf-u));
	right: calc(24 * var(--pf-u));
	top: calc(-16 * var(--pf-u));
	height: calc(120 * var(--pf-u));
	border-radius: calc(16 * var(--pf-u));
	background: rgba(11, 80, 200, 0.14);
}
.pf-block .pf-hproduct-media img {
	position: relative;
	width: 100%;
	height: auto;
	border-radius: calc(14 * var(--pf-u));
	box-shadow: 0 calc(30 * var(--pf-u)) calc(80 * var(--pf-u)) rgba(56, 92, 0, 0.12);
}
.pf-block.pf-hproduct .pf-label {
	margin-top: calc(53 * var(--pf-u));
}

@media (max-width: 1024px) {
	.pf-block.pf-hproduct {
		padding-top: 128px;
		padding-bottom: 24px;
		background-position: -60vw 0, 0 0;
		background-size: 220vw auto, auto;
	}
	.pf-hproduct::before {
		left: -40%;
		top: -10%;
		width: 180%;
		height: auto;
		aspect-ratio: 2744 / 2291;
	}
	.pf-hproduct::after {
		display: none;
	}
	.pf-block .pf-hproduct-title {
		font-size: 64px;
	}
	.pf-block .pf-hproduct-sub {
		width: 520px;
		margin-top: 20px;
		font-size: 16px;
	}
	.pf-block.pf-hproduct .pf-hproduct-ctas {
		margin-top: 24px;
	}
	.pf-block .pf-hproduct-trust {
		gap: 6px 16px;
		margin-top: 16px;
		font-size: 12px;
	}
	.pf-block .pf-hproduct-trust li::before {
		width: 13px;
		height: 13px;
	}
	.pf-block .pf-hproduct-media {
		margin-top: 48px;
	}
	.pf-hproduct-media::before {
		display: none;
	}
	.pf-block .pf-hproduct-media img {
		border-radius: 10px;
	}
	.pf-block.pf-hproduct .pf-label {
		margin-top: 40px;
	}
}
@media (max-width: 767px) {
	.pf-block.pf-hproduct {
		padding-top: 112px;
	}
	.pf-block .pf-hproduct-title {
		font-size: 40px;
		letter-spacing: -0.045em;
	}
	.pf-block .pf-hproduct-sub {
		font-size: 15px;
	}
}
