.cards .cards-grid {
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* exactly 2 cards */
.cards-count-2 .cards-grid .card {
	min-height: 500px;
}

/* exactly 3 cards */
.cards-count-3 .cards-grid .card {
	min-height: 375px;
}

.cards-pricing.cards-4plus .cards-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	justify-content: center;
}

.cards-pricing.cards-4plus .cards-grid > * {
	flex: 1 1 260px;
	max-width: 290px;
}

@media screen and (max-width: 768px) {
	.cards-pricing.cards-4plus .cards-grid > * {
		max-width: 100%;
	}
}

.cards-pricing .card {
	text-align: center;
}

/* Card */
.cards .card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 280px;
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(317deg, rgb(165 239 255 / 17%) 0%, rgb(110 191 244 / 6%) 22%, rgb(70 144 212 / 4%) 100%);
	/* -webkit-backdrop-filter: saturate(110%) blur(20px); */
	/* backdrop-filter: saturate(110%) blur(20px); */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.cards-standard-no-image .card,
.cards-pricing .card {
	border: 2px solid rgb(71, 98, 137);
}

.cards-pricing .not-available {
	opacity: 0.3;
	cursor: not-allowed;
	/* filter: blur(.8px); */
}

/* .cards-pricing .not-available .button {
	pointer-events: none;
} */

.cards-pricing .not-available .button-group {
	pointer-events: none;
}

/* Noise overlay */
.cards-standard .card::before,
.cards-standard-no-image .card::before,
.cards-pricing .card::before,
.cards-pricing .button::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E") repeat;
	opacity: .15;
	mix-blend-mode: overlay;
	border-radius: inherit;
	pointer-events: none;
}

.cards-standard .card::after,
.cards-standard-no-image .card::after,
.cards-pricing .card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url(/wp-content/uploads/2025/09/circle-gradient.webp);
	background-size: auto;
	background-position: center;
	pointer-events: none;
	border-radius: inherit;
	z-index: 0;
}

.cards-standard-with-image .card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	border-radius: initial;
	pointer-events: none;
	background: rgba(0, 0, 0, .5);
	z-index: 1;
}

.cards .card-body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 30px;
	color: var(--white, #fff);
	height: 100%;
	z-index: 2;
}

.cards .card-head {
	display: grid;
	gap: 6px; }

/* Foot sticks to bottom */
.cards .card-foot {
	margin-top: auto;
	margin-bottom: -20px;
	display: grid;
	gap: 12px;
}

.cards .card-title,
.cards .card-subtitle {
	text-transform: uppercase;
}

.cards .card-title {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.75rem;
	font-weight: 700;
}

.cards-pricing .card-title {
	margin-bottom: 8px;
}

@media (min-width: 768px) {
	/* exactly 2 cards */
	.cards-count-2 .card-title {
		font-size: 2.5rem;
		line-height: 2.5rem;
	}

	/* exactly 4 cards or more */
	.cards:has(.card:nth-child(4)) .card-title {
		font-size: 1.5rem;
		line-height: 1.5rem;
	}
}

.cards .card-subtitle {
	margin: 0;
	opacity: .8;
	font-size: .95rem;
	line-height: .95rem;
}

@media (min-width: 768px) {
	/* exactly 2 cards */
	.cards-count-2 .card-subtitle {
		font-size: 1.25rem;
		line-height: 1.75rem;
	}
}

.cards-pricing .card-sep {
	border: 0;
	border-top: 1px solid var(--blue);
	margin: 1rem 0;
	opacity: .5;
}

.cards .card-content p {
	font-size: 16px;
	line-height: 22px;
	opacity: .95;
}

@media (min-width: 768px) {
	/* exactly 2 cards */
	.cards-count-2 .card-content p {
		font-size: 1.25rem;
		line-height: 1.75rem;
	}
}

/* .cards .card-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
} */

.cards .button-group {
	margin-bottom: 20px;
}

.pricing-card {
	margin: 12px 0;
}

.pricing-options {
	font-weight: 600;
}

.pricing-row {
	margin-bottom: 2px;
}

.pricing-card .price {
	font-size: 1.75rem;
}

.cards-pricing .button {
	width: 100%;
	text-align: center;
	margin: 0 0 20px;
	background: linear-gradient(133deg, rgb(165 239 255 / 17%) 0%, rgb(110 191 244 / 14%) 22%, rgb(70 144 212 / 0%) 100%);
	-webkit-backdrop-filter: saturate(100%) blur(20px);
	backdrop-filter: saturate(100%) blur(20px);
}

.cards-count-3 .button,
.cards:has(.card:nth-child(4)) .button {
	padding: 10px 40px;
}

/* When two .cards-count-2 are back-to-back */

/* top one */
.cards.cards-count-2:has(+ .cards.cards-count-2) {
	padding-bottom: 0;
}

/* bottom one */
.cards.cards-count-2 + .cards.cards-count-2 {
	padding-top: 32px;
}
