/*--------------------------------------------------------------
# Book a Call — What Happens Next + CTA
# Three steps and the page's closing CTA in one dark box. The
# .bt-process numeral treatment carried onto a dark ground, over
# the closing-CTA language the rest of the site ends on.
--------------------------------------------------------------*/

.bac-next {
	background: var(--tpp-white);
	/* Bottom only — .bac-seat above supplies the gap. This one's bottom
	   padding is the last white space before the footer. */
	padding: 0 0 100px;
}

.bac-next__container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
}

.bac-next__box {
	position: relative;
	isolation: isolate;
	/* Required, not tidiness: the photo layer below is square and this box is
	   not. Without it the image paints over the rounded corners. */
	overflow: hidden;

	/* Also the fallback if the photo fails to load — the copy over it is
	   white, so this has to stay dark either way. */
	background: var(--tpp-black);
	border-radius: 24px;
	padding: 56px 48px;

	/* Scroll-reveal */
	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);
}

/* Background photo. The negative z-index paints it above the box'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 .bac-compare use.
   Centred, which puts the window itself behind the closing question. */
.bac-next__box::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image: url('../../images/plane-window-blue.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Dark wash, and a heavy one by necessity. The cabin wall is mid-blue but the
   window is close to white — sRGB 229 at its brightest, against copy that is
   white. 0.80 is set by the smallest text in the box: the 15px step
   descriptions run at 0.6 alpha and fall below 4.5:1 under a wash of 0.78.

   So this cannot be lowered on its own. Going lighter for more photograph
   means raising .bac-next__step-desc's alpha to match, which costs the
   contrast between a step's title and its description. Everything else in the
   box has room to spare. */
.bac-next__box::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(26, 26, 26, 0.5);
}

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

/* The theme's section-heading treatment, as on .bac-options, .bac-prep and
   .bac-compare. Centred over left-aligned step columns, which looks wrong
   written down but is exactly what .bt-process does — the section this one's
   steps are modelled on — and it reads correctly: the row of steps is one
   block, and the heading sits over the block rather than over its first
   column. */
.bac-next__heading {
	text-align: center;
	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;
	color: var(--tpp-white);
	margin: 0 0 48px;
}


/* ──────────────────────────────────────────────
   Steps
   ────────────────────────────────────────────── */

.bac-next__steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bac-next__step {
	position: relative;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* The rule above each step draws itself out on reveal — the same single
   ornament .bt-process gets, in white rather than black because the ground
   is inverted here. */
.bac-next__step::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--tpp-white);
	transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bac-next.is-visible .bac-next__step::before {
	width: 34px;
	transition-delay: calc(0.3s + var(--step-index, 0) * 0.1s);
}

/* Ghost numeral. Decorative and aria-hidden, so it carries no contrast
   requirement — 0.22 alpha is the dark-ground equivalent of the --tpp-border
   grey .bt-process uses on white. */
.bac-next__number {
	display: block;
	font-family: var(--tpp-font-heading);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	color: rgba(255, 255, 255, 0.22);
	margin-bottom: 14px;
}

.bac-next__step-title {
	font-family: var(--tpp-font-heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--tpp-white);
	margin: 0 0 5px;
}

.bac-next__step-desc {
	font-family: var(--tpp-font-body);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}


/* ──────────────────────────────────────────────
   Closing CTA
   ────────────────────────────────────────────── */

.bac-next__close {
	margin-top: 44px;
	padding-top: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	text-align: center;
}

/* Sits below the section heading in the scale now that the heading carries
   the theme's own size. Still the largest thing in the closing half, which is
   what marks it as the line the page has been building to. */
.bac-next__ask {
	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.03em;
	color: var(--tpp-white);
	margin: 0 0 26px;
}

.bac-next__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 34px;
	border-radius: var(--tpp-radius-pill);
	background: var(--tpp-accent); /* orange key button, white until 29 Nov 2026 */
	border: 1.5px solid var(--tpp-accent);
	color: var(--tpp-black);
	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), background var(--tpp-transition);
}

/* :visited restated — this is a same-page anchor, so the browser marks it
   visited the moment it is used and would otherwise take the purple. */
.bac-next__cta:hover,
.bac-next__cta:visited,
.bac-next__cta:hover:visited,
.bac-next__cta:focus,
.bac-next__cta:active {
	color: var(--tpp-black);
}

.bac-next__cta:hover {
	background: var(--tpp-accent-dark);
	border-color: var(--tpp-accent-dark);
	box-shadow: 0 10px 30px rgba(255, 153, 0, 0.25);
}

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


/* ── Reveal, staggered behind the steps ── */

.bac-next__heading,
.bac-next__step,
.bac-next__close {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.bac-next.is-visible .bac-next__heading,
.bac-next.is-visible .bac-next__step,
.bac-next.is-visible .bac-next__close {
	opacity: 1;
	transform: translateY(0);
}

.bac-next.is-visible .bac-next__heading {
	transition-delay: 0.15s;
}

.bac-next.is-visible .bac-next__step {
	transition-delay: calc(0.25s + var(--step-index, 0) * 0.1s);
}

.bac-next.is-visible .bac-next__close {
	transition-delay: 0.6s;
}


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

@media (prefers-reduced-motion: reduce) {
	.bac-next__box,
	.bac-next__heading,
	.bac-next__step,
	.bac-next__step::before,
	.bac-next__close,
	.bac-next__cta {
		transition: none;
	}
}


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

/* Three across still holds here — the narrowest column is ~290px, and the
   longest label ("Get the Zoom link") needs far less. */
@media screen and (max-width: 991px) {
	.bac-next {
		padding: 0 0 80px;
	}

	.bac-next__box {
		padding: 44px 32px;
		border-radius: 20px;
	}

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

	.bac-next__steps {
		gap: 24px;
	}

	.bac-next__close {
		margin-top: 38px;
		padding-top: 34px;
	}
}


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

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

	.bac-next__box {
		padding: 36px 22px;
		border-radius: 18px;
	}

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

	/* Straight to one column — three columns on a phone leaves each about
	   100px, which none of the labels survive. Two would orphan the third.

	   The top rules stay, unlike .bt-process which closes each stacked step
	   into its own bordered card. That works on a white page; inside a dark
	   box it would be boxes within a box. Stacked, the rules read as list
	   dividers instead — the same idiom .bac-compare uses one section up when
	   its pair stacks. */
	.bac-next__steps {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.bac-next__number {
		font-size: 1.5rem;
		margin-bottom: 10px;
	}

	.bac-next__step-desc {
		font-size: 0.875rem;
	}

	.bac-next__close {
		margin-top: 32px;
		padding-top: 30px;
	}

	.bac-next__ask {
		margin-bottom: 22px;
	}

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


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

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

	.bac-next__box {
		padding: 30px 18px;
		border-radius: 16px;
	}

	.bac-next__steps {
		gap: 20px;
	}

	.bac-next__cta {
		padding: 14px 24px;
		font-size: 0.9rem;
	}
}
