/*
 * Home v2 — template page-home-v2, patterns home-v2-*, template parts header-v2 / footer-v2.
 * Ported from the design handoff (index2.html). Class names keep the design's `hp-*` naming so the CSS
 * stays traceable to the source. Content, structure and images live in native core blocks (patterns);
 * this file holds tokens, decoration, exact positioning and the 992px desktop/mobile switch.
 * Assembled from css-parts/*.css — edit the parts, not the built file.
 */

/* ---------- Tokens ---------- */
:root {
	--hp-ink: #14141a;
	--hp-text: #40424d;
	--hp-muted: #6e7180;
	--hp-pink: #c36e8b;
	--hp-ice: #f5f6fc;
	--hp-mist: #edeff7;
	--hp-line: #d3d6e0;
	--hp-gray: #bcbfcc;
	--hp-violet: #6b2dff;
	--hp-rose: #db7c9c;
	--hp-purple: #4a1fb0;
	--hp-font: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
	/* Figma "line-height: normal" for Helvetica Neue measures ~0.985 */
	--hp-lh-normal: 0.985;
}

/* ---------- Scope + block resets ----------
 * .hp-scope is on the template's <main> (.hp-root), the header part wrapper (.hp-header) and the footer (.hp-foot).
 * .lb-header (the Labs Beta template's older header wrapper, kept in a saved Site Editor copy) counts as the same scope. */
:is(.hp-scope, .lb-header) {
	color: var(--hp-ink);
	font-family: var(--hp-font);
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
}

.hp-root {
	background: #fff;
}

/* Core images: the class sits on the <figure>; the design's images are often larger than their box. */
:is(.hp-scope, .lb-header) .wp-block-image {
	margin: 0;
}

:is(.hp-scope, .lb-header) .wp-block-image img {
	display: block;
	max-width: none;
}

/* .hp-fill on a <figure>: the img fills the figure and inherits its object-fit / object-position. */
:is(.hp-scope, .lb-header) .hp-fill img {
	width: 100%;
	height: 100%;
	object-fit: inherit;
	object-position: inherit;
}

/* Core buttons: neutralise WordPress' default pill so component rules start from a blank link/button. */
/* :where() keeps this reset at (0,1,0) so component rules like `.hp-cmp__pill { gap: 20px }` can override it */
:where(.hp-scope, .lb-header) .wp-block-buttons {
	margin: 0;
	gap: 0;
}

:is(.hp-scope, .lb-header) .wp-block-button__link {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	text-decoration: none;
}

:is(.hp-scope, .lb-header) button {
	font-family: inherit;
	cursor: pointer;
}

:is(.hp-scope, .lb-header) :focus-visible {
	outline: 2px solid var(--hp-violet);
	outline-offset: 3px;
}

:is(.hp-scope, .lb-header) a,
:is(.hp-scope, .lb-header) button {
	transition: filter 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hp-nav__cta:hover,
.hp-exp__cta:hover,
.hp-cmp__run:hover,
.hp-foot__submit:hover,
.hp-exp__arrow:not(.is-disabled):hover {
	filter: brightness(1.1);
}

.hp-hero__btn:hover,
.hp-exp__arrow:not(.is-disabled):hover {
	transform: translateY(-1px);
}

.hp-nav__links a:hover {
	color: var(--hp-pink);
}

.hp-cmp__run:active,
.hp-exp__cta:active {
	transform: scale(0.98);
}

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

	:is(.hp-scope, .lb-header) *,
	:is(.hp-scope, .lb-header) *::before,
	:is(.hp-scope, .lb-header) *::after {
		transition-duration: 0.01ms !important;
	}
}

/* ---------- Page structure ---------- */
.hp-main {
	position: relative;
	display: flow-root;
	overflow-x: clip;
	/* keeps the z-index:-1 orbs above the page background but below the folds' content; the white background
	   is what mix-blend-mode layers (filter rings/blobs) blend against inside this isolated group */
	background: #fff;
	isolation: isolate;
}

.hp-orb {
	position: absolute;
	z-index: -1;
	pointer-events: none;
}

.hp-orb--right {
	left: calc(50% + 416px);
	top: 885px;
	width: 443px;
	height: 443px;
}

.hp-orb--left {
	left: calc(50% - 814px);
	top: 2742px;
	width: 322px;
	height: 322px;
}

.hp-wrap {
	max-width: 1248px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Shared type ---------- */
.hp-eyebrow {
	color: var(--hp-pink);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 4px;
	line-height: var(--hp-lh-normal);
	text-transform: uppercase;
	white-space: nowrap;
}

.hp-h2 {
	color: var(--hp-ink);
	font-size: 54px;
	font-weight: 500;
	letter-spacing: -2px;
	line-height: var(--hp-lh-normal);
}

.hp-lead {
	color: var(--hp-text);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.4;
}

.hp-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}

.hp-head__title {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.hp-trim {
	text-box: trim-both cap alphabetic;
}

.hp-grad-text {
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

/* Desktop / mobile variants of the same copy (992px switch) */
.hp-only-m {
	display: none;
}

@media (max-width: 992px) {
	.hp-eyebrow {
		font-size: 12px;
		line-height: 1;
	}

	.hp-h2 {
		font-size: 28px;
		letter-spacing: -1px;
		line-height: 1.015;
	}

	.hp-lead {
		font-size: 14px;
	}

	.hp-head {
		gap: 10px;
	}

	.hp-orb {
		display: none;
	}

	.hp-only-d {
		display: none;
	}

	.hp-only-m {
		display: inline;
	}
}

/* Windows forced-colours mode: gradient-clipped text would vanish, so fall back to the system text colour. */
@media (forced-colors: active) {
	.hp-grad-text {
		background: none;
		color: CanvasText;
		-webkit-text-fill-color: CanvasText;
	}
}


/* ---------- Header (template part header-v2) ---------- */
.hp-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;
}

/* Centred with auto margins (not transform) so the mobile menu overlay stays viewport-fixed. */
.hp-nav {
	position: absolute;
	z-index: 5;
	top: 30px;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(1200px, calc(100% - 48px));
	height: 80px;
	margin-inline: auto;
	padding: 0 20px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.2);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.hp-logo {
	position: relative;
	display: block;
	flex: none;
	width: 125.09px;
	height: 40px;
}

.hp-logo__mark {
	position: absolute;
	left: 0;
	top: 0;
	width: 40px;
	height: 40px;
}

.hp-logo__word {
	position: absolute;
	left: 49.96px;
	top: 3.92px;
	width: 75.13px;
	height: 26.26px;
}

.hp-logo__word a {
	display: block;
	width: 100%;
	height: 100%;
}

.hp-nav__links {
	font-size: 16px;
	font-weight: 400;
}

.hp-nav__links .wp-block-navigation__container {
	gap: 0;
}

.hp-nav__links .wp-block-navigation-item {
	align-items: center;
}

.hp-nav__links .wp-block-navigation-item + .wp-block-navigation-item {
	margin-left: 20px;
}

.hp-nav__links .wp-block-navigation-item + .wp-block-navigation-item::before {
	content: "";
	width: 6px;
	height: 6px;
	margin-right: 20px;
	border-radius: 50%;
	background: var(--hp-muted);
}

.hp-nav__links .wp-block-navigation-item__content {
	color: var(--hp-ink);
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
}

.hp-nav__ctarow {
	margin: 0;
}

.hp-nav__cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 20px;
	border-radius: 12px;
	background:
		linear-gradient(-15.61deg, #ff8766 1.95%, #5620bb 57.61%),
		linear-gradient(82.3deg, rgba(74, 31, 176, 0.66) 15.78%, rgba(195, 110, 139, 0.66) 102.06%),
		#fff;
	color: var(--hp-ice);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

/* Open mobile menu (core overlay): plain stacked links, no separator dots. */
.hp-nav__links .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item::before {
	display: none;
}

.hp-nav__links .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item + .wp-block-navigation-item {
	margin-left: 0;
}

.hp-nav__links .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: 24px;
}

.hp-nav__links .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.25rem;
}

/* The design's hamburger: three 3px rounded bars, 24px wide (core's menu icon is much thinner). */
.hp-nav__links .wp-block-navigation__responsive-container-open {
	width: 24px;
	height: 17px;
	padding: 0;
	color: #9da2b3;
}

.hp-nav__links .wp-block-navigation__responsive-container-open svg {
	display: none;
}

.hp-nav__links .wp-block-navigation__responsive-container-open::before {
	content: "";
	display: block;
	width: 24px;
	height: 3px;
	border-radius: 12px;
	background: currentColor;
	box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
}

@media (max-width: 992px) {
	.hp-nav {
		top: 14px;
		width: calc(100% - 28px);
		height: 70px;
		border-radius: 14px;
	}

	.hp-logo {
		width: 92px;
		height: 30px;
	}

	.hp-logo__mark {
		width: 29.4px;
		height: 30px;
	}

	.hp-logo__word {
		left: 36.7px;
		top: 2.9px;
		width: 55.2px;
		height: 19.7px;
	}

	.hp-nav .hp-nav__ctarow.wp-block-buttons {
		display: none;
	}

	/* Core switches the nav to its overlay menu at 600px; the design does it at 992px. */
	.hp-nav__links .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.hp-nav__links .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* ---------- Footer (template part footer-v2) ---------- */
.hp-foot {
	padding: 100px 0 120px;
	background: #fff;
}

.hp-foot__top {
	display: flex;
	align-items: flex-start;
	gap: 80px;
	min-height: 397px;
	padding-left: 102px;
}

.hp-foot__art {
	flex: none;
	width: 428px;
	height: 397px;
	object-fit: cover;
}

.hp-foot__col {
	display: flex;
	flex-direction: column;
	width: 475px;
	padding-top: 85px;
}

.hp-foot__text .hp-head__title {
	align-items: flex-start;
	gap: 10px;
}

.hp-foot__text .hp-h2 {
	white-space: nowrap;
}

.hp-foot__text .hp-lead {
	width: 463px;
	max-width: 100%;
	margin-top: 10px;
}

/* The form is the PureLabs subscribe shortcode; its markup is restyled to the design. */
.hp-foot__form {
	display: flex;
	gap: 10px;
	margin-top: 37px;
}

.hp-foot .hp-foot__form .purelabs-subscribe {
	flex: 1;
}

.hp-foot .hp-foot__form .purelabs-subscribe__form {
	display: flex;
	gap: 10px;
}

.hp-foot .hp-foot__form .purelabs-subscribe__input {
	width: 345px;
	height: 60px;
	padding: 0 14px;
	border: 2px solid transparent;
	border-radius: 9px;
	outline: 0;
	background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #6b2dff 4.7%, #db7c9c 93.17%) border-box;
	color: var(--hp-ink);
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
}

.hp-foot .hp-foot__form .purelabs-subscribe__input:focus-visible {
	outline: 2px solid var(--hp-violet);
	outline-offset: 3px;
}

.hp-foot .hp-foot__form .purelabs-subscribe__input::placeholder {
	color: #9da2b3;
	opacity: 1;
}

.hp-foot .hp-foot__form .purelabs-subscribe__btn {
	width: 120px;
	height: 60px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(137.24deg, #6b2dff 4.7%, #db7c9c 93.17%);
	color: #fff;
	font-size: 16px;
	font-weight: 500;
}

.hp-foot__social {
	display: flex;
	gap: 7.818px;
	align-self: flex-end;
	margin-top: 20px;
}

.hp-foot__soc {
	width: 43px;
	height: 43px;
	border: 1.344px solid var(--hp-line);
	border-radius: 10.75px;
	background: var(--hp-ice);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.hp-foot__soc:hover {
	border-color: var(--hp-pink);
	transform: translateY(-2px);
}

.hp-foot__soc a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.hp-foot .hp-foot__soc img {
	width: 24.19px;
	height: 24.19px;
}

.hp-foot .hp-foot__soc--lg img {
	width: 28.22px;
	height: 28.22px;
}

.hp-foot hr.hp-foot__rule.wp-block-separator {
	display: block;
	width: 100%;
	height: 1px;
	margin: 60px 0 0;
	border: 0;
	background: var(--hp-line);
	opacity: 1;
}

.hp-foot__bar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-top: 59px;
}

.hp-foot__bar .hp-logo {
	height: 40px;
}

.hp-foot__links {
	display: flex;
	align-items: center;
	gap: 24px;
	color: var(--hp-muted);
	font-family: Inter, var(--hp-font);
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
}

@media (max-width: 992px) {
	.hp-foot {
		padding-top: 60px;
		padding-bottom: 96px;
	}

	.hp-foot__top {
		display: block;
		min-height: 0;
		padding-left: 0;
	}

	.hp-foot__art {
		display: none;
	}

	.hp-foot__col {
		width: 100%;
		padding-top: 0;
	}

	.hp-foot__text .hp-eyebrow {
		font-size: 14px;
	}

	.hp-foot__text .hp-h2 {
		font-size: 36px;
		letter-spacing: -2px;
	}

	.hp-foot__text .hp-lead {
		display: none;
	}

	.hp-foot__form {
		margin-top: 40px;
	}

	.hp-foot .hp-foot__form .purelabs-subscribe__form {
		flex-direction: column;
	}

	.hp-foot .hp-foot__form .purelabs-subscribe__input {
		width: 100%;
	}

	.hp-foot .hp-foot__form .purelabs-subscribe__btn {
		width: 100%;
		background: linear-gradient(163.13deg, #6b2dff 4.7%, #db7c9c 93.17%);
		color: var(--hp-mist);
	}

	.hp-foot__social {
		align-self: center;
		margin-top: 30px;
	}

	.hp-foot__bar {
		flex-direction: column;
		align-items: center;
		gap: 30px;
		margin-top: 59px;
	}

	.hp-foot__bar .hp-logo {
		width: 92px;
		height: 30px;
	}

	.hp-foot__links {
		justify-content: space-between;
		gap: 0;
		width: 100%;
		font-size: 10px;
	}
}
