/*
 * /how-it-works/ and /features/ (rebuilt 2026-11-06, inc/explainer-pages.php). Visual first: on phones every block
 * shows its picture above its text. Scoped to .template-explainer.
 */

.template-explainer {
	--xp-ink: #1a1919;
	--xp-body: #3d3d3d;
	--xp-meta: #6b6b6b;
	--xp-accent: #0042ff;
	--xp-tint: #f3f6ff;
	--xp-rule: #e6e6e6;
	--xp-wide: 1120px;
	--xp-measure: 620px;
	color: var(--xp-ink);
	font-family: Founders Grotesk, sans-serif;
	background: #fff;
	overflow-x: clip;
}

.template-explainer h1,
.template-explainer h2,
.template-explainer h3 {
	font-family: Founders Grotesk, sans-serif;
	color: var(--xp-ink);
	margin: 0;
}

.template-explainer p {
	margin: 0;
}

.template-explainer a {
	color: var(--xp-accent);
}

/* The shared Google button (its base rules live in css/real_estate_promotion.css, which these pages don't load). */
.template-explainer .google-button {
	width: fit-content;
	box-shadow: 0 1px 3px rgba(188, 188, 188, 0.55);
	padding: 5px;
	background: #fff;
	border-radius: 6px;
	display: flex;
	align-items: center;
	cursor: pointer;
}

.template-explainer .google-button img {
	width: 28px;
	margin: 0 14px 0 10px;
}

.template-explainer .google-button .get-started {
	background: var(--xp-accent);
	color: #fff;
	font-size: 19px;
	line-height: 20px;
	font-weight: 500;
	padding: 17px 30px 15px;
	border-radius: 4px;
}

.template-explainer .google-button:hover .get-started span,
.template-explainer .google-button:focus-visible .get-started span {
	text-decoration: underline;
}

.template-explainer .google-button:focus-visible {
	outline: 3px solid var(--xp-accent);
	outline-offset: 3px;
}

.template-explainer .lp_icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: var(--xp-accent);
}

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

.xp-hero {
	max-width: var(--xp-wide);
	margin: 0 auto;
	padding: 128px 24px 48px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
	gap: 56px;
	align-items: center;
}

.xp-hero h1 {
	font-size: 64px;
	line-height: 1.02;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.xp-answer {
	margin-top: 20px;
	max-width: 560px;
	font-size: 21px;
	line-height: 1.45;
	color: var(--xp-body);
}

.xp-cta {
	margin-top: 28px;
}

.xp-checks {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.xp-checks li,
.xp-facts li,
.xp-split li,
.xp-glance li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 17px;
	line-height: 1.35;
	color: var(--xp-ink);
}

.xp-checks .hero_checks__partner {
	margin-top: 4px;
}

.xp-hero__visual--phone {
	display: none;
}

/* ---- Visuals ---------------------------------------------------------- */

.xp-visual {
	position: relative;
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	background: var(--xp-tint);
	aspect-ratio: 4 / 3;
	box-shadow: 0 14px 36px rgba(16, 32, 90, 0.12);
}

.xp-visual video,
.xp-visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xp-pause {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(26, 25, 25, 0.62);
	cursor: pointer;
	padding: 0;
}

.xp-pause span {
	display: block;
	width: 10px;
	height: 12px;
	margin: 0 auto;
	border-left: 3px solid #fff;
	border-right: 3px solid #fff;
}

.xp-pause.is-paused span {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent #fff;
	margin-left: 13px;
}

.xp-pause:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* ---- Picture strip ---------------------------------------------------- */

.xp-strip {
	list-style: none;
	max-width: var(--xp-wide);
	margin: 0 auto;
	padding: 0 24px 24px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	counter-reset: xp-strip;
}

.xp-strip li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border-radius: 14px;
	background: var(--xp-tint);
	font-size: 19px;
	font-weight: 500;
	counter-increment: xp-strip;
}

.xp-strip li::before {
	content: counter(xp-strip);
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--xp-accent);
	color: #fff;
	font-size: 16px;
	line-height: 31px;
	text-align: center;
	font-weight: 600;
}

.xp-icon {
	flex: 0 0 auto;
	color: var(--xp-accent);
}

/* ---- Blocks (steps and features) -------------------------------------- */

.xp-steps,
.xp-list {
	list-style: none;
	max-width: var(--xp-wide);
	margin: 0 auto;
	padding: 40px 24px 16px;
	display: grid;
	gap: 72px;
}

.xp-block {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
	scroll-margin-top: 96px;
}

.xp-steps > .xp-block:nth-child(even) .xp-block__visual,
.xp-list > .xp-block:nth-child(even) .xp-block__visual {
	order: 2;
}

.xp-block__text h2 {
	font-size: 38px;
	line-height: 1.1;
	font-weight: 600;
}

.xp-block__text > p {
	margin-top: 14px;
	max-width: var(--xp-measure);
	font-size: 19px;
	line-height: 1.5;
	color: var(--xp-body);
}

.xp-facts {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

/* Step 1's live preview (the /see-your-ad/ stage and finder) */
.xp-preview {
	background: var(--xp-tint);
	border-radius: 16px;
	padding: 20px;
}

.xp-preview .st-finder {
	margin-top: 16px;
}

.home-min.xp-preview .hm-hint {
	margin-top: 10px;
}

/* start.css draws an empty result as a dashed drop zone on wide screens; here the stage above already shows the ad */
.start.xp-preview .st-result:empty {
	display: none;
}

/* The estimate in the video card (js/start-finder.js estimateBlock, data-estimate="1") */
.xp-preview .st-est {
	display: grid;
	gap: 10px;
	padding: 12px;
	border-radius: 10px;
	background: var(--xp-tint);
}

.xp-preview .st-est__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--hm-ink);
}

.xp-preview .st-est__chips {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.xp-preview .st-est__chip {
	min-height: 44px;
	padding: 0 6px;
	border: 1px solid var(--hm-rule);
	border-radius: 999px;
	background: var(--hm-white);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	color: var(--hm-ink);
	cursor: pointer;
}

.xp-preview .st-est__chip[aria-pressed="true"] {
	border-color: var(--hm-accent);
	background: var(--hm-accent);
	color: #fff;
}

.xp-preview .st-est__chip:focus-visible {
	outline: none;
	box-shadow: var(--hm-focus);
}

.xp-preview .st-est__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.xp-preview .st-est__label {
	margin: 0;
	font-size: 14px;
	line-height: 1.3;
	color: var(--hm-meta);
}

.xp-preview .st-est__value {
	margin: 2px 0 0;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--hm-ink);
}

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

.xp-section {
	padding: 64px 0;
}

.xp-section--tint {
	background: var(--xp-tint);
	margin-top: 48px;
}

.xp-section > .xp-block,
.xp-section > .xp-split {
	max-width: var(--xp-wide);
	margin: 0 auto;
	padding: 0 24px;
}

.xp-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 40px !important;
}

.xp-split__col {
	background: #fff;
	border-radius: 16px;
	padding: 24px 26px;
	border: 1px solid var(--xp-rule);
}

.xp-split__col--we {
	border: 2px solid var(--xp-accent);
}

.xp-split h3 {
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 14px;
}

.xp-split ul,
.xp-glance ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.xp-proof {
	padding: 24px 0;
}

.xp-made,
.xp-says,
.xp-cost,
.xp-glance,
.xp-faq,
.xp-close {
	max-width: var(--xp-wide);
	margin: 0 auto;
	padding: 56px 24px;
}

.xp-made h2,
.xp-says h2,
.xp-cost h2,
.xp-glance h2,
.xp-faq h2,
.xp-close h2 {
	font-size: 38px;
	line-height: 1.1;
	font-weight: 600;
}

.xp-made__list {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
}

.xp-made__list a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 20px 10px;
	border: 1px solid var(--xp-rule);
	border-radius: 14px;
	text-decoration: none;
	color: var(--xp-ink);
	font-size: 17px;
	font-weight: 500;
	text-align: center;
}

.xp-made__list a:hover,
.xp-made__list a:focus-visible {
	border-color: var(--xp-accent);
}

.xp-made__note,
.xp-cost p {
	margin-top: 16px;
	max-width: var(--xp-measure);
	font-size: 19px;
	line-height: 1.5;
	color: var(--xp-body);
}

.xp-glance ul {
	margin-top: 20px;
	grid-template-columns: 1fr 1fr;
	gap: 12px 32px;
}

/* ---- FAQ -------------------------------------------------------------- */

.xp-faq h2 {
	margin-bottom: 16px;
}

.xp-faq__item {
	border-bottom: 1px solid var(--xp-rule);
}

.xp-faq__item summary {
	list-style: none;
	cursor: pointer;
	padding: 20px 40px 20px 0;
	position: relative;
}

.xp-faq__item summary::-webkit-details-marker {
	display: none;
}

.xp-faq__item summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 14px;
	font-size: 30px;
	color: var(--xp-accent);
}

.xp-faq__item[open] summary::after {
	content: "\2212";
}

.xp-faq__item summary:focus-visible {
	outline: 3px solid var(--xp-accent);
	outline-offset: 2px;
}

.xp-faq__item h3 {
	display: inline;
	font-size: 21px;
	line-height: 1.35;
	font-weight: 500;
}

.xp-faq__item p {
	padding: 0 0 22px;
	max-width: var(--xp-measure);
	font-size: 18px;
	line-height: 1.5;
	color: var(--xp-body);
}

/* ---- Close and links -------------------------------------------------- */

.xp-close {
	text-align: center;
}

.xp-close .google-button {
	margin: 24px auto 0;
}

.xp-close__note {
	margin-top: 12px;
	font-size: 16px;
	color: var(--xp-meta);
}

.xp-links {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 28px;
	font-size: 17px;
}

/* Jump links (/features/) */
.xp-jump {
	max-width: var(--xp-wide);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.xp-jump a {
	padding: 9px 16px;
	border: 1px solid var(--xp-rule);
	border-radius: 999px;
	font-size: 16px;
	text-decoration: none;
	color: var(--xp-ink);
}

.xp-jump a:hover,
.xp-jump a:focus-visible {
	border-color: var(--xp-accent);
	color: var(--xp-accent);
}

.template-features .xp-list > .xp-block {
	scroll-margin-top: 96px;
}

/* Sticky button bar: phones only, once the hero button has scrolled away (js/explainer-pages.js). */
.xp-sticky {
	display: none;
}

/* ---- Phones ----------------------------------------------------------- */

@media (max-width: 900px) {
	.xp-made__list {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.xp-hero {
		grid-template-columns: 1fr;
		padding: 92px 16px 24px;
		gap: 0;
	}

	.xp-hero h1 {
		font-size: 40px;
	}

	.xp-answer {
		margin-top: 12px;
		font-size: 18px;
		line-height: 1.42;
	}

	.xp-hero__visual--wide {
		display: none;
	}

	.xp-hero__visual--phone {
		display: block;
		margin-top: 18px;
	}

	.xp-cta {
		margin-top: 16px;
	}

	.xp-cta .google-button {
		width: 100%;
		box-sizing: border-box;
	}

	.xp-cta .google-button .text-outer,
	.xp-cta .google-button .get-started {
		flex: 1 1 auto;
		text-align: center;
	}

	.xp-checks li {
		font-size: 16px;
	}

	.xp-strip {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 8px 16px 8px;
	}

	.xp-strip li {
		padding: 12px 14px;
		font-size: 17px;
	}

	.xp-steps,
	.xp-list {
		padding: 32px 16px 8px;
		gap: 48px;
	}

	/* Phones read heading, visual, words (Brandon 2026-11-06: "make the flow logical and clear"). With the visual
	   first, a loop sat between the last step's text and its own heading and read as part of the step before; the
	   heading now names it, the visual still comes before the words that explain it. */
	.xp-block {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.xp-block__text {
		display: contents;
	}

	.xp-block__text h2 {
		order: 1;
	}

	.xp-block .xp-block__visual,
	.xp-steps > .xp-block:nth-child(even) .xp-block__visual,
	.xp-list > .xp-block:nth-child(even) .xp-block__visual {
		order: 2;
	}

	.xp-block__text > p {
		order: 3;
		margin-top: 0;
	}

	.xp-block .xp-facts {
		order: 4;
		margin-top: 0;
	}

	/* Step 1 is a box to use, so its one-line instruction comes before it */
	#see-your-ad .xp-block__text > p {
		order: 2;
	}

	#see-your-ad .xp-block__visual {
		order: 3;
	}

	.xp-block__text h2,
	.xp-made h2,
	.xp-says h2,
	.xp-cost h2,
	.xp-glance h2,
	.xp-faq h2,
	.xp-close h2 {
		font-size: 28px;
	}

	.xp-block__text > p,
	.xp-made__note,
	.xp-cost p {
		font-size: 17px;
	}

	.xp-preview {
		padding: 14px;
	}

	.xp-section {
		padding: 44px 0;
	}

	.xp-section > .xp-block,
	.xp-section > .xp-split {
		padding: 0 16px;
	}

	.xp-split {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-top: 24px !important;
	}

	.xp-made,
	.xp-says,
	.xp-cost,
	.xp-glance,
	.xp-faq,
	.xp-close {
		padding: 40px 16px;
	}

	.xp-made__list a {
		padding: 14px 6px;
		font-size: 15px;
	}

	.xp-glance ul {
		grid-template-columns: 1fr;
	}

	.xp-jump {
		padding: 0 16px;
		gap: 8px;
	}

	.xp-jump a {
		font-size: 15px;
		padding: 8px 13px;
	}

	.xp-sticky {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
	}

	.xp-sticky.is-on {
		display: block;
	}

	.xp-sticky .google-button {
		width: 100%;
		box-sizing: border-box;
	}

	.xp-sticky .google-button .text-outer,
	.xp-sticky .google-button .get-started {
		flex: 1 1 auto;
		text-align: center;
	}

	.template-explainer {
		padding-bottom: 84px;
	}

	body.xp-sticky-on .spc-launch {
		transform: translateY(-80px);
	}

	.spc-launch {
		transition: transform 0.2s ease;
	}
}

/* Buyer's guide (/best-youtube-promotion-service/): a card in the visual slot for the checks with no loop
   (Google's Partner badge, the price, the guarantee). Same frame as .xp-visual, the words stay text. */
.xp-card {
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	background: var(--xp-tint);
	box-shadow: 0 14px 36px rgba(16, 32, 90, 0.12);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 24px;
	text-align: center;
	box-sizing: border-box;
}

.xp-card img {
	display: block;
	height: auto;
}

.xp-card__kicker,
.xp-card__label {
	font-size: 24px;
	line-height: 1.2;
	font-weight: 600;
	color: var(--xp-ink);
}

.xp-card__big {
	font-size: 112px;
	line-height: 0.95;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--xp-accent);
}

.xp-card__sub {
	font-size: 17px;
	line-height: 1.35;
	color: var(--xp-meta);
}

.xp-card__chips {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.xp-card__chips li {
	padding: 7px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--xp-rule);
	font-size: 16px;
	font-weight: 500;
	color: var(--xp-ink);
}

@media (max-width: 767px) {
	.xp-card {
		padding: 18px;
	}

	.xp-card__kicker,
	.xp-card__label {
		font-size: 20px;
	}

	.xp-card__big {
		font-size: 84px;
	}

	.xp-card img {
		width: 120px;
	}

	.xp-card__seal {
		width: 76px;
		height: 76px;
	}
}

/* The guide's question is longer than "How Sprizzy works": three lines on desktop, not four. */
.template-buyers-guide .xp-hero h1 {
	font-size: 54px;
	line-height: 1.04;
	text-wrap: balance;
}

@media (min-width: 1024px) {
	/* Three quotes in one row (css/results.css sets two from 768 px). */
	.template-buyers-guide .rs-says__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.template-buyers-guide .xp-hero h1 {
		font-size: 38px;
	}

	/* Seven chips wrapped to four rows on a phone; one row that scrolls sideways keeps the checks close to the hero. */
	.template-buyers-guide .xp-jump {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}

	.template-buyers-guide .xp-jump::-webkit-scrollbar {
		display: none;
	}

	.template-buyers-guide .xp-jump a {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

/* /features/ reviews: the card grid from css/results.css inside the section frame */
.xp-says .rs {
	margin-top: 20px;
	padding: 0;
}

.xp-says > p {
	margin-top: 16px;
	font-size: 17px;
}
