/*
 * App Section — mobile first.
 *
 * On a phone the screens are a swipeable rail with scroll-snap: one screen
 * fills about three quarters of the width so the next one peeks in and says
 * "there is more here". From 860px up the rail becomes a plain grid, because
 * a mouse has no swipe and hiding four fifths of the content behind a drag is
 * how desktop visitors miss it.
 *
 * Everything colourful is a custom property so the Elementor Design tab can
 * repaint the section without a single !important.
 */

.ase {
	--ase-accent: #F5B400;
	--ase-ink: #2A1E4A;
	--ase-muted: #7A6F8C;
	--ase-card: #FFFFFF;
	--ase-tag: #FFF0C7;
	--ase-frame: #1B1630;
	--ase-line: #EDE3D2;
	--ase-radius: 28px;
	--ase-pad: 22px;
	--ase-slide: 74%;

	color: var(--ase-ink);
	background: var(--ase-card);
	border-radius: var(--ase-radius);
	padding: var(--ase-pad) 0;
	box-shadow: 0 10px 40px rgba(42, 30, 74, .08);
	max-width: 1180px;
	margin-inline: auto;
	box-sizing: border-box;
}

.ase *,
.ase *::before,
.ase *::after {
	box-sizing: border-box;
}

.ase__head {
	padding-inline: var(--ase-pad);
}

.ase__eyebrow {
	display: inline-block;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ase-ink);
	background: var(--ase-tag);
	padding: 6px 10px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.ase__heading {
	font-size: clamp(1.5rem, 6vw, 2.1rem);
	line-height: 1.14;
	font-weight: 800;
	margin: 0 0 10px;
	color: inherit;
	text-wrap: balance;
}

.ase__lead {
	font-size: 1rem;
	line-height: 1.5;
	color: var(--ase-muted);
	margin: 0 0 18px;
	max-width: 62ch;
}

/* ---- the rail ---------------------------------------------------------- */

.ase__rail {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 6px var(--ase-pad) 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.ase__rail::-webkit-scrollbar {
	display: none;
}

.ase__slide {
	flex: 0 0 var(--ase-slide);
	scroll-snap-align: center;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

/* A phone is a fixed 390:844 window. The screenshot fills the width and is
   pinned to the top; a full-length one simply runs off the bottom edge until
   the page scroll pulls it up (see app-section.js). */
.ase__phone {
	position: relative;
	border-radius: 26px;
	overflow: hidden;
	border: 6px solid var(--ase-frame);
	background: var(--ase-frame);
	box-shadow: 0 14px 30px rgba(42, 30, 74, .18);
	aspect-ratio: 390 / 844;
	max-width: 100%;
}

.ase__phone img {
	display: block;
	width: 100%;
	height: auto;
	will-change: transform;
}

/* Short screens are exactly one screenful: let them cover the frame so a
   rounding difference never shows a sliver of the frame colour. */
.ase__phone:not(.is-tall) img {
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.ase__step {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ase-accent);
	color: var(--ase-ink);
	font-weight: 800;
	font-size: .8rem;
	line-height: 28px;
	text-align: center;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}

.ase__cap h3 {
	font-size: 1rem;
	font-weight: 800;
	margin: 0 0 4px;
	line-height: 1.25;
	color: inherit;
}

.ase__cap p {
	font-size: .875rem;
	line-height: 1.45;
	color: var(--ase-muted);
	margin: 0;
}

/* ---- dots, facts, button ----------------------------------------------- */

.ase__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 14px 0 4px;
}

.ase__dots i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ase-line);
	transition: width .2s ease, background-color .2s ease;
}

.ase__dots i.on {
	width: 18px;
	border-radius: 3px;
	background: var(--ase-accent);
}

.ase__swipe {
	font-size: .72rem;
	color: var(--ase-muted);
	text-align: center;
	margin: 2px 0 0;
	letter-spacing: .04em;
}

.ase__facts {
	list-style: none;
	padding: 0 var(--ase-pad);
	margin: 18px 0 0;
	display: grid;
	gap: 10px;
}

.ase__facts li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: .9rem;
	line-height: 1.4;
}

.ase__facts b {
	flex: 0 0 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--ase-tag);
	display: grid;
	place-items: center;
	font-size: .875rem;
	font-weight: 400;
}

.ase__cta {
	margin: 22px var(--ase-pad) 0;
	display: grid;
	gap: 10px;
}

.ase__btn {
	display: block;
	text-align: center;
	background: var(--ase-accent);
	color: var(--ase-ink);
	font-weight: 800;
	font-size: .95rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 16px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(245, 180, 0, .35);
}

.ase__btn:hover,
.ase__btn:focus {
	color: var(--ase-ink);
	filter: brightness(1.03);
}

.ase__btn:focus-visible {
	outline: 3px solid var(--ase-ink);
	outline-offset: 3px;
}

.ase__cta small {
	display: block;
	text-align: center;
	color: var(--ase-muted);
	font-size: .8rem;
	line-height: 1.4;
}

/* ---- desktop ----------------------------------------------------------- */

@media (min-width: 860px) {
	.ase {
		padding: calc(var(--ase-pad) * 1.6) 0;
	}

	.ase__head {
		padding-inline: calc(var(--ase-pad) * 1.6);
		max-width: 46rem;
	}

	.ase__rail {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
		gap: 26px 20px;
		overflow: visible;
		padding-inline: calc(var(--ase-pad) * 1.6);
	}

	.ase__slide {
		flex: initial;
	}

	.ase__dots,
	.ase__swipe {
		display: none;
	}

	.ase__facts {
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
		padding-inline: calc(var(--ase-pad) * 1.6);
		margin-top: 26px;
	}

	.ase__cta {
		margin-inline: calc(var(--ase-pad) * 1.6);
		justify-content: center;
	}

	.ase__btn {
		padding-inline: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ase__phone img {
		transform: none !important;
	}

	.ase__rail {
		scroll-behavior: auto;
	}
}
