/*
 * /vs/google-ads/ section visuals (inc/vs-google-ads-visuals.php, enqueued by page-google-ads.php only), 2026-11-20.
 * Ops repo docs/design/2026-11-20-vs-google-ads-visuals/03-plan.md.
 *
 * Motion: every block's resting state is its finished state (no JS, reduced motion, no IntersectionObserver). JS adds
 * .vga-anim, which attaches the animations paused (fill "both" shows each one's start), and .is-in when the block is 35%
 * in view, which runs them once. Only opacity, translate, scale, colors, outline and flex-grow move. Nothing loops past 5 s.
 */

/* ---- Brands strip (sprizzy_brand_proof): the rules of css/reviews.css, copied so this page does not load results.css +
   reviews.css (18 KB) for one block. Keep in step with reviews.css. ---- */
.template-landing-compare .fr-brands {
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 16px 8px;
	text-align: center;
}

.template-landing-compare .fr-brands h2 {
	margin: 0 0 18px;
	font-size: clamp(24px, 1.2vw + 20px, 32px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 600;
	color: #000;
}

.template-landing-compare .fr-brands__logos {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 18px 32px;
}

.template-landing-compare .fr-brands__logos img {
	display: block;
	height: 44px;
	width: auto;
	max-width: 120px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.85;
}

.template-landing-compare .fr-brands__text,
.template-landing-compare .fr-brands__win {
	margin: 0 auto 10px;
	max-width: 760px;
	font-size: 17px;
	line-height: 1.5;
	color: #292929;
}

.template-landing-compare .fr-brands__win a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---- Shared motion ---- */
@keyframes vgaIn {
	from { opacity: 0; translate: 0 14px; }
	to { opacity: 1; translate: 0 0; }
}

@keyframes vgaPop {
	0% { opacity: 0; scale: 0.4; }
	70% { opacity: 1; scale: 1.12; }
	100% { opacity: 1; scale: 1; }
}

@keyframes vgaDraw {
	from { stroke-dashoffset: 20; }
	to { stroke-dashoffset: 0; }
}

/* ---- Two routes (under "Why not run the ad yourself?") ---- */
.vga-routes {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 24px;
	align-items: start;
	max-width: 1100px;
	margin: 40px auto 0;
	text-align: left;
}

.vga-route {
	background: #fff;
	border-radius: 20px;
	padding: 26px;
	box-shadow: 0 1px 3px rgba(16, 24, 64, 0.07), 0 14px 36px rgba(16, 24, 64, 0.09);
	min-width: 0;
}

.vga-route--sprizzy {
	box-shadow: 0 0 0 2px #0042FF, 0 14px 36px rgba(0, 66, 255, 0.12);
}

/* Desktop: the shorter to-do list stays beside the four steps while they scroll past. */
@media screen and (min-width: 861px) {
	.vga-route--you {
		position: sticky;
		top: 96px;
	}
}

.vga-route__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	color: #1A1919;
}

.vga-route--sprizzy .vga-route__head {
	color: #0042FF;
}

.vga-route__badge {
	flex: 0 0 36px;
	height: 36px;
	border-radius: 50%;
	background: #F1F2F4;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vga-route__badge svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: #555;
	stroke-width: 1.8;
	stroke-linecap: round;
}

.vga-route__badge--s {
	background: #EEF3FF;
	color: #0042FF;
}

.vga-mark {
	display: block;
	width: 14px;
	height: 20px;
	flex: none;
}

.vga-route__badge--s .vga-mark {
	width: 15px;
	height: 21px;
}

/* The to-do list: the jobs, ticked green (done for you; green = done everywhere on this page and in the hero video). */
.vga-todo {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vga-todo li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 7px 12px 7px 9px;
	border-radius: 10px;
	background-color: #ECF8F1;
	box-shadow: inset 0 0 0 1.5px #C4E8D2;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	color: #1F1F1F;
}

.vga-box {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: 5px;
	background-color: #22A55A;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vga-box svg,
.vga-tick svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 20;
}

.vga-route__done {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 18px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: #0042FF;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

/* The Sprizzy steps, each with its product frame. */
.vga-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.vga-steps > li {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) 26px;
	gap: 12px;
	align-items: start;
	margin: 0;
	padding: 0 0 14px;
	border-bottom: 1px solid #EEF0F4;
}

.vga-steps > li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.vga-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #EEF3FF;
	color: #0042FF;
	font-size: 15px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vga-step {
	min-width: 0;
}

.vga-step__title {
	margin: 5px 0 10px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
	color: #111;
}

.vga-tick {
	width: 26px;
	height: 26px;
	margin-top: 3px;
	border-radius: 50%;
	background: #22A55A;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vga-frame {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	height: 44px;
	padding: 0 16px;
	border-radius: 10px;
	background: #fff;
	box-shadow: inset 0 0 0 1.5px #D8D8D8;
	font-size: 15px;
	font-weight: 600;
	color: #1F1F1F;
	white-space: nowrap;
	overflow: hidden;
	box-sizing: border-box;
}

.vga-frame img {
	width: 20px;
	height: 20px;
}

.vga-frame--link {
	min-width: min(100%, 300px);
	box-shadow: inset 0 0 0 2px #0042FF;
	font-weight: 500;
}

.vga-frame--link svg {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: #0042FF;
	stroke-width: 1.9;
	stroke-linecap: round;
}

.vga-frame--link span {
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Step 3: the ad in the feed and in Shorts. */
.vga-ads {
	display: flex;
	align-items: flex-end;
	gap: 12px;
}

.vga-ad,
.vga-short {
	margin: 0;
	min-width: 0;
}

.vga-ad {
	flex: 1 1 auto;
	max-width: 300px;
}

.vga-short {
	flex: 0 0 96px;
}

.vga-ad__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: #E9EBF0;
	box-shadow: 0 1px 3px rgba(16, 24, 64, 0.1), 0 8px 20px rgba(16, 24, 64, 0.1);
}

.vga-short .vga-ad__media {
	aspect-ratio: 9 / 16;
}

.vga-ad__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vga-ad__pill {
	position: absolute;
	left: 7px;
	top: 7px;
	padding: 3px 6px;
	border-radius: 4px;
	background: #FFD600;
	color: #000;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.vga-ad figcaption {
	display: flex;
	gap: 8px;
	padding: 8px 2px 0;
	align-items: flex-start;
}

.vga-ad__avatar {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
}

.vga-ad figcaption b {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	color: #0F0F0F;
}

.vga-ad figcaption small {
	display: block;
	margin-top: 2px;
	font-size: 11.5px;
	line-height: 1.3;
	color: #606060;
}

.vga-ad__where {
	display: inline-block;
	margin-top: 8px;
	padding: 3px 9px;
	border-radius: 999px;
	background: #EEF3FF;
	color: #0042FF;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

/* Step 4: the YouTube Studio traffic source row. */
.vga-studio {
	display: block;
	max-width: 340px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fff;
	box-shadow: inset 0 0 0 1.5px #E6E6E6;
}

.vga-studio__head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #111;
}

.vga-studio__head em {
	margin-left: auto;
	font-style: normal;
	font-size: 12px;
	font-weight: 500;
	color: #777;
}

.vga-yt {
	position: relative;
	width: 20px;
	height: 14px;
	border-radius: 4px;
	background: #FF0000;
}

.vga-yt::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 4px;
	border-left: 6px solid #fff;
	border-top: 3px solid transparent;
	border-bottom: 3px solid transparent;
}

.vga-studio__row {
	display: block;
	margin-top: 8px;
	padding: 5px 8px;
	border-radius: 8px;
	font-size: 13px;
	color: #3B3B3B;
}

.vga-studio__row i {
	display: block;
	width: var(--w);
	height: 6px;
	margin-top: 5px;
	border-radius: 3px;
	background: #D8D8D8;
}

.vga-studio__row.is-ad {
	background: #F3F6FF;
	color: #0042FF;
	font-weight: 700;
}

.vga-studio__row.is-ad i {
	background: #0042FF;
}

/* Routes motion: chips arrive, then tick in a wave; the banner lands; the steps arrive and tick one by one. */
@keyframes vgaChipTodo {
	from { background-color: #F6F6F7; box-shadow: inset 0 0 0 1.5px #E6E6E6; }
	to { background-color: #ECF8F1; box-shadow: inset 0 0 0 1.5px #C4E8D2; }
}

@keyframes vgaBox {
	from { background-color: #fff; box-shadow: inset 0 0 0 1.5px #B9BEC9; }
	to { background-color: #22A55A; box-shadow: inset 0 0 0 0 #22A55A; }
}

.vga-anim .vga-todo li {
	animation: vgaIn 0.4s calc(var(--i) * 40ms) both paused, vgaChipTodo 0.3s calc(1.3s + var(--i) * 70ms) both paused;
}

.vga-anim .vga-todo .vga-box {
	animation: vgaBox 0.3s calc(1.3s + var(--i) * 70ms) both paused;
}

.vga-anim .vga-todo .vga-box svg {
	animation: vgaDraw 0.3s calc(1.38s + var(--i) * 70ms) both paused;
}

.vga-anim .vga-route__done {
	animation: vgaIn 0.5s 2.75s both paused;
}

.vga-anim .vga-steps > li {
	animation: vgaIn 0.45s calc(0.2s + var(--i) * 0.18s) both paused;
}

.vga-anim .vga-steps .vga-tick {
	animation: vgaPop 0.35s calc(0.9s + var(--i) * 0.4s) both paused;
}

.vga-anim.is-in .vga-todo li,
.vga-anim.is-in .vga-todo .vga-box,
.vga-anim.is-in .vga-todo .vga-box svg,
.vga-anim.is-in .vga-route__done,
.vga-anim.is-in .vga-steps > li,
.vga-anim.is-in .vga-steps .vga-tick {
	animation-play-state: running;
}

/* ---- Audience test (inside "200+ audiences tested") ---- */
.vga-aud {
	max-width: 1100px;
	margin: 34px auto 6px;
	padding: 22px 24px 24px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(16, 24, 64, 0.07), 0 14px 36px rgba(16, 24, 64, 0.09);
	text-align: left;
}

.vga-aud__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	margin-bottom: 16px;
}

.vga-live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #F3F4F6;
	font-size: 15px;
	font-weight: 600;
	color: #1F1F1F;
}

.vga-live i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #22A55A;
	box-shadow: 0 0 0 4px rgba(34, 165, 90, 0.18);
}

.vga-aud__note {
	font-size: 13px;
	color: #6B6F7B;
}

.vga-aud__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.vga-aud__grid li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	margin: 0;
	padding: 8px;
	border-radius: 12px;
	text-align: center;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	outline: 3px solid rgba(0, 66, 255, 0);
	outline-offset: -3px;
}

.vga-aud__grid li.is-win {
	background-color: #0042FF;
	color: #fff;
	font-weight: 700;
	box-shadow: 0 8px 20px rgba(0, 66, 255, 0.25);
}

.vga-aud__grid li.is-lose {
	background-color: #F6F6F7;
	color: #7A7A7A;
	box-shadow: inset 0 0 0 1px #E6E6E6;
}

.vga-subs {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.vga-subs svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.2;
	stroke-linecap: round;
}

.vga-budget {
	margin-top: 18px;
}

.vga-budget p {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: #111;
}

.vga-budget__bar {
	display: flex;
	gap: 2px;
	height: 34px;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: inset 0 0 0 1px #E6E6E6;
}

.vga-budget__bar span {
	--g: 0.6;
	flex: var(--g) 1 0;
	min-width: 0;
	background-color: #DBE5FF;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 34px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: clip;
}

.vga-budget__bar span.is-win {
	--g: 10;
	background-color: #0042FF;
}

/* Audience motion: chips arrive, a testing outline visits each in turn, the winners fill, the budget moves, subscribers pop. */
@keyframes vgaTest {
	0% { outline-color: rgba(0, 66, 255, 0); scale: 1; }
	45% { outline-color: rgba(0, 66, 255, 1); scale: 1.05; }
	100% { outline-color: rgba(0, 66, 255, 0); scale: 1; }
}

@keyframes vgaWin {
	from { background-color: #fff; color: #1F1F1F; box-shadow: inset 0 0 0 1px #E6E6E6; }
	to { background-color: #0042FF; color: #fff; box-shadow: 0 8px 20px rgba(0, 66, 255, 0.25); }
}

@keyframes vgaLose {
	from { background-color: #fff; color: #1F1F1F; box-shadow: inset 0 0 0 1px #E6E6E6; }
	to { background-color: #F6F6F7; color: #7A7A7A; box-shadow: inset 0 0 0 1px #E6E6E6; }
}

@keyframes vgaGrow {
	from { flex-grow: 1; background-color: #DBE5FF; color: rgba(255, 255, 255, 0); }
	to { flex-grow: var(--g); }
}

@keyframes vgaSubs {
	from { opacity: 0; max-height: 0; margin-top: 0; }
	to { opacity: 1; max-height: 20px; margin-top: 4px; }
}

@keyframes vgaLive {
	0%, 100% { box-shadow: 0 0 0 4px rgba(34, 165, 90, 0.18); }
	50% { box-shadow: 0 0 0 8px rgba(34, 165, 90, 0); }
}

.vga-anim .vga-aud__grid li {
	animation: vgaIn 0.35s calc(var(--i) * 25ms) both paused, vgaTest 0.45s calc(0.6s + var(--o) * 90ms) both paused;
}

.vga-anim .vga-aud__grid li.is-win {
	animation: vgaIn 0.35s calc(var(--i) * 25ms) both paused, vgaTest 0.45s calc(0.6s + var(--o) * 90ms) both paused, vgaWin 0.5s 2.6s both paused;
}

.vga-anim .vga-aud__grid li.is-lose {
	animation: vgaIn 0.35s calc(var(--i) * 25ms) both paused, vgaTest 0.45s calc(0.6s + var(--o) * 90ms) both paused, vgaLose 0.5s 2.6s both paused;
}

.vga-anim .vga-subs {
	animation: vgaSubs 0.4s 3.3s both paused;
}

.vga-anim .vga-budget__bar span {
	animation: vgaGrow 1s 2.6s both paused;
}

.vga-anim .vga-live i {
	animation: vgaLive 1.2s 4 paused;
}

.vga-anim.is-in .vga-aud__grid li,
.vga-anim.is-in .vga-subs,
.vga-anim.is-in .vga-budget__bar span,
.vga-anim.is-in .vga-live i {
	animation-play-state: running;
}

/* ---- The comparison table (sprizzy_landing_checklist 'class' => 'checklist_routes') ---- */
.template-landing .checklist_routes .checklist_row .q {
	display: flex;
	align-items: center;
	gap: 12px;
}

.template-landing .checklist_routes .q_icon {
	flex: 0 0 40px;
	height: 40px;
	border-radius: 12px;
	background: #EEF3FF;
	color: #0042FF;
	display: flex;
	align-items: center;
	justify-content: center;
}

.template-landing .checklist_routes .q_icon .lp_icon {
	width: 22px;
	height: 22px;
}

.template-landing .checklist_routes .checklist_row .a {
	background: #F6F6F7;
	border-radius: 8px;
	padding: 12px 14px;
}

.template-landing .checklist_routes .checklist_row .b {
	box-shadow: inset 0 0 0 1.5px #D7E1FF;
}

.template-landing .checklist_routes .checklist_head .a,
.template-landing .checklist_routes .checklist_head .b {
	background: none;
	box-shadow: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
}

.template-landing .checklist_routes .col_tag {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.3;
}

.template-landing .checklist_routes .a .col_tag {
	background: #ECEDF0;
	color: #4A4A4A;
}

.template-landing .checklist_routes .b .col_tag {
	background: #0042FF;
	color: #fff;
}

/* ---- Phones ---- */
@media screen and (max-width: 980px) {
	.template-landing .checklist_routes .q_icon {
		flex-basis: 34px;
		height: 34px;
		border-radius: 10px;
	}

	.template-landing .checklist_routes .q_icon .lp_icon {
		width: 19px;
		height: 19px;
	}

	.template-landing .checklist_routes .checklist_row .a {
		margin-top: 6px;
		padding: 10px 12px;
	}
}

@media screen and (max-width: 860px) {
	.vga-routes {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-top: 28px;
		padding: 0 8px;
	}

	.vga-route {
		padding: 18px;
		border-radius: 16px;
	}

	.vga-route__head {
		font-size: 18px;
		margin-bottom: 14px;
	}

	.vga-todo li {
		font-size: 14px;
		padding: 6px 10px 6px 8px;
	}

	.vga-steps > li {
		grid-template-columns: 28px minmax(0, 1fr) 22px;
		gap: 10px;
	}

	.vga-num {
		width: 28px;
		height: 28px;
		font-size: 14px;
	}

	.vga-tick {
		width: 22px;
		height: 22px;
	}

	.vga-step__title {
		font-size: 16px;
		margin: 4px 0 8px;
	}

	.vga-short {
		flex-basis: 72px;
	}

	.vga-aud {
		margin: 24px 8px 4px;
		padding: 16px;
		border-radius: 16px;
	}
}

@media screen and (max-width: 767px) {
	.vga-aud__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.vga-aud__grid li {
		min-height: 54px;
		padding: 6px;
		font-size: 13px;
	}

	.vga-aud__grid li:nth-child(n + 13),
	.vga-budget__bar span:nth-child(n + 13) {
		display: none;
	}

	.vga-budget__bar span {
		font-size: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vga-anim *,
	.vga-anim .vga-live i {
		animation: none !important;
	}
}
