/*
 * aeo.css (2026-12-01): brand H1 and page intro for HubSpot AEO recs 256140108/256140109.
 * The brand H1 is shown as the small lead-in line above the old banner headline,
 * which is now a .h1-tagline (styled by heading-compat.css).
 */
h1.bg-seo-h1 {
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	line-height: normal;
}
h1.bg-seo-h1::before,
h1.bg-seo-h1::after {
	content: none !important;
	display: none !important;
}
h1.bg-seo-h1 .h1-kicker {
	display: block;
	margin: 0 0 14px;
}
.pg_title .bg-page-intro {
	font-family: 'Gilroy-Regular';
	font-size: 20px;
	line-height: 1.5;
	color: #1C1A1A;
	max-width: 640px;
	margin: 18px 0 0;
}
@media (max-width: 767px) {
	.pg_title .bg-page-intro {
		font-size: 17px;
	}
}

/* Product banners pin .section-title 100px from the top, under the ~125px fixed
   header, so the first lines were hidden on desktop. Move it clear of the header. */
@media (min-width: 992px) {
	.banner-section .section-title:has(h1.bg-seo-h1) {
		top: 40px;
	}
}

/* BattMaaS hero (2026-12-01): the caption was absolutely positioned over the
   full-width illustration and overlapped it on laptop/desktop screens. Lay the
   text and illustration out as two columns instead. Phones/tablets keep the
   existing stacked layout. */
@media (min-width: 992px) {
	.page-template-page-templatesbatt-saas-php .BattDaas-banner-inner {
		display: grid !important;
		grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
		align-items: center;
		column-gap: 24px;
		max-width: 1440px;
		margin: 0 auto;
		padding: 0 30px 0 70px;
	}
	.page-template-page-templatesbatt-saas-php .BattDaas-banner-caption {
		position: static !important;
		padding-top: 0 !important;
		width: auto !important;
		max-width: none !important;
	}
	.page-template-page-templatesbatt-saas-php .BattDaas-banner-caption .container {
		padding: 0;
		max-width: none;
		width: auto;
	}
	.page-template-page-templatesbatt-saas-php .BattSaaS-banner-text {
		max-width: 440px !important;
	}
	.page-template-page-templatesbatt-saas-php .BattSaaS-banner-text p {
		max-width: 100% !important;
	}
	.page-template-page-templatesbatt-saas-php .BattSaaS-banner-imgbox-main {
		min-width: 0;
		overflow: hidden;
	}
	.page-template-page-templatesbatt-saas-php #BattSaaSBanner {
		min-height: 0 !important;
		padding: 0 !important;
	}
	.page-template-page-templatesbatt-saas-php #BattSaaSBanner > svg {
		width: 100% !important;
		height: auto !important;
		max-height: calc(100vh - 170px);
	}
}

/* BattDaaS hero (2026-12-01): same overlap as BattMaaS on 1280-1536px screens.
   Same fix: text and illustration as two columns. */
@media (min-width: 992px) {
	.page-template-page-templatesbaat-daas-php .BattDaas-banner { min-height: 0 !important; }
	.page-template-page-templatesbaat-daas-php .BattDaas-banner-inner {
		display: grid !important;
		grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
		align-items: center;
		column-gap: 24px;
		max-width: 1440px;
		margin: 0 auto;
		padding: 0 30px 40px 70px;
	}
	.page-template-page-templatesbaat-daas-php .BattDaas-banner-caption {
		position: static !important;
		padding-top: 0 !important;
		width: auto !important;
		max-width: none !important;
	}
	.page-template-page-templatesbaat-daas-php .BattDaas-banner-caption .container {
		padding: 0;
		max-width: none;
		width: auto;
	}
	.page-template-page-templatesbaat-daas-php .BattDaas-banner-text {
		max-width: 440px !important;
	}
	.page-template-page-templatesbaat-daas-php .BattDaas-banner-text h1.bg-seo-h1 {
		max-width: none !important;
	}
	.page-template-page-templatesbaat-daas-php .BattDaas-imgbox-main {
		min-width: 0;
		overflow: hidden;
	}
	/* The two drawings (ETL / RT) are stacked absolutely inside .BattDaas-imgbox,
	   so the box needs its own height: keep the drawings' 1441x674 proportions. */
	.page-template-page-templatesbaat-daas-php .BattDaas-imgbox-main .BattDaas-imgbox {
		min-height: 0 !important;
		aspect-ratio: 1441 / 674;
		max-height: calc(100vh - 170px);
	}
	.page-template-page-templatesbaat-daas-php .BattDaas-imgbox-main .svg-mn-div,
	.page-template-page-templatesbaat-daas-php .BattDaas-imgbox-main .coman-class {
		width: 100% !important;
		height: 100% !important;
		min-height: 0 !important;
		padding: 0 !important;
	}
	.page-template-page-templatesbaat-daas-php .BattDaas-imgbox-main .coman-class svg {
		width: 100% !important;
		height: 100% !important;
		max-height: none !important;
	}
}

/* BattOps hero (2026-12-01): the text column (58%) ran under the dashboard
   screenshots on 1024-1536px screens. Keep the text to the left 44%. */
@media (min-width: 992px) {
	.page-template-page-templatesbatt-ops-php .banner-section .section-title > div {
		max-width: 44%;
		flex: 0 0 44%;
	}
}

/* Solutions hero on phones (2026-12-01): the absolutely positioned title was
   taller than its 190px banner, so the next section covered the headline. */
@media (max-width: 767px) {
	.page-template-page-templatessolutions-tpl-php .banner-section .section-title {
		position: relative !important;
	}
}

/* Banner lead-in as a paragraph before the H1 (BattStudio, Technology), styled
   like the old in-H1 <small class="h1-kicker"> so the page looks the same. */
.studio-banner-caption p.h1-kicker,
.captionbox p.h1-kicker {
	display: block;
	font-family: "Gilroy-SemiBold" !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #222961 !important;
	opacity: 0.8;
	margin: 0 0 14px !important;
	padding: 0 !important;
	max-width: none !important;
}
@media (max-width: 767px) {
	.studio-banner-caption p.h1-kicker,
	.captionbox p.h1-kicker {
		font-size: 13px !important;
		margin-bottom: 10px !important;
	}
}

/* /bms-solution/ banner: link to the EV page under the intro paragraph (2026-12-01) */
.bms-solution-tpl .banner-section .bg-ev-link {
	display: block;
	margin-top: 12px;
	color: #3D499F;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-family: "Gilroy-SemiBold";
}
.bms-solution-tpl .banner-section .bg-ev-link:hover {
	color: #222961;
}

/* /bms-solution/ hero (2026-12-01): the full-width animation sat under the
   absolutely positioned text, so the text ran into the chip on laptop screens.
   On desktop, scale the animation down and anchor it to the right so the text
   has the left side to itself. */
@media (min-width: 992px) {
	.bms-solution-tpl .banner-section .banner-img dotlottie-wc {
		transform: scale(0.66);
		transform-origin: right center;
	}
}


/* Speed (2026-12-01): first-screen text no longer waits for wow.js. Hero
   elements are shown immediately instead of fading in after all scripts load,
   which delayed the largest paint by up to several seconds on mobile. */
.banner-section .wow,
.BattDaas-banner .wow,
.studio-banner .wow,
.banner_wrapper .wow,
.technology_mnpage .captionbox.wow,
.technology_mnpage .captionbox .wow,
.pg_title.wow,
.pg_title .wow {
	visibility: visible !important;
	animation-name: none !important;
}

/* /bms-solution/ images now carry width/height attributes (to reserve space);
   keep their CSS width and scale the height with it. */
.bms-solution-tpl img.section-graphic,
.bms-solution-tpl img.code-graphic,
.bms-solution-tpl .graph-img img {
	height: auto;
}

/* BattOps "How it works" slider: the staggered cards were 100% tall plus a
   top offset, so the slider's hidden overflow cut off their bottom edges.
   Cards now size to their content and the slide leaves room for the offset. */
@media (min-width: 768px) {
	.battops-slider-6 .work-slide-wrapper {
		align-items: flex-start;
		padding-bottom: 6px;
	}
	.battops-slider-6 .work-slide-item {
		height: auto;
	}
}

/* BattOps "From prototype to production" steps: equal-height cards with the
   title centred, so a title that wraps onto three lines doesn't make one card
   taller than the rest. */
@media (min-width: 768px) {
	.battops-section-8 .process-list.row > div {
		display: flex;
	}
	.battops-section-8 .process-list.row .process-box {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 150px;
	}
	.battops-section-8 .process-list.row .process-box h4 {
		margin-bottom: 0;
	}
	.battops-section-8 .process-list.row .arrow-icon {
		top: 50%;
		transform: translateY(-50%);
	}
}

/* Page titles (About, Contact, Knowledge Hub and other .pg_title banners)
   show immediately instead of fading in once every script has loaded, which
   took 10+ seconds on slow mobile connections. */
.pg_title .as-h2,
.pg_title h1.pg-heading,
.pg_title .h1-tagline.pg-heading {
	opacity: 1 !important;
	transform: none !important;
}
.pg_title .as-h2 span::after,
.pg_title h1.pg-heading span::after,
.pg_title .h1-tagline.pg-heading span::after {
	width: 100% !important;
}

/* /bms-solution/ chart with a separate phone version (<picture>): the chart
   carries its own card and legend, so don't cap its height on smaller screens. */
.bms-solution-section-2 .graph-img picture img {
	max-height: none !important;
	height: auto;
}
