/**
 * Join Premium page: standalone layout.
 *
 * Reuses the onboarding pricing component (.ob-pricing / .plan-card /
 * .pricing-tab, loaded from cw-onboarding.css) and adapts it to live inside the
 * normal theme chrome instead of the full-screen onboarding overlay.
 */

.cw-join-premium {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: clamp(48px, 7vw, 96px) 24px clamp(64px, 8vw, 110px);
	background: var(--clr-bg-page);
}

/* Reveal the pricing block outside the onboarding step machine. */
.cw-join-premium .ob-pricing.is-standalone {
	display: flex;
}

/* Checkout controls render as anchors/buttons; keep them looking and
   behaving like the onboarding .plan-cta buttons. */
.cw-join-premium .plan-cta {
	display: block;
	width: 100%;
	margin-top: auto;
	text-align: center;
	text-decoration: none;
}

/* ── Paid-member state ────────────────────────────────────────────────── */
.cw-jp-member {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}

.cw-jp-upsell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 32px 28px;
	border: 1.5px solid var(--clr-brand);
	border-radius: 20px;
	background: var(--clr-bg-card);
	box-shadow: 0 10px 36px rgba(74, 148, 148, 0.14);
}

.cw-jp-upsell .plan-chip {
	align-self: center;
}

.cw-jp-upsell__title {
	margin: 0;
	color: var(--clr-text-primary);
	font-family: var(--font-display);
	font-size: clamp(22px, 3vw, 28px);
	font-style: italic;
	font-weight: 500;
	line-height: 1.1;
}

.cw-jp-upsell__copy {
	margin: 0;
	max-width: 420px;
	color: var(--clr-text-secondary);
	font-family: var(--font-body);
	font-size: 14.5px;
	font-weight: 300;
	line-height: 1.6;
}

.cw-jp-upsell .plan-cta {
	width: 100%;
	max-width: 320px;
	margin: 6px auto 0;
}

.cw-jp-member__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	width: 100%;
}

.cw-jp-member__actions .plan-cta {
	width: auto;
	min-width: 200px;
	margin-top: 0;
}

@media (max-width: 560px) {
	.cw-jp-member__actions {
		flex-direction: column;
	}

	.cw-jp-member__actions .plan-cta {
		width: 100%;
		min-width: 0;
	}
}
