/* Festive mode (inc/festive.php): lab-readout promo strip, rising particles, page motion. */

/* ---------- Promo strip: a lab readout ---------- */
.bm-fstrip {
	--fx-cyan: #3fd0e6;
	--fx-teal: #1aa6bd;
	position: relative;
	overflow: hidden;
	background: linear-gradient(90deg, #03111a 0%, #062430 50%, #03111a 100%);
	color: #e8f6fa;
	z-index: 30;
}
.bm-festive--snow .bm-fstrip {
	--fx-cyan: #cfeaff;
	--fx-teal: #8fc6ec;
}
.bm-fstrip__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(63, 208, 230, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(63, 208, 230, .07) 1px, transparent 1px);
	background-size: 18px 18px;
	mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
	animation: bm-fx-grid 14s linear infinite;
}
.bm-fstrip__scan {
	position: absolute;
	top: 0;
	bottom: 0;
	left: -30%;
	width: 30%;
	background: linear-gradient(90deg, transparent, rgba(63, 208, 230, .14), transparent);
	animation: bm-fx-scan 6s ease-in-out infinite;
}
.bm-fstrip__flow {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--fx-teal), var(--fx-cyan), #fff, var(--fx-cyan), var(--fx-teal), transparent);
	background-size: 200% 100%;
	animation: bm-fx-flow 3.5s linear infinite;
}
.bm-fstrip__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 26px;
	min-height: 54px;
	padding: 8px 20px;
	color: inherit;
	text-decoration: none;
}
.bm-fstrip__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 11px;
	border: 1px solid rgba(63, 208, 230, .35);
	border-radius: 999px;
	font-family: "IBM Plex Mono", monospace;
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--fx-cyan);
	white-space: nowrap;
}
.bm-fstrip__badge i {
	position: relative;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--fx-cyan);
}
.bm-fstrip__badge i::after {
	content: "";
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 1.5px solid var(--fx-cyan);
	animation: bm-fx-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
.bm-fstrip__offer {
	display: flex;
	align-items: baseline;
	gap: 14px;
	min-width: 0;
}
.bm-fstrip__big {
	font-family: "IBM Plex Sans", Arial, sans-serif;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.02em;
	white-space: nowrap;
	background: linear-gradient(100deg, #ffffff 0%, #ffffff 40%, var(--fx-cyan) 50%, #ffffff 60%, #ffffff 100%);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: bm-fx-shine-text 4.5s linear infinite;
}
.bm-fstrip__sub {
	font-family: "IBM Plex Mono", monospace;
	font-size: 11.5px;
	letter-spacing: .04em;
	color: #8fb6c2;
	white-space: nowrap;
}
.bm-fstrip__inner:hover .bm-fstrip__sub {
	color: #d6eef4;
}
.bm-fstrip__count {
	display: inline-flex;
	gap: 5px;
}
.bm-fstrip__cell {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	min-width: 38px;
	padding: 3px 5px 2px;
	border: 1px solid rgba(63, 208, 230, .22);
	border-radius: 6px;
	background: rgba(0, 0, 0, .28);
	box-shadow: inset 0 0 12px rgba(63, 208, 230, .08);
}
.bm-fstrip__cell b {
	font-family: "IBM Plex Mono", monospace;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: #fff;
	text-shadow: 0 0 8px rgba(63, 208, 230, .55);
}
.bm-fstrip__cell small {
	font-family: "IBM Plex Mono", monospace;
	font-size: 7.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #6f97a3;
}
.bm-fstrip__go {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--fx-cyan);
	color: #03111a;
	font-weight: 700;
	transition: transform .25s ease;
}
.bm-fstrip__inner:hover .bm-fstrip__go {
	transform: translateX(3px);
}

@media (max-width: 900px) {
	.bm-fstrip__inner {
		flex-wrap: wrap;
		gap: 6px 10px;
		padding: 9px 14px 10px;
	}
	.bm-fstrip__badge {
		display: none;
	}
	.bm-fstrip__offer {
		flex-direction: column;
		align-items: center;
		gap: 2px;
		flex-basis: 100%;
		text-align: center;
	}
	.bm-fstrip__big {
		font-size: 18px;
	}
	.bm-fstrip__sub {
		font-size: 10.5px;
		white-space: normal;
	}
	.bm-fstrip__cell {
		min-width: 34px;
	}
	.bm-fstrip__cell b {
		font-size: 13px;
	}
	.bm-fstrip__go {
		display: none;
	}
}

/* ---------- Fall sale look (effect = fall) ---------- */
.bm-festive--fall .bm-fstrip {
	--fx-cyan: #ffc46b;
	--fx-teal: #f08a32;
	background:
		radial-gradient(60% 180% at 50% 130%, rgba(255, 170, 70, .35), transparent 70%),
		linear-gradient(90deg, #2c0d05 0%, #6b200c 22%, #a8401a 50%, #6b200c 78%, #2c0d05 100%);
	color: #fff4e4;
}
.bm-festive--fall .bm-fstrip__grid {
	display: none;
}
.bm-festive--fall .bm-fstrip__scan {
	background: linear-gradient(90deg, transparent, rgba(255, 196, 107, .22), transparent);
}
.bm-festive--fall .bm-fstrip__flow {
	height: 3px;
	background: linear-gradient(90deg, #6b200c, #f08a32, #ffd28a, #fff2d6, #ffd28a, #f08a32, #6b200c);
	background-size: 200% 100%;
}
.bm-festive--fall .bm-fstrip__badge {
	border-color: rgba(255, 210, 140, .45);
	background: rgba(44, 13, 5, .35);
	color: #ffd28a;
}
.bm-fx-maple {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	animation: bm-fx-twirl 6s ease-in-out infinite;
}
.bm-festive--fall .bm-fstrip__big {
	font-size: 21px;
	text-transform: uppercase;
	letter-spacing: .01em;
	background-image: linear-gradient(100deg, #fff4e4 0%, #fff4e4 40%, #ffc46b 50%, #fff4e4 60%, #fff4e4 100%);
}
.bm-festive--fall .bm-fstrip__sub {
	color: #ffd8a8;
}
.bm-festive--fall .bm-fstrip__cell {
	border-color: rgba(255, 210, 140, .35);
	background: rgba(44, 13, 5, .45);
	box-shadow: inset 0 0 12px rgba(255, 170, 70, .12);
}
.bm-festive--fall .bm-fstrip__cell b {
	color: #fff4e4;
	text-shadow: 0 0 8px rgba(255, 170, 70, .6);
}
.bm-festive--fall .bm-fstrip__cell small {
	color: #e9a868;
}
.bm-festive--fall .bm-fstrip__go {
	background: #ffc46b;
	color: #2c0d05;
}

/* Hero: fall badge, warm glow, amber tiles. */
.bm-fx-herobadge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	padding: 6px 13px;
	border: 1px solid rgba(255, 196, 107, .45);
	border-radius: 999px;
	background: rgba(168, 64, 26, .22);
	font-family: "IBM Plex Mono", monospace;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #ffd28a;
}
.bm-festive--fall .bm-bogo-hero::after {
	content: "";
	position: absolute;
	z-index: 1;
	right: 8%;
	bottom: -20%;
	width: 55%;
	height: 80%;
	background: radial-gradient(closest-side, rgba(240, 138, 50, .38), transparent);
	pointer-events: none;
	animation: bm-fx-ember 7s ease-in-out infinite;
}
.bm-festive--fall .bm-bogo-hero__tiles li {
	animation-name: bm-fx-glow-amber;
}
.bm-festive--fall .bm-bogo-hero__tag span {
	color: #ffc46b;
}
@media (max-width: 1023px) {
	.bm-festive--fall .bm-bogo-hero::after {
		display: none;
	}
}
@keyframes bm-fx-twirl {
	0%, 100% { transform: rotate(-14deg); }
	50%      { transform: rotate(14deg); }
}
@keyframes bm-fx-ember {
	0%, 100% { opacity: .7; transform: scale(1); }
	50%      { opacity: 1; transform: scale(1.08); }
}
@keyframes bm-fx-glow-amber {
	0%, 70%, 100% { border-color: rgba(255, 255, 255, .14); box-shadow: none; }
	35%           { border-color: rgba(255, 196, 107, .6); box-shadow: 0 0 18px -4px rgba(240, 138, 50, .5); }
}

/* ---------- Whole-site rising particles (canvas made by festive.js) ---------- */
.bm-fx-canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 40;
}

/* ---------- Page motion ---------- */
/* Scroll reveal: only below-the-fold elements get .bm-fx-hide (no flash). */
.bm-fx-hide {
	opacity: 0;
	transform: translateY(22px);
}
.bm-fx-in {
	opacity: 1;
	transform: none;
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

/* A light sweep across the main buttons. */
.bm-festive .bm-btn--primary,
.bm-festive .bm-bogo-hero__btn,
.bm-festive .bm-pcard__cta {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.bm-festive .bm-btn--primary::after,
.bm-festive .bm-bogo-hero__btn::after,
.bm-festive .bm-pcard__cta::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-20deg);
	animation: bm-fx-sweep 4.5s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
}
.bm-festive .bm-pcard__cta::after {
	animation-delay: 1.5s;
}

/* Cards lift on hover. */
.bm-festive .bm-pcard,
.bm-festive .bm-card {
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.bm-festive .bm-pcard:hover,
.bm-festive .bm-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 40px -22px rgba(7, 26, 36, .45);
}

/* Homepage hero: vials breathe, copy staggers in. */
.bm-festive .bm-bogo-hero__plate img {
	animation: bm-fx-breathe 9s ease-in-out infinite;
	transform-origin: 72% 55%;
}
.bm-festive .bm-bogo-hero__copy > * {
	animation: bm-fx-up .8s cubic-bezier(.2, .8, .2, 1) both;
}
.bm-festive .bm-bogo-hero__copy > *:nth-child(2) { animation-delay: .08s; }
.bm-festive .bm-bogo-hero__copy > *:nth-child(3) { animation-delay: .16s; }
.bm-festive .bm-bogo-hero__copy > *:nth-child(4) { animation-delay: .24s; }
.bm-festive .bm-bogo-hero__copy > *:nth-child(5) { animation-delay: .32s; }
.bm-festive .bm-bogo-hero__tiles li {
	animation: bm-fx-glow 4s ease-in-out infinite;
}
.bm-festive .bm-bogo-hero__tiles li:nth-child(2) { animation-delay: 1.3s; }
.bm-festive .bm-bogo-hero__tiles li:nth-child(3) { animation-delay: 2.6s; }
.bm-festive .bm-bogo-hero__muted {
	background-size: 220% 100%;
	background-image: linear-gradient(100deg, #6f8590 0%, #b9cbd3 35%, #ffffff 48%, #b9cbd3 60%, #6f8590 100%);
	animation: bm-fx-shine-text 6s linear infinite;
}

/* Trust bar ticks pop in turn. */
.bm-festive .bm-trustbar__check {
	animation: bm-fx-pop 4s ease-in-out infinite;
}
.bm-festive .bm-trustbar__item:nth-child(2) .bm-trustbar__check { animation-delay: .5s; }
.bm-festive .bm-trustbar__item:nth-child(3) .bm-trustbar__check { animation-delay: 1s; }
.bm-festive .bm-trustbar__item:nth-child(4) .bm-trustbar__check { animation-delay: 1.5s; }

/* ---------- Keyframes ---------- */
@keyframes bm-fx-shine-text {
	from { background-position: 100% 0; }
	to   { background-position: -150% 0; }
}
@keyframes bm-fx-grid {
	from { background-position: 0 0, 0 0; }
	to   { background-position: 0 0, 180px 0; }
}
@keyframes bm-fx-scan {
	0%   { left: -30%; }
	60%, 100% { left: 110%; }
}
@keyframes bm-fx-flow {
	from { background-position: 100% 0; }
	to   { background-position: -100% 0; }
}
@keyframes bm-fx-ping {
	0%   { transform: scale(.4); opacity: .9; }
	100% { transform: scale(1.6); opacity: 0; }
}
@keyframes bm-fx-sweep {
	0%, 55% { left: -60%; }
	85%, 100% { left: 130%; }
}
@keyframes bm-fx-breathe {
	0%, 100% { transform: scale(1) translateY(0); }
	50%      { transform: scale(1.025) translateY(-6px); }
}
@keyframes bm-fx-up {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}
@keyframes bm-fx-glow {
	0%, 70%, 100% { border-color: rgba(255, 255, 255, .14); box-shadow: none; }
	35%           { border-color: rgba(63, 208, 230, .55); box-shadow: 0 0 18px -4px rgba(63, 208, 230, .45); }
}
@keyframes bm-fx-pop {
	0%, 80%, 100% { transform: scale(1); }
	88%           { transform: scale(1.22); }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.bm-festive *,
	.bm-festive *::before,
	.bm-festive *::after {
		animation: none !important;
		transition: none !important;
	}
	.bm-fstrip__scan,
	.bm-fx-canvas {
		display: none !important;
	}
	.bm-fx-hide {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Light hero: the accents need darker inks on a pale backdrop ---------- */
.bm-festive .bm-bogo-hero--light .bm-bogo-hero__muted {
	background-image: linear-gradient(100deg, #1668b0 0%, #0f9bb5 35%, #4cc3dd 48%, #0f9bb5 60%, #1668b0 100%);
}
.bm-festive--fall .bm-bogo-hero--light .bm-bogo-hero__muted {
	background-image: linear-gradient(100deg, #a8401a 0%, #cf5f17 35%, #f0962e 48%, #cf5f17 60%, #a8401a 100%);
}
.bm-festive--fall .bm-bogo-hero--light::after {
	display: none;
}
.bm-bogo-hero--light .bm-fx-herobadge {
	border-color: rgba(168, 64, 26, .45);
	background: rgba(255, 255, 255, .55);
	color: #8a3413;
}
.bm-festive--fall .bm-bogo-hero--light .bm-bogo-hero__tag span {
	color: #b4501c;
}
.bm-festive .bm-bogo-hero--light .bm-bogo-hero__tiles li {
	animation-name: bm-fx-glow-light;
}
.bm-festive--fall .bm-bogo-hero--light .bm-bogo-hero__tiles li {
	animation-name: bm-fx-glow-light-amber;
}
@keyframes bm-fx-glow-light {
	0%, 70%, 100% { border-color: rgba(10, 34, 56, .14); box-shadow: none; }
	35%           { border-color: rgba(15, 155, 181, .6); box-shadow: 0 0 18px -4px rgba(15, 155, 181, .45); }
}
@keyframes bm-fx-glow-light-amber {
	0%, 70%, 100% { border-color: rgba(10, 34, 56, .14); box-shadow: none; }
	35%           { border-color: rgba(207, 95, 23, .6); box-shadow: 0 0 18px -4px rgba(207, 95, 23, .45); }
}
