/**
 * Home product features section styles — Figma node 2617:3942.
 */

.gh-features {
	position: relative;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	background: #faf8f4;
	padding: 120px 160px;
}

.gh-features__inner {
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 144px;
}

.gh-feature {
	display: flex;
	align-items: stretch;
	gap: 32px;
}

.gh-feature__text {
	flex-shrink: 0;
	width: 447px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.gh-feature__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gh-feature__title {
	margin: 0;
	font-family: 'schibsted_grotesk_demi', Arial, sans-serif;
	font-weight: normal;
	font-size: 32px;
	line-height: 40px;
	color: var(--gh-text-primary);
}

.gh-feature__desc {
	margin: 0;
	font-family: 'avenir_next_worldmedium', 'Verdana';
	font-weight: normal;
	font-size: 16px;
	line-height: 28px;
	color: var(--gh-text-primary);
}

.gh-feature__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gh-feature__list-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	font-family: 'avenir_next_worldmedium', 'Verdana';
	font-weight: normal;
	font-size: 16px;
	line-height: 28px;
	color: var(--gh-text-primary);
}

.gh-feature__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: #333;
}

.gh-feature__preview {
	flex: 1 1 auto;
	min-width: 0;
}

.gh-feature__preview img {
	display: block;
	width: 100%;
	aspect-ratio: 640 / 400;
	object-fit: cover;
	border-radius: 16px;
}

/* The gradient frame (gradiant-bg-video.webp, 1280x800 = 8:5) is a separate,
   featureless background — no video content — so nothing can bleed around the
   video. Keep the box at 8:5 (matching the gradient) at every breakpoint so the
   screen below stays exactly 16:9. */
.gh-feature__video {
	position: relative;
	width: 100%;
	aspect-ratio: 640 / 400;
	border-radius: 16px;
	overflow: hidden;
	background-color: var(--gh-accent);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* The screen nests inside the gradient at the asset's own margins
   (video-preview.webp 1138x640 centered in the 1280x800 gradient = 5.55% left/
   right, 10% top/bottom), which makes it exactly 16:9. Its background is the
   video-preview poster (also 16:9), shown while the video loads. */
.gh-feature__screen {
	position: absolute;
	top: 10%;
	left: 5.55%;
	right: 5.55%;
	bottom: 10%;
	overflow: hidden;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.gh-feature__screen iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: auto;
	height: auto;
	min-width: 100%;
	min-height: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* Laptop / small desktop (1024–1439px): tighter 80px sides + reduced vertical. */
@media (min-width: 1024px) and (max-width: 1439px) {
	.gh-features {
		padding: 96px 40px;
	}
	.gh-feature__preview img {
		aspect-ratio: auto;
		height: auto;
		object-fit: fill;
	}
}

@media (max-width: 1023px) {
	.gh-features {
		padding: 64px 24px;
	}

	.gh-features__inner {
		gap: 72px;
	}

	.gh-feature {
		flex-direction: column;
		gap: 24px;
	}

	.gh-feature__text {
		width: 100%;
	}

	.gh-feature__preview img {
		aspect-ratio: auto;
		height: auto;
		object-fit: fill;
	}
}

@media (max-width: 768px) {
	.gh-features {
		padding: 64px 16px;
	}

	.gh-features__inner {
		gap: 64px;
	}
	.gh-feature {
		gap: 32px;
	}
	.gh-feature__text {
		display: contents;
	}

	.gh-feature__head {
		order: 1;
	}

	.gh-feature__preview {
		order: 2;
	}

	.gh-feature__list {
		order: 3;
	}
	.gh-feature__list-item {
		padding: 4px 0;
		font-size: 14px;
		line-height: 24px;
	}
	.gh-feature__icon{
		width: 16px;
    	height: 16px;
	}
	.gh-feature__desc{
		font-size: 14px;
		line-height: 24px;
	}
	
}