/* "See how it works" demo page — [bdn_demo_call] intro and [bdn_supademo] tour. */

.bfi-democall {
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
}
.bfi-democall__eyebrow {
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 14px;
	border-radius: 100px;
	background: #e7f1e2;
	color: #2a6445;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .12em;
	line-height: 1.5;
	text-transform: uppercase;
}
.bfi-democall .bfi-democall__title {
	margin: 0 auto;
	padding: 0;
	font-size: clamp(32px, 4.4vw, 52px);
	line-height: 1.15;
	letter-spacing: -.02em;
}
.bfi-democall__text {
	max-width: 660px;
	margin: 20px auto 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--color-content-text, #4a4f46);
}
.bfi-democall__points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	max-width: 880px;
	margin: 30px auto 0;
	padding: 0;
	list-style: none;
	text-align: left;
}
.bfi-democall__points li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #e6e1d3;
	border-radius: 16px;
	background: #fff;
	font-size: 15px;
	line-height: 1.45;
	color: var(--color-content-heading, #1f241d);
}
.bfi-democall__points svg {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	padding: 3px;
	border-radius: 50%;
	background: #f8c83e;
	fill: none;
	stroke: #242820;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.bfi-democall__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 30px;
}
.bfi-democall .bfi-democall__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 12px 30px;
	border-radius: 100px;
	background: #f8c83e;
	color: #242820;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(36, 40, 32, .14);
	transition: background .18s ease, transform .18s ease;
	cursor: pointer;
}
.bfi-democall .bfi-democall__btn:hover {
	background: #edbb29;
	color: #242820;
	transform: translateY(-1px);
}
.bfi-democall .bfi-democall__btn:focus-visible {
	outline: 3px solid #2a6445;
	outline-offset: 3px;
}
.bfi-democall__btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.bfi-democall__note {
	margin: 0;
	font-size: 14px;
	color: var(--color-content-faded, #6b6f66);
}

/* Supademo tour: same box as Supademo's own embed code (width ÷ height + 40 px above and below for its
   toolbar), so the tour fills the width with no white bars at the sides. No frame of our own. */
.bfi-supademo {
	position: relative;
	box-sizing: content-box;
	width: 100%;
	max-width: calc(80vh * var(--bfi-supademo-ratio, 2.2));
	margin: 0 auto;
	padding: 40px 0;
	aspect-ratio: var(--bfi-supademo-ratio, 2.2);
}
.bfi-supademo iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.bfi-supademo__empty {
	padding: 24px;
	border: 2px dashed #e0b84a;
	border-radius: 12px;
	text-align: center;
}

@media (max-width: 767px) {
	.bfi-democall__points {
		grid-template-columns: 1fr;
		max-width: 420px;
	}
	.bfi-democall__text {
		font-size: 16px;
	}
	.bfi-democall .bfi-democall__btn {
		width: 100%;
		max-width: 420px;
	}
	/* Phones: edge to edge on the page, so the tour gets every pixel of the screen width (not inside popups). */
	.l-main .bfi-supademo {
		width: 100vw;
		max-width: none;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding: 24px 0;
	}
}

/* Logo-only header of the demo page ("Header - DEMO transparent", all languages): one solid white bar with the
   logo in the middle. The theme header had an empty transparent top row and an empty white bottom row, so on
   scroll the logo floated over the page next to a blank strip. Only loaded on pages with the demo elements. */
.bfi-demo-page .l-header .l-subheader.at_top,
.bfi-demo-page .l-header .l-subheader.at_bottom {
	display: none !important;
}
.bfi-demo-page .l-header .l-subheader.at_middle {
	background: #fff !important;
	border-bottom: 1px solid #ece7da;
}
.bfi-demo-page .l-header .l-subheader.at_middle .l-subheader-h {
	justify-content: center;
}
.bfi-demo-page .l-header .l-subheader.at_middle .l-subheader-cell.at_left {
	flex: 1 1 auto;
	justify-content: center;
}
.bfi-demo-page .l-header .l-subheader.at_middle .l-subheader-cell.at_center,
.bfi-demo-page .l-header .l-subheader.at_middle .l-subheader-cell.at_right {
	display: none;
}

/* Intro used as a section title (H2) */
.bfi-democall h2.bfi-democall__title {
	font-size: clamp(28px, 3.2vw, 40px);
}

/* Phones: "Book a call" bar at the bottom of the screen after the top button has scrolled away. */
.bfi-democall__sticky {
	display: none;
}
@media (max-width: 767px) {
	.bfi-democall__sticky {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .96);
		box-shadow: 0 -6px 20px rgba(16, 40, 44, .12);
		transform: translateY(110%);
		transition: transform .25s ease;
	}
	.bfi-democall__sticky.is-visible {
		transform: none;
	}
	.bfi-democall__sticky .bfi-democall__btn {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 100%;
		min-height: 50px;
		border-radius: 100px;
		background: #f8c83e;
		color: #242820;
		font-size: 16px;
		font-weight: 600;
		text-decoration: none;
	}
	.bfi-democall__sticky .bfi-democall__btn svg {
		width: 18px;
		height: 18px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2;
	}
}

/* With the empty header rows hidden, the page should only leave room for the logo bar
   (the theme reserved 170 px = top + middle + bottom rows). */
html:root body.bfi-demo-page,
html:root:has(body.bfi-demo-page) {
	--header-height: 80px;
	--header-sticky-height: 60px;
}
@media (max-width: 600px) {
	html:root:has(body.bfi-demo-page) {
		--header-height: 64px;
		--header-sticky-height: 56px;
	}
	.bfi-demo-page .l-header .l-subheader.at_middle {
		--header-area-height: 64px;
	}
	.bfi-demo-page .l-header.sticky .l-subheader.at_middle {
		--header-area-height: 56px;
	}
}
@media (max-width: 767px) {
	/* keep the footer's last line above the sticky button */
	body:has(> .bfi-democall__sticky) .l-footer {
		padding-bottom: 76px;
	}
}
