/**
 * Lottie Phone Slider Block Styles
 * Scroll-triggered animation with synchronized content blocks
 */
 html, body {
	overflow-x: clip;
}
 /* body #header {
	position: absolute!important;
	left:0;
	right:0;
} 
body {
	padding-top: 177px;
} */
/* Reset for elements within block */
.block--lottie-phone-slider * {
	box-sizing: border-box;
}

.lottie-phone-container {
	min-height: calc(100vh + var(--expected-scroll-distance, 0px));
	display: flex;
	flex-direction: column;
	background: #f7f6ff;
}

/* Main wrapper with gradient background - matches demo's .lottie-body */
.block--lottie-phone-slider .lottie-body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: #ECE9FF;
	background: linear-gradient(175deg, rgba(236, 233, 255, 1) 0%, rgba(236, 233, 255, 1) 90%, rgba(247, 246, 255, 1) 90%);
	overflow-x: clip; /* clip (not hidden) avoids creating a scroll container that would trap sticky */
	flex: 1 0 auto;   /* stretch to fill .lottie-phone-container so sticky has full scroll range */
}

/* Intro Section */
.block--lottie-phone-slider .intro-section {
	/* height: 30vh; */
	padding-top: 80px;
	margin-bottom: -50px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: white;
	position: relative;
	z-index: 5;
}

.block--lottie-phone-slider .intro-content {
	max-width: 100%;
	padding-right: 1rem;
	padding-left: 1rem;
	color: #23004B;
}

/* .block--lottie-phone-slider .intro-content h1 {
	font-family: "Avenir LT Pro Medium", sans-serif;
	font-size: 48px;
	font-style: normal;
	font-weight: 500;
	line-height: 52px;
	color: #23004B;
} */

.block--lottie-phone-slider .intro-content p {
	/* font-size: 1.3em; */
	margin-bottom: 30px;
	opacity: 0.9;
	max-width: 569px;
	margin-left:auto;
	margin-right:auto;
}

.block--lottie-phone-slider .scroll-indicator {
	font-size: 1em;
	opacity: 0.7;
	animation: lottie-phone-bounce 2s infinite;
}

@keyframes lottie-phone-bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

/* Animation Container - Flexbox centering, GSAP pin handles positioning */
.block--lottie-phone-slider .animation-container {
	width: 100%;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.block--lottie-phone-slider canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	/* border-radius: 120px; */
	border-radius: 13%;
	z-index:5;
}

.block--lottie-phone-slider .animation-window {
	position: relative;
	/* min() satisfies both max-width (480px) and max-height (100vh-350px) simultaneously
	   while keeping aspect-ratio: 295/639 active (only works when height is auto) */
	width: min(480px, calc((100vh - 350px) * 295 / 639));
	aspect-ratio: 295 / 639;
	z-index: 10;
	flex-shrink: 0;
	/* margin-left:1.5%; */
	margin-top:40px;
}

/* Loading spinner */
.block--lottie-phone-slider .lottie-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 3px solid rgba(50, 15, 255, 0.15);
	border-top-color: #320fff;
	border-radius: 50%;
	animation: lottie-spin 0.8s linear infinite;
	z-index: 5;
}

@keyframes lottie-spin {
	to { transform: rotate(360deg); }
}

.block--lottie-phone-slider .phone-mockup-overlay {
	position: absolute;
    inset: 0;
    width: 106%;
    left: -3%;
    top: -5px;
    height: calc(100% + 8px);
    pointer-events: none;
    z-index: 15;
	
}

/* Content Blocks Wrapper */
.block--lottie-phone-slider .content-blocks-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.block--lottie-phone-slider .content-block {
	position: absolute;
	opacity: 0;
	/* transition: opacity 0.6s ease; */
	pointer-events: none;
	z-index: 20;
}

.block--lottie-phone-slider .content-block.show {
	opacity: 1;
	pointer-events: auto;
}

.block--lottie-phone-slider .content-box {
	/* background: rgba(255, 255, 255, 0.95); */
	padding: 10px;
	/* border-radius: 20px; */
	max-width: 424px;
	/* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); */
	/* backdrop-filter: blur(10px); */
}

/* .block--lottie-phone-slider .content-box h2 {
	font-size: 1em;
	color: #23004B;
	margin-bottom: 20px;
	font-weight: 700;
} */

.block--lottie-phone-slider .content-box h2 {
	font-size: 32px;
	color: #23004B;
	margin-bottom: 15px;
	line-height: 38px;
}

.block--lottie-phone-slider .content-box ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.block--lottie-phone-slider .content-box ul li {
	padding: 8px 0;
	padding-left: 25px;
	position: relative;
	color: #555;
}

.block--lottie-phone-slider .content-box ul li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #667eea;
	font-weight: bold;
}

/* Desktop Only - Alternating left/right positioning */
@media (min-width: 1025px) {
	.block--lottie-phone-slider .content-block:nth-of-type(odd) {
		right: calc(50% + 280px);
		top: 50%;
		transform: translateY(-50%);
		text-align: right;
	}

	.block--lottie-phone-slider .content-block:nth-of-type(even) {
		left: calc(50% + 280px);
		top: 50%;
		transform: translateY(-50%);
	}
}

@media (min-width: 1025px) and (max-height: 800px) {
	.block--lottie-phone-slider .animation-window {
		width: min(380px, calc((100vh - 150px) * 295 / 639));
		margin-top: 80px;
	}
}

@media (min-width: 1025px) and (max-width: 1400px) {


	.block--lottie-phone-slider .content-block:nth-of-type(odd) {
		right: calc(50% + 220px);
	}

	.block--lottie-phone-slider .content-block:nth-of-type(even) {
		left: calc(50% + 220px);
	}
}

@media (max-width: 1400px) and (min-width: 1025px) {
	.block--lottie-phone-slider .animation-window {
		max-width: 380px;
	}
	.block--lottie-phone-slider canvas {
		/* border-radius: 85px; */
	}
}

@media (max-width: 1024px) {
	body #header #navbar #hellobar {
		display: none !important;;
	}
	.block--lottie-phone-slider canvas {
		/* border-radius: 45px; */
	}
	/* Mobile: Phone at top, content stacked below */
	.block--lottie-phone-slider .animation-container {
		align-items: center;
		padding-top: 100px;
	}

	.block--lottie-phone-slider .animation-window {
		max-width: 300px;
		z-index: 30;
		margin-top:0;
		margin-bottom:0;
	}

	.block--lottie-phone-slider .content-blocks-wrapper {
		position: relative;
		width: 100%;
		min-height: 400px;
		pointer-events: none;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.block--lottie-phone-slider .content-block {
		position: absolute !important;
		left: 50%;
		top: 0;
		transform: translateX(-50%);
		width: 90%;
		max-width: 600px;
		z-index: 5;
	}

	.block--lottie-phone-slider .content-box {
		max-width: 100%;
		margin: 0 auto;
	}
}

@media (max-width: 768px) {
	.block--lottie-phone-slider .animation-window {
		max-width: 280px;
	}

	.block--lottie-phone-slider .content-box {
		padding: 30px;
	}

	/* .block--lottie-phone-slider .content-box h2 {
		font-size: 2em;
	} */

	.block--lottie-phone-slider .content-box h2 {
		font-size: 1.4em;
		line-height: 1.5em;
	}
/* 
	.block--lottie-phone-slider .intro-content h1 {
		font-size: 2.5em;
	} */

	/* .block--lottie-phone-slider .intro-content p {
		font-size: 1.1em;
	} */
}

@media (max-width: 480px) {
	.block--lottie-phone-slider .animation-window {
		max-width: 240px;
	}

	.block--lottie-phone-slider .content-box {
		padding: 25px;
	}
	
	/* .block--lottie-phone-slider .content-box h2 {
		font-size: 1.6em;
	} */

	.block--lottie-phone-slider .content-box h2 {
		font-size: 0.95em;
	}
}

