/* ===========================================================================
   hero-centered-stack — centred product opener with a cinematic band
   ---------------------------------------------------------------------------
   Scope: .vbs-hero-centered-stack
   Depends on: css/tokens.css, css/base.css

   Structure, not decoration: the copy runs in a narrow centred measure and the
   media band sits in the WIDE container beneath it, so the image reads as a
   deliberate second, broader plane. Nothing is positioned absolutely — the two
   containers do the work, which is what keeps it stable at every preset.

   Contains no literal colour, font, size, radius, shadow or duration.
   ========================================================================= */

/* --- copy column ----------------------------------------------------------
   Capped well inside the default container so the headline keeps a strong
   two-line silhouette even when a brand swaps in a much larger display face. */
.vbs-hero-centered-stack__copy {
	max-inline-size: 52rem;
	margin-inline: auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Eyebrow as a tinted tag with a dot. Follows the preset's radius, so it is a
   pill by default and a hard rectangle under Brutalist and Editorial. */
.vbs-hero-centered-stack__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	padding: 0.55em 1.05em;
	border: var(--vb-border-hair) solid var(--vb-color-rule);
	border-radius: var(--vb-radius-pill);
	background-color: var(--vb-color-accent-soft);
	color: var(--vb-color-accent);
}
.vbs-hero-centered-stack__eyebrow::before {
	content: "";
	inline-size: 0.375rem;
	block-size: 0.375rem;
	border-radius: var(--vb-radius-pill);
	background-color: currentColor;
	flex: none;
}

.vbs-hero-centered-stack__title {
	margin-block-start: clamp(1.5rem, 2.5vw, 2rem);
}

/* Lead sits tighter than the headline — a readable measure, not the full
   column width, so the block narrows as the eye travels down. */
.vbs-hero-centered-stack__lead {
	margin-block-start: 1.5rem;
	max-inline-size: 44rem;
}

.vbs-hero-centered-stack__actions {
	margin-block-start: clamp(2rem, 3.5vw, 2.75rem);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.875rem;
}

/* Inline, not flex: the tick has to sit in the text flow so a long note wraps
   to a second line on a phone instead of pushing past the gutter. */
.vbs-hero-centered-stack__note {
	margin-block-start: 1.25rem;
	color: var(--vb-color-mute);
	text-wrap: pretty;
}
.vbs-hero-centered-stack__note .vbs-hero-centered-stack__icon {
	display: inline-block;
	vertical-align: -0.15em;
	margin-inline-end: 0.5em;
}

/* Icons are inline SVG on currentColor; lock them inside buttons so a long
   label cannot squeeze them into a sliver. */
.vbs-hero-centered-stack__icon { flex: none; }

/* --- media band -----------------------------------------------------------
   Lives in .vb-container--wide, so it always runs wider than the copy above
   it — the whole point of the layout. */
.vbs-hero-centered-stack__band {
	margin-block-start: clamp(3rem, 6vw, 5rem);
}

.vbs-hero-centered-stack__media {
	border-radius: var(--vb-radius-lg);
	border: var(--vb-border-hair) solid var(--vb-color-rule);
	box-shadow: var(--vb-shadow-card);
}

/* 21:9 is a luxury a phone doesn't have — under 48rem the band would collapse
   to a letterbox slit, so it opens back up to 16:9. */
@media (max-width: 47.9375rem) {
	.vbs-hero-centered-stack__media { --vb-ratio: 16 / 9; }
}

/* --- trust metrics --------------------------------------------------------
   Two up on small screens, four across from 52rem with hairline dividers. */
.vbs-hero-centered-stack__metrics {
	margin-block-start: clamp(2rem, 4vw, 3rem);
	padding-block-start: clamp(1.5rem, 3vw, 2.25rem);
	border-block-start: var(--vb-border-hair) solid var(--vb-color-rule);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.75rem 1.25rem;
	text-align: center;
}

@media (min-width: 52rem) {
	.vbs-hero-centered-stack__metrics {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2rem 0;
	}
	.vbs-hero-centered-stack__metric {
		padding-inline: 1.5rem;
	}
	.vbs-hero-centered-stack__metric + .vbs-hero-centered-stack__metric {
		border-inline-start: var(--vb-border-hair) solid var(--vb-color-rule);
	}
}

.vbs-hero-centered-stack__metric-figure {
	display: block;
	font-family: var(--vb-font-display);
	font-size: var(--vb-fs-h2);
	font-weight: var(--vb-weight-heading);
	letter-spacing: var(--vb-ls-h2);
	line-height: 1;
	color: var(--vb-color-ink);
}

.vbs-hero-centered-stack__metric-label {
	display: block;
	margin-block-start: 0.5rem;
	margin-inline: auto;
	max-inline-size: min(15rem, 100%);
	text-wrap: pretty;
}
