/* Onefold Pricing Table widget: packages, custom quote / care row, comparison. */

.of-pricing {
	--of-cols: 3;
}

/* Show only the active currency. */
.of-pricing[data-currency="USD"] .of-plan__amount[data-currency="BDT"],
.of-pricing[data-currency="BDT"] .of-plan__amount[data-currency="USD"] {
	display: none;
}

.of-pricing__switch {
	display: none;
	width: max-content;
	margin: 0 auto 36px;
	padding: 4px;
	border-radius: 999px;
	background: var(--of-glass-bg, rgba(255, 255, 255, 0.72));
	box-shadow: inset 0 0 0 1px var(--of-color-border, #E3E6F0), 0 6px 20px rgba(11, 16, 32, 0.05);
}

.of-js .of-pricing__switch {
	display: flex;
}

.of-pricing__currency {
	min-width: 72px;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--of-color-text, #0B1020);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.of-pricing__currency[aria-pressed="true"] {
	background: var(--of-gradient-strong, linear-gradient(135deg, #6C5CE7 0%, #2F6FE4 100%));
	color: #fff;
}

.of-pricing__grid,
.of-pricing__extras {
	display: grid;
	grid-template-columns: repeat(var(--of-cols), minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}

.of-pricing__extras {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	margin-top: 32px;
}

/* ---------- Card ---------- */
.of-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px 28px;
	border: 1px solid var(--of-glass-border, rgba(255, 255, 255, 0.85));
	border-radius: var(--of-radius-lg, 24px);
	background: var(--of-glass-bg, rgba(255, 255, 255, 0.72));
	box-shadow: var(--of-shadow, 0 1px 2px rgba(11, 16, 32, 0.04), 0 12px 32px rgba(11, 16, 32, 0.08));
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* "Most Popular": gradient border, soft glow, slightly raised on computers. */
.of-plan.is-featured {
	border: 2px solid transparent;
	background:
		linear-gradient(#FFFFFF, #FFFFFF) padding-box,
		var(--of-gradient, linear-gradient(135deg, #6C5CE7 0%, #00C2FF 100%)) border-box;
	box-shadow: var(--of-glow, 0 20px 60px rgba(108, 92, 231, 0.18), 0 8px 24px rgba(0, 194, 255, 0.12));
}

@media (min-width: 1025px) {
	.of-pricing__grid .of-plan.is-featured {
		transform: translateY(-8px);
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.of-plan:hover {
		box-shadow: var(--of-glow, 0 20px 60px rgba(108, 92, 231, 0.18));
	}
}

.of-plan__badge {
	width: max-content;
	max-width: 100%;
	margin: 0 0 14px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--of-gradient-strong, linear-gradient(135deg, #6C5CE7 0%, #2F6FE4 100%));
	color: #FFFFFF;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.of-plan__name {
	margin: 0 0 6px;
	font-size: 1.375rem;
	letter-spacing: -0.01em;
}

.of-plan__desc {
	margin: 0 0 10px;
	color: var(--of-color-text, #0B1020);
	font-weight: 500;
}

.of-plan__for {
	margin: 0 0 22px;
	color: var(--of-color-muted, #4A5068);
	font-size: 0.9375rem;
}

.of-plan__for span {
	font-weight: 600;
}

.of-plan__price {
	margin: 0 0 18px;
}

.of-plan__amount {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
}

.of-plan__from,
.of-plan__period {
	color: var(--of-color-muted, #4A5068);
	font-size: 0.9375rem;
}

.of-plan__from {
	flex-basis: 100%;
}

.of-plan__value {
	color: var(--of-color-text, #0B1020);
	font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.of-plan__value.is-quote {
	font-size: 1.5rem;
	letter-spacing: -0.01em;
}

/* Delivery time and revisions */
.of-plan__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.of-plan__meta li {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(108, 92, 231, 0.08);
	color: #3F34A8;
	font-size: 0.875rem;
	font-weight: 600;
}

.of-plan__meta .of-icon {
	width: 16px;
	height: 16px;
}

.of-plan__features {
	display: grid;
	gap: 10px;
	margin: 0 0 28px;
	padding: 18px 0 0;
	border-top: 1px solid var(--of-color-border, #E3E6F0);
	list-style: none;
}

.of-plan__features li {
	position: relative;
	padding-left: 28px;
}

.of-plan__features li::before {
	position: absolute;
	top: 0.35em;
	left: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat,
		var(--of-gradient-strong, linear-gradient(135deg, #6C5CE7 0%, #2F6FE4 100%));
	content: "";
}

.of-plan__features li.of-plan__more {
	padding-left: 28px;
	color: var(--of-color-link, #5B4BD8);
	font-weight: 600;
}

.of-plan__features li.of-plan__more::before {
	display: none;
}

.of-plan__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: auto;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--of-gradient-strong, linear-gradient(135deg, #6C5CE7 0%, #2F6FE4 100%));
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.of-plan__btn:hover {
	color: #fff;
	box-shadow: 0 10px 24px rgba(108, 92, 231, 0.3);
}

/* Other packages: quieter buttons, so "Most Popular" leads. */
.of-pricing__grid .of-plan:not(.is-featured) .of-plan__btn {
	background: transparent;
	color: var(--of-color-text, #0B1020);
	box-shadow: inset 0 0 0 1.5px var(--of-color-violet, #6C5CE7);
}

.of-pricing__grid .of-plan:not(.is-featured) .of-plan__btn:hover {
	background: rgba(108, 92, 231, 0.08);
	color: var(--of-color-text, #0B1020);
}

/* Custom quote and care plan: wide cards, features in two columns. */
.of-pricing__extras .of-plan {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 24px;
	align-items: start;
}

.of-pricing__extras .of-plan__head,
.of-pricing__extras .of-plan__meta,
.of-pricing__extras .of-plan__features {
	grid-column: 1 / -1;
}

.of-pricing__extras .of-plan__price {
	grid-column: 1;
	margin: 0;
}

.of-pricing__extras .of-plan__btn {
	grid-column: 2;
	grid-row: 2;
	align-self: center;
	margin: 0;
}

.of-pricing__extras .of-plan__features {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 16px 0 0;
}

.of-plan--custom {
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(0, 194, 255, 0.12), transparent 55%),
		radial-gradient(120% 140% at 0% 100%, rgba(108, 92, 231, 0.12), transparent 55%),
		var(--of-glass-bg, rgba(255, 255, 255, 0.72));
}

/* "Not sure?" line */
.of-pricing__quote {
	margin: 28px 0 0;
	color: var(--of-color-muted, #4A5068);
	text-align: center;
}

.of-pricing__quote a {
	margin-left: 6px;
	font-weight: 600;
}

/* Compare all features */
.of-pricing__compare {
	margin: 32px 0 0;
	border: 1px solid var(--of-color-border, #E3E6F0);
	border-radius: var(--of-radius, 16px);
	background: var(--of-color-surface, #FFFFFF);
}

.of-pricing__compare summary {
	padding: 16px 20px;
	font-weight: 700;
	cursor: pointer;
}

.of-pricing__compare summary:focus-visible {
	outline: 3px solid rgba(108, 92, 231, 0.4);
	outline-offset: 2px;
}

.of-pricing__compare-scroll {
	overflow-x: auto;
}

.of-pricing__compare table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
}

.of-pricing__compare th,
.of-pricing__compare td {
	padding: 12px 20px;
	border-top: 1px solid var(--of-color-border, #E3E6F0);
	text-align: left;
}

.of-pricing__compare thead th {
	font-size: 0.9375rem;
}

.of-pricing__compare tbody th {
	color: var(--of-color-muted, #4A5068);
	font-weight: 500;
}

.of-compare-yes {
	color: #138A52;
	font-weight: 700;
}

.of-compare-no {
	color: #9AA0B4;
}

.of-pricing__note {
	margin: 24px 0 0;
	color: var(--of-color-muted, #4A5068);
	font-size: 0.9375rem;
	text-align: center;
}

@media (max-width: 1024px) {
	.of-pricing { --of-cols: 2; }
}

@media (max-width: 767px) {
	.of-pricing { --of-cols: 1; }

	.of-plan {
		padding: 26px 22px;
	}

	.of-pricing__extras .of-plan {
		grid-template-columns: 1fr;
	}

	.of-pricing__extras .of-plan__btn {
		grid-column: 1;
		grid-row: auto;
		margin-top: 18px;
	}

	.of-pricing__extras .of-plan__features {
		grid-template-columns: 1fr;
	}

	/* Optional swipe row (Home): one card at a time, the next one peeks in. */
	.of-pricing.is-swipe .of-pricing__grid {
		display: flex;
		gap: 14px;
		margin: 0 -16px;
		padding: 10px 16px 14px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
	}

	.of-pricing.is-swipe .of-pricing__grid > .of-plan {
		flex: 0 0 86%;
		scroll-snap-align: center;
	}

	/* Shorter cards in the swipe row; the full details stay on the Pricing page. */
	.of-pricing.is-swipe .of-plan__for {
		display: none;
	}

	.of-pricing.is-swipe .of-plan__meta {
		flex-wrap: nowrap;
		gap: 6px;
	}

	.of-pricing.is-swipe .of-plan__meta li {
		padding: 5px 9px;
		font-size: 0.8125rem;
		white-space: nowrap;
	}
}

/* Shown instead of plans when none are published. */
.of-pricing-empty {
	max-width: 640px;
	margin-inline: auto;
	padding: 32px 24px;
	border: 1px solid var(--of-color-border, #E3E6F0);
	border-radius: 20px;
	background: #FFFFFF;
	text-align: center;
}

.of-pricing-empty p {
	margin: 0 0 20px;
}

/* ---------- Phase 7D: premium finish (added on top of the styles above) ---------- */
.of-pricing__grid {
	padding-top: 14px; /* room for the badge on top of the featured card */
}

.of-plan {
	border-color: var(--of-color-border, #E3E6F0);
	background:
		radial-gradient(120% 70% at 100% 0%, rgba(0, 194, 255, 0.06), transparent 60%),
		var(--of-color-surface, #FFFFFF);
	box-shadow: 0 1px 2px rgba(11, 16, 32, 0.04);
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.of-pricing__grid .of-plan:hover {
		box-shadow: var(--of-glow, 0 20px 60px rgba(108, 92, 231, 0.18));
		transform: translateY(-4px);
	}
}

/* Featured: a soft gradient wash at the top and a gradient price. */
.of-plan.is-featured {
	background:
		radial-gradient(120% 45% at 50% 0%, rgba(108, 92, 231, 0.12), transparent 70%) padding-box,
		linear-gradient(#FFFFFF, #FFFFFF) padding-box,
		var(--of-gradient, linear-gradient(135deg, #6C5CE7 0%, #00C2FF 100%)) border-box;
}

@media (min-width: 1025px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
	.of-pricing__grid .of-plan.is-featured:hover {
		transform: translateY(-12px);
	}
}

.of-plan.is-featured .of-plan__value:not(.is-quote) {
	background: var(--of-gradient-strong, linear-gradient(135deg, #6C5CE7 0%, #2F6FE4 100%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* The badge sits on the top edge of the featured card. */
.of-pricing__grid .of-plan.is-featured .of-plan__badge {
	position: absolute;
	top: -14px;
	left: 50%;
	margin: 0;
	padding: 6px 14px;
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(76, 59, 201, 0.3);
	transform: translateX(-50%);
}

.of-plan__btn {
	width: 100%;
	transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.of-plan__features {
	padding-top: 18px;
	border-top: 1px solid var(--of-color-border, #E3E6F0);
}

/* Phones, Home swipe row: room above the cards so the featured badge is not cut. */
@media (max-width: 767px) {
	.of-pricing.is-swipe .of-pricing__grid {
		padding-top: 22px;
	}
}
