/* ─── Lead-capture popup ─────────────────────────────────────────────────── */

body.popup-open { overflow: hidden; }

.lead-popup {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.lead-popup[hidden] { display: none; }

.lead-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / .55);
	cursor: pointer;
}

.lead-popup__box {
	position: relative;
	z-index: 1;
	background: var(--color-surface-2);
	border-radius: var(--radius-lg);
	padding: 2.5rem 2rem;
	max-width: 440px;
	width: 100%;
	box-shadow: var(--shadow-lg);
}

.lead-popup__close {
	position: absolute;
	top: .875rem;
	right: .875rem;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-alt, #f8fafc);
	border: 1px solid var(--hairline, #e5e7eb);
	border-radius: 50%;
	cursor: pointer;
	color: var(--muted, #6b7280);
	transition: background .15s, color .15s;
}

.lead-popup__close:hover {
	background: var(--brand-soft, color-mix(in srgb, var(--brand) 12%, white));
	color: var(--brand);
}

.lead-popup__box .eyebrow {
	font-size: var(--text-label);
	font-weight: var(--fw-med);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--brand-text);
}

.lead-popup__box h2 {
	font-size: clamp(1.375rem, 4vw, 1.75rem);
	margin: .5rem 0 .75rem;
	line-height: 1.2;
}

.lead-popup__box > p {
	color: var(--muted, #6b7280);
	font-size: .9375rem;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.lead-popup__form {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.lead-popup__form input[type="email"] {
	width: 100%;
	padding: .75rem 1rem;
	font-family: var(--font, inherit);
	font-size: 1rem;
	color: var(--text, #111);
	background: var(--bg, #fff);
	border: 1.5px solid var(--hairline, #e5e7eb);
	border-radius: var(--radius, 8px);
	transition: border-color .15s, box-shadow .15s;
}

.lead-popup__form input[type="email"]::placeholder {
	color: var(--muted, #9ca3af);
}

.lead-popup__form input[type="email"]:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px var(--brand-tint, color-mix(in srgb, var(--brand) 14%, white));
}

.lead-popup__form .btn {
	width: 100%;
	justify-content: center;
}

.lead-popup__form .btn:disabled {
	opacity: .65;
	cursor: not-allowed;
}

.lead-popup__note {
	font-size: .8125rem !important;
	color: var(--muted, #9ca3af) !important;
	text-align: center;
	margin: .875rem 0 0 !important;
}

.lead-popup__error {
	margin-top: .75rem;
	padding: .625rem .875rem;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: var(--radius, 8px);
	color: #dc2626;
	font-size: .875rem;
	line-height: 1.5;
}

/* ─── Download success page ───────────────────────────────────────────────── */

.download-page {
	padding: 5rem 0 6rem;
}

.download-page__hero {
	text-align: center;
	max-width: 560px;
	margin: 0 auto 4rem;
}

.download-page__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background: var(--brand-soft, color-mix(in srgb, var(--brand) 12%, white));
	border-radius: 50%;
	color: var(--brand);
	margin-bottom: 1.5rem;
}

.download-page__hero .eyebrow {
	font-size: var(--text-label);
	font-weight: var(--fw-med);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--brand-text);
}

.download-page__hero h1 {
	font-size: clamp(2rem, 5vw, 3rem);
	margin: .625rem 0 1rem;
	line-height: 1.15;
}

.download-page__lead {
	color: var(--muted, #6b7280);
	font-size: 1.0625rem;
	line-height: 1.65;
	margin-bottom: 2rem;
}

.download-page__wp-link {
	display: block;
	margin-top: 1.25rem;
	font-size: .9375rem;
	color: var(--muted, #6b7280);
	text-decoration: none;
	transition: color .15s;
}

.download-page__wp-link:hover { color: var(--brand); }

.download-page__steps {
	max-width: 480px;
	margin: 0 auto;
	text-align: left;
}

.download-page__steps h2 {
	font-size: 1.25rem;
	margin-bottom: 1.25rem;
	color: var(--text, #111);
}

.download-page__steps-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	counter-reset: steps;
}

.download-page__steps-list li {
	display: grid;
	grid-template-columns: 2rem 1fr;
	gap: .75rem;
	align-items: start;
	counter-increment: steps;
	font-size: .9375rem;
	color: var(--muted, #6b7280);
	line-height: 1.6;
}

.download-page__steps-list li::before {
	content: counter(steps);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--brand-tint);
	color: var(--brand-text);
	font-size: .8125rem;
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 1px;
}

.download-page__steps-list strong {
	display: block;
	color: var(--text, #111);
	font-weight: 600;
	margin-bottom: .125rem;
}
