/* Primitives the shop pages share: page header, product card, price card and
   the closing CTA band. */

/* Page header */
.vamora-page-head {
	padding-block: var(--space-12) var(--space-10);
	background: var(--gradient-tint);
}

.vamora-page-head__inner {
	max-width: var(--head-lead-max);
	text-align: center;
}

.vamora-page-head__eyebrow {
	margin-bottom: var(--space-3);
}

.vamora-page-head__title {
	font-size: var(--fs-4xl);
	text-wrap: balance;
}

.vamora-page-head__lead {
	margin-top: var(--space-4);
	color: var(--color-muted);
	font-size: var(--fs-md);
	line-height: var(--lh-relaxed);
	text-wrap: pretty;
}

.vamora-page-head__note {
	margin-top: var(--space-4);
	color: var(--color-primary);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

@media (min-width: 48em) {
	.vamora-page-head {
		padding-block: var(--space-16) var(--space-12);
	}
}

.vamora-page-head__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-3);
	margin-top: var(--space-6);
}

/* Nothing follows the head on the 404, so the tint runs to the footer. */
.vamora-page--notfound {
	padding-bottom: var(--space-16);
	background: var(--gradient-tint);
}

.vamora-page--notfound .vamora-page-head {
	padding-bottom: 0;
	background: none;
}

/* Product card */
.vamora-product-card {
	display: grid;
	overflow: hidden;
}

.vamora-product-card::before {
	height: var(--card-accent-height);
	background: var(--card-accent, var(--gradient-brand));
	content: "";
}

.vamora-product-card--vamora-serve {
	--card-accent: linear-gradient(90deg, var(--brand-violet), var(--brand-blue));
	--card-tint: var(--color-lavender);
}

.vamora-product-card--vamora-fit {
	--card-accent: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
	--card-tint: var(--color-fit-stage);
}

/* Stacked, both panels share one ratio so the pair reads as a set; the image
   fits inside rather than setting the height. */
.vamora-product-card__media {
	display: grid;
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	place-items: center;
	aspect-ratio: var(--card-stage-ratio);
	padding: var(--space-5);
	background: var(--card-tint);
}

.vamora-product-card__image {
	width: 100%;
	height: 100%;
	border-radius: var(--radius-md);
	object-fit: contain;
}

/* The Fit render is a wide scene with empty ground on its left, so it is cropped
   to the devices and faded into a panel of its own ground colour. */
.vamora-product-card--vamora-fit .vamora-product-card__media {
	padding: 0;
}

.vamora-product-card--vamora-fit .vamora-product-card__image {
	height: auto;
	max-height: none;
	aspect-ratio: var(--card-stage-ratio);
	border-radius: 0;
	object-fit: cover;
	object-position: var(--card-stage-focus);
	-webkit-mask-image: var(--mask-fade-block);
	mask-image: var(--mask-fade-block);
}

.vamora-product-card__body {
	display: grid;
	align-content: start;
	gap: var(--space-3);
	padding: var(--space-6) var(--space-5) var(--space-7);
}

.vamora-product-card__audience {
	color: var(--color-muted);
	font-size: var(--fs-sm);
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
	text-wrap: balance;
}

.vamora-product-card__name {
	font-size: var(--fs-xl);
}

.vamora-product-card__summary {
	color: var(--color-muted);
	line-height: var(--lh-relaxed);
	text-wrap: pretty;
}

.vamora-product-card__points {
	display: grid;
	gap: var(--space-2);
}

.vamora-product-card__point {
	--icon-size: 1.125rem;

	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	color: var(--color-navy);
	font-size: var(--fs-sm);
	font-weight: 500;
	line-height: var(--lh-snug);
}

.vamora-product-card__point .vamora-icon {
	margin-top: 0.125rem;
	color: var(--color-primary);
	stroke-width: 3;
}

.vamora-offer__price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3) var(--space-5);
	margin-top: var(--space-2);
	padding: var(--space-4) var(--space-5);
	border-radius: var(--radius-md);
	background: var(--gradient-tint);
}

.vamora-offer__amount {
	display: grid;
	gap: var(--space-1);
	color: var(--color-primary-deep);
	font-size: var(--fs-2xl);
	font-weight: 800;
	line-height: 1;
}

.vamora-offer__from {
	color: var(--color-muted);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.vamora-offer__value {
	white-space: nowrap;
}

.vamora-offer__per {
	margin-left: var(--space-1);
	color: var(--color-muted);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.vamora-offer__note {
	display: grid;
	flex: 1 1 10rem;
	gap: var(--space-1);
	color: var(--color-navy);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.vamora-offer__setup {
	color: var(--color-muted);
	font-size: var(--fs-xs);
	font-weight: 500;
}

.vamora-product-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-4);
	margin-top: var(--space-2);
}

.vamora-product-card__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap-min);
	color: var(--color-primary);
	font-size: var(--fs-sm);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.vamora-product-card--compact .vamora-product-card__body {
	padding: var(--space-5);
}

.vamora-product-card--compact .vamora-product-card__name {
	font-size: var(--fs-lg);
}

/* Without an image to set the height, two compact cards only line their buttons
   up if the summary takes the slack. */
.vamora-product-card--compact {
	grid-template-rows: auto 1fr;
}

.vamora-product-card--compact .vamora-product-card__body {
	grid-template-rows: auto auto 1fr auto;
}

@media (min-width: 56.25em) {
	.vamora-product-card {
		grid-template-areas:
			"accent accent"
			"media body";
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: stretch;
	}

	.vamora-product-card::before {
		grid-area: accent;
	}

	.vamora-product-card__media {
		grid-area: media;
		aspect-ratio: auto;
		padding: var(--space-8);
	}

	.vamora-product-card__image {
		height: auto;
		max-height: var(--card-image-max);
	}

	.vamora-product-card__body {
		grid-area: body;
		align-content: center;
		padding: var(--space-8);
	}

	.vamora-product-card--compact {
		grid-template-areas:
			"accent"
			"body";
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Price tile: a product's starting price where the full table is not shown. */
.vamora-price-tile {
	display: grid;
	align-content: start;
	gap: var(--space-2);
	padding: var(--space-7) var(--space-6) var(--space-6);
	overflow: hidden;
}

.vamora-price-tile::before {
	height: var(--card-accent-height);
	margin: calc(-1 * var(--space-7)) calc(-1 * var(--space-6)) var(--space-5);
	background: var(--card-accent, var(--gradient-brand));
	content: "";
}

.vamora-price-tile--vamora-serve {
	--card-accent: linear-gradient(90deg, var(--brand-violet), var(--brand-blue));
}

.vamora-price-tile--vamora-fit {
	--card-accent: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
}

.vamora-price-tile__name {
	font-size: var(--fs-xl);
}

.vamora-price-tile__audience {
	color: var(--color-muted);
	font-size: var(--fs-sm);
	line-height: var(--lh-snug);
}

.vamora-price-tile__button {
	justify-self: start;
	margin-top: var(--space-3);
}

/* CTA band. The arc is desktop-only: stacked, it would strike through the
   headline and buttons. */
.vamora-cta-band {
	position: relative;
	overflow: clip;
	background: var(--color-navy);
	color: var(--color-white);
}

.vamora-cta-band::before {
	position: absolute;
	top: -40%;
	right: -10%;
	width: var(--cta-glow-size);
	height: var(--cta-glow-size);
	background: radial-gradient(circle, rgb(var(--rgb-brand-blue) / 0.28) 0%, transparent 62%);
	content: "";
	pointer-events: none;
}

.vamora-cta-band__arc {
	display: none;
	position: absolute;
	top: 50%;
	right: var(--cta-arc-offset);
	width: var(--cta-arc-width);
	height: var(--cta-arc-height);
	opacity: 0.55;
	transform: translateY(-50%);
	pointer-events: none;
}

/* The glass ring a page can ask for in place of the arc. Stacked, it sits in
   the top corner, behind the copy and dimmed so the copy still reads. */
.vamora-cta-band__ring {
	position: absolute;
	top: calc(-1 * var(--space-6));
	right: calc(-1 * var(--space-8));
	width: var(--cta-ring-size);
	opacity: 0.4;
	pointer-events: none;
}

.vamora-cta-band__ring-image {
	width: 100%;
	height: auto;
}

.vamora-cta-band--ring .vamora-cta-band__inner > :not(.vamora-cta-band__ring) {
	position: relative;
}

.vamora-stop--violet {
	stop-color: var(--brand-violet);
}

.vamora-stop--blue {
	stop-color: var(--brand-blue);
}

.vamora-stop--cyan {
	stop-color: var(--brand-cyan);
}

.vamora-cta-band__inner {
	position: relative;
	display: grid;
	gap: var(--space-5);
	padding-block: var(--space-12);
}

/* Dimmed through filter and colour rather than opacity, which a reveal owns.
   Sized by width, so a taller lockup uploaded in its place is held to the same
   square rather than stretching the band. */
.vamora-cta-band__brand {
	width: var(--cta-brand-size);
	height: auto;
	max-height: var(--cta-brand-size);
	object-fit: contain;
	filter: brightness(0) invert(1) opacity(0.9);
}

.vamora-cta-band__title {
	color: var(--color-white);
	font-size: var(--fs-2xl);
	text-wrap: balance;
}

.vamora-cta-band__lead {
	margin-top: var(--space-3);
	max-width: var(--cta-lead-max);
	color: rgb(var(--rgb-white) / 0.82);
	font-size: var(--fs-base);
	line-height: var(--lh-relaxed);
	text-wrap: pretty;
}

.vamora-cta-band__actions {
	display: grid;
	gap: var(--space-3);
}

@media (min-width: 40em) {
	.vamora-cta-band__actions {
		display: flex;
		flex-wrap: wrap;
	}
}

@media (min-width: 56.25em) {
	.vamora-cta-band__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		gap: var(--space-8);
		padding-block: var(--space-14);
	}

	.vamora-cta-band__arc {
		display: block;
	}

	.vamora-cta-band__brand {
		width: var(--cta-brand-size-wide);
	}

	/* The actions step in to leave the ring its own room at the band's end. */
	.vamora-cta-band--ring .vamora-cta-band__inner {
		padding-right: calc(var(--cta-ring-size-wide) * var(--cta-ring-room));
	}

	.vamora-cta-band__ring {
		top: 50%;
		right: calc(-1 * var(--cta-ring-size-wide) * 0.35);
		width: var(--cta-ring-size-wide);
		margin-top: calc(-1 * var(--cta-ring-size-wide) / 2);
		opacity: 0.95;
	}
}

/* Shared section helpers */
.vamora-band--tint {
	background: var(--gradient-tint);
}

/* On the pricing page the bands sit in one continuous wash, as in its
   reference, so each fades in from the page colour and back out. */

.vamora-band--page {
	background: var(--color-page);
}
