/*--------------------------------------------------------------
# Inner Circle — Next Call Countdown
# Centered heading over a bordered bar: pulsing indicator,
# call date/time, days/hrs/mins/secs, and a join CTA.
--------------------------------------------------------------*/

/* ── Section ── */
.ic-countdown {
	background: var(--tpp-white);
	/* No top padding — .ic-stats above already carries 100px + 48px.
	   The bottom padding supplies the gap before .ic-clips, which has
	   none of its own. */
	padding: 0 0 100px;
	overflow: hidden;
}

/* ── Container ── */
.ic-countdown__container {
	width: 100%;
	max-width: var(--tpp-container-max);
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);

	/* Scroll-reveal */
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ic-countdown__container.is-visible {
	opacity: 1;
	transform: translateY(0);
}


/* ──────────────────────────────────────────────
   Heading
   ────────────────────────────────────────────── */

.ic-countdown__heading {
	text-align: center;
	font-family: var(--tpp-font-heading);
	font-size: clamp(2rem, 4.5vw + 0.5rem, 3.5rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--tpp-black);
	margin: 0 0 48px;
}


/* ──────────────────────────────────────────────
   Bar
   ────────────────────────────────────────────── */

.ic-countdown__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px 32px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 16px;
	padding: 28px 32px;
}


/* ──────────────────────────────────────────────
   Lede — pulsing dot + call details
   ────────────────────────────────────────────── */

.ic-countdown__lede {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

/* Pulsing indicator */
.ic-countdown__pulse {
	position: relative;
	flex-shrink: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #E03131;
}

.ic-countdown__pulse::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #E03131;
	animation: ic-countdown-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes ic-countdown-pulse {
	0% {
		opacity: 0.6;
		transform: scale(1);
	}

	70%,
	100% {
		opacity: 0;
		transform: scale(3);
	}
}

.ic-countdown__lede-text {
	min-width: 0;
}

.ic-countdown__title {
	font-family: var(--tpp-font-heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tpp-black);
	margin: 0 0 4px;
}

.ic-countdown__meta {
	font-family: var(--tpp-font-body);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--tpp-text-light);
	margin: 0;
}


/* ──────────────────────────────────────────────
   Timer
   ────────────────────────────────────────────── */

.ic-countdown__timer {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-left: auto;
}

.ic-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 48px;
}

.ic-countdown__value {
	font-family: var(--tpp-font-heading);
	font-size: clamp(1.5rem, 2.2vw + 0.5rem, 2rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--tpp-black);
	font-variant-numeric: tabular-nums;
}

.ic-countdown__unit-label {
	font-family: var(--tpp-font-body);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tpp-text-light);
	margin-top: 4px;
}


/* ──────────────────────────────────────────────
   CTA — centered row between the bar and the footnote
   ────────────────────────────────────────────── */

.ic-countdown__actions {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.ic-countdown__cta {
	padding: 14px 28px;
	font-size: 0.9375rem;
	border-radius: var(--tpp-radius-pill);
	background: var(--tpp-black);
	color: var(--tpp-white);
	border: 1.5px solid var(--tpp-black);
}

.ic-countdown__cta:hover {
	color: var(--tpp-white);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ic-countdown__cta:visited,
.ic-countdown__cta:hover:visited {
	color: var(--tpp-white);
}


/* ──────────────────────────────────────────────
   Live / upcoming state swapping

   Both copy variants ship in the markup; JS only toggles
   .is-live on the section so there is no layout shift.
   Scoped to the section rather than the bar because the CTA
   sits outside the bar.
   ────────────────────────────────────────────── */

.ic-countdown__title-live,
.ic-countdown__cta-live,
.ic-countdown__live-note {
	display: none;
}

.ic-countdown.is-live .ic-countdown__title-upcoming,
.ic-countdown.is-live .ic-countdown__cta-upcoming,
.ic-countdown.is-live .ic-countdown__timer {
	display: none;
}

.ic-countdown.is-live .ic-countdown__title-live,
.ic-countdown.is-live .ic-countdown__cta-live {
	display: inline;
}

.ic-countdown.is-live .ic-countdown__live-note {
	display: block;
	margin: 0 0 0 auto;
	font-family: var(--tpp-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--tpp-black);
}

/* Quicker pulse while a call is actually running */
.ic-countdown.is-live .ic-countdown__pulse::after {
	animation-duration: 1.2s;
}


/* ──────────────────────────────────────────────
   Footnote
   ────────────────────────────────────────────── */

.ic-countdown__footnote {
	text-align: center;
	font-family: var(--tpp-font-body);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.6;
	color: var(--tpp-text-light);
	max-width: 560px;
	margin: 32px auto 0;
}


/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */

/* Tablet (≤991px) */
@media screen and (max-width: 991px) {
	.ic-countdown__bar {
		gap: 20px 24px;
		padding: 24px 24px;
	}
}

/* Mobile (≤767px) — stack lede, timer, CTA */
@media screen and (max-width: 767px) {
	.ic-countdown {
		padding: 0 0 72px;
	}

	.ic-countdown__heading {
		font-size: clamp(1.75rem, 7vw, 2.5rem);
		margin-bottom: 32px;
	}

	.ic-countdown__bar {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 22px 20px;
	}

	.ic-countdown__timer {
		margin-left: 0;
		justify-content: space-between;
		gap: 8px;
		padding-top: 20px;
		border-top: 1px solid rgba(0, 0, 0, 0.10);
	}

	.ic-countdown__unit {
		flex: 1;
		min-width: 0;
	}

	.ic-countdown.is-live .ic-countdown__live-note {
		margin: 0;
		padding-top: 20px;
		border-top: 1px solid rgba(0, 0, 0, 0.10);
	}

	.ic-countdown__actions {
		margin-top: 24px;
	}

	.ic-countdown__footnote {
		margin-top: 24px;
	}
}

/* Small mobile (≤480px) */
@media screen and (max-width: 480px) {
	.ic-countdown {
		padding: 0 0 56px;
	}

	.ic-countdown__value {
		font-size: 1.375rem;
	}

	.ic-countdown__unit-label {
		font-size: 0.625rem;
		letter-spacing: 0.06em;
	}
}


/* ──────────────────────────────────────────────
   Reduced motion
   ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.ic-countdown__container {
		transition: none;
	}

	.ic-countdown__pulse::after {
		animation: none;
	}
}
