/*------------------------------------------------------------------
[ AB Home v2 — Solutions slider ]
Figma: Card 1–5 (976:10626 …) · approved export (4 cards, first clipped left)
Card 384 × 381, gap 15, radius 14.
*/

.ab-hv2-sol {
	--sol-card: 384px;
	--sol-gap: 15px;
	padding: 71px 0 120px;
	background: transparent;
}

.ab-hv2-sol__viewport {
	position: relative;
	overflow: hidden;
	padding: 0 0 70px; /* room for the card shadows */
	cursor: grab;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

.ab-hv2-sol.is-dragging .ab-hv2-sol__viewport { cursor: grabbing; }

.ab-hv2-section .ab-hv2-sol__track {
	display: flex;
	gap: var(--sol-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	will-change: transform;
	/* no-JS fallback: centre the cards and allow native scroll */
	justify-content: center;
}

.ab-hv2-sol.is-ready .ab-hv2-sol__track {
	justify-content: flex-start;
}

.ab-hv2-sol.is-animating .ab-hv2-sol__track {
	transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}

.ab-hv2-sol__card {
	position: relative;
	flex: 0 0 var(--sol-card);
	height: 381px;
	margin: 0;
	padding: 52px 30px 0 47px;
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow: 9px 16px 50px rgba(18, 11, 44, 0.05), 0 24px 56px rgba(18, 11, 44, 0.1);
	isolation: isolate;
}

/* dark blurred ellipse over the white base → light corners (Ellipse 209) */
.ab-hv2-section .ab-hv2-sol__bg {
	position: absolute;
	left: -342px;
	top: -329px;
	width: 1185px;
	max-width: none;
	height: 1130px;
	z-index: -2;
	pointer-events: none;
}

/* colour glow (Vector 90), rotated −37.09° */
.ab-hv2-section .ab-hv2-sol__glow {
	position: absolute;
	left: calc(348.9px - 441.5px);
	top: calc(392.9px - 265.4px);
	width: 883px;
	max-width: none;
	height: auto;
	transform: rotate(-37.09deg);
	z-index: -1;
	pointer-events: none;
}

.ab-hv2-section .ab-hv2-sol__card--purple .ab-hv2-sol__glow {
	left: calc(319px - 441.5px);
	top: calc(353.4px - 315px);
}

.ab-hv2-sol__head {
	display: flex;
	align-items: center;
	gap: 13px;
	min-height: 48px;
	margin-left: -6px;
}

.ab-hv2-section .ab-hv2-sol__icon {
	flex: none;
	width: 42px;
	height: 42px;
	object-fit: contain;
}

.ab-hv2-section .ab-hv2-sol__title {
	font-family: 'ClashGrotesk-Semibold', 'Manrope', sans-serif;
	font-weight: 600;
	font-size: 32px;
	line-height: 1.15;
	color: #fff;
	white-space: nowrap;
}

.ab-hv2-section .ab-hv2-sol__text {
	max-width: 300px;
	margin-top: 15px;
	font-family: var(--hv2-font-ui);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.37;
	color: #fff;
}

.ab-hv2-sol__actions {
	position: absolute;
	left: 47px;
	top: 265px;
}

/* Outline button (cards) */
.ab-hv2-btn--outline {
	min-height: 59px;
	padding: 19px 30px 19px 32px;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	background: transparent;
	color: rgba(255, 255, 255, 0.5);
}

.ab-hv2-btn--outline:hover,
.ab-hv2-btn--outline:focus {
	border-color: #fff;
	color: #fff;
}

/* Horizon line */
.ab-hv2-sol__horizon {
	display: block;
	width: 1343px;
	max-width: 100%;
	height: 2px;
	margin: -8px auto 0;
	background: linear-gradient(90deg, rgba(183, 148, 255, 0) 0%, rgba(183, 148, 255, 0.9) 50%, rgba(183, 148, 255, 0) 100%);
}

/* No-JS fallback */
.ab-hv2-sol:not(.is-ready) .ab-hv2-sol__viewport {
	overflow-x: auto;
}

@media (max-width: 767px) {
	.ab-hv2-sol { --sol-card: 320px; --sol-gap: 12px; padding-top: 40px; padding-bottom: 60px; }
	.ab-hv2-sol__card { height: 380px; padding: 40px 24px 0 30px; }
	.ab-hv2-section .ab-hv2-sol__title { font-size: 26px; }
	.ab-hv2-section .ab-hv2-sol__text { font-size: 15px; }
	.ab-hv2-sol__actions { left: 30px; top: auto; bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	.ab-hv2-sol.is-animating .ab-hv2-sol__track { transition: none; }
}
