/* ==========================================================================
   Course sales pages (templates/sales-page.php)
   ========================================================================== */

.pm-sales-page .site-content > .ast-container { max-width: none; padding: 0 !important; display: block; }
.pm-sales-page #primary { margin: 0; padding: 0; }
.pm-sp { color: var(--pm-text); font-family: var(--pm-font); font-size: 17px; line-height: 1.8; }
.pm-sp h1, .pm-sp h2, .pm-sp h3 { color: var(--pm-text); margin: 0; }
.pm-sp p { margin: 0; }
.pm-sp ul { margin: 0; padding: 0; list-style: none; }

/* ---------- hero ---------- */
.pm-sp-hero {
	position: relative;
	padding-block: 48px 72px;
	background:
		radial-gradient(45% 60% at 85% 10%, rgba(233, 140, 0, .16), transparent 70%),
		radial-gradient(35% 50% at 10% 30%, rgba(255, 61, 79, .08), transparent 70%);
	border-bottom: 1px solid var(--pm-line);
}
.pm-sp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; align-items: start; }
.pm-sp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--pm-dim); margin-bottom: 22px; }
.pm-sp-crumbs a { color: var(--pm-muted) !important; text-decoration: none; }
.pm-sp-crumbs a:hover { color: var(--pm-gold) !important; }
.pm-sp-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; color: #f6d47a; background: rgba(237, 177, 24, .08); border: 1px solid rgba(237, 177, 24, .28); }
.pm-sp .pm-sp-h1 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.22; font-weight: 900; margin: 18px 0 18px; }
[dir="ltr"] .pm-sp .pm-sp-h1 { letter-spacing: -.015em; line-height: 1.15; }
.pm-sp-lead { color: var(--pm-muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 38em; }
.pm-sp-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px !important; }
.pm-sp-facts li { padding: 10px 16px; border-radius: 14px; background: var(--pm-card); border: 1px solid var(--pm-line); color: var(--pm-muted); font-size: 15px; }
.pm-sp-facts strong { color: #fff; font-weight: 800; }
.pm-sp-ecus { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pm-sp-ecus span { font: 700 13px var(--pm-font-num); letter-spacing: .06em; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--pm-line-2); color: #e7e3da; }

/* buy card */
.pm-sp-card {
	position: sticky;
	top: calc(var(--pm-nav-h) + 20px);
	border-radius: 24px;
	overflow: hidden;
	background: linear-gradient(180deg, var(--pm-card-2), var(--pm-card));
	border: 1px solid rgba(237, 177, 24, .25);
	box-shadow: 0 40px 80px -40px rgba(233, 140, 0, .45);
}
.pm-sp-card-media { aspect-ratio: 1600 / 873; background: #000; overflow: hidden; }
.pm-sp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-sp-card-body { padding: 24px; display: grid; gap: 14px; }
.pm-sp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.pm-sp-now { font: 700 42px/1 var(--pm-font-num); color: #fff; }
.pm-sp-was { font: 600 20px/1 var(--pm-font-num); color: var(--pm-dim); text-decoration-color: var(--pm-flame); }
.pm-sp-off { padding: 4px 10px; border-radius: 999px; background: var(--pm-grad); color: #120a00; font-size: 13px; font-weight: 800; }
.pm-sp-cta { width: 100%; padding-block: 17px !important; font-size: 18px !important; }
.pm-sp-wa-btn { width: 100%; font-size: 14px !important; white-space: normal !important; text-align: center; }
.pm-sp-card-list { display: grid; gap: 8px; padding-top: 6px !important; border-top: 1px solid var(--pm-line); }
.pm-sp-card-list li, .pm-sp-included li { position: relative; padding-inline-start: 26px; color: #d9d5cc; font-size: 15px; }
.pm-sp-card-list li::before, .pm-sp-included li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: .55em;
	width: 14px;
	height: 8px;
	border-left: 2.5px solid var(--pm-gold);
	border-bottom: 2.5px solid var(--pm-gold);
	transform: rotate(-45deg); /* a tick looks the same in both directions */
}

/* ---------- sections ---------- */
.pm-sp-section { padding-block: 84px; }
.pm-sp-alt { background: var(--pm-bg-2); border-block: 1px solid var(--pm-line); }
.pm-sp .pm-sp-h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.25; font-weight: 900; margin: 12px 0 30px; }
.pm-sp-sub { color: var(--pm-muted); margin: -16px 0 28px !important; }
.pm-sp-narrow { max-width: 920px; }
.pm-sp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

/* video */
.pm-sp-video-sec { padding-block: 64px 0; }
.pm-sp-video {
	position: relative;
	display: block;
	width: 100%;
	max-width: 920px;
	margin-inline: auto;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 1px solid var(--pm-line-2);
	border-radius: 24px;
	overflow: hidden;
	background: #000;
	cursor: pointer;
}
.pm-sp-video img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .4s, transform 1s var(--pm-ease); }
.pm-sp-video:hover img { opacity: .9; transform: scale(1.03); }
.pm-sp-play { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--pm-grad); color: #120a00; box-shadow: 0 0 0 12px rgba(233, 140, 0, .18), 0 20px 50px rgba(0, 0, 0, .6); transition: transform .35s var(--pm-ease); }
.pm-sp-play svg { width: 36px; height: 36px; margin-inline-start: 4px; }
[dir="rtl"] .pm-sp-play svg { margin-inline-start: 0; margin-inline-end: 4px; }
.pm-sp-video:hover .pm-sp-play { transform: scale(1.08); }
.pm-sp-video-label { position: absolute; bottom: 20px; inset-inline: 0; text-align: center; font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.pm-sp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* outcomes */
.pm-sp-outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pm-sp-outcomes li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--pm-card); border: 1px solid var(--pm-line); font-weight: 700; line-height: 1.6; }
.pm-sp-check { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(237, 177, 24, .12); color: var(--pm-gold); }
.pm-sp-check svg { width: 16px; height: 16px; }

/* previews */
.pm-sp-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pm-sp-previews figure { margin: 0; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--pm-line); }
.pm-sp-previews img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.pm-sp-previews figcaption { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: 15px; background: var(--pm-card); }
.pm-sp-previews figcaption .pm-ltr { font: 700 12px var(--pm-font-num); letter-spacing: .08em; color: var(--pm-gold); }

/* lists */
.pm-sp-list { display: grid; gap: 12px; }
.pm-sp-two .pm-sp-list li { position: relative; padding: 14px 18px; padding-inline-start: 46px; border-radius: 14px; background: var(--pm-card); border: 1px solid var(--pm-line); color: #d9d5cc; }
.pm-sp-two .pm-sp-list li::before { content: ""; position: absolute; inset-inline-start: 18px; top: 22px; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--pm-grad); }

/* curriculum */
.pm-sp-curriculum { display: grid; gap: 12px; }
.pm-sp-curriculum details { border-radius: 16px; background: var(--pm-card); border: 1px solid var(--pm-line); overflow: hidden; }
.pm-sp-curriculum details[open] { border-color: rgba(237, 177, 24, .3); }
.pm-sp-curriculum summary { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; cursor: pointer; list-style: none; }
.pm-sp-curriculum summary::-webkit-details-marker { display: none; }
.pm-sp-mod-n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(237, 177, 24, .1); color: var(--pm-gold); font-size: 18px; }
.pm-sp-mod-t { font-weight: 800; line-height: 1.5; }
.pm-sp-mod-meta { color: var(--pm-dim); font-size: 14px; white-space: nowrap; }
.pm-sp-curriculum ul { border-top: 1px solid var(--pm-line); padding: 6px 20px 12px !important; }
.pm-sp-curriculum li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; color: #c9c4ba; font-size: 15.5px; border-bottom: 1px dashed var(--pm-line); }
.pm-sp-curriculum li:last-child { border-bottom: 0; }
.pm-sp-curriculum li svg { width: 14px; height: 14px; color: var(--pm-orange); }
[dir="rtl"] .pm-sp-curriculum li svg { transform: scaleX(-1); }
.pm-sp-curriculum li em { font-style: normal; color: var(--pm-dim); font-size: 14px; }

/* testimonials (real WhatsApp screenshots) */
.pm-sp-shots { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.pm-sp-shots a { display: block; width: min(320px, 80vw); border-radius: 22px; overflow: hidden; border: 1px solid var(--pm-line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); transition: transform .4s var(--pm-ease); }
.pm-sp-shots a:hover { transform: translateY(-6px); }
.pm-sp-shots img { width: 100%; height: auto; display: block; }

/* offer box */
.pm-sp-offer {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 40px;
	align-items: center;
	padding: clamp(28px, 4vw, 48px);
	border-radius: 28px;
	background: linear-gradient(135deg, rgba(233, 140, 0, .12), rgba(255, 61, 79, .05)), var(--pm-card);
	border: 1px solid rgba(237, 177, 24, .3);
}
.pm-sp-offer .pm-sp-h2 { margin-bottom: 22px; }
.pm-sp-included { gap: 10px; }
.pm-sp-offer-buy { display: grid; gap: 14px; text-align: center; justify-items: center; }
.pm-sp-offer-buy .pm-sp-price { justify-content: center; }
.pm-sp-guarantee { display: flex; gap: 8px; align-items: center; color: #c9c4ba; font-size: 15px; }
.pm-sp-guarantee svg { width: 22px; height: 22px; color: var(--pm-green); flex: none; }
.pm-sp-secure { color: var(--pm-dim); font-size: 14px; }

/* FAQ */
.pm-sp-faq { display: grid; gap: 12px; }
.pm-sp-faq details { border-radius: 16px; background: var(--pm-card); border: 1px solid var(--pm-line); }
.pm-sp-faq summary { position: relative; padding: 18px 22px; padding-inline-end: 54px; font-weight: 800; cursor: pointer; list-style: none; }
.pm-sp-faq summary::-webkit-details-marker { display: none; }
.pm-sp-faq summary::after { content: "+"; position: absolute; inset-inline-end: 22px; top: 50%; transform: translateY(-50%); font: 700 24px/1 var(--pm-font-num); color: var(--pm-gold); transition: transform .3s; }
.pm-sp-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pm-sp-faq details p { padding: 0 22px 20px; color: #c9c4ba; }
.pm-sp-ask { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: 18px; border: 1px dashed var(--pm-line-2); }
.pm-sp-ask p { font-weight: 700; }

/* admin-only placeholder */
.pm-placeholder { max-width: 920px; margin: 40px auto; padding: 22px 24px; display: grid; gap: 6px; border-radius: 16px; border: 2px dashed #ff3d4f; background: rgba(255, 61, 79, .07); color: #ffd1d6; font-size: 15px; }
.pm-placeholder strong { color: #fff; font-size: 16px; }
.pm-placeholder em { color: #ff8b98; font-style: normal; font-size: 13px; }

/* sticky enroll bar (phones / tablets) */
.pm-sp-sticky { display: none; }
@media (max-width: 1020px) {
	.pm-sp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.pm-sp-card { position: static; max-width: 560px; }
	.pm-sp-sticky {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 998;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
		background: rgba(12, 12, 17, .96);
		border-top: 1px solid rgba(237, 177, 24, .3);
		box-shadow: 0 -20px 40px rgba(0, 0, 0, .5);
		transform: translateY(110%);
		transition: transform .35s var(--pm-ease);
	}
	.pm-sp-sticky.is-on { transform: none; }
	.pm-sp-sticky > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
	.pm-sp-sticky .pm-sp-now { font-size: 28px; }
	.pm-sp-sticky .pm-sp-was { font-size: 15px; }
	.pm-sp-sticky-title { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.pm-sp-sticky .pm-btn { padding: 13px 22px; flex: none; }
	.pm-sales-page.pm-sticky-on .pm-wa { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
	.pm-sales-page.pm-sticky-on #ast-scroll-top { opacity: 0 !important; pointer-events: none !important; }
	/* the sticky bar + raised WhatsApp button must not cover the end of the footer */
	.pm-sales-page .pm-footer { padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px)); }
	.pm-sp-two { grid-template-columns: 1fr; gap: 40px; }
	.pm-sp-offer { grid-template-columns: 1fr; }
	.pm-sp-previews { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.pm-sp-section { padding-block: 60px; }
	.pm-sp-outcomes, .pm-sp-previews { grid-template-columns: 1fr; }
	.pm-sp-curriculum summary { grid-template-columns: auto 1fr; }
	.pm-sp-mod-meta { grid-column: 2; white-space: normal; }
	.pm-sp-hero { padding-top: 28px; }
}
.pm-wa { transition: transform .35s var(--pm-ease), bottom .35s var(--pm-ease); }
