/*
 * Service pages: the audit close (VOY-1576, board
 * docs/design/service-end/boards/Svc-End-SEO.dc.html).
 *
 * Opt-in through vy-svc-close--audit, on a close that also carries
 * vy-svc-close--band (svc-close.css: centred, full width, a hairline on top
 * and the practice glow). On top of the band: a two-line heading whose <em>
 * line is the practice colour, four step cards (vy-svc-close__steps holding
 * vy-svc-close__step, each a number, a title and a line), the two buttons
 * with the primary in the practice colour, and the free check line
 * (vy-svc-close__free). The section is a dither surface: svc-closeaudit.js
 * runs VyDither.field() with the cursor comet and a seeded blink along the
 * foot, behind everything.
 *
 * Every colour is the practice's --um-500, so another hub tints it by its
 * umbrella style.
 */

.vy-svc-page > .vy-svc-close--audit {
	position: relative;
	isolation: isolate;
	padding-bottom: 120px;
}
.vy-svc-page .vy-svc-close--audit > .vy-dither {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.vy-svc-page .vy-svc-close--audit .vy-svc-h2 {
	max-width: none;
	margin-bottom: 22px;
	font-size: 64px;
	line-height: 1.04;
	letter-spacing: -0.03em;
}
.vy-svc-page .vy-svc-close--audit .vy-svc-h2 em {
	display: block;
	font-style: normal;
	color: var(--um-500);
}
.vy-svc-page .vy-svc-close--audit .vy-svc-close__copy {
	max-width: 820px;
	margin-bottom: 48px;
	font-size: 17px;
	line-height: 1.6;
}

/* ---- Steps ------------------------------------------------------------------ */

.vy-svc-page .vy-svc-close__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 40px;
	text-align: left;
}
.vy-svc-page .vy-svc-close__step {
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 24px 22px 26px;
	border: 1px solid var(--border-1);
	border-radius: 12px;
	background: color-mix(in oklab, var(--bg-canvas) 78%, transparent);
}
.vy-svc-page .vy-svc-close__num {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.06em;
	color: var(--um-500);
}
.vy-svc-page .vy-svc-close--audit .vy-svc-close__step-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--fg-1);
}
.vy-svc-page .vy-svc-close__step-text { font-size: 14px; line-height: 1.55; color: var(--fg-3); }

/* ---- Actions ---------------------------------------------------------------- */

/* The primary takes the practice colour, as the plans' How to start bar does. */
.vy-svc-page .vy-svc-close--audit .wp-block-button.is-style-voyager-primary .wp-block-button__link {
	background: var(--um-500);
	border-color: var(--um-500);
	color: var(--bg-canvas);
}
.vy-svc-page .vy-svc-close--audit .wp-block-button.is-style-voyager-primary .wp-block-button__link:hover {
	background: color-mix(in oklab, var(--um-500) 82%, var(--fg-1));
}
.vy-svc-page .vy-svc-close__free {
	margin-top: 18px;
	font-size: 14px;
	color: var(--fg-3);
}
.vy-svc-page .vy-svc-close__free a { text-decoration: none; }

/* ---- Narrower ---------------------------------------------------------------- */

@media (max-width: 1023px) {
	.vy-svc-page .vy-svc-close__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vy-svc-page .vy-svc-close--audit .vy-svc-h2 { font-size: 48px; }
}
@media (max-width: 767px) {
	.vy-svc-page > .vy-svc-close--audit { padding-bottom: 72px; }
	.vy-svc-page .vy-svc-close--audit .vy-svc-h2 { font-size: 34px; line-height: 1.08; }
	.vy-svc-page .vy-svc-close--audit .vy-svc-close__copy { margin-bottom: 32px; font-size: 16px; }
	.vy-svc-page .vy-svc-close__steps { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 32px; }
	.vy-svc-page .vy-svc-close__step { padding: 20px; }
	.vy-svc-page .vy-svc-close--audit .vy-svc-actions .wp-block-button,
	.vy-svc-page .vy-svc-close--audit .vy-svc-actions .wp-block-button__link { width: 100%; }
}
