/*--------------------------------------------------------------
# Book a Call — Membership Comparison
# One call priced against the Inner Circle, in a full-bleed band
# over a blurred sky-plane.webp. It runs untinted, so the copy
# is dark-on-light here — the same bare-photo treatment the
# About and Inner Circle heroes use, and the same dependency:
# the contrast holds only while that image stays pale.
--------------------------------------------------------------*/

/* The section stays white and keeps its bottom-only padding — the band is the
   child, not the section, which is the .ic-banner shape. That is what holds
   the page's padding chain together: .bac-seat below carries no top padding
   of its own and depends on this 100px for the white gap under the band. */
.bac-compare {
	/* The quiet grey for the labels and the supporting line. These would take
	   the theme's --tpp-text-light (#6B6B6B) against white, but it manages
	   only 2.65:1 on the photograph's darkest areas (sRGB 183) — this ground
	   is a printed image under a black overlay, not a flat colour. #3E3E3E is
	   the lightest neutral that still clears 4.5:1 on it. Scoped here rather
	   than added to the token set: the value is tied to this photograph, this
	   blur and this overlay, so moving any of them means re-deriving it. */
	--bac-compare-quiet: #3E3E3E;

	background: var(--tpp-white);
	/* Bottom only — .bac-wallet above, bottom-only too, supplies the gap. */
	padding: 0 0 100px;
}

/* ── The band ──
   Edge to edge, so the horizontal padding is the container's rather than the
   section's; .bac-compare__container then puts the content back on the page
   grid inside it. */
.bac-compare__inner {
	position: relative;
	isolation: isolate;
	/* Clips the photo layer, which is deliberately oversized below. */
	overflow: hidden;
	/* Also the fallback if the photo fails to load. The copy over it is dark
	   now, so this has to stay light either way — --tpp-off-white is the
	   nearest token to the photograph's own cream. */
	background: var(--tpp-off-white);
	padding: 58px var(--tpp-container-padding);
	text-align: center;
}

/* Background photo. The negative z-index paints it above the band's own
   background but below the in-flow content, so nothing inside needs a z-index
   of its own — the same layering .bt-cta__box and .ic-vault__tile use. */
.bac-compare__inner::before {
	content: '';
	position: absolute;

	/* Oversized well past the blur radius, then clipped by the band's
	   overflow:hidden. filter:blur() samples transparency beyond an element's
	   own bounds, so at inset:0 the photograph would fade out along all four
	   edges and let the off-white fallback show through as a halo. Pushing
	   that soft edge outside the band is what keeps the image edge to edge.
	   Deliberately generous rather than tuned to the current 3px, so raising
	   the blur cannot bring the halo back. */
	inset: -64px;

	z-index: -2;
	background-image: url('../../images/sky-plane.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;

	/* Softens the plane without dissolving it. Blur is the one layer here
	   that costs the copy nothing — it averages dark detail into the bright
	   sky around it, so heavier settings only lift the darkest ground. */
	filter: blur(3px);
}

/* A light black overlay. Not a scrim — the copy over it is dark, so this
   takes the glare off the sunset rather than making anything legible, and at
   0.08 the plane and contrails still read.

   Unusually, it costs contrast rather than buying it, which is what limits how
   far it can go. The uppercase labels bind first: at --bac-compare-quiet's
   #3E3E3E they hold 4.5:1 to about 0.08, and by 0.16 the grey they would need
   is darker than --tpp-text — at which point the labels and the sentence below
   them are the same colour and the section loses a tier. Raise this and
   re-derive --bac-compare-quiet with it. */
.bac-compare__inner::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(0, 0, 0, 0.09);
}


/* Scroll-reveal, carried by the content rather than the band. .ic-banner
   translates its whole band instead, which it gets away with at 24px inside an
   overflow-hidden section; here the band runs the full height of the section,
   so moving it would open a sliver of white along the top edge for the length
   of the transition. */
.bac-compare__container {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;

	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.bac-compare.is-visible .bac-compare__container {
	opacity: 1;
	transform: translateY(0);
}

.bac-compare__heading {
	font-family: var(--tpp-font-heading);
	font-size: clamp(1.9rem, 4vw + 0.5rem, 3rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	/* 8.65:1 on the photograph's darkest areas. */
	color: var(--tpp-black);
	margin: 0 0 48px;
}



/* ──────────────────────────────────────────────
   The two figures
   ────────────────────────────────────────────── */

/* inline-flex so the pair sits centred as one block, with the divider drawn
   between them rather than under the whole row. */
.bac-compare__grid {
	display: inline-flex;
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bac-compare__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 44px;
}

/* Hairline between the two, on the second item so it never trails after the
   last one. */
.bac-compare__item + .bac-compare__item {
	border-left: 1px solid rgba(26, 26, 26, 0.18);
}

.bac-compare__label {
	font-family: var(--tpp-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bac-compare-quiet);
}

/* The membership side is marked by being the darker of the two labels rather
   than by hue. The orange accent is too light to read as text against this
   pale photograph, and darkening it far enough to clear 4.5:1 turns it brown,
   which no longer reads as the brand colour. On a ground this pale, weight is
   the honest distinction. */
.bac-compare__item--highlight .bac-compare__label {
	color: var(--tpp-black);
}

.bac-compare__price {
	font-family: var(--tpp-font-heading);
	font-size: clamp(1.9rem, 3vw + 0.5rem, 2.5rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.04em;
	color: var(--tpp-black);
	margin-top: 8px;
}

.bac-compare__meta {
	font-family: var(--tpp-font-body);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bac-compare-quiet);
	margin-top: 8px;
}


/* ── Body copy ── */

.bac-compare__desc {
	font-family: var(--tpp-font-body);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.7;
	/* --tpp-text at 6.28:1, not the quiet grey — this is a full sentence and
	   the one thing on the band people actually read. */
	color: var(--tpp-text);
	max-width: 480px;
	margin: 32px auto 0;
}


/* ── Action ── */

.bac-compare__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 28px;
}

.bac-compare__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 14px 30px;
	border-radius: var(--tpp-radius-pill);
	/* Solid rather than the white pill this was against the dark band: on a
	   cream photograph a white button has no edge to speak of. */
	background: var(--tpp-black);
	border: 1.5px solid var(--tpp-black);
	color: var(--tpp-white);
	font-family: var(--tpp-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: box-shadow var(--tpp-transition);
}

/* :visited restated — this points at a page the reader may well have already
   seen, and would otherwise take the browser's purple.

   These also decide the hover-stagger colour. js/hover-text-animate.js splits
   the label into .text-reveal spans that take `color: inherit`, and this
   three-part selector outweighs any descendant rule that tried to set them
   directly — which is exactly why .bac-options__card--featured needed an
   override in style.css. Setting white here means none is needed. */
.bac-compare__cta:hover,
.bac-compare__cta:visited,
.bac-compare__cta:hover:visited,
.bac-compare__cta:focus,
.bac-compare__cta:active {
	color: var(--tpp-white);
}

.bac-compare__cta:hover {
	box-shadow: 0 10px 30px rgba(26, 26, 26, 0.24);
}

.bac-compare__cta:focus-visible {
	outline: 2px solid var(--tpp-black);
	outline-offset: 3px;
}

.bac-compare__cta-icon {
	flex-shrink: 0;
	transition: transform var(--tpp-transition);
}

.bac-compare__cta:hover .bac-compare__cta-icon {
	transform: translateX(4px);
}


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

@media (prefers-reduced-motion: reduce) {
	.bac-compare__container,
	.bac-compare__cta,
	.bac-compare__cta-icon {
		transition: none;
	}

	.bac-compare__cta:hover .bac-compare__cta-icon {
		transform: none;
	}
}


/* ──────────────────────────────────────────────
   Tablet (≤991px)
   ────────────────────────────────────────────── */

@media screen and (max-width: 991px) {
	.bac-compare {
		padding: 0 0 80px;
	}

	.bac-compare__inner {
		padding: 72px var(--tpp-container-padding);
	}

	.bac-compare__heading {
		margin-bottom: 40px;
	}

	.bac-compare__item {
		padding: 0 32px;
	}
}


/* ──────────────────────────────────────────────
   Mobile (≤767px)
   ────────────────────────────────────────────── */

@media screen and (max-width: 767px) {
	.bac-compare {
		padding: 0 0 72px;
	}

	.bac-compare__inner {
		padding: 56px var(--tpp-container-padding);
	}

	.bac-compare__heading {
		font-size: clamp(1.65rem, 7vw, 2.4rem);
		margin-bottom: 28px;
	}

	/* Side by side the two figures get about 130px each on a phone, which the
	   uppercase labels cannot hold. Stacked, the divider has to move from the
	   left edge to the top or it draws down the middle of nothing. */
	.bac-compare__grid {
		display: flex;
		flex-direction: column;
		width: 100%;
		gap: 22px;
	}

	.bac-compare__item {
		padding: 0;
	}

	.bac-compare__item + .bac-compare__item {
		border-left: 0;
		border-top: 1px solid rgba(26, 26, 26, 0.18);
		padding-top: 22px;
	}

	.bac-compare__desc {
		font-size: 0.9rem;
		margin-top: 26px;
	}

	.bac-compare__actions {
		margin-top: 24px;
	}

	.bac-compare__cta {
		width: 100%;
	}
}


/* ──────────────────────────────────────────────
   Small mobile (≤480px)
   ────────────────────────────────────────────── */

@media screen and (max-width: 480px) {
	.bac-compare {
		padding: 0 0 56px;
	}

	.bac-compare__inner {
		padding: 44px var(--tpp-container-padding);
	}

	.bac-compare__cta {
		padding: 13px 22px;
		font-size: 0.9rem;
	}
}
