/*
 * Best Before · Home page (Concept B §4.1 desktop, §5.1 mobile).
 * Loaded only on the front page via bbt_page_context(). Tokens from main.css.
 */

.bb-home { padding-top: 0; }
.bb-home-mobile { display: none; }

/* ---------- Hero + savings tracker ---------- */
.bb-home-hero {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--bb-gap);
	padding-top: clamp(16px, 2.4vw, 28px);
}
.bb-home-hero--full { grid-template-columns: 1fr; }

.bb-hero {
	position: relative;
	display: flex;
	overflow: hidden;
	min-height: 400px;
	border-radius: var(--bb-r-hero);
	background: var(--bb-ink);
}
.bb-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.bb-hero__content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: auto;
	max-width: 640px;
	padding: clamp(22px, 4vw, 48px);
}
.bb-hero__badge {
	align-self: flex-start;
	padding: 6px 12px;
	border-radius: var(--bb-r-pill);
	background: var(--bb-yellow);
	color: var(--bb-ink);
	font-size: .8125rem;
	font-weight: 700;
}
.bb-hero__heading { margin: 0; max-width: 640px; color: #fff; font-size: clamp(1.75rem, 1.15rem + 2.6vw, 3.5rem); }
.bb-hero__sub { margin: 0; max-width: 560px; color: #eee; font-size: clamp(.9375rem, .85rem + .4vw, 1.125rem); line-height: 1.5; }
.bb-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.bb-hero__ghost { background: transparent; border: 2px solid rgba(255, 255, 255, .7); color: #fff; font-weight: 600; }
.bb-hero__ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.bb-tracker {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(20px, 2.6vw, 32px);
	border-radius: var(--bb-r-hero);
	background: var(--bb-yellow);
	color: var(--bb-ink);
}
.bb-tracker__label { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; }
.bb-tracker__figure { margin: 0; font-family: var(--bb-font-display); font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.75rem); line-height: .95; font-weight: 800; }
.bb-tracker__pct { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.bb-tracker__bar { height: 14px; border-radius: var(--bb-r-pill); background: rgba(17, 17, 17, .12); overflow: hidden; }
.bb-tracker__fill { height: 100%; border-radius: inherit; background: var(--bb-ink); }
.bb-tracker__totals { display: flex; justify-content: space-between; font-size: .8125rem; font-weight: 600; }
.bb-tracker__countdown {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
	padding: 16px;
	border-radius: var(--bb-r-tile);
	background: var(--bb-surface);
}
.bb-tracker__countdown strong { font-size: 1rem; }
.bb-tracker__countdown span { font-size: .8125rem; color: var(--bb-muted); }

/* ---------- Trust strip ---------- */
.bb-trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-top: clamp(20px, 3vw, 32px);
}
.bb-trust__tile { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--bb-border-2); border-radius: var(--bb-r-tile); background: var(--bb-surface); }
.bb-trust__icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: var(--bb-r-control); background: var(--bb-soft-yellow); color: var(--bb-ink); }
.bb-trust__title { display: block; font-size: .9375rem; }
.bb-trust__sub { font-size: .8125rem; color: var(--bb-muted); }

/* ---------- Ending soon / Just in rail (desktop) ---------- */
.bb-home-rail { margin-top: var(--bb-section); }
.bb-home-rail__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.bb-home-rail__head h2 { margin: 0; }

/* ---------- Rail tiles ---------- */
.bb-railtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--bb-gap); margin-top: var(--bb-section); }
.bb-railtile { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 180px; padding: 32px; border-radius: var(--bb-r-panel); text-decoration: none; }
.bb-railtile--dark { background: var(--bb-ink); }
.bb-railtile--dark .bb-railtile__title { color: var(--bb-yellow); }
.bb-railtile--dark .bb-railtile__sub { color: #fff; }
.bb-railtile--yellow { background: var(--bb-yellow); }
.bb-railtile--white { background: var(--bb-surface); border: 1px solid var(--bb-border-2); }
.bb-railtile__title { font-family: var(--bb-font-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); font-weight: 800; color: var(--bb-ink); }
.bb-railtile__sub { font-weight: 600; color: var(--bb-ink); }

/* ---------- How it works: number as a bled-off yellow-outline watermark ---------- */
.bb-steps { margin-top: var(--bb-section); }
.bb-steps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--bb-gap); margin: 0; padding: 0; list-style: none; }
.bb-step {
	position: relative;
	overflow: hidden;
	min-height: 220px;
	padding: 28px;
	border: 1px solid var(--bb-border-2);
	border-radius: var(--bb-r-panel);
	background: var(--bb-surface);
}
/* 4px yellow accent bar, top-left */
.bb-step::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 44px;
	height: 4px;
	background: var(--bb-yellow);
	border-radius: 0 0 4px 0;
}
.bb-step__body { position: relative; z-index: 1; padding-right: 96px; }
.bb-step__eyebrow { margin: 0 0 8px; color: var(--bb-muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bb-step h3 { margin: 0 0 8px; font-size: 1.125rem; }
.bb-step p:last-child { margin: 0; color: var(--bb-body); line-height: 1.55; }
.bb-step__num {
	position: absolute;
	right: -6px;
	bottom: -34px;
	z-index: 0;
	font-family: var(--bb-font-display);
	font-weight: 800;
	font-size: 180px;
	line-height: 1;
	color: rgba(255, 207, 2, .35); /* fallback when background-clip:text isn't supported */
	-webkit-text-stroke: 2px rgba(255, 207, 2, .9);
	background: linear-gradient(180deg, rgba(255, 207, 2, .28), rgba(255, 207, 2, 0) 75%);
	-webkit-background-clip: text;
	background-clip: text;
	pointer-events: none;
	user-select: none;
	transition: transform .2s var(--bb-ease);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
	.bb-step__num { color: transparent; }
}
@media (hover: hover) and (pointer: fine) {
	.bb-step:hover .bb-step__num { transform: translateY(-4px); }
}
@media (max-width: 767px) {
	.bb-step__num { right: -4px; bottom: -24px; font-size: 132px; }
	.bb-step__body { padding-right: 72px; }
}

/* ---------- Branch + newsletter row ---------- */
.bb-branchrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--bb-gap); margin-top: var(--bb-section); margin-bottom: var(--bb-section); }
.bb-branchrow > :only-child { grid-column: 1 / -1; max-width: 640px; }
.bb-branchcard, .bb-newslettercard { padding: 28px; border-radius: var(--bb-r-panel); }
.bb-branchcard { background: var(--bb-surface); border: 1px solid var(--bb-border-2); }
.bb-branchcard h3 { margin: 0 0 14px; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.625rem); }
.bb-branchcard__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bb-newslettercard { display: flex; flex-direction: column; gap: 14px; background: var(--bb-ink); color: #fff; }
.bb-newslettercard h3 { margin: 0; color: var(--bb-yellow); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.625rem); }
.bb-newslettercard p { margin: 0; color: #ddd; line-height: 1.55; }
.bb-newslettercard form, .bb-newslettercard input, .bb-newslettercard button { max-width: 100%; }

/* ---------- Mobile weekly-deals header (replaces hero+tracker <768px) ---------- */
.bb-home-mobile__head { padding-top: 16px; }
.bb-home-mobile__title { margin: 0; font-size: 1.875rem; }
.bb-home-mobile__sub { margin: 4px 0 0; font-size: .875rem; color: var(--bb-muted); }
.bb-home-mobile__chips { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.bb-home-mobile__chips::-webkit-scrollbar { display: none; }
.bb-home-mobile__banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 16px 18px; border-radius: var(--bb-r-tile); background: var(--bb-yellow); color: var(--bb-ink); }
.bb-home-mobile__save { display: block; font-family: var(--bb-font-display); font-size: 1.5rem; }
.bb-home-mobile__banner span:not(.bb-home-mobile__pct) { font-size: .8125rem; font-weight: 600; }
.bb-home-mobile__pct { font-family: var(--bb-font-display); font-size: 1.75rem; font-weight: 800; flex: none; }
.bb-home-mobile__grid { margin-top: 14px; }

/* ---------- Hero carousel controls ---------- */
.bb-hero--carousel { cursor: default; }
.bb-hero__slide { position: absolute; inset: 0; display: flex; }
.bb-hero__controls { position: absolute; z-index: 2; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); display: flex; align-items: center; gap: 12px; }
.bb-hero__pause { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--bb-r-pill); background: rgba(17, 17, 17, .45); color: #fff; font-size: .75rem; font-weight: 700; cursor: pointer; }
.bb-hero__pause:hover { background: rgba(17, 17, 17, .7); }
.bb-hero__dots { display: flex; gap: 6px; }
.bb-hero__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .45); cursor: pointer; }
.bb-hero__dot.is-active { background: var(--bb-yellow); }
.bb-hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Urgency strip ("When it's gone, it's gone") — yellow, high-contrast ink text ---------- */

/* ---------- Weekly Bargains & Special Deals banner: split layout ---------- */
.bb-specialdeals { margin-top: var(--bb-section); }
.bb-specialdeals__panel { display: flex; overflow: hidden; min-height: 320px; max-height: 380px; border-radius: var(--bb-r-hero); background: var(--bb-ink); }
.bb-specialdeals__content { display: flex; flex: 1 1 55%; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; min-width: 0; padding: clamp(24px, 3.5vw, 44px); }
.bb-specialdeals__eyebrow { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: var(--bb-r-pill); background: var(--bb-yellow); color: var(--bb-ink); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.bb-specialdeals__heading { margin: 0; color: #fff; font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem); line-height: 1.15; }
.bb-specialdeals__text { margin: 0; max-width: 46ch; color: #ddd; font-size: .9375rem; line-height: 1.55; }
.bb-specialdeals__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.bb-specialdeals__chips .bb-chip { height: 36px; padding: 0 14px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; font-size: .8125rem; }
.bb-specialdeals__chips .bb-chip:hover { border-color: #fff; }
.bb-specialdeals__cta { margin-top: 6px; }
.bb-specialdeals__media { flex: 1 1 45%; display: block; min-width: 0; }
.bb-specialdeals__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Best sellers rail (visible at every width, unlike the "Just in" rail) ---------- */
.bb-bestsellers { margin-top: var(--bb-section); }
.bb-bestsellers__head { margin-bottom: 20px; }
.bb-bestsellers__headrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.bb-bestsellers__headrow h2 { margin: 0; }
.bb-bestsellers__headrow .bb-link { flex: none; }
.bb-bestsellers__sub { margin: 6px 0 0; color: var(--bb-muted); font-size: .9375rem; }
@media (min-width: 1024px) {
	/* One line (or a natural wrap across the full width) at desktop — never
	   narrowed to an awkward max-width that strands the last few words. */
	.bb-bestsellers__sub { max-width: none; white-space: normal; }
}

/* ---------- Safety band ("Is it safe? 100%") ---------- */
.bb-safetyband { margin-top: var(--bb-section); }
.bb-safetyband__panel { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: var(--bb-r-panel); background: var(--bb-ink); color: #fff; }
.bb-safetyband__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.bb-safetyband__text { flex: 1 1 420px; min-width: 0; }
.bb-safetyband__text h2 { margin: 0 0 6px; max-width: 45ch; color: #fff; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.3; }
.bb-safetyband__sub { margin: 0; max-width: 60ch; color: #bbb; font-weight: 400; font-size: .9375rem; line-height: 1.5; }
.bb-safetyband__badge { flex: none; margin: 0; padding: 10px 18px; border-radius: var(--bb-r-pill); background: var(--bb-yellow); color: var(--bb-ink); font-family: var(--bb-font-display); font-weight: 800; font-size: 1.0625rem; white-space: nowrap; }
.bb-safetyband__chips { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; }
.bb-safetyband__chips li { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--bb-r-pill); background: rgba(255, 255, 255, .1); color: #fff; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.bb-safetyband__tags { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
.bb-safetyband__tags li { display: flex; align-items: center; gap: 8px; font-size: .9375rem; color: #fff; }
.bb-safetyband__tags .bb-icon { flex: none; color: var(--bb-yellow); }

/* ---------- Rewards promo ---------- */
.bb-rewardspromo { margin-top: var(--bb-section); }
.bb-rewardspromo__panel { padding: clamp(24px, 3vw, 40px); border-radius: var(--bb-r-panel); background: var(--bb-surface); border: 1px solid var(--bb-border-2); }
.bb-rewardspromo__panel h2 { margin: 0 0 20px; }
.bb-rewardspromo__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--bb-gap); margin-bottom: 22px; }
.bb-rewardspromo__col h3 { margin: 0 0 10px; font-size: 1.125rem; }
.bb-rewardspromo__col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bb-rewardspromo__col li { position: relative; padding-left: 20px; color: var(--bb-body); font-size: .9375rem; }
.bb-rewardspromo__col li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--bb-yellow); }
.bb-rewardspromo__col p { margin: 0 0 12px; color: var(--bb-body); line-height: 1.55; }
.bb-rewardspromo__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hand-drawn underline under "Earn Rewards" only: scales with the text via a
   stretched (non-uniform) inline SVG, so it works at any heading width. */
.bb-rewardspromo__underline { position: relative; display: inline-block; }
.bb-rewardspromo__underline::after {
	content: "";
	position: absolute;
	left: -2%;
	right: -2%;
	bottom: -.12em;
	height: .18em;
	min-height: 6px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14 Q20 3 40 12 T80 9 T120 14 T160 7 T198 12' fill='none' stroke='%23E0B800' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 100% 100%;
	pointer-events: none;
}

/* Right column "how to spend" steps (real copy, bbt_home_rewards_data()). */
.bb-rewardspromo__steps { counter-reset: bbt-step; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bb-rewardspromo__steps li { counter-increment: bbt-step; position: relative; padding-left: 28px; color: var(--bb-body); font-size: .9375rem; line-height: 1.5; }
.bb-rewardspromo__steps li::before { content: counter(bbt-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bb-ink); color: var(--bb-yellow); font-size: .75rem; font-weight: 700; }

/* ---------- Why shop with Best Before (3 cols) ---------- */
.bb-whyshop { margin-top: var(--bb-section); }
.bb-whyshop__heading { text-align: center; margin: 0 0 24px; }
.bb-whyshop__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--bb-gap); }
.bb-whyshop__col { padding: 26px; border: 1px solid var(--bb-border-2); border-radius: var(--bb-r-panel); background: var(--bb-surface); text-align: center; }
.bb-whyshop__col h3 { margin: 0 0 10px; font-size: 1.0625rem; text-transform: uppercase; }
.bb-whyshop__col p { margin: 0; color: var(--bb-body); font-size: .9375rem; line-height: 1.6; }

/* "About" teaser strip at the foot of Why Shop (Gary, 16 Nov 2026 — replaces
   a full About section; links to the real About page once published). */
.bb-whyshop__about { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: var(--bb-section); padding-top: 20px; border-top: 1px solid var(--bb-border-2); text-align: left; }
.bb-whyshop__about p { margin: 0; color: var(--bb-muted); font-size: .9375rem; }
.bb-whyshop__about .bb-link { flex: none; }
@media (max-width: 767px) {
	.bb-whyshop__about { flex-direction: column; align-items: flex-start; }
}

/* ---------- Facebook embed ---------- */
.bb-fbembed { margin-top: var(--bb-section); margin-bottom: var(--bb-section); }
.bb-fbembed__panel { padding: clamp(22px, 3vw, 32px); border-radius: var(--bb-r-panel); background: var(--bb-surface); border: 1px solid var(--bb-border-2); text-align: center; }
.bb-fbembed__panel h2 { margin: 0 0 6px; }
.bb-fbembed__panel p { margin: 0 0 16px; color: var(--bb-muted); }
.bb-fbembed__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.bb-fbembed__frame { margin: 20px auto 0; max-width: 500px; }
.bb-fbembed__frame[hidden] { display: none; }
.bb-fbembed__frame iframe { width: 100%; border: 0; border-radius: var(--bb-r-tile); }

/* ---------- H9 fix: how-it-works H3 is Inter 700, not Fira 800 (MOCKUP-FIDELITY) ---------- */
.bb-step h3 { font-family: var(--bb-font-body); font-weight: 700; }

/* ---------- H10 fix: branch chips, soft filled tint instead of white-bordered ---------- */
.bb-branchcard__chips .bb-chip { background: var(--bb-ground); border-color: transparent; }

/* ---------- H8 fix: rail tiles need real height so "Bulk & case buys" reads as a peer tile ---------- */
.bb-railtile { min-height: 240px; }

/* ---------- Mobile deals: see-all link, static chip ---------- */
.bb-home-mobile__seeall { display: inline-flex; margin-top: 14px; }
.bb-chip--static { cursor: default; }
.bb-chip--static:hover { border-color: var(--bb-border); }

/* ================= Responsive ================= */
@media (max-width: 900px) {
	.bb-home-hero { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.bb-home-hero, .bb-home-rail { display: none; }
	.bb-home-mobile { display: block; }
	/* Phones: icon beside the heading, then tags and link full width. The text block's
	   desktop flex-basis (260px) became a 260px HEIGHT in a column layout - the gap Gary saw. */
	.bb-specialdeals__panel { flex-direction: column; max-height: none; }
	.bb-specialdeals__media { flex: none; aspect-ratio: 16 / 9; order: -1; }
	.bb-specialdeals__content { flex: none; padding: 20px; }
	.bb-specialdeals__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
	.bb-specialdeals__chips::-webkit-scrollbar { display: none; }
	.bb-specialdeals__chips li { flex: none; }
	.bb-specialdeals__cta { width: 100%; }
	.bb-rewardspromo__ctas { flex-direction: column; }
	.bb-rewardspromo__ctas .bb-btn { width: 100%; }
	.bb-whyshop__col { text-align: left; }
	.bb-about { text-align: left; }
	.bb-safetyband__row { flex-direction: column; align-items: flex-start; }
	.bb-safetyband__text { flex: none; } /* desktop flex-basis 420px became a 420px height when stacked */
	.bb-safetyband__badge { align-self: flex-start; }
}

/* ---------- Heading highlight (Gary, 16 Nov 2026) ----------
   Only "Follow us" in the Facebook heading. A highlighter-pen swish (irregular
   brush stroke behind the lower part of the words) rather than a solid block;
   it sweeps in left-to-right once the section scrolls into view. */
.bb-hl {
	position: relative;
	z-index: 0;
	padding: 0 .12em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath fill='%23FFCF02' fill-opacity='.9' d='M4 20C60 8 200 4 292 12c6 1 6 10 0 12 5 6 7 18-2 22-90 10-210 12-280 4-8-1-8-10-2-12-6-6-8-16-4-18z'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 72%;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}
/* Sweep in when the section is revealed (reveal.js adds .is-in). */
.bb-reveal .bb-hl { background-size: 0% 72%; transition: background-size .9s cubic-bezier(.2, .7, .2, 1) .25s; }
.bb-reveal.is-in .bb-hl { background-size: 100% 72%; }
@media (prefers-reduced-motion: reduce) { .bb-reveal .bb-hl { background-size: 100% 72%; transition: none; } }


/* ---------- Savings tracker: bar fill + one-off confetti pop (home.js) ---------- */
.bb-tracker { position: relative; }
.bb-tracker__fill.is-animating { transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.bb-confetti { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 2; }
.bb-confetti i {
	position: absolute; left: -3px; top: -3px;
	width: 6px; height: 9px; border-radius: 1px;
	opacity: 0;
	animation: bb-confetti-pop 1.1s cubic-bezier(.15, .7, .3, 1) forwards;
}
.bb-confetti i.is-round { width: 7px; height: 7px; border-radius: 50%; }
@keyframes bb-confetti-pop {
	0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.6); }
	70% { opacity: 1; }
	100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 22px)) rotate(var(--r)) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .bb-confetti { display: none; } .bb-tracker__fill.is-animating { transition: none; } }

/* Phones: compact tiles (Under R20, Bulk & case buys, Just landed) - title and link
   on one tight row instead of 240px-tall cards. */
@media (max-width: 767px) {
	.bb-railtiles { gap: 10px; }
	.bb-railtile { min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: var(--bb-r-tile); }
	.bb-railtile__title { font-size: 1.25rem; line-height: 1.15; }
	.bb-railtile__sub { flex: none; font-size: .875rem; white-space: nowrap; }
}
