/**
 * BizFuel founding offer — shared layer.
 *
 * Buttons, popup, form, lightbox, reveal, theme toggle. Each variant file
 * (offer-a.css / offer-b.css) supplies the tokens below for dark (default)
 * and html[data-theme="light"], plus its own layout.
 */

@font-face {
	font-family: "Manrope";
	src: url("../fonts/manrope-variable.woff2") format("woff2-variations"),
		url("../fonts/manrope-variable.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

html:has(body.bfo-page) {
	scroll-behavior: smooth;
	background: var(--page-bg, #0a0a0f);
}

body.bfo-page {
	margin: 0;
	padding: 0;
	background: var(--page-bg, #0a0a0f);
}

body.bfo-page {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body.bfo-page.bfo-lock {
	overflow: hidden;
}

/* Site header + footer sit outside .bfo. Keep the real chrome unclipped. */
body.bfo-page .xfin-site-shell--header,
body.bfo-page .xfin-site-shell--footer {
	min-height: 0;
	display: block;
	background: var(--bg);
	overflow: visible;
	contain: none;
	transform: none;
	filter: none;
	isolation: auto;
}

body.bfo-page .xfin-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
}

.bfo-btn.bfo-btn--on-orange,
.bfo-btn.bfo-btn--on-orange.bfo-btn--primary {
	background: #14120e;
	color: #ffffff;
	box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5);
}

.bfo-btn.bfo-btn--on-orange:hover,
.bfo-btn.bfo-btn--on-orange.bfo-btn--primary:hover {
	background: #1c1a16;
	color: #ffffff;
	box-shadow: 0 24px 50px -14px rgba(0, 0, 0, .55);
}

.bfo-btn.bfo-btn--on-orange .bfo-btn__label,
.bfo-btn.bfo-btn--on-orange svg {
	position: relative;
	z-index: 1;
	color: #ffffff;
}

.bfo {
	--font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: var(--font-body);
	--mono: var(--font-body);
	--f-hero: clamp(40px, 4.4vw + 24px, 74px);
	--f-h2: clamp(32px, 2.5vw + 22px, 50px);
	--f-h3: clamp(23px, 1.1vw + 19px, 30px);
	--f-lead: clamp(20px, 1vw + 17px, 23px);
	--f-body: clamp(18px, 0.5vw + 16.6px, 20px);
	--f-small: 18px;
	--r-sm: 12px;
	--r: 18px;
	--r-lg: 28px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--focus: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);

	position: relative;
	min-height: 100vh;
	overflow-x: clip;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--f-body);
	line-height: 1.6;
}

.bfo *,
.bfo *::before,
.bfo *::after {
	box-sizing: border-box;
}

/* Resets use :where() so they never outrank component classes. */
:where(.bfo) :where(img, video, svg) {
	display: block;
	max-width: 100%;
}

:where(.bfo) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) {
	margin: 0;
}

:where(.bfo) :where(ul, ol) {
	padding: 0;
	list-style: none;
}

:where(.bfo) :where(a) {
	color: inherit;
}

:where(.bfo) :where(button) {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.bfo :focus-visible {
	outline: none;
	box-shadow: var(--focus);
	border-radius: 10px;
}

.bfo-skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: 10px;
	background: #fff;
	color: #111;
	font: 700 15px/1 system-ui, sans-serif;
}

.bfo-skip:focus {
	left: 12px;
}

/* Logos: show the one that reads on the current background. */
.bfo-logo {
	height: 26px;
	width: auto;
}

.bfo-logo--on-light {
	display: none;
}

html[data-theme="light"] .bfo-logo--on-light {
	display: block;
}

html[data-theme="light"] .bfo-logo--on-dark {
	display: none;
}

/* ---------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------ */
.bfo-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: var(--f-small);
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	isolation: isolate;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

.bfo-btn svg {
	flex: none;
	transition: transform .25s var(--ease);
}

.bfo-btn:hover svg {
	transform: translateX(3px);
}

.bfo-btn--primary {
	background: var(--grad);
	color: var(--accent-ink);
	box-shadow: 0 14px 34px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.bfo-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 44px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.bfo-btn--primary:active {
	transform: translateY(0);
}

.bfo-btn--ghost {
	background: transparent;
	color: var(--ink);
	box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.bfo-btn--ghost:hover {
	background: var(--surface);
}

.bfo-btn--sm {
	min-height: 42px;
	padding: 0 18px;
	font-size: 15px;
}

.bfo-btn--xl {
	min-height: 62px;
	padding: 0 34px;
	font-size: 19px;
}

.bfo-btn--block {
	width: 100%;
}

.bfo-btn[disabled],
.bfo-btn.is-busy {
	opacity: .7;
	pointer-events: none;
}

.bfo-btn__shine {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .45) 45%, transparent 65%);
	transform: translateX(-120%);
	animation: bfo-shine 3.6s var(--ease) infinite;
}

@keyframes bfo-shine {
	0%, 55% { transform: translateX(-120%); }
	100% { transform: translateX(120%); }
}

/* ---------------------------------------------------------------------------
   Live dot (blinking urgency)
   ------------------------------------------------------------------------ */
.bfo-live-dot {
	position: relative;
	display: inline-block;
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--hot, #ff3b30);
	vertical-align: middle;
}

.bfo-live-dot::after {
	content: "";
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 2px solid var(--hot, #ff3b30);
	animation: bfo-ping 1.4s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes bfo-ping {
	0% { transform: scale(.4); opacity: 1; }
	100% { transform: scale(1.6); opacity: 0; }
}

@keyframes bfo-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: .35; }
}

@keyframes bfo-pulse-glow {
	0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hot, #ff3b30) 55%, transparent); }
	50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--hot, #ff3b30) 0%, transparent); }
}

/* ---------------------------------------------------------------------------
   Theme toggle
   ------------------------------------------------------------------------ */
.bfo .xfin-theme-toggle {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line);
	transition: background .2s var(--ease), transform .2s var(--ease);
}

.bfo .xfin-theme-toggle:hover {
	transform: rotate(-12deg);
}

.bfo .xfin-theme-toggle__icon {
	display: grid;
	place-items: center;
}

.bfo .xfin-theme-toggle__icon--moon {
	display: none;
}

html[data-theme="light"] .bfo .xfin-theme-toggle__icon--sun {
	display: none;
}

html[data-theme="light"] .bfo .xfin-theme-toggle__icon--moon {
	display: grid;
}

/* ---------------------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------------------ */
.bfo-js .bfo-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.bfo-js .bfo-reveal[data-delay="1"] { transition-delay: .08s; }
.bfo-js .bfo-reveal[data-delay="2"] { transition-delay: .16s; }
.bfo-js .bfo-reveal[data-delay="3"] { transition-delay: .24s; }
.bfo-js .bfo-reveal[data-delay="4"] { transition-delay: .32s; }
.bfo-js .bfo-reveal[data-delay="5"] { transition-delay: .40s; }
.bfo-js .bfo-reveal[data-delay="6"] { transition-delay: .48s; }

.bfo-js .bfo-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ---------------------------------------------------------------------------
   Popup (base). Variants restyle the panel shape.
   ------------------------------------------------------------------------ */
.bfo-modal {
	position: fixed;
	inset: 0;
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: var(--font-body);
	color: var(--ink);
}

.bfo-modal[hidden] {
	display: none;
}

.bfo-modal__scrim {
	position: absolute;
	inset: 0;
	background: var(--scrim, rgba(5, 5, 10, .72));
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	opacity: 0;
	transition: opacity .35s var(--ease);
}

.bfo-modal.is-open .bfo-modal__scrim {
	opacity: 1;
}

.bfo-modal__panel {
	position: relative;
	width: min(640px, 100%);
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 30px 32px 28px;
	border-radius: var(--r-lg);
	background: var(--modal-bg);
	box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line);
	outline: none;
	opacity: 0;
	transform: translateY(24px) scale(.97);
	transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.bfo-modal.is-open .bfo-modal__panel {
	opacity: 1;
	transform: none;
}

.bfo-modal__x {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink-2);
	transition: transform .2s var(--ease), background .2s var(--ease);
}

.bfo-modal__x:hover {
	transform: rotate(90deg);
	background: var(--surface-2);
}

.bfo-modal__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	padding: 6px 14px 6px 12px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--hot, #ff3b30) 12%, transparent);
	color: var(--hot-ink, var(--ink));
	font-size: 14px;
	font-weight: 700;
}

.bfo-steps {
	display: flex;
	gap: 8px;
	margin-bottom: 18px;
}

.bfo-steps li {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	padding: 8px 10px;
	border-radius: 12px;
	background: var(--surface);
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
	transition: background .3s var(--ease), color .3s var(--ease);
}

.bfo-steps li span {
	display: grid;
	place-items: center;
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--surface-2);
	font-size: 13px;
}

.bfo-steps li.is-on {
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	color: var(--ink);
}

.bfo-steps li.is-on span,
.bfo-steps li.is-done span {
	background: var(--grad);
	color: var(--accent-ink);
}

.bfo-steps li.is-done {
	color: var(--ink-2);
}

.bfo-modal__timer {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--surface);
	color: var(--ink-2);
	font-size: 15px;
	font-weight: 600;
}

.bfo-modal__timer svg {
	color: var(--hot, #ff3b30);
}

.bfo-modal__timer b {
	margin-left: auto;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
}

.bfo-modal__title {
	font-family: var(--font-display);
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.bfo-modal__lead {
	margin: 8px 0 22px;
	color: var(--ink-2);
	font-size: 17px;
}

.bfo-pane[hidden],
.bfo-modal [hidden] {
	display: none !important;
}

.bfo-form__alert.is-shake {
	animation: bfo-shake .35s;
}

.bfo-pane {
	animation: bfo-pane-in .45s var(--ease);
}

@keyframes bfo-pane-in {
	from { opacity: 0; transform: translateX(16px); }
	to { opacity: 1; transform: none; }
}

/* Form */
.bfo-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 14px;
	margin-bottom: 20px;
}

.bfo-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.bfo-field--wide {
	grid-column: 1 / -1;
}

.bfo-field label {
	color: var(--ink-2);
	font-size: 14px;
	font-weight: 700;
}

.bfo-field input,
.bfo-field select {
	width: 100%;
	height: 50px;
	padding: 0 14px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: var(--input-bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}

.bfo-field input::placeholder {
	color: var(--muted);
	font-weight: 500;
	opacity: .8;
}

.bfo-field input:hover,
.bfo-field select:hover {
	border-color: var(--line-strong);
}

.bfo-field input:focus,
.bfo-field select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: var(--focus);
}

.bfo-field input[readonly] {
	opacity: .7;
	cursor: not-allowed;
}

.bfo-field.is-bad input,
.bfo-field.is-bad select {
	border-color: var(--bad, #ef4444);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad, #ef4444) 18%, transparent);
	animation: bfo-shake .35s;
}

.bfo-field.is-ok input,
.bfo-field.is-ok select {
	border-color: color-mix(in srgb, var(--good, #22c55e) 70%, var(--line));
}

@keyframes bfo-shake {
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

.bfo-field__err {
	color: var(--bad, #ef4444);
	font-size: 13px;
	font-weight: 700;
}

.bfo-select {
	position: relative;
}

.bfo-select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--ink-2);
	border-bottom: 2px solid var(--ink-2);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.bfo-select select {
	padding-right: 40px;
}

.bfo-pass {
	position: relative;
}

.bfo-pass input {
	padding-right: 48px;
}

.bfo-pass__eye {
	position: absolute;
	top: 50%;
	right: 6px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--muted);
	transform: translateY(-50%);
}

.bfo-pass__eye[aria-pressed="true"] {
	color: var(--accent);
}

.bfo-form__alert {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--bad, #ef4444) 12%, transparent);
	color: var(--bad-ink, var(--bad, #ef4444));
	font-size: 15px;
	font-weight: 700;
}

.bfo-form__alert a {
	text-decoration: underline;
}

.bfo-fine {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 14px;
	color: var(--muted);
	font-size: 14px;
	text-align: center;
}

.bfo-fine a {
	color: var(--ink);
	font-weight: 700;
}

/* Card step */
.bfo-bill {
	margin-bottom: 20px;
	padding: 6px 16px;
	border-radius: 16px;
	background: var(--surface);
}

.bfo-bill li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px dashed var(--line);
	font-size: 16px;
}

.bfo-bill li:last-child {
	border-bottom: 0;
}

.bfo-bill span {
	color: var(--ink-2);
	font-weight: 600;
}

.bfo-bill b {
	font-variant-numeric: tabular-nums;
}

.bfo-bill .is-free {
	padding: 2px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--good, #22c55e) 16%, transparent);
	color: var(--good-ink, var(--good, #22c55e));
}

.bfo-bill .is-later span,
.bfo-bill .is-later b {
	color: var(--muted);
}

.bfo-card-el {
	min-height: 120px;
	margin-bottom: 18px;
}

.bfo-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 120px;
	border-radius: 14px;
	background: var(--surface);
	color: var(--muted);
	font-size: 15px;
	font-weight: 600;
}

.bfo-spin {
	width: 18px;
	height: 18px;
	border: 2.5px solid var(--line-strong);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: bfo-spin .8s linear infinite;
}

@keyframes bfo-spin {
	to { transform: rotate(360deg); }
}

/* Done */
.bfo-pane--done {
	text-align: center;
}

.bfo-burst {
	position: relative;
	display: grid;
	place-items: center;
	width: 92px;
	height: 92px;
	margin: 8px auto 20px;
	border-radius: 50%;
	background: var(--grad);
	color: var(--accent-ink);
	box-shadow: 0 20px 50px -14px var(--glow);
	animation: bfo-pop .6s var(--ease);
}

.bfo-burst::before {
	content: "";
	position: absolute;
	inset: -12px;
	border-radius: 50%;
	border: 2px dashed color-mix(in srgb, var(--accent) 50%, transparent);
	animation: bfo-spin 12s linear infinite;
}

.bfo-burst--muted {
	background: var(--surface-2);
	color: var(--ink-2);
	box-shadow: none;
}

@keyframes bfo-pop {
	0% { transform: scale(.4); opacity: 0; }
	70% { transform: scale(1.08); opacity: 1; }
	100% { transform: scale(1); }
}

.bfo-next {
	display: grid;
	gap: 10px;
	margin: 0 auto 24px;
	max-width: 360px;
	text-align: left;
}

.bfo-next li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.bfo-next svg {
	flex: none;
	color: var(--good, #22c55e);
}

.bfo-confetti {
	position: fixed;
	inset: 0;
	z-index: 950;
	pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------------------ */
.bfo-lightbox {
	position: fixed;
	inset: 0;
	z-index: 920;
	display: grid;
	place-items: center;
	padding: 24px;
}

.bfo-lightbox[hidden] {
	display: none;
}

.bfo-lightbox__scrim {
	position: absolute;
	inset: 0;
	background: rgba(4, 4, 8, .9);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.bfo-lightbox__panel {
	position: relative;
	width: min(1100px, 100%);
	animation: bfo-pop .45s var(--ease);
}

.bfo-lightbox__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 20px;
	background: #000;
	box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8);
}

.bfo-lightbox__frame iframe,
.bfo-lightbox__frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.bfo-lightbox__title {
	margin-top: 14px;
	color: #fff;
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 700;
	text-align: center;
}

.bfo-lightbox__x {
	position: absolute;
	top: -52px;
	right: 0;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
}

.bfo-lightbox__x:hover {
	background: rgba(255, 255, 255, .22);
}

/* ---------------------------------------------------------------------------
   Responsive + motion
   ------------------------------------------------------------------------ */
@media (max-width: 640px) {
	.bfo {
		font-size: 17px;
	}

	.bfo-modal {
		align-items: flex-end;
		padding: 0;
	}

	.bfo-modal__panel {
		width: 100%;
		max-height: 94vh;
		max-height: 94dvh;
		padding: 24px 18px 22px;
		border-radius: 26px 26px 0 0;
		transform: translateY(40px);
	}

	.bfo-form__grid {
		grid-template-columns: 1fr;
	}

	.bfo-steps li {
		padding: 7px 8px;
		font-size: 13px;
	}

	.bfo-btn--xl {
		min-height: 58px;
		padding: 0 26px;
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bfo *,
	.bfo *::before,
	.bfo *::after,
	.bfo-modal *,
	.bfo-lightbox * {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}

	.bfo-js .bfo-reveal {
		opacity: 1;
		transform: none;
	}
}
