/* The /promote/ family and hub (page-promote.php, page-promote-hub.php, inc/promote-visuals.php), 2026-11-20.
 * Design: ops repo docs/design/2026-11-20-promote-family/03-plan.md. Loaded after css/landing_pages.css by the two
 * templates only. Colors are the theme's own (#0042FF, #3B3B3B, #E6E6E6, #F3F6FF, #FFD600); no platform's colors.
 * Motion: transform and opacity only, one 6 s loop, and nothing moves under prefers-reduced-motion. Mobile first. */

/* ---- Path figure: the ad, the tap, the page ---- */

.template-landing-promote .pf-path {
	max-width: 1080px;
	margin: 32px auto 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

.template-landing-promote .pf-path__stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	background: #F3F6FF;
	border-radius: 20px;
	padding: 18px 16px 22px 16px;
}

.template-landing-promote .pf-step__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px 0;
	color: #000000;
	font-size: 16px;
	line-height: 1.25;
	font-weight: 600;
	text-align: left;
}

.template-landing-promote .pf-step__label span {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #0042FF;
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 700;
}

/* The ad: the destination's scene in a 16:9 player with the ad bar drawn on top. */
.template-landing-promote .pf-ad {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #1A1919;
	box-shadow: 0 14px 34px rgba(0, 20, 90, 0.18);
}

.template-landing-promote .pf-ad__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.template-landing-promote .pf-ad__badge {
	position: absolute;
	left: 10px;
	top: 10px;
	background: #FFD600;
	color: #000000;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 7px;
	border-radius: 4px;
}

.template-landing-promote .pf-ad__bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 22px 10px 12px 10px;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
	color: #FFFFFF;
}

.template-landing-promote .pf-ad__dot {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #0042FF;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.template-landing-promote .pf-ad__name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.template-landing-promote .pf-ad__btn {
	position: relative;
	flex: 0 0 auto;
	background: #FFFFFF;
	color: #000000;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	padding: 8px 12px;
	border-radius: 16px;
}

/* the tap: a ring that grows out of the button */
.template-landing-promote .pf-ring {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	border: 3px solid #FFD600;
	opacity: 0;
	pointer-events: none;
	animation: pf-ring 6s ease-out infinite;
}

.template-landing-promote .pf-ad__progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: rgba(255, 255, 255, 0.3);
}

.template-landing-promote .pf-ad__progress span {
	display: block;
	height: 100%;
	width: 100%;
	background: #FFD600;
	transform-origin: left center;
	animation: pf-progress 6s linear infinite;
}

/* the arrow between the two halves */
.template-landing-promote .pf-step--tap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 2px 0;
}

.template-landing-promote .pf-step--tap .pf-step__label {
	margin: 0;
}

.template-landing-promote .pf-arrow {
	width: 28px;
	height: 40px;
	transform: rotate(90deg);
	fill: none;
	stroke: #0042FF;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The page that opens: a browser frame with the destination's address, and a sketch of the page. */
.template-landing-promote .pf-browser {
	background: #FFFFFF;
	border-radius: 12px;
	border: 1px solid #DCE3F5;
	overflow: hidden;
	box-shadow: 0 14px 34px rgba(0, 20, 90, 0.14);
	animation: pf-lift 6s ease-out infinite;
}

.template-landing-promote .pf-browser__bar {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 10px;
	background: #F1F3F8;
	border-bottom: 1px solid #E6E9F2;
}

.template-landing-promote .pf-browser__bar i {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #C9CEDB;
}

.template-landing-promote .pf-browser__url {
	flex: 1 1 auto;
	min-width: 0;
	margin-left: 6px;
	padding: 4px 10px;
	background: #FFFFFF;
	border-radius: 12px;
	color: #3B3B3B;
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}

.template-landing-promote .pf-page {
	text-align: left;
}

.template-landing-promote .pf-page__media {
	position: relative;
	aspect-ratio: 16 / 8;
	overflow: hidden;
	background: #E6E9F2;
}

.template-landing-promote .pf-page__media--banner {
	aspect-ratio: 16 / 6;
}

.template-landing-promote .pf-page__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.template-landing-promote .pf-page__img--empty {
	background: #E6E9F2;
}

.template-landing-promote .pf-chip {
	position: absolute;
	left: 10px;
	top: 10px;
	background: #FFFFFF;
	color: #000000;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 8px;
	border-radius: 10px;
}

.template-landing-promote .pf-page__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 12px 14px 12px;
}

.template-landing-promote .pf-bar {
	display: block;
	height: 8px;
	border-radius: 4px;
	background: #E3E7F0;
}

.template-landing-promote .pf-bar--strong {
	height: 12px;
	background: #C3CBDD;
}

.template-landing-promote .pf-stars {
	display: flex;
	gap: 3px;
}

.template-landing-promote .pf-stars i {
	width: 11px;
	height: 11px;
	background: #FFB400;
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.template-landing-promote .pf-btns {
	display: flex;
	gap: 6px;
	margin-top: 4px;
}

.template-landing-promote .pf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 10px;
	border-radius: 8px;
	background: #0042FF;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.template-landing-promote .pf-btn--ghost {
	background: #FFFFFF;
	color: #1A1919;
	border: 1px solid #D5DAE6;
}

.template-landing-promote .pf-btn--wide {
	flex: 1 1 auto;
}

.template-landing-promote .pf-progress {
	display: block;
	height: 8px;
	border-radius: 4px;
	background: #E3E7F0;
	overflow: hidden;
}

.template-landing-promote .pf-progress span {
	display: block;
	width: 64%;
	height: 100%;
	background: #20B26B;
	border-radius: 4px;
}

/* podcast: square art, a play button, episodes */
.template-landing-promote .pf-page__pod {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 12px 12px 0 12px;
}

.template-landing-promote .pf-page__pod > .pf-page__img,
.template-landing-promote .pf-page__pod > img {
	width: 96px;
	height: 96px;
	border-radius: 10px;
}

.template-landing-promote .pf-page__pod > div {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.template-landing-promote .pf-play {
	display: inline-block;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #0042FF;
	position: relative;
}

.template-landing-promote .pf-play::after {
	content: "";
	position: absolute;
	left: 13px;
	top: 10px;
	border-left: 11px solid #FFFFFF;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
}

.template-landing-promote .pf-play--sm {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
}

.template-landing-promote .pf-play--sm::after {
	left: 8px;
	top: 6px;
	border-left-width: 8px;
	border-top-width: 5px;
	border-bottom-width: 5px;
}

.template-landing-promote .pf-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.template-landing-promote .pf-row .pf-bar {
	flex: 0 1 auto;
}

/* social profile: header, then a grid */
.template-landing-promote .pf-page__profile {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 12px;
}

.template-landing-promote .pf-page__profile > div {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.template-landing-promote .pf-avatar {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	background: #E3E7F0;
}

.template-landing-promote .pf-avatar--lg {
	width: 72px;
	height: 72px;
	margin: 0 auto;
}

.template-landing-promote .pf-avatar .pf-page__img,
.template-landing-promote .pf-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.template-landing-promote .pf-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 3px;
	padding: 0 12px 12px 12px;
}

.template-landing-promote .pf-grid__tile {
	aspect-ratio: 1 / 1;
	background: #E3E7F0;
	overflow: hidden;
}

.template-landing-promote .pf-grid__tile:nth-child(2n) {
	background: #D3DAEA;
}

/* link in bio: avatar, name, stacked links */
.template-landing-promote .pf-page__bio {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 16px 18px 16px;
	background: linear-gradient(180deg, #F3F6FF, #FFFFFF);
}

.template-landing-promote .pf-page__bio .pf-bar {
	margin-bottom: 4px;
}

.template-landing-promote .pf-link {
	display: block;
	width: 100%;
	padding: 9px 0;
	border-radius: 20px;
	background: #FFFFFF;
	border: 1px solid #D5DAE6;
	color: #1A1919;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.template-landing-promote .pf-path__caption {
	max-width: 690px;
	margin: 14px auto 0 auto;
	color: #3B3B3B;
	font-size: 17px;
	line-height: 1.45;
	text-align: center;
}

/* hub: three pages fanned behind the tap */
.template-landing-promote .pf-fan {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
}

.template-landing-promote .pf-fan .pf-browser--podcast .pf-page__pod {
	padding-bottom: 12px;
}

.template-landing-promote .pf-fan .pf-browser--podcast .pf-page__body,
.template-landing-promote .pf-fan .pf-browser--listing .pf-page__body .pf-bar:nth-child(n+2),
.template-landing-promote .pf-fan .pf-browser--shop .pf-page__body .pf-bar:nth-of-type(2) {
	display: none;
}

@media (max-width: 767px) {
	.template-landing-promote .pf-fan .pf-browser--podcast,
	.template-landing-promote .pf-fan .pf-browser--listing {
		display: none;
	}
}

@media (min-width: 768px) {
	.template-landing-promote .pf-path {
		margin-top: 40px;
	}

	.template-landing-promote .pf-path__stage {
		grid-template-columns: minmax(0, 1.25fr) 96px minmax(0, 1fr);
		gap: 12px;
		padding: 28px 28px 30px 28px;
		border-radius: 24px;
	}

	.template-landing-promote .pf-step--tap {
		flex-direction: column;
		align-self: center;
		gap: 6px;
		padding-top: 30px;
	}

	.template-landing-promote .pf-step--tap .pf-step__label {
		flex-direction: column;
		font-size: 15px;
		text-align: center;
	}

	.template-landing-promote .pf-arrow {
		width: 80px;
		height: 24px;
		transform: none;
	}

	.template-landing-promote .pf-ad__name {
		font-size: 16px;
	}

	.template-landing-promote .pf-ad__btn {
		font-size: 14px;
		padding: 9px 14px;
	}

	/* hub: three pages stacked like a deck, each address bar showing above the one in front */
	.template-landing-promote .pf-fan {
		display: block;
		height: 400px;
	}

	.template-landing-promote .pf-fan .pf-browser {
		position: absolute;
		animation: none;
	}

	.template-landing-promote .pf-fan .pf-browser--podcast {
		top: 0;
		left: 48px;
		right: 0;
		height: 150px;
		opacity: 0.8;
	}

	.template-landing-promote .pf-fan .pf-browser--listing {
		top: 40px;
		left: 24px;
		right: 24px;
		height: 150px;
		opacity: 0.92;
	}

	.template-landing-promote .pf-fan .pf-browser--shop {
		top: 80px;
		left: 0;
		right: 48px;
		animation: pf-lift 6s ease-out infinite;
	}
}

@keyframes pf-progress {
	0% { transform: scaleX(0); }
	55% { transform: scaleX(0.62); }
	100% { transform: scaleX(0.62); }
}

@keyframes pf-ring {
	0%, 52% { transform: scale(0.5); opacity: 0; }
	60% { transform: scale(0.8); opacity: 0.95; }
	78% { transform: scale(1.7); opacity: 0; }
	100% { transform: scale(1.7); opacity: 0; }
}

/* The frame stays fully opaque (a crawler or a screenshot can land at any point in the loop); only the lift moves. */
@keyframes pf-lift {
	0%, 58% { transform: translateY(10px); }
	72%, 100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.template-landing-promote .pf-ring,
	.template-landing-promote .pf-ad__progress span,
	.template-landing-promote .pf-browser,
	.template-landing-promote .pf-fan .pf-browser--shop {
		animation: none;
	}

	.template-landing-promote .pf-ad__progress span {
		transform: scaleX(0.62);
	}
}

/* ---- Hub: the path figure's own section ---- */

.template-landing-promote .pf-path-section {
	padding: 0 16px;
}

.template-landing-promote .pf-path-section .pf-path {
	padding: 0;
}

/* Question headings run longer than the old statements: a little more leading so two lines never touch. */
.template-landing-promote .content .section-basic .text_wrapper h2 {
	line-height: 1.02;
	text-wrap: balance;
}

/* ---- The flow table under the figure: the figure replaces the table's top margin ---- */

.template-landing-promote .section-checklist .pf-path + .checklist {
	margin-top: 28px;
}

/* ---- Guide as cards (the destination know-how): two columns from 900 px ---- */

.template-landing-promote .section-guide .guide_items {
	max-width: 1080px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

.template-landing-promote .section-guide .guide_item,
.template-landing-promote .section-guide .guide_item:first-child {
	padding: 20px 20px 22px 20px;
	border: 1px solid #E6E6E6;
	border-radius: 14px;
	background: #FFFFFF;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.template-landing-promote .section-guide .guide_item h3 {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.template-landing-promote .section-guide .guide_item h3::before {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	margin-top: 9px;
	border-radius: 50%;
	background: #0042FF;
}

@media (min-width: 900px) {
	.template-landing-promote .section-guide .guide_items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

/* ---- Reviews ---- */

.template-landing-promote .pf-reviews {
	--rs-ink: #000000;
	--rs-body: #292929;
	--rs-meta: #5F5F5F;
	--rs-ground: #F7F6F6;
	--rs-radius: 14px;
	padding: 0 16px;
}

.template-landing-promote .pf-reviews__grid {
	max-width: 1000px;
	margin: 32px auto 0 auto;
	text-align: left;
}

.template-landing-promote .pf-reviews .rs-say {
	padding: 22px 22px 20px 22px;
}

.template-landing-promote .pf-reviews .rs-say__who a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.template-landing-promote .pf-reviews__foot {
	max-width: 760px;
	margin: 18px auto 0 auto;
	text-align: center;
}

.template-landing-promote .pf-reviews__foot .results-vary {
	margin: 0 0 6px 0;
	color: #6B6B6B;
	font-size: 14px;
}

.template-landing-promote .pf-reviews__rating {
	margin: 0 0 18px 0;
	color: #1A1919;
	font-size: 17px;
	line-height: 1.5;
}

.template-landing-promote .pf-reviews__foot .google-button-wrap {
	display: flex;
	justify-content: center;
}

/* ---- Hub: destination groups (the old table, merged) ---- */

.template-landing-promote .pf-groups {
	padding: 0 16px;
}

.template-landing-promote .pf-groups__grid {
	max-width: 1120px;
	margin: 32px auto 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	text-align: left;
}

.template-landing-promote .pf-group {
	padding: 20px 18px 10px 18px;
	border: 1px solid #E6E6E6;
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.template-landing-promote .pf-group__head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 8px;
}

.template-landing-promote .pf-group__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #F3F6FF;
	color: #0042FF;
}

.template-landing-promote .pf-group h3 {
	margin: 0;
	color: #000000;
	font-size: 21px;
	line-height: 1.25;
	font-weight: 600;
}

.template-landing-promote .pf-group__head p {
	margin: 2px 0 0 0;
	color: #5F5F5F;
	font-size: 15px;
	line-height: 1.4;
}

.template-landing-promote .pf-group ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.template-landing-promote .pf-group li {
	padding: 10px 0;
	border-top: 1px solid #EEEEEE;
}

.template-landing-promote .pf-group li a {
	display: inline-block;
	color: #0042FF;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.template-landing-promote .pf-group li a::after {
	content: " \203A";
}

.template-landing-promote .pf-group li a:hover {
	text-decoration: underline;
}

.template-landing-promote .pf-group li a:focus-visible {
	outline: 2px solid #0042FF;
	outline-offset: 2px;
	border-radius: 2px;
}

.template-landing-promote .pf-group li span {
	display: block;
	margin-top: 2px;
	color: #3B3B3B;
	font-size: 15px;
	line-height: 1.45;
}

@media (min-width: 768px) {
	.template-landing-promote .pf-groups__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

@media (min-width: 1100px) {
	.template-landing-promote .pf-groups__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* the seventh card (YouTube itself) takes the whole last row, its links side by side */
	.template-landing-promote .pf-group--youtube {
		grid-column: 1 / -1;
	}

	.template-landing-promote .pf-group--youtube ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 28px;
	}
}

/* Phones: each group's destinations as tappable chips, each with its line (what the tap opens) under the chips' row in
   a smaller size: Google reads the phone render, and that line is the hub's only copy about each destination. */
@media (max-width: 767px) {
	.template-landing-promote .pf-group {
		padding: 16px 16px 14px 16px;
	}

	.template-landing-promote .pf-group ul {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		padding-top: 10px;
		border-top: 1px solid #EEEEEE;
	}

	.template-landing-promote .pf-group li {
		padding: 0;
		border-top: 0;
	}

	.template-landing-promote .pf-group li a {
		display: inline-flex;
		align-items: center;
		min-height: 40px;
		padding: 0 14px;
		border-radius: 20px;
		background: #F3F6FF;
		font-size: 16px;
	}

	.template-landing-promote .pf-group li span {
		margin: 4px 0 0 14px;
		font-size: 14px;
		line-height: 1.4;
	}
}

@media (max-width: 540px) {
	.template-landing-promote .pf-reviews__grid,
	.template-landing-promote .pf-groups__grid {
		margin-top: 20px;
	}
}
