/*--------------------------------------------------------------
# Final CTA — Membership Page
# Closing call-to-action card with primary + secondary buttons,
# over the black metal Inner Circle card, which tilts toward the
# pointer in 3D (js/membership-cta.js). On phones the smaller card
# stands above the copy instead of behind it.
--------------------------------------------------------------*/

.m-cta {
	padding: 60px 0 160px;
}

.m-cta__container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
}

.m-cta__card {
	text-align: center;
	padding: 156px 48px;
	background: var(--tpp-black);
	border-radius: 24px;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

/* ──────────────────────────────────────────────
   The tilting card, behind the copy
   The stage fills the box under the copy (z-index -1 inside the box's
   isolated stacking context) and takes no pointer events, so the buttons
   stay clickable; js/membership-cta.js listens on the box itself.
   ────────────────────────────────────────────── */

.m-cta__stage {
	position: absolute;
	inset: 0;
	z-index: -1;
	display: grid;
	place-items: center;
	/* Lifts the centred card 22px, so its top row sits clear above the
	   heading and its plain lower half frames the buttons */
	padding-bottom: 44px;
	perspective: 1400px;
	pointer-events: none;
}

.m-cta__glow {
	position: absolute;
	width: min(900px, 80%);
	height: 78%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 153, 0, 0.26), rgba(255, 153, 0, 0));
	filter: blur(12px);
}

/* Black brushed metal, the card from the Inner Circle hero. Behind the
   copy its details are one top row (chip, "member since today") that sits
   above the heading; the copy covers the plain metal below. The bottom
   row only shows on phones, where the card stands above the copy.
   --rx/--ry/--mx/--my are set by the script. */
.m-cta__metal {
	--rx: 0deg;
	--ry: 0deg;
	--mx: 30%;
	--my: 20%;

	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: min(440px, 52%);
	aspect-ratio: 1.586;
	padding: 18px 20px 20px;
	overflow: hidden;
	border-radius: 22px;
	text-align: left;
	color: #E9E9E9;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
		linear-gradient(135deg, #3C3C3C, #151515 52%, #2B2B2B);
	box-shadow:
		0 50px 80px -40px rgba(0, 0, 0, 0.85),
		0 0 0 1px rgba(255, 255, 255, 0.04),
		inset 0 1px 0 rgba(255, 255, 255, 0.16);
	transform: rotateX(var(--rx)) rotateY(var(--ry));
	transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* While the pointer moves, follow it closely instead of easing */
.m-cta__metal.is-tilting {
	transition: transform 0.15s linear;
}

/* A light that follows the pointer across the metal */
.m-cta__metal::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 45%);
}

.m-cta__metal-top,
.m-cta__metal-foot {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.m-cta__metal-top {
	align-items: center;
}

.m-cta__metal-foot {
	display: none;
	align-items: flex-end;
}

.m-cta__metal-chip {
	position: relative;
	width: 44px;
	height: 33px;
	border-radius: 7px;
	background: linear-gradient(135deg, #EAD9A4, #B99A52);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.m-cta__metal-chip::after {
	content: '';
	position: absolute;
	inset: 8px 13px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 3px;
}

.m-cta__metal-plane {
	width: 20px;
	height: 20px;
	color: var(--tpp-accent);
	transform: rotate(45deg);
}

/* Debossed into the metal, like the name on the hero's card */
.m-cta__metal-brand {
	display: block;
	font-family: var(--tpp-font-heading);
	font-size: 0.8125rem;
	font-weight: 700;
	color: #171717;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.17), 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.m-cta__metal-tier {
	display: block;
	margin-top: 4px;
	font-family: var(--tpp-font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: linear-gradient(180deg, #FFFFFF, #A9A9A9);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.m-cta__metal-date {
	text-align: right;
}

.m-cta__metal-since {
	display: block;
	font-family: var(--tpp-font-body);
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.m-cta__metal-today {
	display: block;
	font-family: var(--tpp-font-body);
	font-size: 1rem;
	font-weight: 700;
	color: var(--tpp-accent);
}


/* ── Heading ── */
.m-cta__heading {
	font-family: var(--tpp-font-heading);
	font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--tpp-white);
	margin: 0 0 14px;
}


/* ── Description ── */
.m-cta__desc {
	font-family: var(--tpp-font-body);
	font-size: 0.9rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.6;
	margin: 0 auto 32px;
	max-width: 480px;
}


/* ── Buttons row ── */
.m-cta__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}


/* ── Primary button ── */
.m-cta__btn--primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 32px;
	background: var(--tpp-accent); /* orange key button, white until 29 Nov 2026 */
	font-family: var(--tpp-font-body);
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: var(--tpp-radius-pill);
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.m-cta__btn--primary,
.m-cta__btn--primary:visited,
.m-cta__btn--primary:hover,
.m-cta__btn--primary:focus,
.m-cta__btn--primary:active {
	color: var(--tpp-black);
}

.m-cta__btn--primary:hover {
	background: var(--tpp-accent-dark);
	box-shadow: 0 8px 28px rgba(255, 153, 0, 0.25);
}


/* ── Secondary button ── */
.m-cta__btn--secondary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 15px 28px;
	background: transparent;
	color: var(--tpp-white);
	font-family: var(--tpp-font-body);
	font-size: 0.85rem;
	font-weight: 500;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--tpp-radius-pill);
	text-decoration: none;
	transition: color 0.3s ease, border-color 0.3s ease;
}

.m-cta__btn--secondary:hover {
	color: var(--tpp-white);
	border-color: rgba(255, 255, 255, 0.35);
}


/* Dot separator between buttons */
.m-cta__actions::after {
	display: none;
}


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

/* Tablet and below (≤991px) — the same size card, a larger share of the
   narrower box */
@media screen and (max-width: 991px) {
	.m-cta {
		padding: 40px 0 100px;
	}

	.m-cta__metal {
		width: min(440px, 62%);
	}
}

@media screen and (max-width: 767px) {
	.m-cta {
		padding: 0 0 80px;
	}

	.m-cta__card {
		padding: 40px 28px;
		border-radius: 20px;
	}

	/* Too little room for the card behind the copy, so on phones it stands
	   above it, inside the box. It doesn't tilt here: no hover on touch. */
	.m-cta__stage {
		position: relative;
		inset: auto;
		z-index: 0;
		margin: 0 auto 28px;
		padding-bottom: 0;
	}

	.m-cta__glow {
		width: 130%;
		height: 130%;
	}

	.m-cta__metal {
		width: min(250px, 80%);
		padding: 14px 16px 15px;
		border-radius: 15px;
	}

	.m-cta__metal-foot {
		display: flex;
	}

	.m-cta__metal-chip {
		width: 34px;
		height: 25px;
		border-radius: 5px;
	}

	.m-cta__metal-chip::after {
		inset: 6px 10px;
	}

	.m-cta__metal-plane {
		width: 16px;
		height: 16px;
	}

	.m-cta__metal-brand {
		font-size: 0.5625rem;
	}

	.m-cta__metal-tier {
		margin-top: 2px;
		font-size: 0.8125rem;
	}

	.m-cta__metal-since {
		font-size: 0.5rem;
	}

	.m-cta__metal-today {
		font-size: 0.75rem;
	}

	.m-cta__actions {
		flex-direction: column;
		gap: 10px;
	}

	.m-cta__btn--primary,
	.m-cta__btn--secondary {
		width: 100%;
		justify-content: center;
	}
}
