/*
 * Annette Quiz — Announcement / launch popup
 * Self-contained (no reliance on quiz-page CSS vars). Warm boutique aesthetic,
 * matching the meditation popup and the brand design system.
 */

.aq-announce {
	--aq-an-accent: #B48748;
	--aq-an-accent-hover: #705547;
	--aq-an-bg: #FFFFFF;
	--aq-an-text: #3D2F26;
	--aq-an-text-muted: #7A6F66;
	--aq-an-border: #E9E1D6;
	--aq-an-warm: #F0EAE3;

	position: fixed;
	inset: 0;
	z-index: 100001; /* above the meditation popup (100000) if both ever show */
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
	color: var(--aq-an-text);
}

.aq-announce, .aq-announce *, .aq-announce *::before, .aq-announce *::after {
	box-sizing: border-box;
}

.aq-announce.is-open {
	display: flex;
}

.aq-announce__overlay {
	position: absolute;
	inset: 0;
	background: rgba(61, 47, 38, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	animation: aq-an-fade 220ms ease both;
}

.aq-announce__card {
	position: relative;
	width: 100%;
	max-width: 480px;
	background: var(--aq-an-bg);
	border-radius: 20px;
	box-shadow: 0 30px 80px rgba(61, 47, 38, 0.35);
	overflow: hidden;
	animation: aq-an-rise 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}

.aq-announce__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--aq-an-border);
	color: var(--aq-an-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 160ms ease, transform 160ms ease;
	z-index: 2;
}

.aq-announce__close:hover,
.aq-announce__close:focus-visible {
	background: var(--aq-an-warm);
	transform: rotate(90deg);
	outline: none;
}

.aq-announce__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--aq-an-warm);
}

.aq-announce__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.aq-announce__content {
	padding: 28px 28px 26px;
	text-align: center;
}

.aq-announce__eyebrow {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--aq-an-accent);
	font-weight: 600;
	margin-bottom: 12px;
}

.aq-announce__headline {
	font-family: 'Instrument Serif', 'Times New Roman', Georgia, serif;
	font-weight: 400;
	font-size: 34px;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--aq-an-text);
	margin: 0 0 12px;
}

.aq-announce__body {
	font-size: 15px;
	line-height: 1.6;
	color: var(--aq-an-text-muted);
	margin: 0 0 22px;
}

.aq-announce__cta,
.aq-announce__cta:link,
.aq-announce__cta:visited {
	display: block;
	width: 100%;
	background: var(--aq-an-accent);
	color: #FFFFFF;
	text-decoration: none;
	border: none;
	border-radius: 999px;
	padding: 16px 24px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
	box-shadow: 0 8px 22px rgba(180, 135, 72, 0.3);
	font-family: inherit;
}

.aq-announce__cta:hover,
.aq-announce__cta:focus-visible {
	background: var(--aq-an-accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(112, 85, 71, 0.35);
	color: #FFFFFF;
	outline: none;
}

.aq-announce__note {
	margin-top: 14px;
	font-size: 12px;
	color: var(--aq-an-text-muted);
	letter-spacing: 0.02em;
}

@keyframes aq-an-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes aq-an-rise {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.aq-announce__overlay,
	.aq-announce__card {
		animation: none;
	}
	.aq-announce__close,
	.aq-announce__cta {
		transition: none;
	}
}

@media (max-width: 480px) {
	.aq-announce {
		padding: 0;
		align-items: flex-end;
	}
	.aq-announce__card {
		max-width: 100%;
		border-radius: 20px 20px 0 0;
		max-height: 92vh;
	}
	.aq-announce__content {
		padding: 24px 22px 22px;
	}
	.aq-announce__headline {
		font-size: 29px;
	}
}
