/*
 * /ai-visibility-check/ (VOY-1605, board
 * docs/design/ai-visibility-check/boards/AIC-D.dc.html): the fill-in-the-blank
 * hero, the sample one-pager, the 44% band, what happens after, questions.
 *
 * Every rule is scoped to .vy-svc-page.vy-aic, which only
 * patterns/ai-visibility-check.php carries, so nothing here reaches another
 * service page although the loader enqueues this file on all of them. The
 * double class also outranks svc-base.css, which sorts after this file and
 * would otherwise win every tie.
 *
 * The sentence form itself is the block's, styled in custom.css under
 * "The sentence layout". Tokens only: the practice pair --um-500 / --um-700
 * for the page's own colour, --accent-bright for a competitor, never a hex.
 */

.vy-svc-page.vy-aic {
	--svc-gap: 110px;
	--aic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
	--aic-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ---- Hero: the form is the sentence ---------------------------------------- */

/* The dither surface. vy-dither.js puts its canvas first in the section; the
   field drifts at the right edge (svc-aicheck.js) and follows the cursor. */
.vy-svc-page.vy-aic > .vy-svc-sec.vy-aic-hero {
	position: relative;
	isolation: isolate;
	padding-top: 76px;
	padding-bottom: 64px;
}
.vy-svc-page.vy-aic > .vy-aic-hero > .vy-dither {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.vy-svc-page.vy-aic .vy-aic-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-bottom: 30px;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.vy-svc-page.vy-aic .vy-aic-kicker__h1 {
	font: inherit;
	letter-spacing: inherit;
	color: var(--um-500);
}
.vy-svc-page.vy-aic .vy-aic-kicker__engines {
	display: inline-flex;
	gap: 14px;
	color: var(--fg-4);
}
.vy-svc-page.vy-aic .vy-aic-kicker__engines::before {
	content: "\00B7";
	color: var(--fg-5);
}

.vy-svc-page.vy-aic .vy-aic-ticks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	max-width: 1180px;
	margin: 30px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid var(--border-1);
	list-style: none;
}
.vy-svc-page.vy-aic .vy-aic-ticks li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--fg-2);
}
.vy-svc-page.vy-aic :is(.vy-aic-ticks, .vy-aic-gets) li::before {
	content: "";
	flex: none;
	width: 15px;
	height: 15px;
	background: var(--um-500);
	-webkit-mask: var(--aic-check) center / contain no-repeat;
	mask: var(--aic-check) center / contain no-repeat;
}

/* ---- Section heads ------------------------------------------------------------ */

.vy-svc-page.vy-aic .vy-aic-h2 {
	margin-bottom: 10px;
	font-family: var(--font-display);
	font-size: 42px;
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.03em;
	color: var(--fg-1);
}
.vy-svc-page.vy-aic .vy-aic-lede {
	max-width: 720px;
	margin-bottom: 26px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--fg-3);
}

/* ---- What comes back: the sample one-pager ------------------------------------ */

.vy-svc-page.vy-aic .vy-aic-sheet {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 28px;
	padding: 30px;
	border: 1px solid color-mix(in oklab, var(--um-500) 25%, transparent);
	border-radius: 6px;
	background: color-mix(in oklab, var(--bg-panel) 85%, transparent);
}
.vy-svc-page.vy-aic .vy-aic-sheet__main,
.vy-svc-page.vy-aic .vy-aic-sheet__side {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.vy-svc-page.vy-aic .vy-aic-sheet__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 6px 16px;
}
.vy-svc-page.vy-aic .vy-aic-sheet__title {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--fg-1);
}
.vy-svc-page.vy-aic .vy-aic-sheet__title em { font-style: normal; color: var(--fg-4); }

/* Mono labels: Illustration, the column heads, the legend, the tally. */
.vy-svc-page.vy-aic :is(.vy-aic-sheet__tag, .vy-aic-row--head p, .vy-aic-key p, .vy-aic-score__l, .vy-aic-rivals__h, .vy-aic-rival__name, .vy-aic-shot__eng, .vy-aic-shot__tag) {
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fg-4);
}
.vy-svc-page.vy-aic .vy-aic-sheet__tag,
.vy-svc-page.vy-aic .vy-aic-shot__tag { color: var(--fg-4); }

/* The grid: one row group per question, four squares per row. Each row is
   its own grid on the same tracks, so a duplicated row lines up. */
.vy-svc-page.vy-aic .vy-aic-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.vy-svc-page.vy-aic .vy-aic-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) repeat(4, 76px);
	column-gap: 18px;
	align-items: center;
}
.vy-svc-page.vy-aic .vy-aic-row--head p:not(.vy-aic-q) { text-align: center; font-size: 9.5px; }
.vy-svc-page.vy-aic .vy-aic-row--head .vy-aic-q { color: var(--fg-4); }
.vy-svc-page.vy-aic .vy-aic-row:not(.vy-aic-row--head) .vy-aic-q {
	overflow: hidden;
	font-size: 13.5px;
	line-height: 1.4;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--fg-2);
}

/* A square: the class is the state, the text says it for a screen reader and
   for anyone without the stylesheet. "You" and "None" are drawn, not read. */
.vy-svc-page.vy-aic .vy-aic-sq {
	display: grid;
	place-items: center;
	/* The hidden text is a zero-height grid item; without this the two rows
	   split the square and the check sits in the top half. */
	place-content: center;
	justify-self: center;
	box-sizing: border-box;
	width: 30px;
	height: 30px;
	border-radius: 4px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	cursor: default;
	transition: transform 200ms var(--svc-ease), box-shadow 200ms var(--svc-ease);
}
.vy-svc-page.vy-aic .vy-aic-sq.is-you {
	font-size: 0;
	color: var(--bg-canvas);
	background: var(--um-500);
}
.vy-svc-page.vy-aic .vy-aic-sq.is-you::before {
	content: "";
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: var(--aic-check) center / contain no-repeat;
	mask: var(--aic-check) center / contain no-repeat;
}
.vy-svc-page.vy-aic .vy-aic-sq.is-rival {
	border: 1px solid color-mix(in oklab, var(--accent-bright) 50%, transparent);
	background: color-mix(in oklab, var(--accent-bright) 14%, transparent);
	color: var(--accent-bright);
}
.vy-svc-page.vy-aic .vy-aic-sq.is-none {
	font-size: 0;
	border: 1px dashed var(--border-strong);
}
.vy-svc-page.vy-aic .vy-aic-sq.is-live { cursor: pointer; }
.vy-svc-page.vy-aic .vy-aic-sq:is(:hover, .is-active) {
	transform: scale(1.12);
	box-shadow: 0 0 0 1px var(--um-500);
}
.vy-svc-page.vy-aic .vy-aic-sq:focus-visible {
	outline: 2px solid var(--um-500);
	outline-offset: 3px;
}

.vy-svc-page.vy-aic .vy-aic-key {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}
.vy-svc-page.vy-aic .vy-aic-key p {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--fg-3);
}
.vy-svc-page.vy-aic .vy-aic-key p::before {
	content: "";
	flex: none;
	box-sizing: border-box;
	width: 12px;
	height: 12px;
	border-radius: 3px;
}
.vy-svc-page.vy-aic .vy-aic-key__you::before { background: var(--um-500); }
.vy-svc-page.vy-aic .vy-aic-key__rival::before {
	border: 1px solid var(--accent-bright);
	background: color-mix(in oklab, var(--accent-bright) 30%, transparent);
}
.vy-svc-page.vy-aic .vy-aic-key__none::before { border: 1px dashed var(--border-strong); }

/* The tally. */
.vy-svc-page.vy-aic .vy-aic-score {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px;
	border: 1px solid color-mix(in oklab, var(--um-500) 30%, transparent);
	border-radius: 6px;
	background: color-mix(in oklab, var(--um-500) 8%, transparent);
}
.vy-svc-page.vy-aic .vy-aic-score__n {
	font-family: var(--font-display);
	font-size: 54px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--fg-1);
}
.vy-svc-page.vy-aic .vy-aic-score__n em {
	font-size: 26px;
	font-style: normal;
	letter-spacing: -0.02em;
	color: var(--fg-4);
}
.vy-svc-page.vy-aic .vy-aic-score__l { font-size: 10.5px; color: var(--um-500); }

.vy-svc-page.vy-aic .vy-aic-rivals {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
/* Name, bar, count. The bar is the row's own pseudo-element: a track with the
   count's share of it filled, --vy-bar set by svc-aicheck.js from the counts
   in the markup. Without the script the track shows and the numbers read. */
.vy-svc-page.vy-aic .vy-aic-rival {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) 28px;
	gap: 12px;
	align-items: center;
}
.vy-svc-page.vy-aic .vy-aic-rival::after {
	content: "";
	grid-row: 1;
	grid-column: 2;
	height: 8px;
	border-radius: 2px;
	background: linear-gradient(to right, var(--accent-bright) calc(var(--vy-bar, 0) * 100%), var(--border-hair) 0);
}
.vy-svc-page.vy-aic .vy-aic-rival__name { grid-row: 1; grid-column: 1; font-size: 10.5px; color: var(--fg-3); }
.vy-svc-page.vy-aic .vy-aic-rival__n {
	grid-row: 1;
	grid-column: 3;
	font-family: var(--font-mono);
	font-size: 11px;
	text-align: right;
	color: var(--fg-1);
}

/* The answer screenshot. The three answers are all in the markup; the card
   shows the one for the square in hand (svc-aicheck.js), and without the
   script the first, which is the square it names. */
.vy-svc-page.vy-aic .vy-aic-shot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-content: start;
	gap: 10px 12px;
	min-height: 132px;
	padding: 18px;
	border: 1px solid var(--border-1);
	border-radius: 6px;
	background: color-mix(in oklab, var(--bg-canvas) 85%, transparent);
}
.vy-svc-page.vy-aic .vy-aic-shot__eng { color: var(--um-500); }
.vy-svc-page.vy-aic .vy-aic-shot__tag { font-size: 9.5px; text-align: right; }
.vy-svc-page.vy-aic .vy-aic-shot__q {
	grid-column: 1 / -1;
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--fg-1);
}
.vy-svc-page.vy-aic .vy-aic-shot__a {
	display: none;
	grid-column: 1 / -1;
	font-size: 14px;
	line-height: 1.55;
	color: var(--fg-2);
}
.vy-svc-page.vy-aic .vy-aic-shot__a strong { font-weight: inherit; }
.vy-svc-page.vy-aic .vy-aic-shot:not(.is-live) .vy-aic-shot__a.is-you,
.vy-svc-page.vy-aic .vy-aic-shot.is-live .vy-aic-shot__a.is-on { display: block; }

.vy-svc-page.vy-aic .vy-aic-gets {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}
.vy-svc-page.vy-aic .vy-aic-gets li {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 10px;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--fg-2);
}
.vy-svc-page.vy-aic .vy-aic-gets li::before { width: 16px; height: 16px; margin-top: 3px; }

/* ---- Why: the 44% band --------------------------------------------------------- */

.vy-svc-page.vy-aic .vy-aic-why__band {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	padding: 40px 44px;
	border: 1px solid var(--border-1);
	border-radius: 6px;
	background: color-mix(in oklab, var(--bg-panel) 70%, transparent);
}
.vy-svc-page.vy-aic .vy-aic-why__stat {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.vy-svc-page.vy-aic .vy-aic-why__n {
	font-family: var(--font-display);
	font-size: 88px;
	font-weight: 500;
	line-height: 0.9;
	letter-spacing: -0.05em;
	color: var(--um-500);
}
.vy-svc-page.vy-aic .vy-aic-why__l {
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.5;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fg-4);
}
.vy-svc-page.vy-aic .vy-aic-why__copy {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.vy-svc-page.vy-aic .vy-aic-why__h {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--fg-1);
}
.vy-svc-page.vy-aic .vy-aic-why__p {
	font-size: 16px;
	line-height: 1.65;
	color: var(--fg-2);
}

/* ---- What happens after the check ---------------------------------------------- */

.vy-svc-page.vy-aic .vy-aic-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.vy-svc-page.vy-aic .vy-aic-step {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border: 1px solid var(--border-1);
	border-radius: 6px;
	background: color-mix(in oklab, var(--bg-panel) 82%, transparent);
}
.vy-svc-page.vy-aic .vy-aic-step__n {
	font-family: var(--font-mono);
	font-size: 10.5px;
	color: var(--um-500);
}
.vy-svc-page.vy-aic .vy-aic-step__t {
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--fg-1);
}
.vy-svc-page.vy-aic .vy-aic-step__d {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--fg-3);
}
.vy-svc-page.vy-aic .vy-aic-step > .vy-aic-step__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 12px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--border-hair);
}
.vy-svc-page.vy-aic .vy-aic-step__plan {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fg-4);
}
.vy-svc-page.vy-aic .vy-aic-step__price {
	font-family: var(--font-mono);
	font-size: 10.5px;
	white-space: nowrap;
	color: var(--um-500);
}

.vy-svc-page.vy-aic .vy-aic-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	margin-top: 34px;
}
.vy-svc-page.vy-aic .vy-aic-links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14.5px;
	text-decoration: none;
}
.vy-svc-page.vy-aic .vy-aic-links a::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--aic-arrow) center / contain no-repeat;
	mask: var(--aic-arrow) center / contain no-repeat;
	transition: transform 200ms var(--svc-ease);
}
.vy-svc-page.vy-aic .vy-aic-links a:is(:hover, :focus-visible) { text-decoration: underline; }
.vy-svc-page.vy-aic .vy-aic-links a:is(:hover, :focus-visible)::after { transform: translateX(3px); }

/* ---- Questions ----------------------------------------------------------------- */

/* core/details, open, so FAQPage reads them. custom.css draws every details
   as a card; here they are ruled rows, as the board draws them, and keep the
   site's open and close marker in the practice colour. */
.vy-svc-page.vy-aic .vy-aic-qs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 48px;
	margin-top: 12px;
}
.vy-svc-page.vy-aic .vy-aic-qa {
	margin: 0;
	padding: 20px 0;
	border: 0;
	border-top: 1px solid var(--border-1);
	border-radius: 0;
	background: none;
}
.vy-svc-page.vy-aic .vy-aic-qa > summary {
	padding: 0;
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--fg-1);
}
.vy-svc-page.vy-aic .vy-aic-qa > summary::after { font-size: 14px; color: var(--um-500); }
.vy-svc-page.vy-aic .vy-aic-qa > summary:focus-visible {
	outline: 2px solid var(--um-500);
	outline-offset: 4px;
}
.vy-svc-page.vy-aic .vy-aic-qa > :not(summary) {
	margin-top: 8px;
	padding: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--fg-3);
}

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

@media (max-width: 1100px) {
	.vy-svc-page.vy-aic .vy-aic-sheet { grid-template-columns: minmax(0, 1fr); }
	.vy-svc-page.vy-aic .vy-aic-gets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.vy-svc-page.vy-aic { --svc-gap: 88px; }
	.vy-svc-page.vy-aic > .vy-svc-sec.vy-aic-hero { padding-top: 40px; padding-bottom: 40px; }
	.vy-svc-page.vy-aic .vy-aic-kicker { flex-direction: column; align-items: flex-start; }
	.vy-svc-page.vy-aic .vy-aic-kicker__engines::before { content: none; }
	.vy-svc-page.vy-aic .vy-aic-h2 { font-size: 32px; }
	.vy-svc-page.vy-aic .vy-aic-lede { font-size: 16px; }

	.vy-svc-page.vy-aic .vy-aic-sheet { padding: 16px; gap: 24px; }
	.vy-svc-page.vy-aic .vy-aic-grid { gap: 14px; }
	/* The question takes its own line; the four squares share the next. */
	.vy-svc-page.vy-aic .vy-aic-row {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}
	.vy-svc-page.vy-aic .vy-aic-row .vy-aic-q { grid-column: 1 / -1; }
	.vy-svc-page.vy-aic .vy-aic-row:not(.vy-aic-row--head) .vy-aic-q { white-space: normal; }
	.vy-svc-page.vy-aic .vy-aic-row--head .vy-aic-q { display: none; }
	.vy-svc-page.vy-aic .vy-aic-row--head p:not(.vy-aic-q) { letter-spacing: 0; }
	.vy-svc-page.vy-aic .vy-aic-sq { width: 36px; height: 36px; }

	.vy-svc-page.vy-aic .vy-aic-gets { grid-template-columns: minmax(0, 1fr); }

	.vy-svc-page.vy-aic .vy-aic-why__band {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		padding: 28px 22px;
	}
	.vy-svc-page.vy-aic .vy-aic-why__n { font-size: 64px; }

	.vy-svc-page.vy-aic .vy-aic-steps,
	.vy-svc-page.vy-aic .vy-aic-qs { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.vy-svc-page.vy-aic .vy-aic-sq,
	.vy-svc-page.vy-aic .vy-aic-links a::after { transition: none; }
	.vy-svc-page.vy-aic .vy-aic-sq:is(:hover, .is-active) { transform: none; }
}
