@charset "UTF-8";
/* ==========================================================================
   Buying guide — the portal and the room behind it

   Only this page loads this sheet (see vuebee_assets()). Everything it needs
   from the design system comes through the tokens in type.css and main.css:
   no new colours, no new type sizes, no second accent.

   1. The portal
   2. The room
   3. The index and the six topics
   4. The closing band
   5. Narrow screens
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. The portal

   The section is `len` viewports tall; the pin inside it is one viewport and
   sticks. Scroll progress over the leftover height drives a camera that scales
   the word until one letter's counter fills the screen. The green is not a
   background on the pin — it is a background *clipped to the glyph*, so at rest
   the page shows five green letters on the canvas.

   Without JavaScript the clip is never transformed and the height never
   grows: the word sits where it was drawn, `--bgp-word` stays visible and the
   page is a plain hero. That is the fallback, not a broken state.
   -------------------------------------------------------------------------- */
.bgp {
	position: relative;
	background: var(--canvas);
}

/* JS adds this once it has measured the glyph. */
.bgp.is-live {
	height: calc(var(--bgp-len, 2.6) * 100svh);
}

.bgp__pin {
	position: sticky;
	top: 0;
	height: 100svh;
	overflow: clip;
	isolation: isolate;
	background: var(--canvas);
}

.bgp__art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

#bgp-glyph {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 100px;
	letter-spacing: 0;
	white-space: pre;
}

/* The room, seen through the letters. The gradient lands on the flat base at
   its bottom edge, which is exactly where `.gx` takes over — so the hand-off
   between the two surfaces is invisible. */
.bgp__field {
	position: absolute;
	inset: 0;
	background-color: #0b3b2a;
	background-image: radial-gradient(120% 108% at 44% 36%, #12503c 0%, #0c3c2b 54%, #0b3b2a 80%);
	clip-path: url(#bgp-clip);
	opacity: 0;
	transition: opacity 0.32s var(--ease);
}

.bgp[data-bgp-ready] .bgp__field {
	opacity: 1;
}

/* Drawn only until the clip takes over. */
.bgp__word {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	margin: 0;
	padding-inline: var(--pad);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(56px, 15vw, 200px);
	line-height: 1;
	letter-spacing: -0.04em;
	text-align: center;
	color: var(--brand);
}

.bgp[data-bgp-ready] .bgp__word {
	display: none;
}

.bgp__bar {
	position: absolute;
	inset: clamp(20px, 3vw, 40px) var(--pad) auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-size: var(--fs-12);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tip-muted);
	opacity: var(--bgp-fade, 1);
}

.bgp__label {
	color: var(--brand);
}

.bgp__eyebrow,
.bgp__support {
	position: absolute;
	left: var(--pad);
	right: var(--pad);
	margin: 0;
	text-align: center;
	opacity: var(--bgp-fade, 1);
	pointer-events: none;
}

.bgp__eyebrow {
	top: var(--bgp-word-top, 40%);
	transform: translateY(-100%);
	padding-bottom: clamp(16px, 2.4vh, 28px);
	font-size: var(--fs-12);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--brand);
}

.bgp__support {
	top: var(--bgp-word-bottom, 60%);
	padding-top: clamp(16px, 2.4vh, 28px);
	font-size: var(--fs-18);
	line-height: 1.5;
	color: var(--body-2);
	max-width: 46ch;
	margin-inline: auto;
}

/* One transparent button per character, laid over the glyph by the script.
   Hovering picks which letter the camera climbs into; clicking walks the
   reader in. Hidden on touch, where there is no hover and a mis-tap would
   throw the page two screens down. */
.bgp__letters {
	position: absolute;
	inset: 0;
	display: none;
	pointer-events: none;
}

@media (any-pointer: fine) {
	.bgp[data-bgp-ready] .bgp__letters {
		display: block;
	}
}

.bgp__letter {
	position: absolute;
	box-sizing: border-box;
	border: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	border-radius: 12px;
	cursor: pointer;
	pointer-events: auto;
	touch-action: pan-y;
	transition: box-shadow 0.2s var(--ease);
}

.bgp__letter:hover {
	box-shadow: inset 0 0 0 1.5px rgba(21, 62, 53, 0.28);
}

.bgp__letter:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 4px;
}

.bgp__caption {
	position: absolute;
	left: var(--pad);
	right: var(--pad);
	/* The pin is a full viewport tall but starts under the sticky header, so
	   at rest its last `--bgp-off` pixels are below the fold. The script
	   measures that amount; without it the "step inside" button would only
	   come into view after the reader had already started to scroll — which is
	   exactly when the row fades out. */
	bottom: calc(clamp(20px, 4vh, 44px) + var(--bgp-off, 0px));
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	opacity: var(--bgp-fade, 1);
}

.bgp.is-entering .bgp__caption {
	pointer-events: none;
}

.bgp__caption:focus-within {
	opacity: 1;
	pointer-events: auto;
}

.bgp__hint {
	font-size: var(--fs-12);
	letter-spacing: 0.06em;
	color: var(--tip-muted);
}

.bgp__enter {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	background: var(--brand);
	color: var(--surface);
	font-size: var(--fs-14);
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: background 0.18s var(--ease);
}

.bgp__enter:hover {
	background: var(--brand-hover);
}

.bgp__enter:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   2. The room
   -------------------------------------------------------------------------- */
/* The room is one surface of white type on green. Body copy, notes and the
   headings all sit at the same value: on a surface this dark a grey is not a
   hierarchy, it is a smudge — and the headings, which main.css paints with
   `--ink`, would otherwise vanish into the green entirely. Only the numerals
   and the rules keep a second tone. */
.gx {
	background: #0b3b2a;
	color: #f6f8f3;

	--gx-ink: #f6f8f3;
	--gx-ink-2: #f6f8f3;
	--gx-ink-3: rgba(246, 248, 243, 0.88);
	--gx-line: rgba(246, 248, 243, 0.17);
}

/* main.css gives every heading `color: var(--ink)` — a dark green. Inside the
   room that is the background colour. Hand the headings back to the surface. */
.gx :is(h1, h2, h3, h4) {
	color: var(--gx-ink);
}

.gx__room {
	position: relative;
	padding: clamp(64px, 11vh, 132px) 0 clamp(28px, 5vh, 56px);
}

/* A soft light in the middle of the room. Masked top and bottom so it never
   touches the edge the portal hands over on. */
.gx__room::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 88vh;
	pointer-events: none;
	background: radial-gradient(58% 52% at 50% 44%, rgba(104, 166, 137, 0.22), transparent 72%);
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 68%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 68%, transparent 100%);
}

/* The title is a sentence, not a stack of words: it takes the width it needs
   (up to ~19 characters per line at this size) instead of being squeezed into
   a 24ch column, which broke it into one word per line. */
.gx-intro {
	position: relative;
}

.gx-eyebrow {
	margin: 0 0 20px;
	font-size: var(--fs-12);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--brand-soft);
}

.gx-h1 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(var(--fs-32), 4.7vw, var(--fs-64));
	line-height: 1.06;
	letter-spacing: -0.02em;
	max-width: 19em;
	text-wrap: balance;
}

.gx-lede {
	max-width: 56ch;
	margin: 26px 0 0;
	font-size: var(--fs-20);
	line-height: 1.6;
	color: var(--gx-ink-2);
}

.gx-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 clamp(24px, 4vw, 56px);
	margin: clamp(44px, 7vh, 76px) 0 0;
	padding: 0;
	list-style: none;
}

.gx-fact {
	padding-top: 22px;
	border-top: 1px solid var(--gx-line);
}

.gx-fact__num {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--fs-32);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.gx-fact__label {
	margin: 8px 0 0;
	font-size: var(--fs-16);
	font-weight: 600;
	color: var(--gx-ink);
}

.gx-fact__text {
	margin: 8px 0 0;
	font-size: var(--fs-16);
	line-height: 1.6;
	color: var(--gx-ink-3);
}

/* --------------------------------------------------------------------------
   3. The index and the six topics
   -------------------------------------------------------------------------- */
.gx__topics {
	padding: clamp(56px, 9vh, 104px) 0 clamp(40px, 6vh, 72px);
}

.gx-grid {
	display: grid;
	grid-template-columns: minmax(0, 264px) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 88px);
	align-items: start;
}

.gx-index {
	position: sticky;
	top: calc(var(--nav-bottom, 64px) + 28px);
}

.gx-index__head {
	margin: 0 0 14px;
	font-size: var(--fs-12);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gx-ink-3);
}

.gx-index__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--gx-line);
}

.gx-index__link {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--gx-line);
	color: var(--gx-ink-2);
	transition: color 0.18s var(--ease);
}

.gx-index__link:hover,
.gx-index__link:focus-visible {
	color: var(--gx-ink);
}

.gx-index__link.is-current {
	color: var(--gx-ink);
}

.gx-index__num {
	font-size: var(--fs-12);
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--brand-soft);
}

.gx-index__title {
	display: block;
	font-size: var(--fs-16);
	font-weight: 600;
	line-height: 1.3;
}

.gx-index__note {
	display: block;
	margin-top: 3px;
	font-size: var(--fs-12);
	line-height: 1.4;
	color: var(--gx-ink-3);
}

.gx-index__count {
	font-size: var(--fs-12);
	color: var(--gx-ink-3);
}

.gx-group {
	scroll-margin-top: calc(var(--nav-bottom, 64px) + 24px);
}

.gx-group + .gx-group {
	margin-top: clamp(48px, 8vh, 88px);
}

.gx-group__head {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(246, 248, 243, 0.32);
}

.gx-group__num {
	margin: 0;
	flex: none;
	font-size: var(--fs-12);
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--brand-soft);
}

.gx-group__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--fs-28);
	line-height: 1.15;
	letter-spacing: -0.015em;
	/* The 22ch measure main.css puts on h2 is for prose headings; this one
	   sits on a rule between a numeral and a count. */
	max-width: none;
}

.gx-group__note {
	margin: 0 0 0 auto;
	font-size: var(--fs-14);
	color: var(--gx-ink-3);
	text-align: right;
}

/* Native <details>: the answer is in the document whether or not JavaScript
   ran, and find-in-page still sees it. Only the plus is animated. */
.gx-item {
	border-bottom: 1px solid var(--gx-line);
}

.gx-q {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	padding: 22px 0;
	cursor: pointer;
	list-style: none;
}

.gx-q::-webkit-details-marker {
	display: none;
}

.gx-q__text {
	font-size: var(--fs-18);
	font-weight: 600;
	line-height: 1.45;
	color: var(--gx-ink);
	transition: color 0.18s var(--ease);
}

.gx-q:hover .gx-q__text {
	color: #ffffff;
}

.gx-q:focus-visible {
	outline: 2px solid var(--brand-soft);
	outline-offset: 4px;
	border-radius: 4px;
}

/* The plus: two 1.6px bars, the vertical one folds away when open. */
.gx-sign {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
}

.gx-sign::before,
.gx-sign::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--brand-soft);
	transform: translate(-50%, -50%);
	transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}

.gx-sign::before {
	width: 16px;
	height: 1.6px;
}

.gx-sign::after {
	width: 1.6px;
	height: 16px;
}

.gx-item[open] .gx-sign::after {
	transform: translate(-50%, -50%) scaleY(0);
	opacity: 0;
}

.gx-item[open] .gx-sign::before {
	background: var(--gx-ink);
}

.gx-a {
	padding: 0 48px 26px 0;
	max-width: 66ch;
}

.gx-a p {
	margin: 0;
	font-size: var(--fs-18);
	line-height: 1.7;
	color: var(--gx-ink-2);
}

.gx-a p + p {
	margin-top: 12px;
}

.gx-a a {
	color: var(--brand-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. The closing band
   -------------------------------------------------------------------------- */
.gx__help {
	padding: 0 0 clamp(64px, 10vh, 120px);
}

.gx-help {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: clamp(28px, 5vw, 72px);
	padding-top: clamp(32px, 5vh, 56px);
	border-top: 1px solid var(--gx-line);
}

.gx-help__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--fs-28);
	line-height: 1.2;
	letter-spacing: -0.015em;
	max-width: none;
}

.gx-help__copy {
	max-width: 54ch;
	margin: 12px 0 0;
	font-size: var(--fs-16);
	line-height: 1.65;
	color: var(--gx-ink-2);
}

.gx-help__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gx-help__link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid rgba(246, 248, 243, 0.28);
	border-radius: 999px;
	font-size: var(--fs-14);
	font-weight: 600;
	color: var(--gx-ink);
	transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.gx-help__link:hover {
	background: rgba(246, 248, 243, 0.1);
	border-color: rgba(246, 248, 243, 0.5);
}

.gx-help__link:focus-visible {
	outline: 2px solid var(--brand-soft);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   5. Narrow screens
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
	.gx-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gx-index {
		display: none;
	}
}

@media (max-width: 880px) {
	.gx-group__head {
		flex-wrap: wrap;
		gap: 8px 14px;
	}

	.gx-group__note {
		flex-basis: 100%;
		margin: 0;
		text-align: left;
	}

	.gx-help {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 720px) {
	.gx-intro {
		max-width: none;
	}

	/* One step down: at 350px a 20px lede runs to five lines before the facts
	   arrive. */
	.gx-lede {
		font-size: var(--fs-18);
	}

	.gx-facts {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		margin-top: 40px;
	}

	.gx-fact {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: baseline;
		gap: 4px 16px;
		padding-top: 16px;
	}

	.gx-fact__num {
		grid-row: span 2;
		font-size: var(--fs-24);
	}

	.gx-fact__label,
	.gx-fact__text {
		margin-top: 0;
	}

	.gx-q {
		padding: 18px 0;
		gap: 20px;
	}

	.gx-q__text {
		font-size: var(--fs-16);
	}

	.gx-a {
		padding: 0 0 22px;
	}

	.bgp__support {
		font-size: var(--fs-16);
	}

	/* No hover on a phone: the hint would promise an interaction that is not
	   there. */
	.bgp__hint {
		display: none;
	}

	.bgp__caption {
		justify-content: flex-end;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bgp.is-live {
		height: auto;
	}

	.bgp__pin {
		position: relative;
	}

	.bgp__field,
	.bgp__letter,
	.gx-sign::before,
	.gx-sign::after {
		transition: none;
	}
}
