/*
 * Service pages: the AI practice's own rules on the hub pattern (VOY-1592).
 *
 * /ai/ is built from the shared components exactly as /seo/ is
 * (patterns/umbrella-seo.php), and /ai/visibility/ is a service child page
 * (svc-child.*, VOY-1606). These are the few things the AI pages need that SEO
 * does not, and every rule is scoped under .vy-svc-page.is-style-umbrella-ai,
 * so no other page can see them.
 *
 *   - the hub instrument's "We run on this" tab (pane --ops) gets a pulse
 *     icon instead of the default search glyph;
 *   - on both pages the free check is a plan card priced "Free", so its
 *     <strong> takes the figure's size, and the free check and Monitor cards
 *     carry a button (KB-427: the free check is the primary next step,
 *     Monitor keeps its Stripe Start button). On /ai/ Managed has no checkout
 *     and gets the How to start bar, as SEO's plans do; on /ai/visibility/
 *     its card's button goes to /contact/;
 *   - the free check is the pick, the drawer's second column, so the
 *     recommended tint moves there from the fourth;
 *   - two pair cards, not three, so the grid has two columns.
 *
 * Colour is the practice pair --um-500 / --um-700; the black in the data URI
 * is mask alpha.
 */

.vy-svc-page.is-style-umbrella-ai {
	--vy-ic-pulse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l3-7 4 14 3-7h4'/%3E%3C/svg%3E");
}

/* ---- Hero instrument ---- */

.vy-svc-page.is-style-umbrella-ai .vy-svc-inst--hub .vy-svc-inst__tabs button.is-ops::before {
	-webkit-mask-image: var(--vy-ic-pulse);
	mask-image: var(--vy-ic-pulse);
}

/* ---- Plan cards ---- */

.vy-svc-page.is-style-umbrella-ai .vy-svc-plan__price strong {
	margin-right: 4px;
	font-family: var(--font-display);
	font-size: 44px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--fg-1);
}
.vy-svc-page.is-style-umbrella-ai .vy-svc-plan__act {
	margin: auto 0 0;
	padding-top: 8px;
}
.vy-svc-page.is-style-umbrella-ai .vy-svc-plan__act .wp-block-button,
.vy-svc-page.is-style-umbrella-ai .vy-svc-plan__act .wp-block-button__link {
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}
/* The pick's button is the section's one primary, inked in the practice colour
   as the How to start bar, section 03 and the close ink theirs. */
.vy-svc-page.is-style-umbrella-ai .vy-svc-plan__act .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.is-style-umbrella-ai .vy-svc-plan__act .wp-block-button.is-style-voyager-primary .wp-block-button__link:hover {
	background: color-mix(in oklab, var(--um-500) 82%, var(--fg-1));
}

/* ---- Compare drawer: the pick is the second column ---- */

.vy-svc-page.is-style-umbrella-ai .vy-svc-plancmp :is(th, td):nth-child(4) { background: none; }
.vy-svc-page.is-style-umbrella-ai .vy-svc-plancmp :is(th, td):nth-child(2) { background: color-mix(in oklab, var(--um-500) 5%, transparent); }
.vy-svc-page.is-style-umbrella-ai .vy-svc-plancmp tr:has(> td:nth-child(2):empty) td { background: none; }
@media (max-width: 767px) {
	.vy-svc-page.is-style-umbrella-ai .vy-svc-plancmp[data-plan] :is(th, td):nth-child(2) { background: none; }
}

/* ---- Pair cards: two ---- */

@media (min-width: 1024px) {
	.vy-svc-page.is-style-umbrella-ai .vy-svc-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* A card twice as wide would make the fanned covers twice as wide: keep them the
   size SEO's three-card row gives them. */
.vy-svc-page.is-style-umbrella-ai .vy-svc-pic__cover {
	width: min(46%, 220px);
	margin-left: calc(min(46%, 220px) / -2);
}
