/*
 * Apervia theme styles.
 *
 * Desktop values come straight from the "Apervia Marketing - Home" frame in Figma
 * (1280px wide, 1064px content column). Below 1200px the layout is inferred:
 * tablet (<= 1099px) collapses multi-column sections, mobile (<= 699px) stacks
 * everything into one column. Colours and type sizes are theme.json presets.
 */

:root {
	--apv-section-gap: clamp(72px, 10vw, 136px);
	--apv-radius: 8px;
	--apv-radius-lg: 20px;
	--apv-header-h: 80px;
	--apv-teal: var(--wp--preset--color--apervia-green);
	--apv-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html {
	overflow-x: clip;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--apv-header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

:where(a, button, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--apervia-highlight);
	outline-offset: 3px;
	border-radius: 2px;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Reset core's default vertical rhythm inside our sections; spacing is explicit below. */
.apv-main :where(p, h1, h2, h3, h4, h5, h6, ul, ol, figure) {
	margin-block: 0;
}

.apv-main :where(.wp-block-image img) {
	display: block;
}

/* ------------------------------------------------------------------ *
 * Header
 * ------------------------------------------------------------------ */

.apv-header {
	--apv-nav-link: var(--wp--preset--color--white);
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	font-family: var(--wp--preset--font-family--display);
}

.apv-header__bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	box-sizing: border-box;
}

.apv-header__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15.3px;
	box-sizing: border-box;
	width: 181px;
	padding: 12px 0;
	border-radius: 12px;
	flex-shrink: 0;
}

.apv-header__logo img:first-child {
	width: 37.39px;
	height: 37.45px;
}

.apv-header__logo img:last-child {
	width: 85.98px;
	height: 25.21px;
}

.apv-header__nav ul {
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: 798px;
	margin: 0;
	padding: 0 16px;
	list-style: none;
}

.apv-header__nav a {
	display: block;
	padding: 2px;
	color: var(--apv-nav-link);
	font-size: 14px;
	font-weight: 700;
	line-height: normal;
	text-decoration: none;
	white-space: nowrap;
}

.apv-header__nav a:hover,
.apv-header__nav a:focus-visible,
.apv-header__nav a[aria-current="true"] {
	color: var(--wp--preset--color--green-tint);
	text-decoration: underline;
	text-decoration-color: var(--apv-teal);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.apv-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin-left: auto;
	color: var(--wp--preset--color--white);
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--apv-radius);
	cursor: pointer;
}

/* Solid bar ("MainNav" in Figma): inner pages, and the front page once scrolled. */
.apv-header.is-solid {
	background: var(--wp--preset--color--dark-blue);
	filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.12));
}

.apv-header.is-solid .apv-header__bar {
	min-height: var(--apv-header-h);
	padding: 2px 8px;
}

/* Hero variant ("HeroNav"): translucent pill floating over the hero. */
.apv-header--overlay {
	position: absolute;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 47px);
	left: 0;
	right: 0;
	padding-inline: 16px;
}

.apv-header--overlay:not(.is-solid) .apv-header__bar {
	max-width: 1035px;
	margin-inline: auto;
	padding: 2px 8px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: var(--apv-radius);
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.apv-header--overlay:not(.is-solid) .apv-header__logo {
	border: 1px solid var(--wp--preset--color--off-black);
}

.apv-header--overlay.is-solid {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	padding-inline: 0;
	animation: apv-slide-down 0.35s var(--apv-ease);
}

@keyframes apv-slide-down {
	from {
		transform: translateY(-100%);
	}
}

@media (max-width: 1099px) {
	.apv-header__bar {
		justify-content: flex-start;
		gap: 16px;
		flex-wrap: wrap;
	}

	.apv-header__logo {
		width: auto;
		padding: 10px 12px;
	}

	.apv-header__toggle {
		display: inline-flex;
	}

	.apv-header__nav {
		display: none;
		flex-basis: 100%;
	}

	.apv-header.is-open .apv-header__nav {
		display: block;
	}

	.apv-header__nav ul {
		flex-direction: column;
		align-items: stretch;
		width: auto;
		padding: 8px 0 24px;
	}

	.apv-header__nav a {
		padding: 12px 8px;
		font-size: 16px;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}

	.apv-header--overlay {
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 16px);
	}

	.apv-header.is-solid .apv-header__bar {
		padding: 8px clamp(16px, 4vw, 24px);
	}

	.apv-header--overlay.is-open:not(.is-solid) .apv-header__bar {
		background: var(--wp--preset--color--dark-blue);
	}
}

/* ------------------------------------------------------------------ *
 * Shared section building blocks
 * ------------------------------------------------------------------ */

.apv-main--landing .apv-section {
	margin-top: var(--apv-section-gap);
}

.apv-main--landing > .wp-block-post-content > .apv-hero + .apv-section {
	margin-top: clamp(64px, 9vw, 118px);
}

.apv-section-header {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--wp--preset--color--mid-grey);
}

.apv-eyebrow {
	color: var(--wp--preset--color--rag-red);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 800;
	line-height: normal;
	text-transform: uppercase;
}

.apv-section-title {
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--h-3);
	font-weight: 600;
	line-height: normal;
}

.apv-statement {
	color: var(--wp--preset--color--dark-green-1);
	font-size: var(--wp--preset--font-size--h-2);
	line-height: normal;
	text-align: center;
}

.apv-lead {
	font-size: var(--wp--preset--font-size--emphasis);
	font-weight: 300;
	line-height: 32px;
}

.apv-lead + .apv-lead {
	margin-top: 14px !important;
}

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */

.wp-block-button[class*="is-style-apv-"] {
	box-sizing: border-box;
	border-radius: var(--apv-radius);
}

.wp-block-button[class*="is-style-apv-"] .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	box-sizing: border-box;
	width: 100%;
	border-radius: 6px;
	font-family: var(--wp--preset--font-family--source-sans);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: filter 0.2s, background-color 0.2s, transform 0.2s;
}

.wp-block-button[class*="is-style-apv-primary"] .wp-block-button__link::after {
	content: "";
	flex: 0 0 28px;
	height: 28px;
	background: url("../icons/arrow-right-dark.svg") center / 28px no-repeat;
	transition: transform 0.2s var(--apv-ease);
}

.wp-block-button[class*="is-style-apv-primary"] .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

/* Bright gradient ("Large Icon Primary button" on dark backgrounds). */
.wp-block-button.is-style-apv-primary-light {
	padding: 4px;
	border: 1px solid var(--wp--preset--color--white);
}

.wp-block-button.is-style-apv-primary-light .wp-block-button__link {
	min-height: 54px;
	padding: 14px 16px;
	color: var(--wp--preset--color--off-black);
	background: linear-gradient(0deg, #12bdc5 0%, #16e7f2 125%);
	font-size: 20px;
}

.wp-block-button.is-style-apv-primary-light .wp-block-button__link:hover {
	filter: brightness(1.06);
}

/* Teal ("Large Icon Primary button" on white). */
.wp-block-button.is-style-apv-primary {
	width: 260px;
	max-width: 100%;
	padding: 4px;
	border: 1px solid var(--wp--preset--color--dark-green-2);
}

.wp-block-button.is-style-apv-primary .wp-block-button__link {
	min-height: 54px;
	padding: 14px 16px;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--dark-green-1);
	font-size: 20px;
}

.wp-block-button.is-style-apv-primary .wp-block-button__link::after {
	background-image: url("../icons/arrow-right-white.svg");
}

.wp-block-button.is-style-apv-primary .wp-block-button__link:hover {
	background: var(--wp--preset--color--dark-green-2);
}

/* Secondary / tertiary form buttons (About section). */
.wp-block-button.is-style-apv-secondary,
.wp-block-button.is-style-apv-tertiary {
	padding: 4px;
	border: 1px solid var(--wp--preset--color--mid-grey);
}

.wp-block-button.is-style-apv-secondary .wp-block-button__link,
.wp-block-button.is-style-apv-tertiary .wp-block-button__link {
	padding: 16px;
	color: var(--wp--preset--color--off-black);
	font-size: 18px;
}

.wp-block-button.is-style-apv-secondary .wp-block-button__link {
	min-width: 198px;
	background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), var(--wp--preset--color--dark-green-1);
}

.wp-block-button.is-style-apv-tertiary .wp-block-button__link {
	min-width: 196px;
	background: var(--wp--preset--color--grey-border);
	font-size: 16px;
}

.wp-block-button.is-style-apv-secondary .wp-block-button__link:hover,
.wp-block-button.is-style-apv-tertiary .wp-block-button__link:hover {
	filter: brightness(0.96);
}

/* Ghost ("Watch how it works"). */
.wp-block-button.is-style-apv-ghost {
	border: 1px solid var(--wp--preset--color--white);
}

.wp-block-button.is-style-apv-ghost .wp-block-button__link {
	gap: 8px;
	padding: 8px 24px;
	color: var(--wp--preset--color--white);
	background: transparent;
	font-size: 16.25px;
	line-height: 24px;
}

.wp-block-button.is-style-apv-ghost .wp-block-button__link::before {
	content: "";
	flex: 0 0 24px;
	height: 24px;
	background: url("../icons/play-circle.svg") center / 24px no-repeat;
}

.wp-block-button.is-style-apv-ghost .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */

.apv-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	min-height: 853px;
	padding-top: clamp(150px, 20.4vw, 261px);
	padding-bottom: 77px;
	color: var(--wp--preset--color--white);
	text-align: center;
	background: #0c1a1b url("../images/hero-bg.webp") center / cover no-repeat;
}

/* Figma stacks a hue layer (#12BDC5, blend: hue) and a 70% black layer over the photo. */
.apv-hero::before,
.apv-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.apv-hero::before {
	background: var(--apv-teal);
	mix-blend-mode: hue;
}

.apv-hero::after {
	background: rgba(0, 0, 0, 0.7);
}

.apv-hero > * {
	width: 100%;
	max-width: 1081px;
}

.apv-hero__kicker {
	color: var(--wp--preset--color--apervia-highlight);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--emphasis);
	font-weight: 300;
	line-height: normal;
}

.apv-hero__title {
	margin-top: 11px !important;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--hero);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.44;
	text-shadow: 1px 4px 12px rgba(0, 0, 0, 0.25);
}

.apv-hero__lede {
	margin-top: 21px !important;
	color: var(--wp--preset--color--apervia-highlight);
	font-size: var(--wp--preset--font-size--emphasis);
	font-weight: 500;
	line-height: 32px;
}

.apv-hero__body {
	max-width: 647px;
	margin-top: 33px !important;
	padding-bottom: 44px;
	font-size: 18px;
	line-height: 24px;
}

.apv-hero__body p + p {
	margin-top: 14px;
}

.apv-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	max-width: 512px;
	margin-top: 21px !important;
}

.apv-hero__actions .is-style-apv-primary-light {
	width: 100%;
}

.apv-hero__scroll {
	position: absolute;
	bottom: 18px;
	left: 50%;
	width: 48px;
	transform: translateX(-50%);
}

.apv-hero__scroll a {
	display: block;
	width: 48px;
	height: 48px;
	overflow: hidden;
	color: transparent;
	font-size: 0;
	background: url("../icons/arrow-down.svg") center / 48px no-repeat;
	animation: apv-bob 2.4s ease-in-out infinite;
}

@keyframes apv-bob {
	50% {
		transform: translateY(6px);
	}
}

/* ------------------------------------------------------------------ *
 * The problem
 * ------------------------------------------------------------------ */

.apv-problem {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.apv-problem__body {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 848px;
	margin-inline: auto;
}

.apv-problem__lead {
	margin-top: 30px !important;
	text-align: center;
}

.apv-callout {
	margin-top: 37px;
	padding: 32px;
	color: var(--wp--preset--color--off-black);
	background: var(--wp--preset--color--green-tint);
	border-radius: var(--apv-radius);
	line-height: 20px;
}

.apv-callout p + p {
	margin-top: 14px;
}

/* ------------------------------------------------------------------ *
 * Features
 * ------------------------------------------------------------------ */

.apv-features {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 96px;
}

.apv-features > .apv-section-header {
	align-self: stretch;
}

/* Oversized outline icons drifting in the page margins (desktop only). */
.apv-features::before {
	content: "";
	position: absolute;
	top: -2px;
	left: 50%;
	z-index: -1;
	width: 1280px;
	height: 1600px;
	margin-left: -640px;
	pointer-events: none;
	background:
		url("../images/deco-thumb.svg") -90px 364px / 393px no-repeat,
		url("../images/deco-check.svg") 1019px 711px / 360px no-repeat,
		url("../images/deco-mark.svg") -75px 1142px / 271px 325px no-repeat;
}

.apv-features__intro {
	display: flex;
	align-items: flex-end;
	gap: 20px;
	max-width: 849px;
}

.apv-features__headline {
	flex-shrink: 0;
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--h-2);
	line-height: normal;
	text-align: right;
}

.apv-features__intro p {
	width: 507px;
	line-height: 20px;
}

.apv-features__cards {
	display: flex;
	flex-direction: column;
	gap: 48px;
	width: 100%;
	max-width: 910px;
}

.apv-feature-card {
	display: flex;
	flex-direction: column;
	padding: 32px;
	background: rgba(243, 252, 252, 0.4);
	border-radius: var(--apv-radius);
	line-height: 20px;
}

.apv-feature-card:nth-child(2) {
	background: rgba(243, 252, 252, 0.6);
}

.apv-feature-card:nth-child(3) {
	background: var(--wp--preset--color--green-tint);
}

.apv-feature-card__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-bottom: 32px;
	padding-bottom: 12px;
	text-align: center;
	border-bottom: 1px solid var(--wp--preset--color--off-black-green);
}

.apv-feature-card__kicker {
	color: var(--wp--preset--color--dark-blue);
	font-family: var(--wp--preset--font-family--display);
	font-size: 18px;
	font-weight: 700;
	line-height: normal;
	text-transform: uppercase;
}

.apv-feature-card__title {
	color: var(--wp--preset--color--off-black);
	font-size: var(--wp--preset--font-size--h-2);
	line-height: normal;
}

.apv-feature-card ul {
	margin: 14px 0 !important;
	padding-left: 24px;
}

.apv-feature-card li + li {
	margin-top: 4px;
}

.apv-tech-detail {
	font-size: 14px;
}

/* ------------------------------------------------------------------ *
 * Comparison table
 * ------------------------------------------------------------------ */

.apv-main--landing .apv-compare-section {
	margin-top: 54px;
}

.apv-compare__title {
	box-sizing: border-box;
	min-height: 80px;
	padding: 10px 10px 24px;
	color: var(--wp--preset--color--curve-charcoal);
	font-size: var(--wp--preset--font-size--h-4);
	line-height: normal;
	border-bottom: 1px solid rgba(204, 204, 204, 0.5);
	display: flex;
	align-items: center;
}

.wp-block-table.apv-compare {
	margin-top: 32px !important;
	overflow: visible;
}

.apv-compare table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 4px;
	margin: -4px;
	width: calc(100% + 8px);
	table-layout: fixed;
}

.apv-compare th,
.apv-compare td {
	box-sizing: border-box;
	padding: 16px;
	border: 0;
	border-radius: var(--apv-radius);
	text-align: center;
	vertical-align: middle;
}

.apv-compare thead {
	border: 0;
}

.apv-compare thead th {
	height: 86px;
	color: var(--wp--preset--color--off-black);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-4);
	font-weight: 600;
	line-height: normal;
}

.apv-compare thead th:first-child {
	width: 235px;
	background: transparent;
}

.apv-compare thead th:nth-child(2) {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--grey-border);
}

/* The Apervia column header keeps its text for screen readers and shows the logo. */
.apv-compare thead th:nth-child(3) {
	color: transparent;
	font-size: 0;
	background:
		url("../images/compare-logo-wordmark.svg") calc(50% + 26.6px) 50% / 86.8px 25.45px no-repeat,
		url("../images/compare-logo-mark.svg") calc(50% - 51.1px) 50% / 37.74px 37.81px no-repeat,
		var(--wp--preset--color--dark-green-2);
}

.apv-compare tbody td {
	height: 75px;
	line-height: 20px;
}

.apv-compare tbody td:first-child {
	padding-inline: 12px;
	color: var(--wp--preset--color--dark-blue);
	font-family: var(--wp--preset--font-family--display);
	font-size: 21px;
	font-weight: 600;
	line-height: normal;
	text-align: right;
	background: #f9f7f7;
}

.apv-compare tbody td:nth-child(2) {
	color: var(--wp--preset--color--grey-text);
	background: rgba(249, 247, 247, 0.45);
}

.apv-compare tbody td:nth-child(3) {
	color: var(--wp--preset--color--off-black);
	font-size: 18px;
	font-weight: 500;
	background: var(--wp--preset--color--green-tint);
}

/* ------------------------------------------------------------------ *
 * How it works
 * ------------------------------------------------------------------ */

.apv-how {
	display: flex;
	flex-direction: column;
	gap: 52px;
}

.apv-steps {
	display: flex;
	margin-top: -20px;
}

.apv-step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 36px;
	box-sizing: border-box;
	flex: 0 0 363px;
	min-height: 410px;
	margin-right: -12px;
	padding: 64px 32px 8px;
	background: var(--wp--preset--color--green-tint);
	border: 8px solid var(--wp--preset--color--white);
	border-radius: var(--apv-radius-lg);
	filter: drop-shadow(2px 12px 16px rgba(0, 0, 0, 0.13));
}

.apv-step:last-child {
	margin-right: 0;
}

.apv-step__head {
	display: flex;
	align-items: flex-start;
	gap: 22px;
}

.apv-step:last-child .apv-step__head {
	align-items: center;
}

.apv-step__number {
	flex-shrink: 0;
	color: var(--wp--preset--color--dark-blue);
	font-family: var(--wp--preset--font-family--display);
	font-size: 90px;
	font-weight: 300;
	line-height: 0.7;
	padding-top: 6px;
}

.apv-step__title {
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--h-3);
	line-height: normal;
}

.apv-step > p {
	font-size: var(--wp--preset--font-size--emphasis);
	font-weight: 500;
	line-height: 30px;
}

/* ------------------------------------------------------------------ *
 * What's included
 * ------------------------------------------------------------------ */

.apv-included {
	display: flex;
	flex-direction: column;
	gap: 52px;
}

.apv-included__statement {
	max-width: 829px;
	margin-inline: auto;
	color: var(--wp--preset--color--off-black-green);
	font-size: clamp(30px, 3.4vw, 43px);
	line-height: normal;
	text-align: center;
	text-underline-position: from-font;
}

.apv-included__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 103px 75px;
	margin-top: 51px;
}

.apv-included__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	box-sizing: border-box;
	width: 302px;
}

.apv-included__item:nth-child(n + 4) {
	width: 352px;
	margin-inline: 9.5px;
}

.apv-icon-badge {
	flex-shrink: 0;
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	padding: 8px;
	background: var(--apv-teal);
	border-radius: 24px;
}

.apv-icon-badge img {
	width: 32px;
	height: 32px;
}

.apv-included__text {
	flex: 1;
	padding-left: 12px;
	border-left: 1px solid var(--wp--preset--color--grey-border);
	line-height: 20px;
}

.apv-included__title {
	margin-bottom: 20px !important;
	color: var(--wp--preset--color--black);
	font-size: 18px;
	line-height: 20px;
}

/* ------------------------------------------------------------------ *
 * Use case (deal board)
 * ------------------------------------------------------------------ */

.apv-usecase {
	display: flex;
	flex-direction: column;
	gap: 73px;
}

.apv-usecase__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 708px);
	column-gap: 41px;
	align-items: start;
}

.apv-usecase__image {
	justify-self: end;
	width: 678px;
	max-width: none;
	margin-top: -25px !important;
}

.apv-usecase__image img {
	width: 678px;
	aspect-ratio: 678 / 381;
	object-fit: cover;
	border-radius: var(--apv-radius);
	box-shadow: var(--wp--preset--shadow--floating-panel);
}

.apv-usecase__text {
	display: flex;
	flex-direction: column;
}

.apv-usecase__title {
	margin-bottom: 48px !important;
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--h-4);
	line-height: normal;
}

/* ------------------------------------------------------------------ *
 * Personas
 * ------------------------------------------------------------------ */

.apv-personas-section {
	display: flex;
	flex-direction: column;
	gap: 52px;
}

.apv-personas {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--wp--preset--color--mid-grey);
	border-radius: var(--apv-radius);
	overflow: hidden;
}

.apv-personas__main {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 32px;
	padding: 32px;
	background: rgba(243, 252, 252, 0.6);
	border-radius: var(--apv-radius);
}

.apv-personas__main .apv-lead + .apv-lead {
	margin-top: -18px !important;
}

.apv-personas__head {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

.apv-personas__mark {
	flex-shrink: 0;
}

.apv-personas__mark img {
	width: 53.37px;
	height: 64px;
}

.apv-personas__title {
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--h-4);
	line-height: normal;
}

.apv-personas__list {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 0 0 474.5px;
	border-left: 1px solid var(--wp--preset--color--mid-grey);
}

.apv-persona {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	flex: 1;
	padding: 24px 32px;
	transition: background-color 0.25s;
}

.apv-persona + .apv-persona {
	border-top: 1px solid var(--wp--preset--color--mid-grey);
}

.apv-persona__icon {
	flex-shrink: 0;
	width: 32px;
	transition: width 0.3s var(--apv-ease);
}

.apv-persona__icon img {
	width: 100%;
	height: auto;
}

.apv-persona:hover .apv-persona__icon {
	width: 72px;
}

.apv-persona__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--wp--preset--color--off-black);
	line-height: 20px;
}

.apv-persona__title {
	color: var(--wp--preset--color--off-black-green);
	font-size: var(--wp--preset--font-size--h-5);
	line-height: normal;
}

/* ------------------------------------------------------------------ *
 * Room to grow
 * ------------------------------------------------------------------ */

.apv-grow {
	display: flex;
	flex-direction: column;
	gap: 52px;
}

.apv-grow__body {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 291px;
}

.apv-grow__text {
	position: relative;
	z-index: 1;
	width: 464px;
	flex-shrink: 0;
}

.apv-grow__headline {
	margin-bottom: 32px !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-5);
	font-weight: 600;
	line-height: 32px;
}

.apv-logo-cards {
	position: relative;
	flex: 0 0 507px;
	height: 291px;
}

.apv-logo-cards__blur {
	position: absolute;
	width: 328px;
	height: 328px;
	max-width: none;
	pointer-events: none;
}

/* Positions are relative to the 1064px row in Figma; the card cluster starts at x=557. */
.apv-logo-cards__blur--1 {
	left: 192px;
	top: 24px;
}

.apv-logo-cards__blur--2 {
	left: 45.5px;
	top: 81.8px;
	transform: rotate(-19.58deg);
}

.apv-logo-card {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	width: 200px;
	padding: 24px 16px 16px;
	color: var(--wp--preset--color--off-black);
	font-family: var(--wp--preset--font-family--display);
	font-size: 18px;
	font-weight: 600;
	line-height: normal;
	background: var(--wp--preset--color--white);
	border: 4px solid #f7f8f9;
	border-radius: var(--apv-radius);
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
	transition: opacity 0.6s var(--apv-ease), translate 0.6s var(--apv-ease);
}

.apv-logo-card img,
.apv-lovable {
	width: 42px;
	height: 42px;
}

.apv-logo-card--base44 {
	left: 15.76px;
	top: 31px;
	transform: rotate(-21deg);
	transform-origin: 50% 50%;
	margin-top: 24.4px;
}

.apv-logo-card--lovable {
	left: 154px;
	top: 0;
	transition-delay: 0.1s;
}

.apv-logo-card--v0 {
	left: 291.6px;
	top: 55px;
	transform: rotate(20.57deg);
	margin-top: 24px;
	transition-delay: 0.2s;
}

/* Default variant in Figma: cards hidden and offset; "Variant2" once in view. */
.apv-logo-cards.is-pending .apv-logo-card {
	opacity: 0;
}

.apv-logo-cards.is-pending .apv-logo-card--base44 {
	translate: 0 -10px;
}

.apv-logo-cards.is-pending .apv-logo-card--v0 {
	translate: 0 10px;
}

/* Lovable's gradient heart is four blurred blobs clipped by the heart shape. */
.apv-lovable {
	position: relative;
	display: block;
	overflow: clip;
}

.apv-lovable__layer {
	position: absolute;
	-webkit-mask: url("../images/lovable-mask.svg") no-repeat;
	mask: url("../images/lovable-mask.svg") no-repeat;
	-webkit-mask-size: 28.736px 30px;
	mask-size: 28.736px 30px;
}

.apv-lovable__layer img {
	position: absolute;
	display: block;
	width: auto;
	height: auto;
	max-width: none;
}

.apv-lovable__layer--1 {
	inset: -13.19% -11.5% -19.95% -23.82%;
	-webkit-mask-position: 6.848px 3.957px;
	mask-position: 6.848px 3.957px;
}

.apv-lovable__layer--1 img {
	inset: -19.16% -18.85%;
	width: calc(100% + 37.7%);
	height: calc(100% + 38.32%);
}

.apv-lovable__layer--2 {
	inset: -49.72% -37.93% 16.58% -35.38%;
	-webkit-mask-position: 10.171px 14.917px;
	mask-position: 10.171px 14.917px;
}

.apv-lovable__layer--2 img {
	inset: -19.16% -14.72%;
	width: calc(100% + 29.44%);
	height: calc(100% + 38.32%);
}

.apv-lovable__layer--3 {
	inset: -54.14% -33.07% 37.22% -2.25%;
	-webkit-mask-position: 0.646px 16.242px;
	mask-position: 0.646px 16.242px;
}

.apv-lovable__layer--3 img {
	inset: -21.81% -18.85%;
	width: calc(100% + 37.7%);
	height: calc(100% + 43.62%);
}

.apv-lovable__layer--4 {
	inset: -23.2% 6.83% 43.14% 11.79%;
	-webkit-mask-position: -3.39px 6.961px;
	mask-position: -3.39px 6.961px;
}

.apv-lovable__layer--4 img {
	inset: -31.85% -31.34%;
	width: calc(100% + 62.68%);
	height: calc(100% + 63.7%);
}

/* ------------------------------------------------------------------ *
 * Pricing
 * ------------------------------------------------------------------ */

.apv-pricing {
	display: flex;
	flex-direction: column;
	gap: 52px;
}

.apv-pricing__body {
	display: flex;
	align-items: flex-start;
	gap: 54px;
}

.apv-pricing__image {
	flex: 0 0 384px;
}

.apv-pricing__image img {
	width: 384px;
	aspect-ratio: 384 / 297.05;
}

.apv-pricing__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.apv-pricing__title {
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--h-4);
	line-height: normal;
}

.apv-pricing__actions {
	margin-top: 8px;
}

/* ------------------------------------------------------------------ *
 * About (full-bleed on the grid pattern)
 * ------------------------------------------------------------------ */

.apv-main--landing .apv-about {
	margin-top: clamp(72px, 8.6vw, 110px);
}

.apv-about {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 52px;
	padding: 64px clamp(16px, 4vw, 24px) 128px;
	border-bottom: 1px solid #66779b;
}

.apv-about::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.4;
	background: url("../images/about-pattern.png") top left / 80px 160px repeat;
	pointer-events: none;
}

.apv-about > * {
	box-sizing: border-box;
	width: 100%;
	max-width: 1064px;
}

.apv-about__intro {
	display: flex;
	align-items: flex-start;
	gap: 42px;
	padding: 32px;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 12px;
}

.apv-about__logo {
	display: flex;
	flex-direction: column;
	gap: 12.4px;
	flex: 0 0 97.18px;
}

.apv-about__logo-mark img {
	width: 97.18px;
	height: 97.17px;
}

.apv-about__logo-text img {
	width: 97.21px;
	height: 12.49px;
}

.apv-about__strap {
	margin-bottom: 14px !important;
	font-size: var(--wp--preset--font-size--emphasis);
	font-weight: 600;
	line-height: 32px;
}

.apv-about__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 456px));
	justify-content: space-between;
	gap: 16px 24px;
	padding: 16px 32px;
	margin-top: -10px;
}

.apv-about__item {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 32px 24px;
	line-height: 20px;
}

.apv-about__title {
	color: var(--wp--preset--color--curve-red);
	font-size: var(--wp--preset--font-size--h-5);
	line-height: normal;
}

.apv-about__actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: -10px;
}

.apv-accreditations {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.apv-accreditations__title {
	color: var(--wp--preset--color--curve-charcoal);
	font-size: var(--wp--preset--font-size--h-4);
	line-height: normal;
}

.apv-accreditations__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.apv-accreditations__logo img {
	width: auto;
	height: 112.5px;
	object-fit: contain;
}

.apv-accreditations__logo:nth-child(1) img { width: 112.5px; height: 67.5px; }
.apv-accreditations__logo:nth-child(2) img { width: 93.75px; height: 112.5px; }
.apv-accreditations__logo:nth-child(3) img { width: 112.5px; height: 78.75px; }
.apv-accreditations__logo:nth-child(4) img { width: 103.13px; height: 112.5px; }
.apv-accreditations__logo:nth-child(5) img { width: 141.19px; height: 100.69px; }
.apv-accreditations__logo:nth-child(6) img { width: 112.5px; height: 112.5px; mix-blend-mode: multiply; }

/* ------------------------------------------------------------------ *
 * FAQs
 * ------------------------------------------------------------------ */

.apv-main--landing .apv-faq {
	margin-top: 96px;
}

.apv-faq {
	display: flex;
	flex-direction: column;
	gap: 52px;
}

.apv-faq__list {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 848px;
	width: 100%;
	margin: 30px auto 0;
}

.apv-faq__item summary {
	display: flex;
	align-items: center;
	gap: 72px;
	padding: 4px 0;
	color: var(--wp--preset--color--dark-green-2);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-3);
	font-weight: 600;
	line-height: normal;
	list-style: none;
	cursor: pointer;
}

.apv-faq__item summary::-webkit-details-marker {
	display: none;
}

.apv-faq__item summary::before {
	content: "";
	flex: 0 0 36px;
	height: 36px;
	box-sizing: border-box;
	background: var(--wp--preset--color--green-tint) url("../icons/icon-add.svg") center / 25.41px no-repeat;
	border-radius: 18px;
	transition: transform 0.25s var(--apv-ease);
}

.apv-faq__item[open] summary::before {
	transform: rotate(45deg);
}

.apv-faq__item summary:hover {
	color: var(--wp--preset--color--off-black-green);
}

.apv-faq__item > :not(summary) {
	margin: 16px 0 0 108px;
	color: var(--wp--preset--color--off-black);
	line-height: 20px;
}

/* ------------------------------------------------------------------ *
 * Get started CTA
 * ------------------------------------------------------------------ */

.apv-main--landing .apv-cta {
	margin-top: 96px;
}

.apv-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 370px;
	padding: 32px 64px;
	background: #02090b url("../images/cta-bg.webp") center / cover no-repeat;
	border-radius: var(--apv-radius);
}

.apv-cta__panel {
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding: 32px 64px;
	color: var(--wp--preset--color--white);
	text-align: center;
	background: rgba(0, 0, 0, 0.05);
	-webkit-backdrop-filter: blur(37px);
	backdrop-filter: blur(37px);
}

.apv-cta__title {
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--h-1);
	line-height: normal;
	text-shadow: 1px 4px 12px rgba(0, 0, 0, 0.08);
}

.apv-cta__text {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-5);
	font-weight: 600;
	line-height: normal;
}

.apv-cta__actions {
	width: 512px;
	max-width: 100%;
	margin-top: 21px;
}

.apv-cta__actions .wp-block-button {
	width: 100%;
}

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */

.apv-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	margin: 57px auto 0;
	padding: 0 clamp(16px, 4vw, 24px) 48px;
	color: var(--wp--preset--color--grey-text);
	font-size: 13px;
	letter-spacing: 0.05em;
	line-height: 24px;
}

.apv-footer :where(p, figure) {
	margin: 0;
}

.apv-footer__text {
	padding: 0 32px 0 10px;
	border-right: 1px solid var(--wp--preset--color--dark-green-1);
}

.apv-footer__logo img {
	display: block;
	width: 85.98px;
	height: 25.21px;
	margin-inline: 26.35px;
}

/* ------------------------------------------------------------------ *
 * Inner pages
 * ------------------------------------------------------------------ */

.apv-main--page {
	padding-block: clamp(48px, 7vw, 96px);
}

.apv-page-title {
	margin-bottom: 32px;
	color: var(--wp--preset--color--dark-blue);
	font-size: var(--wp--preset--font-size--h-1);
}

.apv-main--page .wp-block-post-content > * + * {
	margin-top: 1em;
}

.apv-hubspot-form {
	min-height: 320px;
}

/* ------------------------------------------------------------------ *
 * Tablet (inferred, not in Figma)
 * ------------------------------------------------------------------ */

@media (max-width: 1199px) {
	.apv-features::before {
		display: none;
	}

	.apv-usecase__image {
		margin-top: 0 !important;
	}
}

@media (max-width: 1099px) {
	.apv-hero {
		min-height: 0;
		padding-bottom: 120px;
	}

	.apv-features {
		gap: 64px;
	}

	.apv-features__intro {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.apv-features__headline {
		text-align: center;
	}

	.apv-features__intro p {
		width: auto;
		max-width: 600px;
	}

	.apv-steps {
		flex-wrap: wrap;
		justify-content: center;
		gap: 24px;
		margin-top: 0;
	}

	.apv-step {
		flex: 1 1 300px;
		max-width: 420px;
		min-height: 0;
		margin-right: 0;
		padding: 40px 28px 32px;
	}

	.apv-included__grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 56px 40px;
		margin-top: 16px;
	}

	.apv-included__item,
	.apv-included__item:nth-child(n + 4) {
		width: auto;
		margin: 0;
	}

	.apv-usecase {
		gap: 40px;
	}

	.apv-usecase__body {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 40px;
	}

	.apv-usecase__image,
	.apv-usecase__image img {
		justify-self: stretch;
		width: 100%;
	}

	.apv-personas {
		flex-direction: column;
	}

	.apv-personas__list {
		flex-basis: auto;
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--mid-grey);
	}

	.apv-grow__body {
		flex-direction: column;
		align-items: flex-start;
	}

	.apv-grow__text {
		width: auto;
		max-width: 640px;
	}

	.apv-logo-cards {
		flex-basis: auto;
		align-self: center;
		width: 507px;
		max-width: 100%;
	}

	.apv-pricing__image {
		flex-basis: 300px;
	}

	.apv-pricing__image img {
		width: 300px;
	}

	.apv-about__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-inline: 0;
	}

	.apv-accreditations__logos {
		justify-content: center;
		gap: 40px 56px;
	}
}

/* ------------------------------------------------------------------ *
 * Mobile (inferred, not in Figma)
 * ------------------------------------------------------------------ */

@media (max-width: 699px) {
	.apv-hero {
		background-image: url("../images/hero-bg-mobile.webp");
		padding-top: 128px;
		padding-bottom: 96px;
	}

	.apv-hero__title {
		line-height: 1.15;
		margin-top: 16px !important;
	}

	.apv-hero__lede {
		line-height: 28px;
	}

	.apv-hero__body {
		margin-top: 20px !important;
		padding-bottom: 16px;
		font-size: 17px;
	}

	.wp-block-button.is-style-apv-primary-light .wp-block-button__link {
		font-size: 17px;
		gap: 8px;
		padding-inline: 12px;
	}

	.wp-block-button[class*="is-style-apv-primary"] .wp-block-button__link::after {
		flex-basis: 22px;
		height: 22px;
		background-size: 22px;
	}

	.apv-problem {
		gap: 40px;
	}

	.apv-problem__lead {
		margin-top: 20px !important;
		text-align: left;
	}

	.apv-statement {
		text-align: left;
	}

	.apv-callout,
	.apv-feature-card {
		padding: 24px 20px;
	}

	.apv-feature-card__head {
		margin-bottom: 24px;
	}

	.apv-features__intro,
	.apv-features__headline {
		align-items: flex-start;
		text-align: left;
	}

	/* Comparison: each row becomes a card; header row sticks under the nav. */
	.apv-compare table,
	.apv-compare thead,
	.apv-compare tbody,
	.apv-compare tr {
		display: block;
	}

	.apv-compare table {
		margin: 0;
		width: 100%;
	}

	.apv-compare tr {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px;
		margin-bottom: 12px;
	}

	.apv-compare thead {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--apv-header-h) - 4px);
		z-index: 2;
		padding-block: 4px;
		background: var(--wp--preset--color--white);
	}

	.apv-compare thead tr {
		margin-bottom: 0;
	}

	.apv-compare thead th:first-child {
		display: none;
	}

	.apv-compare thead th {
		height: 64px;
		padding: 8px;
		font-size: 17px;
	}

	.apv-compare thead th:nth-child(3) {
		background-size: 64px 18.8px, 27.8px 27.9px, auto;
		background-position: calc(50% + 19.5px) 50%, calc(50% - 37.6px) 50%, 0 0;
	}

	.apv-compare tbody td {
		display: flex;
		align-items: center;
		justify-content: center;
		height: auto;
		min-height: 64px;
		padding: 12px;
		font-size: 15px;
	}

	.apv-compare tbody td:first-child {
		grid-column: 1 / -1;
		justify-content: flex-start;
		min-height: 0;
		font-size: 19px;
		text-align: left;
	}

	.apv-compare tbody td:nth-child(3) {
		font-size: 16px;
	}

	.apv-how,
	.apv-included,
	.apv-pricing,
	.apv-personas-section,
	.apv-grow,
	.apv-faq {
		gap: 36px;
	}

	.apv-step__number {
		font-size: 72px;
	}

	.apv-included__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.apv-included__title {
		margin-bottom: 8px !important;
	}

	.apv-personas__main {
		padding: 24px 20px;
	}

	.apv-personas__head {
		gap: 16px;
	}

	.apv-personas__mark img {
		width: 40px;
		height: 48px;
	}

	.apv-persona {
		padding: 20px;
	}

	.apv-persona:hover .apv-persona__icon {
		width: 32px;
	}

	/* Keep the desktop geometry and scale the whole cluster down to fit. */
	.apv-logo-cards {
		width: 507px;
		max-width: none;
		height: 291px;
		transform: scale(0.68);
		transform-origin: 50% 0;
		margin-bottom: -93px;
	}

	.apv-pricing__body {
		flex-direction: column;
		gap: 32px;
	}

	.apv-pricing__image {
		flex-basis: auto;
		align-self: center;
	}

	.apv-pricing__image img {
		width: 260px;
	}

	.apv-pricing__actions .is-style-apv-primary {
		width: 100%;
	}

	.apv-about {
		padding-top: 48px;
		padding-bottom: 72px;
	}

	.apv-about__intro {
		flex-direction: column;
		gap: 24px;
		padding: 24px 20px;
	}

	.apv-about__logo {
		flex-basis: auto;
	}

	.apv-about__logo-mark img {
		width: 64px;
		height: 64px;
	}

	.apv-about__logo-text img {
		width: 64px;
		height: 8.2px;
	}

	.apv-about__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding: 0;
	}

	.apv-about__item {
		padding: 20px 0;
	}

	.apv-about__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.apv-accreditations {
		gap: 32px;
	}

	.apv-accreditations__logos {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		justify-items: center;
		gap: 24px 16px;
	}

	.apv-accreditations__logo img {
		max-width: 100%;
		object-fit: contain;
	}

	.apv-faq__list {
		gap: 20px;
		margin-top: 0;
	}

	.apv-faq__item summary {
		align-items: flex-start;
		gap: 16px;
		font-size: 20px;
	}

	.apv-faq__item summary::before {
		flex-basis: 32px;
		height: 32px;
		background-size: 22px;
	}

	.apv-faq__item > :not(summary) {
		margin-left: 48px;
	}

	.apv-cta {
		min-height: 0;
		padding: 24px 12px;
	}

	.apv-cta__panel {
		padding: 28px 16px;
	}

	.apv-footer {
		flex-direction: column-reverse;
		gap: 16px;
		text-align: center;
	}

	.apv-footer__text {
		padding: 16px 0 0;
		border-right: 0;
		border-top: 1px solid var(--wp--preset--color--dark-green-1);
	}
}
