/*--------------------------------------------------------------
# Book a Call — Wallet Fan
# Five cards fanned like a hand, one per type of card everybody
# carries. Pick one and it lifts out with a sheen, and the question
# worth bringing about it appears underneath.
--------------------------------------------------------------*/

/* ── Section ──
   Bottom padding only, like the rest of the white run: .bac-prep above
   supplies the gap over this, and .bac-compare below has no top padding. */
.bac-wallet {
	/* The theme loads no monospace font; the same system stack the other
	   Book a Call sections use. */
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
	--spring: cubic-bezier(0.34, 1.56, 0.64, 1);

	background: var(--tpp-white);
	padding: 0 0 100px;
}

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

.bac-wallet__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-black);
	margin: 0 0 24px;
}

/* clip, not hidden: the outer cards may poke past the sides on narrow
   screens, and clip trims them without making a scroll container. */
.bac-wallet__fan {
	overflow-x: clip;
	text-align: center;
}


/* ──────────────────────────────────────────────
   The hand of cards
   ────────────────────────────────────────────── */

.bac-wallet__hand {
	position: relative;
	width: min(100%, 700px);
	height: 330px;
	margin: 0 auto;
}

/* Each card turns about a point well below it, which is what spreads them
   into a fan. Two classes on the button rules: style.css styles every
   <button>, at one class plus an element. */
.bac-wallet .bac-wallet__card {
	position: absolute;
	z-index: var(--i);
	left: 50%;
	bottom: 10px;
	width: 250px;
	height: 158px;
	margin: 0 0 0 -125px;
	padding: 0;
	border: 0;
	border-radius: 13px;
	background: none;
	cursor: pointer;
	transform-origin: 50% 250%;
	transform: rotate(calc((var(--i) - 2) * 11deg));
}

/* Once js/book-a-call-wallet.js arms the section, the cards wait in a stack
   until the hand scrolls into view, then spread. No transition on the arming
   itself, so the stack never visibly closes; the spread is animated. */
.bac-wallet.is-armed:not(.is-open) .bac-wallet__card {
	transform: rotate(0deg) translateY(24px);
}

.bac-wallet.is-open .bac-wallet__card {
	transition: transform 0.9s var(--spring);
	transition-delay: calc(var(--i) * 60ms);
}

.bac-wallet .bac-wallet__card[aria-pressed="true"] {
	z-index: 10;
}

.bac-wallet .bac-wallet__card:focus-visible {
	outline: none;
}

.bac-wallet__face {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	border-radius: 13px;
	text-align: left;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		0 18px 30px -18px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(0, 0, 0, 0.06);
	transition: transform 0.45s var(--spring), box-shadow 0.3s ease;
}

.bac-wallet__card:hover .bac-wallet__face {
	transform: translateY(-12px);
}

.bac-wallet__card[aria-pressed="true"] .bac-wallet__face {
	transform: translateY(-30px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		0 32px 44px -20px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(0, 0, 0, 0.06);
}

.bac-wallet__card:focus-visible .bac-wallet__face {
	box-shadow: 0 0 0 3px var(--tpp-white), 0 0 0 5px var(--tpp-black);
}

/* One pass of light across the card when it's picked or hovered */
.bac-wallet__face::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.4) 45%, transparent 60%);
	transform: translateX(-130%);
	transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

.bac-wallet__card:hover .bac-wallet__face::after,
.bac-wallet__card[aria-pressed="true"] .bac-wallet__face::after {
	transform: translateX(130%);
}

/* Finishes: no card art, just the material */
.bac-wallet__face--pearl {
	background: linear-gradient(135deg, #FFFFFF, #F1EFEA 60%, #E4E0D7);
	color: #3A3A3A;
}

.bac-wallet__face--silver {
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 3px),
		linear-gradient(135deg, #EDEDED, #C9C9C9 38%, #F2F2F2 56%, #B8B8B8);
	color: #262626;
}

.bac-wallet__face--black {
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px),
		linear-gradient(135deg, #303030, #111);
	color: #DCDCDC;
}

.bac-wallet__face--graphite {
	background: linear-gradient(135deg, #5B5B5B, #3B3B3B);
	color: rgba(255, 255, 255, 0.72);
}

.bac-wallet__face--accent {
	background: linear-gradient(135deg, #FFC266, var(--tpp-accent) 50%, var(--tpp-accent-dark));
	color: var(--tpp-black);
}

.bac-wallet__chip {
	position: absolute;
	left: 18px;
	top: 52px;
	width: 38px;
	height: 28px;
	border-radius: 6px;
	background: linear-gradient(135deg, #ECECEC, #A7A7A7);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.bac-wallet__chip::before {
	content: '';
	position: absolute;
	inset: 7px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.2);
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.bac-wallet__chip::after {
	content: '';
	position: absolute;
	inset: 0 13px;
	border-left: 1px solid rgba(0, 0, 0, 0.2);
	border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.bac-wallet__nfc {
	position: absolute;
	left: 66px;
	top: 56px;
	width: 20px;
	height: 20px;
	opacity: 0.55;
}

.bac-wallet__dots {
	position: absolute;
	left: 18px;
	bottom: 40px;
	font-family: var(--mono);
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	opacity: 0.55;
}

.bac-wallet__name {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 16px;
	font-family: var(--mono);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* The one you're eyeing carries a big faint question mark */
.bac-wallet__ask {
	position: absolute;
	right: 18px;
	top: 6px;
	font-family: var(--tpp-font-heading);
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 1;
	opacity: 0.2;
}


/* ──────────────────────────────────────────────
   The question underneath
   ────────────────────────────────────────────── */

/* A fixed minimum height, so a longer question doesn't push the button down */
.bac-wallet__read {
	max-width: 620px;
	min-height: 132px;
	margin: 30px auto 0;
}

.bac-wallet__kicker {
	font-family: var(--mono);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tpp-text-light);
}

.bac-wallet__question {
	margin: 10px 0 0;
	font-family: var(--tpp-font-heading);
	font-size: clamp(1.5rem, 2.4vw + 0.5rem, 2.125rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.025em;
	color: var(--tpp-black);
}

.bac-wallet__read.is-swapping .bac-wallet__kicker,
.bac-wallet__read.is-swapping .bac-wallet__question {
	animation: bac-wallet-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bac-wallet-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}


/* ── CTA ──
   Colour restated for every link state: style.css sets :visited, :hover,
   :focus and :active to color: inherit. */
.bac-wallet__cta,
.bac-wallet__cta:visited,
.bac-wallet__cta:hover,
.bac-wallet__cta:focus,
.bac-wallet__cta:active {
	color: var(--tpp-white);
}

.bac-wallet__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 18px;
	padding: 15px 30px;
	border-radius: var(--tpp-radius-pill);
	background: var(--tpp-black);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.25s ease;
}

.bac-wallet__cta:hover,
.bac-wallet__cta:focus-visible {
	background: var(--tpp-dark);
}

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


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

@media (prefers-reduced-motion: reduce) {
	.bac-wallet.is-open .bac-wallet__card,
	.bac-wallet__face,
	.bac-wallet__face::after,
	.bac-wallet__cta {
		transition: none;
	}

	.bac-wallet__read.is-swapping .bac-wallet__kicker,
	.bac-wallet__read.is-swapping .bac-wallet__question {
		animation: none;
	}
}


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

/* Tablet (≤991px) */
@media screen and (max-width: 991px) {
	.bac-wallet {
		padding: 0 0 80px;
	}
}

/* Mobile (≤767px) — a tighter fan of smaller cards */
@media screen and (max-width: 767px) {
	.bac-wallet {
		padding: 0 0 72px;
	}

	.bac-wallet__hand {
		height: 260px;
	}

	.bac-wallet .bac-wallet__card {
		width: 190px;
		height: 120px;
		margin-left: -95px;
		transform: rotate(calc((var(--i) - 2) * 9deg));
	}

	.bac-wallet__chip {
		top: 38px;
		width: 30px;
		height: 22px;
	}

	.bac-wallet__nfc {
		left: 56px;
		top: 41px;
		width: 16px;
		height: 16px;
	}

	.bac-wallet__dots {
		bottom: 32px;
		font-size: 0.6875rem;
	}

	.bac-wallet__name {
		bottom: 12px;
		font-size: 0.5625rem;
	}

	.bac-wallet__ask {
		font-size: 2.5rem;
	}

	.bac-wallet__read {
		min-height: 120px;
	}
}

/* Small mobile (≤480px) */
@media screen and (max-width: 480px) {
	.bac-wallet {
		padding: 0 0 56px;
	}

	.bac-wallet__hand {
		height: 220px;
	}

	.bac-wallet .bac-wallet__card {
		width: 160px;
		height: 101px;
		margin-left: -80px;
		transform-origin: 50% 230%;
		transform: rotate(calc((var(--i) - 2) * 7deg));
	}

	.bac-wallet__dots {
		display: none;
	}

	.bac-wallet__chip {
		left: 14px;
		top: 30px;
		width: 26px;
		height: 19px;
	}

	.bac-wallet__nfc {
		left: 48px;
		top: 32px;
	}

	.bac-wallet__name {
		left: 14px;
		right: 14px;
	}

	.bac-wallet__read {
		min-height: 112px;
	}
}
