/* RELIO website: the setup step pages (site_makers.py) and their moving pictures (site_motion.py). Loaded after site.css
   by /setup/<maker> only, so the licence and payment pages never carry it. Every picture rule is
   scoped to .illus or [data-motion] (test_site_makers checks it): short names like .ok and .code also exist on
   receipts and forms. Only transform, opacity and short SVG stroke offsets move. The styles without animation are the
   still frame that reduced motion and print show. */
/* Pausing: the Pause button (all pictures), a hidden tab, a picture off screen. */
html.motion-paused [data-motion] *, html.motion-paused [data-motion] *::before, html.motion-paused [data-motion] *::after,
html.tab-hidden [data-motion] *, html.tab-hidden [data-motion] *::before, html.tab-hidden [data-motion] *::after,
[data-motion].is-off *, [data-motion].is-off *::before, [data-motion].is-off *::after {
  animation-play-state: paused !important;
}
/* Without site.js no Pause button works, so nothing loops: the still frame. */
html:not(.js) [data-motion] *, html:not(.js) [data-motion] *::before, html:not(.js) [data-motion] *::after { animation: none !important; }
[data-motion] .bars { display: flex; gap: .25em; align-items: center; height: 2.2em; margin-top: .9em; }
[data-motion] .bars i {
  width: .32em; height: 100%; border-radius: .2em; background: currentColor; transform: scaleY(.45);
  animation: bar .9s var(--ease-in-out) infinite; animation-delay: calc(var(--i) * -.17s);
}
@keyframes bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* Setup pictures: a generic phone (no maker's look), the step's own words, grey bars for everything else. */
.illus { --track-on: #0a7a6e; --track-off: #8e8e93; position: relative; margin: 0; display: grid; justify-items: center; align-content: start; }
.illus .mock {
  position: relative; isolation: isolate; width: min(100%, 236px); aspect-ratio: 9 / 14.2; overflow: hidden;
  border: 7px solid var(--bezel); border-radius: 26px; background: var(--card); color: var(--text); font-size: 12px;
  line-height: 1.35; text-align: start; box-shadow: 0 24px 44px -28px rgba(24, 50, 76, .55), 0 6px 14px -8px rgba(0, 0, 0, .18);
}
.illus .mock.iphone { border-radius: 34px; }
.illus .m-bar { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px 2px; font-size: 10px; font-weight: 700; color: var(--muted); }
.illus .mock.iphone .m-bar { padding-top: 12px; }
.illus .m-icons { width: 30px; height: 7px; border-radius: 2px; opacity: .5; background: linear-gradient(90deg, var(--muted) 0 40%, transparent 40% 55%, var(--muted) 55%); }
.illus .m-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px 12px; font-size: 15px; font-weight: 800; }
.illus .m-back { width: 16px; height: 16px; flex: none; color: var(--accent); }
[dir="rtl"] .illus .m-back { transform: scaleX(-1); }
.illus .m-body { position: relative; display: grid; gap: 7px; padding: 0 10px; }
.illus .m-row { position: relative; display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 7px 11px; border-radius: 12px; background: var(--alt); }
.illus .m-row.sk i { width: 20px; height: 20px; flex: none; border-radius: 6px; background: var(--chip); }
.illus .m-row.sk b { height: 7px; width: 62%; border-radius: 4px; background: var(--chip); }
.illus .m-row.sk.short b { width: 40%; }
.illus .m-row.target { background: var(--card); box-shadow: inset 0 0 0 2px var(--teal); font-weight: 700; }
.illus .m-label { display: grid; min-width: 0; }
.illus .m-en { justify-self: start; font-size: 10.5px; font-weight: 600; color: var(--muted); }
[dir="rtl"] .illus .m-en { text-align: right; }
.illus .m-app { width: 30px; height: 30px; flex: none; border-radius: 8px; }
.illus .sw { position: relative; flex: none; margin-inline-start: auto; width: 34px; height: 20px; border-radius: 10px; background: var(--track-off); }
.illus .sw-on { position: absolute; inset: 0; border-radius: inherit; background: var(--track-on); animation: on-flip var(--d-loop) var(--ease-out) infinite both; }
.illus .knob {
  position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transform: translateX(calc(var(--dir) * 14px));
  animation: knob-flip var(--d-loop) var(--ease-spring) infinite both;
}
/* The one switch to turn off: it starts on, and off is its still frame. */
.illus.k-auto-blocker .sw-on { opacity: 0; animation-name: off-flip; }
.illus.k-auto-blocker .knob { transform: none; animation-name: knob-back; }
.illus .tap {
  position: absolute; z-index: 2; top: 50%; inset-inline-end: 8px; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%; pointer-events: none; opacity: .9; background: color-mix(in srgb, var(--focus) 22%, transparent);
  box-shadow: 0 0 0 2px var(--focus); animation: tap var(--d-loop) var(--ease-out) infinite both;
}
.illus .m-btn .tap { inset-inline-end: auto; left: 50%; margin-left: -14px; }
/* Buttons keep their words whole: where two do not fit in one row, Cancel stands above the long one. Only that one's label may wrap. */
.illus .m-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.illus .m-btn { position: relative; flex: none; white-space: nowrap; display: inline-grid; place-items: center; min-height: 32px; padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--accent); }
.illus .m-btn.target { flex: 0 1 auto; white-space: normal; background: var(--primary); color: var(--on-primary); text-align: center; }
.illus .m-btn .m-label { justify-items: center; text-align: center; }
.illus .m-btn .m-en { justify-self: center; text-align: center; }
.illus .m-btn.target .m-en { color: inherit; opacity: .8; }
.illus .m-btn.wide { display: grid; margin: 12px 2px 0; }
.illus.k-install-apk .m-body { position: absolute; inset: 28px 0 0; padding: 0; background: var(--alt); }
.illus .m-sheet {
  position: absolute; inset-inline: 0; bottom: 0; display: grid; gap: 9px; padding: 16px 14px 20px;
  border-radius: 18px 18px 0 0; background: var(--card); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .25);
}
.illus .m-apphead { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.illus .m-q { margin: 0; color: var(--muted); }
.illus .m-prog { height: 4px; overflow: hidden; border-radius: 2px; background: var(--chip); }
.illus .m-prog i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: prog var(--d-loop) var(--ease-out) infinite both; }
[dir="rtl"] .illus .m-prog i { transform-origin: right; }
.illus.k-permission .m-body, .illus.k-allow-debugging .m-body {
  position: absolute; inset: 28px 0 0; align-content: center; background: color-mix(in srgb, var(--text) 16%, var(--alt));
}
.illus .m-dialog {
  display: grid; gap: 9px; padding: 14px; border-radius: 18px; background: var(--card);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .4), 0 0 0 1px var(--line);
}
.illus .m-dtitle { margin: 0; font-size: 13.5px; font-weight: 800; line-height: 1.3; }
.illus .rd { flex: none; margin-inline-start: auto; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--muted); }
.illus .rd i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.illus .target .rd { box-shadow: inset 0 0 0 2px var(--accent); }
.illus .m-row.radio .rd { margin-inline-start: 0; }
.illus .target .rd i { animation: rd-fill var(--d-loop) var(--ease-spring) infinite both; }
.illus .m-fp { display: grid; margin: 0; font-size: 11px; color: var(--muted); }
.illus .m-fp bdi { justify-self: start; font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); }
.illus .m-check { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11.5px; }
.illus .cb { flex: none; width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--accent); display: grid; place-items: center; }
.illus .cb i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 4px; background: var(--accent); color: var(--on-primary); animation: tick-on var(--d-loop) var(--ease-spring) infinite both; }
.illus .cb .g { width: 12px; height: 12px; stroke-width: 3; }
.illus.k-pair-code .m-body { position: static; }
.illus .m-dialog.low { position: absolute; inset-inline: 8px; bottom: 10px; z-index: 1; animation: sheet-up var(--d-loop) var(--ease-spring-soft) infinite both; }
.illus .digits { position: relative; overflow: hidden; margin: 2px 0; text-align: center; font: 800 21px/1.25 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; }
.illus .dg { display: inline-block; animation: dg var(--d-loop) var(--ease-out) infinite both; animation-delay: calc(var(--i) * 90ms); }
.illus .dg:nth-child(4) { margin-left: .3em; }
.illus .digits::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--teal) 40%, transparent), transparent);
  animation: glint var(--d-loop) var(--ease-out) infinite both;
}
.illus .vf { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: #111; }
.illus .vf.big { aspect-ratio: 1 / 1.05; margin: 4px 2px 0; }
.illus .vf .digits { padding: 8px 10px; border-radius: 10px; color: #f5f5f7; background: rgba(255, 255, 255, .12); font-size: 19px; }
.illus .vf .dg { animation: none; }
.illus .vf .digits::after { display: none; }
.illus .scan {
  position: absolute; inset: 0; opacity: 0; transform: translateY(-50%);
  background: linear-gradient(180deg, transparent 47%, var(--teal) 49.5% 50.5%, transparent 53%);
  animation: scan var(--d-loop) var(--ease-in-out) infinite both;
}
.illus .ok {
  position: absolute; z-index: 2; inset-inline-end: 8px; bottom: 8px; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; background: var(--go); animation: pop var(--d-loop) var(--ease-spring) infinite both;
}
.illus .ok .g { width: 15px; height: 15px; stroke-width: 3; }
.illus.k-qr-pair .m-body { position: static; }
.illus .m-center { display: grid; justify-items: center; gap: 10px; padding-top: 8px; }
.illus .m-cap { margin: 0; text-align: center; font-size: 14px; font-weight: 800; }
.illus .qr { width: 50%; height: auto; }
.illus .qr path { fill: var(--text); }
.illus .qr-bg { fill: var(--card); }
.illus .mini {
  position: absolute; z-index: 1; inset-inline-end: 10px; bottom: 10px; width: 46%; display: grid; gap: 6px; padding: 8px 6px;
  border: 4px solid var(--bezel); border-radius: 18px; background: var(--card); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .45);
}
.illus .mini .vf { aspect-ratio: 1; }
.illus .mini .vf::before { content: ""; position: absolute; inset: 22%; border-radius: 4px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.illus .mini .m-btn { min-height: 24px; padding: 2px 6px; font-size: 10px; }
.illus .m-val { flex: none; margin-inline-start: auto; width: 46px; height: 7px; border-radius: 4px; background: var(--chip); }
.illus .count { position: absolute; z-index: 3; inset-inline-end: 2px; top: -18px; width: 30px; height: 30px; }
.illus .count .n, .illus .count .done {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; opacity: 0; font-size: 13px;
  font-weight: 800; background: var(--primary); color: var(--on-primary);
  animation: cnt var(--d-loop) var(--ease-spring) infinite both; animation-delay: calc(380ms + var(--k) * 336ms);
}
.illus .count .done { opacity: 1; background: var(--go); color: #fff; animation-name: done; animation-delay: 0s; }
.illus .count .done .g { width: 16px; height: 16px; stroke-width: 3; }
.illus .tap.many { animation-name: tap-many; }
.illus .m-row.ready { justify-content: space-between; }
.illus .m-key { font-weight: 600; }
.illus .m-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 800; }
.illus .m-ok .g { width: 14px; height: 14px; stroke-width: 3; }
.illus .m-voice { display: flex; justify-content: center; gap: 26px; padding: 18px 0 8px; color: var(--accent); }
.illus .m-voice .bars { height: 34px; margin: 0; }
.illus .m-voice .rev { color: var(--part); }
.illus .m-voice .rev i { animation-direction: reverse; }
.illus.k-after-restart .m-body { position: static; }
.illus .frames { position: absolute; inset: 28px 0 0; }
.illus .fr { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 0 14px; text-align: center; font-size: 13px; font-weight: 700; opacity: 0; }
.illus .fr .big { width: 58px; height: 58px; padding: 15px; border-radius: 50%; background: var(--alt); color: var(--accent); }
.illus .f3 { opacity: 1; }
.illus .f3 .big { background: var(--go); color: #fff; }
.illus .f1 { animation: f1 var(--d-loop) var(--ease-out) infinite both; }
.illus .f2 { animation: f2 var(--d-loop) var(--ease-out) infinite both; }
.illus .f3 { animation: f3 var(--d-loop) var(--ease-out) infinite both; }
@keyframes on-flip { 0%, 33% { opacity: 0; } 39%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes knob-flip { 0%, 33% { transform: none; } 42%, 90% { transform: translateX(calc(var(--dir) * 14px)); } 96%, 100% { transform: none; } }
@keyframes off-flip { 0%, 33% { opacity: 1; } 39%, 90% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes knob-back { 0%, 33% { transform: translateX(calc(var(--dir) * 14px)); } 42%, 90% { transform: none; } 96%, 100% { transform: translateX(calc(var(--dir) * 14px)); } }
@keyframes tap { 0%, 20% { opacity: 0; transform: scale(1.5); } 26% { opacity: 1; transform: scale(1); } 30% { transform: scale(.78); } 35% { opacity: 1; transform: scale(1); } 45%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes tap-many {
  0%, 6% { opacity: 0; transform: scale(1.3); }
  7.9%, 14.9%, 21.9%, 28.9%, 35.9%, 42.9%, 49.9% { opacity: 1; transform: scale(.78); }
  11%, 18%, 25%, 32%, 39%, 46%, 53% { opacity: 1; transform: scale(1); }
  58%, 100% { opacity: 0; transform: scale(1.4); }
}
@keyframes cnt { 0% { opacity: 0; transform: scale(.6); } 1.5%, 6.8% { opacity: 1; transform: none; } 7%, 100% { opacity: 0; } }
@keyframes done { 0%, 56% { opacity: 0; transform: scale(.5); } 61%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes prog { 0%, 36% { transform: scaleX(0); } 70%, 92% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
@keyframes rd-fill { 0%, 30% { transform: scale(0); } 38%, 92% { transform: scale(1); } 98%, 100% { transform: scale(0); } }
@keyframes tick-on { 0%, 8% { opacity: 0; transform: scale(.5); } 14%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes sheet-up { 0%, 36% { opacity: 0; transform: translateY(30px); } 44%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(30px); } }
@keyframes dg { 0%, 44% { opacity: 0; transform: translateY(6px); } 47%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes glint { 0%, 58% { transform: translateX(-110%); } 70%, 100% { transform: translateX(110%); } }
@keyframes scan { 0%, 32% { opacity: 0; transform: translateY(-50%); } 36% { opacity: 1; } 56% { opacity: 1; transform: translateY(50%); } 60%, 100% { opacity: 0; transform: translateY(50%); } }
@keyframes pop { 0%, 58% { opacity: 0; transform: scale(.4); } 64%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: scale(.8); } }
@keyframes f1 { 0%, 28% { opacity: 1; transform: none; } 33%, 96% { opacity: 0; transform: scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes f2 { 0%, 30% { opacity: 0; transform: scale(.96); } 35%, 61% { opacity: 1; transform: none; } 66%, 100% { opacity: 0; transform: scale(.96); } }
@keyframes f3 { 0%, 63% { opacity: 0; transform: scale(.96); } 68%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }

/* The step pages */
.mk-head .wrap { max-width: 1080px; }
@media (min-width: 1240px) { .mk-head .wrap { max-width: 1200px; } }
.mk-head .crumbs span { color: var(--muted); }
.mk-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.mk-facts li { display: flex; gap: 8px; align-items: flex-start; }
.mk-facts .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.mk-checked { max-width: 720px; margin: 22px 0 0; }
.mk-checked ul { display: grid; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.mk-checked a {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 14px; border-radius: 14px;
  text-decoration: none; background: var(--card); box-shadow: var(--shadow);
}
.mk-checked a:hover b { text-decoration: underline; }
.mk-checked .small { margin: 0; }
.mk-checked .note { margin: 12px 0 0; }
.mk-head .mchips { margin-top: 20px; }
.sec.mk { padding-top: 8px; }
.mk-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.mk-rail {
  position: sticky; top: 56px; z-index: 6; margin-inline: -16px; padding: 10px 16px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.mk-rail ol { display: none; }
.mk-prog { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; font-weight: 700; }
.mk-prog .bar { flex: 1; height: 4px; overflow: hidden; border-radius: 2px; background: var(--chip); }
.mk-prog .bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(.08); transition: transform 480ms var(--ease-out); }
[dir="rtl"] .mk-prog .bar i { transform-origin: right; }
html:not(.js) .mk-rail { position: static; border: 0; background: none; }
html:not(.js) .mk-prog { display: none; }
html:not(.js) .mk-rail ol { display: flex; gap: 8px; margin: 0; padding: 0 0 6px; overflow-x: auto; list-style: none; }
.mk-rail a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; font-size: 14px; color: var(--muted); text-decoration: none; }
html:not(.js) .mk-rail a { white-space: nowrap; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.rn { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; background: var(--chip); }
@media (min-width: 980px) {
  .mk-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
  .mk-rail { top: 80px; margin: 0; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mk-rail { max-height: calc(100vh - 100px); overflow-y: auto; }
  .mk-rail ol, html:not(.js) .mk-rail ol { display: grid; gap: 2px; margin: 14px 0 0; padding: 0; list-style: none; overflow: visible; }
  html:not(.js) .mk-rail a { white-space: normal; background: none; border: 0; }
  .mk-rail a:hover { background: var(--chip); color: var(--text); }
  .mk-rail a[aria-current] { background: var(--teal-soft); color: var(--text); font-weight: 700; }
  .mk-rail a[aria-current] .rn, .mk-rail a.done .rn { background: var(--primary); color: var(--on-primary); }
}
.mk-steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.mstep { display: grid; gap: 20px; padding: 20px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); scroll-margin-top: 120px; }
.mstep:target { box-shadow: 0 0 0 2px var(--teal), var(--shadow); }
.mstep .illus { order: -1; }
.mstep .mock { width: min(100%, 220px); }
@media (min-width: 720px) {
  .mstep { grid-template-columns: minmax(0, 1fr) 236px; gap: 32px; align-items: start; padding: 28px; }
  .mstep .illus { order: 0; position: sticky; top: 96px; }
  .mstep .mock { width: 236px; }
}
.mstep-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.mstep-n { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; font-size: 18px; font-weight: 800; background: var(--primary); color: var(--on-primary); }
.mstep-of { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.mstep h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.3; }
html[data-script="arab"] .mstep h2 { line-height: 1.5; }
.mstep .note { margin: 12px 0 0; }
.didnt { margin: 14px 0 0; background: var(--alt); box-shadow: none; }
.didnt summary { justify-content: flex-start; align-items: center; gap: 8px; }
.didnt summary .ic { width: 18px; height: 18px; color: var(--warn); }
.didnt summary span { flex: 1; }
.tq + .tq { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
details .answer .tq h3 { margin: 4px 0; font-size: 15px; color: var(--text); }
details .answer .tq p { color: var(--muted); font-size: 14px; }
.tq .more { font-size: 14px; margin-bottom: 8px; }
.mk-apk { margin: 0 0 14px; }
.mk-apk .small { margin: 8px 0 0; }
.mk-url { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-weight: 700; color: var(--text); }
.mlinks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: 14px; }
.mlinks:empty { display: none; }
