/*--------------------------------------------------------------
# Inner Circle — The Real Price
# "The real price" (concept 01 of
# ref-doc/homepage-window-seats-concepts.html) as a minimal slider,
# 30 Nov 2026: one airplane window with a member's photo behind the glass,
# a fare card pinned under it, the price as a two-line statement and the
# member's own words. Up to three members take turns with no arrows or
# dots: the shade comes down and lifts on the next one
# (js/inner-circle-real-price.js).
--------------------------------------------------------------*/

/* ── Section ──
   Bottom padding only on desktop: .ic-horizon above ends with its own
   120px, and .ic-parts below has no top padding, so this bottom is the gap
   before it. Below 992px the page-level rhythm in inner-circle-rhythm.css
   takes over (bottom-only, 88/72/56px). */
.ic-price {
	--ic-price-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ic-price-seat: 340px; /* the fare card's width; the window is 86% of it */
	--ic-price-gap: 88px;
	--ic-price-orange: #D97706; /* orange text on white for big headings, see .ic-price__title-line */

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

.ic-price__container {
	width: 100%;
	max-width: var(--tpp-container-max);
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
}

/* The window on the left, the words on the right */
.ic-price__inner {
	display: grid;
	grid-template-columns: var(--ic-price-seat) minmax(0, 1fr);
	gap: var(--ic-price-gap);
	align-items: center;
	max-width: 1060px;
	margin: 0 auto;
}


/* ──────────────────────────────────────────────
   The window
   The same object as the homepage's member seats: a cream frame, the
   glass, and a pull-down shade. At rest the shade sits lifted with its
   bottom edge and pull showing; between members it comes down over the
   glass (.is-changing) and the next photo is behind it when it lifts.
   ────────────────────────────────────────────── */

.ic-price__seat {
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: var(--ic-price-seat);
	justify-self: center;
}

/* A faint patch of sky behind the window */
.ic-price__seat::before {
	content: '';
	position: absolute;
	z-index: -1;
	inset: 2% -16% 18%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(102, 177, 249, 0.2), rgba(102, 177, 249, 0));
	pointer-events: none;
}

.ic-price__frame {
	position: relative;
	width: 86%;
	margin: 0 auto;
	aspect-ratio: 3 / 4.2;
	padding: 6%;
	border-radius: 9999px;
	background: linear-gradient(160deg, #F4F2EE, #DCD8D0);
	box-shadow:
		inset 0 2px 6px rgba(255, 255, 255, 0.9),
		inset 0 -6px 14px rgba(0, 0, 0, 0.12),
		0 20px 40px -24px rgba(0, 0, 0, 0.35);
}

.ic-price__glass {
	position: relative;
	height: 100%;
	border-radius: 9999px;
	overflow: hidden;
	isolation: isolate;
	background: #A8CDEF;
}

/* The bezel and the inner shadow sit over the photo and the shade */
.ic-price__glass::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
	box-shadow:
		inset 0 0 0 4px #CFCAC0,
		inset 0 10px 22px rgba(0, 0, 0, 0.26);
	pointer-events: none;
}

/* One photo per member, stacked; only the active one shows. The swap
   happens under the closed shade, so the fade is only a safety net. */
.ic-price__view {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.1);
	transition:
		opacity 0.3s ease,
		transform 0.3s ease;
}

.ic-price__view.is-active {
	opacity: 1;
}

/* It settles into place as the shade lifts on it */
.ic-price.is-visible .ic-price__view.is-active {
	transform: scale(1);
	transition:
		opacity 0.3s ease,
		transform 1.8s var(--ic-price-ease);
}

.ic-price__shade {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: repeating-linear-gradient(180deg, #ECE9E3 0 10px, #E2DED6 10px 11px);
	border-bottom: 6px solid #CFCAC0;
	transition: transform 1.1s var(--ic-price-ease);
}

/* The pull */
.ic-price__shade::after {
	content: '';
	position: absolute;
	bottom: 8px;
	left: 50%;
	width: 34px;
	height: 6px;
	margin-left: -17px;
	border-radius: 3px;
	background: #BDB7AB;
}

.ic-price.is-visible .ic-price__shade {
	transform: translateY(-88%);
}

/* Hovering lifts it all the way */
.ic-price.is-visible .ic-price__frame:hover .ic-price__shade {
	transform: translateY(-100%);
}

/* Between members it comes down over the glass (this wins over hover) */
.ic-price.is-visible.is-changing .ic-price__frame .ic-price__shade {
	transform: translateY(0);
	transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}


/* ──────────────────────────────────────────────
   The fare card, pinned under the window
   One card; each member's two rows are stacked in it, so the card keeps
   its size and only the words change. The first row reads quieter, and a
   cash price is struck through once it shows.
   ────────────────────────────────────────────── */

.ic-price__fares {
	position: relative;
	z-index: 5;
	display: grid;
	margin: -30px 0 0;
	padding: 14px 18px 15px;
	border-radius: 16px;
	background: var(--tpp-white);
	box-shadow:
		0 0 0 1px var(--tpp-border-light),
		0 20px 40px -22px rgba(26, 26, 26, 0.4);
	opacity: 0;
	transform: translateY(10px);
	transition:
		opacity 0.6s ease 0.5s,
		transform 0.8s var(--ic-price-ease) 0.5s;
}

.ic-price.is-visible .ic-price__fares {
	opacity: 1;
	transform: none;
}

.ic-price__fare {
	grid-area: 1 / 1;
	display: grid;
	gap: 6px;
	opacity: 0;
	transform: translateY(4px);
	transition:
		opacity 0.35s ease,
		transform 0.35s ease;
}

/* The timings overlap the shade's: the old words go as it comes down
   (gone by 0.5s), and the new ones come as soon as it starts lifting
   (the swap is at 0.65s), so the card is never empty for long */
.ic-price__fare.is-active {
	opacity: 1;
	transform: none;
	transition:
		opacity 0.5s ease 0.15s,
		transform 0.6s var(--ic-price-ease) 0.15s;
}

.ic-price.is-changing .ic-price__fare.is-active {
	opacity: 0;
	transition: opacity 0.35s ease 0.15s;
}

.ic-price__fare-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	white-space: nowrap;
}

/* The small uppercase label, in Inter like the site's other labels */
.ic-price__fare-label {
	font-family: var(--tpp-font-body);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tpp-text-light);
}

.ic-price__fare-value {
	font-family: var(--tpp-font-heading);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--tpp-black);
}

.ic-price__fare-row:first-of-type .ic-price__fare-value {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--tpp-text-light);
}

.ic-price__fare-value--cash {
	position: relative;
}

.ic-price__fare-value--cash::after {
	content: '';
	position: absolute;
	top: 54%;
	right: -3px;
	left: -3px;
	height: 2px;
	border-radius: 2px;
	background: var(--tpp-accent-ink);
	transform: scaleX(0);
	transform-origin: left;
}

.ic-price.is-visible .ic-price__fare.is-active .ic-price__fare-value--cash::after {
	transform: scaleX(1);
	transition: transform 0.6s var(--ic-price-ease) 1.1s;
}


/* ──────────────────────────────────────────────
   The words
   Every member's statement and quote sit in one grid cell, so the column
   is as tall as the longest and nothing below moves when they change. The
   one leaving lifts away softly as the shade comes down; the next one rises
   in, out of a slight blur, as it lifts.
   ────────────────────────────────────────────── */

.ic-price__copy {
	min-width: 0;
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.7s ease 0.15s,
		transform 0.9s var(--ic-price-ease) 0.15s;
}

.ic-price.is-visible .ic-price__copy {
	opacity: 1;
	transform: none;
}

.ic-price__slides {
	display: grid;
}

.ic-price__slide {
	grid-area: 1 / 1;
	align-self: center;
	margin: 0;
	opacity: 0;
	transform: translateY(12px);
	filter: blur(4px);
	pointer-events: none;
	transition:
		opacity 0.4s ease,
		transform 0.5s ease,
		filter 0.4s ease;
}

/* Overlapped with the shade like the fare card: out by 0.5s, the next one
   in from 0.7s */
.ic-price__slide.is-active {
	opacity: 1;
	transform: none;
	filter: none;
	pointer-events: auto;
	transition:
		opacity 0.7s ease 0.05s,
		transform 0.9s var(--ic-price-ease) 0.05s,
		filter 0.7s ease 0.05s;
}

.ic-price.is-changing .ic-price__slide.is-active {
	opacity: 0;
	transform: translateY(-8px);
	filter: blur(4px);
	transition:
		opacity 0.35s ease 0.15s,
		transform 0.45s ease 0.15s,
		filter 0.35s ease 0.15s;
}

/* The price, as a two-line statement. Each line is its own balanced block:
   Chrome won't balance text after a <br>, which leaves a lone word. Capped
   at 44px so every member's statement is two lines on desktop (at 48px
   Lisa's first line broke in two). */
.ic-price__title {
	margin: 0;
	font-family: var(--tpp-font-heading);
	font-size: clamp(1.875rem, 2.6vw + 0.75rem, 2.75rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--tpp-black);
}

.ic-price__title-line {
	display: block;
	text-wrap: balance;
}

/* The points price in orange (Anish, 30 Nov 2026). Not the button orange:
   #FF9900 on white is about 2.1:1, too faint to read. #D97706 is 3.2:1,
   enough for text this big (26px and up, so "large text"), and it still
   reads as orange; the site's --tpp-accent-ink (5:1) looked rust-brown
   here. Keep it to big headings: smaller orange text on white needs
   --tpp-accent-ink. */
.ic-price__title-line + .ic-price__title-line {
	color: var(--ic-price-orange);
}

/* The quote and who said it share one sky-blue rule down the left */
.ic-price__quote {
	margin: 26px 0 0;
	padding: 0 0 0 18px;
	border-left: 3px solid var(--tpp-sky);
}

.ic-price__quote p {
	max-width: 540px;
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--tpp-text);
}

.ic-price__who {
	margin: 0;
	padding: 12px 0 0 18px;
	border-left: 3px solid var(--tpp-sky);
	font-size: 0.875rem;
	color: var(--tpp-text-light);
}

.ic-price__who b {
	font-weight: 600;
	color: var(--tpp-black);
}

/* The button stays put while the members change. Orange with the black
   arrow circle (Anish, 30 Nov 2026), like the Facebook group's and the
   stats strip's join buttons on this page; black text on the orange. */
.ic-price__actions {
	margin-top: 32px;
}

.ic-price__cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 22px;
	border-radius: var(--tpp-radius-pill);
	background: var(--tpp-accent);
	font-family: var(--tpp-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.25s ease;
}

.ic-price__cta,
.ic-price__cta:visited,
.ic-price__cta:hover,
.ic-price__cta:focus,
.ic-price__cta:active {
	color: var(--tpp-black);
}

.ic-price__cta:hover {
	background: var(--tpp-accent-dark);
}

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

.ic-price__cta-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--tpp-black);
	color: var(--tpp-accent);
	transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ic-price__cta:hover .ic-price__cta-icon {
	transform: translateX(3px);
}

.ic-price__cta-icon svg {
	width: 15px;
	height: 15px;
}

.ic-price__fine {
	margin: 14px 0 0;
	font-size: 0.8125rem;
	color: var(--tpp-text-light);
}


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

@media screen and (max-width: 1199px) {
	.ic-price {
		--ic-price-seat: 310px;
		--ic-price-gap: 64px;
	}
}

/* Tablets: still side by side, a smaller window */
@media screen and (max-width: 991px) {
	.ic-price {
		--ic-price-seat: 280px;
		--ic-price-gap: 44px;
	}

	.ic-price__fare-value {
		font-size: 1.0625rem;
	}

	.ic-price__fare-row:first-of-type .ic-price__fare-value {
		font-size: 1rem;
	}

	.ic-price__quote p {
		font-size: 1rem;
	}
}

/* Phones: the window above the words */
@media screen and (max-width: 767px) {
	.ic-price {
		--ic-price-seat: 300px;
	}

	.ic-price__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	/* A smaller window, so it doesn't fill the screen */
	.ic-price__frame {
		width: 76%;
	}

	/* The sky patch stays inside the card's width here: wider, it pushed
	   past the screen edge below 480px and the page scrolled sideways */
	.ic-price__seat::before {
		inset: 2% 0 18%;
	}

	.ic-price__fare-value {
		font-size: 1.125rem;
	}

	.ic-price__title {
		font-size: clamp(1.625rem, 6.2vw + 0.25rem, 2.25rem);
	}

	.ic-price__quote {
		margin-top: 20px;
	}
}

@media screen and (max-width: 480px) {
	.ic-price__fares {
		padding: 12px 16px 13px;
	}

	.ic-price__fare-value {
		font-size: 1.0625rem;
	}

	.ic-price__fare-row:first-of-type .ic-price__fare-value {
		font-size: 1rem;
	}
}


/* ── Reduced motion: shown open from the start, and the first member
   stays (the script doesn't change them) ── */
@media (prefers-reduced-motion: reduce) {
	.ic-price__view,
	.ic-price__shade,
	.ic-price__fares,
	.ic-price__fare,
	.ic-price__copy,
	.ic-price__slide,
	.ic-price.is-visible .ic-price__view.is-active,
	.ic-price.is-visible .ic-price__fare.is-active .ic-price__fare-value--cash::after,
	.ic-price__cta-icon {
		transition: none;
	}

	.ic-price__view,
	.ic-price__fares,
	.ic-price__copy,
	.ic-price__slide {
		transform: none;
	}

	.ic-price__slide {
		filter: none;
	}
}
