/* ─────────────────────────────────────────────
   Litopia MemberEngine — Pricing Page
   ───────────────────────────────────────────── */

@font-face {
	font-family: 'Italianno';
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url('/media/fonts/italianno/Italianno-Regular.ttf') format('woff2');
}

.lme-pricing {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* ── Billing Toggle ── */

.lme-pricing-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin: 1.5rem 0 2.5rem;
}

.lme-toggle-label {
	font-size: 0.95rem;
	font-weight: 500;
	color: #888;
	transition: color 0.2s;
	cursor: pointer;
}

.lme-toggle-label.lme-toggle-active {
	color: #1a1a2e;
	font-weight: 600;
}

.lme-toggle-save {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: #16a34a;
	background: #dcfce7;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	margin-left: 0.3rem;
	vertical-align: middle;
}

.lme-toggle-switch {
	position: relative;
	width: 48px;
	height: 26px;
	background: #cbd5e1;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s;
}

.lme-toggle-switch[data-interval="year"] {
	background: #3b82f6;
}

.lme-toggle-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s;
}

.lme-toggle-switch[data-interval="year"] .lme-toggle-knob {
	transform: translateX(22px);
}

/* ── Category Sections ── */

.lme-pricing-category {
	margin-bottom: 3rem;
}

.lme-category-platform {
	border: 2px double;
	border-image: linear-gradient(45deg, darkgoldenrod, gold, lightgoldenrodyellow, gold, darkgoldenrod) 1;
	padding: 0 0 1.2em;
}

.lme-category-header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.lme-category-title {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0 0 0.3rem;
	color: #1a1a2e;
}

.lme-category-platform .lme-category-title {
	font-family: 'Italianno', cursive;
	font-size: 5em;
	color: transparent;
	background: linear-gradient(to top, #0F0054 50%, #fff 100%);
	background-clip: text;
}


.lme-category-subtitle {
	font-size: 1rem;
	color: #64748b;
	margin: 0;
}

/* ── Pricing Cards Grid ── */

.lme-pricing-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
}

.lme-pricing-card {
	flex: 0 1 calc(33.333% - 1rem);
	min-width: 280px;
}

.lme-pricing-card[data-product-slug="platform_plus"] {
	flex: 0 0 65%;
}

/* ── Individual Card ── */

.lme-pricing-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.lme-pricing-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	border-color: #cbd5e1;
}

.lme-pricing-card.lme-card-active {
	border-color: #3b82f6;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Card Header */

.lme-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.lme-card-title {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0;
	color: #1a1a2e;
}

.lme-card-badge {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #3b82f6;
	background: #eff6ff;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
}

/* Price Display */

.lme-card-price {
	margin-bottom: 1.25rem;
}

.lme-price-amount {
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1;
}

.lme-price-interval {
	font-size: 0.9rem;
	color: #64748b;
	font-weight: 400;
}

.lme-price-equiv {
	display: block;
	font-size: 0.8rem;
	color: #16a34a;
	margin-top: 0.25rem;
}

/* Features List */

.lme-card-features {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	flex-grow: 1;
}

.lme-card-features li {
	padding: 0.4rem 0 0.4rem 1.5rem;
	position: relative;
	font-size: 0.9rem;
	color: #374151;
	line-height: 1.4;
}

.lme-card-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #16a34a;
	font-weight: 700;
}

/* Action Button */

.lme-card-action {
	margin: auto auto;
	width: 50%;
}

.lme-btn {
	display: inline-block;
	width: 100%;
	padding: 0.75rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	text-align: center;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s, transform 0.1s;
	line-height: 1.4;
	box-sizing: border-box;
}

.lme-btn:active {
	transform: scale(0.98);
}

.lme-btn-primary {
	background: #3b82f6;
	color: #fff;
}

.lme-btn-primary:hover {
	background: #2563eb;
	color: #fff;
}

.lme-btn-primary:disabled {
	background: #93c5fd;
	cursor: not-allowed;
}

.lme-btn-secondary {
	background: #f1f5f9;
	color: #334155;
}

.lme-btn-secondary:hover {
	background: #e2e8f0;
}

/* ── Upgrade Prompts (gated content) ── */

.lme-gate-prompt {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.5rem;
	text-align: center;
	margin: 1.5rem 0;
}

.lme-gate-prompt p {
	margin: 0.5rem 0;
}

.lme-gate-upgrade-link {
	display: inline-block;
	background: #3b82f6;
	color: #fff;
	padding: 0.5rem 1.25rem;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	margin-top: 0.5rem;
}

.lme-gate-upgrade-link:hover {
	background: #2563eb;
	color: #fff;
}

.lme-gate-login-link {
	font-weight: 600;
}

/* ── Gate excerpt teaser ── */

.lme-gate-excerpt {
	position: relative;
	max-height: 200px;
	overflow: hidden;
	margin-bottom: 0;
}

.lme-gate-excerpt::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(transparent, #fff);
}

/* ── Active Addons List ── */

.lme-active-addons ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lme-active-addons li {
	padding: 0.6rem 0;
	border-bottom: 1px solid #e2e8f0;
	font-size: 0.95rem;
}

.lme-active-addons li:last-child {
	border-bottom: none;
}

.lme-status-active span {
	color: #16a34a;
}

.lme-status-cancelling span {
	color: #d97706;
}

.lme-status-past-due span {
	color: #dc2626;
}

/* ── PayPal Migration Notice ── */

.lme-paypal-notice {
	background: #fef3c7;
	border: 1px solid #f59e0b;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin-top: 1rem;
}

.lme-paypal-notice p {
	margin: 0.4rem 0;
}

.lme-paypal-notice strong {
	color: #92400e;
}

/* ── Success Page ── */

.lme-success-message,
.lme-pending-message,
.lme-error-message {
	text-align: center;
	padding: 2rem;
}

.lme-success-message h3 {
	color: #16a34a;
}

.lme-pending-message h3 {
	color: #d97706;
}

/* ── Responsive ── */

@media (max-width: 640px) {
	.lme-pricing-card {
  		flex: 0 0 100%;
	}

	.lme-pricing-card[data-product-slug="platform_plus"] {
		flex: 0 0 100%;
	}

	.lme-price-amount {
		font-size: 1.6rem;
	}

	.lme-category-title {
		font-size: 1.3rem;
	}
}