/* Offers: promo landing pages at /offer/{slug}/ (templates/single-offer.html, inc/areas/offers.php). */

/* Show each block only in its states. <body> carries offer-is-upcoming|live|ended. */
.offer-is-upcoming [class*="offer-when-"]:not(.offer-when-upcoming),
.offer-is-live [class*="offer-when-"]:not(.offer-when-live),
.offer-is-ended [class*="offer-when-"]:not(.offer-when-ended) { display: none !important; }

/* Hero: the label sits above the headline instead of beside a line of text. */
#offer-hero .hero--offer { margin: 0; }
#offer-hero .hero--offer > p.badge-offer { display: inline-block; margin: 0; font-size: 0.875rem; }
#offer-hero .offer-dates { margin-top: 0.5rem; font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }

/* Countdown */
.offer-countdown { text-align: center; }
.offer-countdown--label { margin: 0 0 0.75rem; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--medium); }
.offer-countdown--units { display: flex; justify-content: center; gap: 0.75rem; }
.offer-countdown--units > div { min-width: 5.25rem; padding: 0.875rem 0.5rem 0.625rem; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--lightest); }
.offer-countdown--units span { display: block; font-family: var(--font-mono); font-size: 2.5rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--strong); }
.offer-countdown--units small { display: block; margin-top: 0.375rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--medium); }
@media (max-width: 480px) {
	.offer-countdown--units { gap: 0.5rem; }
	.offer-countdown--units > div { min-width: 0; flex: 1; }
	.offer-countdown--units span { font-size: 1.75rem; }
}

/* Pricing: the pattern's own top padding is enough; the terms sit under it. */
.offer-pricing .offer-terms { max-width: 42rem; margin: -2rem auto 0; padding: 0 1rem 3rem; color: var(--medium); }

/* Signup */
.offer-signup { padding: 3rem 1rem 4rem; }
.offer-signup h2 { margin-bottom: 1.5rem; }
.offer-signup .gh-form button[type="submit"] { white-space: nowrap; padding-left: 0.75rem; padding-right: 0.75rem; }
