/**
 * Module: Membership Options Section (Plans)
 * Loaded when a `membership_options_section` layout is present on the page.
 */

:root {
	--indigo: #002B5C;
	--crimson: #ED1C24;
	--slate: #060606;
	--mist: #A5A4A4;
	--frost: #EDEDED;
	--white: #FFFFFF;
	--indigo-deep: #001A3A;
	--indigo-tint: #F2F5F9;
	--ink: #1C2230;
	--ink-soft: #4A5568;
	--line: #D9DCE1;
	--display: 'Gotham', 'Montserrat', system-ui, sans-serif;
	--body: 'Open Sans', system-ui, sans-serif;
	--max: 1180px;
	--gutter: clamp(20px, 4vw, 48px);
	--radius: 6px;
}

/* ==========================================================================
   Section Base & Head
   ========================================================================== */
.plans {
	background: var(--frost);
	padding: 72px 0 76px;
}

.plans .wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.plans .head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 40px;
	align-items: end;
	margin-bottom: 30px;
}

.plans .head .eyebrow {
	display: inline-block;
	font-family: var(--display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--crimson);
	margin-bottom: 12px;
}

.plans .head h2 {
	font-family: var(--display);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	color: var(--indigo);
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0;
}

.plans .head p {
	font-family: var(--body);
	color: var(--ink-soft);
	font-size: 17px;
	line-height: 1.5;
	margin-top: 12px;
	margin-bottom: 0;
	max-width: 560px;
}

/* ==========================================================================
   Billing Toggle
   ========================================================================== */
.plans .toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 5px;
}

.plans .toggle button {
	font-family: var(--display);
	font-weight: 700;
	font-size: 13px;
	padding: 9px 18px;
	border-radius: 999px;
	border: 0;
	background: transparent;
	color: var(--ink-soft);
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.plans .toggle button.active,
.plans .toggle button[aria-pressed="true"] {
	background: var(--indigo);
	color: #ffffff;
}

.plans .toggle .save {
	font-family: var(--display);
	font-size: 10.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--crimson);
	padding: 0 10px 0 4px;
}

/* ==========================================================================
   Team Sync / Slider
   ========================================================================== */
.plans .sync {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 28px;
	font-size: 14px;
	color: var(--ink-soft);
	flex-wrap: wrap;
}

.plans .sync b {
	color: var(--indigo);
	font-family: var(--display);
	font-weight: 700;
}

.plans .sync .staff {
	flex: 1;
	min-width: 200px;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--crimson) var(--p, 18%), var(--line) var(--p, 18%));
	cursor: pointer;
}

.plans .sync .staff::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #ffffff;
	border: 3px solid var(--crimson);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
	cursor: grab;
}

.plans .sync .staff::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #ffffff;
	border: 3px solid var(--crimson);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
	cursor: grab;
}

.plans .sync output {
	font-family: var(--display);
	font-weight: 800;
	color: var(--crimson);
	font-size: 18px;
	min-width: 52px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.plans .sync .sync-msg {
	font-family: var(--body);
	font-size: 14px;
	color: var(--ink-soft);
}

/* ==========================================================================
   Pricing Cards Grid
   ========================================================================== */
.plans .pgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	align-items: start;
}

.plans .plan {
	position: relative;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 28px 26px 26px;
	display: flex;
	flex-direction: column;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}

.plans .plan .badge {
	position: absolute;
	top: -13px;
	left: 26px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 11px;
	line-height: 1.2;
	letter-spacing: .1em;
	text-transform: uppercase;
	background: var(--crimson);
	color: #ffffff;
	padding: 6px 12px;
	border-radius: 999px;
	white-space: nowrap;
	z-index: 2;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .3s, transform .3s;
	pointer-events: none;
}

.plans .plan.rec,
.plans .plan.is-active {
	border-color: var(--crimson);
	box-shadow: 0 24px 50px rgba(0, 43, 92, .14);
	transform: translateY(-8px);
}

.plans .plan.rec .badge,
.plans .plan.is-active .badge {
	opacity: 1;
	transform: none;
}

.plans .plan .tier {
	font-family: var(--display);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mist);
}

.plans .plan h3 {
	font-family: var(--display);
	font-size: 22px;
	font-weight: 700;
	color: var(--indigo);
	margin: 6px 0 4px;
	line-height: 1.2;
}

.plans .plan .fit {
	font-family: var(--body);
	font-size: 13.5px;
	color: var(--ink-soft);
	line-height: 1.4;
}

.plans .plan .price {
	margin: 18px 0 6px;
	font-family: var(--display);
	font-weight: 800;
	font-size: 38px;
	color: var(--indigo);
	letter-spacing: -.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}

.plans .plan .price .cur {
	font-size: 20px;
	color: var(--crimson);
}

.plans .plan .price .per {
	font-family: var(--body);
	font-weight: 400;
	font-size: 13px;
	color: var(--ink-soft);
	letter-spacing: 0;
}

.plans .plan .price.custom {
	font-size: 28px;
}

.plans .plan .note {
	font-family: var(--body);
	font-size: 12.5px;
	color: var(--ink-soft);
	min-height: 18px;
}

.plans .plan .inc {
	list-style: none;
	margin: 18px 0 0;
	padding-top: 18px;
	padding-left: 0;
	border-top: 1px solid var(--line);
	display: grid;
	gap: 9px;
	flex: 1;
}

.plans .plan .inc li {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-family: var(--body);
	font-size: 14px;
	color: var(--ink);
	line-height: 1.45;
}

.plans .plan .inc li .inc-icon {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.plans .plan .inc li .inc-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.plans .plan .inc li .inc-text {
	flex: 1;
}

.plans .plan .inc li:not(:has(.inc-icon))::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 5px;
	border-radius: 50%;
	background: var(--indigo-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ED1C24' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/9px no-repeat;
}

.plans .plan .inc li.hl {
	font-weight: 600;
	color: var(--indigo);
}

.plans .plan .btn {
	width: 100%;
	margin-top: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .02em;
	padding: 14px 26px;
	border-radius: var(--radius);
	border: 2px solid transparent;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	box-sizing: border-box;
}

.plans .plan .btn:hover {
	transform: translateY(-1px);
}

.plans .plan .btn-primary {
	background: var(--crimson);
	color: var(--white);
}

.plans .plan .btn-primary:hover {
	background: #C9151C;
	color: var(--white);
}

.plans .plan .btn-outline {
	border-color: var(--indigo);
	color: var(--indigo);
	background: transparent;
}

.plans .plan .btn-outline:hover {
	background: var(--indigo);
	color: var(--white);
}

.plans .plan .fine {
	font-family: var(--body);
	font-size: 12px;
	color: var(--ink-soft);
	text-align: center;
	margin-top: 10px;
}

/* ==========================================================================
   Bottom Advisory Strip (.under)
   ========================================================================== */
.plans .under {
	margin-top: 26px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	font-family: var(--body);
	font-size: 14.5px;
	color: var(--ink-soft);
}

.plans .under b,
.plans .under strong {
	color: var(--indigo);
	font-weight: 700;
}

.plans .under a {
	color: var(--crimson);
	font-weight: 600;
	border-bottom: 1px solid currentColor;
	text-decoration: none;
}

.plans .under a:hover {
	color: #C9151C;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
	.plans .head {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.plans .pgrid {
		grid-template-columns: 1fr;
	}

	.plans .plan.rec,
	.plans .plan.is-active {
		transform: none;
	}
}

@media (max-width: 720px) {
	.plans {
		padding: 52px 0;
	}
	
}
