/* ==========================================================================
   Home AI Features Section (#ai_features) Dedicated Stylesheet
   ========================================================================== */

#ai_features {
	position: relative;
	width: 100%;
}

/* Sticky top container positioning formula */
#ai_features #flow-video-container {
	position: sticky;
	top: calc(var(--vh, 1vh) * 50 - var(--flow-video-container-height, 0px) / 2);
}

/* ==========================================================================
   1. DESKTOP HEADER & STEP TITLES (>= 768px)
   ========================================================================== */
@media (min-width: 768px) {
	#ai_features .flow-desktop-header {
		margin-bottom: 2rem !important; /* 32px gap above video box on desktop */
		min-height: 5.625rem;
		height: auto;
		flex-shrink: 0 !important;
	}

	#ai_features [data-flow-desktop-step-container] {
		will-change: transform;
	}
}

/* ==========================================================================
   2. MOBILE STEP TITLES (Above Video)
   ========================================================================== */
#ai_features .flow-mobile-steps {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	margin-bottom: 2.5rem !important; /* 40px gap above video box to guarantee zero overlap */
	width: 100%;
	flex-shrink: 0 !important;
}

#ai_features .flow-mobile-step {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem; /* ~20px spacing from marker to text */
	width: 100%;
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	text-align: left;
	transition: color 200ms ease, opacity 200ms ease;
	-webkit-tap-highlight-color: transparent;
}

#ai_features .flow-mobile-marker {
	width: 8px; /* w-2 */
	height: 0.875rem; /* Inactive: ~14px */
	border-radius: 999px;
	background-color: #B5B5B5;
	flex-shrink: 0;
	margin-top: 0.2rem;
	transition: height 200ms ease, background-color 200ms ease;
}

#ai_features .flow-mobile-text {
	flex: 1 1 auto;
	margin: 0;
	font-family: 'LT Internet', var(--font-sans, sans-serif);
	font-size: 1.25rem;
	line-height: 1.25 !important; /* Clean line height so wrapped text never clips */
	color: #B5B5B5;
	text-align: left;
	white-space: normal;
	transition: color 200ms ease;
	word-break: normal;
	overflow-wrap: break-word;
}

/* Active State for Mobile Step Titles */
#ai_features .flow-mobile-step[aria-current="step"] .flow-mobile-marker {
	background-color: #141414;
	height: 1.625rem; /* Active: ~26px */
}

#ai_features .flow-mobile-step[aria-current="step"] .flow-mobile-text {
	color: #141414;
	font-weight: 400;
}


/* ==========================================================================
   3. VIDEO CONTAINER & FITTING (Desktop & Mobile)
   ========================================================================== */
#ai_features .flow-video-box {
	position: relative !important;
	width: 100% !important;
	height: calc(var(--vh, 1vh) * 100 - 8rem) !important;
	max-height: 596px !important;
	overflow: hidden !important;
	border-radius: 1.5rem !important;
	background-color: rgba(0, 0, 0, 0.04) !important;
	flex-shrink: 0 !important;
	margin-top: 0 !important;
}

@media (max-width: 767.98px) {
	#ai_features .flow-video-box {
		position: relative !important;
		width: 100% !important;
		height: calc(var(--vh, 1vh) * 100) !important;
		max-height: 380px !important;
		border-radius: 24px !important;
		overflow: hidden !important;
		margin-top: 0 !important;
	}
}

#ai_features .flow-video-wrapper {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	opacity: 0;
	pointer-events: none;
	transition: opacity 400ms ease;
}

#ai_features .flow-video-wrapper.is-active {
	opacity: 1 !important;
	pointer-events: auto !important;
}

#ai_features .flow-video-wrapper video {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: cover !important;
	pointer-events: none !important;
}


/* ==========================================================================
   4. MOBILE DESCRIPTION BELOW VIDEO
   ========================================================================== */
@media (max-width: 767.98px) {
	#ai_features .flow-mobile-desc-wrapper {
		position: relative !important;
		width: 100% !important;
		background: transparent !important;
		padding-top: 1rem !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		flex-shrink: 0 !important;
	}

	#ai_features .flow-mobile-desc-wrapper [data-flow-description] {
		font-size: 0.75rem !important;
		line-height: 1.2 !important;
		color: #6B6B6B !important;
		transition: opacity 200ms ease !important;
	}
}


/* ==========================================================================
   5. MOBILE TAG / PILL GROUP BELOW DESCRIPTION
   ========================================================================== */
#ai_features .flow-mobile-tags {
	display: grid;
	width: calc(100% + 1.5rem);
	margin-left: -0.75rem;
	margin-right: -0.75rem;
	margin-top: 1rem;
	overflow: hidden;
	flex-shrink: 0 !important;
}

@media (min-width: 768px) {
	#ai_features .flow-mobile-steps,
	#ai_features .flow-mobile-desc-wrapper,
	#ai_features .flow-mobile-tags {
		display: none !important;
	}
}

#ai_features .flow-tag-group-mob,
#ai_features [data-flow-tags],
#ai_features [data-flow-tags-mob] {
	transition: opacity 400ms ease;
}

#ai_features .scrollbar-none {
	-ms-overflow-style: none;  /* IE and Edge */
	scrollbar-width: none;  /* Firefox */
}

#ai_features .scrollbar-none::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}
