.zerodigital-pricing {
	padding: clamp(var(--wp--preset--spacing--lg, 2rem), 4vw, var(--wp--preset--spacing--2-xl, 4rem)) var(--zd-section-gutter, var(--wp--preset--spacing--md, 1.5rem));
}

/* The section is the band — its width follows the block's alignment, and any
 * background runs across it. The content column sits on one edge site-wide
 * (--zd-content-max, the header's edge) whatever that alignment is. */
.zerodigital-pricing__container {
	max-width: var(--zd-content-max, calc(var(--wp--style--global--wide-size, 1600px) - 2 * var(--wp--preset--spacing--md, 1.5rem)));
	margin-inline: auto;
}

.zerodigital-pricing__heading {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: var(--zd-step-h2, clamp(1.9rem, 1.35rem + 2.2vw, 2.9rem));
	line-height: 1.1;
	letter-spacing: -0.015em;
	text-wrap: balance;
	margin: 0 0 clamp(var(--wp--preset--spacing--lg, 2rem), 4vw, var(--wp--preset--spacing--xl, 3rem));
}

.zerodigital-pricing__tiers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--wp--preset--spacing--md, 1.5rem);
	grid-template-columns: repeat(3, 1fr);
}

.zerodigital-pricing--2 .zerodigital-pricing__tiers {
	grid-template-columns: repeat(2, 1fr);
}

.zerodigital-pricing--4 .zerodigital-pricing__tiers {
	grid-template-columns: repeat(4, 1fr);
}

.zerodigital-pricing--single .zerodigital-pricing__tiers {
	grid-template-columns: 1fr;
	max-width: 24rem;
	margin-inline: auto;
}

.zerodigital-pricing__tier {
	display: flex;
	flex-direction: column;
	padding: var(--wp--preset--spacing--lg, 2rem);
	border-radius: var(--zd-card-radius, var(--wp--custom--radius--lg, 0.75rem));
	border: 1px solid var(--wp--preset--color--border, #e4e6e9);
}

/* CTA pinned to the bottom so tiers stay comparable at a glance (§5). */
.zerodigital-pricing__tier-cta {
	margin-top: auto;
}

/* Name, price and period read as one spec block: a quiet label, the figure,
 * then the unit. The name steps back so the price is unmistakably the thing
 * being compared across tiers. */
.zerodigital-pricing__tier-name {
	margin: 0 0 var(--wp--preset--spacing--2-xs, 0.5rem);
	font-family: var(--zd-mono);
	font-size: var(--zd-spec-size, 0.72rem);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--zd-spec-tracking, 0.14em);
	color: var(--wp--preset--color--muted, #565b62);
}

.zerodigital-pricing__tier-price {
	font-family: var(--zd-mono);
	font-variant-numeric: tabular-nums;
	font-size: clamp(2.5rem, 2rem + 1.6vw, 3.25rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.01em;
	margin: 0 0 var(--wp--preset--spacing--md, 1.25rem);
}

.zerodigital-pricing__tier-period {
	display: block;
	margin-top: 0.4rem;
	font-family: var(--zd-mono);
	font-size: var(--zd-spec-size, 0.72rem);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--zd-spec-tracking, 0.14em);
}

.zerodigital-pricing__tier-features {
	list-style: none;
	margin: 0 0 var(--wp--preset--spacing--md, 1.5rem);
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2-xs, 0.5rem);
}

.zerodigital-pricing__tier-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--zd-btn-min-h, 2.875rem);
	padding: var(--wp--preset--spacing--xs, 0.75rem) var(--wp--preset--spacing--sm, 1rem);
	border-radius: var(--zd-btn-radius, var(--wp--custom--radius--md, 0.5rem));
	background: var(--wp--preset--color--primary, #1b3a5c);
	color: var(--wp--preset--color--background, #fff);
	text-decoration: none;
	font-weight: 600;
}

@media (max-width: 960px) {
	.zerodigital-pricing__tiers,
	.zerodigital-pricing--2 .zerodigital-pricing__tiers,
	.zerodigital-pricing--4 .zerodigital-pricing__tiers {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.zerodigital-pricing__tiers,
	.zerodigital-pricing--2 .zerodigital-pricing__tiers,
	.zerodigital-pricing--4 .zerodigital-pricing__tiers {
		grid-template-columns: 1fr;
	}
}

/* --- default skin --- */
.zerodigital-pricing__tier {
	background: var(--zd-card-bg, var(--wp--preset--color--surface, #fff));
}


.zerodigital-pricing__tier-period {
	color: var(--wp--preset--color--muted, #5b6572);
}

.zerodigital-pricing__tier-features li::before {
	content: "\2713";
	color: var(--wp--preset--color--primary, #0e4b52);
	font-weight: 700;
	margin-right: 0.5rem;
}

.zerodigital-pricing__tier-cta {
	transition: background-color var(--zd-ease, 180ms ease), box-shadow var(--zd-ease, 180ms ease);
}

.zerodigital-pricing__tier-cta:hover {
	background: var(--wp--preset--color--secondary, #0a3339);
	/* The CTA is an <a>; the theme's link:hover would tint its label toward the
	 * accent, low-contrast on this dark hover fill. Keep it light. */
	color: var(--wp--preset--color--background, #fff);
	box-shadow: var(--zd-shadow-sm, 0 1px 3px rgba(16, 24, 40, 0.1));
}

/* ---- Highlighted tier: genuinely unmissable (Design §5) --------------- */
/* The remaining box-shadow is a solid 2px outline — no blur, no offset — not a
 * drop shadow. It used to carry --zd-shadow-lg alongside the ring, which made
 * this the last element wearing a border AND a shadow after the pass that took
 * shadows off every other bordered surface. The accent edge, the tint, the lift
 * and the accent CTA already make it unmistakable without it. */
/* The ring is INSET, and that is load-bearing rather than stylistic. Drawn
 * outside the border box it was sliced off down both vertical edges in the
 * carousel: Swiper puts overflow:hidden on .swiper, and a slide's box is exactly
 * as wide as that clip — measured at 0px of headroom on each side, against a
 * ring needing 2px. The block axis was already given room further down, but the
 * inline axis cannot be: padding there narrows the track and pulls it out of
 * line with the heading, and Swiper's own margin-inline:auto fights back.
 * Inside the box there is nothing to clip against, at any width, in either
 * variant. The edge reads the same weight — 1px border plus 2px ring — it is
 * simply drawn inward. */
.zerodigital-pricing__tier--highlighted {
	position: relative;
	border-color: var(--zd-accent, var(--wp--preset--color--accent, #c4263c));
	background: var(--zd-accent-tint, color-mix(in srgb, var(--wp--preset--color--accent, #c4263c) 8%, transparent));
	box-shadow: inset 0 0 0 2px var(--zd-accent, var(--wp--preset--color--accent, #c4263c));
	transform: translateY(-0.75rem);
}

/* The highlighted tier is already unmistakable from its accent border, 2px
 * accent ring, tint background, lift and accent CTA — so there's no separate
 * top accent bar. An absolutely-positioned bar could never align its rounded
 * corners cleanly against the 1px border plus the 2px box-shadow ring (it left
 * little "ears" at the top corners), and the tier reads as featured without it. */

/* The conversion CTA carries the accent. */
.zerodigital-pricing__tier--highlighted .zerodigital-pricing__tier-cta {
	background: var(--zd-accent, var(--wp--preset--color--accent, #c4263c));
}

.zerodigital-pricing__tier--highlighted .zerodigital-pricing__tier-cta:hover {
	background: color-mix(in srgb, var(--zd-accent, #c4263c) 86%, #000);
}

@media (max-width: 960px) {
	.zerodigital-pricing__tier--highlighted {
		transform: none;
	}
}

/* ---- Carousel variant -------------------------------------------------- */
.zerodigital-pricing--carousel .zerodigital-pricing__slider-shell {
	position: relative;
}

/* The highlighted tier lifts itself 0.75rem and carries a 2px accent ring, and
 * Swiper gives .swiper overflow:hidden — so without room above, the featured
 * package would be sliced off along its top edge. Pad the track and pull it
 * back level, on the block axis only: horizontal padding narrows the track and
 * shifts it out of line with the heading, and Swiper's own margin-inline:auto
 * fights a margin shorthand at the same specificity. */
.zerodigital-pricing--carousel .zerodigital-pricing__slider {
	width: 100%;
	padding-block: 1rem;
	margin-block: -1rem;
}

/* The track is a <ul> and Swiper resets neither padding nor margin on
 * .swiper-wrapper, so the browser's default list padding would push every slide
 * right and overflow the container. The grid never hit this because its list
 * reset rides on __tiers, which the carousel deliberately doesn't use. */
.zerodigital-pricing--carousel .swiper-wrapper {
	list-style: none;
	margin: 0;
	padding: 0;
	/* Slides are stretched by default, which is what keeps the tiers level —
	 * but the highlighted one is translated upward, so let it sit as tall as
	 * the rest rather than being stretched into a taller box. */
	align-items: stretch;
}

/* Slides stretch to the tallest package so ragged feature lists keep the row
 * even, exactly as the grid does. */
.zerodigital-pricing--carousel .zerodigital-pricing__tier {
	height: auto;
	box-sizing: border-box;
}

/* On narrow screens the grid already drops the highlighted tier's lift; the
 * carousel needs the same, or the featured slide sits proud of its neighbours
 * in a single-column track. */
@media (max-width: 960px) {
	.zerodigital-pricing--carousel .zerodigital-pricing__tier--highlighted {
		transform: none;
	}
}

/* The editor's prompt for an empty block (zerodigital_editor_placeholder()).
   Printed only in the editor preview, never on the live page. */
.zerodigital-pricing__empty {
	margin: 0;
	opacity: 0.7;
	font-style: italic;
}
