/**
 * `/shop/` and the product page.
 *
 * Deferred, like every other template stylesheet: the site's Core Web Vitals
 * are decided on the article template, and the shop is not on that path.
 *
 * The restraint here is deliberate and is the same rule the Kit block follows.
 * A paid page on a trust-first site should look like the rest of the site with
 * a price on it — not like a landing page. So: no gradients, no countdowns, no
 * second accent colour, and Ember appears exactly once per screen, on the
 * button, because Ember means the thing a person does.
 */

/* ---------------------------------------------------------------- shop --- */

.ait-shop__inner {
	padding-block: var(--s-7) var(--s-9);
}

.ait-shop__header {
	max-width: var(--measure);
	margin-bottom: var(--s-7);
}

.ait-shop__title {
	margin: 0 0 var(--s-3);
	font-family: var(--font-heading);
	font-size: var(--fs-h1);
	line-height: var(--lh-h1);
}

.ait-shop__lede {
	margin: 0 0 var(--s-3);
	color: var(--c-ink-muted);
}

/* The free route, named before the paid one. Small, but never hidden. */
.ait-shop__free {
	margin: 0;
	font-size: var(--fs-small);
	color: var(--c-ink-muted);
}

.ait-shop__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ait-shop__grid > li {
	margin: 0;
}

/* `list-style: none` is not enough on this site: the bullet is a `::before`
   square, not a marker, so a semantic `role="list"` wrapper still draws one
   dot beside each card. Same reset as `.ait-grid` in base.css. */
.ait-shop__grid > li::before {
	content: none;
}

.ait-shop__empty {
	color: var(--c-ink-muted);
}

/* ----------------------------------------------------------- kit card --- */

.ait-kit-card {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-5);
	height: 100%;
	padding: var(--s-5);
	border: var(--border-hair);
	border-radius: var(--r-lg);
	background: var(--c-surface);
}

.ait-kit-card__media {
	display: block;
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--c-band);
}

.ait-kit-card__image {
	display: block;
	width: 100%;
	height: auto;
}

.ait-kit-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.ait-kit-card__title {
	margin: 0 0 var(--s-2);
	font-family: var(--font-heading);
	font-size: var(--fs-h3);
	line-height: var(--lh-h3);
}

.ait-kit-card__title a {
	color: inherit;
	text-decoration: none;
}

.ait-kit-card__title a:hover {
	text-decoration: underline;
}

.ait-kit-card__benefit {
	margin: 0 0 var(--s-3);
	color: var(--c-ink-muted);
}

.ait-kit-card__bullets {
	margin: 0 0 var(--s-4);
	padding-left: 1.15em;
	font-size: var(--fs-small);
	color: var(--c-ink-muted);
}

.ait-kit-card__bullets li + li {
	margin-top: var(--s-1);
}

/* `margin-top:auto` pins the price and button to the bottom of the card, so a
   row of cards with different-length copy still has its buttons on one line. */
.ait-kit-card__foot {
	display: flex;
	gap: var(--s-3);
	align-items: baseline;
	margin: auto 0 var(--s-3);
}

.ait-kit-card__price {
	font-family: var(--font-heading);
	font-size: var(--fs-h4);
	font-weight: 700;
}

@media (min-width: 720px) {
	.ait-kit-card {
		grid-template-columns: minmax(0, 300px) 1fr;
		align-items: start;
		gap: var(--s-6);
		padding: var(--s-6);
	}
}

/* ------------------------------------------------------- product page --- */

.ait-product__inner {
	padding-block: var(--s-5) var(--s-9);
}

.ait-product__hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-6);
	margin-bottom: var(--s-7);
}

.ait-product__eyebrow {
	margin: 0 0 var(--s-2);
	font-size: var(--fs-small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-primary);
}

.ait-product__title {
	margin: 0 0 var(--s-3);
	font-family: var(--font-heading);
	font-size: var(--fs-h1);
	line-height: var(--lh-h1);
}

.ait-product__lede {
	margin: 0 0 var(--s-4);
	max-width: var(--measure);
	font-size: var(--fs-h4);
	line-height: var(--lh-h4);
	color: var(--c-ink-muted);
}

.ait-product__bullets {
	margin: 0 0 var(--s-5);
	padding-left: 1.15em;
	max-width: var(--measure);
}

.ait-product__bullets li + li {
	margin-top: var(--s-2);
}

.ait-product__media {
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--c-band);
}

.ait-product__image {
	display: block;
	width: 100%;
	height: auto;
}

.ait-product__content {
	max-width: var(--measure);
}

.ait-product__close {
	max-width: var(--measure);
	margin-top: var(--s-7);
}

/* ---------------------------------------------------------- offer box --- */

.ait-offer {
	padding: var(--s-5);
	border: var(--border-hair);
	border-radius: var(--r-lg);
	background: var(--c-surface);
	box-shadow: var(--shadow-1);
}

.ait-offer__price {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-1) var(--s-3);
	align-items: baseline;
	margin: 0 0 var(--s-4);
}

.ait-offer__amount {
	font-family: var(--font-heading);
	font-size: var(--fs-h2);
	line-height: 1;
	font-weight: 700;
}

.ait-offer__terms {
	font-size: var(--fs-small);
	color: var(--c-ink-muted);
}

.ait-offer__cta {
	width: 100%;
	justify-content: center;
}

.ait-offer__note,
.ait-offer__guarantee {
	margin: var(--s-3) 0 0;
	font-size: var(--fs-small);
	color: var(--c-ink-muted);
}

.ait-offer__soon {
	margin: 0 0 var(--s-3);
	font-weight: 600;
}

@media (min-width: 900px) {
	/* Image beside the copy, and the offer box lands in the first screen on a
	   desktop without the title having to shrink to make room. */
	.ait-product__hero {
		grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
		gap: var(--s-7);
		align-items: start;
	}
}
