/**
 * Board review pricing configurator.
 *
 * Everything is scoped to .bb-pricing. The page sits inside the client's own theme, next
 * to Elementor and forty-odd other plugins, so nothing here is allowed to reach an
 * element it does not own.
 *
 * Values are the design's, measured off the Figma frames rather than eyeballed. Where a
 * number looks oddly precise (16.5px, 13.5px) it is because the design uses it.
 */

/**
 * The site sets `overflow-x: hidden` on `html, body` in a WPCodeBox snippet. An overflow
 * other than visible makes an element a scroll container, and a sticky element positions
 * itself against its nearest scrolling ancestor rather than the viewport — so the pinned
 * panel would stop pinning.
 *
 * `clip` stops horizontal scrolling exactly as `hidden` does but creates no scroll
 * container, so the pin survives. Scoped to this page so nothing else on the site changes.
 */
html.bb-pricing-template,
body.bb-pricing-template {
	overflow-x: clip;
}

/**
 * Tokens sit on the page root rather than on .bb-pricing because the modal is a sibling
 * of it, not a descendant — <dialog> is moved to the browser's top layer when it opens,
 * but its place in the tree, and so what it inherits, is wherever it was written.
 */
html.bb-pricing-template {
	--bb-navy: #1e174d;          /* selected borders and links */
	--bb-navy-deep: #0a0726;     /* the hover step under the pills and the Gravity Forms button */
	--bb-navy-brand: #262262;    /* the brand navy — the call to action, and the icon lockups */
	--bb-periwinkle: #8e9bd1;    /* hover borders */
	--bb-caption: #aec0c4;       /* the audience micro-labels */
	--bb-ink: #111111;           /* headings, labels, totals */
	--bb-text: #171717;          /* body copy */
	--bb-grey-mid: #8a8a8a;
	--bb-line: #dcdcdc;
	--bb-line-soft: #eaeaea;
	--bb-card-grey: #f4f4f4;
	--bb-sandy: #f7f5f2;
	--bb-sandy-line: #e4dfda;
	--bb-icon: #1d1f1f;          /* the fill Anthony's exports carry */

	--bb-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--bb-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	/*
	 * Matched to the theme's own container, measured rather than guessed: its `.e-con-inner`
	 * is `max-width: 1440px`, and its logo sits 35px inside that. Those two numbers put our
	 * content on exactly the same left edge as the site header at every width — verified at
	 * 1280px and 1600px.
	 *
	 * The options column is `flex: 0 0 var(--bb-col-w)` and the panel is `flex: 1 1 auto`,
	 * so every pixel this gains goes to the image and none of it to the choices. That is
	 * the whole reason widening the page is the right lever here.
	 */
	--bb-page: 1440px;
	--bb-edge: 35px;
	--bb-col-w: 430px;
	--bb-gutter: 80px;

	/* The step rail, measured off Apple's: a 4px column on an 18px pitch, held 30px in
	   from the right edge of the window. */
	--bb-rail-w: 4px;
	--bb-rail-pitch: 18px;
	--bb-rail-edge: 30px;

	/* Room under the last question so it can reach the middle of the window rather than
	   stopping at the fold. The rail stops the same distance short, so it lets go where the
	   reader's work ends rather than hanging in the space below it. One number because it is
	   one decision — they were briefly two, and a rail pinned through 400px of nothing is
	   what that looked like. */
	--bb-tail: 40vh;

	/* Measured in the browser: where the panel comes to rest under the pricing header.
	   It depends on the rendered height of the image, which depends on the column width,
	   so it cannot be expressed in CSS. The fallback is what the page looks like before
	   the script runs. */
	--bb-pin-top: 32px;
}

.bb-pricing,
dialog.bb-modal {
	box-sizing: border-box;
	color: var(--bb-text);
	font-family: var(--bb-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
}

dialog.bb-modal *,
dialog.bb-modal *::before,
dialog.bb-modal *::after {
	box-sizing: inherit;
}

.bb-pricing *,
.bb-pricing *::before,
.bb-pricing *::after {
	box-sizing: inherit;
}

/* An option card is display:block, which would otherwise beat the UA's rule for the
   hidden attribute and leave the off-tier surveys on the page. */
.bb-pricing [hidden] {
	display: none !important;
}

.bb-pricing .bb-sr-only {
	border: 0;
	clip-path: inset(50%);
	/*
	 * Seven of the eight of these are `<legend>`, and the theme sets `legend { display:
	 * table }`. A table box never resolves narrower than its own min-content, so the
	 * `width` and `height` below were being ignored and each one laid out at its full
	 * rendered size — clipped, so invisible, but not the 1px box the rest of this rule
	 * assumes.
	 */
	display: block;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.bb-pricing .bb-pricing__hero,
.bb-pricing .bb-pricing__layout {
	margin: 0 auto;
	max-width: var(--bb-page);
	padding-left: var(--bb-edge);
	padding-right: var(--bb-edge);
}

/**
 * The two pinned rows are deliberately NOT in the rule above.
 *
 * The page is a centred column, but the header is not part of that column: it is chrome,
 * and the site's own header runs its rules edge to edge. Constraining these rows to
 * `--bb-page` stopped both borders short of each side and put the cloned logo further in
 * than the one it is meant to replace. (Measured at the time against a 1240px page: 180px
 * short each side and 109px of logo drift at a 1600px viewport. The page is wider now, so
 * the numbers are smaller and the reason is unchanged.)
 *
 * So the rows span the viewport and carry the inset as padding instead. `--bb-bar-inset`
 * is written by pricing.js from the theme logo's measured left edge.
 *
 * The fallback covers two states, not one: no logo was found to measure, and a logo was
 * found whose position is not believable as a header inset (a restacked mobile header).
 * In both, this value is the better answer than the measurement.
 */
.bb-pricing .bb-pricing__bar-main,
.bb-pricing .bb-pricing__bar-prompt {
	padding-left: var(--bb-bar-inset, var(--bb-edge));
	padding-right: var(--bb-bar-inset, var(--bb-edge));
}

/* ─────────────────────────── The pricing header ─────────────────────────── */

/**
 * The design pins this, not the site's own header.
 *
 * It is fixed rather than sticky because it has to come *out* of the page: at rest the
 * client's header is on screen and this is not, and the two swap the moment the theme
 * pins its own row. pricing.js drives the swap and hides the theme's pinned row while
 * this is up, so the reader is never looking at two pinned headers.
 *
 * z-index clears Elementor's sticky header, which sits at 9999.
 */
.bb-pricing .bb-pricing__bar {
	background: #fff;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	transform: translateY(-100%);
	transition: transform 0.28s ease, visibility 0s linear 0.28s;
	visibility: hidden;
	z-index: 10000;
}

.bb-pricing.is-bar-visible .bb-pricing__bar {
	transform: none;
	transition: transform 0.28s ease, visibility 0s;
	visibility: visible;
}

.bb-pricing .bb-pricing__bar-main {
	align-items: center;
	border-bottom: 1px solid var(--bb-line-soft);
	display: flex;
	gap: 24px;
	height: 68px;
}

/**
 * Filled with a clone of the theme's own logo widget, so whatever Elementor renders in
 * the site header renders here.
 *
 * `pricing.js` puts the header copy's measured width and aspect ratio on this element as
 * inline styles; everything below simply fills it. Sizing the slot rather than the `<svg>`
 * is what keeps Elementor's own wrappers — which the clone cannot style, because their CSS
 * names an ancestor it no longer has — from sitting at a fallback width the artwork
 * overhangs.
 */
.bb-pricing .bb-pricing__brand {
	/*
	 * Never grows; shrinks only as far as the bar makes it. Shrinking is safe *because*
	 * the basis is an explicit measurement rather than the logo's own content — the
	 * earlier `flex: none` was guarding against a box sized from the logo, where the
	 * lockup's max-width resolved against itself and cropped its second word.
	 */
	flex: 0 1 auto;
	min-width: 0;
}

/* The whole cloned widget chain fills the slot, so no level of it can be the one that
   decides the width. */
.bb-pricing .bb-pricing__brand > *,
.bb-pricing .bb-pricing__brand .elementor-icon-wrapper,
.bb-pricing .bb-pricing__brand .elementor-icon {
	display: block;
	height: 100%;
	width: 100%;
}

.bb-pricing .bb-pricing__brand img,
.bb-pricing .bb-pricing__brand svg {
	display: block;
	height: 100%;
	max-width: 100%;
	width: 100%;
}

.bb-pricing .bb-pricing__bar-total {
	align-items: baseline;
	color: var(--bb-ink);
	display: flex;
	/* The figure is the one thing in the bar that must never wrap or be shaved, so the
	   brand beside it is what gives when the two do not both fit. */
	flex: none;
	gap: 14px;
	margin: 0 0 0 auto;
}

.bb-pricing .bb-pricing__bar-label {
	font-size: 20px;
}

.bb-pricing .bb-pricing__bar-amount {
	font-size: 30px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.bb-pricing .bb-pricing__bar-gst {
	font-size: 15px;
	font-weight: 600;
	margin-left: -10px;
}

.bb-pricing .bb-pricing__bar-prompt {
	align-items: center;
	border-bottom: 1px solid var(--bb-line-soft);
	color: var(--bb-ink);
	display: flex;
	font-size: 14.5px;
	gap: 6px;
	height: 44px;
	justify-content: flex-end;
}

/* ─────────────────────────── Hero ─────────────────────────── */

.bb-pricing .bb-pricing__hero {
	/* A row so the currency control can sit beside the heading, as the design has it.
	   `flex-end`: the control sits on the heading's baseline rather than up beside the
	   eyebrow. Top-aligning it left it floating against the kicker, which reads as two
	   unrelated elements rather than one row. */
	align-items: flex-end;
	display: flex;
	gap: 32px;
	padding-bottom: 0;
	padding-top: 58px;
}

.bb-pricing .bb-pricing__hero-heading {
	/* Allowed to shrink, and allowed to wrap. The control beside it does neither. */
	min-width: 0;
}

/* The currency control. Shaped like the design's button; a native select underneath, so it
   is keyboard-operable and announced without any of that having to be rebuilt. Every rule
   is scoped `.bb-pricing .bb-…` like the rest of this file, because the theme styles bare
   form controls hard. It carries a `hidden` attribute until the script has rates —
   `.bb-pricing [hidden]` above already forces it out of flow. */
.bb-pricing .bb-pricing__currency {
	/* inline-flex, not flex: as a block it fills the row once the hero stacks at narrow
	   widths, and the select inside it stretches to match. Shrink-wrapping is what the
	   design's button does at every width. */
	display: inline-flex;
	/* Pushed to the end of the row rather than the heading being stretched to fill it. */
	flex: 0 0 auto;
	margin-left: auto;
}

/* Visually hidden: the design shows no label. Hidden rather than removed, because
   `display: none` would take the select's accessible name with it and leave a control that
   announces only "AUD" with no indication of what it changes. */
.bb-pricing .bb-pricing__currency-label {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/*
 * Drawn to the Figma: Inter 500 at 16px on a 100% line height, brand navy on white inside a
 * 10px-radius hairline, with the design's own chevron on the right.
 *
 * `appearance: none` removes the platform's arrow so the supplied one can take its place.
 * That is the only reason it is here — everything else about the control stays native, so
 * it opens with the keyboard, announces itself, and uses the OS picker on a phone. Redrawing
 * it as a button and a list would mean rebuilding all of that by hand for no visual gain.
 *
 * The chevron's stroke is #262262 written out inside the data URI rather than referencing
 * --bb-navy-brand: a custom property cannot be interpolated into a URL. If the brand navy
 * changes, this changes with it.
 */
.bb-pricing .bb-pricing__currency-select {
	appearance: none;
	background-color: #fff;
	background-image: url("data:image/svg+xml,<svg%20width=%2213%22%20height=%228%22%20viewBox=%220%200%2013%208%22%20fill=%22none%22%20xmlns=%22http://www.w3.org/2000/svg%22><path%20d=%22M0.672852%200.739746L6.17285%205.73975L11.6729%200.739746%22%20stroke=%22%23262262%22%20stroke-width=%222%22/></svg>");
	background-position: right 16px center;
	background-repeat: no-repeat;
	/* The intrinsic 13x8 of the supplied file, so it is drawn at the size it was drawn at. */
	background-size: 13px 8px;
	border: 1px solid var(--bb-line);
	border-radius: 10px;
	color: var(--bb-navy-brand);
	font-family: var(--bb-sans);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1;
	/* 12px top and bottom against a 16px line gives the 42px height the design draws. The
	   right side carries the chevron's 13px plus its 16px inset plus the gap beside it. */
	padding: 12px 45px 12px 16px;
}

.bb-pricing .bb-pricing__currency-select:hover {
	border-color: var(--bb-navy-brand);
}

.bb-pricing .bb-pricing__currency-select:focus-visible {
	outline: 2px solid var(--bb-navy-brand);
	outline-offset: 2px;
}

.bb-pricing .bb-pricing__kicker {
	color: var(--bb-grey-mid);
	font-size: 12.5px;
	letter-spacing: 0.16em;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.bb-pricing .bb-pricing__title {
	color: var(--bb-ink);
	font-family: var(--bb-serif);
	font-size: 52px;
	font-weight: 400;
	letter-spacing: -0.015em;
	line-height: 1.06;
	margin: 0;
}

/* ─────────────────────────── Two columns ─────────────────────────── */

.bb-pricing .bb-pricing__layout {
	/* A sticky child cannot slide within a parent that stretches it to full height,
	   which is the single most common way this layout is got wrong. */
	align-items: flex-start;
	display: flex;
	gap: var(--bb-gutter);
	padding-top: 44px;
	/* The step rail is absolutely positioned against this. */
	position: relative;
}

/* ─────────────────────────── The step rail ─────────────────────────── */

/**
 * One faint dot per section, and a solid bar that grows to join the answered ones.
 *
 * Modelled on Apple's buy-flow configurator, measured from it: a 4px column, 4px dots on
 * an 18px pitch, the dots at 0.16 opacity and the bar at full, and `height` transitioned
 * over 0.3s. The single most important thing copied is what drives it — **the selections
 * made, not the scroll position.** Apple's indicator does not move at all as you scroll.
 *
 * Sits in the layout's own right padding rather than in a column of its own, so it costs
 * the content nothing. Hidden below 1180px, where that padding is needed for the content
 * and the two-column layout has already collapsed.
 */
.bb-pricing .bb-pricing__rail {
	/* Stops where the reader's work does — the same tail the column below reserves. */
	bottom: var(--bb-tail);
	position: absolute;
	/*
	 * Out at the edge of the window, not tucked against the options column.
	 *
	 * This element lives inside the centred container, so the obvious `right` can only ever
	 * place it within that container's own 35px padding — which on a wide screen leaves the
	 * whole 144px of margin beyond it empty. Measured at 1728px, that put the rail 160px in
	 * from the edge and 16px off the column. Apple's is 30px from the edge and 74px off
	 * their column: the same two numbers the other way round.
	 *
	 * The second expression reaches past the container by half the difference between the
	 * window and the container, less the inset we want. `min()` is what keeps it honest
	 * below that width, where the difference goes negative and there is no room outside the
	 * container to reach into — there the first expression wins, which is where the rail
	 * has always sat.
	 *
	 * 100vw counts a classic scrollbar where the content box does not, so on a browser that
	 * always shows one the second expression resolves half a scrollbar short and the rail
	 * lands about 22px in from the content edge rather than 30. That is an error of eight
	 * pixels in thirty, it moves the rail away from the scrollbar rather than under it, and
	 * measuring the content width in script to correct it would buy nothing anyone can see.
	 */
	right: min(
		calc((var(--bb-edge) - var(--bb-rail-w)) / 2),
		calc((var(--bb-page) - 100vw) / 2 + var(--bb-rail-edge))
	);
	top: 0;
	width: var(--bb-rail-w);
}

/*
 * The lead-in above the first dot is deliberate, and it is what makes the resting state
 * possible. Measured off Apple: their track is 126px for seven dots on an 18px pitch —
 * exactly seven pitches — which puts the first dot one pitch below the top rather than at
 * it. The bar is then a plain answered-of-total proportion of that track, so the first
 * answer reaches the first dot and the last one reaches the bottom.
 *
 * Anchoring the track to the first dot instead would cost the last step its movement: with
 * five dots, a bar that reached dot N+1 would already be full at four of five.
 *
 * Pinned by its centre, which sticky cannot do directly — it holds an edge, so the edge is
 * chosen to put the centre in the middle of the window. The track is exactly one pitch per
 * dot (see above), and the template hands over the count, which is the one part of that
 * arithmetic CSS cannot work out for itself.
 *
 * This replaced a viewport-tall flex box that centred the steps inside itself. It looked
 * equivalent and was not: a sticky element cannot rise above its own container, so that box
 * began where the layout begins — measured at 313px down a 997px window — and centred the
 * steps in a frame already half off the screen. Sticky moves an element *down* to meet its
 * offset, which is exactly the behaviour that was missing.
 */
.bb-pricing .bb-pricing__rail-steps {
	padding-top: calc(var(--bb-rail-pitch) - var(--bb-rail-w));
	position: sticky;
	top: calc(50vh - (var(--bb-rail-pitch) * var(--bb-rail-steps, 5)) / 2);
	width: var(--bb-rail-w);
}

.bb-pricing .bb-pricing__rail-dot {
	background: var(--bb-navy-brand);
	border-radius: 50%;
	display: block;
	height: var(--bb-rail-w);
	opacity: 0.16;
	width: var(--bb-rail-w);
}

.bb-pricing .bb-pricing__rail-dot + .bb-pricing__rail-dot {
	margin-top: calc(var(--bb-rail-pitch) - var(--bb-rail-w));
}

/*
 * The bar that joins them. Height is written by pricing.js in pixels, because the geometry
 * is known exactly — a percentage would land between dots at most counts.
 *
 * `min-height` is the resting state: with nothing answered the bar is one dot tall, sitting
 * in the lead-in above the first dot, so the rail opens with a mark on it rather than
 * blank. Apple's own indicator does this — at `height: 0%` it still paints 4px.
 */
.bb-pricing .bb-pricing__rail-fill {
	background: var(--bb-navy-brand);
	border-radius: var(--bb-rail-w);
	display: block;
	height: 0;
	left: 0;
	min-height: var(--bb-rail-w);
	position: absolute;
	top: 0;
	transition: height 0.3s ease-in-out;
	width: var(--bb-rail-w);
}

@media (prefers-reduced-motion: reduce) {
	.bb-pricing .bb-pricing__rail-fill {
		transition: none;
	}
}

.bb-pricing .bb-pricing__panel {
	flex: 1 1 auto;
	min-width: 0;
	position: sticky;
	top: var(--bb-pin-top);
}

/**
 * Sticky can only pin an edge, so the panel's centre is pinned by choosing the right
 * `top`: half the space left under the header. Above that scroll point the panel simply
 * sits where it falls in flow, up beside the heading, which is the at-rest position the
 * design shows.
 */
.bb-pricing .bb-pricing__stage {
	aspect-ratio: 1100 / 790;
	/*
	 * Written by pricing.js from the height the window actually has under the pinned
	 * header. Unset on a tall window, where the panel's own width is the smaller number
	 * and this does nothing. `margin-inline: auto` only has an effect once the cap bites,
	 * and centring is the right treatment then — the alternative is a shrunken image with
	 * a hole beside it.
	 */
	margin-inline: auto;
	max-width: var(--bb-stage-max, none);
	position: relative;
	width: 100%;
}

.bb-pricing .bb-pricing__frame {
	height: 100%;
	inset: 0;
	object-fit: contain;
	opacity: 0;
	position: absolute;
	transition: opacity 0.55s ease;
	width: 100%;
}

.bb-pricing .bb-pricing__frame.is-active {
	opacity: 1;
}

.bb-pricing .bb-pricing__column {
	flex: 0 0 var(--bb-col-w);
	/* Room for the last section to reach the middle of the viewport rather than
	   stopping at the fold. Shared with the rail, which stops short by the same amount. */
	padding-bottom: var(--bb-tail);
	width: var(--bb-col-w);
}

/* ─────────────────────────── Sections ─────────────────────────── */

/**
 * The space between sections is load-bearing: it is what stops a few pixels of scroll
 * flicking the pinned image between two break points.
 */
/*
 * 80px as drawn, then 112px, now 160px — Anthony's 2026-09-02 note, which puts it at
 * roughly Apple's pacing between settings.
 *
 * Stepped back down at the narrow breakpoints below. The reason for the gap is that a
 * pinned image needs room to change between one choice and the next; below 940px the panel
 * is not pinned at all, so the same number buys nothing and costs a lot of thumb.
 */
.bb-pricing .bb-pricing__section {
	padding-bottom: 160px;
}

.bb-pricing .bb-pricing__section:last-of-type {
	padding-bottom: 56px;
}

.bb-pricing .bb-pricing__heading {
	color: var(--bb-ink);
	font-family: var(--bb-sans);
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.012em;
	line-height: 1.2;
	margin: 0 0 8px;
}

.bb-pricing .bb-pricing__lede {
	color: var(--bb-text);
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 20px;
	max-width: 44ch;
}

.bb-pricing .bb-pricing__group {
	border: 0;
	margin: 0;
	min-width: 0;
	padding: 0;
}

/* ─────────────────────────── Option cards ─────────────────────────── */

.bb-pricing .bb-option {
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 8px;
	cursor: pointer;
	display: block;
	margin-bottom: 20px;
	padding: 28px 22px 26px;
	position: relative;
	/* opacity is in the list because the gate locks and unlocks sections mid-visit, not only
	   at first paint. Without it a section snaps between dimmed and live as the reader
	   answers the question above it. */
	transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.bb-pricing .bb-option:hover {
	border-color: var(--bb-periwinkle);
}

/* ─────────────────────── Sections the gate holds shut ─────────────────────── */

/**
 * Dimmed, and only the cards.
 *
 * The section keeps its heading, its lede and its "see what is included" triggers at full
 * contrast, because looking ahead is the point of the scroll — the gate decides what can be
 * chosen, not what can be read. Scoping this to `.bb-option` rather than to the section is
 * what keeps those triggers out of it.
 *
 * No `pointer-events: none` anywhere either: the inputs carry `disabled`, which already makes
 * the wrapping label inert, and a blanket rule would take the modal triggers with it. Which
 * leaves `cursor` needing pointer events to show at all — the reason for doing it this way
 * round rather than the other.
 */
.bb-pricing .bb-pricing__section.is-locked .bb-option {
	cursor: not-allowed;
	opacity: 0.45;
}

/* An affordance on an inert control is a lie. Without this a locked card still lights its
   border under the cursor, having been given a hover a few rules above. */
.bb-pricing .bb-pricing__section.is-locked .bb-option:hover {
	border-color: var(--bb-line);
}

/* Carries the locked state in words rather than in colour alone. Rendered into every
   section and shown on the first locked one, so the reader is told once, where it is
   actionable, rather than five times down the page. */
.bb-pricing .bb-pricing__locked {
	/* Body colour rather than the muted grey used elsewhere. This is the one sentence
	   explaining why five sections are inert, and --bb-grey-mid is 3.45:1 on white — under
	   AA for text this size. The smaller type and the gap below the lede carry the
	   secondary reading without spending contrast on it. */
	color: var(--bb-text);
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 20px;
}

/**
 * The control is real but invisible — the design shows selection with the card's border,
 * not a radio dot. It keeps its size and position so it stays focusable and so browser
 * autofill and validation still have something to point at.
 */
.bb-pricing .bb-option__input {
	height: 0;
	margin: 0;
	opacity: 0;
	position: absolute;
	width: 0;
}

/* :has() rather than a class the script maintains. The selected state is then a fact
   about the DOM rather than a second copy of it that can fall out of step. */
.bb-pricing .bb-option:has(.bb-option__input:checked) {
	border-color: var(--bb-navy);
	box-shadow: inset 0 0 0 1px var(--bb-navy);
}

.bb-pricing .bb-option:has(.bb-option__input:focus-visible) {
	outline: 2px solid var(--bb-navy);
	outline-offset: 2px;
}

.bb-pricing .bb-option__row {
	align-items: flex-start;
	display: flex;
	gap: 18px;
}

.bb-pricing .bb-option__body {
	flex: 1;
	min-width: 0;
}

.bb-pricing .bb-option__label {
	color: var(--bb-ink);
	display: block;
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.3;
}

/* The catalogue writes these as two lines separated by a newline. Honouring the newline
   in CSS keeps markup out of the data file. */
.bb-pricing .bb-option__desc {
	color: var(--bb-text);
	display: block;
	font-size: 14px;
	line-height: 1.45;
	margin-top: 4px;
	white-space: pre-line;
}

.bb-pricing .bb-option__audience {
	color: var(--bb-caption);
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.05em;
	line-height: 1.35;
	margin-top: 9px;
	text-transform: uppercase;
	white-space: pre-line;
}

/* "From" and the amount are one block at the same size and weight in the design. */
.bb-pricing .bb-option__price {
	align-self: center;
	color: var(--bb-ink);
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	line-height: 1.4;
	text-align: right;
	white-space: nowrap;
}

.bb-pricing .bb-option__from {
	color: var(--bb-ink);
	display: block;
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
}

.bb-pricing .bb-option__amount {
	font-weight: 400;
}

/* ─────────────────────────── Hint and modal trigger ─────────────────────────── */

.bb-pricing .bb-pricing__hint {
	color: var(--bb-text);
	font-size: 13.5px;
	margin: 2px 0 0;
}

.bb-pricing .bb-link {
	color: var(--bb-navy);
	font-weight: 600;
	text-decoration: none;
}

/* A destination the client has not supplied yet. Rendered as the design draws it, but
   not as a link, because a link to nowhere is worse than plain text. */
.bb-pricing .bb-link--pending {
	cursor: default;
}

/*
 * The save link is a <button>, because it opens a dialog rather than going anywhere — but
 * it is drawn as the link the Figma shows: Inter 600 at 14/20 in navy, and no underline at
 * rest. The underline arrives on hover so there is still a pointer affordance.
 */
.bb-pricing button.bb-link {
	background: none;
	border: 0;
	color: var(--bb-navy);
	cursor: pointer;
	font-family: var(--bb-sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 20px;
	padding: 0;
	text-decoration: none;
}

.bb-pricing button.bb-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bb-pricing .bb-modal-trigger {
	align-items: center;
	background: none;
	border: 0;
	color: var(--bb-text);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 13.5px;
	gap: 9px;
	margin-top: 2px;
	padding: 0;
}

.bb-pricing .bb-modal-trigger:hover {
	color: var(--bb-navy);
}

/* Fixed basis, because an inline SVG otherwise baseline-aligns with the first line of
   the label rather than centring against it. */
.bb-pricing .bb-modal-trigger .bb-icon-plus {
	color: var(--bb-navy-brand);
	flex: 0 0 15px;
}

/* ─────────────────────────── The two grey cards ─────────────────────────── */

.bb-pricing .bb-card {
	background: var(--bb-card-grey);
	border-radius: 8px;
	margin-bottom: 48px;
	padding: 24px 24px 8px;
}

.bb-pricing .bb-card__heading {
	color: var(--bb-ink);
	font-family: var(--bb-sans);
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 6px;
}

.bb-pricing .bb-card__lede {
	color: var(--bb-text);
	font-size: 14.5px;
	line-height: 1.5;
	margin: 0 0 6px;
	max-width: 42ch;
}

.bb-pricing .bb-card__toggle {
	align-items: center;
	background: none;
	border: 0;
	border-top: 1px solid #e2e2e2;
	color: var(--bb-navy);
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 12px;
	padding: 14px 0 8px;
	width: 100%;
}

.bb-pricing .bb-card__toggle .bb-icon-chevron {
	transition: transform 0.2s;
}

.bb-pricing .bb-card.is-open .bb-card__toggle .bb-icon-chevron {
	transform: rotate(180deg);
}

/* Animating grid-template-rows between 0fr and 1fr is the one way to transition to a
   height nobody has measured. */
.bb-pricing .bb-card__inner {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-pricing .bb-card.is-open .bb-card__inner {
	grid-template-rows: 1fr;
}

.bb-pricing .bb-card__pad {
	min-height: 0;
	overflow: hidden;
	padding-top: 8px;
}

.bb-pricing .bb-card__pad > * {
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.26s ease 0.06s, transform 0.26s ease 0.06s;
}

.bb-pricing .bb-card.is-open .bb-card__pad > * {
	opacity: 1;
	transform: none;
}

.bb-pricing .bb-card .bb-option {
	margin-bottom: 11px;
}

/* 13 above, 24 below — the design's way of grouping each trigger with the card above it. */
.bb-pricing .bb-card .bb-modal-trigger {
	margin-bottom: 24px;
}

.bb-pricing .bb-card .bb-modal-trigger:last-of-type {
	margin-bottom: 10px;
}

/* ─────────────────────────── Close ─────────────────────────── */

.bb-pricing .bb-pricing__close {
	border-top: 1px solid var(--bb-line-soft);
	margin-top: 26px;
	padding-top: 26px;
}

.bb-pricing .bb-total {
	align-items: baseline;
	color: var(--bb-ink);
	display: flex;
	margin: 0 0 22px;
}

.bb-pricing .bb-total__label {
	font-size: 20px;
}

.bb-pricing .bb-total__amount {
	font-size: 32px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin-left: auto;
}

.bb-pricing .bb-total__gst {
	font-size: 15px;
	font-weight: 600;
}

.bb-pricing .bb-cta {
	background: var(--bb-navy-brand);
	/*
	 * A keyline in the fill's own colour, so it is invisible at rest and the hover state
	 * can reverse to it without the button changing size. Adding the border only on hover
	 * moves every edge by a pixel and the button appears to twitch under the cursor.
	 */
	border: 1px solid var(--bb-navy-brand);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: block;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	padding: 10px 24px;
	width: 100%;
}

/* The call to action's hover lives in "Standing off the theme" at the foot of this file,
   with the rest of the argument with the theme's own button styling. It is not repeated
   here: two rules for one state, and only the later one ever applying, is how an override
   comes to be edited in the place that does nothing. */

/* Sits under the call to action, in the same voice as the save line below it. */
.bb-pricing .bb-cta-hint {
	color: var(--bb-text);
	font-size: 13.5px;
	margin: 10px 0 0;
	text-align: center;
}

.bb-pricing .bb-save {
	color: var(--bb-text);
	font-size: 13.5px;
	margin: 22px 0 0;
}

/*
 * The save pop-up. Same card, same close button, same click-off as the information
 * modals — it differs only in having no hero image and in holding a form we do not own.
 * Gravity Forms brings its own stylesheet, so this sets the space around the form and
 * leaves the fields to it rather than fighting a theme we will not be maintaining.
 */
.bb-modal--form .bb-modal__card {
	max-width: 520px;
}

.bb-modal--form .bb-modal__body {
	padding-bottom: 34px;
}

.bb-modal .bb-modal__lede {
	color: var(--bb-text);
	font-size: 14.5px;
	line-height: 1.5;
	margin: 0 0 22px;
}

.bb-modal .bb-save-form {
	text-align: left;
}

/*
 * Gravity Forms ships its own theme, and left alone the pop-up reads as a different site:
 * labels at #5f5f5f in the regular weight, field borders at #f3f4f4 which is very nearly
 * white, and a submit button inheriting the theme's pink `.button`. Only those three are
 * corrected here — sizing, spacing and layout stay Gravity Forms', because the client's own
 * form will replace this one and every rule written against its internals is a rule that
 * can break when they build it.
 */
/*
 * Scoped through `.gform_wrapper.gravity-theme` deliberately. Gravity Forms styles these as
 * `.gform_wrapper.gravity-theme .gfield_label` — (0,3,0) — which outweighs a plain
 * `.bb-modal .bb-save-form .gfield_label` at (0,2,0); the first attempt lost silently and
 * the labels stayed grey. Naming their wrapper puts us at (0,5,0).
 *
 * An earlier version also carried `form[id^="gform_"]`, read out of the browser's
 * `document.styleSheets`. That selector exists nowhere in Gravity Forms or the theme — the
 * reading was simply wrong. Take vendor selectors from the CSS on disk.
 */
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gfield_label {
	color: var(--bb-ink);
	font-family: var(--bb-sans);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.bb-modal .bb-save-form .gform_wrapper.gravity-theme input[type="text"],
.bb-modal .bb-save-form .gform_wrapper.gravity-theme input[type="email"],
.bb-modal .bb-save-form .gform_wrapper.gravity-theme input[type="tel"],
.bb-modal .bb-save-form .gform_wrapper.gravity-theme textarea,
.bb-modal .bb-save-form .gform_wrapper.gravity-theme select {
	border: 1px solid var(--bb-line);
	border-radius: 6px;
	color: var(--bb-ink);
	font-family: var(--bb-sans);
	font-size: 14px;
	padding: 11px 13px;
}

.bb-modal .bb-save-form .gform_wrapper.gravity-theme input[type="text"]:focus,
.bb-modal .bb-save-form .gform_wrapper.gravity-theme input[type="email"]:focus,
.bb-modal .bb-save-form .gform_wrapper.gravity-theme input[type="tel"]:focus,
.bb-modal .bb-save-form .gform_wrapper.gravity-theme textarea:focus,
.bb-modal .bb-save-form .gform_wrapper.gravity-theme select:focus {
	border-color: var(--bb-navy);
	outline: 2px solid var(--bb-navy);
	outline-offset: 1px;
}

/*
 * Validation, toned right back.
 *
 * Gravity Forms and the theme between them draw a failed submission as loudly as they can:
 * a double-ruled panel, the heading in the theme's orange at h2 size, underlined error
 * links, bullets, and each field's message in a bordered box the width of an input — which,
 * with this form set to `validation_above`, reads as a second empty field above the real
 * one. Three required fields turned a small pop-up into a wall in two shades of red.
 *
 * What follows keeps the same words and one red — `#8a1f1f`, the one .bb-checkout-error
 * already uses, so the pop-up and the checkout agree about what an error looks like.
 *
 * ⚠ `!important` on the typography, which this stylesheet otherwise never uses. It is not
 * decoration: the heading's colour, size and weight are overridden by something I could not
 * identify — the selector below matches, and its `display` and `margin` take effect, while
 * those three do not. Nothing in Gravity Forms' stylesheets or the Elementor kit accounts
 * for it. Rather than guess at a specificity ladder against an opponent I cannot name, the
 * three properties are forced and this note records that the cause is still unknown. If you
 * find it, take these off.
 */
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gform_validation_errors {
	background: #fdf2f2;
	border: 0;
	border-radius: 10px;
	box-shadow: none;
	color: #8a1f1f;
	margin: 0 0 20px;
	padding: 14px 16px;
}

.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gform_validation_errors h2.gform_submission_error {
	color: #8a1f1f !important;
	display: block;
	font-family: var(--bb-sans);
	font-size: 13.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0;
	line-height: 1.45;
	margin: 0;
	padding: 0;
	text-transform: none;
}

/* A circled exclamation is 28px of decoration in a box that is already red. */
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gform_validation_errors .gform-icon {
	display: none;
}

/* No bullets: the panel is three short lines, and the markers were more ink than the text. */
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gform_validation_errors > ol {
	list-style: none !important;
	margin: 4px 0 0;
	padding: 0 !important;
}

.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gform_validation_errors > ol li {
	color: #8a1f1f !important;
	font-size: 13px !important;
	line-height: 1.55;
	list-style: none !important;
	margin: 0;
}

/*
 * The error links point at the field below, which is already on screen — so the underline
 * bought nothing and cost the panel its calm. Kept as links for the keyboard, drawn as text.
 */
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gform_validation_error_link {
	color: #8a1f1f !important;
	text-decoration: none !important;
}

.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gform_validation_error_link:hover,
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gform_validation_error_link:focus-visible {
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

/*
 * The per-field message. A line of text under the label, not a panel — the box it arrived
 * in is the whole reason a form with three empty fields looked like it had six.
 */
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gfield_validation_message,
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .validation_message {
	background: none !important;
	border: 0 !important;
	border-radius: 0;
	color: #8a1f1f !important;
	font-size: 12.5px !important;
	font-weight: 400 !important;
	line-height: 1.4;
	margin: 0 0 6px;
	padding: 0 !important;
	text-transform: none;
}

/* The input keeps the red, at the width every other border on the page uses. */
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gfield_error input[type="text"],
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gfield_error input[type="email"],
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gfield_error input[type="tel"],
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gfield_error textarea,
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gfield_error select {
	background: #fff !important;
	border: 1px solid #d3a6a6 !important;
}

/* The label stays the label. A failed field is marked by its message and its border. */
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gfield_error .gfield_label {
	color: var(--bb-ink) !important;
}

/* Italic orange on every label is a lot of emphasis for the word "Required". */
.bb-modal .bb-save-form .gform_wrapper.gravity-theme .gfield_required_text {
	color: var(--bb-grey-mid) !important;
	font-size: 12.5px !important;
	font-style: normal !important;
	font-weight: 400 !important;
}

.bb-modal .bb-save-form .gform_footer,
.bb-modal .bb-save-form .gform-footer {
	margin: 0;
	padding: 8px 0 0;
}

/*
 * Gravity Forms renders the submit as a <button class="gform_button button">, not an
 * <input type="submit">, and the theme's `.button` is what makes it pink. Matched to
 * .bb-pill — the same navy the "Download a sample report" button uses.
 */
.bb-modal .bb-save-form .gform_wrapper .gform_button,
.bb-modal .bb-save-form .gform_button,
.bb-modal .bb-save-form input[type="submit"] {
	background: var(--bb-navy);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-family: var(--bb-sans);
	font-size: 15px;
	font-weight: 400;
	padding: 13px 30px;
	width: auto;
}

.bb-modal .bb-save-form .gform_button:hover,
.bb-modal .bb-save-form input[type="submit"]:hover {
	background: var(--bb-navy-deep);
	color: #fff;
}

/* ─────────────────────────── Modal ─────────────────────────── */

/**
 * The dialog is itself the scroll container and fills the viewport; the card inside sizes
 * to its own content. `margin: auto` on the card centres it when there is room and, unlike
 * `align-items: center`, still leaves the top edge reachable when the card is taller than
 * the screen.
 */
dialog.bb-modal {
	background: transparent;
	border: 0;
	height: 100%;
	inset: 0;
	margin: 0;
	max-height: none;
	max-width: none;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 24px;
	position: fixed;
	width: 100%;

	/* display MUST stay none while closed. Setting `display: flex` on the bare element
	   selector overrides the UA's `dialog:not([open]) { display: none }` — author styles
	   beat UA styles regardless of specificity — leaving an invisible full-viewport
	   overlay that swallows every scroll and click on the page. */
	display: none;
	opacity: 0;
	transition: opacity 0.26s ease, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}

dialog.bb-modal[open] {
	display: flex;
	opacity: 1;
}

@starting-style {
	dialog.bb-modal[open] {
		opacity: 0;
	}
}

dialog.bb-modal::backdrop {
	background: rgba(255, 255, 255, 0.67);
	opacity: 0;
	transition: opacity 0.26s ease, overlay 0.26s allow-discrete, display 0.26s allow-discrete;
}

dialog.bb-modal[open]::backdrop {
	opacity: 1;
}

@starting-style {
	dialog.bb-modal[open]::backdrop {
		opacity: 0;
	}
}

.bb-modal .bb-modal__card {
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 26px 70px rgba(20, 16, 87, 0.2);
	margin: auto;
	max-width: 570px;
	overflow: hidden;
	position: relative;
	transform: translateY(14px) scale(0.985);
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
	width: 100%;
}

dialog.bb-modal[open] .bb-modal__card {
	transform: none;
}

@starting-style {
	dialog.bb-modal[open] .bb-modal__card {
		transform: translateY(14px) scale(0.985);
	}
}

/* Focus lands here on open so the reader starts at the top of the panel rather than on
   the close button, which reads as "Close" before anything else is announced. */
.bb-modal .bb-modal__card:focus {
	outline: none;
}

.bb-modal .bb-modal__close {
	background: var(--bb-navy);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: grid;
	height: 34px;
	/* The theme pads every button 8px/16px. On a 34px border-box circle that leaves a
	   1px content column at x=16, and the cross renders out of it to the right — which
	   reads as a badly drawn icon rather than as inherited padding. */
	padding: 0;
	place-items: center;
	position: absolute;
	right: 20px;
	top: 20px;
	width: 34px;
	z-index: 3;
}

.bb-modal .bb-modal__hero img {
	display: block;
	width: 100%;
}

/* Photographic panels are cropped to a constant height in the design; left at their
   natural aspect one of them renders visibly shorter than its siblings. */
.bb-modal .bb-modal__hero:not(.is-inset) img {
	height: 292px;
	object-fit: cover;
}

/* Scorecard graphics are inset rather than full-bleed. */
.bb-modal .bb-modal__hero.is-inset {
	padding: 54px 28px 0;
}

.bb-modal .bb-modal__hero.is-inset img {
	border-radius: 6px;
}

.bb-modal .bb-modal__body {
	padding: 30px 36px 34px;
}

/* Without artwork the title starts at the top of the card, where the close button is.
   The panel for executive perspective has no picture yet, and the two land on top of
   each other — so the body drops below the button rather than under it. */
.bb-modal .bb-modal__hero:empty + .bb-modal__body {
	padding-top: 70px;
}

.bb-modal .bb-modal__title {
	color: var(--bb-ink);
	font-family: var(--bb-sans);
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin: 0 0 18px;
}

.bb-modal .bb-modal__list {
	margin: 0;
	padding-left: 1.15em;
}

.bb-modal .bb-modal__list li {
	font-size: 15px;
	line-height: 1.5;
	margin-bottom: 15px;
}

.bb-modal .bb-modal__list li:last-child {
	margin-bottom: 0;
}

.bb-modal .bb-modal__note {
	color: var(--bb-text);
	font-size: 13.5px;
	margin: 16px 0 0;
}

.bb-modal .bb-modal__foot {
	background: #f4f4f4;
	color: var(--bb-ink);
	font-size: 14.5px;
	padding: 17px 36px;
	text-align: center;
}

/* ─────────────────────────── The page copy below ─────────────────────────── */

.bb-pricing .bb-band {
	margin: 0 auto;
	max-width: var(--bb-page);
	padding: 96px var(--bb-edge) 0;
	text-align: center;
}

.bb-pricing .bb-band__heading {
	color: var(--bb-ink);
	font-family: var(--bb-serif);
	font-size: 38px;
	font-weight: 400;
	line-height: 1.15;
	margin: 0 0 34px;
}

.bb-pricing .bb-band__lede {
	color: var(--bb-text);
	font-size: 15.5px;
	margin: -22px 0 34px;
}

.bb-pricing .bb-included {
	background: var(--bb-card-grey);
	border-radius: 14px;
	padding: 52px 40px 46px;
}

.bb-pricing .bb-included__grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(5, 1fr);
	margin-bottom: 36px;
}

.bb-pricing .bb-feature {
	font-size: 13.5px;
	line-height: 1.45;
}

.bb-pricing .bb-feature__title {
	color: var(--bb-ink);
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
}

.bb-pricing .bb-feature__text {
	color: var(--bb-text);
	display: block;
}

.bb-pricing .bb-specialists {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(var(--bb-specialist-count, 6), 1fr);
	margin-bottom: 36px;
}

/*
 * A tile is a link when the catalogue gives it somewhere to go, and a div when it does
 * not. The theme styles bare links, so the anchor is put back to reading as a tile
 * rather than as body text; only the label moves on hover, since the icon is the brand
 * navy already and darkening it reads as a colour change rather than as a state.
 */
.bb-pricing a.bb-specialist {
	color: inherit;
	display: block;
	text-decoration: none;
}

.bb-pricing a.bb-specialist:hover .bb-specialist__label,
.bb-pricing a.bb-specialist:focus-visible .bb-specialist__label {
	text-decoration: underline;
}

/* Navy and bold, unlike the descriptive text in the band above it. */
.bb-pricing .bb-specialist__label {
	color: var(--bb-navy);
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
}

/*
 * The artwork is not square and the icons are not all the same size — the design scales
 * them by one factor rather than fitting each to a box, so the gauge is wider and shorter
 * than the shield. The svg carries its own width and height and is left at them; the slot
 * is what makes the row tidy, holding a constant height so headings of different icons
 * still land on the same line.
 */
.bb-pricing .bb-icon-slot {
	align-items: center;
	display: flex;
	height: 54px;
	justify-content: center;
	margin-bottom: 14px;
}

.bb-pricing .bb-icon {
	color: var(--bb-icon);
	display: block;
	max-width: 100%;
}

/* The brand navy, which is the fill Anthony's specialist exports carry. */
.bb-pricing .bb-specialist .bb-icon {
	color: var(--bb-navy-brand);
}

.bb-pricing .bb-specialist .bb-icon-slot {
	height: 50px;
	margin-bottom: 12px;
}

/**
 * The pill is the call to action, in a box that fits its label.
 *
 * Asked for 2026-09-02: "make the buttons basically the same as the review your selection
 * button. The only visual difference ... is [it] fills its container." So everything that
 * is not the box model is shared with `.bb-cta` above rather than restated here, which is
 * what stops the two drifting again — they had picked up different type sizes, weights,
 * paddings and navies, and the pill had no transition at all because it is an <a> and only
 * the theme's <button> styling carried one.
 */
.bb-pricing .bb-pill {
	background: var(--bb-navy-brand);
	/* Invisible against its own fill, so the reversal below cannot resize it. */
	border: 1px solid var(--bb-navy-brand);
	border-radius: 999px;
	color: #fff;
	display: inline-block;
	font-size: 16px;
	font-weight: 500;
	padding: 10px 24px;
	text-decoration: none;
	/* The call to action inherits this from the theme's button styling. An <a> does not,
	   so it is stated. */
	transition: background 0.3s, border-color 0.3s, color 0.3s;
}

/*
 * Reverses rather than darkens, like the call to action and like the rest of the site.
 * Anthony, 2026-09-01, reiterated 2026-09-02 naming these two specifically: "Download a
 * sample report" and "Request pricing".
 *
 * `text-decoration` is restated because the theme underlines a hovered link, and the
 * resting `none` above does not survive into the hover state.
 *
 * Scoped to `a.` deliberately. A pill with no destination renders as a <span class="is-pending">
 * (Render::content_link), and a hover state on something that cannot be followed would be
 * offering an action that does not exist.
 */
.bb-pricing a.bb-pill:hover,
.bb-pricing a.bb-pill:focus {
	background: transparent;
	border-color: var(--bb-navy-brand);
	color: var(--bb-navy-brand);
	text-decoration: none;
}

.bb-pricing .bb-band__under {
	color: var(--bb-navy);
	display: block;
	font-size: 14.5px;
	font-weight: 600;
	margin-top: 16px;
	text-decoration: none;
}

/* ── Closing ── */

/* The bottom margin is ours to set: the site's footer follows immediately and brings no
   space of its own. */
.bb-pricing .bb-closing {
	margin: 96px auto 88px;
	max-width: var(--bb-page);
	padding: 0 var(--bb-edge);
}

.bb-pricing .bb-closing__inner {
	align-items: flex-start;
	background: var(--bb-sandy);
	border-radius: 14px;
	display: flex;
	gap: 56px;
	padding: 56px 52px;
}

.bb-pricing .bb-closing__intro {
	flex: 0 0 42%;
}

.bb-pricing .bb-closing__heading {
	color: var(--bb-ink);
	font-family: var(--bb-serif);
	font-size: 31px;
	font-weight: 400;
	line-height: 1.22;
	margin: 0 0 16px;
	/* Three deliberate lines, written into the copy as newlines rather than as markup. */
	white-space: pre-line;
}

.bb-pricing .bb-closing__text {
	color: var(--bb-text);
	font-size: 14.5px;
	line-height: 1.5;
	margin: 0;
}

.bb-pricing .bb-closing__links {
	flex: 1;
	min-width: 0;
}

.bb-pricing .bb-closing__link {
	align-items: center;
	border-bottom: 1px solid var(--bb-sandy-line);
	color: var(--bb-ink);
	display: flex;
	font-size: 15px;
	gap: 16px;
	justify-content: space-between;
	padding: 15px 0;
	text-decoration: none;
}

.bb-pricing .bb-closing__link:first-child {
	border-top: 1px solid var(--bb-sandy-line);
}

.bb-pricing a.bb-closing__link:hover,
.bb-pricing a.bb-closing__link:focus {
	color: var(--bb-navy);
}

.bb-pricing .bb-icon-next {
	flex: 0 0 8px;
}

/* A destination the client has not supplied yet. Drawn as the design draws it, but not
   as a link — the cursor is the only tell, and a link to nowhere is worse. */
.bb-pricing .is-pending {
	cursor: default;
}

/* ─────────────────────────── Errors ─────────────────────────── */

.bb-pricing .bb-pricing__error {
	background: #fff4f4;
	border: 1px solid #d63638;
	border-radius: 4px;
	color: #8a1f1f;
	margin: 48px auto;
	max-width: var(--bb-page);
	padding: 24px;
}

/* Also inside the save pop-up, which renders outside .bb-pricing — without the second
   selector its notices came out as unstyled body text rather than as this panel. */
.bb-pricing .bb-checkout-error,
.bb-modal .bb-checkout-error {
	background: #fdf2f2;
	border-radius: 10px;
	color: #8a1f1f;
	font-size: 14px;
	line-height: 1.45;
	margin: 12px 0 0;
	padding: 12px 16px;
}

.bb-pricing .bb-cta[aria-busy="true"] {
	cursor: progress;
	opacity: 0.6;
}

/* Dimmed as well as blocked. The page now opens with nothing chosen, so this is the
   state every visitor meets first — a button that looks live and does nothing is worse
   than one that plainly is not ready yet. */
/* `:not([aria-busy])` because checkout sets `disabled` and `aria-busy` together, and both
   selectors carry the same specificity — without it this would win on source order and make
   "submitting" look identical to "blocked". */
.bb-pricing .bb-cta:disabled:not([aria-busy="true"]) {
	cursor: not-allowed;
	opacity: 0.45;
}

/* ─────────────────────────── Narrow ─────────────────────────── */

@media (max-width: 1180px) {
	/* No room for it, and nothing to anchor it to once the two columns collapse. Asked for
	   2026-09-02: "this will only work on large screens." */
	.bb-pricing .bb-pricing__rail {
		display: none;
	}

	.bb-pricing {
		--bb-col-w: 380px;
		--bb-gutter: 48px;
	}

	.bb-pricing .bb-pricing__title {
		font-size: 42px;
	}
}

@media (max-width: 940px) {
	.bb-pricing {
		--bb-edge: 24px;
	}

	/* The pin is dropped rather than shrunk: kept, it would leave the options in a
	   40%-height slot with the visual eating the rest of the screen. */
	.bb-pricing .bb-pricing__layout {
		display: block;
		padding-top: 28px;
	}

	.bb-pricing .bb-pricing__panel {
		margin-bottom: 32px;
		position: static;
	}

	.bb-pricing .bb-pricing__column {
		/* Cleared because the script sets it inline to align the two columns, which is
		   meaningless once they are stacked. */
		padding-top: 0 !important;
		width: auto;
	}

	.bb-pricing .bb-pricing__hero {
		/* Stacked below the heading rather than beside it, which is what the design does
		   at this width — a two-line serif heading and a control on one row is too much. */
		display: block;
		padding-top: 36px;
	}

	.bb-pricing .bb-pricing__currency {
		margin-left: 0;
		margin-top: 18px;
	}

	.bb-pricing .bb-pricing__title {
		font-size: 34px;
	}

	.bb-pricing .bb-pricing__bar-main {
		height: 56px;
	}

	.bb-pricing .bb-pricing__bar-prompt {
		height: 38px;
	}

	.bb-pricing .bb-pricing__bar-amount {
		font-size: 24px;
	}

	.bb-pricing .bb-band {
		padding-top: 64px;
	}

	/* The panel goes static at this breakpoint, so the long gap between choices is buying
	   nothing — there is no pinned image left for it to give room to change in. */
	.bb-pricing .bb-pricing__section {
		padding-bottom: 96px;
	}

	.bb-pricing .bb-included__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bb-pricing .bb-specialists {
		grid-template-columns: repeat(3, 1fr);
	}

	.bb-pricing .bb-closing__inner {
		display: block;
		padding: 40px 28px;
	}

	.bb-pricing .bb-closing__intro {
		margin-bottom: 32px;
	}
}

/**
 * Phones.
 *
 * The bar is the only thing here that genuinely runs out of room: the brand lockup and the
 * running total both want a fixed width and together they exceed a phone. The total's type
 * comes down so the brand still has enough room to be read at its own aspect ratio, rather
 * than being shrunk to a smear by the flex line alone.
 *
 * The currency control is not in the bar and never was in the design — it sits beside the
 * hero heading, where it has a whole row to itself and nothing to compete with.
 */
@media (max-width: 600px) {
	.bb-pricing .bb-pricing__bar-main {
		gap: 12px;
	}

	.bb-pricing .bb-pricing__bar-total {
		gap: 8px;
	}

	.bb-pricing .bb-pricing__bar-label {
		font-size: 14px;
	}

	.bb-pricing .bb-pricing__bar-amount {
		font-size: 21px;
	}

	.bb-pricing .bb-pricing__bar-gst {
		font-size: 12px;
		margin-left: -6px;
	}

	.bb-pricing .bb-pricing__bar-prompt {
		font-size: 13px;
		height: 34px;
	}

	.bb-pricing .bb-pricing__section {
		padding-bottom: 72px;
	}

	/*
	 * Three columns is below the min-content width of the longest label on a small
	 * phone — "Effectiveness" cannot break, so the grid stops honouring the track size
	 * and pushes the whole page sideways rather than wrapping.
	 */
	.bb-pricing .bb-specialists {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bb-pricing .bb-pricing__frame,
	.bb-pricing .bb-pricing__bar,
	.bb-pricing .bb-card__inner,
	.bb-pricing .bb-card__pad > *,
	dialog.bb-modal,
	dialog.bb-modal::backdrop,
	.bb-modal .bb-modal__card {
		transition-duration: 0.01ms;
	}
}

/* ─────────────────────────── Standing off the theme ─────────────────────────── */

/**
 * The theme styles every <button> on the site — a bordered pink pill that fills magenta
 * on hover and focus — and Elementor's kit restates it a specificity step higher again.
 * Ours are not those buttons.
 *
 * Kept together at the end rather than spread through the blocks above so that the whole
 * of the argument with the theme is in one place, and so the specificity needed to win it
 * (a class more than `.elementor-kit-N button:hover`) is stated once.
 */
/*
 * The site's own buttons reverse on hover rather than darkening: the fill drops away and
 * the brand navy moves to the keyline and the label. Anthony, 2026-09-01. The resting
 * border above is what keeps the box the same size through the change.
 *
 * `:hover` is guarded and `:focus` is not, because the two states differ in what can reach
 * them: a disabled button still matches `:hover`, and cannot be focused at all. Checkout
 * sets `disabled` and `aria-busy` together, so either guard would do on the hover line;
 * both are there because they answer different questions and a future caller might set
 * only one.
 *
 * Pairing `:focus` with `:hover` is the pattern every other control in this file uses, and
 * is what the rule this replaced already did. Note what keeps it honest: a mouse click
 * leaves a button matching `:focus`, so the reversed colours would sit there until blur —
 * except that startCheckout() sets `disabled` synchronously in the same handler, and
 * disabling a focused control blurs it before the next paint. That protection lives in the
 * JS, not here. A future `.bb-cta` on a button that does not disable itself on click would
 * stay reversed.
 */
.bb-pricing .bb-cta:hover:not(:disabled):not([aria-busy="true"]),
.bb-pricing .bb-cta:focus:not([aria-busy="true"]) {
	background: transparent;
	border-color: var(--bb-navy-brand);
	color: var(--bb-navy-brand);
}

.bb-pricing .bb-card__toggle:hover,
.bb-pricing .bb-card__toggle:focus {
	background: none;
	color: var(--bb-navy);
}

.bb-pricing .bb-modal-trigger:hover,
.bb-pricing .bb-modal-trigger:focus {
	background: none;
	color: var(--bb-navy);
}

.bb-pricing button.bb-link:hover,
.bb-pricing button.bb-link:focus {
	background: none;
	color: var(--bb-navy);
}

/* Gravity Forms' submit is a <button>, so the theme claims it the same way. */
.bb-modal .bb-save-form .gform_button:focus {
	background: var(--bb-navy-deep);
	color: #fff;
}

.bb-modal .bb-modal__close:hover,
.bb-modal .bb-modal__close:focus {
	background: var(--bb-navy);
	color: #fff;
}

/* A focus ring of our own, in the page's own colour. Only on :focus-visible, so a mouse
   press does not leave a ring behind the way the theme's does. */
.bb-pricing .bb-cta:focus,
.bb-pricing .bb-card__toggle:focus,
.bb-pricing .bb-modal-trigger:focus,
.bb-pricing button.bb-link:focus,
.bb-modal .bb-modal__close:focus,
.bb-modal .bb-save-form .gform_button:focus {
	outline: none;
}

.bb-pricing .bb-cta:focus-visible,
.bb-pricing .bb-card__toggle:focus-visible,
.bb-pricing .bb-modal-trigger:focus-visible,
.bb-pricing button.bb-link:focus-visible,
.bb-modal .bb-modal__close:focus-visible,
.bb-modal .bb-save-form .gform_button:focus-visible {
	outline: 2px solid var(--bb-navy);
	outline-offset: 2px;
}
