/**
 * Pricing page.
 *
 * Loaded only on the pricing template. Prices are server-rendered in GBP at
 * the default term, then rewritten in place by assets/js/pricing.js when the
 * visitor switches currency or billing term — so the page is complete and
 * readable before any JavaScript runs.
 */

.lg-pricing {
	display: flex;
	flex-direction: column;
	gap: var(--lg-space-14);
	padding-block: var(--lg-space-14);
}

/* -- Currency switcher ----------------------------------------------------- */

.lg-pricing__currency {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--lg-space-3);
}

.lg-pricing__currency select {
	width: 7rem;
	height: 2rem;
	font-size: var(--lg-text-sm);
}

.lg-pricing__note {
	max-width: 40rem;
	text-align: center;
	font-size: var(--lg-text-xs);
	color: var(--lg-muted-fg);
}

/* -- Promo banner ---------------------------------------------------------- */

.lg-pricing__promo {
	max-width: 42rem;
	margin-inline: auto;
	padding: var(--lg-space-3) var(--lg-space-4);
	border: 1px solid rgb(var(--lg-primary-rgb) / 0.4);
	border-radius: var(--lg-radius-lg);
	background-color: rgb(var(--lg-primary-rgb) / 0.05);
	text-align: center;
	font-size: var(--lg-text-sm);
}

.lg-pricing__promo-code {
	font-family: var(--lg-font-mono);
	font-weight: 600;
}

.lg-pricing__promo-off {
	font-weight: 600;
	color: var(--lg-primary);
}

/* -- Group heading --------------------------------------------------------- */

.lg-pricing__group-header {
	margin-bottom: var(--lg-space-6);
	text-align: center;
}

.lg-pricing__group-title {
	font-size: var(--lg-text-2xl);
	font-weight: 600;
}

.lg-pricing__group-text {
	margin-top: var(--lg-space-2);
	font-size: var(--lg-text-sm);
	color: var(--lg-muted-fg);
}

.lg-pricing__terms {
	margin-bottom: var(--lg-space-8);
}

/* -- Plan card ------------------------------------------------------------- */

.lg-plan {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/*
 * The recommended plan is marked with a ring rather than a heavier border, so
 * it reads as emphasised without the card growing by a pixel and knocking the
 * grid out of alignment.
 */
.lg-plan--featured {
	border-color: rgb(var(--lg-primary-rgb) / 0.5);
	box-shadow: 0 0 0 2px rgb(var(--lg-primary-rgb) / 0.6);
}

.lg-plan__flag {
	position: absolute;
	top: -0.75rem;
	left: var(--lg-space-6);
}

.lg-plan__name {
	font-size: var(--lg-text-base);
	font-weight: 600;
}

/* Reserve two lines so cards with and without a description stay aligned. */
.lg-plan__description {
	min-height: 2rem;
	margin-top: var(--lg-space-1);
	font-size: var(--lg-text-xs);
	line-height: var(--lg-leading-snug);
	color: var(--lg-muted-fg);
}

.lg-plan__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.375rem;
	margin-top: var(--lg-space-4);
}

.lg-plan__amount {
	font-family: var(--lg-font-mono);
	font-size: var(--lg-text-3xl);
	font-weight: 600;
	letter-spacing: var(--lg-tracking-tight);
}

.lg-plan__suffix {
	font-size: var(--lg-text-sm);
	color: var(--lg-muted-fg);
}

.lg-plan__was {
	font-size: var(--lg-text-sm);
	color: var(--lg-muted-fg);
	text-decoration: line-through;
}

.lg-plan__billing {
	margin-top: var(--lg-space-1);
	font-size: var(--lg-text-xs);
	color: var(--lg-muted-fg);
}

.lg-plan__features {
	flex: 1 1 auto;
	margin-top: var(--lg-space-6);
}

.lg-plan__action {
	margin-top: var(--lg-space-8);
}

/* -- Comparison / trust row ------------------------------------------------- */

.lg-pricing__assurances {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--lg-space-4) var(--lg-space-8);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-pricing__assurance {
	display: inline-flex;
	align-items: center;
	gap: var(--lg-space-2);
	font-size: var(--lg-text-sm);
	color: var(--lg-muted-fg);
}

.lg-pricing__assurance .lg-icon {
	width: 1rem;
	height: 1rem;
	color: var(--lg-primary);
}

/* -- Empty state ------------------------------------------------------------ */

.lg-pricing__empty {
	padding-block: var(--lg-space-12);
	text-align: center;
	font-size: var(--lg-text-sm);
	color: var(--lg-muted-fg);
}

/*
 * Plans for the non-selected billing terms are rendered but carry the `hidden`
 * attribute, so the switcher is instant and every price is present in the HTML
 * for crawlers. The rule that enforces that lives in base.css, because it has
 * to outrank every layout `display` value in the theme.
 */
