/* ============================================================
   Custard Pricing Widget — custard-pricing-widget.css
   Moo Creative / andrewn143.sg-host.com
   ============================================================ */

/* ---- Section wrap ---- */
.cpw-wrap {
	background-color: #0f0f0f;
	color: #ffffff;
	padding: 80px 24px;
	font-family: inherit;
	box-sizing: border-box;
}

/* ---- Header ---- */
.cpw-header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 48px;
}

.cpw-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #b8a9f5;
	margin: 0 0 14px;
}

.cpw-heading {
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 20px;
	color: #ffffff;
}

.cpw-subheading {
	font-size: 17px;
	line-height: 1.6;
	color: #aaaaaa;
	margin: 0;
}

/* ---- Toggle ---- */
.cpw-toggle-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}

.cpw-toggle-label {
	font-size: 15px;
	font-weight: 500;
	color: #888;
	cursor: pointer;
	transition: color 0.2s;
}

.cpw-toggle-label.cpw-toggle-active {
	color: #ffffff;
}

.cpw-toggle {
	position: relative;
	width: 52px;
	height: 28px;
	background: #e8e3ff;
	border: 1px solid #cfc8f7;
	border-radius: 999px;
	cursor: pointer;
	padding: 0;
	outline: none;
	transition: background 0.2s;
}

.cpw-toggle-knob {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #b8a9f5;
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
	display: block;
	pointer-events: none; /* clicks fall through to the parent button */
}

.cpw-toggle[data-state="annual"] .cpw-toggle-knob {
	transform: translateX(24px);
}

.cpw-annual-badge {
	display: inline-block;
	background-color: #b8a9f5;
	color: #0f0f0f;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 999px;
}

/* ---- Grid ---- */
.cpw-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto;
	align-items: start;
}

/* ---- Card ---- */
.cpw-card {
	background-color: #1a1a1a;
	border: 1px solid #2d2d2d;
	border-radius: 16px;
	padding: 32px 28px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	transition: border-color 0.2s, transform 0.2s;
}

.cpw-card:hover {
	border-color: #444;
	transform: translateY(-2px);
}

.cpw-card--featured {
	background-color: #1f1b33;
	border-color: #b8a9f5;
	border-width: 2px;
}

.cpw-card--featured:hover {
	border-color: #c9bdff;
}

.cpw-card--enterprise {
	background: linear-gradient(135deg, #1a1a1a 0%, #1c1824 100%);
}

/* ---- Badge ---- */
.cpw-badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #b8a9f5;
	color: #0f0f0f;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 5px 16px;
	border-radius: 999px;
	white-space: nowrap;
}

/* ---- Card top ---- */
.cpw-card-top {
	margin-bottom: 24px;
}

.cpw-card-title {
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 6px;
}

.cpw-card-desc {
	font-size: 13px;
	color: #888;
	margin: 0;
}

/* ---- Price ---- */
.cpw-price-wrap {
	margin-bottom: 24px;
}

.cpw-price {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	line-height: 1;
	margin-bottom: 6px;
}

.cpw-currency {
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	align-self: flex-start;
	padding-top: 6px;
}

.cpw-amount {
	font-size: 56px;
	font-weight: 800;
	color: #ffffff;
	line-height: 1;
	letter-spacing: -2px;
}

.cpw-per {
	font-size: 12px;
	color: #888;
	line-height: 1.5;
}

.cpw-billing-note {
	font-style: normal;
	opacity: 0.75;
}

/* Enterprise price */
.cpw-price-label {
	font-size: 38px;
	font-weight: 800;
	color: #b8a9f5;
	margin-bottom: 6px;
	line-height: 1;
}

/* ---- Button ---- */
.cpw-btn {
	display: block;
	width: 100%;
	padding: 14px 20px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s, background-color 0.2s, color 0.2s;
	box-sizing: border-box;
	margin-bottom: 24px;
}

.cpw-btn--primary {
	background-color: #b8a9f5;
	color: #0f0f0f;
	border: 2px solid #b8a9f5;
}

.cpw-btn--primary:hover {
	opacity: 0.88;
	color: #0f0f0f;
}

.cpw-btn--outline {
	background-color: transparent;
	color: #ffffff;
	border: 2px solid #3a3a3a;
}

.cpw-btn--outline:hover {
	border-color: #b8a9f5;
	color: #b8a9f5;
}

/* ---- Divider ---- */
.cpw-divider {
	height: 1px;
	background: #2d2d2d;
	margin-bottom: 24px;
}

/* ---- Features ---- */
.cpw-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cpw-feature-item {
	font-size: 14px;
	color: #cccccc;
	padding-left: 24px;
	position: relative;
	line-height: 1.4;
}

.cpw-feature-item::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: #b8a9f5;
	font-weight: 700;
}

/* ---- Footer note ---- */
.cpw-footer-note {
	text-align: center;
	font-size: 13px;
	color: #666;
	margin: 40px auto 0;
	max-width: 600px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.cpw-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.cpw-wrap {
		padding: 60px 16px;
	}
	.cpw-grid {
		grid-template-columns: 1fr;
	}
	.cpw-amount {
		font-size: 44px;
	}
}

/* ---- Billing animation ---- */
.cpw-amount.cpw-price-transitioning {
	opacity: 0;
	transform: translateY(-6px);
}

.cpw-amount {
	transition: opacity 0.18s, transform 0.18s;
}
