/*
header#masthead,
footer#colophon .footers .footer--3,
footer#colophon .footers .footer--4,
footer#colophon .footers .footer--5,
.breadcrumbs {
	display: none !important;
}
*/

@media only screen and (min-width: 1280px) {
	footer.site-footer .footers {
		grid-template-columns: 1fr 1fr !important;
	}
}

html {
	scroll-behavior: smooth;
}

body.referral-page {
	--surface-muted: var(--bg);
	--surface-dark: var(--black);
	--surface-card-dark: var(--black-75);
	--line: var(--gray-light);
	--line-dark: var(--white-25);
	--copy-muted: var(--slate);
	--section-space: var(--gap--xxl);
	--sticky-panel-height: 148px;
	margin: 0;
	padding-bottom: var(--sticky-panel-height);
	background: var(--white);
	color: var(--black);
	font-family: var(--font);
	font-size: var(--text--m);
	font-weight: var(--font-weight-normal);
	line-height: var(--line-height--l);
	-webkit-font-smoothing: antialiased;
}

.referral-page img {
	display: block;
	max-width: 100%;
}

.referral-page a {
	color: inherit;
	text-decoration: none;
}

.referral-page :focus-visible {
	outline: 3px solid var(--pink);
	outline-offset: 3px;
	border-radius: var(--radius--s);
}

.wrap {
	width: 100%;
	max-width: var(--container-max-width);
	margin-inline: auto;
	padding-inline: var(--container-gap);
}

.section {
	padding-block: var(--section-space);
}

.section--partners {
	padding-top: 0;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: var(--gap--s);
	margin: 0 0 var(--gap--m);
	color: var(--teal);
	font-size: var(--text--s);
	font-weight: var(--font-weight-semibold);
	letter-spacing: 0.16em;
	line-height: 1.25;
	text-transform: uppercase;
	text-wrap: balance;
}

.eyebrow::before {
	width: 34px;
	height: 2px;
	background: currentColor;
	content: "";
	flex: none;
}

.eyebrow--light {
	color: var(--white-75);
}

.referral-page h1,
.referral-page h2,
.referral-page h3 {
	margin: 0;
	font-family: var(--title-font);
	font-weight: var(--title-font-weight);
	letter-spacing: -0.02em;
	line-height: 1.12;
	text-wrap: balance;
}

.referral-page h1 {
	max-width: 12ch;
	font-size: clamp(42px, 8vw, var(--title--xxl));
	text-transform: uppercase;
}

.referral-page h2 {
	font-size: var(--title--l);
}

.referral-page h3 {
	font-size: var(--title--s);
}

.lead {
	margin: var(--gap--s) 0 0;
	color: var(--copy-muted);
	font-size: var(--text--l);
	font-weight: var(--font-weight-light);
	line-height: var(--line-height--l);
	text-wrap: balance;
}

.hero-lead,
.hero-highlight,
.stats p,
.lead,
.flow p,
.media-copy p,
.income-grid p {
	text-wrap: balance;
}

.rule {
	display: block;
	width: 56px;
	height: 2px;
	margin-block: var(--gap--m);
	background: var(--black);
}

.rule--light {
	background: var(--white);
}

.btn {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: var(--btn-gap-y) var(--btn-gap-x);
	border: 1px solid transparent;
	border-radius: var(--btn-radius);
	font-family: var(--font);
	font-size: var(--text--s);
	font-weight: var(--font-weight-bold);
	line-height: 1.15;
	text-align: center;
	transition:
		background var(--speed--s),
		border-color var(--speed--s),
		color var(--speed--s);
}

.referral-page .btn {
	font-weight: 500;
	letter-spacing: 0.05em;
}

.btn--teal {
	background: var(--teal);
	color: var(--white) !important;
	--btn-bg: var(--teal);
	border-color: var(--btn-bg) !important;
}

.btn--teal:hover {
	--btn-bg: var(--pink);
}

.referral-page .btn--dark {
	background: var(--black);
	color: var(--white);
}

.referral-page .btn--dark:hover {
	background: var(--slate);
	color: var(--white);
}

.btn--outline {
	border-color: var(--black);
	background: transparent;
	color: var(--black);
}

.btn--outline:hover {
	background: var(--black);
	color: var(--white);
}

.btn--light-outline {
	border-color: var(--white-50);
	background: transparent;
	color: var(--white);
}

.btn--light-outline:hover {
	background: var(--white);
	color: var(--black);
}

.actions {
	display: flex;
	flex-direction: column;
	gap: var(--gap--s);
	margin-top: var(--gap--l);
}

/* Sticky header at the bottom */
.sticky-panel {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 60;
	border-top: 1px solid var(--line);
	background: var(--white-75);
	-webkit-backdrop-filter: var(--blur--m);
	backdrop-filter: var(--blur--m);
}

.headbar {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gap--s);
	max-width: var(--container-max-width);
	margin-inline: auto;
	padding: var(--gap--s) var(--container-gap);
}

.sticky-title {
	grid-column: 1 / -1;
	margin: 0;
	font-family: var(--title-font);
	font-size: var(--title--s);
	font-weight: var(--title-font-weight);
	line-height: 1.1;
	text-align: center;
}

.head-cta {
	display: contents;
}

.head-cta .btn {
	min-width: 0;
	min-height: 44px;
	padding: var(--gap--s);
	font-size: 13px;
}

/* Hero */
.section--hero {
	position: relative;
	overflow: hidden;
	padding-top: var(--gap--xl);
	background: var(--surface-dark);
	color: var(--white);
}

.hero-art,
.hero-gradient,
.hero-ribs,
.hero-veil {
	position: absolute;
	inset: 0;
}

.hero-gradient {
	background:
		radial-gradient(58% 55% at 80% 16%, var(--pink-50), transparent 62%),
		radial-gradient(52% 58% at 60% 78%, var(--violet-50), transparent 60%),
		radial-gradient(70% 70% at 18% 42%, var(--teal-75), transparent 68%),
		linear-gradient(
			160deg,
			#062523 0%,
			#0a3b3a 44%,
			#2b2140 78%,
			#3a1c30 100%
		);
}

.hero-ribs {
	background: repeating-linear-gradient(
		168deg,
		var(--white-25) 0 1px,
		var(--black-25) 2px,
		transparent 46px
	);
	mix-blend-mode: overlay;
}

.hero-veil {
	background: linear-gradient(
		90deg,
		var(--black-75),
		var(--black-50) 58%,
		transparent
	);
}

.hero-inner {
	position: relative;
	z-index: 1;
}

.hero-lead {
	max-width: 62ch;
	margin: var(--gap--m) 0 0;
	font-size: var(--text--l);
	font-weight: var(--font-weight-light);
	line-height: var(--line-height--l);
}

.hero-highlight {
	display: grid;
	gap: var(--gap--s);
	margin-top: var(--gap--m);
	padding: var(--gap--m);
	border-left: 3px solid var(--teal);
	border-radius: var(--radius--s);
	background: var(--teal-25);
}

.hero-highlight strong {
	font-size: var(--text--l);
	line-height: 1.25;
}

.hero-highlight span {
	color: var(--white-75);
}

.hero-highlight b {
	color: var(--teal);
}

.stats {
	display: grid;
	margin-top: var(--gap--xl);
	border-top: 1px solid var(--line-dark);
}

.stats > div {
	display: grid;
	grid-template-columns: minmax(88px, auto) 1fr;
	gap: var(--gap--m);
	align-items: center;
	padding-block: var(--gap--m);
	border-bottom: 1px solid var(--line-dark);
}

.stats b {
	font-family: var(--title-font);
	font-size: var(--title--l);
	line-height: 1;
}

.stats b.stats-limit {
	font-size: var(--text--xl);
}

.stats p {
	margin: 0;
	color: var(--white-75);
}

/* Reusable sections */
.section-heading {
	display: grid;
	gap: var(--gap--m);
	margin-bottom: var(--gap--xl);
}

.section-heading--stack {
	display: block;
}

.section-heading--stack .lead {
	margin-top: var(--gap--m);
}

.flow {
	display: grid;
	border-top: 1px solid var(--line);
}

.flow article {
	position: relative;
	padding: var(--gap--l) 0;
	border-bottom: 1px solid var(--line);
}

.flow-index {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	margin-bottom: var(--gap--m);
	border-radius: var(--radius--xxl);
	background: var(--pink);
	color: var(--white);
	font-weight: var(--font-weight-bold);
}

.flow h3 {
	margin-bottom: var(--gap--s);
}

.flow p {
	margin: 0;
	color: var(--copy-muted);
}

.flow-arrow {
	display: none;
}

.cta-bar {
	display: flex;
	flex-direction: column;
	gap: var(--gap--s);
	align-items: stretch;
	margin-top: var(--gap--xl);
	padding: var(--gap--m);
	border: 1px solid var(--line);
	border-left: 3px solid var(--teal);
	border-radius: var(--radius--s);
	background: var(--white);
}

.cta-bar p {
	margin: 0 0 var(--gap--s);
	color: var(--copy-muted);
}

.cta-bar--dark {
	border-color: var(--line-dark);
	border-left-color: var(--teal);
	background: var(--white-25);
}

.cta-bar--dark p {
	color: var(--white-75);
}

.media-grid,
.calculator-grid,
.income-grid,
.loss-grid,
.form-grid {
	display: grid;
	gap: var(--gap--xl);
	align-items: center;
}

.media-image {
	position: relative;
	overflow: hidden;
	margin: 0;
	border-radius: var(--radius--m);
}

.media-image img {
	width: 100%;
	height: auto;
	aspect-ratio: var(--aspect-ratio-landscape);
	-o-object-fit: cover;
	object-fit: cover;
}

.media-image figcaption {
	position: absolute;
	right: var(--gap--m);
	bottom: var(--gap--m);
	left: var(--gap--m);
	padding: var(--gap--m);
	border-radius: var(--radius--s);
	background: var(--white);
	box-shadow: var(--shadow--l);
}

.media-image figcaption b,
.media-image figcaption span {
	display: block;
}

.media-image figcaption b {
	font-family: var(--title-font);
	font-size: var(--text--xl);
	line-height: 1.1;
}

.media-image figcaption span {
	margin-top: var(--gap--s);
	color: var(--copy-muted);
	font-size: var(--text--s);
	font-weight: var(--font-weight-semibold);
	letter-spacing: 0.1em;
	line-height: 1.25;
	text-transform: uppercase;
}

.media-copy p:not(.eyebrow),
.income-grid > div:first-child > p:not(.eyebrow),
.loss-grid > div > p:not(.eyebrow) {
	color: var(--copy-muted);
}

.media-copy .btn {
	margin-top: var(--gap--s);
}

/* Calculator */
.section--calculator,
.section--loss {
	background: var(--surface-dark);
	color: var(--white);
}

.section--calculator .lead,
.loss-grid > div > p:not(.eyebrow) {
	color: var(--white-75);
}

.slider-heading,
.chart-heading {
	display: flex;
	gap: var(--gap--m);
	align-items: baseline;
	justify-content: space-between;
	margin-top: var(--gap--l);
}

.slider-heading span,
.chart-heading span {
	color: var(--white-75);
	font-size: var(--text--s);
	font-weight: var(--font-weight-semibold);
	letter-spacing: 0.1em;
	line-height: 1.25;
	text-transform: uppercase;
}

.slider-heading strong {
	font-size: var(--text--xl);
	white-space: nowrap;
}

.referral-page input[type="range"] {
	width: 100%;
	height: 3px;
	margin-top: var(--gap--m);
	background: var(--white-25);
	accent-color: var(--teal);
	cursor: pointer;
}

.referral-page input[type="range"]::-webkit-slider-thumb {
	width: 24px;
	height: 24px;
	border: 3px solid var(--black);
	border-radius: var(--radius--xxl);
	background: var(--teal);
}

.calculator-note {
	margin: var(--gap--m) 0 0;
	color: var(--white-75);
}

.text-teal {
	color: var(--teal);
}

.text-pink {
	color: var(--pink);
}

.chart-box {
	padding: var(--gap--m);
	border-radius: var(--radius--m);
	background: var(--white-25);
}

.chart-heading {
	margin-top: 0;
}

.chart-heading b {
	color: var(--teal);
	font-size: var(--text--l);
	white-space: nowrap;
}

.bars {
	display: flex;
	gap: var(--gap--s);
	align-items: flex-end;
	margin-top: var(--gap--l);
}

.bar-column {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: var(--gap--s);
}

.bar-value {
	font-size: 12px;
	font-weight: var(--font-weight-semibold);
	line-height: 1.2;
	white-space: nowrap;
}

.bar-fill {
	width: 100%;
	min-height: 8px;
	border-radius: var(--radius--s) var(--radius--s) 0 0;
	background: linear-gradient(var(--teal), var(--teal-25));
	transition: height var(--speed--m);
}

.bar-column:last-child .bar-fill {
	background: linear-gradient(var(--pink), var(--pink-25));
}

.bar-label {
	color: var(--white-75);
	font-size: 11px;
	font-weight: var(--font-weight-semibold);
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

/* Income */
.income-grid > div:first-child > p:not(.eyebrow) {
	margin-bottom: var(--gap--m);
}

.donut-wrap {
	display: grid;
	gap: var(--gap--m);
}

.donut {
	width: min(250px, 76vw);
	height: auto;
	margin-inline: auto;
}

.donut circle {
	fill: none;
	stroke-width: 34;
}

.donut-main {
	stroke: var(--slate);
	stroke-dasharray: 461 42;
}

.donut-referral {
	stroke: var(--pink);
	stroke-dasharray: 42 461;
	stroke-dashoffset: -461;
}

.donut-total {
	fill: var(--black);
	font-family: var(--font);
	font-size: 21px;
	font-weight: var(--font-weight-bold);
}

.donut-caption {
	fill: var(--slate);
	font-family: var(--font);
	font-size: 13px;
}

.income-legend {
	margin: 0;
	padding: 0;
	list-style: none;
}

.income-legend li {
	display: grid;
	grid-template-columns: 11px 1fr auto;
	gap: var(--gap--s);
	align-items: center;
	padding-block: var(--gap--s);
	border-bottom: 1px solid var(--line);
}

.income-legend i {
	width: 11px;
	height: 11px;
	border-radius: var(--radius--xxl);
}

.income-legend b {
	white-space: nowrap;
}

.legend-services {
	background: var(--slate);
}

.legend-referral {
	background: var(--pink);
}

.income-highlight {
	font-weight: var(--font-weight-semibold);
}

.income-note {
	margin: 0;
	color: var(--copy-muted);
	font-size: var(--text--s);
}

/* Loss */
.loss-list {
	margin: var(--gap--l) 0;
	padding: 0;
	list-style: none;
	text-wrap: balance;
}

.loss-list li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--gap--m);
	padding-block: var(--gap--m);
	border-bottom: 1px solid var(--line-dark);
}

.loss-list b {
	color: var(--teal);
	font-size: var(--text--l);
}

/* System accordion customization */
.section--terms {
	background: var(--surface-muted);
}

.terms-layout {
	width: 100%;
	max-width: 720px;
	margin-inline: auto;
}

.section--terms .terms-layout .section-heading {
	display: block;
}

.referral-accordion {
	---padding-y: var(--gap--m);
	---padding-x: var(--gap--l);
	---gap: var(--gap--s);
	---radius: var(--radius--m);
	---bg: var(--white);
}

.referral-accordion .accordion-header {
	display: flex;
	gap: var(--gap--m);
	align-items: center;
	min-height: 64px;
	padding-right: calc(var(--gap--xl) + 16px);
	background: var(--white);
	color: var(--black);
	font-family: var(--font);
	font-size: var(--text--m);
	font-weight: var(--font-weight-bold);
	line-height: 1.3;
}

.referral-page .accordion .accordion-header::before {
	top: 50%;
}

.referral-accordion .accordion-header span {
	color: var(--slate);
	font-family: var(--title-font);
	font-size: var(--text--s);
	letter-spacing: 0.12em;
}

.referral-accordion .accordion-item.active .accordion-header {
	color: var(--teal);
}

.referral-accordion .accordion-content-inner {
	padding-left: var(--gap--l);
	padding-right: var(--gap--l);
	color: var(--copy-muted);
}

/* Dynamic form placeholder */
.section--form {
	background: var(--white);
}

.form-grid {
	align-items: stretch;
}

.form-copy {
	padding: var(--gap--l);
	border-radius: var(--radius--m);
	background: var(--surface-muted);
}

.form-points {
	margin: var(--gap--l) 0 0;
	padding: 0;
	list-style: none;
}

.form-points li {
	position: relative;
	padding: var(--gap--m) 0 var(--gap--m) calc(11px + var(--gap--m));
	border-top: 1px solid var(--line);
	color: var(--copy-muted);
}

.form-points li::before {
	position: absolute;
	top: calc(var(--gap--m) + 0.45em);
	left: 0;
	width: 11px;
	height: 11px;
	border-radius: var(--radius--xxl);
	background: var(--teal);
	content: "";
}

.form-card {
	display: flex;
	flex-direction: column;
	gap: var(--gap--m);
	padding: 0;
	border: 0;
	background: var(--white);
}

.form-note {
	margin: 0;
	color: var(--copy-muted);
	font-size: var(--text--s);
	text-align: center;
	text-wrap: balance;
}

.referral-extra-fields {
	display: grid;
	gap: var(--gap--m);
	margin-bottom: var(--gap--m);
	padding: var(--gap--s);
	border: 1px dashed var(--teal);
	border-radius: var(--zform-input-radius);
}

.referral-extra-field {
	display: grid;
	gap: var(--gap--s);
}

.referral-extra-field > input {
	width: 100%;
	padding: var(--input-gap);
	border: var(--input-border);
	border-radius: var(--input-border-radius);
	background: var(--input-bg);
	color: var(--input-color);
}

.referral-extra-field > input:focus {
	border: var(--input-border-active);
	outline: none;
}

.referral-channel {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.referral-channel legend {
	padding: 0 0 0 1rem;
	display: block;
	position: relative;
	font-size: 1rem;
	line-height: 1.4;
}

.referral-channel__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--gap--s);
}

.referral-channel__options label.referral-channel__option {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	color: var(--copy-muted);
	font-size: calc(0.9 * var(--text--s));
	cursor: pointer;
	white-space: nowrap;
}

.referral-extra-consent {
	margin: 0;
	color: var(--copy-muted);
	font-size: var(--text--s);
	line-height: var(--line-height--l);
	text-wrap: balance;
}

@media only screen and (min-width: 640px) {
	body.referral-page {
		--sticky-panel-height: 88px;
	}

	.actions {
		flex-direction: row;
	}

	.referral-channel__option {
		flex-basis: 0;
	}

	.headbar {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.sticky-title {
		text-align: left;
	}

	.head-cta {
		display: flex;
		gap: var(--gap--s);
		margin-left: auto;
	}

	.head-cta .btn {
		padding-inline: var(--btn-gap-x);
		font-size: var(--text--s);
	}

	.stats {
		grid-template-columns: repeat(3, 1fr);
	}

	.stats > div {
		display: block;
		padding: var(--gap--l) var(--gap--m);
		border-right: 1px solid var(--line-dark);
		border-bottom: 0;
	}

	.stats > div:first-child {
		padding-left: 0;
	}

	.stats > div:last-child {
		border-right: 0;
	}

	.stats p {
		margin-top: var(--gap--s);
	}

	.flow {
		grid-template-columns: repeat(2, 1fr);
	}

	.flow article {
		padding-inline: var(--gap--m);
		border-right: 1px solid var(--line);
	}

	.flow article:nth-child(2n) {
		border-right: 0;
	}

	.cta-bar {
		flex-flow: row wrap;
		align-items: center;
	}

	.cta-bar p {
		width: 100%;
	}

	.bar-value {
		font-size: var(--text--s);
	}

	.bar-label {
		font-size: var(--text--s);
	}

	.donut-wrap {
		grid-template-columns: minmax(200px, 250px) 1fr;
		align-items: center;
	}

	.income-note {
		grid-column: 1 / -1;
	}
}

@media only screen and (min-width: 960px) {
	.hero-highlight {
		max-width: 74ch;
	}

	.section-heading:not(.section-heading--stack) {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
		align-items: end;
	}

	.flow {
		grid-template-columns: repeat(4, 1fr);
	}

	.flow article,
	.flow article:nth-child(2n) {
		padding: var(--gap--l);
		border-right: 1px solid var(--line);
		border-bottom: 0;
	}

	.flow article:first-child {
		padding-left: 0;
	}

	.flow article:last-child {
		border-right: 0;
	}

	.flow-arrow {
		position: absolute;
		top: calc(var(--gap--l) + 12px);
		right: -10px;
		display: grid;
		width: 20px;
		height: 20px;
		place-items: center;
		background: var(--white);
		color: var(--pink);
	}

	.cta-bar p {
		width: auto;
		margin: 0 auto 0 0;
		flex: 1 1 320px;
	}

	.media-grid,
	.calculator-grid,
	.income-grid,
	.loss-grid,
	.form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.media-image img {
		aspect-ratio: var(--aspect-ratio-portrait);
	}

	.section--partners .media-image img {
		aspect-ratio: var(--aspect-ratio-square);
	}

	.media-grid,
	.calculator-grid,
	.income-grid,
	.loss-grid {
		gap: var(--gap--xxl);
	}
}

@media only screen and (min-width: 1280px) {
	.hero-lead {
		font-size: var(--text--xl);
	}

	.form-copy {
		padding: var(--gap--xl);
	}
}

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

	.referral-page *,
	.referral-page *::before,
	.referral-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

html .zform {
	--zform-max-width: 500px;
}
