/* /signup/, /signup-thank-you/ and /leads/ — built on the variables and .btn of styles.css. */

.signup [hidden],
.thanks [hidden] {
	display: none !important;
}

.signup,
.thanks,
.leads {
	position: relative;
	overflow: hidden;
	background: radial-gradient(circle at 85% 20%, rgba(36, 119, 245, .10), transparent 38%), linear-gradient(180deg, #fff 0%, #f8fbff 100%);
	border-bottom: 1px solid var(--border);
}

/* Signup */

.signup-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
	gap: 64px;
	align-items: start;
	padding: 72px 0 96px;
}

.signup-intro {
	padding-top: 28px;
}

.signup-intro h1 {
	font-size: clamp(40px, 4.6vw, 58px);
	line-height: 1.04;
	letter-spacing: -2.6px;
	margin-bottom: 20px;
}

.signup-copy {
	font-size: 19px;
	color: var(--text);
	max-width: 520px;
	margin-bottom: 36px;
}

.signup-points {
	list-style: none;
	display: grid;
	gap: 20px;
	max-width: 520px;
}

.signup-points li {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.signup-points .icon {
	flex: none;
	margin: 0;
}

.signup-points h3 {
	font-size: 18px;
	margin-bottom: 2px;
}

.signup-points p {
	font-size: 15px;
	color: var(--text);
}

.signup-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 24px;
	padding: 36px;
	box-shadow: 0 25px 60px rgba(60, 95, 150, .12);
}

.signup-title {
	font-size: 30px;
	line-height: 1.15;
	letter-spacing: -1px;
	margin-bottom: 6px;
}

.signup-sub {
	color: var(--text);
	margin-bottom: 26px;
}

.signup-form {
	display: flex;
	flex-direction: column;
}

.signup-fields {
	display: grid;
	gap: 16px;
}

.signup-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.signup-label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #314360;
}

.signup-input {
	display: block;
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 1px solid #d7e1ef;
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-size: 16px;
	color: var(--navy);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.signup-input::placeholder {
	color: #97a3b8;
	opacity: 1;
}

.signup-input:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 4px rgba(36, 119, 245, .16);
}

.signup-input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #fff inset;
	-webkit-text-fill-color: var(--navy);
}

.is-error .signup-input {
	border-color: #d93a3a;
}

/* The red border stays, the ring shows where the focus is. */
.is-error .signup-input:focus {
	box-shadow: 0 0 0 4px rgba(217, 58, 58, .16);
}

/* Consent checkboxes */

.signup-checks {
	display: grid;
	gap: 14px;
	margin-top: 24px;
}

.signup-check {
	position: relative;
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 12px;
	font-size: 13.5px;
	line-height: 1.55;
	color: #465773;
	cursor: pointer;
}

.signup-check-input {
	position: absolute;
	top: 1px;
	left: 0;
	width: 22px;
	height: 22px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.signup-check-box {
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 1.5px solid #9aa8bd;
	border-radius: 6px;
	background: #fff no-repeat center / 16px 16px;
	transition: background-color .15s ease, border-color .15s ease;
}

.signup-check-input:checked + .signup-check-box {
	border-color: var(--blue);
	background-color: var(--blue);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.signup-check-input:focus-visible + .signup-check-box {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

.signup-check.is-error .signup-check-box {
	border-color: #d93a3a;
}

.signup-check a {
	color: var(--blue);
	font-weight: 600;
	text-decoration: underline;
}

/* Error plaques */

.signup-errors {
	display: grid;
	gap: 10px;
}

.signup-errors.has-errors {
	margin-top: 22px;
}

.signup-error {
	padding: 12px 14px;
	border: 1px solid #f1c4c4;
	border-radius: 12px;
	background: #fff5f5;
	color: #b42323;
	font-size: 14.5px;
	line-height: 1.45;
	text-align: center;
}

.signup-error strong {
	display: block;
}

.signup-btn {
	width: 100%;
	margin-top: 24px;
	border: 0;
	font-family: inherit;
	cursor: pointer;
}

.signup-btn:focus-visible {
	outline: 3px solid rgba(36, 119, 245, .45);
	outline-offset: 3px;
}

.signup-btn[disabled] {
	opacity: .65;
	cursor: progress;
}

/* Thank you */

.thanks-inner {
	min-height: 560px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 96px 0;
}

.thanks-card {
	max-width: 640px;
	padding: 48px 44px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 24px;
	box-shadow: 0 25px 60px rgba(60, 95, 150, .12);
}

.thanks-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 22px;
	border-radius: 50%;
	background: var(--blue-light);
	color: var(--blue);
}

.thanks-card h1 {
	font-size: clamp(32px, 4vw, 42px);
	line-height: 1.12;
	letter-spacing: -1.6px;
	margin-bottom: 16px;
}

.thanks-card p {
	font-size: 18px;
	color: var(--text);
}

.thanks-card p + p {
	margin-top: 8px;
}

.thanks-mail {
	color: var(--blue);
	font-weight: 700;
}

.thanks-back {
	display: inline-block;
	margin-top: 28px;
	font-weight: 600;
	color: var(--blue);
}

/* Leads (admin) */

.leads-inner {
	padding: 72px 0 96px;
}

.leads-card {
	max-width: 900px;
	margin: 0 auto;
	padding: 36px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 24px;
}

.leads-card h1 {
	font-size: 36px;
	letter-spacing: -1.4px;
	margin-bottom: 20px;
}

.leads-card .signup-error {
	margin-bottom: 16px;
	text-align: left;
}

.leads-login {
	max-width: 360px;
}

.leads-note {
	color: var(--text);
	margin-bottom: 18px;
}

.leads-note a,
.leads-download {
	color: var(--blue);
	font-weight: 600;
}

.leads-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
	margin-bottom: 24px;
}

.leads-table th,
.leads-table td {
	padding: 10px 8px;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

.leads-logout {
	border: 0;
	background: none;
	font: inherit;
	color: var(--text);
	text-decoration: underline;
	cursor: pointer;
}

/* Mobile: the form right under the heading. */

@media (max-width: 900px) {
	.signup-inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		padding: 48px 0 72px;
	}

	.signup-intro {
		padding-top: 0;
	}

	.signup-copy {
		margin-bottom: 0;
	}

	.signup-points {
		display: none;
	}
}

@media (max-width: 600px) {
	.signup-intro h1 {
		font-size: 36px;
		letter-spacing: -1.6px;
	}

	.signup-copy {
		font-size: 17px;
	}

	.signup-card {
		padding: 26px 20px;
		border-radius: 20px;
	}

	.signup-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.thanks-inner {
		min-height: 0;
		padding: 56px 0 72px;
	}

	.thanks-card {
		padding: 36px 22px;
	}

	.leads-card {
		padding: 26px 18px;
	}

	.leads-table {
		display: block;
		overflow-x: auto;
	}
}

/* Windows high contrast drops backgrounds, so the custom box would never look checked: show the native one. */
@media (forced-colors: active) {
	.signup-check-input {
		opacity: 1;
	}

	.signup-check-box {
		visibility: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.signup *,
	.signup *::before {
		transition: none !important;
	}
}
