/* compramostuiphone motion layer. Only active when the script added .cm-motion (JS on, motion allowed). */

/* Sticky header: the header document itself sticks (its inner bar alone has no room to). Always on. */
[data-elementor-type="header"] { position: sticky; top: 0; z-index: 999; }
.admin-bar [data-elementor-type="header"] { top: 32px; }
@media (max-width: 782px) { .admin-bar [data-elementor-type="header"] { top: 46px; } }
/* Anchor jumps stop below the sticky header (height measured by motion.js; fallback 120px). */
html { scroll-padding-top: var(--cm-header-h, 120px); }

/* Very small phones (< 360px, e.g. iPhone SE 1st gen): keep logo, language and CTA on one header row. */
@media (max-width: 359px) {
	[data-elementor-type="header"] img { height: 18px !important; }
	[data-elementor-type="header"] a.e-button-base { padding: 8px 11px !important; font-size: 12px !important; }
}

/* Keyboard focus: clearly visible on the blue header and on buttons (mouse clicks stay unchanged). */
[data-elementor-type="header"] a:focus-visible,
[data-elementor-type="header"] button:focus-visible {
	outline: 2px solid #ffffff !important;
	outline-offset: 3px;
	border-radius: 999px;
}
a.e-button-base:focus-visible, .cm-calc :focus-visible {
	outline: 2px solid #0a4fa3;
	outline-offset: 3px;
}

/* Hero entrance */
.cm-motion .cm-hero-in {
	opacity: 0;
	transform: translateY(18px);
	animation: cm-rise .9s cubic-bezier(.2, .7, .2, 1) var(--cm-d, 0ms) forwards;
}
@keyframes cm-rise {
	to { opacity: 1; transform: none; }
}

/* Gentle float on the hero trust icons */
.cm-motion .cm-float {
	animation: cm-float 4.5s ease-in-out var(--cm-f, 0s) infinite;
}
@keyframes cm-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}

/* Scroll reveals */
.cm-motion .cm-reveal {
	opacity: 0;
	transform: translateY(32px) scale(.985);
	transition:
		opacity .8s cubic-bezier(.2, .7, .2, 1) var(--cm-d, 0ms),
		transform .8s cubic-bezier(.2, .7, .2, 1) var(--cm-d, 0ms);
	will-change: opacity, transform;
}
.cm-motion .cm-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Cards lift on hover (desktop pointers only) */
@media (hover: hover) {
	.cm-motion .cm-card-lift.is-in {
		transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
	}
	.cm-motion .cm-card-lift.is-in:hover {
		transform: translateY(-6px);
		box-shadow: 0 18px 40px rgba(16, 40, 90, .12);
	}
	.cm-motion a.e-button-base {
		transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, filter .25s ease;
	}
	.cm-motion a.e-button-base:hover {
		transform: translateY(-2px);
		box-shadow: 0 10px 24px rgba(10, 79, 163, .18);
		filter: saturate(1.05);
	}
}

/* Sticky header: frosted glass + shadow after scrolling */
.cm-motion .cm-header > .e-con {
	transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.cm-motion .cm-header.is-scrolled > .e-con {
	background-color: rgba(10, 79, 163, .9) !important;
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	box-shadow: 0 10px 28px rgba(4, 30, 70, .22);
}

@media (prefers-reduced-motion: reduce) {
	.cm-motion .cm-hero-in,
	.cm-motion .cm-reveal,
	.cm-motion .cm-float {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ---------- Step 3: icons ---------- */
/* Icons pop in (spring) when their block appears */
.cm-motion .cm-reveal .e-svg-base {
	opacity: 0;
	transform: scale(.55) rotate(-14deg);
}
.cm-motion .cm-reveal.is-in .e-svg-base {
	animation: cm-icon-pop .75s cubic-bezier(.2, 1.5, .4, 1) calc(var(--cm-d, 0ms) + 220ms) forwards;
}
@keyframes cm-icon-pop {
	to { opacity: 1; transform: none; }
}
/* Playful nudge when hovering a card */
@media (hover: hover) {
	.cm-motion .cm-card-lift.is-in:hover .e-svg-base {
		animation: cm-icon-nudge .6s cubic-bezier(.2, 1.2, .4, 1) both;
	}
}
@keyframes cm-icon-nudge {
	0% { transform: none; }
	35% { transform: translateY(-4px) rotate(-8deg) scale(1.08); }
	70% { transform: translateY(0) rotate(4deg); }
	100% { transform: none; }
}

/* ---------- Step 3: trust strip ---------- */
.cm-trust-host { display: block; width: 100%; }
span.cm-trust { display: block; font-size: 14px; line-height: 1.6; color: #374151; text-align: center; }
span.cm-trust.is-built {
	position: relative; overflow: hidden; padding: 6px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cm-trust-track { display: flex; width: max-content; }
.cm-trust-group { display: flex; gap: 12px; padding-right: 12px; flex-shrink: 0; }
.cm-trust-item {
	display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid #e3eaf5;
	box-shadow: 0 2px 10px rgba(16, 40, 90, .05);
	font-size: 14px; font-weight: 600; color: #1d1d1f;
}
.cm-trust-item svg { color: #0a4fa3; flex-shrink: 0; }
.cm-motion .cm-trust-track { animation: cm-marquee 38s linear infinite; }
@media (hover: hover) {
	.cm-motion span.cm-trust:hover .cm-trust-track { animation-play-state: paused; }
}
@keyframes cm-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
/* Without motion: a centred, wrapping set of badges (the duplicate copy is hidden). */
html:not(.cm-motion) span.cm-trust.is-built { -webkit-mask-image: none; mask-image: none; }
html:not(.cm-motion) .cm-trust-track { width: auto; justify-content: center; }
html:not(.cm-motion) .cm-trust-group { flex-wrap: wrap; justify-content: center; padding: 0; }
html:not(.cm-motion) .cm-trust-group[aria-hidden="true"] { display: none; }
@media (max-width: 600px) {
	.cm-trust-item { font-size: 13px; padding: 8px 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.cm-motion .cm-reveal .e-svg-base { opacity: 1 !important; transform: none !important; animation: none !important; }
	.cm-motion .cm-trust-track { animation: none !important; }
}

/* Sticky "Get my price" bar (phones only). */
.cm-sticky-cta { display: none; }
@media (max-width: 767px) {
	.cm-has-sticky body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
	.cm-sticky-cta {
		position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 9990;
		display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 22px; border-radius: 999px;
		background: #ffc400; color: #1d1d1f; text-decoration: none; box-shadow: 0 12px 30px rgba(10,79,163,.28), 0 2px 6px rgba(0,0,0,.08);
		transform: translateY(0); opacity: 1; visibility: visible;
	}
	.cm-sticky-cta.is-ready { transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .25s ease, visibility 0s; }
	.cm-sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; visibility: hidden; pointer-events: none; }
	.cm-sticky-cta.is-ready.is-hidden { transition: transform .3s ease, opacity .25s ease, visibility 0s .3s; }
	.cm-sticky-cta:hover, .cm-sticky-cta:focus { color: #1d1d1f; text-decoration: none; }
	.cm-sticky-cta:active { transform: scale(.98); }
	.cm-sticky-cta-text { display: flex; flex-direction: column; line-height: 1.15; }
	.cm-sticky-cta strong { font-size: 17px; font-weight: 700; }
	.cm-sticky-cta small { font-size: 12.5px; opacity: .72; }
	.cm-sticky-cta svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: #0a4fa3; color: #fff; box-sizing: border-box; }
	.cm-app-open .cm-sticky-cta { display: none; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
	.cm-sticky-cta.is-ready, .cm-sticky-cta.is-ready.is-hidden { transition: none; }
}

/* Header menu that scrolls sideways on phones: soft fade on the side with more links. */
.cm-nav-scroll { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cm-nav-scroll::-webkit-scrollbar { display: none; }
.cm-nav-scroll.has-more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
.cm-nav-scroll.has-more-left { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px); mask-image: linear-gradient(to right, transparent, #000 44px); }
.cm-nav-scroll.has-more-left.has-more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
#content:focus { outline: none; }
