/* ==========================================================================
   NexGen Pricing Option
   Every colour is a custom property so the Elementor style controls can
   override it per widget instance.
   ========================================================================== */

.npo {
	--npo-ink: #161d17;
	--npo-text: #1b1f1b;
	--npo-muted: #6c716b;
	--npo-gap: 16px;
	--npo-ease: cubic-bezier(.22, 1, .36, 1);

	--npo-card-bg: #ffffff;
	--npo-card-border: #e2e3dd;
	--npo-card-border-width: 1px;
	--npo-card-hover-bg: var(--npo-card-bg);
	--npo-card-hover-border: #c9ccc3;
	--npo-card-active-bg: #f9f6ef;
	--npo-card-active-border: var(--npo-ink);
	--npo-card-radius: 16px;
	--npo-radio-border: #c3c6bf;
	--npo-radio-active: var(--npo-ink);
	--npo-eyebrow: var(--npo-muted);
	--npo-title: var(--npo-text);
	--npo-desc: var(--npo-muted);
	--npo-badge-bg: #dde8d2;
	--npo-badge-text: #2c3a29;

	--npo-cta-bg: var(--npo-ink);
	--npo-cta-text: #ffffff;
	--npo-cta-hover-bg: #2b352c;
	--npo-cta-hover-text: var(--npo-cta-text);
	--npo-cta-dot: currentColor;
	--npo-cta-radius: 999px;

	display: flex;
	flex-direction: column;
	gap: var(--npo-gap);
	color: var(--npo-text);
	-webkit-font-smoothing: antialiased;
}

.npo *,
.npo *::before,
.npo *::after {
	box-sizing: border-box;
}

/* Header ------------------------------------------------------------------ */

.npo__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.npo__heading {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--npo-text);
}

.npo .npo__link {
	padding-bottom: 1px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--npo-text);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 100% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: color .2s ease, background-size .3s var(--npo-ease);
}

.npo .npo__link:hover,
.npo .npo__link:focus {
	color: var(--npo-ink);
	background-size: 40% 1px;
}

/* Option cards ------------------------------------------------------------ */

.npo__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.npo__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin: 0;
	padding: 20px 52px 20px 20px;
	background: var(--npo-card-bg);
	border: var(--npo-card-border-width) solid var(--npo-card-border);
	border-radius: var(--npo-card-radius);
	cursor: pointer;
	user-select: none;
	transition:
		background-color .3s ease,
		border-color .3s ease,
		box-shadow .3s ease,
		transform .3s var(--npo-ease);
}

.npo__card:hover {
	background: var(--npo-card-hover-bg);
	border-color: var(--npo-card-hover-border);
}

.npo__card:active {
	transform: scale(.99);
}

.npo__card.is-active {
	background: var(--npo-card-active-bg);
	border-color: var(--npo-card-active-border);
}

.npo__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.npo__card:has(.npo__input:focus-visible) {
	outline: 2px solid var(--npo-ink);
	outline-offset: 2px;
}

.npo__radio {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1.5px solid var(--npo-radio-border);
	background: #fff;
	transition: border-color .25s ease;
}

.npo__radio::after {
	content: "";
	position: absolute;
	inset: 3.5px;
	border-radius: 50%;
	background: var(--npo-radio-active);
	transform: scale(0);
	transition: transform .35s var(--npo-ease);
}

.npo__card.is-active .npo__radio {
	border-color: var(--npo-radio-active);
}

.npo__card.is-active .npo__radio::after {
	transform: scale(1);
}

.npo__eyebrow {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--npo-eyebrow);
	margin-bottom: 6px;
}

.npo__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--npo-title);
}

.npo__desc {
	font-size: 14px;
	line-height: 1.45;
	color: var(--npo-desc);
}

.npo__badge {
	display: inline-flex;
	margin-top: 10px;
	padding: 6px 12px;
	border-radius: 8px;
	background: var(--npo-badge-bg);
	color: var(--npo-badge-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

/* CTA ---------------------------------------------------------------------- */

.npo__cta-wrap {
	display: flex;
}

.npo .npo__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px 32px;
	border-radius: var(--npo-cta-radius);
	background: var(--npo-cta-bg);
	color: var(--npo-cta-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease, transform .25s var(--npo-ease), box-shadow .25s ease;
}

.npo-cta-full-yes .npo .npo__cta {
	width: 100%;
}

.npo .npo__cta:hover,
.npo .npo__cta:focus {
	background: var(--npo-cta-hover-bg);
	color: var(--npo-cta-hover-text);
	text-decoration: none;
	transform: translateY(-1px);
}

.npo .npo__cta:active {
	transform: translateY(0) scale(.99);
}

.npo .npo__cta:focus-visible {
	outline: 2px solid var(--npo-ink);
	outline-offset: 3px;
}

.npo__cta-sep {
	opacity: .7;
}

.npo__cta-price,
.npo__cta-text {
	display: inline-block;
	transition: opacity .18s ease, transform .18s ease;
}

.npo__cta-price.is-swapping,
.npo__cta-text.is-swapping {
	opacity: 0;
	transform: translateY(-6px);
}

.npo__period {
	text-transform: none;
}

.npo__cta-dot {
	position: relative;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--npo-cta-dot);
}

.npo__cta-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: inherit;
	animation: npo-pulse 2s ease-out infinite;
}

.npo__disclaimer {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
	color: var(--npo-muted);
}

@keyframes npo-pulse {
	0% { transform: scale(1); opacity: .6; }
	100% { transform: scale(2.8); opacity: 0; }
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 600px) {
	.npo .npo__cta {
		padding: 16px 20px;
		font-size: 14px;
		letter-spacing: .04em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.npo *,
	.npo *::before,
	.npo *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
