/*------------------------------------------------------------------
[ AB Home v2 — Server comparison ]
Figma: 976:10539 (visual, exported 2x) + 976:10600 (editorial facts)
Visual = 1440 × 900 css; the facts divider sits at 770px of it.
*/

.ab-hv2-srv {
	--srv-w: max(820px, 100vw); /* full site width (was capped at 1440px) */
	padding: 0;
	background: transparent;
}

.ab-hv2-srv__visual {
	position: relative;
	margin-top: -14px; /* the title row above already carries the design gap */
	height: calc(var(--srv-w) * 680 / 1440);
	pointer-events: none;
}

.ab-hv2-section .ab-hv2-srv__visual img {
	position: absolute;
	top: 0;
	left: 50%;
	width: var(--srv-w);
	max-width: none;
	height: auto;
	transform: translateX(-50%);
	z-index: 0;
}

/* Soft fade in the top-right corner only: hides the lighter patch of the image (racks untouched) */
.ab-hv2-srv__visual::before {
	content: '';
	position: absolute;
	left: 68%;
	right: 0;
	top: 0;
	height: calc(var(--srv-w) * 300 / 1440);
	background: linear-gradient(180deg, #232323 0%, rgba(35, 35, 35, .9) 45%, rgba(35, 35, 35, 0) 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
	z-index: 1;
}

/* ── Facts ─────────────────────────────────────────── */
.ab-hv2-srv__facts {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 440px 588px;
	justify-content: space-between;
	min-height: 561px; /* button bottom = last divider */
}

.ab-hv2-srv__facts::before {
	content: '';
	position: absolute;
	left: var(--hv2-gutter);
	right: var(--hv2-gutter);
	top: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.18);
}

.ab-hv2-srv__intro {
	position: relative;
	padding-top: 32px;
}

.ab-hv2-section .ab-hv2-srv__lead {
	font-family: var(--hv2-font-regular);
	font-size: 30px;
	line-height: 40px;
	color: #fff;
}

.ab-hv2-srv__actions {
	position: absolute;
	left: 13px;
	top: 501px;
}

.ab-hv2-section .ab-hv2-srv__list {
	margin: 0;
	padding: 28px 0 0;
	list-style: none;
}

.ab-hv2-srv__fact {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	min-height: 150px;
	margin: 0 0 40px;
	padding: 22px 0 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.ab-hv2-srv__fact:nth-child(2) { margin-bottom: 42px; padding-top: 0; }
.ab-hv2-srv__fact:last-child { margin-bottom: 0; }

.ab-hv2-section .ab-hv2-srv__fact-text {
	max-width: 475px;
	font-family: var(--hv2-font-regular);
	font-size: 32px;
	line-height: 1.12;
	letter-spacing: 0.96px;
	color: #fff;
}

.ab-hv2-srv__fact:nth-child(2) .ab-hv2-srv__fact-text { line-height: 36px; letter-spacing: 0; }

.ab-hv2-section .ab-hv2-srv__fact-text strong,
.ab-hv2-section .ab-hv2-srv__fact-text b {
	font-family: var(--hv2-font-display);
	font-weight: 700;
}

.ab-hv2-section .ab-hv2-srv__fact-icon {
	position: absolute;
	right: 0;
	top: 28px;
	width: 59px;
	height: 59px;
}

.ab-hv2-section .ab-hv2-srv__fact:nth-child(3n+1) .ab-hv2-srv__fact-icon { right: 7px; top: 24px; }
.ab-hv2-section .ab-hv2-srv__fact:nth-child(3n) .ab-hv2-srv__fact-icon { top: 34px; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1199px) {
	.ab-hv2-srv__facts {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
		gap: 40px;
	}
}

@media (max-width: 991px) {
	.ab-hv2-srv { padding-bottom: 60px; }
	.ab-hv2-srv__facts {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
		gap: 24px;
	}
	.ab-hv2-srv__actions { position: static; margin-top: 32px; }
	.ab-hv2-section .ab-hv2-srv__lead { font-size: 24px; line-height: 1.35; }
	.ab-hv2-section .ab-hv2-srv__fact-text { font-size: 26px; }
	.ab-hv2-srv__fact { min-height: 0; padding: 0 0 24px; margin-bottom: 24px; }
	.ab-hv2-srv__fact:nth-child(2) { margin-bottom: 24px; }
	.ab-hv2-srv__fact:nth-child(2) .ab-hv2-srv__fact-text { line-height: 1.12; }
	.ab-hv2-section .ab-hv2-srv__list { padding-top: 0; }
	/* same position for every icon (beats the desktop :nth-child offsets) */
	.ab-hv2-section .ab-hv2-srv__list .ab-hv2-srv__fact .ab-hv2-srv__fact-icon { top: 0; right: 0; }
	.ab-hv2-section .ab-hv2-srv__fact-text { padding-right: 76px; }
}

@media (max-width: 575px) {
	.ab-hv2-section .ab-hv2-srv__fact-text { font-size: 22px; letter-spacing: 0; }
	.ab-hv2-section .ab-hv2-srv__list .ab-hv2-srv__fact .ab-hv2-srv__fact-icon { width: 44px; height: 44px; }
	.ab-hv2-section .ab-hv2-srv__fact-text { padding-right: 56px; }
}
