/*--------------------------------------------------------------
# Membership Pricing Section
# Clean 3-column pricing grid with featured Inner Circle card.
--------------------------------------------------------------*/

/* ── Section ── */
/* NOTE — desktop (≥992px) is deliberately left exactly as built.
   --tpp-section-spacing is now defined, so this padding would suddenly
   start computing to a real value where it previously resolved to 0 (an
   invalid var() is invalid at computed-value time, and padding is not
   inherited, so it fell back to the initial 0). Desktop spacing has always
   come purely from the 160px margin-top below, and it still does — the
   `padding: 0` here just states outright what the browser was already
   doing, so nothing above 991px moves.
   The scaled-down version lives in the ≤991px block at the end of this
   file, where the 160px margin is also dropped. */
.membership {
	padding: 0;
	background: var(--tpp-white);
	margin-top: 160px;
}

/* ── Container ── */
.membership__container {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
}

/* ── Header — centered ── */
.membership__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 64px;
}

.membership__heading {
	font-family: var(--tpp-font-heading);
	font-size: clamp(2rem, 4vw + 0.5rem, 2.8rem);
	font-weight: 700;
	color: var(--tpp-black);
	letter-spacing: -0.04em;
	margin: 0 0 16px;
}

.membership__tagline {
	font-family: var(--tpp-font-body);
	font-size: 1.15rem;
	font-weight: 400;
	color: var(--tpp-text);
	margin: 0;
}

/* ──────────────────────────────────────────────
   Pricing cards grid
   ────────────────────────────────────────────── */
.membership__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: stretch;
}

/* ── Single card ── */
.membership__card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--tpp-white);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 24px;
	padding: 40px 32px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
	transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.membership__card:hover {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
	border-color: rgba(0, 0, 0, 0.12);
}

/* ── Featured card (Inner Circle) ── */
.membership__card--featured {
	border: 1px solid var(--tpp-accent);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
	padding-top: 48px;
	z-index: 1;
}

.membership__card--featured:hover {
	box-shadow: 0 24px 56px rgba(0, 0, 0, 0.12);
	border: 1px solid var(--tpp-accent);
}

/* ── VIP: capped at a number of spots a year (2 Dec 2026, Owen) ──
   The card makes room for the badge on its top edge, as the featured
   card does for "Most Popular". */
.membership__card--capped {
	padding-top: 54px;
}

/* "ONLY 10 VIPs A YEAR" (3 Dec 2026, Anish: "more poppy", "more dominant
   and visible yet minimal"). Solid brand orange, a warm gradient, with black
   text (about 8:1), a black star, a glowing halo that breathes and a sheen
   that crosses it every few seconds. */
.membership__badge.membership__badge--vip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	top: -20px;
	overflow: hidden;
	padding: 9px 20px 9px 16px;
	background: linear-gradient(135deg, #FFB547 0%, var(--tpp-accent) 45%, #FF8000 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.55),
		0 10px 26px -8px rgba(255, 122, 0, 0.75),
		0 0 0 4px rgba(255, 153, 0, 0.18);
	color: var(--tpp-black);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	animation: membershipVipGlow 2.8s ease-in-out infinite;
}

.membership__badge--vip b {
	font-weight: 800;
}

.membership__badge--vip svg {
	flex: none;
	width: 15px;
	height: 15px;
	color: var(--tpp-black);
	animation: membershipVipTwinkle 2.4s ease-in-out infinite;
}

/* The sheen: a soft band of light crossing the badge, then a long rest. */
.membership__badge--vip::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
	transform: translateX(-120%);
	animation: membershipVipSheen 4.2s ease-in-out infinite;
	pointer-events: none;
}

/* The halo breathes: a little wider and brighter, then back. */
@keyframes membershipVipGlow {
	0%, 100% {
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.55),
			0 10px 26px -8px rgba(255, 122, 0, 0.75),
			0 0 0 4px rgba(255, 153, 0, 0.18);
	}
	50% {
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.55),
			0 14px 34px -6px rgba(255, 122, 0, 0.9),
			0 0 0 8px rgba(255, 153, 0, 0.24);
	}
}

@keyframes membershipVipTwinkle {
	0%, 100% {
		transform: scale(1) rotate(0deg);
	}
	50% {
		transform: scale(1.25) rotate(18deg);
	}
}

@keyframes membershipVipSheen {
	0%, 55% {
		transform: translateX(-120%);
	}
	85%, 100% {
		transform: translateX(120%);
	}
}

/* "2 spots available now" (3 Dec 2026, Anish: a background that's "poppy
   and noticeable"). A clean, solid orange pill, Owen's colour for anything
   that should pop: black text (about 8:1), the number in bold, a small live
   dot with one soft ripple, a crisp highlight and a light shadow. Flat and
   smaller than the "ONLY 10 VIPs A YEAR" badge, so the two don't compete.
   (Earlier the same day: a glowing, beating gradient pill looked cheap, and
   plain orange text was too quiet.) */
.membership__spots {
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 6px 15px 6px 12px;
	border-radius: var(--tpp-radius-pill);
	/* Light, see-through yellow to orange (3 Dec 2026, Anish), with a faint
	   orange hairline so the shape stays crisp on the white card. */
	background: linear-gradient(90deg, rgba(255, 204, 0, 0.26) 0%, rgba(255, 153, 0, 0.3) 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 153, 0, 0.28);
	color: var(--tpp-black);
	font-family: var(--tpp-font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
}

.membership__spots b {
	font-weight: 800;
}

.membership__spots-dot {
	position: relative;
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tpp-black);
}

.membership__spots-dot::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--tpp-black);
	animation: membershipSpotsPulse 2s ease-out infinite;
}

@keyframes membershipSpotsPulse {
	from {
		transform: scale(1);
		opacity: 0.45;
	}
	to {
		transform: scale(2.8);
		opacity: 0;
	}
}

/* Fully booked: a quiet grey pill, still. */
.membership__spots--full {
	background: var(--tpp-off-white);
	box-shadow: inset 0 0 0 1px var(--tpp-border);
	color: var(--tpp-text-light);
}

.membership__spots--full b {
	color: var(--tpp-text-light);
}

.membership__spots--full .membership__spots-dot {
	background: var(--tpp-text-light);
}

.membership__spots--full .membership__spots-dot::after {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.membership__spots-dot::after {
		animation: none;
		opacity: 0;
	}

	.membership__badge.membership__badge--vip,
	.membership__badge--vip svg,
	.membership__badge--vip::after {
		animation: none;
	}
}

/* ── "Most Popular" badge ── */
.membership__badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	display: inline-block;
	padding: 5px 20px;
	background: var(--tpp-black);
	color: var(--tpp-white);
	font-family: var(--tpp-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	border-radius: 100px;
	white-space: nowrap;
}

/* ── Card body — flex-grow to push CTA to bottom ── */
.membership__card-body {
	flex: 1;
}

/* ── Tier name ── */
.membership__tier-name {
	font-family: var(--tpp-font-heading);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--tpp-black);
	margin: 0 0 16px;
}

/* ── Price ── */
.membership__price {
	display: flex;
	align-items: baseline;
	gap: 2px;
	margin-bottom: 28px;
}

.membership__price-amount {
	font-family: var(--tpp-font-heading);
	font-size: 2.8rem;
	font-weight: 800;
	line-height: 1;
	color: var(--tpp-black);
	letter-spacing: -0.04em;
}

.membership__price-period {
	font-family: var(--tpp-font-body);
	font-size: 1rem;
	font-weight: 400;
	color: var(--tpp-text);
}

/* "Billed quarterly ($147)" under the Points Partner price. The negative top
   margin pulls it up into the price's 28px bottom gap, so it reads as part of
   the price, and its own bottom margin restores the gap above the features. */
.membership__price-note {
	margin: -22px 0 28px;
	font-size: 0.82rem;
	line-height: 1.4;
	color: var(--tpp-text-light);
}

/* ── Feature list ── */
.membership__features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 32px;
}

.membership__features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-family: var(--tpp-font-body);
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--tpp-text);
	line-height: 1.45;
	/* No lone word on a feature's last line (e.g. "course" in Owen's longer
	   Inner Circle items, 28 Nov 2026). Browsers without it wrap as before. */
	text-wrap: pretty;
}

/* ── Check icon ── */
.membership__check {
	flex-shrink: 0;
	color: var(--tpp-accent);
	margin-top: 2px;
}

/* ──────────────────────────────────────────────
   CTA buttons
   ────────────────────────────────────────────── */
.membership__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 24px;
	border-radius: 12px;
	font-family: var(--tpp-font-body);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--tpp-transition);
}

/* Outline variant */
.membership__cta--outline {
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.15);
	color: var(--tpp-black);
}

.membership__cta--outline:hover {
	border-color: rgba(0, 0, 0, 0.3);
	background: var(--tpp-off-white);
}

/* Solid variant (featured) */
/* Orange: the featured plan's key button (black until 29 Nov 2026) */
.membership__cta--solid {
	background: var(--tpp-accent);
	border: 1px solid var(--tpp-accent);
}

.membership__cta--solid,
.membership__cta--solid:visited,
.membership__cta--solid:hover,
.membership__cta--solid:focus,
.membership__cta--solid:active {
	color: var(--tpp-black);
}

.membership__cta--solid:hover {
	background: var(--tpp-accent-dark);
	border-color: var(--tpp-accent-dark);
}

/* Black: the VIP plan's "Apply for VIP" (30 Nov 2026, Anish; it was
   outlined like the Points Partner plan's). White letters in every link
   state, since style.css sets those states to `color: inherit`. */
.membership__cta--dark {
	background: var(--tpp-black);
	border: 1px solid var(--tpp-black);
}

.membership__cta--dark,
.membership__cta--dark:visited,
.membership__cta--dark:hover,
.membership__cta--dark:focus,
.membership__cta--dark:active {
	color: var(--tpp-white);
}

.membership__cta--dark:hover {
	background: var(--tpp-dark);
	border-color: var(--tpp-dark);
}

/* Pending — this tier has no checkout link yet (inc/membership-checkout.php).
   A <span>, not a link, so it can't be clicked into a dead end, and dashed so
   it reads as unfinished rather than broken — the same treatment as the
   "Link to come" cards on Book a Call. Two classes, so it outranks both
   variants and their :hover states whichever one it carries. */
.membership__cta.membership__cta--pending,
.membership__cta.membership__cta--pending:hover {
	background: transparent;
	border: 1px dashed var(--tpp-border);
	color: var(--tpp-text-light);
	box-shadow: none;
	transform: none;
	cursor: default;
}

/* ── Footnote ── */
.membership__footnote {
	text-align: center;
	margin: 40px 0 0;
	font-family: var(--tpp-font-body);
	font-size: 0.9rem;
	font-weight: 400;
}

.membership__footnote a {
	color: var(--tpp-blue);
	text-decoration: none;
	transition: color var(--tpp-transition);
}

.membership__footnote a:hover {
	color: var(--tpp-blue-dark);
}

/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */

/* Tablet (≥768px) — 3 columns */
@media screen and (min-width: 768px) {
	.membership__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

/* Desktop (≥992px) */
@media screen and (min-width: 992px) {
	.membership__grid {
		gap: 24px;
		align-items: center;
	}

	.membership__card {
		padding: 40px 36px;
	}

	.membership__card--featured {
		padding-top: 52px;
		padding-bottom: 48px;
		transform: scale(1.04);
	}
	
	.membership__card--featured:hover {
		transform: scale(1.06);
	}
}

/* Large desktop (≥1280px) */
@media screen and (min-width: 1280px) {
	.membership__grid {
		gap: 32px;
	}
}

/* Tablet and below (≤991px) — real section padding instead of the flat
   160px margin, which never scaled and left ~240px of dead space above the
   pricing cards on a phone. Scoped to ≤991px so desktop keeps the margin. */
@media screen and (max-width: 991px) {
	.membership {
		padding: var(--tpp-section-spacing) 0;
		margin-top: 0;
	}
}

/* Mobile (≤767px) — stack with featured card first */
@media screen and (max-width: 767px) {
	.membership__card--featured {
		order: -1;
	}

	.membership__card {
		padding: 32px 24px 28px;
	}

	/* The featured card's badge sits at top: -13px, outside the card, so it
	   still needs the extra top padding the base rule gives it — the shared
	   .membership__card padding above would otherwise flatten it. */
	.membership__card--featured,
	.membership__card--capped {
		padding-top: 40px;
	}

	.membership__header {
		margin-bottom: 40px;
	}

	.membership__heading {
		font-size: 1.5rem;
	}

	.membership__tagline {
		font-size: 1rem;
	}

	.membership__grid {
		gap: 20px;
	}

	.membership__price-amount {
		font-size: 2.4rem;
	}

	.membership__price {
		margin-bottom: 24px;
	}

	.membership__price-note {
		margin: -18px 0 24px;
	}

	.membership__features {
		margin-bottom: 28px;
	}

	.membership__footnote {
		margin-top: 32px;
		font-size: 0.85rem;
	}
}

/* Small mobile (≤480px) */
@media screen and (max-width: 480px) {
	.membership__card {
		padding: 28px 20px 24px;
		border-radius: 20px;
	}

	.membership__card--featured,
	.membership__card--capped {
		padding-top: 36px;
	}

	.membership__price-amount {
		font-size: 2.1rem;
	}
}

/* Tap targets at least 44px tall on phones (Owen's request). */
@media screen and (max-width: 767px) {
	/* The negative margin takes back the extra height, so the spacing
	   around the link looks the same as before. */
	.membership__footnote a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		margin: -14px 0;
	}
}
