/* MFC Marketing Pages 2.0.0: explainer film from real product screens (film.php). Self-contained (also used on the
   product pages and /terminal/). Motion is CSS; mpf.js only switches chapters. Reduced motion: static, all callouts. */
.mpf, .mpf * { box-sizing: border-box; }
.mpf {
	--mpf-f: "Neue Haas Unica", -apple-system, "Helvetica Neue", Arial, sans-serif;
	--mpf-blue: #006AFF; --mpf-ink: #fff; --mpf-mut: #A9AFB8; --mpf-line: rgba(255, 255, 255, .1);
	--dur: 9s;
	font-family: var(--mpf-f); color: var(--mpf-ink); width: 100%; margin-top: 8px; position: relative;
}
.mpf-sec .mpf-head { max-width: 640px; margin-bottom: 40px; }
/* tabs */
.mpf-tabs { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; }
.mpf[data-n="3"] .mpf-tabs { --n: 3; }
.mpf-tabs li { margin: 0; padding: 0; }
.mpf .mpf-tab {
	all: unset; box-sizing: border-box; cursor: pointer; width: 100%; height: 100%; display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px;
	padding: 14px 16px 16px; border-radius: 14px; border: 1px solid var(--mpf-line); background: rgba(255, 255, 255, .03); position: relative; overflow: hidden;
	transition: border-color .2s ease, background .2s ease;
}
.mpf .mpf-tab:hover { border-color: rgba(255, 255, 255, .22); }
.mpf .mpf-tab:focus-visible { outline: 2px solid var(--mpf-blue); outline-offset: 2px; }
.mpf .mpf-tab.is-on { border-color: rgba(0, 106, 255, .55); background: rgba(0, 106, 255, .08); }
.mpf-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 13px/1 var(--mpf-f); color: var(--mpf-mut); border: 1px solid var(--mpf-line); }
.mpf-tab.is-on .mpf-n { background: var(--mpf-blue); border-color: var(--mpf-blue); color: #fff; }
.mpf-tt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mpf-tt b { font: 500 16px/1.25 var(--mpf-f); color: #fff; }
.mpf-tt span { font: 400 13px/1.45 var(--mpf-f); color: var(--mpf-mut); }
.mpf-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.mpf-bar i { display: block; height: 100%; width: 0; background: var(--mpf-blue); }
.mpf-tab.is-on .mpf-bar i { animation: mpfBar var(--dur) linear forwards; }
.mpf.is-paused .mpf-tab.is-on .mpf-bar i, .mpf.is-paused .mpf-scene * { animation-play-state: paused !important; }
@keyframes mpfBar { from { width: 0; } to { width: 100%; } }
/* stage + window */
.mpf-stage { position: relative; }
.mpf-scene[hidden] { display: none; }
.mpf-win {
	border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: #0B0E14;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .3), 0 0 60px rgba(0, 106, 255, .12);
}
.mpf-chrome { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #10131A; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mpf-chrome i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.mpf-chrome span { margin-left: 10px; font: 500 12px/1 var(--mpf-f); color: #8D94A0; letter-spacing: .01em; }
.mpf-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #121826 0%, #0B0E14 60%); }
.mpf-img { display: block; width: 100%; height: auto; max-width: none; border: 0; }
.mpf-cap { display: none; margin: 12px 0 0; font: 400 14px/1.45 var(--mpf-f); color: var(--mpf-mut); text-align: center; }
.mpf-note { margin: 12px 0 0; font: 400 12px/1.4 var(--mpf-f); color: #7C838F; text-align: right; }
/* play / pause */
.mpf .mpf-pp {
	all: unset; cursor: pointer; position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center; background: rgba(10, 12, 18, .72); border: 1px solid rgba(255, 255, 255, .18); z-index: 6;
}
.mpf .mpf-pp:focus-visible { outline: 2px solid var(--mpf-blue); outline-offset: 2px; }
.mpf-pp svg { width: 16px; height: 16px; fill: #fff; }
.mpf-pp .mpf-i-play, .mpf.is-paused .mpf-pp .mpf-i-pause { display: none; }
.mpf.is-paused .mpf-pp .mpf-i-play { display: inline; }

/* shots (one screen, camera moves on it) */
.mpf-shot { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: var(--ar); transform-origin: 0 0; translate: 0 -50%; will-change: transform; }
.mpf-shot .mpf-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mpf-s-buy .mpf-shot { left: 4%; width: 92%; border-radius: 12px; transform-origin: 62% 45%; }
.mpf-scene.is-on .mpf-cam-buy { animation: mpfCamBuy var(--dur) cubic-bezier(.45, 0, .2, 1) both; }
@keyframes mpfCamBuy { 0%, 12% { transform: scale(.96); } 52%, 78% { transform: scale(1.04); } 100% { transform: scale(.98); } }
.mpf-s-trade .mpf-shot { top: 0; translate: none; }
.mpf-scene.is-on .mpf-cam-trade { animation: mpfCamTrade var(--dur) cubic-bezier(.5, 0, .2, 1) both; }
@keyframes mpfCamTrade {
	0%, 8% { transform: translate(0, 0) scale(1); }
	16%, 36% { transform: translate(-72.4%, 0) scale(2.4); }
	46%, 68% { transform: translate(-120%, -115%) scale(2.2); }
	78%, 100% { transform: translate(-50%, 0) scale(1.5); }
}
.mpf-s-trade .mpf-f2 { opacity: 0; }
.mpf-scene.is-on .mpf-s-trade .mpf-f2, .mpf-s-trade.is-on .mpf-f2 { animation: mpfF2 var(--dur) linear both; }
@keyframes mpfF2 { 0%, 72% { opacity: 0; } 77%, 100% { opacity: 1; } }
/* callouts */
.mpf-pin { position: absolute; left: var(--x); top: var(--y); z-index: 4; opacity: 0; pointer-events: none; }
.mpf-pin i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: rgba(0, 106, 255, .35); box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(0, 106, 255, .35); }
.mpf-pin b {
	position: absolute; top: -15px; left: 16px; white-space: nowrap; padding: 7px 11px; border-radius: 9px; font: 500 13px/1.2 var(--mpf-f); color: #fff;
	background: rgba(6, 16, 34, .92); border: 1px solid rgba(77, 141, 255, .6); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); backdrop-filter: blur(6px);
}
.mpf-pin--l b { left: auto; right: 16px; }
.mpf-pin--b b { top: 14px; left: 50%; translate: -50% 0; }
.mpf-scene.is-on .mpf-p1 { animation: mpfP1 var(--dur) ease both; }
.mpf-scene.is-on .mpf-p2 { animation: mpfP2 var(--dur) ease both; }
.mpf-scene.is-on .mpf-p3 { animation: mpfP3 var(--dur) ease both; }
.mpf-scene.is-on .mpf-p4 { animation: mpfP4 var(--dur) ease both; }
@keyframes mpfP1 { 0%, 16% { opacity: 0; transform: translateY(6px); } 20%, 36% { opacity: 1; transform: none; } 40%, 100% { opacity: 0; } }
@keyframes mpfP2 { 0%, 46% { opacity: 0; transform: translateY(6px); } 50%, 58% { opacity: 1; transform: none; } 61%, 100% { opacity: 0; } }
@keyframes mpfP3 { 0%, 60% { opacity: 0; transform: translateY(6px); } 63%, 70% { opacity: 1; transform: none; } 74%, 100% { opacity: 0; } }
@keyframes mpfP4 { 0%, 80% { opacity: 0; transform: translateY(6px); } 84%, 100% { opacity: 1; transform: none; } }
/* buy: both callouts stay once shown */
.mpf-scene.mpf-s-buy.is-on .mpf-p1 { animation-name: mpfStay1; }
.mpf-scene.mpf-s-buy.is-on .mpf-p2 { animation-name: mpfStay2; }
@keyframes mpfStay1 { 0%, 14% { opacity: 0; transform: translateY(6px); } 20%, 100% { opacity: 1; transform: none; } }
@keyframes mpfStay2 { 0%, 40% { opacity: 0; transform: translateY(6px); } 46%, 100% { opacity: 1; transform: none; } }
@keyframes mpfStay3 { 0%, 66% { opacity: 0; transform: translateY(8px) scale(.98); } 72%, 100% { opacity: 1; transform: none; } }
/* cursor + tap ripple */
.mpf-cursor { position: absolute; left: 40%; top: 92%; width: 22px; height: 22px; z-index: 5; opacity: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.mpf-cursor svg { width: 100%; height: 100%; fill: #fff; stroke: #0B0E14; stroke-width: 1.2; }
.mpf-tap { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255, 255, 255, .8); opacity: 0; z-index: 4; }
.mpf-scene.is-on .mpf-cur-buy { animation: mpfCurBuy var(--dur) cubic-bezier(.5, 0, .2, 1) both; }
@keyframes mpfCurBuy { 0%, 50% { opacity: 0; left: 52%; top: 96%; } 54% { opacity: 1; left: 52%; top: 96%; } 70%, 92% { opacity: 1; left: 76%; top: 72%; } 100% { opacity: 0; left: 76%; top: 72%; } }
.mpf-s-buy .mpf-cur-buy { top: 96%; }
.mpf-scene.is-on .mpf-s-buy .mpf-tap, .mpf-s-buy.is-on .mpf-tap { animation: mpfTap var(--dur) ease-out both; }
@keyframes mpfTap { 0%, 71% { opacity: 0; transform: scale(.4); } 73% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(5); } }
.mpf-scene.is-on .mpf-cur-trade { animation: mpfCurTrade var(--dur) cubic-bezier(.5, 0, .2, 1) both; }
@keyframes mpfCurTrade { 0%, 52% { opacity: 0; left: 44%; top: 90%; } 55% { opacity: 1; left: 44%; top: 90%; } 63%, 70% { opacity: 1; left: 62.6%; top: 56.6%; } 74%, 100% { opacity: 0; left: 62.6%; top: 56.6%; } }
.mpf-scene.is-on .mpf-tap--t { animation: mpfTapT var(--dur) ease-out both; }
@keyframes mpfTapT { 0%, 63% { opacity: 0; transform: scale(.4); } 65% { opacity: .9; transform: scale(1); } 71%, 100% { opacity: 0; transform: scale(5); } }

/* desk scenes (Dashboard + emails) */
.mpf-desk { position: absolute; inset: 0; }
.mpf-card { position: absolute; aspect-ratio: var(--ar); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .1); }
.mpf-card .mpf-img { width: 100%; height: 100%; }
.mpf-card .mpf-pin { z-index: 4; }
.mpf-c1 { left: 4%; top: 7%; width: 72%; }
.mpf-c2 { right: 4%; top: 41%; width: 44%; }
.mpf-c3 { left: 9%; top: 57%; width: 44%; }
.mpf-solo { left: 22%; top: 30%; width: 56%; }
.mpf-c4 { left: 5%; top: 9%; width: 44%; }
.mpf-c5 { right: 5%; top: 22%; width: 46%; }
.mpf-cert { position: absolute; left: 8%; top: 53%; width: 26%; transform: rotate(-6deg); border-radius: 10px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); opacity: 0; }
.mpf-chip {
	position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border-radius: 999px; opacity: 0;
	font: 500 13px/1 var(--mpf-f); color: #fff; background: rgba(6, 16, 34, .94); border: 1px solid rgba(46, 204, 113, .55); box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.mpf-chip::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #22C55E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.1 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.mpf-s-pass .mpf-chip { right: 6%; top: 34%; }
.mpf-s-pass .mpf-chip--2 { left: 9%; right: auto; top: 88%; }
.mpf-s-funded .mpf-chip { left: 50%; top: 22%; translate: -50% 0; }
.mpf-s-paid .mpf-chip { left: 5%; top: 3%; }
.mpf-s-paid .mpf-chip--2 { right: 5%; left: auto; top: 14%; }
.mpf-big { position: absolute; right: 5%; bottom: 7%; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; opacity: 0; }
.mpf-big b { font: 500 44px/1 var(--mpf-f); letter-spacing: -.02em; color: #fff; text-shadow: 0 6px 30px rgba(0, 106, 255, .6); }
.mpf-big span { font: 400 13px/1.3 var(--mpf-f); color: var(--mpf-mut); }
.mpf-scene.is-on .mpf-c1 { animation: mpfCardIn var(--dur) ease both; animation-delay: calc(var(--dur) * -.98); }
.mpf-scene.is-on .mpf-c2, .mpf-scene.is-on .mpf-c5 { animation: mpfCardR var(--dur) cubic-bezier(.2, .7, .2, 1) both; }
.mpf-scene.is-on .mpf-c3:not(.mpf-solo) { animation: mpfCardL var(--dur) cubic-bezier(.2, .7, .2, 1) both; }
.mpf-scene.is-on .mpf-solo { animation: mpfCardUp var(--dur) cubic-bezier(.2, .7, .2, 1) both; }
.mpf-scene.is-on .mpf-c4 { animation: mpfCardUp var(--dur) cubic-bezier(.2, .7, .2, 1) both; }
.mpf-scene.is-on .mpf-cert { animation: mpfCert var(--dur) cubic-bezier(.2, .7, .2, 1) both; }
.mpf-desk .mpf-chip.mpf-p1, .mpf-desk .mpf-chip.mpf-p2, .mpf-desk .mpf-chip.mpf-p3, .mpf-desk .mpf-big { animation-name: none; }
.mpf-scene.is-on .mpf-desk .mpf-p1 { animation: mpfStay1 var(--dur) ease both; }
.mpf-scene.is-on .mpf-desk .mpf-p2 { animation: mpfStay2 var(--dur) ease both; }
.mpf-scene.is-on .mpf-desk .mpf-p3 { animation: mpfStay3 var(--dur) ease both; }
.mpf-scene.is-on .mpf-desk .mpf-card .mpf-p1 { animation: mpfP1Long var(--dur) ease both; }
@keyframes mpfP1Long { 0%, 10% { opacity: 0; transform: translateY(6px); } 16%, 100% { opacity: 1; transform: none; } }
@keyframes mpfCardIn { from { opacity: 1; } to { opacity: 1; } }
@keyframes mpfCardR { 0%, 34% { opacity: 0; transform: translateX(40px); } 42%, 100% { opacity: 1; transform: none; } }
@keyframes mpfCardL { 0%, 60% { opacity: 0; transform: translateY(40px); } 68%, 100% { opacity: 1; transform: none; } }
@keyframes mpfCardUp { 0%, 6% { opacity: 0; transform: translateY(30px); } 14%, 100% { opacity: 1; transform: none; } }
@keyframes mpfCert { 0%, 58% { opacity: 0; transform: rotate(-14deg) translateY(30px); } 66%, 100% { opacity: 1; transform: rotate(-6deg); } }
.mpf-s-paid .mpf-c5 { z-index: 2; }

/* phones */
@media (max-width: 767px) {
	.mpf-tabs { display: flex; overflow-x: auto; gap: 8px; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; }
	.mpf-tabs::-webkit-scrollbar { display: none; }
	.mpf-tabs li { flex: 0 0 auto; }
	.mpf .mpf-tab { grid-template-columns: 24px auto; padding: 10px 14px 12px; border-radius: 999px; align-items: center; }
	.mpf-n { width: 24px; height: 24px; font-size: 12px; }
	.mpf-tt span { display: none; }
	.mpf-tt b { font-size: 14px; white-space: nowrap; }
	.mpf-cap { display: block; padding: 0 44px; min-height: 40px; }
	.mpf-win { border-radius: 12px; }
	.mpf-chrome { height: 26px; padding: 0 10px; gap: 5px; }
	.mpf-chrome i { width: 7px; height: 7px; }
	.mpf-chrome span { font-size: 10px; margin-left: 6px; }
	.mpf-pin b { font-size: 10px; padding: 5px 7px; top: -12px; left: 12px; border-radius: 7px; }
	.mpf-pin--l b { left: auto; right: 12px; }
	.mpf-pin--b b { top: 10px; left: 50%; }
	.mpf-pin i { width: 10px; height: 10px; left: -5px; top: -5px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 106, 255, .35); }
	.mpf-chip { font-size: 10px; padding: 5px 8px 5px 6px; gap: 5px; }
	.mpf-chip::before { width: 12px; height: 12px; background-size: 12px; }
	.mpf-big b { font-size: 24px; }
	.mpf-big span { font-size: 10px; }
	.mpf .mpf-pp { width: 30px; height: 30px; right: 8px; bottom: 8px; }
	.mpf-note { text-align: center; }
	.mpf-cursor { width: 16px; height: 16px; }
}

/* reduced motion: no camera, no autoplay (mpf.js), every callout and card in its final place */
@media (prefers-reduced-motion: reduce) {
	.mpf *, .mpf *::before { animation: none !important; transition: none !important; }
	.mpf-pin, .mpf-chip, .mpf-big, .mpf-cert, .mpf-card { opacity: 1 !important; transform: none; }
	.mpf-cert { transform: rotate(-6deg); }
	.mpf-s-trade .mpf-pin.mpf-p1 { --x: 51%; --y: 3%; }
	.mpf-s-trade .mpf-pin.mpf-p2 { --x: 79%; --y: 69%; }
	.mpf-s-trade .mpf-pin.mpf-p3, .mpf-s-trade .mpf-pin.mpf-p4 { opacity: 0 !important; }
	.mpf-cursor, .mpf-tap { display: none; }
	.mpf-bar { display: none; }
	.mpf .mpf-pp { display: none; }
}

/* RTL (AR): the window stays LTR (it shows English product screens), copy is RTL */
[dir="rtl"] .mpf-screen { direction: ltr; }
[dir="rtl"] .mpf-tt, [dir="rtl"] .mpf-cap { text-align: right; }
[dir="rtl"] .mpf-note { text-align: left; }

/* light canvas (product pages): tabs and note in dark ink; the window stays dark */
.mpf-sec .mpf { --mpf-mut: #4A505B; --mpf-line: #E4E7EB; }
.mpf-sec .mpf .mpf-tab { background: #fff; }
.mpf-sec .mpf .mpf-tab:hover { border-color: #C9CED6; }
.mpf-sec .mpf .mpf-tab.is-on { background: #F1F6FF; border-color: rgba(0, 106, 255, .45); }
.mpf-sec .mpf-tt b { color: #0A0B0D; }
.mpf-sec .mpf-n { color: #4A505B; }
.mpf-sec .mpf-tab.is-on .mpf-n { color: #fff; }
.mpf-sec .mpf-note, .mpf-sec .mpf-cap { color: #5B616E; }
.mpf-sec .mpf-win { box-shadow: 0 30px 80px -20px rgba(10, 11, 13, .35), 0 0 0 1px rgba(0, 0, 0, .04); }
