/**
 * Mobile app marketing page - scoped to .mkt-ref-app / .site-wrap.mkt-ref
 */

.mkt-ref-app-main {
	overflow: hidden;
}

.site-wrap.mkt-ref .mkt-ref-app-hero.mkt-ref-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: calc(100svh - 64px);
	padding: 48px 0;
	text-align: center;
	color: #fff;
	box-sizing: border-box;
}

.site-wrap.mkt-ref .mkt-ref-app-hero__inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	width: 100%;
}

.site-wrap.mkt-ref .mkt-ref-app-hero__copy {
	max-width: 640px;
	margin: 0 auto;
}

.site-wrap.mkt-ref .mkt-ref-app-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 6px 14px;
	border-radius: 99px;
	border: 1px solid rgba(0, 200, 150, 0.35);
	background: rgba(0, 200, 150, 0.14);
	color: var(--accent) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.site-wrap.mkt-ref h1.mkt-ref-app-hero__title {
	margin: 0 0 16px !important;
	font-size: clamp(36px, 5.5vw, 52px) !important;
	line-height: 1.08 !important;
	font-weight: 800 !important;
	letter-spacing: -0.03em !important;
	color: #fff !important;
}

.site-wrap.mkt-ref .mkt-ref-app-hero__lead {
	margin: 0 auto 28px !important;
	max-width: 48ch;
	font-size: 16px !important;
	line-height: 1.65 !important;
	font-weight: 500 !important;
	color: rgba(255, 255, 255, 0.74) !important;
}

.site-wrap.mkt-ref .mkt-ref-app-hero__badges,
.site-wrap.mkt-ref .mkt-ref-app-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.site-wrap.mkt-ref .mkt-ref-app-badge {
	display: inline-flex;
	line-height: 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-wrap.mkt-ref .mkt-ref-app-badge:hover,
.site-wrap.mkt-ref .mkt-ref-app-badge:focus-visible {
	transform: translateY(-2px);
	opacity: 0.95;
}

.site-wrap.mkt-ref .mkt-ref-app-badge:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(33, 92, 92, 0.18);
	border-radius: 8px;
}

.site-wrap.mkt-ref .mkt-ref-app-badge img {
	display: block;
	height: 48px;
	width: auto;
}

.site-wrap.mkt-ref .mkt-ref-app-hero__note {
	margin: 18px 0 0 !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
	color: rgba(255, 255, 255, 0.5) !important;
}

.site-wrap.mkt-ref .mkt-ref-app-hero__note a {
	color: #fff !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-wrap.mkt-ref .mkt-ref-app-hero__note a:hover,
.site-wrap.mkt-ref .mkt-ref-app-hero__note a:focus-visible {
	color: var(--accent) !important;
}

.mkt-ref-app-highlights {
	background: var(--surface, #fff);
	border-bottom: 1px solid var(--border, #e8ecef);
}

.mkt-ref-app-highlights__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 28px 28px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.mkt-ref-app-highlight {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 8px 0;
}

.mkt-ref-app-highlight__icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--primary-ghost, #e8f4f4);
	color: var(--primary-mid, #215C5C);
	font-size: 16px;
}

.mkt-ref-app-highlight h2 {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text-dark, #0f1923);
}

.mkt-ref-app-highlight p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-muted, #7a8fa3);
}

.mkt-ref-app-screens {
	background: var(--bg, #f5f6f8);
	padding: 64px 0 72px;
	overflow: hidden;
}

.mkt-ref-app-screens__head {
	max-width: 1140px;
	margin: 0 auto 36px;
	padding: 0 28px;
	text-align: center;
}

.mkt-ref-app-screens__eyebrow {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--primary-mid, #215C5C);
}

.mkt-ref-app-screens__title {
	margin: 0 0 12px;
	font-size: clamp(26px, 3.4vw, 36px);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--text-dark, #0f1923);
}

.mkt-ref-app-screens__lede {
	margin: 0 auto;
	max-width: 52ch;
	font-size: 15px;
	line-height: 1.6;
	color: var(--text-mid, #3d4f5c);
}

.mkt-ref-app-screens__stage {
	position: relative;
	width: 100%;
	max-width: none;
	height: clamp(580px, 64vw, 740px);
	margin: 0 auto;
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-mask-image: none;
	mask-image: none;
}

/* Tiny fade only at extreme viewport corners (~24px) */
.mkt-ref-app-screens__stage::before,
.mkt-ref-app-screens__stage::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 24px;
	z-index: 30;
	pointer-events: none;
}

.mkt-ref-app-screens__stage::before {
	left: 0;
	background: linear-gradient(
		90deg,
		var(--bg, #f5f6f8) 0%,
		rgba(245, 246, 248, 0) 100%
	);
}

.mkt-ref-app-screens__stage::after {
	right: 0;
	background: linear-gradient(
		270deg,
		var(--bg, #f5f6f8) 0%,
		rgba(245, 246, 248, 0) 100%
	);
}

.mkt-ref-app-screens__stage::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.mkt-ref-app-screens__track {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.mkt-ref-app-screen {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: 0;
	width: 200px;
	max-height: 96%;
	transform: translate(-50%, -50%);
	transform-origin: center center;
	opacity: 1 !important;
	filter: none !important;
	z-index: 1;
	border-radius: 24px !important;
	overflow: hidden !important;
	box-shadow: none;
	transition:
		transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
		width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform, width;
	pointer-events: none;
	line-height: 0;
	background: #0e4d44;
}

.mkt-ref-app-screen.is-center {
	pointer-events: auto;
	border-radius: 24px !important;
	overflow: hidden !important;
	box-shadow: none;
}

.mkt-ref-app-screen.is-side {
	box-shadow: none;
}

.mkt-ref-app-screen.is-far {
	box-shadow: none;
}

.mkt-ref-app-screen img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 100%;
	aspect-ratio: 473 / 1024;
	object-fit: cover;
	object-position: top center;
	background: #0e4d44;
	border-radius: 24px !important;
	opacity: 1 !important;
}

.mkt-ref-app-screen.is-center img {
	border-radius: 24px !important;
}

@media (min-width: 901px) {
	.mkt-ref-app-screen {
		width: 200px;
	}
}

@media (max-width: 640px) {
	.mkt-ref-app-screens {
		padding: 48px 0 56px;
	}

	.mkt-ref-app-screens__stage {
		height: clamp(460px, 125vw, 580px);
	}

	.mkt-ref-app-screens__stage::before,
	.mkt-ref-app-screens__stage::after {
		width: 16px;
	}

	.mkt-ref-app-screen,
	.mkt-ref-app-screen.is-center {
		border-radius: 20px !important;
	}

	.mkt-ref-app-screen img,
	.mkt-ref-app-screen.is-center img {
		border-radius: 20px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mkt-ref-app-screen {
		transition: none;
	}
}

/* Homepage hero - center content after removing screenshot */
body.page-index-home .site-wrap.mkt-ref .ref-home-a8ece810.mkt-ref-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: min(78vh, 720px);
	padding: 96px 28px 88px !important;
	text-align: center;
}

body.page-index-home .site-wrap.mkt-ref .ref-home-a8ece810 .ref-home-10410a33 {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 991.98px) {
	body.page-index-home .site-wrap.mkt-ref .ref-home-a8ece810.mkt-ref-hero {
		min-height: min(72vh, 640px);
		padding: 80px 20px 72px !important;
	}
}

@media (max-width: 575.98px) {
	body.page-index-home .site-wrap.mkt-ref .ref-home-a8ece810.mkt-ref-hero {
		min-height: auto;
		padding: 64px 16px 56px !important;
	}
}

.site-wrap.mkt-ref .mkt-ref-home-hero-app {
	display: none;
}

.site-wrap.mkt-ref .mkt-ref-nav__new {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	padding: 2px 7px;
	border-radius: 99px;
	background: rgba(0, 200, 150, 0.16);
	color: #0b6b55;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	vertical-align: middle;
}

.site-wrap.mkt-ref a.mkt-ref-nav__link.is-active .mkt-ref-nav__new {
	background: rgba(0, 200, 150, 0.22);
	color: #0b6b55;
}

.mkt-ref-app-cta {
	background: var(--primary-mid, #215C5C);
	padding: 64px 28px;
}

.mkt-ref-app-cta__inner {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.mkt-ref-app-cta__inner h2 {
	margin: 0 0 12px;
	font-size: clamp(26px, 3.4vw, 36px);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
}

.mkt-ref-app-cta__inner > p {
	margin: 0 0 28px;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
}

.mkt-ref-app-cta__actions {
	justify-content: center;
	margin-bottom: 0;
}

/* Homepage app promo - light band (avoids stacking two dark teal sections) */
.site-wrap.mkt-ref .mkt-ref-home-app {
	background: var(--bg, #f5f6f8);
	border-top: 1px solid var(--border, #e8ecef);
	border-bottom: 1px solid var(--border, #e8ecef);
	padding: 64px 28px;
	color: var(--text-dark, #0f1923);
}

.site-wrap.mkt-ref .mkt-ref-home-app__inner {
	max-width: 720px;
	margin: 0 auto;
	display: block;
	text-align: center;
}

.site-wrap.mkt-ref .mkt-ref-home-app__eyebrow {
	margin: 0 0 10px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase;
	color: var(--primary-mid, #215C5C) !important;
}

.site-wrap.mkt-ref .mkt-ref-home-app__title {
	margin: 0 0 10px !important;
	font-size: clamp(24px, 3vw, 32px) !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em !important;
	color: var(--text-dark, #0f1923) !important;
}

.site-wrap.mkt-ref .mkt-ref-home-app__lede {
	margin: 0 auto 24px !important;
	max-width: 48ch;
	font-size: 15px !important;
	line-height: 1.6 !important;
	color: var(--text-mid, #3d4f5c) !important;
}

.site-wrap.mkt-ref .mkt-ref-home-app__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.site-wrap.mkt-ref a.mkt-ref-home-app__link {
	display: inline-flex;
	align-items: center;
	height: 2.25rem;
	padding: 0 1rem;
	border-radius: 8px;
	border: 1.5px solid var(--primary-mid, #215C5C);
	background: var(--primary-mid, #215C5C);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	text-decoration-color: transparent !important;
	text-underline-offset: 0;
	box-shadow: 0 1px 3px rgba(33, 92, 92, 0.18);
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-wrap.mkt-ref a.mkt-ref-home-app__link:hover,
.site-wrap.mkt-ref a.mkt-ref-home-app__link:focus-visible {
	background: var(--primary, #1a4a4a);
	border-color: var(--primary, #1a4a4a);
	color: #fff !important;
	text-decoration: none !important;
	text-decoration-color: transparent !important;
	box-shadow: 0 4px 12px rgba(33, 92, 92, 0.22);
}

/* Compact app + trust band directly under homepage hero */
.site-wrap.mkt-ref .mkt-ref-home-app.mkt-ref-home-app--strip {
	background: var(--surface, #fff);
	border-top: none;
	border-bottom: 1px solid var(--border, #e8ecef);
	padding: 32px 28px 36px;
}

.site-wrap.mkt-ref .mkt-ref-home-app.mkt-ref-home-app--strip .mkt-ref-home-app__inner {
	margin-bottom: 0;
}

.site-wrap.mkt-ref .mkt-ref-home-app.mkt-ref-home-app--strip .mkt-ref-home-app__eyebrow {
	margin: 0 0 14px !important;
}

.site-wrap.mkt-ref .mkt-ref-home-app.mkt-ref-home-app--strip .mkt-ref-home-app__actions {
	gap: 14px;
}

.site-wrap.mkt-ref .mkt-ref-home-app.mkt-ref-home-app--strip .mkt-ref-app-badge img {
	height: 42px;
	width: auto;
}

.site-wrap.mkt-ref .mkt-ref-home-app.mkt-ref-home-app--strip .mkt-ref-home-app__trust {
	margin-top: 22px;
	padding-top: 0;
	border: none;
}

@media (max-width: 900px) {
	.site-wrap.mkt-ref .mkt-ref-app-hero.mkt-ref-hero {
		min-height: calc(100svh - 64px);
		padding: 40px 0;
	}

	.site-wrap.mkt-ref .mkt-ref-app-highlights__inner {
		grid-template-columns: 1fr;
	}

	.site-wrap.mkt-ref .mkt-ref-home-app:not(.mkt-ref-home-app--strip) {
		padding: 48px 20px;
	}

	.site-wrap.mkt-ref .mkt-ref-home-app.mkt-ref-home-app--strip {
		padding: 24px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-wrap.mkt-ref .mkt-ref-app-badge,
	.site-wrap.mkt-ref .mkt-ref-home-app__link {
		transition: none;
	}

	.site-wrap.mkt-ref .mkt-ref-app-badge:hover,
	.site-wrap.mkt-ref .mkt-ref-app-badge:focus-visible {
		transform: none;
	}
}
