/*
 * /youtube-ads-management/ (was /managed-youtube-ads/; rebuilt 2026-11-08; page-managed-youtube-ads.php, inc/managed-ads.php). Builds on the explainer
 * tokens in css/explainer-pages.css (.template-explainer). Phone first at 375; two columns from 900.
 *
 * v2 after Brandon's phone review ("It looks decent on desktop but not mobile. Maybe the visuals in the steps are
 * unnecessary? It also feels very washed out visually. I think how it works is more enticing as it has a visual at
 * top"): on phones the hero is headline, answer, one bold visual (the plan email and the Approve step), one button,
 * then the form; the steps lose their frames; the monthly loop sits on navy and the close on solid blue.
 */

.template-managed {
	--mga-radius: 16px;
	--mga-shadow: 0 14px 36px rgba(16, 32, 90, 0.14);
	--mga-navy: #0b1a3d;
	--mga-blue2: #3a5bd6;
}

/* ---- Hero: text, visual, button + points, form ---------------------------- */

.template-managed .mga-hero {
	max-width: var(--xp-wide);
	margin: 0 auto;
	padding: 84px 16px 32px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 22px;
}

.mga-hero__text { grid-area: text; }
.mga-hero__form { grid-area: form; }

.template-managed .mga-answer {
	margin-top: 14px;
	font-size: 18px;
	line-height: 1.5;
	color: var(--xp-body);
}

.mga-points {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: center;
	font-size: 17px;
	color: var(--xp-ink);
}

.mga-points li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.mga-points a {
	color: var(--xp-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The answer video (inc/managed-ads.php sprizzy_managed_hero_video): a poster that plays on tap, printed once a video
   is registered for the page, in its own slot (css/managed-ads-v2.css). */
.mga-video__poster {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #0b1a3d;
	cursor: pointer;
	box-shadow: 0 22px 48px rgba(0, 46, 180, 0.28);
}

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

.mga-video__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border-radius: 50%;
	background: var(--xp-accent);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.mga-video__play::after {
	content: "";
	position: absolute;
	left: 28px;
	top: 21px;
	border-left: 22px solid #fff;
	border-top: 15px solid transparent;
	border-bottom: 15px solid transparent;
}

.mga-video__label {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
}

.mga-video__poster:focus-visible {
	outline: 3px solid var(--xp-accent);
	outline-offset: 3px;
}

.mga-video__frame {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 18px;
	background: #000;
}

.mga-video__transcript {
	margin-top: 10px;
}

.mga-video__transcript summary {
	cursor: pointer;
	padding: 8px 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--xp-accent);
}

.mga-video__transcript p {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--xp-body);
}

/* The form card: the server-rendered questions, replaced by the live panel (js/set-it-up.js page mode). */
.mga-formcard {
	scroll-margin-top: 96px;
}

.mga-static,
.template-managed .mga-formcard .siu-panel {
	background: #fff;
	border: 2px solid var(--xp-accent);
	border-radius: var(--mga-radius);
	box-shadow: var(--mga-shadow);
	padding: 20px 16px;
	margin: 0;
}

.mga-static {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 17px;
	line-height: 1.45;
	color: var(--xp-body);
}

.template-managed .mga-static__h,
.template-managed .mga-formcard .siu-h {
	font-size: 24px;
	line-height: 1.2;
	font-weight: 600;
	color: var(--xp-ink);
}

.template-managed .mga-under {
	margin-top: 12px;
	font-size: 16px;
	line-height: 1.45;
	text-align: center;
	color: var(--xp-meta);
}

.mga-quote {
	margin: 16px 0 0;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--xp-rule);
	border-left: 4px solid var(--xp-accent);
	border-radius: 12px;
}

.mga-quote blockquote {
	margin: 0;
}

.mga-quote blockquote p {
	font-size: 17px;
	line-height: 1.5;
	color: var(--xp-ink);
}

.mga-quote blockquote p::before { content: "\201C"; }
.mga-quote blockquote p::after { content: "\201D"; }

.mga-quote figcaption {
	margin-top: 8px;
	font-size: 15px;
	color: var(--xp-meta);
}

/* ---- Buttons ---------------------------------------------------------- */

.mga-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 26px;
	border-radius: 10px;
	background: var(--xp-accent);
	color: #fff !important;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(0, 66, 255, 0.28);
}

.mga-btn:hover,
.mga-btn:focus-visible {
	background: #0033c7;
}

.mga-btn:focus-visible {
	outline: 3px solid var(--xp-accent);
	outline-offset: 3px;
}

.mga-btn--big {
	min-height: 60px;
	padding: 0 34px;
	font-size: 20px;
}

/* ---- Sections --------------------------------------------------------- */

.template-managed .mga-section {
	padding: 52px 16px;
}

.template-managed .mga-section > * {
	max-width: var(--xp-wide);
	margin-left: auto;
	margin-right: auto;
}

.mga-section--tint {
	background: var(--xp-tint);
}

.mga-head {
	margin-bottom: 26px;
}

.template-managed .mga-head h2 {
	font-size: 30px;
	line-height: 1.12;
	font-weight: 600;
}

.template-managed .mga-head p {
	margin-top: 10px;
	max-width: var(--xp-measure);
	font-size: 18px;
	line-height: 1.5;
	color: var(--xp-body);
}

/* ---- The monthly loop, on navy -------------------------------------------- */

.mga-section--navy {
	background: radial-gradient(90% 120% at 100% 0%, #1d3b8f 0%, rgba(29, 59, 143, 0) 60%), var(--mga-navy);
}

.template-managed .mga-section--navy .mga-head h2 {
	color: #fff;
}

.template-managed .mga-section--navy .mga-head p,
.template-managed .mga-section--navy .mga-loop__note {
	color: #d6defa;
}

.mga-loop {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

.mga-loop li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border-radius: var(--mga-radius);
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 17px;
	line-height: 1.45;
	color: #d6defa;
}

.mga-loop b {
	font-size: 20px;
	line-height: 1.25;
	color: #fff;
}

.mga-loop__when {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8fb0ff;
}

.template-managed .mga-loop__note {
	margin-top: 18px;
	font-size: 17px;
}

/* ---- Compared with an agency --------------------------------------------- */

.mga-compare {
	border: 1px solid var(--xp-rule);
	border-radius: var(--mga-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--mga-shadow);
}

.mga-compare__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 4px;
	padding: 14px 16px;
	border-top: 1px solid var(--xp-rule);
	font-size: 16px;
	line-height: 1.4;
}

.mga-compare__row:first-child {
	border-top: 0;
}

.mga-compare__row--head {
	display: none;
}

.mga-compare__row [role="rowheader"] {
	font-weight: 600;
	color: var(--xp-ink);
}

.mga-compare__us {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	color: var(--xp-ink);
	font-weight: 500;
}

.mga-compare__us .lp_icon {
	width: 20px;
	height: 20px;
	margin-top: 1px;
}

.mga-compare__them {
	color: var(--xp-meta);
	padding-left: 28px;
}

.mga-compare__them::before {
	content: "Agencies: ";
	font-weight: 600;
}

/* ---- Quotes, close, sticky ------------------------------------------------ */

.mga-quotes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

.mga-quotes .mga-quote {
	margin: 0;
}

.template-managed .mga-close {
	margin: 0;
	padding: 56px 16px 64px;
	text-align: center;
	background: radial-gradient(100% 120% at 0% 0%, #3a5bd6 0%, rgba(58, 91, 214, 0) 60%), var(--xp-accent);
	color: #fff;
}

.template-managed .mga-close h2 {
	color: #fff;
	font-size: 30px;
	line-height: 1.15;
	font-weight: 600;
}

.template-managed .mga-close > p {
	margin: 12px auto 22px;
	max-width: 560px;
	font-size: 18px;
	line-height: 1.5;
	color: #e6ecff;
}

.template-managed .mga-close .mga-btn {
	background: #fff;
	color: var(--xp-accent) !important;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.template-managed .mga-close .xp-links {
	margin-top: 28px;
}

.template-managed .mga-close .xp-links a {
	color: #fff;
}

.mga-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 -4px 18px rgba(16, 32, 90, 0.12);
}

.mga-sticky .mga-btn {
	width: 100%;
}

body.mga-sticky-on {
	padding-bottom: 76px;
}

/* ---- Wider screens -------------------------------------------------------- */

@media (min-width: 900px) {
	.template-managed .mga-hero {
		padding: 120px 24px 64px;
		grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
		column-gap: 56px;
		row-gap: 24px;
		align-items: start;
	}

	.template-managed .mga-answer {
		font-size: 21px;
	}

	.mga-points {
		margin-top: 0;
	}

	.mga-static,
	.template-managed .mga-formcard .siu-panel {
		padding: 24px 22px;
	}

	.template-managed .mga-section {
		padding: 84px 24px;
	}

	.template-managed .mga-head h2,
	.template-managed .mga-close h2 {
		font-size: 42px;
	}

	.mga-loop {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
	}

	.mga-quotes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mga-compare__row {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 1fr);
		gap: 16px;
		padding: 16px 22px;
	}

	.mga-compare__row--head {
		display: grid;
		background: var(--mga-navy);
		font-weight: 600;
		color: #fff;
	}

	.mga-compare__row--head [role="columnheader"]:nth-child(2) {
		color: #8fb0ff;
	}

	.mga-compare__them {
		padding-left: 0;
	}

	.mga-compare__them::before {
		content: none;
	}

	.mga-sticky,
	body.mga-sticky-on {
		display: none;
		padding-bottom: 0;
	}
}

/* v5, the newcomer hero (Brandon 2026-11-09: "want to grow on YouTube but don't have the time to setup and manage your own
   promotions? Let us do it all for you ..."): the H1 stays for search as a small label, the selling line is the big
   type, two cards ("Promote one video" / "Grow my channel") carry the choice into a two-field form, the three steps in
   the blue box. The hero's grid areas and the steps now live in css/managed-ads-v2.css. */
.template-managed .mga-eyebrow {
	margin: 0;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--xp-accent);
}

.template-managed .mga-sell {
	margin-top: 10px;
	font-size: 32px;
	line-height: 1.12;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--xp-ink);
}

.template-managed .mga-hero .mga-answer {
	margin-top: 12px;
	font-size: 18px;
}

.mga-choices {
	margin-top: 18px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
}

.mga-choice {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 92px 16px 16px;
	border-radius: 14px;
	border: 2px solid var(--xp-accent);
	background: #fff;
	color: var(--xp-ink) !important;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(0, 66, 255, 0.10);
}

.mga-choice--grow {
	background: linear-gradient(150deg, #0042ff 0%, #13306f 100%);
	border-color: transparent;
	color: #fff !important;
}

.mga-choice__title {
	font-size: 20px;
	line-height: 1.2;
	font-weight: 700;
}

.mga-choice__line {
	font-size: 15px;
	line-height: 1.4;
	color: var(--xp-body);
}

.mga-choice--grow .mga-choice__line {
	color: #d9e2ff;
}

.mga-choice__go {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	padding: 9px 14px;
	border-radius: 10px;
	background: var(--xp-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.mga-choice--grow .mga-choice__go {
	background: #fff;
	color: var(--xp-accent);
}

.mga-choice:hover,
.mga-choice:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(0, 66, 255, 0.18);
}

.mga-choice:focus-visible {
	outline: 3px solid var(--xp-accent);
	outline-offset: 3px;
}

@media (min-width: 900px) {
	.template-managed .mga-sell {
		font-size: 46px;
	}

	.mga-choices {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mga-choice {
		padding: 18px 18px 64px;
	}

	.mga-choice__go {
		top: auto;
		bottom: 16px;
		left: 18px;
		right: auto;
		transform: none;
	}
}

/* The H1 label wins over the older hero h1 sizes (phone and desktop). */
.template-managed .mga-hero h1.mga-eyebrow {
	margin: 0;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: 0.06em;
}

@media (min-width: 900px) {
	.template-managed .mga-hero h1.mga-eyebrow {
		font-size: 16px;
	}
}

/* Room between the two choices and the trust row. */
.template-managed .mga-choices + .mga-points {
	margin-top: 18px;
}
