/*------------------------------------------------------------------
[ AB Home v2 — shared tokens & primitives ]
Scoped to .ab-hv2-* classes only. Does not touch theme globals.
Fonts (ClashGrotesk-*, Manrope) are already loaded by the theme.
*/

.ab-hv2-section,
.ab-hv2-btn-wrap,
main.ab-hv2 {
	--hv2-bg: #232323;
	--hv2-white: #ffffff;
	--hv2-muted: rgba(255, 255, 255, 0.7);
	--hv2-purple: #653bf3;
	--hv2-font-display: 'ClashGrotesk-Bold', 'Manrope', sans-serif;
	--hv2-font-heading: 'ClashGrotesk-Medium', 'Manrope', sans-serif;
	--hv2-font-regular: 'ClashGrotesk-Regular', 'Manrope', sans-serif;
	--hv2-font-light: 'ClashGrotesk-Light', 'Manrope', sans-serif;
	--hv2-font-ui: 'Manrope', sans-serif;
	--hv2-container: 1200px;
	--hv2-gutter: 20px;
}

.ab-hv2-section {
	position: relative;
	background: var(--hv2-bg);
	color: var(--hv2-white);
	font-family: var(--hv2-font-regular);
	font-weight: 400;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-sizing: border-box;
}

.ab-hv2-section *,
.ab-hv2-section *::before,
.ab-hv2-section *::after {
	box-sizing: border-box;
}

/* Neutralise theme heading/paragraph defaults inside our sections */
.ab-hv2-section h1,
.ab-hv2-section h2,
.ab-hv2-section h3,
.ab-hv2-section h4,
.ab-hv2-section p {
	margin: 0;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.ab-hv2-section img {
	max-width: 100%;
	height: auto;
}

.ab-hv2-container {
	position: relative;
	width: 100%;
	max-width: calc(var(--hv2-container) + 2 * var(--hv2-gutter));
	margin: 0 auto;
	padding: 0 var(--hv2-gutter);
}

/*------------------------------------------------------------------
[ Buttons ]
*/
.ab-hv2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 61px;
	padding: 18px 38px;
	border-radius: 72px;
	font-family: var(--hv2-font-ui);
	font-weight: 700;
	font-size: 16.3px;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.ab-hv2-btn:hover,
.ab-hv2-btn:focus {
	color: #fff;
	text-decoration: none;
}

.ab-hv2-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.ab-hv2-btn__arrow {
	display: block;
	width: 25px;
	height: auto;
	flex: none;
	transition: transform .25s ease;
}

.ab-hv2-btn:hover .ab-hv2-btn__arrow {
	transform: translateX(-4px);
}

.ab-hv2-btn--arrow-right .ab-hv2-btn__arrow {
	width: 24px;
	transform: rotate(180deg);
}

.ab-hv2-btn--arrow-right:hover .ab-hv2-btn__arrow {
	transform: rotate(180deg) translateX(-4px);
}

/* Primary uses the design's smaller paddings (207 × 60) */
.ab-hv2-btn--primary {
	min-height: 60px;
	padding: 19px 37px;
	font-size: 16px;
}

/* Glass (hero "Explore platform") */
.ab-hv2-btn--glass {
	border: 1.5px solid #fff;
	background-image: linear-gradient(103.24deg, rgba(255, 255, 255, 0.21) 5.583%, rgba(255, 255, 255, 0.36) 98.929%);
	-webkit-backdrop-filter: blur(1.7px);
	backdrop-filter: blur(1.7px);
}

.ab-hv2-btn--glass:hover,
.ab-hv2-btn--glass:focus {
	background: #3c3c3c;
	border-color: transparent;
}

/* Primary (purple "Book a demo") */
.ab-hv2-btn--primary {
	border: 0;
	background: var(--hv2-purple);
}

.ab-hv2-btn--primary:hover {
	background: #5a2fe6;
	box-shadow: 0 10px 30px rgba(101, 59, 243, 0.35);
}

@media (max-width: 767px) {
	.ab-hv2-btn {
		min-height: 52px;
		padding: 15px 28px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ab-hv2-btn,
	.ab-hv2-btn__arrow {
		transition: none;
	}
}

/*------------------------------------------------------------------
[ Home v2 template canvas + plain WPBakery rows / text ]
Only inside <main class="ab-hv2"> (page-templates/home-v2.php).
Text sections are normal WPBakery rows with a "Text Block";
add these classes in the Text Block → "Extra class name":
  ab-hv2-text            → white, centred, design typography
  ab-hv2-text--left      → left aligned
  ab-hv2-text--narrow    → max-width 1010px
Inside the editor use: Heading 2 = section title, Paragraph = lead text.
*/
main.ab-hv2 {
	display: block;
	background: #232323;
	color: #fff;
	overflow: hidden;
}
main.ab-hv2 .ab-faq-info, main.ab-hv2 .vc_tta-container{
	color: #232323;
}

main.ab-hv2 > .vc_row,
main.ab-hv2 > .vc_section,
main.ab-hv2 > .wpb-content-wrapper > .vc_row,
main.ab-hv2 > .wpb-content-wrapper > .vc_section {
	margin-left: 0;
	margin-right: 0;
}

main.ab-hv2 .vc_column_container > .vc_column-inner {
	padding-left: 0;
	padding-right: 0;
}

main.ab-hv2 .wpb_content_element,
main.ab-hv2 .wpb_text_column :last-child {
	margin-bottom: 0;
}

main.ab-hv2 .ab-hv2-text {
	max-width: calc(1200px + 40px);
	margin: 0 auto;
	padding: 0 20px;
	color: #fff;
	text-align: center;
	font-family: 'ClashGrotesk-Medium', 'Manrope', sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

main.ab-hv2 .ab-hv2-text--narrow { max-width: calc(1010px + 40px); }
main.ab-hv2 .ab-hv2-text--left { text-align: left; }

main.ab-hv2 .ab-hv2-text h1,
main.ab-hv2 .ab-hv2-text h2,
main.ab-hv2 .ab-hv2-text h3 {
	margin: 0;
	color: #fff;
	font-family: 'ClashGrotesk-Medium', 'Manrope', sans-serif;
	font-weight: 500;
	font-size: 56px;
	line-height: 1.21;
	letter-spacing: 0;
	text-transform: none;
}

main.ab-hv2 .ab-hv2-text h3 { font-size: 40px; }

main.ab-hv2 .ab-hv2-text p {
	margin: 0;
	color: #fff;
	font-family: 'ClashGrotesk-Medium', 'Manrope', sans-serif;
	font-weight: 500;
	font-size: 32px;
	line-height: 1.19;
}

/* low specificity on purpose: the modifiers below (--light, --server, --dark, --faq) override it */
main.ab-hv2 .ab-hv2-text :where(h1, h2, h3) + p {
	margin-top: 10px;
}

main.ab-hv2 .ab-hv2-text p + p { margin-top: 16px; }

main.ab-hv2 .ab-hv2-text a { color: #b794ff; }

/* Title + light paragraph (At a Glance intro, Figma 1025:6183/6184) */
main.ab-hv2 .ab-hv2-text.ab-hv2-text--light { max-width: calc(1060px + 40px); }
main.ab-hv2 .ab-hv2-text--light p {
	margin-top: 24px;
	font-family: 'ClashGrotesk-Light', 'Manrope', sans-serif;
	font-weight: 300;
	line-height: 1.22;
}

/* Title + subtitle variant used above the server visual (Figma 976:10589 / 976:10580) */
main.ab-hv2 .ab-hv2-text--server { position: relative; z-index: 2; }
main.ab-hv2 .ab-hv2-text--server h2 { line-height: 1.02; letter-spacing: 2.24px; }
main.ab-hv2 .ab-hv2-text--server p {
	margin-top: 24px;
	font-family: 'ClashGrotesk-Regular', 'Manrope', sans-serif;
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: 1.28px;
}

@media (max-width: 991px) {
	main.ab-hv2 .ab-hv2-text h1,
	main.ab-hv2 .ab-hv2-text h2 { font-size: 44px; }
	main.ab-hv2 .ab-hv2-text p { font-size: 26px; }
}

@media (max-width: 575px) {
	main.ab-hv2 .ab-hv2-text h1,
	main.ab-hv2 .ab-hv2-text h2 { font-size: 34px; }
	main.ab-hv2 .ab-hv2-text h3 { font-size: 28px; }
	main.ab-hv2 .ab-hv2-text p { font-size: 20px; line-height: 1.3; }
}

/* Light / white row backgrounds (Row → Extra class name) */
main.ab-hv2 .ab-hv2-bg-light { background: #fafafb; }
main.ab-hv2 .ab-hv2-bg-white { background: #ffffff; }

/* contained rows: extend the background to the screen edges at any width
   (spread shadow, clipped to the row's own height so it never bleeds up/down) */
main.ab-hv2 .ab-hv2-contained.ab-hv2-bg-light,
main.ab-hv2 .ab-hv2-contained.ab-hv2-bg-white { clip-path: inset(0 -100vmax); }
main.ab-hv2 .ab-hv2-contained.ab-hv2-bg-light { box-shadow: 0 0 0 100vmax #fafafb; }
main.ab-hv2 .ab-hv2-contained.ab-hv2-bg-white { box-shadow: 0 0 0 100vmax #ffffff; }

/* Row limited to the 1200px grid (for multi-column rows): Row → Extra class "ab-hv2-contained" */
main.ab-hv2 .vc_row.ab-hv2-contained {
	max-width: 1240px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 20px;
	padding-right: 20px;
}

/* FAQ intro text (left column) */
main.ab-hv2 .ab-hv2-text--faq { padding: 0 0 0 30px; text-align: left; }
main.ab-hv2 .ab-hv2-text--faq h2 {
	max-width: 330px;
	font-family: 'ClashGrotesk-Bold', 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 36px;
	line-height: 1.1;
	letter-spacing: 0;
	color: #232323;
}
main.ab-hv2 .ab-hv2-text--faq p {
	max-width: 412px;
	margin-top: 34px;
	padding-left: 5px;
	font-family: 'Manrope', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.548;
	color: #000;
}
@media (max-width: 767px) {
	main.ab-hv2 .ab-hv2-text--faq { padding: 0 0 32px; }
	main.ab-hv2 .ab-hv2-text--faq h2 { font-size: 30px; }
}

/* Dark text on light rows */
main.ab-hv2 .ab-hv2-text--dark h1,
main.ab-hv2 .ab-hv2-text--dark h2,
main.ab-hv2 .ab-hv2-text--dark h3 { color: #141418; letter-spacing: -0.01em; line-height: 1.1; }
main.ab-hv2 .ab-hv2-text--dark p {
	margin-top: 11px;
	font-family: 'Manrope', sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.4;
	color: #6b6b73;
}

/* Spacing helpers for rows (Row → Extra class name), design values */
main.ab-hv2 .ab-hv2-pt-0   { padding-top: 0 !important; }
main.ab-hv2 .ab-hv2-pt-50  { padding-top: 50px !important; }
main.ab-hv2 .ab-hv2-pt-60  { padding-top: 60px !important; }
main.ab-hv2 .ab-hv2-pt-80  { padding-top: 80px !important; }
main.ab-hv2 .ab-hv2-pt-85  { padding-top: 85px !important; }
main.ab-hv2 .ab-hv2-pt-100 { padding-top: 100px !important; }
main.ab-hv2 .ab-hv2-pt-110 { padding-top: 110px !important; }
main.ab-hv2 .ab-hv2-pt-160 { padding-top: 160px !important; }
main.ab-hv2 .ab-hv2-pt-120 { padding-top: 120px !important; }
main.ab-hv2 .ab-hv2-pb-0   { padding-bottom: 0 !important; }
main.ab-hv2 .ab-hv2-pb-50  { padding-bottom: 50px !important; }
main.ab-hv2 .ab-hv2-pb-80  { padding-bottom: 80px !important; }
main.ab-hv2 .ab-hv2-pb-85  { padding-bottom: 85px !important; }
main.ab-hv2 .ab-hv2-pb-120 { padding-bottom: 120px !important; }

@media (max-width: 767px) {
	main.ab-hv2 .ab-hv2-pt-85,
	main.ab-hv2 .ab-hv2-pt-100,
	main.ab-hv2 .ab-hv2-pt-110,
	main.ab-hv2 .ab-hv2-pt-160,
	main.ab-hv2 .ab-hv2-pt-120 { padding-top: 60px !important; }
	main.ab-hv2 .ab-hv2-pb-85,
	main.ab-hv2 .ab-hv2-pb-120 { padding-bottom: 60px !important; }
}

/* Button wrapper (Home v2: Button element) */
.ab-hv2-btn-wrap { display: flex; padding: 0 20px; }
.ab-hv2-btn-wrap--center { justify-content: center; }
.ab-hv2-btn-wrap--left   { justify-content: flex-start; }
.ab-hv2-btn-wrap--right  { justify-content: flex-end; }

/*------------------------------------------------------------------
[ Product v2 template — light canvas ]
<main class="ab-hv2 ab-hv2--light"> (page-templates/product-v2.php).

Feature block = normal WPBakery row with two columns:
  Row    → Extra class: ab-hv2-contained ab-hv2-split   (+ ab-hv2-split--divider for the top line)
  Column with the diagram → Extra class: ab-hv2-col-visual
  Text Block → Extra class: ab-hv2-text ab-hv2-text--feature
In the editor: Heading 2 = title (use Italic for the light part),
Paragraph = text, Bulleted list = arrow points.
*/
main.ab-hv2.ab-hv2--light {
	background: #f6f6f6;
	color: #232323;
}

main.ab-hv2 .vc_row.ab-hv2-split {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 20px;
	padding-top: 56px;
	padding-bottom: 56px;
}

main.ab-hv2 .vc_row.ab-hv2-split::before,
main.ab-hv2 .vc_row.ab-hv2-split::after {
	display: none;
}

main.ab-hv2 .vc_row.ab-hv2-split > .wpb_column {
	float: none;
	flex: 1 1 0;
	width: auto;
	min-width: 0;
}

main.ab-hv2 .vc_row.ab-hv2-split > .ab-hv2-col-visual {
	flex: 0 0 667px;
	max-width: 56%;
}

/* the diagrams bleed a little outside the 1200 grid like in the design */
@media (min-width: 1440px) {
	main.ab-hv2 .vc_row.ab-hv2-split > .ab-hv2-col-visual:first-child { margin-left: -59px; }
	main.ab-hv2 .vc_row.ab-hv2-split > .ab-hv2-col-visual:last-child { margin-right: -96px; }
}

main.ab-hv2 .vc_row.ab-hv2-split--divider {
	background: linear-gradient(#3b149d, #3b149d) no-repeat center top / calc(100% - 44px) 1px;
}

main.ab-hv2 .ab-hv2-text.ab-hv2-text--feature {
	max-width: none;
	margin: 0;
	padding: 0 0 0 10px;
	text-align: left;
}

main.ab-hv2 .ab-hv2-text--feature h2,
main.ab-hv2 .ab-hv2-text--feature h3 {
	font-family: 'ClashGrotesk-Semibold', 'ClashGrotesk-Medium', 'Manrope', sans-serif;
	font-weight: 600;
	max-width: 500px;
	font-size: 48px;
	line-height: .984;
	color: #232323;
}

/* Text Block extra class for long titles (first block): ab-hv2-text--wide */
main.ab-hv2 .ab-hv2-text--feature.ab-hv2-text--wide h2,
main.ab-hv2 .ab-hv2-text--feature.ab-hv2-text--wide h3 { max-width: none; }

main.ab-hv2 .ab-hv2-text--feature h2 em,
main.ab-hv2 .ab-hv2-text--feature h3 em {
	font-family: 'ClashGrotesk-Light', 'Manrope', sans-serif;
	font-weight: 300;
	font-style: normal;
}

main.ab-hv2 .ab-hv2-text--feature p {
	max-width: 506px;
	margin-top: 30px;
	font-family: 'Manrope', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.548;
	color: #000;
}

main.ab-hv2 .ab-hv2-text--feature ul {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

main.ab-hv2 .ab-hv2-text--feature li {
	position: relative;
	margin: 0;
	padding: 0 0 0 44px;
	font-family: 'Manrope', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 21.5px;
	color: #000;
}

main.ab-hv2 .ab-hv2-text--feature li + li { margin-top: 2px; }

main.ab-hv2 .ab-hv2-text--feature li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	width: 25px;
	height: 10px;
	background: url(../img/product/arrow-purple.svg) no-repeat center / contain;
	transform: rotate(180deg);
}

/* Comparison heading (Figma 978:5756 / 978:5755) */
main.ab-hv2 .ab-hv2-text--compare h2 { color: #1b1b1c; line-height: 1.04; }
main.ab-hv2 .ab-hv2-text--compare p {
	margin-top: 16px;
	font-family: 'ClashGrotesk-Bold', 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 25px;
	line-height: 1.366;
	color: #3d0daa;
}

/* Light page headings */
main.ab-hv2--light .ab-hv2-text--dark h2 { color: #232323; line-height: .984; letter-spacing: 0; }
main.ab-hv2 .ab-hv2-text.ab-hv2-text--news { max-width: none; padding: 49px 2px 0; text-align: left; border-top: 1px solid #3b149d; }
main.ab-hv2 .ab-hv2-text--news h2 { font-size: 48px; line-height: .984; color: #232323; }

main.ab-hv2 .ab-hv2-pt-56  { padding-top: 56px !important; }
main.ab-hv2 .ab-hv2-pt-70  { padding-top: 70px !important; }
main.ab-hv2 .ab-hv2-pb-56  { padding-bottom: 56px !important; }
main.ab-hv2 .ab-hv2-pb-90  { padding-bottom: 90px !important; }
main.ab-hv2 .ab-hv2-pb-100 { padding-bottom: 100px !important; }

@media (max-width: 991px) {
	main.ab-hv2 .vc_row.ab-hv2-split {
		flex-direction: column;
		align-items: stretch;
		gap: 36px;
		padding-top: 44px;
		padding-bottom: 44px;
	}
	main.ab-hv2 .vc_row.ab-hv2-split > .wpb_column { flex: none; width: 100%; max-width: none; }
	main.ab-hv2 .vc_row.ab-hv2-split > .ab-hv2-col-visual { order: 2; max-width: 667px; margin-left: auto; margin-right: auto; }
	main.ab-hv2 .ab-hv2-text.ab-hv2-text--feature { padding-left: 0; }
	main.ab-hv2 .ab-hv2-text--feature h2,
	main.ab-hv2 .ab-hv2-text--feature h3 { max-width: none; font-size: 38px; }
	main.ab-hv2 .ab-hv2-text--feature p { max-width: none; }
}

@media (max-width: 575px) {
	main.ab-hv2 .ab-hv2-text--feature h2,
	main.ab-hv2 .ab-hv2-text--feature h3 { font-size: 30px; }
	main.ab-hv2 .ab-hv2-text--compare p { font-size: 19px; }
	main.ab-hv2 .ab-hv2-text--news h2 { font-size: 34px; }
}

/* testimonials sit on the light canvas on product pages */
main.ab-hv2--light .ab-hv2-section.ab-hv2-tst { background: transparent; }

/* text that follows a left-side diagram starts at the design's 809px column */
@media (min-width: 1200px) {
	main.ab-hv2 .vc_row.ab-hv2-split > .ab-hv2-col-visual + .wpb_column .ab-hv2-text--feature { padding-left: 61px; }
}
