/* ==========================================================================
   ProLogics — funnel sections and blocks (inc/patterns-funnels.php,
   inc/funnels.php) and the funnel page header/footer. Loaded on the site and
   inside the block editor.
   ========================================================================== */

/* Sections after a post / case study / product run full width */
.entry-blocks--after > .pl-section:first-child {
	margin-top: 0;
}

/* Centred sections */
.pl-center {
	text-align: center;
}

.pl-center .pl-title,
.pl-center .pl-lead,
.pl-center .pl-cta__title {
	margin-inline: auto;
}

.pl-center .wp-block-buttons {
	justify-content: center;
}

.pl-center .pl-video,
.pl-center .pl-stack,
.pl-center .pl-offer {
	margin-inline: auto;
}

/* Funnel hero */
.pl-hero--funnel .pl-hero__title {
	font-size: clamp(36px, 4.6vw, 60px);
}

.pl-split--hero {
	align-items: flex-start !important;
}

.pl-checklist--light {
	margin-top: 28px !important;
}

.pl-checklist--light li {
	border-bottom-color: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.pl-magnet img {
	max-width: 420px;
	margin: 0 auto 24px;
}

/* Video slot */
.pl-video {
	max-width: 920px;
	margin-top: clamp(36px, 5vw, 56px) !important;
}

.pl-video img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

/* Buttons used by the funnel blocks (also inside the editor) */
.pl-order__btn,
.pl-optin__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 58px;
	padding: 16px 32px;
	border: 0;
	border-radius: 999px;
	background: var(--purple, #6d28d9);
	color: #fff;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 18px 40px -16px rgba(var(--purple-rgb, 109, 40, 217), 0.7);
	transition: background-color 0.25s, transform 0.25s;
}

.pl-order__btn:hover,
.pl-optin__btn:hover {
	background: var(--purple-dark, #5b21b6);
	color: #fff;
	transform: translateY(-1px);
}

.pl-order__btn svg,
.pl-optin__btn svg {
	width: 14px;
	height: 14px;
}

/* Order button */
.pl-order {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 36px;
	text-align: center;
}

.pl-order__price {
	margin: 0 !important;
	font-size: 18px;
}

.pl-order__price s {
	margin-right: 8px;
	color: var(--muted, #57526b);
}

.pl-order__price strong {
	font-size: clamp(36px, 4vw, 48px);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.pl-order__btn {
	width: min(100%, 460px);
	min-height: 64px;
	font-size: 19px;
}

.pl-order__sub {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	color: var(--muted, #57526b);
	font-size: 14px;
	font-weight: 600;
}

.pl-order__decline {
	margin: 6px 0 0 !important;
	font-size: 15px;
}

.pl-order__decline a {
	color: var(--muted, #57526b);
}

.pl-hero .pl-order__price s,
.pl-cta .pl-order__price s,
.pl-section--dark .pl-order__price s,
.pl-hero .pl-order__sub,
.pl-cta .pl-order__sub,
.pl-section--dark .pl-order__sub,
.pl-hero .pl-order__decline a,
.pl-cta .pl-order__decline a {
	color: var(--muted-dark, #b9b4cc);
}

/* Countdown */
.pl-countdown {
	margin: 28px auto 0;
	text-align: center;
}

.pl-countdown__title {
	margin: 0 0 12px !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}

.pl-countdown__units {
	display: inline-flex;
	gap: 10px;
}

.pl-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 78px;
	padding: 14px 10px 10px;
	border-radius: 16px;
	background: var(--ink, #0b0a10);
	color: #fff;
}

.pl-countdown__unit b {
	font-size: clamp(30px, 3.4vw, 42px);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.pl-countdown__unit small {
	margin-top: 6px;
	color: var(--lavender, #c4b5fd);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pl-hero .pl-countdown__unit,
.pl-cta .pl-countdown__unit,
.pl-section--dark .pl-countdown__unit {
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
}

.pl-countdown--light .pl-countdown__unit {
	border: 1px solid var(--line, #e6e2f2);
	background: #fff;
	color: var(--text, #0b0a10);
}

.pl-countdown--light .pl-countdown__unit small {
	color: var(--purple, #6d28d9);
}

.pl-countdown--bar {
	margin: 0;
}

.pl-countdown--bar .pl-countdown__units {
	gap: 4px;
}

.pl-countdown--bar .pl-countdown__unit {
	flex-direction: row;
	align-items: baseline;
	gap: 3px;
	min-width: 0;
	padding: 4px 8px;
	border: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.16);
}

.pl-countdown--bar .pl-countdown__unit b {
	font-size: 18px;
}

.pl-countdown--bar .pl-countdown__unit small {
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 10px;
}

.pl-countdown__expired {
	margin: 0 !important;
	font-weight: 700;
}

.pl-split--hero .pl-countdown {
	margin: 0 0 20px;
}

/* Urgency bar */
.pl-urgency {
	padding-block: 10px !important;
	background: var(--purple, #6d28d9) !important;
	color: #fff !important;
}

.pl-urgency__cols {
	align-items: center !important;
	justify-content: center;
	gap: 14px !important;
}

.pl-urgency__cols > .wp-block-column {
	flex: 0 1 auto !important;
}

.pl-urgency__text {
	margin: 0 !important;
	font-weight: 700;
}

.entry-blocks > .pl-urgency:first-child {
	padding-top: calc(var(--header-h, 76px) + 10px) !important;
}

/* Opt-in form */
.pl-optin {
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--radius, 20px);
	background: #fff;
	color: var(--text, #0b0a10);
	text-align: left;
	box-shadow: 0 40px 80px -40px rgba(var(--shade-rgb, 40, 20, 90), 0.5);
}

.pl-optin--dark {
	background: var(--ink, #0b0a10);
	color: #fff;
}

.pl-optin__title {
	margin: 0 !important;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.pl-optin__text {
	margin: 8px 0 0 !important;
	color: var(--muted, #57526b);
}

.pl-optin--dark .pl-optin__text,
.pl-optin--dark .pl-optin__note {
	color: var(--muted-dark, #b9b4cc);
}

.pl-optin__form {
	display: grid;
	gap: 12px;
	margin-top: 20px;
}

.pl-optin__field {
	display: block;
}

.pl-optin__field span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.pl-optin__field input {
	box-sizing: border-box;
	width: 100%;
	min-height: 54px;
	padding: 0 18px;
	border: 1px solid var(--line, #e6e2f2);
	border-radius: 14px;
	background: #fff;
	color: var(--text, #0b0a10);
	font: inherit;
	font-size: 16px;
}

.pl-optin__field input:focus {
	border-color: var(--purple, #6d28d9);
	outline: 3px solid rgba(var(--purple-rgb, 109, 40, 217), 0.18);
}

.pl-optin__btn {
	width: 100%;
}

.pl-optin__hp {
	position: absolute !important;
	left: -9999px;
}

.pl-optin__note {
	margin: 12px 0 0 !important;
	color: var(--muted, #57526b);
	font-size: 13px;
	text-align: center;
}

.pl-optin__msg {
	margin: 18px 0 0 !important;
	padding: 14px 16px;
	border-radius: 12px;
	font-weight: 700;
}

.pl-optin__msg--ok {
	background: #dcfce7;
	color: #166534;
}

.pl-optin__msg--error {
	background: #fee2e2;
	color: #991b1b;
}

/* One-line opt-in */
.pl-optin--inline {
	max-width: 640px;
	margin: 28px auto 0;
	padding: 0;
	background: transparent;
	color: inherit;
	box-shadow: none;
	text-align: center;
}

.pl-optin--inline .pl-optin__form {
	display: flex;
	flex-wrap: wrap;
}

.pl-optin--inline .pl-optin__field {
	flex: 1 1 180px;
}

.pl-optin--inline .pl-optin__btn {
	flex: 0 0 auto;
	width: auto;
	min-height: 54px;
	font-size: 16px;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.pl-optin--inline .pl-optin__btn {
		flex-basis: 100%;
	}
}

.pl-hero .pl-optin--inline .pl-optin__note,
.pl-cta .pl-optin--inline .pl-optin__note,
.pl-hero .pl-optin--inline .pl-optin__text,
.pl-cta .pl-optin--inline .pl-optin__text {
	color: var(--muted-dark, #b9b4cc);
}

/* Before / after */
.pl-cards--2 {
	max-width: 980px;
}

.pl-compare--with {
	border-color: var(--purple, #6d28d9) !important;
	box-shadow: 0 24px 50px -30px rgba(var(--purple-rgb, 109, 40, 217), 0.6);
}

.pl-xlist {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.pl-xlist li,
.pl-compare .pl-checklist li {
	position: relative;
	padding: 12px 0 12px 36px;
	border-bottom: 1px solid var(--line, #e6e2f2);
	color: var(--muted, #57526b);
	font-size: 16px;
}

.pl-compare .pl-checklist {
	margin-top: 12px;
}

.pl-compare .pl-checklist li {
	color: var(--text, #0b0a10);
}

.pl-compare .pl-checklist li::before {
	top: 12px;
	width: 22px;
	height: 22px;
}

.pl-xlist li::before {
	content: "";
	position: absolute;
	top: 12px;
	left: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center / 12px no-repeat,
		#fee2e2;
}

/* Value stack */
.pl-stack {
	max-width: 760px;
	margin-top: clamp(32px, 4vw, 48px);
	padding: clamp(24px, 4vw, 44px);
	border-radius: var(--radius, 20px);
	background: #fff;
	text-align: left;
	box-shadow: 0 40px 80px -50px rgba(var(--shade-rgb, 40, 20, 90), 0.5);
}

.pl-stack__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pl-stack__list li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	padding: 16px 0 16px 38px;
	border-bottom: 1px dashed var(--line, #e6e2f2);
	color: var(--muted, #57526b);
}

.pl-stack__list li strong {
	color: var(--text, #0b0a10);
}

.pl-stack__list li::before {
	content: "";
	position: absolute;
	top: 17px;
	left: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat,
		var(--purple, #6d28d9);
}

.pl-stack__value {
	margin-left: auto;
	color: var(--purple, #6d28d9);
	font-style: normal;
	font-weight: 700;
	white-space: nowrap;
}

.pl-stack__total {
	margin: 22px 0 0 !important;
	color: var(--muted, #57526b);
	font-size: 18px;
	text-align: center;
}

.pl-stack__today {
	margin: 4px 0 0 !important;
	font-size: 22px;
	font-weight: 700;
	text-align: center;
}

.pl-stack__today strong {
	color: var(--purple, #6d28d9);
	font-size: 1.6em;
}

.pl-stack .pl-order {
	margin-top: 18px;
}

.pl-stack .pl-order__price {
	display: none;
}

/* Offer box */
.pl-offer {
	max-width: 620px;
	padding: clamp(28px, 4vw, 48px);
	border: 2px solid var(--purple, #6d28d9);
	border-radius: calc(var(--radius, 20px) + 6px);
	background: #fff;
	text-align: left;
	box-shadow: 0 40px 90px -50px rgba(var(--purple-rgb, 109, 40, 217), 0.6);
}

.pl-offer .pl-eyebrow,
.pl-offer__title {
	text-align: center;
}

.pl-offer__title {
	margin-bottom: 18px !important;
	font-size: clamp(26px, 3vw, 36px);
}

/* Guarantee */
.pl-guarantee {
	display: flex;
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	max-width: 900px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--line, #e6e2f2);
	border-radius: var(--radius, 20px);
}

/* Classic themes wrap group contents in an inner container */
.pl-guarantee > .wp-block-group__inner-container {
	display: flex;
	flex: 1;
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
}

.pl-guarantee__seal {
	flex: 0 0 auto;
	display: grid;
	place-content: center;
	width: 150px;
	height: 150px;
	margin: 0 !important;
	border: 6px double var(--purple, #6d28d9);
	border-radius: 50%;
	color: var(--purple, #6d28d9);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.15 !important;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
}

.pl-guarantee__seal strong {
	font-size: 46px;
	letter-spacing: -0.02em;
}

.pl-guarantee__text .pl-title {
	font-size: clamp(26px, 3vw, 36px);
}

.pl-guarantee__text p {
	margin: 12px 0 0;
	color: var(--muted, #57526b);
}

/* Reviews */
.pl-review__stars {
	margin: 0 !important;
	color: #f59e0b !important;
	letter-spacing: 3px;
}

.pl-review__by {
	margin-top: 18px !important;
	font-size: 14px;
}

.pl-review__by strong {
	color: var(--text, #0b0a10);
}

/* Host */
.pl-split--host > .wp-block-column:first-child {
	flex: 0 0 min(34%, 380px) !important;
}

.pl-host__photo img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Progress */
.pl-progress {
	padding-block: 22px !important;
	border-bottom: 1px solid var(--line, #e6e2f2);
	text-align: center;
}

.pl-progress__label {
	margin: 0 0 10px !important;
	font-size: 16px;
}

.pl-progress__label strong {
	color: var(--purple, #6d28d9);
}

.pl-progress__bar {
	position: relative;
	height: 10px;
	max-width: 560px;
	margin: 0 auto !important;
	overflow: hidden;
	border-radius: 999px;
	background: var(--lavender-soft, #ede9fe);
}

.pl-progress__bar::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--pct, 50%);
	border-radius: inherit;
	background: linear-gradient(90deg, var(--purple, #6d28d9), var(--lavender, #c4b5fd));
}

.pl-progress--33 { --pct: 33%; }
.pl-progress--50 { --pct: 50%; }
.pl-progress--66 { --pct: 66%; }
.pl-progress--100 { --pct: 100%; }

.entry-blocks > .pl-progress:first-child {
	padding-top: calc(var(--header-h, 76px) + 22px) !important;
}

/* Logo row */
.pl-logos {
	text-align: center;
}

.pl-logos__label {
	margin: 0 0 14px !important;
	color: var(--muted, #57526b);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pl-logos__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 40px;
	margin: 0 !important;
	color: #a49fb6;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

/* Funnel pages: the slim header isn't fixed, so no extra top space */
.is-funnel .entry-blocks > .pl-hero:first-child {
	padding-top: clamp(56px, 8vw, 104px);
}

.is-funnel .entry-blocks > .pl-urgency:first-child {
	padding-top: 10px !important;
}

.is-funnel .entry-blocks > .pl-progress:first-child {
	padding-top: 22px !important;
}

/* Funnel page header and footer */
.funnel-header {
	background: var(--ink, #0b0a10);
	border-bottom: 1px solid var(--line-dark, rgba(255, 255, 255, 0.1));
}

.funnel-header__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 72px;
}

.funnel-header .brand__img {
	width: auto;
	height: 26px;
}

.funnel-footer {
	padding: 28px 0;
	background: var(--ink, #0b0a10);
	color: var(--muted-dark, #b9b4cc);
	font-size: 14px;
}

.funnel-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 24px;
	text-align: center;
}

.funnel-footer p {
	margin: 0;
}

.funnel-footer .site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.funnel-footer a {
	color: var(--muted-dark, #b9b4cc);
}

.funnel-footer a:hover {
	color: #fff;
}

.funnel-footer__note {
	flex-basis: 100%;
	max-width: 760px;
	font-size: 12px;
	opacity: 0.8;
}

@media (max-width: 781px) {
	.pl-guarantee,
	.pl-guarantee > .wp-block-group__inner-container {
		flex-direction: column;
		text-align: center;
	}

	.pl-split--host > .wp-block-column:first-child {
		flex: 0 0 100% !important;
		max-width: 320px;
	}

	.pl-countdown__unit {
		min-width: 64px;
	}

	.pl-stack__value {
		margin-left: 0;
	}
}
