/* Black Friday landing page — Figma "Black Friday Preview Page" (3058:7620). */

.bf-page {
	--bf-orange: #ff4a11;
	--bf-blue: #0a7cfb;
	--bf-navy: #011328;
	--bf-black: #222325;
	--bf-cream: #fbf7f3;
	--bf-white: #fff;
	--bf-gradient-stops: #0a7cfb 10.27%, #ffb712 49.62%, #ff3300 89.83%;
	--bf-sans: visby-cf, "Visby CF", Helvetica, Arial, sans-serif;
	--bf-serif: "Cormorant Garamond", Georgia, serif;
	--bf-max: 1336px;
	--bf-gutter: 52px;

	font-family: var(--bf-sans);
	color: var(--bf-black);
	background: var(--bf-white);
	padding-top: 0 !important;
	overflow-x: clip;
}
.bf-page *,
.bf-page *::before,
.bf-page *::after { box-sizing: border-box; }
.bf-page img { max-width: 100%; height: auto; }
.bf-page h1, .bf-page h2, .bf-page h3, .bf-page p { margin: 0; padding: 0; }

.bf-sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.bf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 4px;
	padding: 10px 26px; color: var(--bf-white) !important; text-decoration: none !important;
	font-family: var(--bf-sans); font-weight: 500; font-size: 18px; line-height: 32px; letter-spacing: -0.4px;
	white-space: nowrap; transition: filter .15s ease;
}
.bf-btn img { flex: none; width: 24px !important; height: 24px !important; }
.bf-btn:hover { filter: brightness(1.12); }
.bf-btn:focus-visible { outline: 3px solid var(--bf-blue); outline-offset: 2px; }
.bf-btn--orange { background: var(--bf-orange); }
.bf-btn--navy { background: var(--bf-navy); }
.bf-btn--navy:hover { filter: none; background: #0b2a4f; }
.bf-btn--blue { background: var(--bf-blue); }
.bf-btn--white { background: var(--bf-white); color: var(--bf-blue) !important; }
.bf-btn--white:hover { filter: none; background: #e6f1ff; }

/* ---------- Coupon codes (click to copy) ---------- */
.bf-codes { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bf-codes--tight { gap: 6px; }
.bf-code {
	position: relative; display: inline-flex; align-items: center; gap: 12px;
	margin: 0; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
	font-family: var(--bf-sans); font-weight: 500; font-size: 18px; line-height: 32px; letter-spacing: -0.4px;
	color: var(--bf-blue);
}
.bf-code img { flex: none; width: 24px !important; height: 24px !important; }
.bf-code:hover .bf-code__label { text-decoration: underline; text-underline-offset: 3px; }
.bf-code:focus-visible { outline: 2px solid var(--bf-blue); outline-offset: 3px; }
.bf-card__text .bf-code { margin-top: 8px; }
.bf-code__toast {
	position: absolute; left: 0; bottom: calc(100% + 4px); z-index: 2;
	padding: 4px 10px; background: var(--bf-black); color: var(--bf-white);
	font-size: 13px; line-height: 18px; letter-spacing: 0; white-space: nowrap;
	opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.bf-code.is-copied .bf-code__toast { opacity: 1; transform: none; }
.bf-feature--dark .bf-code__toast, .bf-tiers .bf-code__toast { background: var(--bf-white); color: var(--bf-navy); }

/* ---------- Hero ---------- */
.bf-hero {
	padding: var(--bf-gutter);
	background: linear-gradient(-69.44deg, var(--bf-gradient-stops));
}
.bf-hero__panel { max-width: var(--bf-max); margin: 0 auto; background: var(--bf-navy); line-height: 0; }
.bf-hero__img { display: block; width: 100%; aspect-ratio: 1336 / 400; object-fit: cover; }

/* Animated hero (default art): ease fade-in + spinning "Limited Time Deals" badge.
   The panel holds the crop ratio; .bf-hero__art keeps the artwork's 1336:400 ratio at full panel height,
   centred, so it crops like object-fit: cover and the badge stays pinned to the artwork. */
/* The panel clips the art with clip-path, NOT overflow:hidden. overflow:hidden makes the panel a new block
   formatting context, which sits beside floats; on mobile a floated Divi header column
   (.et_pb_column_7_tb_header, ~312px) leaks into this area, squeezing the panel to ~23px at the right edge
   until the header changes on scroll. clip-path clips without creating a BFC, so floats are ignored.
   Panel height comes from the ::before spacer (padding-top % = panel width); the art is pinned with insets
   and an explicit width = (1336/400) / panel ratio, centred via left = (100% - width) / 2. */
.bf-hero__panel--animated { position: relative; -webkit-clip-path: inset(0); clip-path: inset(0); }
.bf-hero__panel--animated::before { content: ""; display: block; padding-top: 29.940%; } /* 400 / 1336 */
.bf-hero__art {
	position: absolute; top: 0; bottom: 0; left: 0; width: 100%;
	animation: bf-fade-in 1.6s cubic-bezier(.42, 0, .58, 1) .15s both;
}
/* Hold the fade until the hero image has loaded (classes set inline in the template), so it isn't
   used up while the image is still downloading. Without JS the art simply shows. */
/* Hidden until the image loads, then the fade starts. */
.bf-hero__art.is-waiting:not(.is-loaded) { animation: none; opacity: 0; }
.bf-hero__art picture { display: block; width: 100%; height: 100%; }
.bf-page .bf-hero__art .bf-hero__img { width: 100%; height: 100%; aspect-ratio: auto; }
.bf-hero__badge {
	position: absolute; display: block;
	animation: bf-spin 14s linear infinite;
}
/* Badge box = ring centre ± half-size, from Figma (as % of the 1336 × 400 artwork). */
.bf-hero__art--hero .bf-hero__badge      { left: 65.938%; top: 15.555%; width: 6.587%; height: 22%; }  /* centre 924.9, 106.2; 88px */
.bf-hero__art--hero-sale .bf-hero__badge { left: 65.433%; top: 12.693%; width: 7.784%; height: 26%; }  /* centre 978.2, 102.8; 104px */
@keyframes bf-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bf-spin { to { transform: rotate(360deg); } }

/* ---------- Countdown ---------- */
.bf-countdown {
	background: var(--bf-orange); padding: 32px var(--bf-gutter);
	display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.bf-countdown__title {
	font-family: var(--bf-sans) !important; font-weight: 700 !important; font-size: 33px !important;
	line-height: 44px !important; letter-spacing: -0.4px; color: var(--bf-white) !important;
}
.bf-countdown__box {
	display: flex; gap: 24px; padding: 12px 24px; border-radius: 12px; background: var(--bf-navy);
}
.bf-countdown__unit { display: flex; flex-direction: column; align-items: center; width: 67px; color: var(--bf-orange); }
.bf-countdown__num { font-weight: 700; font-size: 33px; line-height: 44px; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.bf-countdown__label { font-weight: 500; font-size: 16px; line-height: 28px; }

/* ---------- Biggest sale (tiers) ---------- */
.bf-tiers { background: var(--bf-navy); padding: 80px var(--bf-gutter) 120px; }
.bf-tiers__inner {
	max-width: 1337px; margin: 0 auto;
	display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
.bf-tiers__art { flex: 0 1 564px; }
.bf-tiers__art img { display: block; width: 100%; }
/* Ease fade-in when the section scrolls into view (bf-reveal set inline, is-in set by black-friday.js). */
.bf-reveal .bf-tiers__art, .bf-reveal .bf-tiers__content {
	opacity: 0; transition: opacity 1.4s cubic-bezier(.42, 0, .58, 1);
}
.bf-reveal .bf-tiers__content { transition-delay: .25s; }
.bf-reveal.is-in .bf-tiers__art, .bf-reveal.is-in .bf-tiers__content { opacity: 1; }
.bf-tiers__content { flex: 0 1 566px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.bf-tiers__heading {
	font-family: var(--bf-sans) !important; font-weight: 700 !important; font-size: 60px !important;
	line-height: 76px !important; letter-spacing: -2px; color: var(--bf-white) !important; max-width: 540px;
}
.bf-hl { color: var(--bf-blue); }
.bf-tiers__rule { display: block; width: 320px; height: 10px; }
.bf-tiers__body { font-size: 14px; line-height: 22px; color: var(--bf-white); }

/* ---------- Gradient strip ---------- */
.bf-strip {
	position: absolute; z-index: 1; top: 30px; left: -20px; right: -20px;
	transform: rotate(-2.34deg); transform-origin: center;
	background: linear-gradient(-17.3deg, var(--bf-gradient-stops));
}
/* Navy fill above the angled strip so it sits on the seam with the section above (no white wedge). */
.bf-strip::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 90px;
	background: var(--bf-navy); pointer-events: none;
}
.bf-strip__inner {
	overflow: hidden; padding: 16px 0;
	color: var(--bf-white); font-weight: 700; font-size: 20px; line-height: 28px; white-space: nowrap;
}
/* Endless scroll: track holds the messages twice; sliding by -50% lands on an identical frame. */
.bf-strip__track { display: flex; width: max-content; animation: bf-marquee 60s linear infinite; }
.bf-strip__inner span { flex: none; padding: 0 40px; }
@keyframes bf-marquee { to { transform: translateX(-50%); } }

/* ---------- Cyber Monday section ---------- */
.bf-cm { position: relative; overflow: hidden; background: var(--bf-navy); padding: 140px var(--bf-gutter) 80px; }
.bf-cm__inner { position: relative; max-width: var(--bf-max); margin: 0 auto; display: flex; flex-direction: column; gap: 52px; }
.bf-cm__heading {
	font-family: var(--bf-sans) !important; font-weight: 700 !important; font-size: 45px !important;
	line-height: 58px !important; letter-spacing: -1px; color: var(--bf-white) !important;
}
.bf-cm .bf-card__title { color: var(--bf-white) !important; }
.bf-cm .bf-code__toast { background: var(--bf-white); color: var(--bf-navy); }

/* Cyber Monday colors: blue hero + countdown */
.bf-page--cyber .bf-hero { background: linear-gradient(to left, var(--bf-blue), var(--bf-navy)); }
.bf-page--cyber .bf-hero__panel { background: var(--bf-blue); }
.bf-page--cyber .bf-countdown { background: var(--bf-blue); }
.bf-page--cyber .bf-countdown__unit { color: var(--bf-blue); }

/* ---------- Deals ---------- */
.bf-deals { position: relative; overflow: hidden; background: var(--bf-white); padding: 140px var(--bf-gutter) 80px; }
/* The tilted strip's raised right end pokes above its section; clip only sideways so it isn't cut off. */
@supports (overflow: clip) {
	.bf-deals, .bf-cm { overflow: visible; overflow-x: clip; }
}
.bf-deals.bf-deals--no-strip { padding-top: 80px; }
.bf-deals__inner { position: relative; max-width: var(--bf-max); margin: 0 auto; display: flex; flex-direction: column; gap: 52px; }
.bf-intro { display: flex; flex-direction: column; gap: 12px; color: #000; }
.bf-intro__heading {
	font-family: var(--bf-sans) !important; font-weight: 700 !important; font-size: 45px !important;
	line-height: 58px !important; letter-spacing: -1px; color: #000 !important;
}
.bf-intro__text { font-size: 20px; line-height: 32px; color: #000; }

/* Feature panels */
.bf-feature { display: flex; align-items: center; min-height: 634px; padding: 0 80px; }
.bf-feature--light { background: var(--bf-cream); gap: 54px; }
.bf-feature--dark { background: var(--bf-navy); justify-content: space-between; gap: 48px; padding: 48px 80px; }
.bf-feature__content { flex: 0 0 456px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.bf-feature__content .bf-btn { margin-top: 8px; }
.bf-feature__eyebrow {
	font-family: var(--bf-serif); font-style: italic; font-weight: 700; font-size: 40px; line-height: 44px;
	letter-spacing: -0.4px; color: var(--bf-blue);
}
.bf-feature__title {
	font-family: var(--bf-sans) !important; font-weight: 700 !important; font-size: 60px !important;
	line-height: 76px !important; letter-spacing: -2px; color: var(--bf-black) !important;
}
.bf-feature--dark .bf-feature__eyebrow { color: var(--bf-white); }
.bf-feature--dark .bf-feature__title { color: var(--bf-blue) !important; }
.bf-feature--light .bf-feature__media { flex: 0 1 634px; align-self: stretch; display: flex; align-items: center; }
.bf-feature--dark .bf-feature__media { flex: 0 1 538px; }
.bf-feature__media img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }

/* Product cards */
.bf-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px; }
.bf-card { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.bf-card__media { position: relative; width: 100%; aspect-ratio: 411 / 300; overflow: hidden; }
/* Colored band behind the product: middle 200px of the 300px card (color or gradient via --bf-band) */
.bf-card__media::before { content: ""; position: absolute; left: 0; right: 0; top: 16.667%; bottom: 16.667%; background: var(--bf-band); }
.bf-card__img { position: absolute; left: 0; top: 0; width: 100% !important; height: 100% !important; object-fit: contain; max-width: none !important; }
/* Image placement per product, from the design (percent of the 411 × 300 card) */
.bf-card__img--canopy   { left: -3.05%; top: -27.89%; width: 106.1% !important;  height: 145.35% !important; }
.bf-card__img--flag     { left: 12.38%; top: -2.56%;  width: 75.37% !important;  height: 105.13% !important; }
.bf-card__img--popup    { left: 7.84%;  top: -11.28%; width: 84.19% !important;  height: 117.44% !important; }
.bf-card__img--greeting { left: 14.83%; top: 2.22%;   width: 70.34% !important;  height: 97.95% !important; }
.bf-card__img--stretch  { left: 10.66%; top: -4.96%;  width: 78.8% !important;   height: 109.91% !important; }
.bf-card__img--sidewalk { left: 0;      top: -22.05%; width: 103.31% !important; height: 144.1% !important; }
/* Product images ease-fade in as each card scrolls into view (is-in set by black-friday.js); columns stagger slightly. */
.bf-js .bf-fade .bf-card__img { opacity: 0; transition: opacity 1.2s cubic-bezier(.42, 0, .58, 1); }
.bf-js .bf-fade.is-in .bf-card__img { opacity: 1; }
.bf-products > .bf-card:nth-child(3n+2) .bf-card__img { transition-delay: .15s; }
.bf-products > .bf-card:nth-child(3n+3) .bf-card__img { transition-delay: .3s; }
.bf-card__img--cm-tables     { left: 8.01%;  top: -7.5%;   width: 84.23% !important;  height: 115.4% !important; }
.bf-card__img--cm-business   { left: -1.92%; top: -22.44%; width: 105.89% !important; height: 145.07% !important; }
.bf-card__img--cm-invite     { left: -7.04%; top: -32.35%; width: 116.1% !important;  height: 159.07% !important; }
.bf-card__img--cm-wall       { left: -2.79%; top: -26.99%; width: 108.43% !important; height: 148.07% !important; }
.bf-card__img--cm-connection { left: 10.86%; top: -4.96%;  width: 80.23% !important;  height: 109.91% !important; }
.bf-card__img--cm-backlit    { left: 13.88%; top: -1.83%;  width: 75.9% !important;   height: 103.98% !important; }
.bf-card__text { display: flex; flex-direction: column; gap: 4px; color: var(--bf-black); }
.bf-card__title {
	font-family: var(--bf-serif) !important; font-style: italic; font-weight: 700 !important;
	font-size: 28px !important; line-height: 34px !important; letter-spacing: -0.6px; color: var(--bf-black) !important;
}
.bf-card__offer { font-size: 16px; line-height: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
	.bf-tiers__heading { font-size: 52px !important; line-height: 66px !important; }
	.bf-feature { padding: 48px 56px; }
	.bf-feature--light { gap: 32px; }
	.bf-feature__content { flex-basis: 400px; }
	.bf-products { gap: 36px; }
	.bf-intro__heading { font-size: 38px !important; line-height: 48px !important; }
}

@media (max-width: 1024px) {
	.bf-page { --bf-gutter: 32px; }
	.bf-tiers__inner { flex-direction: column; gap: 48px; }
	.bf-tiers__art { flex: none; width: min(100%, 480px); }
	.bf-tiers__content { flex: none; width: 100%; max-width: 640px; }
	.bf-tiers__heading { font-size: 44px !important; line-height: 56px !important; letter-spacing: -1.4px; max-width: none; }
	.bf-strip__inner { font-size: 16px; line-height: 24px; padding: 12px 0; }
	.bf-intro__heading, .bf-cm__heading { font-size: 34px !important; line-height: 44px !important; }
	.bf-intro__text { font-size: 18px; line-height: 28px; }
	.bf-intro__text br { display: none; }
	.bf-feature, .bf-feature--dark { flex-direction: column; align-items: stretch; min-height: 0; padding: 48px 40px; gap: 32px; }
	.bf-feature--dark .bf-feature__media { order: 2; }
	.bf-feature__content { flex: none; }
	.bf-feature--light .bf-feature__media, .bf-feature--dark .bf-feature__media { flex: none; align-self: center; width: min(100%, 520px); }
	.bf-feature__title { font-size: 48px !important; line-height: 60px !important; letter-spacing: -1.4px; }
	.bf-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}

@media (max-width: 767px) {
	.bf-page { --bf-gutter: 16px; }
	.bf-hero__img { aspect-ratio: 16 / 10; }
	.bf-page--sale .bf-hero__img { aspect-ratio: 2 / 1; } /* sale artwork is wider; keep the "Limited Time Deals" badge in frame */
	.bf-hero__panel--animated::before { padding-top: 62.5%; }                       /* 16:10 */
	.bf-page--sale .bf-hero__panel--animated::before,
	.bf-page--cyber .bf-hero__panel--animated::before { padding-top: 50%; }         /* 2:1 */
	.bf-hero__art { width: 208.75%; left: -54.375%; }                               /* 3.34 / 1.6 */
	.bf-page--sale .bf-hero__art, .bf-page--cyber .bf-hero__art { width: 167%; left: -33.5%; } /* 3.34 / 2 */
	/* Portrait mobile art (preview): 334 x 500, panel capped so tablets aren't huge. The art has the badge removed and
	   the same spinning SVG sits on top; box from Figma ring glyph extent (216.25,67.5)-(266.75,118.25) / 0.879 fill. */
	/* .bf-page prefix so these beat the .bf-page--sale/--cyber crop rules above. */
	.bf-page .bf-hero__panel--mobile-art { max-width: 480px; }
	.bf-page .bf-hero__panel--mobile-art::before { padding-top: 149.701%; }          /* 500 / 334 (preview, cyber) */
	.bf-page--sale .bf-hero__panel--mobile-art::before { padding-top: 164.671%; }    /* 550 / 334 */
	.bf-page .bf-hero__panel--mobile-art .bf-hero__art { width: 100%; left: 0; }
	.bf-page .bf-hero__panel--mobile-art .bf-hero__badge { left: 63.76%; top: 12.80%; width: 17.25%; height: 11.52%; } /* preview: 57.6px box, centre 241.5, 92.9 */
	.bf-page--sale .bf-hero__panel--mobile-art .bf-hero__badge { left: 72.60%; top: 31.92%; width: 19.13%; height: 11.62%; } /* sale: 63.9px box at 242.5,175.5 of 334x550 (Figma 3182:1013) */
	.bf-countdown { padding: 24px 16px; }
	.bf-countdown__title { font-size: 22px !important; line-height: 30px !important; }
	.bf-countdown__box { gap: 4px; padding: 10px 12px; }
	.bf-countdown__unit { width: 64px; }
	.bf-countdown__num { font-size: 28px; line-height: 36px; }
	.bf-countdown__label { font-size: 13px; line-height: 20px; }
	.bf-tiers { padding: 56px 16px 96px; }
	.bf-tiers__inner { gap: 36px; }
	.bf-tiers__heading { font-size: 34px !important; line-height: 42px !important; letter-spacing: -1px; }
	.bf-tiers__rule { width: 200px; height: 7px; }
	.bf-strip { top: 20px; transform: rotate(-3deg); }
	.bf-strip__inner { font-size: 14px; line-height: 20px; padding: 10px 0; }
	.bf-strip__track { animation-duration: 45s; }
	.bf-strip__inner span { padding: 0 24px; }
	.bf-deals { padding: 100px 16px 56px; }
	.bf-deals__inner { gap: 40px; }
	.bf-intro__heading, .bf-cm__heading { font-size: 28px !important; line-height: 36px !important; letter-spacing: -0.6px; }
	.bf-cm { padding: 100px 16px 56px; }
	.bf-cm__inner { gap: 40px; }
	.bf-deals.bf-deals--no-strip { padding-top: 56px; }
	.bf-page--cyber .bf-hero__img { aspect-ratio: 2 / 1; }
	.bf-intro__text { font-size: 16px; line-height: 26px; }
	.bf-feature, .bf-feature--dark { padding: 32px 20px; gap: 24px; }
	.bf-feature__eyebrow { font-size: 30px; line-height: 34px; }
	.bf-feature__title { font-size: 36px !important; line-height: 44px !important; letter-spacing: -1px; }
	.bf-products { grid-template-columns: 1fr; gap: 40px; }
	.bf-card { gap: 16px; }
	.bf-btn { white-space: normal; text-align: center; }
	.bf-card .bf-btn, .bf-feature .bf-btn, .bf-tiers .bf-btn { width: 100%; }
	.bf-code { font-size: 16px; line-height: 24px; gap: 10px; }
	.bf-code__label { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
	.bf-page * { transition: none !important; }
	.bf-hero__art, .bf-hero__badge, .bf-strip__track { animation: none; }
	.bf-reveal .bf-tiers__art, .bf-reveal .bf-tiers__content { opacity: 1; }
	.bf-js .bf-fade .bf-card__img { opacity: 1; }
}
