/* Gym opening countdown (template-parts/gym-countdown.php). Dark gym
   palette from base.css. Plain CSS functions only (no color-mix(),
   no min()/max()/clamp() nested with calc()/var()) — the host's CSS
   aggregator has mangled those before. */

body.revive-countdown-page {
	background: #070605;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

.cd {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 20px 48px;
	overflow: hidden;
	isolation: isolate;
}

/* Soft green light from above + faint diagonal stripes echoing the
   logo's slash. */
.cd__glow {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 70% 55% at 50% -5%, rgba(139, 197, 63, 0.22), rgba(139, 197, 63, 0) 70%),
		radial-gradient(ellipse 50% 40% at 85% 110%, rgba(139, 197, 63, 0.1), rgba(139, 197, 63, 0) 70%),
		repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.028) 0 2px, rgba(255, 255, 255, 0) 2px 26px);
	pointer-events: none;
}

.cd__inner {
	width: 100%;
	max-width: 880px;
	text-align: center;
}

/* Its own centered line — inline, it shared a line with the "Bientôt"
   pill below and pushed it off-center. */
.cd__logo {
	display: table;
	margin: 0 auto 36px;
}

.cd__logo .site-logo__img {
	width: 260px;
	height: auto;
	max-width: 100%;
}

.cd__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 7px 14px;
	border: 1px solid rgba(139, 197, 63, 0.35);
	border-radius: 999px;
	background: rgba(139, 197, 63, 0.08);
	color: var(--accent);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.cd__pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 0 rgba(139, 197, 63, 0.6);
	animation: cd-pulse 2s ease-out infinite;
}

@keyframes cd-pulse {
	0% { box-shadow: 0 0 0 0 rgba(139, 197, 63, 0.55); }
	80%, 100% { box-shadow: 0 0 0 10px rgba(139, 197, 63, 0); }
}

.cd__title {
	font-size: 54px;
	line-height: 1.02;
	margin: 0 0 16px;
	color: #f5f3ef;
}

.cd__text {
	max-width: 520px;
	margin: 0 auto 44px;
	color: var(--text-muted);
	font-size: 17px;
	line-height: 1.6;
}

/* --- Timer ------------------------------------------------------------ */
.cd__timer {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	max-width: 760px;
	margin: 0 auto 30px;
}

.cd__unit {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 40px rgba(0, 0, 0, 0.35);
}

.cd__unit--seconds {
	border-color: rgba(139, 197, 63, 0.35);
}

.cd__num {
	display: flex;
	justify-content: center;
	font-family: var(--font-heading);
	font-size: 64px;
	line-height: 1;
	color: #f5f3ef;
}

/* One fixed-width slot per digit: a proportional "1" next to an "8"
   would make the number shift sideways every second otherwise. */
.cd__digit {
	position: relative;
	display: inline-block;
	width: 0.74em;
	height: 1em;
	overflow: hidden;
	text-align: center;
}

.cd__digit > span {
	position: absolute;
	inset: 0;
}

.cd__digit .is-in {
	animation: cd-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cd__digit .is-out {
	animation: cd-out 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cd-in {
	from { transform: translateY(-100%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

@keyframes cd-out {
	from { transform: translateY(0); opacity: 1; }
	to { transform: translateY(100%); opacity: 0; }
}

.cd__label {
	margin-top: 10px;
	color: var(--text-muted);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.cd__unit--seconds .cd__num {
	color: var(--accent);
}

/* Seconds ring: drains over each minute. */
.cd__ring {
	position: absolute;
	inset: 8px;
	width: calc(100% - 16px);
	height: calc(100% - 16px);
	transform: rotate(-90deg);
	pointer-events: none;
}

.cd__ring circle {
	fill: none;
	stroke-width: 2.5;
}

.cd__ring-track {
	stroke: rgba(255, 255, 255, 0.07);
}

.cd__ring-bar {
	stroke: var(--accent);
	stroke-linecap: round;
	filter: drop-shadow(0 0 4px rgba(139, 197, 63, 0.7));
	transition: stroke-dashoffset 0.95s linear;
}

.cd__ring-bar.is-reset {
	transition: none;
}

/* --- Below the timer -------------------------------------------------- */
.cd__date {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 34px;
	color: #e9e6e0;
	font-size: 16px;
	font-weight: 600;
}

.cd__date .shop-icon {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--accent);
}

.cd__date time::first-letter {
	text-transform: uppercase;
}

/* 12-month pre-sale offer. */
.cd__promo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 760px;
	margin: 0 auto 20px;
	padding: 22px 26px;
	border: 1px solid var(--accent);
	border-radius: 22px;
	background: rgba(139, 197, 63, 0.1);
	text-align: left;
}

.cd__promo-eyebrow {
	margin-bottom: 6px;
	color: var(--accent);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.cd__promo-title {
	color: #f5f3ef;
	font-family: var(--font-heading);
	font-size: 22px;
	line-height: 1.2;
}

.cd__promo p {
	margin: 6px 0 0;
	color: var(--text-muted);
	font-size: 14px;
}

.cd__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 34px;
}

.cd__promo .btn {
	flex: none;
}

.cd__promo .btn,
.cd__actions .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	border-radius: 999px;
	padding: 14px 28px;
}

.cd__cta .shop-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}

.cd__cta:hover .shop-icon {
	transform: translateX(3px);
}

.cd__coords {
	margin: 0;
	color: var(--text-legal);
	font-size: 13px;
}

.cd__coords a {
	color: var(--text-muted);
}

.cd__coords a:hover {
	color: var(--accent);
}

.cd__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Opened state (assets/js/countdown.js, right at zero). */
.cd.is-open .cd__unit {
	border-color: rgba(139, 197, 63, 0.5);
}

.cd.is-open .cd__num {
	color: var(--accent);
}

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 760px) {
	.cd__title {
		font-size: 40px;
	}

	.cd__num {
		font-size: 46px;
	}

	.cd__timer {
		gap: 10px;
	}

	.cd__unit {
		border-radius: 18px;
	}

	.cd__label {
		font-size: 10.5px;
		letter-spacing: 0.12em;
	}

	.cd__promo {
		flex-direction: column;
		align-items: stretch;
		padding: 20px;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.cd {
		padding: 40px 20px 36px;
	}

	.cd__logo {
		margin-bottom: 28px;
	}

	.cd__logo .site-logo__img {
		width: 210px;
	}

	.cd__title {
		font-size: 34px;
	}

	.cd__text {
		font-size: 16px;
		margin-bottom: 32px;
	}

	.cd__timer {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 340px;
		gap: 12px;
	}

	.cd__num {
		font-size: 52px;
	}

	.cd__label {
		font-size: 11px;
	}

	.cd__actions .btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cd__pulse,
	.cd__digit .is-in,
	.cd__digit .is-out {
		animation: none;
	}

	.cd__digit .is-out {
		display: none;
	}

	.cd__ring-bar {
		transition: none;
	}
}
