/*--------------------------------------------------------------
# Membership — One Flight Pays for the Year
# Dark card: illustration left; heading, the two figures and a
# join button right. Stacks below 992px.
--------------------------------------------------------------*/

/* ── Section wrapper ──
   The same padding as .m-cmp and .m-vplate, so the gap between sections
   on this page stays the same on both sides of this one. */
.m-flight {
	padding: 60px 0 100px;
	overflow: hidden;
}

/* ── Container ──
   Wider than the page's 1140px sections, to match the closing CTA card. */
.m-flight__container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);

	/* Scroll-reveal */
	opacity: 0;
	transform: translateY(32px);
	transition:
		opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.m-flight__container.is-visible {
	opacity: 1;
	transform: translateY(0);
}


/* ──────────────────────────────────────────────
   Card
   ────────────────────────────────────────────── */

.m-flight__card {
	display: grid;
	grid-template-columns: 1fr;
	padding: 14px;
	background: var(--tpp-black);
	border-radius: 24px;
}


/* ── Illustration ──
   A transparent cutout, so it sits straight on the card with no frame, and
   is shown whole rather than cropped so the planes and the island stay in. */
.m-flight__media {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 18px 0;
}

.m-flight__image {
	display: block;
	width: 100%;
	max-width: 400px;
	height: auto;
}


/* ── Content ── */
.m-flight__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 32px 18px 18px;
}

/* Sized so Owen's long two-part line (28 Nov 2026) never runs past 4 lines
   (Anish: "maximum 3 lines, or at least looks good on 4"). Measured on the
   real page, in px per width: the largest size that fits 4 lines is about
   (screen width − 96) ÷ 12.75 on phones — 23px at 390, 20.5px at 360 —
   so phones scale 20–30px (5 lines only below ~350px). Stacked tablets get
   30px, which is 2–3 lines. Side by side from 992px, see the rule below. */
.m-flight__heading {
	font-family: var(--tpp-font-heading);
	font-size: clamp(1.25rem, 7.5vw - 0.45rem, 1.875rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--tpp-white);
	margin: 0 0 32px;
}

/* The page's two-tone heading (see .m-vip__heading-accent), in the
   brand orange on the dark card. */
.m-flight__heading-accent {
	color: var(--tpp-accent);
}

/* Owen's two lines (25 Nov 2026), broken after "flight," as he asked. Each
   is its own balanced block, so when one is too long for the column it
   splits evenly rather than leaving a word alone. (Chrome won't balance
   text after a <br>, hence blocks.) */
.m-flight__heading-line {
	display: block;
	text-wrap: balance;
}


/* ── Figures ── */
.m-flight__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	width: 100%;
	margin: 0 0 32px;
}

.m-flight__stat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	margin: 0;
}

/* Hairline between the two figures */
.m-flight__stat + .m-flight__stat {
	padding-left: 20px;
	border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.m-flight__stat-value {
	font-family: var(--tpp-font-heading);
	font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--tpp-white);
}

.m-flight__stat-label {
	font-family: var(--tpp-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.7);
}

.m-flight__stat-note {
	font-family: var(--tpp-font-body);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.45);
}


/* ── Button ──
   The white pill from the page's closing CTA (.m-cta__btn--primary). */
.m-flight__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 32px;
	background: var(--tpp-white);
	border: 1px solid var(--tpp-white);
	border-radius: var(--tpp-radius-pill);
	font-family: var(--tpp-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--tpp-black);
	text-decoration: none;
	transition: box-shadow 0.3s ease;
}

.m-flight__cta:hover {
	box-shadow: 0 8px 28px rgba(255, 255, 255, 0.15);
	color: var(--tpp-black);
}

/* Pending — no Points Partner checkout link yet. Same treatment as
   .m-hero__cta--pending, recoloured for the dark card: a <span>, so it
   can't be clicked into a dead end, dashed so it reads as unfinished. */
.m-flight__cta.m-flight__cta--pending,
.m-flight__cta.m-flight__cta--pending:hover {
	background: transparent;
	border: 1px dashed rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.6);
	box-shadow: none;
	cursor: default;
}


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

/* Desktop (≥992px) — illustration and content side by side */
@media screen and (min-width: 992px) {
	.m-flight__card {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		padding: 16px;
	}

	.m-flight__media {
		padding: 0px;
	}

	.m-flight__image {
		max-width: 460px;
	}

	.m-flight__content {
		padding: 40px 40px 40px 48px;
	}

	/* Half-width text column: 3 lines from ~1200px (the first half fits one
	   line at up to 31.5px at 1280px and 35.5px from 1440px; this gives
	   29.6px and 31.3px), and 4 even lines (2 + 2) at 992–1199px, where
	   3 lines would need a 22–25px heading. */
	.m-flight__heading {
		font-size: clamp(1.625rem, 1.1vw + 0.97rem, 2.125rem);
	}
}

/* Tablet and below (≤991px) */
@media screen and (max-width: 991px) {
	.m-flight {
		padding: 40px 0 64px;
	}
}

/* Mobile (≤767px) */
@media screen and (max-width: 767px) {
	.m-flight {
		padding: 0 0 64px;
	}

	.m-flight__card {
		padding: 10px;
		border-radius: 20px;
	}

	.m-flight__media {
		padding: 14px 14px 0;
	}

	.m-flight__content {
		padding: 28px 14px 14px;
	}

	.m-flight__heading,
	.m-flight__stats {
		margin-bottom: 28px;
	}

	.m-flight__stats {
		gap: 16px;
	}

	.m-flight__stat + .m-flight__stat {
		padding-left: 16px;
	}

	/* Full width, for an easy thumb target */
	.m-flight__cta {
		width: 100%;
	}
}


/* ──────────────────────────────────────────────
   Reduced motion
   ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.m-flight__container,
	.m-flight__cta {
		transition: none;
	}
}
