/* Convera landing: keyframes, scroll-linked reveals and breakpoints. */

@keyframes lb-pan {
	to {
		background-position: 280px 280px;
	}
}

@keyframes lb-rise {
	0% {
		opacity: 0;
		transform: translateY(0) rotate(-4deg);
	}
	10% {
		opacity: 0.55;
	}
	50% {
		transform: translateY(-480px) rotate(3deg);
	}
	85% {
		opacity: 0.4;
	}
	100% {
		opacity: 0;
		transform: translateY(-980px) rotate(-2deg);
	}
}

@keyframes lb-travel {
	0% {
		opacity: 0;
		transform: translateX(-220px);
	}
	10%,
	70% {
		opacity: 0.9;
	}
	100% {
		opacity: 0;
		transform: translateX(1700px);
	}
}

@keyframes lb-up {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes lb-pop {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes lb-out {
	to {
		opacity: 0;
		visibility: hidden;
	}
}

@keyframes lb-grow-x {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

@keyframes lb-grow-y {
	from {
		transform: scaleY(0);
	}
	to {
		transform: scaleY(1);
	}
}

@keyframes lb-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@keyframes lb-dot {
	0%,
	60%,
	100% {
		opacity: 0.3;
		transform: none;
	}
	30% {
		opacity: 1;
		transform: translateY(-3px);
	}
}

@keyframes lb-ring {
	from {
		opacity: 0.9;
		transform: scale(0.6);
	}
	to {
		opacity: 0;
		transform: scale(1.8);
	}
}

@keyframes lb-beat {
	50% {
		transform: scale(1.5);
	}
}

@keyframes lb-bob {
	0%,
	100% {
		translate: 0 0;
	}
	50% {
		translate: 0 -8px;
	}
}

@keyframes lb-blink {
	50% {
		opacity: 0.35;
	}
}

@keyframes lb-light {
	0%,
	100% {
		opacity: 0.35;
		transform: scale(1);
	}
	15% {
		opacity: 1;
		transform: scale(1.35);
	}
	35% {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes lb-glow {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgb(124 193 66 / 0);
	}
	20% {
		box-shadow: 0 0 0 10px rgb(124 193 66 / 0.25);
	}
}

@keyframes lb-dash {
	from {
		stroke-dashoffset: 1;
	}
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes lj-fill {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

@keyframes lj-type {
	0% {
		opacity: 0;
		transform: translateY(8px);
	}
	15%,
	80% {
		opacity: 1;
		transform: none;
	}
	100% {
		opacity: 0;
		height: 0;
		padding: 0;
		border-width: 0;
		margin: -10px 0 0;
	}
}

@keyframes lb-typeswap {
	0% {
		opacity: 0;
	}
	20%,
	60% {
		opacity: 1;
	}
	75%,
	100% {
		opacity: 0;
	}
}

/* FAQ: Sari types first, then the answer pops in. */
.lb-faq[open] .lb-ans {
	animation: lb-up 0.3s ease both;
}

.lb-faq[open] .lb-ans-typing {
	animation: lb-out 0.2s ease 0.7s both;
}

.lb-faq[open] .lb-ans-text {
	animation: lb-pop 0.35s var(--ease-out) 0.75s both;
}

/* Scroll-linked reveals where the browser supports view timelines. */
@supports (animation-timeline: view()) {
	.lb-reveal {
		animation: lb-up linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 55%;
	}

	.lb-r2 {
		animation-range: entry 15% entry 70%;
	}

	.lb-seq > * {
		animation: lb-pop linear both;
		animation-timeline: view();
		animation-range: entry 20% entry 70%;
	}

	.lb-seq > *:nth-child(2) {
		animation-range: entry 35% entry 80%;
	}

	.lb-seq > *:nth-child(3) {
		animation-range: entry 50% entry 90%;
	}

	.lb-seq > *:nth-child(4) {
		animation-range: entry 60% entry 100%;
	}

	.lb-stagger > * {
		animation: lb-up linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 50%;
	}

	.lb-stagger > *:nth-child(2) {
		animation-range: entry 10% entry 60%;
	}

	.lb-stagger > *:nth-child(3) {
		animation-range: entry 20% entry 70%;
	}

	.lb-stagger > *:nth-child(4) {
		animation-range: entry 30% entry 80%;
	}

	.lb-bar {
		transform-origin: left;
		animation: lb-grow-x linear both;
		animation-timeline: view();
		animation-range: entry 20% entry 80%;
	}

	.lb-tq-typing {
		animation: lb-typeswap linear both;
		animation-timeline: view();
		animation-range: entry 10% entry 90%;
	}

	.lb-tq {
		animation: lb-pop linear both;
		animation-timeline: view();
		animation-range: entry 70% entry 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		/* biome-ignore lint/complexity/noImportantStyles: reduced motion must beat every per-element animation */
		animation: none !important;
		/* biome-ignore lint/complexity/noImportantStyles: reduced motion must beat every per-element transition */
		transition: none !important;
	}

	html {
		scroll-behavior: auto;
	}

	.lb-tq-typing,
	.lb-ans-typing,
	.lj-typing-b {
		display: none;
	}
}

@media (min-width: 640px) {
	.lb-4col,
	.lb-foot {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lb-h1 {
		font-size: 64px;
	}
}

@media (min-width: 1024px) {
	.nav-links {
		display: flex;
	}

	.lb-herotop {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	}

	.lb-2col {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lb-3col {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.lb-4col {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.lb-foot {
		grid-template-columns: 2fr 1fr 1fr 1fr;
	}

	.lb-rail {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		overflow: visible;
	}

	.lb-h1 {
		font-size: 88px;
	}

	.lb-h2 {
		font-size: 56px;
	}

	.lb-stat {
		font-size: 72px;
	}

	.lb-ctabox {
		padding: 64px 48px;
	}

	.lj-wrap {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}

	.lj-list {
		flex-direction: column;
		overflow: visible;
		margin: 0;
		padding: 0;
	}

	.lj-btn {
		width: 100%;
		min-height: 56px;
		padding: 0 22px;
		border: 0;
	}

	.lj-time {
		width: 92px;
	}

	.lj-btn[aria-current] {
		padding: 20px 22px;
		gap: 10px;
	}

	.lj-btn[aria-current] .lj-time {
		width: auto;
	}

	.lj-btn[aria-current] .lj-title {
		font-size: 20px;
		line-height: 26px;
		white-space: normal;
	}

	.lj-btn[aria-current] .lj-desc {
		display: block;
		font-size: 15px;
		line-height: 23px;
		color: var(--muted-foreground);
	}

	.lj-mtext {
		display: none;
	}

	.lj-stage {
		position: sticky;
		top: 24px;
	}
}
