/**
 * PeakPoint Creator Assessment — homepage promo section.
 *
 * The Creator Archetype Universe entry point: a full-bleed near-black band
 * with four premium game-style archetype cards. Each card carries its
 * archetype's identity through the --pp-arch custom properties attached by
 * the template (from the centralized Archetypes visual system):
 *   --pp-arch / --pp-arch-deep / --pp-arch-glow / --pp-arch-soft
 * Lightweight by design (CSS + a tiny reveal script); characters are inline
 * SVG with their own subtle idle motion.
 */

.pp-ca-promo {
	/* Full-bleed out of OceanWP's content column (same technique the
	   webinar section uses on this site). */
	width: 100vw;
	margin-left: calc(50% - 50vw);
	overflow-x: clip;

	background:
		radial-gradient(1000px 480px at 88% -4%, rgba(255, 59, 78, 0.10), transparent 62%),
		radial-gradient(820px 460px at 2% 104%, rgba(196, 92, 255, 0.08), transparent 60%),
		linear-gradient(165deg, #0c0d13 0%, #0a0b10 60%, #0d0e15 100%);
	color: #fff;
	padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 64px);
	box-sizing: border-box;
}

.pp-ca-promo *,
.pp-ca-promo *::before,
.pp-ca-promo *::after {
	box-sizing: border-box;
}

.pp-ca-promo__inner {
	max-width: 1220px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(300px, 0.9fr) 1.1fr;
	gap: clamp(32px, 6vw, 72px);
	align-items: center;
}

/* Copy column */
.pp-ca-promo__eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #ff6b62;
	margin: 0 0 14px;
}

.pp-ca-promo__title {
	font-size: clamp(30px, 5.4vw, 52px);
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: #fff;
	margin: 0 0 10px;
}

.pp-ca-promo__question {
	font-size: clamp(17px, 2.6vw, 21px);
	font-weight: 700;
	color: #d9dce4;
	margin: 0 0 14px;
}

.pp-ca-promo__body {
	color: #b9bcc4;
	font-size: 16px;
	line-height: 1.65;
	max-width: 480px;
	margin: 0 0 28px;
}

.pp-ca-promo__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #e10600;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 16.5px;
	font-weight: 800;
	padding: 16px 36px;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(225, 6, 0, 0.38);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pp-ca-promo__cta:hover {
	background: #ff2117;
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(225, 6, 0, 0.48);
}

.pp-ca-promo__cta-arrow {
	transition: transform 0.18s ease;
}

.pp-ca-promo__cta:hover .pp-ca-promo__cta-arrow {
	transform: translateX(4px);
}

.pp-ca-promo__micro {
	margin: 14px 0 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #8d9097;
}

/* Archetype game cards */
.pp-ca-promo__personas {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(14px, 2vw, 20px);
}

.pp-ca-promo__persona {
	position: relative;
	background: linear-gradient(180deg, #13151d, #0e1016 85%);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 22px;
	padding: 10px 16px 18px;
	text-align: center;
	overflow: hidden;
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;

	/* gentle scroll-in reveal (activated by promo.js; harmless without it) */
	opacity: 1;
	transform: none;
}

/* Identity aura inside each card. */
.pp-ca-promo__persona::before {
	content: "";
	position: absolute;
	inset: -30% -20% auto -20%;
	height: 75%;
	background: radial-gradient(closest-side at 50% 45%, var(--pp-arch-glow), transparent 78%);
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.pp-ca-promo__persona[data-pp-ca-hidden] {
	opacity: 0;
	transform: translateY(16px);
}

.pp-ca-promo__persona.pp-ca-promo__persona--in {
	opacity: 1;
	transform: none;
	transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}

.pp-ca-promo__persona:hover {
	transform: translateY(-8px);
	border-color: var(--pp-arch);
	box-shadow: 0 20px 54px var(--pp-arch-glow);
}

.pp-ca-promo__persona:hover::before {
	opacity: 0.9;
}

.pp-ca-promo__persona-glyph {
	display: block;
	margin: 0 auto 6px;
	width: clamp(150px, 15vw, 208px);
	max-width: 100%;
	position: relative;
}

.pp-ca-promo__persona-glyph svg {
	width: 100%;
	height: auto;
	display: block;
	animation: pp-ca-promo-idle 6.5s ease-in-out infinite;
}

.pp-ca-promo__persona:nth-child(2) .pp-ca-promo__persona-glyph svg { animation-delay: -1.6s; }
.pp-ca-promo__persona:nth-child(3) .pp-ca-promo__persona-glyph svg { animation-delay: -3.2s; }
.pp-ca-promo__persona:nth-child(4) .pp-ca-promo__persona-glyph svg { animation-delay: -4.8s; }

@keyframes pp-ca-promo-idle {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}

.pp-ca-promo__persona:hover .pp-ca-promo__persona-glyph svg {
	animation-play-state: paused;
	transform: translateY(-3px) scale(1.03);
	transition: transform 0.25s ease;
}

/* Scene idle motion inside the card SVGs (shared class names with the
   assessment scenes; promo loads independently so they live here too). */
.pp-ca-promo .pp-scenesvg__float { animation: pp-ca-promo-float 5.5s ease-in-out infinite; }
.pp-ca-promo .pp-scenesvg__float--2 { animation-delay: -1.8s; }
.pp-ca-promo .pp-scenesvg__float--3 { animation-delay: -3.4s; }
.pp-ca-promo .pp-scenesvg__hover { animation: pp-ca-promo-float 4.5s ease-in-out infinite; }

@keyframes pp-ca-promo-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

.pp-ca-promo .pp-scenesvg__pulse { animation: pp-ca-promo-pulse 1.6s ease-in-out infinite; }

@keyframes pp-ca-promo-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

.pp-ca-promo .pp-scenesvg__orbit {
	animation: pp-ca-promo-orbit 40s linear infinite;
	transform-box: fill-box;
	transform-origin: center;
}

@keyframes pp-ca-promo-orbit {
	to { transform: rotate(360deg); }
}

.pp-ca-promo__persona-name {
	display: block;
	position: relative;
	font-size: 16.5px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.01em;
	margin-bottom: 4px;
}

.pp-ca-promo__persona-tease {
	display: block;
	position: relative;
	font-size: 12.5px;
	color: #a2a7b3;
}

/* Identity underline under each card name. */
.pp-ca-promo__persona-name::after {
	content: "";
	display: block;
	width: 34px;
	height: 3px;
	border-radius: 2px;
	margin: 7px auto 0;
	background: var(--pp-arch);
}

/* Responsive */
@media (max-width: 940px) {
	.pp-ca-promo__inner {
		grid-template-columns: 1fr;
	}

	.pp-ca-promo__copy {
		text-align: center;
	}

	.pp-ca-promo__body {
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 480px) {
	.pp-ca-promo__personas {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.pp-ca-promo__persona {
		padding: 8px 10px 14px;
	}

	.pp-ca-promo__persona-glyph {
		width: 100%;
	}

	.pp-ca-promo__cta {
		width: 100%;
		justify-content: center;
	}
}

/* ------------------------------------------------------------------ *
 * Brand contrast enforcement (root-cause layer)
 *
 * The promo is a dark band rendered inside Elementor page content, so its
 * headings/paragraphs are exposed to theme + Elementor-kit color rules
 * (e.g. `.elementor-kit-x h2`, `.entry-content p` — specificity (0,1,1)).
 * These (0,2,0) rules are declared last and always win: dark band => white
 * or clearly light text, red CTA => white text. Never inherited.
 * ------------------------------------------------------------------ */

.pp-ca-promo .pp-ca-promo__eyebrow { color: #ff6b62; }
.pp-ca-promo .pp-ca-promo__title { color: #ffffff; }
.pp-ca-promo .pp-ca-promo__question { color: #d9dce4; }
.pp-ca-promo .pp-ca-promo__body { color: #b9bcc4; }
.pp-ca-promo .pp-ca-promo__micro { color: #9a9ea8; }
.pp-ca-promo .pp-ca-promo__persona-name { color: #ffffff; }
.pp-ca-promo .pp-ca-promo__persona-tease { color: #a2a7b3; }
.pp-ca-promo .pp-ca-promo__cta,
.pp-ca-promo .pp-ca-promo__cta:hover,
.pp-ca-promo .pp-ca-promo__cta:focus,
.pp-ca-promo .pp-ca-promo__cta:active,
.pp-ca-promo .pp-ca-promo__cta:visited { color: #ffffff !important; }

.pp-ca-promo :focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.pp-ca-promo *,
	.pp-ca-promo *::before,
	.pp-ca-promo *::after {
		animation-duration: 0.001s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001s !important;
	}

	.pp-ca-promo__persona[data-pp-ca-hidden] {
		opacity: 1;
		transform: none;
	}
}
