/* =========================================================
   App Promo Popup — desktop-only "Get the App" dialog
   ========================================================= */

.endo-app-promo-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(10, 20, 35, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.35s ease;
	padding: 24px;
}

.endo-app-promo-overlay.is-visible {
	display: flex;
	opacity: 1;
}

.endo-app-promo-card {
	position: relative;
	width: 100%;
	max-width: 640px;
	background: linear-gradient(155deg, #ffffff 0%, #f4f9ff 100%);
	border-radius: 26px;
	box-shadow: 0 30px 80px -20px rgba(10, 40, 90, 0.45), 0 0 0 1px rgba(255,255,255,0.6) inset;
	overflow: hidden;
	transform: translateY(24px) scale(0.96);
	opacity: 0;
	transition: transform 0.45s cubic-bezier(.2,.9,.25,1.15), opacity 0.35s ease;
}

.endo-app-promo-overlay.is-visible .endo-app-promo-card {
	transform: translateY(0) scale(1);
	opacity: 1;
}

/* decorative ambient glow */
.endo-app-promo-glow {
	position: absolute;
	top: -120px;
	right: -120px;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(0, 122, 255, 0.28) 0%, rgba(0, 122, 255, 0) 70%);
	pointer-events: none;
}

.endo-app-promo-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	border: 1px solid rgba(15, 30, 50, 0.08);
	background: #ffffff;
	color: #33475b;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	cursor: pointer;
	z-index: 3;
	box-shadow: 0 2px 8px rgba(15, 30, 50, 0.12);
	transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.endo-app-promo-close svg {
	display: block;
	pointer-events: none;
}

.endo-app-promo-close:hover,
.endo-app-promo-close:focus-visible {
	background: #007aff;
	border-color: #007aff;
	color: #ffffff;
	transform: rotate(90deg);
	outline: none;
}

.endo-app-promo-body {
	position: relative;
	display: grid;
	grid-template-columns: 200px 1fr;
	align-items: center;
	gap: 8px;
	padding: 40px 40px 40px 24px;
	z-index: 1;
}

/* ---- left: phone mockup ---- */
.endo-app-promo-visual {
	display: flex;
	align-items: center;
	justify-content: center;
}

.endo-app-promo-phone {
	width: 170px;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 20px 45px -12px rgba(10, 40, 90, 0.35), 0 0 0 6px #0f1e2f;
	transform: rotate(-4deg);
	animation: endo-app-promo-float 3.6s ease-in-out infinite;
}

.endo-app-promo-phone img {
	display: block;
	width: 100%;
	height: auto;
}

@keyframes endo-app-promo-float {
	0%, 100% { transform: rotate(-4deg) translateY(0); }
	50%      { transform: rotate(-4deg) translateY(-10px); }
}

/* ---- right: copy ---- */
.endo-app-promo-eyebrow {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #007aff;
	background: rgba(0, 122, 255, 0.1);
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.endo-app-promo-title {
	margin: 0 0 8px;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 800;
	color: #0f1e2f;
}

.endo-app-promo-desc {
	margin: 0 0 16px;
	font-size: 14.5px;
	line-height: 1.5;
	color: #54687c;
}

.endo-app-promo-list {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 14px;
}

.endo-app-promo-list li {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13.5px;
	font-weight: 600;
	color: #2a3b4d;
}

.endo-app-promo-list li svg {
	flex: none;
	color: #16a34a;
	background: rgba(22, 163, 74, 0.12);
	border-radius: 50%;
	padding: 3px;
	box-sizing: content-box;
}

.endo-app-promo-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.endo-app-promo-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #0f1e2f;
	color: #fff;
	text-decoration: none;
	padding: 11px 20px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 14.5px;
	box-shadow: 0 10px 24px -8px rgba(15, 30, 47, 0.5);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.endo-app-promo-cta small {
	display: block;
	font-size: 9.5px;
	font-weight: 500;
	letter-spacing: 0.05em;
	opacity: 0.75;
	text-transform: uppercase;
}

.endo-app-promo-cta:hover {
	background: #007aff;
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -8px rgba(0, 122, 255, 0.55);
}

.endo-app-promo-later {
	background: none;
	border: none;
	color: #7c8a99;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding: 4px;
}

.endo-app-promo-later:hover {
	color: #33475b;
}

/* ---- Desktop only — hide entirely below tablet breakpoint ---- */
@media (max-width: 1024px) {
	.endo-app-promo-overlay {
		display: none !important;
	}
}

@media (max-width: 1180px) and (min-width: 1025px) {
	.endo-app-promo-body {
		grid-template-columns: 160px 1fr;
		padding: 34px 32px 34px 20px;
	}
	.endo-app-promo-phone {
		width: 140px;
	}
}
