.ych-download-gate[hidden] {
	display: none;
}

.ych-download-gate {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	padding: 1.25rem;
	background: rgba(3, 10, 19, 0.82);
	place-items: center;
	backdrop-filter: blur(0.6rem);
}

.ych-download-gate__dialog {
	position: relative;
	width: min(100%, 34rem);
	max-height: calc(100svh - 2.5rem);
	overflow-y: auto;
	padding: clamp(1.5rem, 5vw, 2.5rem);
	border: 0.0625rem solid var(--ych-border-strong);
	border-radius: var(--ych-radius-panel);
	background: var(--ych-bg-card);
	box-shadow: var(--ych-shadow-large);
	color: var(--ych-text-primary);
}

.ych-download-gate__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0.0625rem solid var(--ych-border-strong);
	border-radius: 50%;
	background: transparent;
	color: var(--ych-text-primary);
	cursor: pointer;
	place-items: center;
}

.ych-download-gate__eyebrow {
	margin: 0 3rem 0.65rem 0;
	color: var(--ych-accent-blue);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ych-download-gate h2 {
	margin: 0 3rem 1rem 0;
	color: var(--ych-text-primary);
	font-size: clamp(1.8rem, 6vw, 2.6rem);
}

.ych-download-gate__intro,
.ych-download-gate__note {
	color: var(--ych-text-secondary);
	line-height: 1.6;
}

.ych-download-gate__form {
	display: grid;
	gap: 1rem;
	margin-top: 1.5rem;
}

.ych-download-gate__field label {
	display: block;
	margin-bottom: 0.45rem;
	color: var(--ych-text-primary);
	font-weight: 700;
}

.ych-download-gate__field input[type="email"] {
	width: 100%;
	min-height: 3.25rem;
	padding: 0.75rem 0.9rem;
	border: 0.0625rem solid var(--ych-border-strong);
	border-radius: 0.75rem;
	background: var(--ych-bg-primary);
	color: var(--ych-text-primary);
	font: inherit;
}

.ych-download-gate__consent {
	display: grid;
	grid-template-columns: 1.2rem minmax(0, 1fr);
	gap: 0.65rem;
	color: var(--ych-text-secondary);
	font-size: 0.88rem;
	line-height: 1.5;
}

.ych-download-gate__consent input {
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.2rem;
	accent-color: var(--ych-accent-blue);
}

.ych-download-gate__error {
	min-height: 1.25em;
	margin: 0;
	color: #ffb4b4;
	font-size: 0.82rem;
	font-weight: 700;
}

.ych-download-gate__submit {
	min-height: 3.25rem;
	padding: 0.75rem 1.2rem;
	border: 0;
	border-radius: var(--ych-radius-button);
	background: var(--ych-accent-gradient);
	color: var(--ych-bg-primary);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ych-download-gate__note {
	margin: 1rem 0 0;
	font-size: 0.78rem;
}

.ych-download-gate__note a {
	color: var(--ych-accent-blue);
}

.ych-download-gate :where(a, button, input):focus-visible {
	outline: 0.1875rem solid var(--ych-focus);
	outline-offset: 0.2rem;
}

html.ych-download-gate-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.ych-download-gate * {
		transition: none !important;
	}
}
