/**
 * Homepage launch-offer modal — luxury strip, sharp corners, matches top promo bar energy.
 */

body.home-launch-offer-open {
	overflow: hidden;
}

.home-launch-offer {
	position: fixed;
	inset: 0;
	z-index: 1080;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	pointer-events: none;
}

.home-launch-offer:not([hidden]) {
	pointer-events: auto;
}

.home-launch-offer__backdrop {
	position: absolute;
	inset: 0;
	background: var(--color-overlay-scrim, rgba(0, 0, 0, 0.5));
	cursor: pointer;
}

.home-launch-offer__panel {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: var(--black, #0a0a0a);
	color: var(--white, #fff);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
	padding: 40px 36px 36px;
	animation: home-launch-offer-in 0.2s ease-out forwards;
}

@keyframes home-launch-offer-in {
	from {
		opacity: 0;
		transform: translate3d(0, 10px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

.home-launch-offer__panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.15),
		rgba(255, 255, 255, 0.85) 45%,
		rgba(255, 255, 255, 0.15)
	);
	pointer-events: none;
}

.home-launch-offer__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.65);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: color var(--motion-fast, 0.15s ease);
}

.home-launch-offer__close:hover,
.home-launch-offer__close:focus-visible {
	color: var(--white, #fff);
	outline: none;
}

.home-launch-offer__eyebrow {
	font-family: var(--font-body);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0 16px;
}

.home-launch-offer__title {
	font-family: var(--font-editorial, "Cormorant Garamond", Georgia, serif);
	font-size: clamp(1.75rem, 5vw, 2.25rem);
	font-weight: 400;
	font-style: italic;
	line-height: 1.2;
	color: var(--white, #fff);
	margin: 0 0 14px;
	letter-spacing: 0.02em;
}

.home-launch-offer__lead {
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 0 16px;
}

.home-launch-offer__copy {
	font-family: var(--font-body);
	font-size: 13px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 28px;
}

.home-launch-offer__copy strong {
	color: rgba(255, 255, 255, 0.95);
	font-weight: 500;
}

.home-launch-offer__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
}

/*
 * CTA: must beat global `a { color: var(--bs-link-color) }`, panel text color, and any homepage link rules.
 * Inline styles on the element + !important here keep label visible on white fill.
 */
.home-launch-offer .home-launch-offer__actions a.home-launch-offer__cta,
.homepage .home-launch-offer a.home-launch-offer__cta {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-decoration: none !important;
	color: #0a0a0a !important;
	background-color: #ffffff !important;
	-webkit-text-fill-color: #0a0a0a;
	padding: 16px 28px;
	border: 1px solid #ffffff !important;
	-webkit-font-smoothing: antialiased;
	transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.home-launch-offer .home-launch-offer__actions a.home-launch-offer__cta:hover,
.homepage .home-launch-offer a.home-launch-offer__cta:hover,
.home-launch-offer .home-launch-offer__actions a.home-launch-offer__cta:visited,
.homepage .home-launch-offer a.home-launch-offer__cta:visited {
	color: #0a0a0a !important;
	-webkit-text-fill-color: #0a0a0a;
	background-color: #f0f0f0 !important;
	border-color: #f0f0f0 !important;
}

.home-launch-offer .home-launch-offer__actions a.home-launch-offer__cta:focus-visible,
.homepage .home-launch-offer a.home-launch-offer__cta:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
	color: #0a0a0a !important;
	-webkit-text-fill-color: #0a0a0a;
}

.home-launch-offer__dismiss {
	font-family: var(--font-body);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	background: none;
	border: none;
	padding: 8px 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: color var(--motion-fast, 0.15s ease);
}

.home-launch-offer__dismiss:hover,
.home-launch-offer__dismiss:focus-visible {
	color: rgba(255, 255, 255, 0.9);
	outline: none;
}

@media (max-width: 479px) {
	.home-launch-offer__panel {
		padding: 36px 24px 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-launch-offer__panel {
		animation: none;
		opacity: 1;
		transform: none;
	}
}
