/* ==========================================================================
   Pricing
   Pricing tabs and the coloured price cards. HTML: template-parts/shared/pricing-tabs.php, template-parts/pricing/
   ========================================================================== */

.tabs__list {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
	padding: 8px;
	margin: 0 auto 40px;
	border-radius: 22px;
	background: rgba(255, 255, 255, .035);
	border: 1px solid var(--border);
}
.tabs__tab {
	--tc: #a78bfa;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 8px 12px;
	border: 1px solid transparent;
	border-radius: 16px;
	background: transparent;
	color: var(--muted);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .84rem;
	line-height: 1.25;
	text-align: center;
	overflow: hidden;
	transition: background .35s, border-color .35s, color .3s, transform .35s var(--ease);
}
.tabs__ico {
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--tc) 14%, transparent);
	border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent);
	color: var(--tc);
	transition: background .35s, color .35s, box-shadow .35s, transform .4s var(--ease);
}
.tabs__tab::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--tc); box-shadow: 0 0 14px var(--tc); transform: scaleX(0); transition: transform .4s var(--ease); }
.tabs__tab:hover { color: #fff; background: color-mix(in srgb, var(--tc) 8%, transparent); transform: translateY(-2px); }
.tabs__tab:hover .tabs__ico { transform: scale(1.08) rotate(-6deg); }
.tabs__tab.is-active { color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 24%, transparent), color-mix(in srgb, var(--tc) 6%, transparent)); border-color: color-mix(in srgb, var(--tc) 45%, transparent); box-shadow: 0 14px 30px -18px var(--tc); }
.tabs__tab.is-active .tabs__ico { background: var(--tc); color: #0b0620; border-color: transparent; box-shadow: 0 0 0 5px color-mix(in srgb, var(--tc) 18%, transparent); }
.tabs__tab.is-active::after { transform: scaleX(1); }
/* Price cards pick up the active service colour */
.tabs__panel:focus-visible { outline-offset: 8px; }
.tabs__panel.is-entering .price-card { animation: rise .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 80ms); }
/* Price cards: equal height, rows line up across cards (subgrid), featured card gets a gradient ring */
/* Price cards: coloured curved header holding the price, feature pill on the curve, striped list.
   Equal height and rows line up across cards (subgrid). Featured card: corner ribbon + glow ring. */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
	--kc: #22d3ee;
	--kc2: #0891b2;
	position: relative;
	overflow: hidden;
	display: grid;
	grid-row: span 4;
	grid-template-rows: subgrid;
	gap: 0;
	padding: 8px;
	border-radius: 30px;
	background: linear-gradient(180deg, #161038, #0d0924);
	border: 1px solid color-mix(in srgb, var(--kc) 26%, transparent);
	box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9);
	transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.price-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--kc) 65%, transparent); box-shadow: 0 34px 64px -30px color-mix(in srgb, var(--kc) 75%, transparent); }
.price-card.is-featured { border-color: var(--kc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--kc) 18%, transparent), 0 36px 70px -30px var(--kc2); }
.price-card.is-featured:hover { transform: translateY(-6px); }

/* Corner ribbon */
.price-card__badge {
	position: absolute;
	z-index: 3;
	top: 26px;
	right: -46px;
	width: 180px;
	padding: 7px 0;
	transform: rotate(45deg);
	background: linear-gradient(90deg, #fbbf24, #fb7185);
	color: #1b0b3a;
	font-size: .66rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-align: center;
	text-transform: uppercase;
	box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .6);
}

/* Coloured header with a curved bottom edge */
.price-card__head {
	position: relative;
	overflow: hidden;
	padding: 24px 24px 40px;
	border-radius: 24px 24px 50% 50% / 24px 24px 34px 34px;
	background: linear-gradient(140deg, var(--kc2), var(--kc));
	color: #fff;
}
.price-card__head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .22) 1.2px, transparent 1.6px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 65%); mask-image: linear-gradient(200deg, #000, transparent 65%); }
.price-card__head::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -90px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.price-card__head > * { position: relative; z-index: 1; }
.price-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.price-card__plan { padding: 5px 12px; border-radius: 999px; background: rgba(11, 6, 32, .35); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.price-card__icon {
	flex: none;
	width: 46px; height: 46px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: #fff;
	color: var(--kc2);
	box-shadow: 0 10px 24px -8px rgba(11, 6, 32, .55);
	transition: transform .45s var(--ease);
}
.is-featured .price-card__icon { margin-right: 34px; }
.price-card:hover .price-card__icon { transform: rotate(-10deg) scale(1.08); }
.price-card__name { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.25; color: #fff; text-shadow: 0 2px 10px rgba(11, 6, 32, .3); }
.price-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price-card__amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.2vw, 2.6rem); letter-spacing: -.03em; line-height: 1; color: #fff; text-shadow: 0 4px 18px rgba(11, 6, 32, .35); }
.price-card__period { color: rgba(255, 255, 255, .85); font-size: .9rem; font-weight: 600; }

/* Pill sitting on the curve */
.price-card__count { position: relative; z-index: 2; margin: -18px 0 8px; text-align: center; }
.price-card__count span { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #120c2e; border: 1px solid color-mix(in srgb, var(--kc) 55%, transparent); color: var(--kc); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 10px 22px -10px var(--kc); }

/* Striped feature list */
.price-card__features { list-style: none; margin: 0; padding: 4px 10px 0; }
.price-card__features li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 12px; border-radius: 12px; font-size: .94rem; line-height: 1.45; }
.price-card__features li:nth-child(odd) { background: color-mix(in srgb, var(--kc) 6%, rgba(255, 255, 255, .02)); }
.price-card__features .std-icon { flex: none; width: 20px; height: 20px; padding: 3px; margin-top: 1px; border-radius: 6px; color: var(--kc); border: 1.5px solid color-mix(in srgb, var(--kc) 60%, transparent); stroke-width: 3; }
.price-card__cta { align-self: end; padding: 16px 14px 14px; }
.price-card .btn { width: 100%; }
/* Hidden extra features: "+ N more" */
.price-card__list { display: flex; flex-direction: column; }
.price-card__more { margin: 6px 10px 0; }
.price-card__more summary { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--kc) 50%, transparent); color: var(--kc); font-size: .84rem; font-weight: 700; cursor: pointer; list-style: none; transition: background .25s, border-color .25s; }
.price-card__more summary::-webkit-details-marker { display: none; }
.price-card__more summary:hover { background: color-mix(in srgb, var(--kc) 10%, transparent); border-style: solid; }
.price-card__more summary .std-icon { transition: transform .3s var(--ease); }
.price-card__more[open] summary .std-icon { transform: rotate(180deg); }
.price-card__more-close, .price-card__more[open] .price-card__more-open { display: none; }
.price-card__more[open] .price-card__more-close { display: inline; }
.price-card__more .price-card__features { padding: 6px 0 0; animation: rise .4s var(--ease) both; }
.price-card__more--note { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: color-mix(in srgb, var(--kc) 8%, transparent); color: var(--kc); font-size: .84rem; font-weight: 700; }
@supports not (grid-template-rows: subgrid) {
	.price-card { display: flex; flex-direction: column; }
	.price-card__list { flex: 1; }
}
/* "See full details" banner under the cards (uses the service colour --tc) */
.pricing-note {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 860px;
	margin: 30px auto 0;
	padding: 14px 14px 14px 16px;
	border-radius: 22px;
	border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent);
	background:
		linear-gradient(100deg, color-mix(in srgb, var(--tc) 20%, transparent), transparent 55%),
		linear-gradient(180deg, #171039, #100a2a);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 24px 50px -32px var(--tc);
	transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.pricing-note::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 22%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); transform: skewX(-20deg); transition: left .8s var(--ease); }
.pricing-note:hover { transform: translateY(-3px); border-color: var(--tc); color: #fff; box-shadow: 0 28px 56px -28px var(--tc); }
.pricing-note:hover::after { left: 120%; }
.pricing-note__ico { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 55%, #0b0620)); color: #0b0620; box-shadow: 0 12px 26px -10px var(--tc); }
.pricing-note__text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pricing-note__text small { color: var(--muted); font-size: .82rem; }
.pricing-note__text strong { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.3; }
.pricing-note__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pricing-note__tags span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: color-mix(in srgb, var(--tc) 12%, transparent); color: color-mix(in srgb, var(--tc) 70%, #fff); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.pricing-note__go { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--tc); color: #0b0620; transition: transform .4s var(--ease); }
.pricing-note:hover .pricing-note__go { transform: translateX(4px) rotate(-45deg); }
@media (max-width: 760px) {
	.pricing-note { gap: 12px; padding: 12px; }
	.pricing-note__tags { display: none; }
	.pricing-note__ico { width: 44px; height: 44px; border-radius: 13px; }
	.pricing-note__go { width: 42px; height: 42px; }
	.pricing-note__text strong { font-size: .96rem; }
}
.pricing-disclaimer { text-align: center; color: var(--muted); font-size: .9rem; max-width: 640px; margin: 40px auto 0; }

@media (max-width: 1024px) {
	.pricing-grid { grid-template-columns: repeat(2, 1fr); }
	.tabs__list { display: flex; overflow-x: auto; scrollbar-width: none; }
	.tabs__tab { flex: 0 0 120px; }
}

@media (max-width: 680px) {
	.pricing-grid { grid-template-columns: 1fr; gap: 30px; }
	.tabs__list { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; }
	.tabs__tab { flex: 0 0 104px; }
	.tabs__list::-webkit-scrollbar { display: none; }
}
