/*--------------------------------------------------------------
# Membership — The VIP Plate
# "Everything inside VIP and what it's worth": the eight VIP items
# engraved on a plate of light brushed metal, the total beneath,
# and the price inlaid in black enamel beside the apply button.
--------------------------------------------------------------*/

/* ── Section ──
   The same padding as .m-vip, which it replaced, so the gaps to
   .m-unlocks above and .m-archive below are unchanged. */
.m-vplate {
	/* Light titanium: fine brushed lines over a cool silver */
	--m-vplate-metal:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
		linear-gradient(135deg, #EFEFEC, #CFCFCB 38%, #F3F3F0 56%, #C3C3BF);
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);

	padding: 60px 0 100px;
	overflow: hidden;
}

.m-vplate__container {
	width: 100%;
	max-width: calc(1040px + 2 * var(--tpp-container-padding));
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
}

/* The page's section heading scale (see .m-cmp__heading) */
.m-vplate__heading {
	text-align: center;
	font-family: var(--tpp-font-heading);
	font-size: clamp(2rem, 4.5vw + 0.5rem, 3.5rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--tpp-black);
	margin: 0 0 48px;
}

.m-vplate__heading-accent {
	color: var(--tpp-text-light);
}

/* Small uppercase labels: the site's body font */
.m-vplate__label {
	display: block;
	font-family: var(--tpp-font-body);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #77766F;
}

.m-vplate__label--light {
	color: rgba(255, 255, 255, 0.55);
}


/* ──────────────────────────────────────────────
   The plate
   ────────────────────────────────────────────── */

.m-vplate__plate {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 26px 44px 34px;
	border-radius: 26px;
	color: #4A4945;
	background: var(--m-vplate-metal);
	box-shadow:
		0 50px 80px -50px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

/* One slow pass of light across the metal as it arrives */
.m-vplate__plate::after {
	content: '';
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(105deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 65%);
	transform: translateX(-100%);
}

.m-vplate.is-lit .m-vplate__plate::after {
	transform: translateX(100%);
	transition: transform 2.2s var(--ease-out) 0.3s;
}

/* Debossed: dark letters with a light edge under them */
.m-vplate__top,
.m-vplate__row,
.m-vplate__total {
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.m-vplate__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	color: #85847E;
}

.m-vplate__brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--tpp-font-heading);
	font-size: 0.875rem;
	font-weight: 700;
	white-space: nowrap;
}

.m-vplate__brand svg {
	width: 15px;
	height: 15px;
	color: #5B5A55;
	transform: rotate(45deg);
}

.m-vplate__tag {
	font-family: var(--tpp-font-body);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Two columns of four; engraved rules between rows (a dark line with a
   light line under it) */
.m-vplate__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 56px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.m-vplate__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 16px 0 15px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.14);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.m-vplate__name {
	font-family: var(--tpp-font-body);
	font-size: 0.96875rem;
	font-weight: 600;
	line-height: 1.4;
	color: #3E3D3A;
}

.m-vplate__val {
	flex: none;
	font-family: var(--tpp-font-heading);
	font-size: 1.1875rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #2B2A27;
}

.m-vplate__sum {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-top: 28px;
}

.m-vplate__total {
	margin: 0;
}

.m-vplate__total-amount {
	display: block;
	margin-top: 4px;
	font-family: var(--tpp-font-heading);
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: #2B2A27;
}

/* The price, inlaid in black enamel */
.m-vplate__price {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 14px 16px 14px 22px;
	border-radius: 16px;
	background: var(--tpp-black);
	box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.8);
}

.m-vplate__price-text {
	margin: 0;
}

.m-vplate__price-amount {
	display: block;
	margin-top: 2px;
	font-family: var(--tpp-font-heading);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.035em;
	color: var(--tpp-accent);
}

.m-vplate__apply {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 6px 6px 6px 18px;
	border-radius: var(--tpp-radius-pill);
	background: var(--tpp-accent);
	font-family: var(--tpp-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.25s ease;
}

/* style.css sets every link state to color: inherit, so each is restated */
.m-vplate__apply,
.m-vplate__apply:visited,
.m-vplate__apply:hover,
.m-vplate__apply:focus,
.m-vplate__apply:active {
	color: var(--tpp-black);
}

.m-vplate__apply:hover {
	background: var(--tpp-accent-dark);
}

/* The theme's black focus ring would vanish on the black inlay */
.m-vplate__apply:focus-visible {
	outline: 2px solid var(--tpp-white);
	outline-offset: 3px;
}

.m-vplate__apply-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--tpp-black);
	color: var(--tpp-accent);
}

.m-vplate__apply-icon svg {
	width: 15px;
	height: 15px;
}

/* No checkout link yet: shown, but plainly not a button */
.m-vplate__apply--pending {
	padding: 14px 20px;
	opacity: 0.55;
	cursor: default;
}

.m-vplate__apply--pending:hover {
	background: var(--tpp-accent);
}


/* ──────────────────────────────────────────────
   Scroll-reveal
   js/membership-vip-plate.js adds .is-visible when the heading arrives
   (heading and plate fade up) and .is-lit once the plate itself is well
   in view (the pass of light above).
   ────────────────────────────────────────────── */

.m-vplate__heading,
.m-vplate__plate {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.7s var(--ease-out),
		transform 0.7s var(--ease-out);
}

.m-vplate__plate {
	transition-delay: 0.12s;
}

.m-vplate.is-visible .m-vplate__heading,
.m-vplate.is-visible .m-vplate__plate {
	opacity: 1;
	transform: none;
}


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

/* Tablet and below (≤991px) — the same padding steps as .m-vip */
@media screen and (max-width: 991px) {
	.m-vplate {
		padding: 40px 0 64px;
	}

	.m-vplate__list {
		column-gap: 32px;
	}
}

/* Mobile (≤767px) — one column of eight; the price inlay full width */
@media screen and (max-width: 767px) {
	.m-vplate {
		padding: 0 0 64px;
	}

	.m-vplate__heading {
		font-size: clamp(1.75rem, 7vw, 2.5rem);
		margin-bottom: 28px;
	}

	.m-vplate__plate {
		padding: 22px 20px 24px;
		border-radius: 22px;
	}

	.m-vplate__tag {
		display: none;
	}

	.m-vplate__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.m-vplate__price {
		flex-wrap: wrap;
		justify-content: space-between;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.m-vplate__heading,
	.m-vplate__plate,
	.m-vplate__plate::after,
	.m-vplate__apply {
		transition: none;
	}
}
