/* Keep the homepage's existing visual sequence while exposing its H1 and related sections first in the DOM. */
body.home #main-content.ddm-homepage-semantic-order {
	display: flex;
	flex-direction: column;
}

body.home #main-content.ddm-homepage-semantic-order > [data-home-visual-order] {
	flex: 0 0 auto;
	width: 100%;
}

/* Bring the trust details closer to the opening cards without moving either block. */
body.home .home-needs { padding-bottom: clamp(16px, 2vw, 28px); }

body.home .home-trust-strip {
	position: relative;
	z-index: 1;
	padding: 14px 20px 24px;
	background: transparent;
}

body.home .home-trust-strip__grid {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: center;
	padding: 9px clamp(16px, 2vw, 30px);
	border: 1px solid rgb(100 164 246 / 45%);
	border-radius: 22px;
	background: linear-gradient(100deg, #12458f 0%, #163c7b 42%, #14458e 66%, #145ec5 100%);
	box-shadow: 0 8px 20px rgb(5 41 90 / 10%);
}

/* The same curved ribbon at both ends; the left is an exact reflection. */
body.home .home-trust-strip__grid::before,
body.home .home-trust-strip__grid::after {
	content: "";
	position: absolute;
	z-index: 0;
	top: 0;
	bottom: 0;
	width: clamp(160px, 29%, 400px);
	background: url("../images/home-trust-wave.svg") right bottom / 100% 100% no-repeat;
	opacity: .85;
	pointer-events: none;
}
body.home .home-trust-strip__grid::before { left: 0; transform: scaleX(-1); }
body.home .home-trust-strip__grid::after { right: 0; }

body.home .home-trust-strip__item {
	position: relative;
	z-index: 1;
	display: flex;
	min-width: 0;
	min-height: 54px;
	align-items: center;
	gap: 10px;
	padding: 4px 12px;
	border-right: 1px solid rgb(255 255 255 / 40%);
}

body.home .home-trust-strip__item:first-child { padding-left: 0; }
body.home .home-trust-strip__item:last-child { padding-right: 0; border-right: 0; }

body.home .home-trust-strip__item svg {
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
	fill: none;
	stroke: #fff;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

body.home .home-trust-strip__item p { min-width: 0; margin: 0; }
body.home .home-trust-strip__item strong,
body.home .home-trust-strip__item span { display: block; }
body.home .home-trust-strip__item strong {
	color: #fff;
	font-size: clamp(14px, 1.15vw, 16px);
	font-weight: 800;
	line-height: 1.25;
}
body.home .home-trust-strip__item span {
	margin-top: 3px;
	color: #e0edff;
	font-size: clamp(12px, 1vw, 16px);
	line-height: 1.35;
}

@media (min-width: 1101px) {
	body.home .home-trust-strip__item strong,
	body.home .home-trust-strip__item span { white-space: nowrap; }
}

@media (max-width: 1100px) {
	body.home .home-trust-strip { padding: 10px 12px 20px; }
	body.home .home-trust-strip__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		padding: 8px;
		border-radius: 18px;
	}
	body.home .home-trust-strip__grid::before,
	body.home .home-trust-strip__grid::after {
		top: auto;
		height: 72px;
		width: 45%;
	}
	body.home .home-trust-strip__item {
		min-height: 84px;
		gap: 8px;
		padding: 12px 8px;
		border-right: 0;
	}
	body.home .home-trust-strip__item:nth-child(odd) { border-right: 1px solid rgb(255 255 255 / 28%); }
	body.home .home-trust-strip__item:nth-child(-n+2) { border-bottom: 1px solid rgb(255 255 255 / 28%); }
	body.home .home-trust-strip__item:first-child { padding-left: 8px; }
	body.home .home-trust-strip__item:last-child { padding-right: 8px; }
	body.home .home-trust-strip__item svg { width: 26px; height: 26px; }
	body.home .home-trust-strip__item strong { font-size: 13px; }
	body.home .home-trust-strip__item span { font-size: 12px; }
}

@media (max-width: 360px) {
	body.home .home-trust-strip__item { gap: 7px; padding-inline: 8px; }
	body.home .home-trust-strip__item:first-child { padding-left: 8px; }
	body.home .home-trust-strip__item:last-child { padding-right: 8px; }
	body.home .home-trust-strip__item svg { width: 24px; height: 24px; }
	body.home .home-trust-strip__item strong { font-size: 12px; }
	body.home .home-trust-strip__item span { font-size: 12px; }
}
