/* sajatvendeg.hu/elonezet.html: "Így működik" motion graphic (2026-11-29, Márk: "nagyon komoly motion graphic, mint a
   szemelott oldalán, a naptárszinkront is mutasd be, nagyon komoly és prémium").
   Four scenes (Kitölti, Elkészítem, Megnézi, Szinkron) + an end card, drawn on a fixed 400 x 300 canvas (.cv) that
   assets/mozgo.js scales to the stage width (--k). Every element's resting style is its END state; the entrance
   animations only run while the scene has .play, so with reduced motion each step shows a still final frame. */
.how { margin-top: 30px; }
.stage { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; isolation: isolate; cursor: default;
  background: radial-gradient(70% 60% at 92% 4%, rgba(61, 220, 151, .2), transparent 62%), radial-gradient(60% 55% at 0% 100%, rgba(200, 164, 101, .16), transparent 60%), #0B211A;
  box-shadow: 0 34px 70px -34px rgba(8, 40, 30, .7), 0 0 0 1px rgba(15, 42, 34, .08); }
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 16px 16px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.how.at-end .stage { cursor: pointer; }
.cv { position: absolute; left: 0; top: 0; width: 400px; height: 300px; transform-origin: 0 0; transform: scale(var(--k, 1)); color: var(--ink); font-family: var(--font); }
.cv p { margin: 0; }
.cv svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.sc { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.sc.is-on { opacity: 1; visibility: visible; transition: opacity .45s ease .12s; }
.how.paused .sc, .how.paused .sc * { animation-play-state: paused !important; }

/* Scene label */
.m-lb { position: absolute; left: 16px; top: 16px; display: flex; align-items: center; gap: 9px; color: #fff; white-space: nowrap; }
.m-lb span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #0E8F62; font: 700 13px/1 var(--display); }
.m-lb b { font: 700 16px/1 var(--display); letter-spacing: -.01em; }
.m-lb em { font-style: normal; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .62); padding-left: 9px; border-left: 1px solid rgba(255, 255, 255, .2); }

/* 1 Kitölti */
.m-form { position: absolute; left: 62px; top: 50px; width: 276px; padding: 12px 15px 14px; border-radius: 18px; background: #fff; box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .6); }
.m-l { margin: 0 0 4px !important; font-size: 11px; line-height: 1.2; font-weight: 600; color: var(--muted); }
.m-in { display: flex; align-items: center; height: 29px; margin: 0 0 8px !important; padding: 0 10px; border-radius: 9px; background: #F2F5F2; font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; transition: box-shadow .2s, background .2s; }
.m-in .lnk { width: 13px; height: 13px; margin-right: 6px; color: var(--muted); stroke-width: 2.2; flex: none; }
.m-in.typing { background: #fff; box-shadow: inset 0 0 0 1.5px #0E8F62, 0 0 0 3px rgba(14, 143, 98, .14); }
.m-caret { display: none; width: 1.5px; height: 16px; margin-left: 1px; background: var(--ink); animation: mBlink 1s steps(1) infinite; }
.m-in.typing .m-caret { display: block; }
.m-st { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.m-st i { position: relative; display: flex; align-items: flex-end; height: 38px; padding: 6px 8px; border-radius: 9px; font: 600 10.5px/1 var(--font); font-style: normal; box-shadow: 0 0 0 1px var(--line); overflow: visible; }
.m-st i { height: 44px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); background-size: cover; background-position: center 30%; }
.m-st .n { background-image: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .55)), url(../img/stilus/normal-hero-mobil.jpg); }
.m-st .l { background-image: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .6)), url(../img/stilus/luxus-hero-mobil.jpg); color: #F2E6CC; font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: 11.5px; box-shadow: 0 0 0 2.5px #0E8F62; }
.m-ok { position: absolute; right: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: #0E8F62; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; z-index: 1; }
.m-ok svg { width: 11px; height: 11px; color: #fff; stroke-width: 3.4; }
.m-btn { position: relative; height: 32px; border-radius: 999px; background: #0A7A53; color: #fff; font: 700 13px/1 var(--font); }
.m-btn span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.m-btn svg { width: 14px; height: 14px; stroke-width: 2.6; }
.m-btn .b1 { opacity: 0; }
.play .m-lb { animation: mLb .55s cubic-bezier(.2, .8, .2, 1) both; }
.play .m-form { animation: mRise .6s cubic-bezier(.2, .8, .2, 1) both; }
.play .m-st .l { animation: mSel .35s 3s ease both; }
.play .m-ok { animation: mPop .45s 3.05s cubic-bezier(.3, 1.6, .5, 1) both; }
.play .m-btn { animation: mPress .3s 3.7s ease both; }
.play .m-btn .b1 { animation: mOut .2s 4s both; }
.play .m-btn .b2 { animation: mUp .35s 4.05s cubic-bezier(.2, .8, .2, 1) both; }

/* 2 Elkészítem: the site builds itself in a browser window; a 24-hour ring counts up */
.m-br { position: absolute; left: 20px; top: 58px; width: 262px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 26px 50px -20px rgba(0, 0, 0, .65); }
.m-url { display: flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; background: #EEF2EF; font-size: 9px; color: var(--muted); }
.m-url i { width: 6px; height: 6px; border-radius: 50%; background: #C9D3CD; }
.m-url span { margin-left: 8px; padding: 2px 8px; border-radius: 5px; background: #fff; }
.m-site { position: relative; height: 164px; background: #fff; overflow: hidden; }
.m-site .k { position: absolute; border-radius: 4px; background: #E6EEE9; }
.m-site img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.m-scan { position: absolute; left: 0; right: 0; top: 0; height: 28px; background: linear-gradient(180deg, transparent, rgba(61, 220, 151, .35)); border-bottom: 1.5px solid #3DDC97; opacity: 0; }
.m-ring { position: absolute; left: 298px; top: 102px; width: 86px; height: 86px; }
.m-ring > svg { width: 86px; height: 86px; transform: rotate(-90deg); }
.m-ring .r0 { stroke: rgba(255, 255, 255, .14); stroke-width: 6; }
.m-ring .r1 { stroke: #3DDC97; stroke-width: 6; stroke-dasharray: 220; stroke-dashoffset: 0; }
.m-cnt, .m-done { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; }
.m-cnt { opacity: 0; }
.m-cnt b { display: block; font: 700 25px/1 var(--display); }
.m-cnt small, .m-done small { display: block; margin-top: 3px; font-size: 10px; color: rgba(255, 255, 255, .7); }
.m-done svg { width: 26px; height: 26px; margin: 0 auto; color: #3DDC97; stroke-width: 3; }
.m-cap2 { position: absolute; left: 290px; top: 198px; width: 104px; text-align: center; font-size: 11px; line-height: 1.35; color: rgba(255, 255, 255, .7); }
.play .m-br { animation: mRise .6s cubic-bezier(.2, .8, .2, 1) both; }
.play .m-site .k { animation: mBlk .45s var(--d) cubic-bezier(.2, .8, .2, 1) both; }
.play .m-scan { animation: mScan 2.6s .4s linear both; }
.play .m-site img { animation: mWipe .85s 3.05s cubic-bezier(.65, 0, .35, 1) both; }
.play .m-ring { animation: mPop .5s .2s cubic-bezier(.3, 1.5, .5, 1) both; }
.play .m-ring .r1 { animation: mRingFill 2.6s .35s ease-in-out both; }
.play .m-cnt { animation: mShowHide 2.75s .3s both; }
.play .m-done { animation: mPop .45s 3.05s cubic-bezier(.3, 1.6, .5, 1) both; }
.play .m-cap2 { animation: mIn .5s .6s both; }

/* 3 Megnézi: e-mail notification, the phone opens the finished site */
.m-ph { position: absolute; left: 44px; top: 50px; width: 122px; height: 242px; padding: 6px; border-radius: 26px; background: #050E0B; box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.m-ph .scr { position: relative; width: 100%; height: 100%; border-radius: 21px; overflow: hidden; background: linear-gradient(160deg, #1B3B30, #0E241C); }
.m-ph .scr img { position: absolute; inset: 0; width: 100%; height: auto; }
.m-note { position: absolute; left: 6px; right: 6px; top: 8px; z-index: 2; padding: 7px 8px; border-radius: 11px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .5); font-size: 8.5px; line-height: 1.3; color: var(--muted); }
.m-note b { display: flex; align-items: center; gap: 4px; color: var(--ink); font-size: 9px; }
.m-note b img { width: 11px; height: 11px; border-radius: 3px; }
.m-note p { color: var(--ink); font-weight: 600; font-size: 9.5px; margin-top: 2px !important; }
.m-tag { position: absolute; left: 196px; display: flex; align-items: center; gap: 10px; width: 190px; padding: 11px 13px; border-radius: 14px; background: #fff; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .6); font-size: 12px; line-height: 1.3; color: var(--muted); }
.m-tag b { display: block; color: var(--ink); font-size: 13px; }
.m-tag .ti { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #E8F3EC; color: #0A7A53; }
.m-tag .ti svg { width: 16px; height: 16px; stroke-width: 2.6; }
.m-tag.t1 { top: 96px; }
.m-tag.t2 { top: 160px; }
.m-tag.t2 .ti { background: #F1F3F1; color: var(--muted); }
.play .m-ph { animation: mRise .6s cubic-bezier(.2, .8, .2, 1) both; }
.play .m-note { animation: mNote 2.1s .5s both; }
.play .m-ph .scr img { animation: mWebIn .7s 2.5s cubic-bezier(.2, .8, .2, 1) both; }
.play .m-tag.t1 { animation: mPop .45s 3.1s cubic-bezier(.3, 1.6, .5, 1) both; }
.play .m-tag.t2 { animation: mPop .45s 3.45s cubic-bezier(.3, 1.6, .5, 1) both; }

/* 4 Szinkron (Naptárközpont): a booking on the own site, the hub closes the days on Booking.com and Szállás.hu */
.m-bk { position: absolute; left: 16px; top: 74px; width: 120px; padding: 10px 11px 11px; border-radius: 14px; background: #fff; box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .65); font-size: 10.5px; line-height: 1.3; color: var(--muted); }
.m-bk .h { display: flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 600; color: #0A7A53; text-transform: uppercase; letter-spacing: .06em; }
.m-bk .h img { width: 13px; height: 13px; border-radius: 3px; }
.m-bk b { display: block; margin-top: 6px; color: var(--ink); font-size: 13.5px; }
.m-bk .z { display: inline-block; margin-top: 7px; padding: 3px 7px; border-radius: 99px; background: #E8F3EC; color: #08644A; font-weight: 700; font-size: 10px; }
.m-hub { position: absolute; left: 160px; top: 116px; width: 56px; height: 56px; border-radius: 17px; background: #0E8F62; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(14, 143, 98, .18), 0 18px 34px -12px rgba(0, 0, 0, .6); }
.m-hub img { width: 56px; height: 56px; border-radius: 17px; }
.m-pulse { position: absolute; left: 160px; top: 116px; width: 56px; height: 56px; border-radius: 17px; border: 2px solid #3DDC97; opacity: 0; }
.m-hubl { position: absolute; left: 140px; top: 180px; width: 96px; text-align: center; font-size: 10px; line-height: 1.3; color: rgba(255, 255, 255, .72); }
.m-hubl b { display: block; color: #fff; font-size: 11px; }
.m-wire { position: absolute; left: 0; top: 0; width: 400px; height: 300px; overflow: visible; }
.m-wire path { stroke: #3DDC97; stroke-width: 1.6; stroke-dasharray: 4 4; opacity: .85; }
.m-wire .base { stroke: rgba(255, 255, 255, .14); stroke-dasharray: none; }
.m-wire .flow { stroke-dasharray: 160; stroke-dashoffset: 0; stroke-width: 2; }
.m-pt { position: absolute; left: 240px; width: 146px; padding: 9px 10px 10px; border-radius: 13px; background: #fff; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .6); }
.m-pt.p1 { top: 64px; }
.m-pt.p2 { top: 150px; }
.m-pt .nm { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--ink); }
.m-pt .nm i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; vertical-align: 0; }
.m-pt.p1 .nm i { background: #003580; }
.m-pt.p2 .nm i { background: #E8562A; }
.m-pt .st { font-size: 9px; font-weight: 600; color: #0A7A53; opacity: 1; }
.m-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 7px; }
.m-days span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 30px; border-radius: 6px; background: #F1F4F2; font-size: 10.5px; font-weight: 600; line-height: 1; color: var(--muted); }
.m-days .x { background: #0E8F62; color: #fff; }
.m-days .x svg { width: 8px; height: 8px; stroke-width: 3; }
.m-conf { position: absolute; left: 50%; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: #fff; transform: translateX(-50%); white-space: nowrap; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .6); font-size: 12px; font-weight: 600; color: var(--ink); }
.m-conf .ti { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #0E8F62; color: #fff; }
.m-conf .ti svg { width: 12px; height: 12px; stroke-width: 3.2; }
.m-conf em { font-style: normal; color: #0A7A53; }
.play .m-bk { animation: mRise .55s .1s cubic-bezier(.2, .8, .2, 1) both; }
.play .m-hub { animation: mPop .5s .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.play .m-hubl { animation: mIn .4s .8s both; }
.play .m-pt.p1 { animation: mRise .5s .35s cubic-bezier(.2, .8, .2, 1) both; }
.play .m-pt.p2 { animation: mRise .5s .45s cubic-bezier(.2, .8, .2, 1) both; }
.play .m-wire .f1 { animation: mFlow .6s .95s ease-out both; }
.play .m-wire .f2 { animation: mFlow .6s 1.5s ease-out both; }
.play .m-wire .f3 { animation: mFlow .6s 2.35s ease-out both; }
.play .m-pulse { animation: mPulse 1.2s 1.1s ease-out 3; }
.play .p1 .x { animation: mLock .4s var(--d) ease both; }
.play .p2 .x { animation: mLock .4s var(--d) ease both; }
.play .p1 .st { animation: mIn .3s 2.3s both; }
.play .p2 .st { animation: mIn .3s 3.25s both; }
.play .m-conf { animation: mConf .5s 3.8s cubic-bezier(.3, 1.4, .5, 1) both; }

/* End card */
.m-end { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 30px; color: #fff; }
.m-end .kk { width: 54px; height: 54px; border-radius: 16px; }
.m-end h3 { margin: 16px 0 0; color: #fff; font: 700 30px/1.05 var(--display); letter-spacing: -.02em; }
.m-end p { margin-top: 8px !important; font-size: 14px; color: rgba(255, 255, 255, .72); }
.m-end .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 11px 18px; border-radius: 99px; background: #fff; color: var(--ink); font: 700 13.5px/1 var(--font); }
.m-end .go svg { width: 15px; height: 15px; stroke-width: 2.6; transform: rotate(90deg); }
.play .m-end .kk { animation: mPop .5s .1s cubic-bezier(.3, 1.6, .5, 1) both; }
.play .m-end h3 { animation: mRise .55s .3s cubic-bezier(.2, .8, .2, 1) both; }
.play .m-end p { animation: mIn .5s .55s both; }
.play .m-end .go { animation: mRise .5s .75s cubic-bezier(.2, .8, .2, 1) both, mNudge 1.6s 1.6s ease-in-out infinite; }

/* Steps under the stage (tap to jump) */
.how-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.hs { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; width: 100%; padding: 12px 4px 6px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hbar { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hbar i { display: block; height: 100%; background: #0E8F62; transform: scaleX(0); transform-origin: 0 50%; }
.hn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--muted); font: 700 13px/1 var(--display); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .3s, color .3s, box-shadow .3s; }
.hs.is-on .hn { background: var(--ink); color: #fff; box-shadow: 0 6px 14px rgba(15, 42, 34, .22); }
.hs.is-done .hn { background: var(--mint); color: var(--green-d); box-shadow: none; }
.ht b { display: block; font-size: .9375rem; font-weight: 600; color: var(--muted); line-height: 1.2; transition: color .3s; }
.ht small { display: none; font-size: .8125rem; color: var(--muted); }
.hs.is-on .ht b { color: var(--ink); }
@media (min-width: 560px) { .ht small { display: block; margin-top: 2px; } }

@keyframes mLb { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes mRise { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes mIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes mUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes mPop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes mSel { from { box-shadow: 0 0 0 1px #E2E8E3; } to { box-shadow: 0 0 0 2.5px #0E8F62; } }
@keyframes mPress { 0%, 100% { transform: none; } 50% { transform: scale(.95); } }
@keyframes mBlink { 50% { opacity: 0; } }
@keyframes mBlk { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes mScan { 0% { opacity: 0; transform: translateY(-28px); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(164px); } }
@keyframes mWipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes mRingFill { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }
@keyframes mShowHide { 0% { opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mNote { 0% { opacity: 0; transform: translateY(-26px); } 18% { opacity: 1; transform: none; } 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes mWebIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes mFlow { from { stroke-dashoffset: 160; opacity: 0; } 15% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes mPulse { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
@keyframes mLock { from { background: #F1F4F2; color: #5D6F67; transform: scale(.9); } 60% { transform: scale(1.08); } to { background: #0E8F62; color: #fff; transform: none; } }
@keyframes mConf { from { opacity: 0; transform: translate(-50%, 14px) scale(.94); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes mNudge { 0%, 100% { transform: none; } 50% { transform: translateY(3px); } }
.fcard.hello { animation: mHello 1.4s ease; }
@keyframes mHello { 0% { box-shadow: 0 0 0 0 rgba(14, 143, 98, .55); } 40% { box-shadow: 0 0 0 10px rgba(14, 143, 98, .18); } 100% { box-shadow: 0 0 0 0 rgba(14, 143, 98, 0); } }

@media (min-width: 1000px) { .m-end .go svg { transform: none; } }
