/* =========================================================================
   Boss Digital Plans — front-end styles
   COLOURS: set in WordPress > Boss Plans > Settings > Colours.
   The fallbacks below only apply if nothing has been saved.
   ========================================================================= */
.bdp {
	--bdp-bg: #0b0b0c;
	--bdp-surface: #141416;
	--bdp-surface-2: #1c1c1f;
	--bdp-border: #2a2a2e;
	--bdp-text: #f5f5f5;
	--bdp-muted: #a1a1a8;
	--bdp-accent: #f5c84c;
	--bdp-accent-ink: #0b0b0c;
	--bdp-danger: #ff6b6b;
	--bdp-radius: 24px;
	--bdp-ease: cubic-bezier(.22, .8, .24, 1);
	--bdp-dur: .45s;

	position: relative;
	display: block;
	width: 100%;
	padding: clamp(48px, 8vw, 112px) clamp(16px, 4vw, 48px);
	background: var(--bdp-bg);
	color: var(--bdp-text);
	font-family: var(--bdp-font, inherit);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	overflow-x: clip;
	isolation: isolate;
	-webkit-text-size-adjust: 100%;
}
.bdp, .bdp *, .bdp *::before, .bdp *::after { box-sizing: border-box; }

.bdp .bdp__inner { max-width: 1240px; margin: 0 auto; }

/* ---------- Heading ---------- */
.bdp .bdp__head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 64px); text-align: center; transition: opacity var(--bdp-dur) var(--bdp-ease); }
.bdp .bdp__eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bdp-muted); }
.bdp .bdp__title { margin: 0; padding: 0; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; color: var(--bdp-text); text-transform: none; }
.bdp .bdp__intro { margin: 18px auto 0; max-width: 56ch; font-size: clamp(16px, 1.4vw, 18px); color: var(--bdp-muted); }

/* ---------- Stage grid ---------- */
.bdp .bdp__stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .86fr) minmax(0, 1fr);
	grid-template-areas: "growth visual scale";
	gap: clamp(16px, 2vw, 28px);
	align-items: stretch;
	position: relative;
}
.bdp .bdp-card--growth { grid-area: growth; }
.bdp .bdp-card--scale { grid-area: scale; }
.bdp .bdp-visual { grid-area: visual; }
.bdp .bdp-form { grid-area: form; }

/* ---------- Cards ---------- */
.bdp .bdp-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	max-width: 100%;
	padding: clamp(24px, 2.4vw, 36px);
	background: var(--bdp-surface);
	border: 1px solid var(--bdp-border);
	border-radius: var(--bdp-radius);
	cursor: pointer;
	transition: transform var(--bdp-dur) var(--bdp-ease), opacity var(--bdp-dur) var(--bdp-ease), border-color var(--bdp-dur) var(--bdp-ease), background-color var(--bdp-dur) var(--bdp-ease), box-shadow var(--bdp-dur) var(--bdp-ease);
}
.bdp .bdp-card.is-active { transform: translateY(-8px); border-color: var(--bdp-muted); background: var(--bdp-surface-2); }
.bdp .bdp-card.is-selected { border-color: var(--bdp-accent); box-shadow: inset 0 0 0 1px var(--bdp-accent); }
.bdp[data-focus="growth"] .bdp-card--scale:not(.is-selected),
.bdp[data-focus="scale"] .bdp-card--growth:not(.is-selected) { opacity: .55; transform: scale(.985); }

.bdp .bdp-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.bdp .bdp-pill {
	display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
	border: 1px solid var(--bdp-border); background: transparent; color: var(--bdp-muted);
	font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .02em; white-space: nowrap;
	transition: transform var(--bdp-dur) var(--bdp-ease), background-color var(--bdp-dur) var(--bdp-ease), color var(--bdp-dur) var(--bdp-ease), border-color var(--bdp-dur) var(--bdp-ease);
}
.bdp .bdp-card.is-active .bdp-pill--duration,
.bdp .bdp-card.is-selected .bdp-pill--duration { color: var(--bdp-text); border-color: var(--bdp-muted); }
.bdp .bdp-card.is-active .bdp-pill--discount,
.bdp .bdp-card.is-selected .bdp-pill--discount,
.bdp .bdp-pill--discount.is-on { background: var(--bdp-accent); border-color: var(--bdp-accent); color: var(--bdp-accent-ink); }
.bdp .bdp-card.is-active .bdp-pill--discount { transform: scale(1.06); }

.bdp .bdp-card__title { margin: 0 0 10px; padding: 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; color: var(--bdp-text); text-transform: none; }
.bdp .bdp-card__desc { margin: 0 0 24px; color: var(--bdp-muted); }
.bdp ul.bdp-card__features { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.bdp .bdp-card__feature { overflow-wrap: anywhere; position: relative; margin: 0; padding: 0 0 0 30px; list-style: none; color: var(--bdp-text); font-size: 15px; line-height: 1.45; }
.bdp .bdp-card__feature::before { content: ""; position: absolute; left: 4px; top: .35em; width: 6px; height: 11px; border: solid var(--bdp-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bdp .bdp-card__actions { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }

/* ---------- Custom radio ---------- */
.bdp .bdp-select {
	min-width: 0; max-width: 100%; position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0; padding: 12px 16px;
	border: 1px solid var(--bdp-border); border-radius: 16px; color: var(--bdp-muted); font-size: 15px; font-weight: 600; cursor: pointer;
	transition: border-color var(--bdp-dur) var(--bdp-ease), color var(--bdp-dur) var(--bdp-ease), background-color var(--bdp-dur) var(--bdp-ease);
}
.bdp .bdp-select__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.bdp .bdp-select__dot {
	position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bdp-muted);
	transition: background-color var(--bdp-dur) var(--bdp-ease), border-color var(--bdp-dur) var(--bdp-ease), transform var(--bdp-dur) var(--bdp-ease);
}
.bdp .bdp-select__dot::after {
	content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--bdp-accent-ink); border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0); transition: transform .25s var(--bdp-ease);
}
.bdp .bdp-select__on { display: none; }
.bdp .bdp-select__input:checked ~ .bdp-select__off { display: none; }
.bdp .bdp-select__input:checked ~ .bdp-select__on { display: inline; }
.bdp .bdp-select__input:checked ~ .bdp-select__dot { background: var(--bdp-accent); border-color: var(--bdp-accent); }
.bdp .bdp-select__input:checked ~ .bdp-select__dot::after { transform: rotate(45deg) scale(1); }
.bdp .bdp-select:has(.bdp-select__input:checked) { border-color: var(--bdp-accent); color: var(--bdp-text); }
.bdp .bdp-select__input:focus-visible ~ .bdp-select__dot { outline: 2px solid var(--bdp-accent); outline-offset: 3px; }
.bdp .bdp-card.is-selected .bdp-select { border-color: var(--bdp-accent); color: var(--bdp-text); }

/* ---------- Buttons ---------- */
.bdp .bdp-btn {
	-webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 14px 24px; margin: 0; border: 1px solid var(--bdp-border); border-radius: 999px;
	background: transparent; color: var(--bdp-text); font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
	text-decoration: none; text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer;
	max-width: 100%; white-space: normal; text-align: center;
	transition: transform var(--bdp-dur) var(--bdp-ease), background-color var(--bdp-dur) var(--bdp-ease), color var(--bdp-dur) var(--bdp-ease), border-color var(--bdp-dur) var(--bdp-ease);
}
.bdp .bdp-btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--bdp-dur) var(--bdp-ease); }
.bdp .bdp-btn:hover, .bdp .bdp-btn:focus { background: transparent; color: var(--bdp-text); border-color: var(--bdp-muted); box-shadow: none; }
.bdp .bdp-btn:hover svg { transform: translateX(4px); }
.bdp .bdp-card.is-active .bdp-cta,
.bdp .bdp-card.is-selected .bdp-cta { background: var(--bdp-accent); border-color: var(--bdp-accent); color: var(--bdp-accent-ink); }
.bdp .bdp-card.is-active .bdp-cta svg { transform: translateX(3px); }
.bdp .bdp-btn--primary, .bdp .bdp-btn--primary:hover, .bdp .bdp-btn--primary:focus { background: var(--bdp-accent); border-color: var(--bdp-accent); color: var(--bdp-accent-ink); }
.bdp .bdp-btn--primary:hover { transform: translateY(-2px); }
.bdp .bdp-btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.bdp .bdp-back { min-height: 44px; padding: 8px 18px 8px 14px; font-size: 14px; color: var(--bdp-muted); }

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

/* ---------- Centre visual ---------- */
.bdp .bdp-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; min-width: 0; }
.bdp .bdp-bubble {
	position: relative; display: flex; align-items: center; justify-content: center; margin: 0; max-width: 300px; min-height: 3.6em; padding: 12px 20px;
	border: 1px solid var(--bdp-border); border-radius: 18px; background: var(--bdp-surface-2); color: var(--bdp-text);
	font-size: 15px; line-height: 1.4; text-align: center;
}
.bdp .bdp-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: var(--bdp-surface-2); border: solid var(--bdp-border); border-width: 0 1px 1px 0; transform: translateX(-50%) rotate(45deg); }
.bdp .bdp-bubble__text { display: block; transition: opacity .18s ease, transform .18s ease; }
.bdp .bdp-bubble.is-swapping .bdp-bubble__text { opacity: 0; transform: translateY(4px); }

.bdp .bdp-figure { position: relative; width: 100%; max-width: 380px; aspect-ratio: 4 / 5; clip-path: inset(-12% -12% 0 -12%); }
.bdp .bdp-halo { position: absolute; left: 9%; top: 12%; width: 82%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--bdp-border); background: var(--bdp-surface); will-change: transform; }
.bdp .bdp-person { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; transform-origin: 50% 100%; will-change: transform; }
.bdp .bdp-person picture { display: contents; }
.bdp .bdp-person img { display: block; width: auto; max-width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }

.bdp .bdp-chip {
	position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
	border: 1px solid var(--bdp-border); background: var(--bdp-surface-2); color: var(--bdp-text); font-size: 13px; font-weight: 600; white-space: nowrap;
	opacity: 0; transform: translateY(8px) scale(.96); pointer-events: none;
	transition: opacity var(--bdp-dur) var(--bdp-ease), transform var(--bdp-dur) var(--bdp-ease);
}
.bdp .bdp-chip svg { color: var(--bdp-accent); flex: none; }
.bdp .bdp-chip--growth { left: 0; top: 40%; }
.bdp .bdp-chip--scale { right: 0; top: 26%; }
.bdp[data-focus="growth"] .bdp-chip--growth,
.bdp[data-focus="scale"] .bdp-chip--scale { opacity: 1; transform: none; }

/* Connector lines are mobile-only */
.bdp .bdp-line { display: none; }

/* Very subtle idle life (a few px over 5s). Disabled for reduced motion. */
.bdp .bdp-figure { animation: bdp-idle 5s ease-in-out infinite; }
@keyframes bdp-idle { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.006); } }

/* ---------- Consultation form ---------- */
.bdp .bdp-form {
	min-width: 0; padding: clamp(24px, 3vw, 44px); background: var(--bdp-surface); border: 1px solid var(--bdp-border); border-radius: var(--bdp-radius);
	transition: opacity var(--bdp-dur) var(--bdp-ease), transform var(--bdp-dur) var(--bdp-ease);
}
.bdp .bdp-form[hidden], .bdp .bdp-success[hidden], .bdp .bdp-form__body[hidden] { display: none; }
.bdp .bdp-form__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 8px; }
.bdp .bdp-form__title { margin: 0; padding: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; color: var(--bdp-text); text-transform: none; }
.bdp .bdp-form__intro { margin: 0 0 26px; color: var(--bdp-muted); }
.bdp .bdp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 24px; }
.bdp .bdp-field { min-width: 0; margin: 0; }
.bdp .bdp-field--full { grid-column: 1 / -1; }
.bdp .bdp-label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--bdp-text); }
.bdp .bdp-input {
	display: block; width: 100%; min-height: 52px; margin: 0; padding: 14px 16px; border: 1px solid var(--bdp-border); border-radius: 14px;
	background: var(--bdp-bg); color: var(--bdp-text); font: inherit; font-size: 16px; line-height: 1.3; box-shadow: none; -webkit-appearance: none; appearance: none;
	transition: border-color var(--bdp-dur) var(--bdp-ease);
}
.bdp .bdp-input:focus { border-color: var(--bdp-accent); outline: 2px solid var(--bdp-accent); outline-offset: 0; box-shadow: none; }
.bdp .bdp-input[readonly] { border-style: dashed; color: var(--bdp-muted); cursor: default; }
.bdp .bdp-input[aria-invalid="true"] { border-color: var(--bdp-danger); }
.bdp .bdp-error { margin: 6px 0 0; font-size: 13px; color: var(--bdp-danger); }
.bdp .bdp-error:empty, .bdp .bdp-form__status:empty { display: none; }
.bdp .bdp-form__status { margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--bdp-danger); border-radius: 14px; font-size: 14px; color: var(--bdp-danger); }
.bdp .bdp-submit { width: 100%; }
.bdp .bdp-form__note { margin: 14px 0 0; font-size: 13px; color: var(--bdp-muted); text-align: center; }
.bdp .bdp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bdp .bdp-success { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 0; text-align: center; }
.bdp .bdp-success:focus { outline: none; }
.bdp .bdp-success__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bdp-accent); color: var(--bdp-accent-ink); }
.bdp .bdp-success__icon svg { width: 30px; height: 30px; }
.bdp .bdp-success .bdp-form__intro { max-width: 44ch; margin: 0 0 8px; }

/* ---------- Form view (cards fade out, person moves left, form enters) ---------- */
.bdp[data-view="form"] .bdp__head,
.bdp[data-view="form"] .bdp-card { display: none; }
.bdp[data-view="form"] .bdp__stage { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-areas: "visual form"; align-items: center; }
.bdp[data-view="form"] .bdp-figure { max-width: 320px; }

/* Transitions between views */
.bdp.is-leaving .bdp__head { opacity: 0 !important; }
.bdp.is-leaving .bdp-card--growth { opacity: 0 !important; transform: translateX(-40px) scale(.97) !important; pointer-events: none; }
.bdp.is-leaving .bdp-card--scale { opacity: 0 !important; transform: translateX(40px) scale(.97) !important; pointer-events: none; }
.bdp.is-leaving-form .bdp-form { opacity: 0; transform: translateX(32px); pointer-events: none; }
.bdp.is-entering .bdp-form { animation: bdp-in-right .6s var(--bdp-ease) both; }
.bdp.is-entering .bdp-visual { animation: bdp-in-scale .6s var(--bdp-ease) both; }
.bdp.is-returning .bdp-card--growth { animation: bdp-in-left .6s var(--bdp-ease) both; }
.bdp.is-returning .bdp-card--scale { animation: bdp-in-right .6s var(--bdp-ease) both; }
.bdp.is-returning .bdp-visual, .bdp.is-returning .bdp__head { animation: bdp-in-scale .6s var(--bdp-ease) both; }
@keyframes bdp-in-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes bdp-in-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes bdp-in-scale { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ---------- Helpers ---------- */
.bdp .bdp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* =========================================================================
   Single-plan layouts: when one plan is switched off in the admin, the other plan and the person
   share the row (desktop) or stack (tablet / mobile). :not(form view) keeps the form layout intact.
   ========================================================================= */
@media (min-width: 1024px) {
	.bdp[data-plans="growth"]:not([data-view="form"]) .bdp__stage { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); grid-template-areas: "growth visual"; }
	.bdp[data-plans="scale"]:not([data-view="form"]) .bdp__stage { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); grid-template-areas: "visual scale"; }
}

/* =========================================================================
   TABLET  (768px – 1023px): person on top, two cards side by side
   ========================================================================= */
@media (max-width: 1023px) {
	.bdp .bdp__stage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "visual visual" "growth scale"; }
	.bdp .bdp-figure { max-width: 340px; }
	.bdp[data-view="form"] .bdp__stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "visual" "form"; }
	.bdp[data-view="form"] .bdp-figure { max-width: 240px; }
}
@media (max-width: 1023px) {
	.bdp[data-plans]:not([data-plans="both"]):not([data-view="form"]) .bdp__stage { grid-template-columns: minmax(0, 1fr); }
	.bdp[data-plans="growth"]:not([data-view="form"]) .bdp__stage { grid-template-areas: "visual" "growth"; }
	.bdp[data-plans="scale"]:not([data-view="form"]) .bdp__stage { grid-template-areas: "visual" "scale"; }
	.bdp[data-plans]:not([data-plans="both"]) .bdp-card { max-width: 560px; justify-self: center; width: 100%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.bdp .bdp-card { padding: 26px 24px; }
	.bdp .bdp-card__title { font-size: clamp(22px, 3vw, 28px); }
	.bdp .bdp-card__feature { font-size: 15px; }
	.bdp .bdp-btn { padding-left: 18px; padding-right: 18px; font-size: 15px; }
}

/* =========================================================================
   MOBILE  (max 767px): one connected vertical journey
   Growth card > person (bridge) > Scale card. No large negative margins: the layout is a plain
   column. The only overlap is --bdp-sink, the person's feet resting over empty padding at the top
   of the Scale card. JS (plans.js) sets data-focus = the ACTIVE plan (scroll/tap); the radio
   "selected" state is separate. Tunables: --bdp-person-w, --bdp-sink, --bdp-fab-space.
   ========================================================================= */
@media (max-width: 767px) {
	.bdp {
		--bdp-pad: clamp(18px, 5.6vw, 26px);
		--bdp-sink: 14px;                             /* feet rest this far over the Scale card's empty top padding */
		--bdp-person-w: min(62%, 250px);
		--bdp-fab-space: 88px;                        /* reserved bottom room for a floating chat button */
		width: 100vw; max-width: 100vw;
		margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
		padding: clamp(40px, 11vw, 60px) clamp(16px, 5vw, 20px) calc(clamp(36px, 10vw, 56px) + var(--bdp-fab-space) + env(safe-area-inset-bottom, 0px));
	}

	/* Typography */
	.bdp .bdp__head { margin-bottom: clamp(22px, 6vw, 32px); }
	.bdp .bdp__eyebrow { font-size: 12px; margin-bottom: 10px; }
	.bdp .bdp__title { font-size: clamp(26px, 8.2vw, 36px); line-height: 1.12; overflow-wrap: break-word; }
	.bdp .bdp__intro { margin-top: 12px; font-size: clamp(15px, 4.2vw, 17px); }
	.bdp .bdp-card__title { font-size: clamp(24px, 7.2vw, 30px); }
	.bdp .bdp-card__desc { font-size: clamp(15px, 4.2vw, 16.5px); margin-bottom: 18px; }
	.bdp .bdp-card__meta { margin-bottom: 16px; }
	.bdp .bdp-pill { font-size: 12.5px; padding: 6px 12px; }
	.bdp ul.bdp-card__features { gap: 11px; margin-bottom: 22px; }
	.bdp .bdp-card__feature { font-size: clamp(14px, 3.9vw, 16px); line-height: 1.45; padding-left: 28px; }
	.bdp .bdp-card__feature::before { top: .3em; }

	/* Layout */
	.bdp .bdp__stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "growth" "visual" "scale"; gap: 0; width: 100%; }
	.bdp .bdp-card { width: 100%; padding: var(--bdp-pad); border-radius: 20px; height: auto; min-height: 0; position: relative; z-index: 1; }
	.bdp .bdp-card--scale { padding-top: calc(var(--bdp-pad) + var(--bdp-sink)); }

	/* Active plan = clearly brighter with an accent border; the other stays fully readable */
	.bdp .bdp-card.is-active { transform: none; border-color: var(--bdp-accent); background: var(--bdp-surface-2); }
	.bdp[data-focus="growth"] .bdp-card--scale:not(.is-selected),
	.bdp[data-focus="scale"] .bdp-card--growth:not(.is-selected) { opacity: .8; transform: none; }

	/* Controls: >= 52px touch targets, whole selection row is the label */
	.bdp .bdp-select { min-height: 52px; font-size: 15px; padding: 12px 16px; }
	.bdp .bdp-btn { min-height: 52px; padding: 12px 18px; font-size: clamp(15px, 4.2vw, 17px); width: 100%; }
	.bdp .bdp-back { width: auto; min-height: 44px; }
	.bdp .bdp-select, .bdp .bdp-btn, .bdp .bdp-input { scroll-margin-bottom: calc(var(--bdp-fab-space) + 24px); }

	/* Person bridge */
	.bdp .bdp-visual { position: relative; z-index: 3; gap: 8px; padding: 22px 0 0; margin: 0 0 calc(-1 * var(--bdp-sink)); }
	.bdp .bdp-bubble { width: auto; max-width: min(92%, 330px); min-height: calc(2.7em + 16px); padding: 8px 16px; font-size: clamp(13.5px, 3.9vw, 15.5px); line-height: 1.35; }
	.bdp .bdp-bubble::after { display: none; }

	/* Connector: top half leads to Growth, bottom half to Scale; the active half takes the accent colour */
	.bdp .bdp-line { display: block; position: absolute; z-index: -1; left: 50%; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--bdp-border); transition: background-color var(--bdp-dur) var(--bdp-ease); }
	.bdp .bdp-line--up { top: 0; bottom: 50%; }
	.bdp .bdp-line--down { top: 50%; bottom: calc(-1 * (var(--bdp-sink) + var(--bdp-pad) * .8)); }
	.bdp[data-focus="growth"] .bdp-line--up,
	.bdp[data-focus="scale"] .bdp-line--down { background: var(--bdp-accent); }

	/* Halo + person form one system (JS moves both in the same direction) */
	.bdp .bdp-halo { left: 4%; top: 10%; width: 92%; transition: border-color var(--bdp-dur) var(--bdp-ease); }
	.bdp[data-focus="growth"] .bdp-halo,
	.bdp[data-focus="scale"] .bdp-halo { border-color: var(--bdp-accent); }
	.bdp .bdp-figure { width: var(--bdp-person-w); max-width: 250px; margin-top: 30px; clip-path: inset(-18% -10% -6% -10%); }

	/* Badge: centred between bubble and head, never over the face or body */
	.bdp .bdp-chip--growth, .bdp .bdp-chip--scale { left: 50%; right: auto; top: -30px; font-size: 12.5px; padding: 5px 12px; transform: translate(-50%, 6px) scale(.96); }
	.bdp[data-focus="growth"] .bdp-chip--growth,
	.bdp[data-focus="scale"] .bdp-chip--scale { transform: translate(-50%, 0); }

	/* One plan only (the other is disabled): no second connector half */
	.bdp[data-plans="growth"]:not([data-view="form"]) .bdp__stage { grid-template-areas: "growth" "visual"; }
	.bdp[data-plans="scale"]:not([data-view="form"]) .bdp__stage { grid-template-areas: "visual" "scale"; }
	.bdp[data-plans="growth"] .bdp-line--down, .bdp[data-plans="scale"] .bdp-line--up { display: none; }

	/* Form view: no bridge */
	.bdp[data-view="form"] .bdp-visual { margin: 0; padding: 0; }
	.bdp[data-view="form"] .bdp-line { display: none; }
	.bdp[data-view="form"] .bdp__stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "visual" "form"; gap: 20px; }
	.bdp[data-view="form"] .bdp-figure { width: min(46%, 170px); max-width: 170px; }
	.bdp .bdp-grid { grid-template-columns: minmax(0, 1fr); }
	.bdp .bdp-form { padding: var(--bdp-pad); border-radius: 20px; }
	.bdp .bdp-form__title { font-size: clamp(22px, 6.6vw, 28px); }
}

/* Small phones */
@media (max-width: 479px) {
	.bdp { --bdp-person-w: min(62%, 250px); }
}
@media (max-width: 360px) {
	.bdp { padding-left: 14px; padding-right: 14px; --bdp-pad: 16px; }
	.bdp .bdp-chip--growth, .bdp .bdp-chip--scale { font-size: 12px; padding: 5px 10px; }
	.bdp .bdp-select, .bdp .bdp-btn { font-size: 14.5px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.bdp .bdp-figure { animation: none; }
	.bdp *, .bdp *::before, .bdp *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
	.bdp .bdp-card.is-active { transform: none; }
}

/* Make the HTML `hidden` attribute always win over component display rules */
.bdp [hidden] { display: none !important; }
