/* P&L hero block */

.pnl-hero {
	--pnl-blue: var(--bricks-color-ddzzak, #0351ff);
	--pnl-title: #1f47f5;
	--pnl-text: #1c2640;
	--pnl-muted: #34437a;
	position: relative;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

.pnl-hero *,
.pnl-hero *::before,
.pnl-hero *::after {
	box-sizing: border-box;
}

/* :not(#_) outweighs the global `body *:not(#wpadminbar *) { font-family: Ubuntu !important }` */
.pnl-hero:not(#_),
.pnl-hero:not(#_) * {
	font-family: "Inter Tight", "Cabin", Arial, sans-serif !important;
}

.pnl-hero:not(#_) .pnl-hero__title,
.pnl-hero:not(#_) .pnl-hero__title * {
	font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif !important;
}

.pnl-hero__grid-bg {
	position: absolute;
	z-index: 0;
	top: 0;
	right: 0;
	width: 62%;
	height: 100%;
	background-image:
		linear-gradient(to right, rgba(3, 81, 255, 0.07) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(3, 81, 255, 0.07) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
	pointer-events: none;
}

.pnl-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	gap: clamp(8px, 2vw, 24px);
	align-items: center;
	width: 100%;
	max-width: 1440px;
	min-height: min(88vh, 820px);
	margin: 0 auto;
	padding: clamp(32px, 5vw, 72px) clamp(20px, 4.2vw, 64px) clamp(28px, 4vw, 56px);
}

.pnl-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(18px, 2vw, 28px);
	min-width: 0;
	container-type: inline-size;
}

/* --pnl-line-em (estimated width of the longest line) is set inline by PHP; +0.2em covers the brush overhang */
.pnl-hero .pnl-hero__title {
	--pnl-title-max: clamp(44px, 6.6vw, 104px);
	width: 100%;
	margin: 0;
	color: var(--pnl-title);
	font-size: min(var(--pnl-title-max), calc(100cqi / (var(--pnl-line-em, 7.5) + 0.2)));
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: -0.035em;
	text-align: left;
	text-transform: none;
}

.pnl-hero__line {
	display: inline-block;
	font: inherit;
	white-space: nowrap;
}

.pnl-hero__mark {
	position: relative;
	z-index: 0;
	font: inherit;
	white-space: nowrap;
}

.pnl-hero__mark::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -0.32em;
	right: -0.12em;
	top: 0.2em;
	bottom: -0.06em;
	background: url("../img/grade-brush-mark.svg") center / 100% 100% no-repeat;
	transform: rotate(-0.8deg);
}

.pnl-hero .pnl-hero__lead {
	margin: 0;
	max-width: 30ch;
	color: var(--pnl-text);
	font-size: clamp(17px, 1.55vw, 22px);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.005em;
}

.pnl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
}

.pnl-hero .pnl-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 56px;
	padding: 16px 32px;
	border: 0;
	border-radius: 12px;
	background: var(--pnl-blue);
	color: #fff;
	font-size: clamp(14px, 1.15vw, 16px);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(3, 81, 255, 0.22);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pnl-hero .pnl-hero__btn:hover {
	background: #0246dd;
	box-shadow: 0 14px 32px rgba(3, 81, 255, 0.3);
	transform: translateY(-1px);
}

.pnl-hero__btn-label {
	line-height: 1;
	text-box: trim-both cap alphabetic;
}

.pnl-hero__btn-arrow {
	flex: none;
	width: 1.25em;
	height: 0.75em;
}

.pnl-hero .pnl-hero__kicker {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
	padding-top: clamp(24px, 5vw, 72px);
	color: var(--pnl-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
}

.pnl-hero__kicker::after {
	content: "";
	width: 88px;
	height: 1px;
	background: rgba(52, 67, 122, 0.4);
}

.pnl-hero__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	margin-right: calc(-1 * clamp(20px, 4.2vw, 64px));
}

.pnl-hero__visual::after {
	content: "";
	position: absolute;
	z-index: 0;
	left: 50%;
	bottom: 8%;
	width: 52%;
	height: 100px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse, rgba(3, 81, 255, 0.3), transparent 70%);
	filter: blur(24px);
	pointer-events: none;
}

.pnl-hero__visual img {
	position: relative;
	z-index: 1;
	display: block;
	width: 112%;
	max-width: none;
	height: auto;
}

@media (prefers-reduced-motion: reduce) {
	.pnl-hero .pnl-hero__btn:hover {
		transform: none;
	}
}

@media (max-width: 960px) {
	.pnl-hero__inner {
		grid-template-columns: 1fr;
		gap: 8px;
		min-height: 0;
		padding-top: 32px;
		padding-bottom: 24px;
	}

	.pnl-hero__copy {
		align-items: center;
		text-align: center;
	}

	.pnl-hero .pnl-hero__title {
		--pnl-title-max: clamp(44px, 12vw, 80px);
		text-align: center;
	}

	.pnl-hero .pnl-hero__lead {
		max-width: 34ch;
	}

	.pnl-hero__actions {
		justify-content: center;
	}

	.pnl-hero .pnl-hero__kicker {
		justify-content: center;
		padding-top: 12px;
	}

	.pnl-hero__kicker::before {
		content: "";
		width: 88px;
		height: 1px;
		background: rgba(52, 67, 122, 0.4);
	}

	.pnl-hero__visual {
		max-width: 640px;
		width: 100%;
		margin: 0 auto;
	}

	.pnl-hero__visual img {
		width: 100%;
	}

	.pnl-hero__grid-bg {
		width: 100%;
		-webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 70%);
		mask-image: linear-gradient(180deg, transparent 30%, #000 70%);
	}
}

@media (max-width: 767px) {
	.pnl-hero__inner {
		padding-top: 24px;
		padding-bottom: 16px;
	}

	.pnl-hero__actions,
	.pnl-hero .pnl-hero__btn {
		width: 100%;
	}

	.pnl-hero .pnl-hero__lead {
		max-width: none;
	}

	.pnl-hero .pnl-hero__kicker {
		font-size: 11px;
		letter-spacing: 0.22em;
	}
}
