/* =======================================================================
 * Nextstage Pricing Widget — heading + billing toggle + plan cards
 * ======================================================================= */
.nspr-pricing { padding: 4rem 0; }
.nspr-pricing .nspr-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; box-sizing: border-box; }
.nspr-pricing *, .nspr-pricing *::before, .nspr-pricing *::after { box-sizing: border-box; }

.nspr-pricing .nspr-heading { text-align: center; margin-bottom: 2rem; }
.nspr-pricing .nspr-heading h2 {
	font-family: "Inter", sans-serif; font-weight: 700;
	font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem);
	line-height: 1.25; color: #1e2022; margin: 0 0 0.5rem;
}
.nspr-pricing .nspr-heading p { color: #677788; font-size: 1rem; line-height: 1.6; margin: 0; }

/* ---- Feature pills row ---- */
.nspr-pricing .nspr-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.5rem 0; }
.nspr-pricing .nspr-pills .nspr-pill {
	display: inline-flex; align-items: center; gap: 0.35rem;
	padding: 0.3rem 0.75rem; border-radius: 999px;
	background: #fff; box-shadow: 0 2px 8px rgba(30, 32, 34, 0.08);
	font-size: 0.875rem; color: #1e2022;
}
.nspr-pricing .nspr-pill .nspr-pill-icon { color: #00c988; font-size: 1rem; }

/* ---- Category tabs ---- */
.nspr-pricing .nspr-toggle { display: flex; justify-content: center; margin: 1.5rem 0 2rem; }
.nspr-pricing .nspr-toggle__group {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0.25rem;
	background: #f6f7f9;
	border-radius: 0.625rem;
}
.nspr-pricing .nspr-toggle__btn {
	padding: 0.625rem 1.25rem;
	background: transparent;
	border: 0;
	color: #1e2022;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9375rem;
	border-radius: 0.5rem;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.nspr-pricing .nspr-toggle__btn:hover { color: #377eff; }
.nspr-pricing .nspr-toggle__btn.is-active {
	background: #377eff;
	color: #fff;
	box-shadow: 0 4px 12px rgba(55, 126, 255, 0.25);
}

/* ---- Panels ---- */
.nspr-pricing .nspr-panels { position: relative; }
.nspr-pricing .nspr-panel { display: none; }
.nspr-pricing .nspr-panel.is-active { display: block; animation: nspr-fade 0.35s ease; }
@keyframes nspr-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.nspr-pricing .nspr-toggle__badge {
	display: inline-block;
	margin-left: 0.4rem;
	background: #dc3545;
	color: #fff;
	font-size: 0.7rem;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	font-weight: 600;
}

/* ---- Plans grid (parent owns row tracks so cards align via subgrid) ---- */
.nspr-pricing .nspr-plans {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
@media (min-width: 768px) {
	.nspr-pricing .nspr-plans {
		grid-template-columns: repeat(var(--nspr-cols, 3), 1fr);
		grid-template-rows: auto 1fr auto auto;
	}
}

.nspr-pricing .nspr-plan {
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid #e7eaf3;
	border-radius: 1rem;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* On desktop: each plan becomes a 4-row subgrid sharing parent's row tracks.
   This forces CTA & promos at the same Y-position across all 3 cards. */
@media (min-width: 768px) {
	.nspr-pricing .nspr-plan {
		display: grid;
		grid-template-rows: subgrid;
		grid-row: span 4;
	}
}
.nspr-pricing .nspr-plan:hover { transform: translateY(-4px); box-shadow: 0 1.5rem 3rem rgba(55, 126, 255, 0.12); }
.nspr-pricing .nspr-plan--highlight { border-color: #00c988; }

.nspr-pricing .nspr-plan__header {
	padding: 0.9rem 1rem;
	text-align: center;
	font-weight: 700;
	color: #1e2022;
	background: rgba(33, 150, 243, 0.18);
	font-size: 0.9375rem;
	line-height: 1.3;
}
.nspr-pricing .nspr-plan--highlight .nspr-plan__header { background: #00c988; color: #fff; }
.nspr-pricing .nspr-plan__header small { display: block; font-size: 0.8125rem; font-weight: 500; margin-top: 0.25rem; opacity: 0.95; }

.nspr-pricing .nspr-plan__body {
	padding: 1.5rem 1.25rem 0.5rem;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}
.nspr-pricing .nspr-plan__title { font-size: 1.125rem; font-weight: 600; color: #1e2022; margin: 0 0 0.5rem; }
.nspr-pricing .nspr-plan__price { font-size: 1.75rem; font-weight: 700; color: #1e2022; margin: 0 0 1rem; line-height: 1.2; }
.nspr-pricing .nspr-plan__price .nspr-suffix { font-size: 0.9375rem; font-weight: 400; color: #8c98a4; margin-left: 0.25rem; }

.nspr-pricing .nspr-feats { list-style: none; padding: 0; margin: 0 0 0.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 0 0 auto; }
.nspr-pricing .nspr-feats li {
	display: flex; align-items: flex-start; gap: 0.5rem;
	font-size: 0.875rem; line-height: 1.5; color: #1e2022;
}
.nspr-pricing .nspr-feats .nspr-feat-icon { color: #00c988; flex: 0 0 auto; font-size: 0.95rem; margin-top: 0.125rem; }

.nspr-pricing .nspr-plan__cta { padding: 0.5rem 1.25rem 1.25rem; align-self: stretch; }
.nspr-pricing .nspr-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 100%; padding: 0.75rem 1.25rem;
	border-radius: 0.5rem; border: 1px solid #377eff; background: #fff; color: #377eff;
	font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
	transition: all 0.2s; font-family: inherit;
}
.nspr-pricing .nspr-btn:hover { background: #377eff; color: #fff; }
.nspr-pricing .nspr-btn--primary { background: #377eff; color: #fff; }
.nspr-pricing .nspr-btn--primary:hover { background: #1f66e6; border-color: #1f66e6; }

/* ---- Plan footer (promotion) ---- */
.nspr-pricing .nspr-plan__footer {
	padding: 0.75rem 1rem 1rem;
	border-top: 1px solid #e7eaf3;
	background: rgba(0, 200, 136, 0.05);
	font-size: 0.8125rem;
	color: #1e2022;
}
.nspr-pricing .nspr-plan__footer strong { color: #dc3545; font-weight: 600; }

/* ---- Promotions list ---- */
.nspr-pricing .nspr-promos { padding: 1rem 1.25rem; border-top: 1px solid #e7eaf3; background: rgba(55, 126, 255, 0.04); }
.nspr-pricing .nspr-promos__title {
	font-size: 0.9375rem; font-weight: 700; color: #dc3545; margin: 0 0 0.625rem;
	display: inline-flex; align-items: center; gap: 0.35rem;
}
.nspr-pricing .nspr-promos__title::before { content: "🎁"; font-size: 1rem; }
.nspr-pricing .nspr-promos__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.nspr-pricing .nspr-promos__list li {
	display: flex; align-items: flex-start; gap: 0.5rem;
	font-size: 0.8125rem; line-height: 1.5; color: #1e2022;
}
.nspr-pricing .nspr-promos__icon { flex: 0 0 auto; width: 20px; height: 20px; object-fit: contain; }
.nspr-pricing .nspr-promos__icon--gift { font-size: 1rem; line-height: 1.2; }
