.membership-strip {
	--navy: #051a40;
	--gold: #ca9f3e;
	--cream: #f5f0e8;
	--muted: #828268;
	--border: #e8dfc8;
	--dash-green: #4a6741;
	background-color: #fffefc;
	padding: 6rem 2rem;
}

.membership-strip__inner {
	max-width: 1152px;
	margin: 0 auto;
}

.membership-strip__header {
	text-align: center;
}

.membership-strip__label {
	margin: 0;
	font-family: "DM Mono", "SFMono-Regular", Menlo, monospace;
	font-size: 0.68rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold);
}

.membership-strip__heading {
	margin: 0.7rem 0 0;
	font-family: "Lora", Georgia, serif;
	font-weight: 600;
	font-size: clamp(1.75rem, 4vw, 3rem);
	line-height: 1.15;
	color: var(--navy);
}

.membership-strip__heading-highlight {
	color: var(--gold);
	font-style: italic;
}

.membership-strip__description {
	margin: 1rem auto 0;
	max-width: 24rem;
	font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--muted);
}

/*
 * Card grid / carousel — one Swiper instance (see script.js) handles both
 * states via its own breakpoints config:
 *  - below 900px: a real swipeable carousel, touch-drag on, pagination
 *    dots, peeking the next card.
 *  - 900px and up: all 3 slides shown, touch-drag off — deliberately
 *    indistinguishable from a plain static grid, so desktop is unaffected.
 * Swiper needs overflow:hidden to clip off-screen slides on mobile, but
 * that would also clip the hover lift's shadow on desktop where nothing
 * needs clipping (nowhere for slides to overflow to once touch is off) —
 * hence overflow:visible above 900px in the media query below.
 */

.membership-strip__grid {
	margin-top: 4rem;
	border: 1px solid var(--border);
}

.membership-strip__swiper {
	width: 100%;
}

/* Swipe hint — mobile-only (see the 901px+ rule below, matching the
   pagination dots it sits above). Nudges the icon side to side to read as
   "drag me" at a glance; fades out the first time the visitor actually
   swipes (see script.js) so it doesn't linger as clutter once it's done
   its job. */
.membership-strip__swipe-hint {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.9rem 0;
	font-family: "DM Mono", "SFMono-Regular", Menlo, monospace;
	font-size: 0.62rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	border-bottom: 1px solid var(--border);
	transition: opacity 0.3s ease;
}

.membership-strip__swipe-hint--dismissed {
	opacity: 0;
}

.membership-strip__swipe-hint-icon {
	flex-shrink: 0;
	animation: membership-strip-swipe-nudge 1.8s ease-in-out infinite;
}

@keyframes membership-strip-swipe-nudge {
	0%, 100% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(3px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.membership-strip__swipe-hint-icon {
		animation: none;
	}
}

.membership-strip__card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 2.5rem;
	background-color: #fff;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

/* Connected-border look: a shared border between cards rather than each
   card having its own — scoped to slide position (not
   .membership-strip__card:first-child, which would match every card since
   each is the only child of its own slide). */
.swiper-slide .membership-strip__card {
	border-left: 1px solid var(--border);
}

.swiper-slide:first-child .membership-strip__card {
	border-left: 0;
}

/* The nice hover/focus interaction: the whole card (not just the button —
   see the stretched-link a.membership-strip__cta::after below) lifts with a
   soft shadow, and its own border/background respond too. z-index keeps a
   lifted card's shadow drawing over its flat neighbours. */
.membership-strip__card:hover,
.membership-strip__card:focus-within {
	z-index: 1;
	transform: translateY(-8px);
	box-shadow: 0 24px 48px rgba(5, 26, 64, 0.14);
}

.membership-strip__card--featured {
	background-color: var(--navy);
	color: var(--cream);
}

.membership-strip__card--featured:hover,
.membership-strip__card--featured:focus-within {
	box-shadow: 0 24px 48px rgba(5, 26, 64, 0.35);
}

.membership-strip__badge {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	padding: 0.2rem 0.65rem;
	background-color: var(--gold);
	color: var(--navy);
	font-family: "DM Mono", "SFMono-Regular", Menlo, monospace;
	font-size: 0.58rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.membership-strip__plan-name {
	margin: 0;
	font-family: "DM Mono", "SFMono-Regular", Menlo, monospace;
	font-size: 0.62rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.membership-strip__card--featured .membership-strip__plan-name {
	color: var(--gold);
}

.membership-strip__price-row {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin: 0.6rem 0 0;
}

.membership-strip__price {
	font-family: "Lora", Georgia, serif;
	font-weight: 700;
	font-size: 2.4rem;
	color: var(--navy);
}

.membership-strip__card--featured .membership-strip__price {
	color: var(--cream);
}

.membership-strip__price-period {
	font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 0.78rem;
	color: var(--muted);
}

.membership-strip__card--featured .membership-strip__price-period {
	color: rgba(245, 240, 232, 0.6);
}

.membership-strip__divider {
	margin: 1.5rem 0 0;
	border: 0;
	border-top: 1px solid var(--border);
}

.membership-strip__card--featured .membership-strip__divider {
	border-top-color: rgba(196, 164, 107, 0.3);
}

.membership-strip__features {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
	flex-grow: 1;
}

.membership-strip__feature {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--navy);
}

.membership-strip__card--featured .membership-strip__feature {
	color: rgba(245, 240, 232, 0.82);
}

.membership-strip__feature-dash {
	flex-shrink: 0;
	color: var(--dash-green);
}

.membership-strip__card--featured .membership-strip__feature-dash {
	color: var(--gold);
}

.membership-strip__cta {
	position: relative;
	display: block;
	margin-top: 2rem;
	padding: 0.8rem;
	background-color: transparent;
	border: 1px solid var(--navy);
	color: var(--navy);
	font-family: "DM Mono", "SFMono-Regular", Menlo, monospace;
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Stretched link: makes the entire card clickable/hoverable via this one
   real, keyboard-focusable anchor, instead of nesting a second link around
   the whole card (which isn't valid HTML) or relying on JS. */
a.membership-strip__cta::after {
	content: "";
	position: absolute;
	inset: 0;
}

.membership-strip__card:hover .membership-strip__cta,
.membership-strip__card:focus-within .membership-strip__cta {
	background-color: var(--navy);
	color: var(--cream);
}

.membership-strip__card--featured .membership-strip__cta {
	background-color: var(--gold);
	border-color: var(--gold);
	color: var(--navy);
}

.membership-strip__card--featured:hover .membership-strip__cta,
.membership-strip__card--featured:focus-within .membership-strip__cta {
	background-color: #dbb659;
	border-color: #dbb659;
	color: var(--navy);
}

.membership-strip__cta--disabled {
	opacity: 0.5;
	border-color: var(--border);
	color: var(--muted);
	cursor: default;
}

.membership-strip__card--featured .membership-strip__cta--disabled {
	border-color: rgba(245, 240, 232, 0.3);
	color: rgba(245, 240, 232, 0.5);
}

/* Pagination dots — mobile-only (see the 901px+ rule below), restyled from
   Swiper's default grey to the site's gold/muted palette. */
.membership-strip__pagination.swiper-pagination {
	position: static;
	margin-top: 1.5rem;
}

.membership-strip__pagination .swiper-pagination-bullet {
	width: 7px;
	height: 7px;
	margin: 0 4px;
	background-color: var(--muted);
	opacity: 0.35;
}

.membership-strip__pagination .swiper-pagination-bullet-active {
	background-color: var(--gold);
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.membership-strip__card,
	.membership-strip__card:hover,
	.membership-strip__card:focus-within {
		transform: none;
		transition: box-shadow 0.25s ease, background-color 0.25s ease;
	}
}

.membership-strip__placeholder {
	margin-top: 3rem;
	padding: 2rem;
	border: 1px dashed var(--border);
	color: var(--muted);
	font-style: italic;
	text-align: center;
}

.membership-strip__footer {
	margin: 1.5rem 0 0;
	font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--muted);
	text-align: center;
}

.membership-strip__footer-link {
	color: var(--muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.membership-strip__footer-link:hover,
.membership-strip__footer-link:focus-visible {
	color: var(--navy);
}

/* Desktop: nothing for Swiper to scroll to once touch-drag is off (see
   script.js's 900px breakpoint config), so give the shadow room instead of
   clipping it — and there's no carousel here, so no dots either. */
@media (min-width: 901px) {
	.membership-strip__swiper {
		overflow: visible;
	}

	.membership-strip__pagination {
		display: none;
	}
}

@media (max-width: 900px) {
	.membership-strip__swipe-hint {
		display: flex;
	}

	/* Each card is its own self-contained slide on mobile rather than
	   sharing borders with its neighbours. */
	.swiper-slide .membership-strip__card,
	.swiper-slide:first-child .membership-strip__card {
		border: 1px solid var(--border);
	}

	.membership-strip__card--featured {
		border-color: var(--navy);
	}

	.membership-strip__grid {
		margin-top: 0;
		padding: 0;
		border: 0;
	}

	/* The hover lift only makes sense with a pointer and neighbouring cards
	   to lift away from — on a touch carousel it would just fight the
	   swipe gesture, so this is a hover/pointer-only enhancement. */
	.membership-strip__card:hover,
	.membership-strip__card:focus-within,
	.membership-strip__card--featured:hover,
	.membership-strip__card--featured:focus-within {
		transform: none;
		box-shadow: none;
	}
}

@media (max-width: 600px) {
	.membership-strip {
		padding: 4rem 1.25rem;
	}

	.membership-strip__card {
		padding: 1.75rem;
	}
}
