/** Premium newsletter landing page. */

.ych-page--newsletter {
	background: var(--ych-bg-primary);
	color: var(--ych-text-primary);
}

.ych-newsletter-hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(36rem, 70vh, 48rem);
	overflow: hidden;
	display: grid;
	align-items: end;
	background: #071525;
}

.ych-newsletter-hero__media,
.ych-newsletter-hero__overlay {
	position: absolute;
	inset: 0;
}

.ych-newsletter-hero__media {
	z-index: -2;
}

.ych-newsletter-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 44%;
}

.ych-newsletter-hero__overlay {
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(5, 17, 31, 0.96) 0%, rgba(5, 17, 31, 0.79) 46%, rgba(5, 17, 31, 0.32) 100%),
		linear-gradient(0deg, rgba(5, 17, 31, 0.72), transparent 50%);
}

.ych-newsletter-hero__content {
	width: 100%;
	padding-block: clamp(8rem, 15vw, 12rem) clamp(4.5rem, 8vw, 7rem);
}

.ych-newsletter-breadcrumb {
	display: flex;
	gap: 0.7rem;
	align-items: center;
	margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
	color: rgba(255, 255, 255, 0.74);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ych-newsletter-breadcrumb a {
	color: #8ec5ff;
	text-decoration: none;
}

.ych-newsletter-breadcrumb a:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.ych-newsletter-eyebrow {
	margin: 0 0 1rem;
	color: #8ec5ff;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ych-newsletter-hero h1 {
	max-width: 12ch;
	margin: 0;
	color: #fff;
	font-family: var(--ych-font-heading);
	font-size: clamp(3.5rem, 8vw, 6.5rem);
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 0.95;
	text-wrap: balance;
}

.ych-newsletter-hero__description {
	max-width: 42rem;
	margin: 1.5rem 0 2rem;
	color: rgba(255, 255, 255, 0.84);
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	line-height: 1.65;
}

.ych-newsletter-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	min-height: 3.5rem;
	padding: 0.95rem 1.5rem;
	border: 0.0625rem solid rgba(255, 255, 255, 0.28);
	border-radius: 0.85rem;
	background: linear-gradient(135deg, #744db6, #9a72d0 55%, #ef9b42);
	box-shadow: 0 1rem 2.5rem rgba(37, 18, 74, 0.28);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.ych-newsletter-button:hover {
	transform: translateY(-0.15rem);
	box-shadow: 0 1.2rem 3rem rgba(37, 18, 74, 0.38);
	color: #fff;
}

.ych-newsletter-button:focus-visible {
	outline: 0.2rem solid #fff;
	outline-offset: 0.25rem;
}

.ych-newsletter-community,
.ych-newsletter-benefits,
.ych-newsletter-cta {
	padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.ych-newsletter-community__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.75fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}

.ych-newsletter-community__copy h2,
.ych-newsletter-section-heading h2,
.ych-newsletter-cta h2 {
	margin: 0;
	color: var(--ych-text-primary);
	font-family: var(--ych-font-heading);
	font-size: clamp(2.4rem, 5vw, 4.3rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.04;
	text-wrap: balance;
}

.ych-newsletter-community__copy > p:last-child,
.ych-newsletter-cta p {
	max-width: 50rem;
	margin: 1.5rem 0 0;
	color: var(--ych-text-secondary);
	font-size: 1.05rem;
	line-height: 1.8;
}

.ych-newsletter-community__stats {
	display: grid;
	gap: 1rem;
}

.ych-newsletter-stat {
	position: relative;
	overflow: hidden;
	padding: clamp(1.6rem, 4vw, 2.3rem);
	border: 0.0625rem solid var(--ych-border-strong);
	border-radius: 1.25rem;
	background:
		radial-gradient(circle at 100% 0%, rgba(154, 114, 208, 0.22), transparent 55%),
		var(--ych-bg-card);
	box-shadow: var(--ych-shadow-small);
}

.ych-newsletter-stat strong {
	display: block;
	color: var(--ych-text-primary);
	font-family: var(--ych-font-heading);
	font-size: clamp(2.4rem, 5vw, 3.7rem);
	line-height: 1;
}

.ych-newsletter-stat span {
	display: block;
	margin-top: 0.55rem;
	color: var(--ych-text-secondary);
	font-weight: 700;
}

.ych-newsletter-benefits {
	border-block: 0.0625rem solid var(--ych-border-subtle);
	background: var(--ych-bg-secondary);
}

.ych-newsletter-section-heading {
	max-width: 54rem;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.ych-newsletter-benefits__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 1.5rem);
}

.ych-newsletter-benefit {
	min-height: 18rem;
	padding: clamp(1.6rem, 3vw, 2.3rem);
	border: 0.0625rem solid var(--ych-border-strong);
	border-radius: 1.25rem;
	background: linear-gradient(155deg, var(--ych-bg-card), rgba(24, 43, 67, 0.82));
	box-shadow: var(--ych-shadow-small);
}

.ych-newsletter-benefit__icon {
	display: grid;
	width: 3rem;
	height: 3rem;
	place-items: center;
	border: 0.0625rem solid rgba(142, 197, 255, 0.35);
	border-radius: 50%;
	background: rgba(142, 197, 255, 0.08);
	color: #8ec5ff;
	font-size: 1.25rem;
}

.ych-newsletter-benefit h3 {
	margin: 2.5rem 0 0.9rem;
	color: var(--ych-text-primary);
	font-family: var(--ych-font-heading);
	font-size: clamp(1.55rem, 3vw, 2rem);
	letter-spacing: -0.03em;
}

.ych-newsletter-benefit p {
	margin: 0;
	color: var(--ych-text-secondary);
	line-height: 1.7;
}

.ych-newsletter-cta__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
	padding: clamp(2rem, 5vw, 4.5rem);
	border: 0.0625rem solid rgba(154, 114, 208, 0.35);
	border-radius: 1.5rem;
	background:
		radial-gradient(circle at 90% 0%, rgba(239, 155, 66, 0.22), transparent 35%),
		linear-gradient(135deg, #16253a, #241b43);
	box-shadow: var(--ych-shadow-medium);
}

.ych-newsletter-button--light {
	min-width: 15rem;
}

@media (max-width: 56rem) {
	.ych-newsletter-community__grid,
	.ych-newsletter-cta__panel {
		grid-template-columns: 1fr;
	}

	.ych-newsletter-benefits__grid {
		grid-template-columns: 1fr;
	}

	.ych-newsletter-benefit {
		min-height: 0;
	}
}

@media (max-width: 40rem) {
	.ych-newsletter-hero {
		min-height: 40rem;
	}

	.ych-newsletter-hero__overlay {
		background: linear-gradient(0deg, rgba(5, 17, 31, 0.98) 0%, rgba(5, 17, 31, 0.74) 68%, rgba(5, 17, 31, 0.45) 100%);
	}

	.ych-newsletter-hero__media img {
		object-position: 58% center;
	}

	.ych-newsletter-button,
	.ych-newsletter-button--light {
		width: 100%;
	}

	.ych-newsletter-cta__panel {
		border-radius: 1.1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ych-newsletter-button {
		transition: none;
	}

	.ych-newsletter-button:hover {
		transform: none;
	}
}
