/* Modernized USLeadList — same brand, cleaner execution */
:root {
	--m-bg: oklch(0.985 0.005 257.7); /* near-white, faint blue cast */
	--m-surface: oklch(1 0 0); /* card */
	--m-ink: oklch(0.18 0.03 257.7); /* primary text */
	--m-ink-mid: oklch(0.42 0.025 257.7); /* secondary text */
	--m-ink-low: oklch(0.62 0.02 257.7); /* meta */
	--m-line: oklch(0.92 0.012 257.7); /* hairline */
	--m-line-strong: oklch(0.84 0.015 257.7);
	--m-navy: oklch(0.305 0.09 257.7);
	--m-navy-deep: oklch(0.195 0.071 257.7);
	--m-red: oklch(0.549 0.219 28); /* aligned to logo brand red #D30F17 */
	--m-red-deep: oklch(0.455 0.2 28); /* hover / pressed */
	--m-red-soft: oklch(0.951 0.045 28); /* light tint */
	--m-blue: oklch(0.49 0.13 255.4); /* brand mid-blue */
	--m-blue-light: oklch(0.93 0.03 255.4); /* light blue surface */
	--m-blue-soft: oklch(0.96 0.018 257.7);

	--m-shadow-sm: 0 1px 2px oklch(0 0 0 / 0.04);
	--m-shadow-md: 0 6px 24px -8px oklch(0.18 0.03 257.7 / 0.18);
	--m-shadow-lg: 0 20px 60px -20px oklch(0.18 0.03 257.7 / 0.32);

	--m-r-card: 16px;
	--m-r-button: 6px; /* keep "operator" not "consumer" */
	--m-r-pill: 999px;
	--m-r-input: 8px;

	--m-max: 1180px;
	--m-gutter: 24px;
}

.m-root {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	background: var(--m-bg);
	color: var(--m-ink);
	font-feature-settings: 'ss01', 'tnum';
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;

	&,
	& *::before,
	& *::after {
		box-sizing: border-box;
	}
	& * {
		box-sizing: border-box;
	}
}

/* ---------- Header ---------- */
.m-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: oklch(1 0 0 / 0.85);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--m-line);
}
.m-header-inner {
	max-width: var(--m-max);
	margin: 0 auto;
	padding: 14px var(--m-gutter);
	display: flex;
	align-items: center;
	gap: 32px;
}
.m-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.01em;
	color: var(--m-ink);
	text-decoration: none;
}
.m-logo-mark {
	width: 24px;
	height: 24px;

	& svg {
		width: 100%;
		height: 100%;
	}
}
.m-nav {
	display: flex;
	gap: 24px;
	flex: 1;

	& a {
		color: var(--m-ink-mid);
		text-decoration: none;
		font-weight: 500;
		font-size: 14px;
		transition: color 0.15s ease;
		position: relative;

		&:hover {
			color: var(--m-ink);
		}
		&.active {
			color: var(--m-ink);
		}
	}

	& .pill {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 4px 10px;
		border-radius: var(--m-r-pill);
		background: var(--m-red-soft);
		color: var(--m-red-deep);
		font-size: 12px;
		font-weight: 600;

		&::before {
			content: '';
			width: 6px;
			height: 6px;
			border-radius: 50%;
			background: var(--m-red);
			animation: m-pulse 2s ease-in-out infinite;
		}
	}
}
@keyframes m-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.4;
	}
}
.m-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}
.m-link-quiet {
	color: var(--m-ink-mid);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;

	&:hover {
		color: var(--m-ink);
	}
}

/* ---------- Buttons ---------- */
.m-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-weight: 600;
	font-size: 15px;
	padding: 10px 18px;
	border-radius: var(--m-r-button);
	border: 0;
	cursor: pointer;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.15s ease;
	letter-spacing: -0.005em;

	&:active {
		transform: translateY(1px);
	}

	& .arrow {
		transition: transform 0.2s ease;
	}
	&:hover .arrow {
		transform: translateX(3px);
	}
}
.m-btn-primary {
	background: var(--m-red);
	color: white;

	&::after {
		content: '';
		position: absolute;
		inset: 0;
		z-index: -1;
		background: var(--m-red-deep);
		transform: translateX(-101%);
		transition: transform 0.3s ease;
	}
	&:hover::after {
		transform: translateX(0);
	}
}
.m-btn-ghost {
	background: transparent;
	color: var(--m-ink);
	border: 1px solid var(--m-line-strong);

	&:hover {
		background: var(--m-blue-soft);
		border-color: var(--m-navy);
	}
}
.m-btn-lg {
	padding: 14px 24px;
	font-size: 16px;
}

/* ---------- Hero ---------- */
.m-hero {
	max-width: var(--m-max);
	margin: 0 auto;
	padding: 80px var(--m-gutter) 60px;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 64px;
	align-items: center;

	& h1 {
		font-size: clamp(40px, 5.2vw, 64px);
		line-height: 1.02;
		letter-spacing: -0.025em;
		font-weight: 700;
		margin: 0 0 24px;
		color: var(--m-ink);
		text-wrap: balance;

		& em {
			font-style: normal;
			color: var(--m-red);
			font-weight: 700;
		}
	}
}
.m-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: var(--m-r-pill);
	background: var(--m-blue-soft);
	color: var(--m-navy);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin-bottom: 24px;

	& .dot {
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: var(--m-navy);
	}
}
.m-hero-sub {
	font-size: 18px;
	color: var(--m-ink-mid);
	max-width: 32rem;
	margin: 0 0 32px;
	line-height: 1.55;
	font-weight: 400;
	text-wrap: pretty;
}
/* E-E-A-T byline. Appears right below the page H1 on product + county pages,
   linking to /authors/micah-nicholes so Google + LLMs associate the content
   with a named, credentialed author. Small text; doesn't compete with the
   hero visually but is crawlable. */
.m-byline {
	font-size: 13px;
	color: var(--m-ink-low);
	margin: -8px 0 20px;
	letter-spacing: 0.01em;

	a {
		color: var(--m-ink-mid);
		text-decoration: none;
		border-bottom: 1px dotted var(--m-ink-low);

		&:hover {
			color: var(--m-accent, #c53030);
			border-bottom-color: currentColor;
		}
	}
}
.m-hero-ctas {
	display: flex;
	gap: 12px;
	align-items: center;
}
.m-hero-trust {
	margin-top: 32px;
	display: flex;
	align-items: center;
	gap: 16px;
	color: var(--m-ink-low);
	font-size: 13px;

	& strong {
		color: var(--m-ink);
		font-weight: 600;
	}
	& .sep {
		width: 1px;
		height: 20px;
		background: var(--m-line);
	}
}

.m-hero-visual {
	position: relative;
	aspect-ratio: 1 / 1.05;
	border-radius: var(--m-r-card);
	overflow: hidden;
	background: var(--m-navy-deep);
	box-shadow: var(--m-shadow-lg);

	& img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		filter: saturate(1.05);
	}
}
.m-hero-card {
	position: absolute;
	left: 16px;
	bottom: 16px;
	right: 16px;
	background: oklch(1 0 0 / 0.94);
	backdrop-filter: blur(8px);
	border-radius: 12px;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	box-shadow: var(--m-shadow-md);

	& .stat-num {
		font-size: 28px;
		font-weight: 700;
		color: var(--m-ink);
		letter-spacing: -0.02em;
		line-height: 1;
	}
	& .stat-label {
		font-size: 12px;
		color: var(--m-ink-low);
		margin-top: 4px;
	}
	& .vrule {
		width: 1px;
		height: 36px;
		background: var(--m-line);
	}
}

/* ---------- Stat strip ---------- */
.m-stats {
	border-top: 1px solid var(--m-line);
	border-bottom: 1px solid var(--m-line);
	background: var(--m-surface);
}
.m-stats-inner {
	max-width: var(--m-max);
	margin: 0 auto;
	padding: 32px var(--m-gutter);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}
.m-stat {
	& .num {
		font-size: 40px;
		font-weight: 700;
		color: var(--m-ink);
		letter-spacing: -0.03em;
		line-height: 1;
		font-variant-numeric: tabular-nums;

		& em {
			font-style: normal;
			color: var(--m-red);
		}
	}
	& .label {
		font-size: 13px;
		color: var(--m-ink-mid);
		margin-top: 8px;
		line-height: 1.4;
	}
}

/* ---------- Section ---------- */
.m-section {
	max-width: var(--m-max);
	margin: 0 auto;
	padding: 60px var(--m-gutter);
}
/* Keep anchored sections (#pricing, #how-it-works, …) clear of the fixed header.
   --header-h is set at runtime in +layout.svelte; the static values are fallbacks. */
.m-root [id] {
	scroll-margin-top: var(--header-h, 105px);
}
@media (min-width: 900px) {
	.m-root [id] {
		scroll-margin-top: var(--header-h, 151px);
	}
}
.m-section-head {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 16px;
	margin: 0 auto 48px;
	flex-wrap: wrap;

	& .left {
		max-width: 38rem;
		/* Section title (eyebrow label) is the biggest element; h2 is a supporting subhead below it */
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 12px;
	}
	& h2 {
		font-size: clamp(38px, 4.5vw, 58px);
		line-height: 1.04;
		letter-spacing: -0.02em;
		font-weight: 800;
		color: var(--m-navy);
		margin: 0;
		text-wrap: balance;
	}
	& .label {
		font-size: clamp(20px, 2.2vw, 28px);
		font-weight: 600;
		line-height: 1.2;
		letter-spacing: -0.01em;
		text-transform: none;
		color: var(--m-ink-mid);
		text-wrap: balance;
	}
	& p {
		color: var(--m-ink-mid);
		font-size: 16px;
		max-width: 28rem;
		line-height: 1.55;
		margin: 0 auto;
	}
}

/* ---------- Feature grid (Why Switch) ---------- */
.m-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.m-feature {
	background: var(--m-surface);
	padding: 32px;
	border: 1px solid var(--m-line);
	border-radius: var(--m-r-card);
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease,
		border-color 0.15s ease;

	&:hover {
		transform: translateY(-2px);
		box-shadow: var(--m-shadow-md);
		border-color: var(--m-line-strong);
	}
	&:hover .m-feature-head .ico {
		background: var(--m-red);
		color: #fff;
	}

	& .m-feature-head {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 12px;
	}
	& .ico {
		width: 44px;
		height: 44px;
		flex-shrink: 0;
		border-radius: 12px;
		background: var(--m-red-soft);
		color: var(--m-red);
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 14px;
		transition:
			background 0.15s ease,
			color 0.15s ease;
	}
	& h3 {
		font-size: 20px;
		font-weight: 600;
		letter-spacing: -0.01em;
		margin: 0;
	}
	& p {
		color: var(--m-ink-mid);
		font-size: 14.5px;
		margin: 0;
		line-height: 1.55;
	}
	& .metric {
		margin-top: auto;
		padding-top: 16px;
		border-top: 1px dashed var(--m-line-strong);
		font-size: 12px;
		color: var(--m-ink-low);
		display: flex;
		justify-content: space-between;

		& strong {
			color: var(--m-ink);
			font-weight: 600;
		}
	}
}

/* ---------- How it works ---------- */
.m-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.m-step {
	background: var(--m-surface);
	border: 1px solid var(--m-line);
	border-radius: var(--m-r-card);
	padding: 28px;
	position: relative;

	& .num {
		position: absolute;
		top: 28px;
		right: 28px;
		font-size: 12px;
		color: var(--m-ink-low);
		font-weight: 600;
		font-variant-numeric: tabular-nums;
	}
	& > .ico {
		width: 54px;
		height: 54px;
		border-radius: 14px;
		background: var(--m-navy);
		color: white;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 16px;
		margin-bottom: 20px;
	}
	& h3 {
		font-size: 18px;
		font-weight: 600;
		margin: 0 0 8px;
	}
	& p {
		color: var(--m-ink-mid);
		font-size: 14.5px;
		margin: 0;
		line-height: 1.55;
	}
}

/* ---------- Pull quote / framework ---------- */
.m-framework {
	background: var(--m-navy-deep);
	color: white;
	border-radius: var(--m-r-card);
	padding: 56px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	position: relative;
	overflow: hidden;

	&::before {
		content: '';
		position: absolute;
		right: -100px;
		top: -100px;
		width: 400px;
		height: 400px;
		border-radius: 50%;
		background: radial-gradient(circle, oklch(0.549 0.219 28 / 0.22), transparent 70%);
	}

	& h2 {
		font-size: 36px;
		line-height: 1.1;
		letter-spacing: -0.02em;
		margin: 0 0 16px;
		font-weight: 700;
	}
	& p {
		color: oklch(0.85 0.015 257.7);
		font-size: 16px;
		margin: 0;
		line-height: 1.6;
	}
	& .label {
		color: oklch(0.7 0.08 22);
		font-size: 12px;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		font-weight: 600;
		margin-bottom: 16px;
	}
}
.m-framework-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;

	& li {
		display: flex;
		gap: 12px;
		align-items: start;
		font-size: 15px;
		color: oklch(0.92 0.01 257.7);
		padding: 14px 16px;
		background: oklch(1 0 0 / 0.04);
		border: 1px solid oklch(1 0 0 / 0.08);
		border-radius: 10px;

		& .check {
			color: var(--m-red);
			flex-shrink: 0;
			margin-top: 2px;
		}
		& strong {
			color: white;
			font-weight: 600;
		}
	}
}

/* ---------- FAQ ---------- */
.m-faq {
	display: flex;
	flex-direction: column;
}
.m-faq-item {
	border-bottom: 1px solid var(--m-line);

	& summary {
		list-style: none;
		cursor: pointer;
		padding: 24px 0;
		display: flex;
		justify-content: space-between;
		align-items: start;
		gap: 24px;
		font-size: 18px;
		font-weight: 600;
		color: var(--m-ink);
		transition: color 0.15s ease;

		&::-webkit-details-marker {
			display: none;
		}
		&:hover {
			color: var(--m-red);
		}

		& .plus {
			flex-shrink: 0;
			width: 24px;
			height: 24px;
			border-radius: 50%;
			background: var(--m-blue-soft);
			color: var(--m-navy);
			display: flex;
			align-items: center;
			justify-content: center;
			transition:
				transform 0.2s ease,
				background 0.15s ease,
				color 0.15s ease;
			margin-top: 2px;
		}
	}

	&[open] summary .plus {
		transform: rotate(45deg);
		background: var(--m-red);
		color: white;
	}

	& .answer {
		color: var(--m-ink-mid);
		font-size: 15.5px;
		line-height: 1.6;
		padding: 0 48px 24px 0;
		max-width: 56rem;
	}
}

/* ---------- Team ---------- */
.m-team {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.m-team-card {
	background: var(--m-surface);
	border: 1px solid var(--m-line);
	border-radius: var(--m-r-card);
	overflow: hidden;

	& .photo {
		aspect-ratio: 4 / 3;
		background: var(--m-blue-soft);
		overflow: hidden;

		& img {
			width: 100%;
			height: 100%;
			object-fit: cover;
		}
	}
	& .body {
		padding: 20px;
	}
	& h3 {
		font-size: 17px;
		font-weight: 600;
		margin: 0;
		letter-spacing: -0.01em;
	}
	& .role {
		color: var(--m-ink-low);
		font-size: 13px;
		margin-top: 4px;
	}
}

/* ---------- CTA strip ---------- */
.m-cta {
	background: var(--m-surface);
	border-top: 1px solid var(--m-line);
	border-bottom: 1px solid var(--m-line);

	& h2 {
		font-size: 32px;
		font-weight: 700;
		letter-spacing: -0.02em;
		margin: 0;
		max-width: 36rem;
		line-height: 1.1;
		text-wrap: balance;
	}
	& p {
		color: var(--m-ink-mid);
		margin: 8px 0 0;
		font-size: 15px;
	}
}
.m-cta-inner {
	max-width: var(--m-max);
	margin: 0 auto;
	padding: 56px var(--m-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.m-footer {
	background: var(--m-navy-deep);
	color: oklch(0.85 0.015 257.7);

	& h4 {
		color: white;
		font-size: 13px;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		margin: 0 0 16px;
	}
	& ul {
		list-style: none;
		padding: 0;
		margin: 0;
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	& a {
		color: oklch(0.85 0.015 257.7);
		text-decoration: none;
		font-size: 14px;

		&:hover {
			color: white;
		}
	}
	& .brand p {
		font-size: 14px;
		line-height: 1.6;
		max-width: 22rem;
		margin: 16px 0 0;
	}
}
.m-footer-inner {
	max-width: var(--m-max);
	margin: 0 auto;
	padding: 64px var(--m-gutter) 32px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
}
.m-footer-brands {
	max-width: var(--m-max);
	margin: 0 auto;
	padding: 16px var(--m-gutter);
	border-top: 1px solid oklch(1 0 0 / 0.08);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	font-size: 13px;
	color: oklch(0.75 0.015 257.7);

	.brands-label {
		color: oklch(0.85 0.015 257.7);
		font-weight: 600;
	}
	.brands-sep {
		color: oklch(0.5 0.015 257.7);
	}
	a {
		color: oklch(0.85 0.015 257.7);
		text-decoration: none;
		&:hover {
			color: white;
			text-decoration: underline;
		}
		strong {
			color: white;
		}
	}
}
.m-footer-bottom {
	max-width: var(--m-max);
	margin: 0 auto;
	padding: 24px var(--m-gutter);
	border-top: 1px solid oklch(1 0 0 / 0.08);
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: oklch(0.65 0.015 257.7);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.m-hero {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 48px var(--m-gutter);
	}
	.m-hero-visual {
		aspect-ratio: 4 / 3;
	}
	.m-stats-inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	.m-section {
		padding: 44px var(--m-gutter);
	}
	.m-section-head {
		flex-direction: column;
		/* Keep the centered treatment on mobile — `start` shrink-wrapped .left to its
		   content width and pinned it left, so short titles looked off-centre. */
		align-items: center;
	}
	/* CTA strip stacks on mobile — centre the copy + buttons instead of leaving
	   them pinned to the left where the row used to sit. */
	.m-cta-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.m-cta-inner > div:last-child {
		justify-content: center;
	}
	.m-features {
		grid-template-columns: 1fr;
	}
	.m-steps {
		grid-template-columns: 1fr;
	}
	.m-framework {
		grid-template-columns: 1fr;
		padding: 32px;
	}
	.m-team {
		grid-template-columns: 1fr;
	}
	.m-footer-inner {
		grid-template-columns: 1fr 1fr;
	}
	.m-nav {
		display: none;
	}
}
