/* ==========================================================================
   SIDEPASS — JORNADA DO INGRESSO e SELETOR DE PERFIS
   Cenas que se transformam conforme a rolagem, desenhadas em unidades de container (cqw) para
   escalar sem quebrar em qualquer largura. Só anima transform e opacity. O modo calmo (.calm)
   e prefers-reduced-motion deixam tudo parado, já no estado final.
   ========================================================================== */

/* ---------- Jornada: layout (passos à esquerda, palco fixo à direita) ---------- */
.jny-sec { overflow: visible; }
.jny { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: start; position: relative; }
.jny__steps { position: relative; padding: 10vh 0; }
.jny__steps::before, .jny__steps::after { content: ""; position: absolute; left: -30px; top: 16vh; bottom: 16vh; width: 2px; border-radius: 2px; }
.jny__steps::before { background: rgba(255, 255, 255, .1); }
.jny__steps::after { background: linear-gradient(to bottom, #8fb5ff, #3B82F6); box-shadow: 0 0 14px rgba(59, 130, 246, .9); transform-origin: 50% 0; transform: scaleY(var(--jp, 0)); }
.jstep { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; max-width: 440px; opacity: .25; filter: blur(1px); transform: translateX(-8px); transition: opacity .5s var(--ease), filter .5s var(--ease), transform .5s var(--ease); }
.jstep.is-on { opacity: 1; filter: none; transform: none; }
.jstep__n { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; font-weight: 600; color: #fff; margin-bottom: 20px; transition: background-color .4s, border-color .4s; }
.jstep.is-on .jstep__n { background: var(--blue); border-color: var(--blue); box-shadow: 0 10px 30px -6px rgba(59, 130, 246, .7); }
.jstep h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); letter-spacing: -0.035em; margin-bottom: 12px; }
.jstep p { font-size: 1.14rem; line-height: 1.5; color: rgba(235, 240, 255, .66); }
.jstep p strong { color: #fff; font-weight: 600; }

.jny__stage { position: sticky; top: max(84px, calc(50vh - 270px)); display: flex; align-items: center; justify-content: center; min-height: 540px; }
.jny__glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(59, 130, 246, .5), transparent); filter: blur(34px) hue-rotate(var(--jh, 0deg)); transition: filter 1s var(--ease); pointer-events: none; }

/* ---------- Janela do navegador ---------- */
.jwin { position: relative; width: 100%; max-width: 660px; aspect-ratio: 8 / 6.3; container-type: inline-size; border-radius: 22px; background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transition: transform .8s var(--ease); }
.jny__stage:hover .jwin { transform: perspective(1400px) rotateY(-1.5deg) rotateX(.5deg); }
.jwin__bar { display: flex; align-items: center; gap: 1.1cqw; padding: 1.7cqw 2.2cqw; background: #eef0f4; }
.jwin__bar > i { width: 1.7cqw; height: 1.7cqw; border-radius: 50%; background: #cfd3dc; }
.jurl { margin-left: 1.2cqw; flex: 1; display: flex; align-items: center; gap: 1cqw; background: #fff; border-radius: 99px; padding: .8cqw 2cqw; font-size: 1.9cqw; color: var(--gray); min-width: 0; }
.jurl .ico { width: 1.9cqw; height: 1.9cqw; color: #16a34a; }
.jurl b { font-weight: 600; color: #34343a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jlive { font-style: normal; font-size: 1.7cqw; font-weight: 700; padding: .7cqw 1.7cqw; border-radius: 99px; background: #e5e7eb; color: #6b7280; transition: background-color .5s, color .5s; }
.jwin.is-live .jlive { background: #d1fae5; color: #047857; }
.jwin__body { position: absolute; inset: 5.8cqw 0 0; font-size: 2.05cqw; line-height: 1.35; overflow: hidden; }
.jrail { position: absolute; left: 50%; bottom: 1.6cqw; transform: translateX(-50%); display: flex; gap: 1cqw; z-index: 5; }
.jrail i { width: 1.2cqw; height: 1.2cqw; border-radius: 99px; background: rgba(15, 23, 42, .18); transition: width .45s var(--ease), background-color .45s; }
.jrail i.on { width: 4cqw; background: var(--blue); }

.jscr { position: absolute; inset: 0; padding: 3cqw 3.2cqw 6cqw; opacity: 0; transform: translateY(2cqw) scale(.985); transition: opacity .55s var(--ease), transform .55s var(--ease); pointer-events: none; }
.jscr.is-on { opacity: 1; transform: none; }
.jscr b { font-weight: 650; }
.jscr small { display: block; font-size: .82em; color: var(--gray-2); }

/* ---------- Cena 1: construtor ---------- */
.jb { display: grid; grid-template-columns: 31% 1fr; gap: 3cqw; height: 100%; }
.jb__list { display: flex; flex-direction: column; gap: 1cqw; min-width: 0; }
.jb__t { font-size: .85em; font-weight: 700; color: var(--gray-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4cqw; }
.jb__t--sp { margin-top: 1.6cqw; }
.jb__row { --rh: 6.4cqw; display: flex; align-items: center; gap: 1.2cqw; height: 5.4cqw; padding: 0 1.6cqw; border-radius: 1.4cqw; background: #f4f5f8; border: 1px solid #e8eaf0; font-weight: 600; font-size: .95em; white-space: nowrap; position: relative; }
.jb__h { color: #b4b8c4; letter-spacing: -.1em; font-weight: 700; }
.jb__sw { display: flex; gap: 1.3cqw; }
.jb__sw i { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 .5cqw #fff, 0 0 0 .75cqw transparent; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.jb__sw i.on { box-shadow: 0 0 0 .5cqw #fff, 0 0 0 .8cqw var(--c); transform: scale(1.12); }
.jb__prev { --p: #0b1953; border-radius: 1.8cqw; overflow: hidden; background: #f5f5f7; border: 1px solid #e8eaf0; display: flex; flex-direction: column; min-width: 0; }
.jp__hero { background: var(--p); color: #fff; padding: 4.4cqw 2cqw; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .8cqw; transition: background-color .7s var(--ease); }
.jp__hero b { font-size: 2.55em; letter-spacing: -.03em; line-height: 1.1; min-height: 1.1em; }
.jp__hero small { color: rgba(255, 255, 255, .78); }
.jp__btn { margin-top: 1cqw; background: #fff; color: #111; font-weight: 700; font-size: .85em; padding: 1cqw 2.4cqw; border-radius: 99px; }
.jp__cd { display: flex; gap: 1.2cqw; justify-content: center; padding: 2cqw; }
.jp__cd > div { background: #fff; border-radius: 1.2cqw; padding: 1.1cqw 2.2cqw; text-align: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.jp__cd b { display: block; font-size: 1.5em; color: var(--p); transition: color .7s; font-variant-numeric: tabular-nums; }
.jp__cd small { font-size: .7em; text-transform: uppercase; letter-spacing: .06em; }
.jp__tk { margin: 0 2cqw; background: #fff; border-radius: 1.2cqw; padding: 1.4cqw 2cqw; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.jp__tk b { color: var(--p); transition: color .7s; }

/* ---------- Cena 2: publicar ---------- */
.jq { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; height: 100%; align-items: center; }
.jq__main { display: flex; flex-direction: column; gap: 2.2cqw; align-items: flex-start; }
.jq__btn { position: relative; display: inline-flex; align-items: center; gap: 1.2cqw; background: var(--blue); color: #fff; font-weight: 700; padding: 1.7cqw 3.2cqw; border-radius: 99px; box-shadow: 0 1.2cqw 3cqw -.8cqw rgba(59, 130, 246, .8); transition: background-color .4s, box-shadow .4s; overflow: hidden; }
.jq__btn em { font-style: normal; }
.jq__spin { display: none; width: 1.9cqw; height: 1.9cqw; border: .35cqw solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; }
.jq__btn.is-busy .jq__spin { display: block; animation: jSpin .7s linear infinite; }
.jq__btn.is-done { background: #10b981; box-shadow: 0 1.2cqw 3cqw -.8cqw rgba(16, 185, 129, .8); }
.jq__url { display: flex; align-items: center; gap: 1.2cqw; background: #f4f5f8; border: 1px solid #e8eaf0; border-radius: 1.4cqw; padding: 1.4cqw 1.8cqw; max-width: 100%; }
.jq__url .ico { width: 2.3cqw; height: 2.3cqw; color: var(--blue-d); }
.jq__url b { font-size: .92em; white-space: nowrap; }
.jq__copy { margin-left: auto; font-size: .8em; font-weight: 700; color: var(--blue-d); }
.jq__dom { display: inline-flex; align-items: center; gap: 1cqw; font-size: .8em; font-weight: 700; color: #047857; background: #d1fae5; padding: .9cqw 1.8cqw; border-radius: 99px; opacity: 0; transform: scale(.6); transform-origin: 0 50%; }
.jq__dom .ico { width: 2cqw; height: 2cqw; stroke-width: 2.6; }
.jscr--pub.is-dom .jq__dom { animation: jPop .6s cubic-bezier(.34, 1.7, .5, 1) both; }
.is-swap { animation: jHostSwap .6s var(--ease) both; }
@keyframes jHostSwap { 0% { opacity: 0; transform: translateY(40%); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: blur(0); } }
.jq__chips { display: flex; flex-wrap: wrap; gap: 1cqw; }
.jq__chips span { font-size: .8em; font-weight: 600; padding: .8cqw 1.8cqw; border-radius: 99px; background: #eef2ff; color: #3730a3; }
.jq__cards { display: flex; flex-direction: column; gap: 2cqw; }
.jq__wa { display: flex; gap: 1.6cqw; align-items: center; background: #dcf8c6; border-radius: 1.8cqw 1.8cqw 0 1.8cqw; padding: 1.4cqw; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.jq__img { flex: none; width: 9cqw; height: 9cqw; border-radius: 1.2cqw; background: linear-gradient(150deg, #0b1953, #3b82f6); }
.jq__wa b { display: block; font-size: .92em; }
.jq__g { background: #fff; border: 1px solid #e8eaf0; border-radius: 1.6cqw; padding: 1.8cqw 2cqw; }
.jq__g small { font-size: .74em; color: #4d5156; }
.jq__g b { display: block; font-size: 1.05em; color: #1a0dab; margin: .3cqw 0 1cqw; font-weight: 500; }
.jq__g span { display: block; height: 1cqw; border-radius: 99px; background: #e5e7eb; margin-top: .8cqw; }
.jq__g span + span { width: 70%; }

/* ---------- Cena 3: vender ---------- */
.jc { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.6cqw; height: 100%; }
.jc__list { display: flex; flex-direction: column; gap: 1.6cqw; min-width: 0; }
.jc__row { display: flex; align-items: center; gap: 1.6cqw; padding: 1.8cqw 2cqw; border-radius: 1.6cqw; background: #f4f5f8; border: 1px solid #e8eaf0; }
.jc__row > div { flex: 1; min-width: 0; }
.jc__row b { display: block; font-size: .95em; }
.jc__q { display: inline-flex; align-items: center; gap: 1cqw; }
.jc__q i { width: 3.4cqw; height: 3.4cqw; border-radius: 50%; border: 1px solid #cbd0da; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; color: #6b7280; }
.jc__q output { min-width: 2cqw; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.jc__p { color: var(--navy); font-size: .95em; white-space: nowrap; }
.jc__cp { display: flex; align-items: center; gap: 1.4cqw; padding: 1.3cqw 2cqw; border: 1.5px dashed #c4c9d6; border-radius: 1.4cqw; font-size: .88em; color: var(--gray); opacity: .0; transform: translateY(1cqw); }
.jc__cp b { background: #eef2ff; color: #3730a3; padding: .5cqw 1.4cqw; border-radius: 99px; letter-spacing: .04em; }
.jc__cp em { margin-left: auto; font-style: normal; color: #047857; font-weight: 700; }
.jc__sum { background: #fff; border: 1px solid #e8eaf0; border-radius: 1.8cqw; padding: 2.2cqw; box-shadow: 0 1.4cqw 3cqw -1.8cqw rgba(15, 23, 42, .3); display: flex; flex-direction: column; gap: 1.1cqw; }
.jc__sum p { font-weight: 700; margin-bottom: .6cqw; }
.jc__sum > div { display: flex; justify-content: space-between; font-size: .9em; color: var(--gray); font-variant-numeric: tabular-nums; }
.jc__sum > div b { color: var(--ink); }
#jdisc { color: #047857; }
#jdisc b { color: #047857; }
.jc__tot { border-top: 1px solid #e8eaf0; padding-top: 1.4cqw; margin-top: .4cqw; font-size: 1.15em !important; }
.jc__go { margin-top: auto; text-align: center; background: var(--navy); color: #fff; font-weight: 700; font-size: .9em; padding: 1.6cqw; border-radius: 1.4cqw; }

/* ---------- Cena 4: pagar ---------- */
.jy { display: grid; grid-template-columns: 38% 1fr; gap: 3.4cqw; height: 100%; align-items: center; }
.jy__qrbox { position: relative; background: #fff; border: 1px solid #e8eaf0; border-radius: 2cqw; padding: 2cqw; box-shadow: 0 1.6cqw 3.6cqw -2cqw rgba(15, 23, 42, .35); overflow: hidden; }
.jy__qr { width: 100%; aspect-ratio: 1; transition: opacity .5s, filter .5s; }
.jy__qr i.k { background: #0b1020; }
.jy__scan { position: absolute; left: 0; right: 0; top: 0; height: .5cqw; background: linear-gradient(90deg, transparent, #3b82f6, transparent); box-shadow: 0 0 2cqw #3b82f6; opacity: 0; }
.jy__qrbox.is-paid .jy__qr { opacity: .12; filter: blur(.3cqw); }
.jy__side { display: flex; flex-direction: column; gap: 2cqw; min-width: 0; }
.jy__tabs { display: flex; gap: 1cqw; }
.jy__tabs span { font-size: .85em; font-weight: 700; padding: 1cqw 2cqw; border-radius: 99px; background: #f1f2f6; color: #6b7280; }
.jy__tabs span.on { background: var(--navy); color: #fff; }
.jy__code { display: flex; align-items: center; gap: 1.4cqw; background: #f4f5f8; border: 1px solid #e8eaf0; border-radius: 1.4cqw; padding: 1.4cqw 1.6cqw; min-width: 0; }
.jy__code code { flex: 1; font-size: .76em; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jy__cb { flex: none; font-size: .78em; font-weight: 700; background: var(--blue); color: #fff; padding: .9cqw 1.7cqw; border-radius: 99px; transition: background-color .3s; }
.jy__cb.is-done { background: #10b981; }
.jy__st { position: relative; display: flex; align-items: center; gap: 2cqw; background: #fffbeb; border: 1px solid #fde68a; border-radius: 1.8cqw; padding: 1.8cqw 2cqw; transition: background-color .5s, border-color .5s; }
.jy__ring { width: 6.4cqw; height: 6.4cqw; flex: none; transform: rotate(-90deg); }
.jy__ring circle { fill: none; stroke: #fde68a; stroke-width: 3.2; }
.jy__ring .jy__arc { stroke: #f59e0b; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: .72; transition: stroke .4s; }
.jy__ok { position: absolute; left: 3.4cqw; top: 50%; width: 4.4cqw; height: 4.4cqw; margin-top: -2.2cqw; color: #fff; stroke-width: 3; opacity: 0; }
.jy__st b { display: block; }
.jy__st.is-paid { background: #ecfdf5; border-color: #a7f3d0; }
.jy__st.is-paid .jy__ring circle { stroke: #a7f3d0; }
.jy__st.is-paid .jy__ring .jy__arc { stroke: #10b981; stroke-dashoffset: 0; }
.jy__st.is-paid .jy__ok { opacity: 1; }
.jy__st.is-paid::before { content: ""; position: absolute; left: 2cqw; top: 50%; width: 6.4cqw; height: 6.4cqw; margin-top: -3.2cqw; border-radius: 50%; background: #10b981; z-index: 0; }
.jy__st.is-paid .jy__ok, .jy__st.is-paid .jy__ring { z-index: 1; }

/* ---------- Cena 5: confirmar ---------- */
.jd { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 2.4cqw 2.6cqw; height: 100%; align-content: center; }
.jd__tk { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; text-align: center; background: linear-gradient(160deg, #0b1953, #1d4ed8); color: #fff; border-radius: 2cqw; padding: 3cqw; box-shadow: 0 2cqw 4cqw -2cqw rgba(11, 25, 83, .6); }
.jd__qr { width: 62%; aspect-ratio: 1; background: #fff; padding: 1.2cqw; border-radius: 1.2cqw; }
.jd__qr i.k { background: #0b1020; }
.jd__tk b { font-size: 1.15em; display: block; }
.jd__tk small { color: rgba(255, 255, 255, .7); }
.jd__tk code { display: block; margin-top: .6cqw; font-size: .74em; color: #bfd3ff; }
.jd__wa { background: #dcf8c6; border-radius: 1.8cqw 1.8cqw 1.8cqw 0; padding: 1.8cqw 2cqw; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); align-self: end; }
.jd__wa b { color: #047857; font-size: .85em; }
.jd__wa p { font-size: .88em; margin: .6cqw 0; }
.jd__wa small { text-align: right; font-size: .72em; }
.jd__org, .jd__gate { display: flex; align-items: center; gap: 1.6cqw; border-radius: 1.8cqw; padding: 1.5cqw 1.8cqw; background: #0b1020; color: #fff; }
.jd__org small, .jd__gate small { color: rgba(255, 255, 255, .6); }
.jd__org span, .jd__gate > .ico { flex: none; width: 5.2cqw; height: 5.2cqw; border-radius: 1.4cqw; display: flex; align-items: center; justify-content: center; }
.jd__org span { background: rgba(59, 130, 246, .3); color: #8fb5ff; }
.jd__org .ico { width: 3cqw; height: 3cqw; }
.jd__gate { background: #064e3b; }
.jd__gate > .ico { padding: 1.2cqw; background: rgba(16, 185, 129, .3); color: #34d399; stroke-width: 2.4; }

/* ---------- Números ---------- */
.jkpi { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 8px; border-radius: 28px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.jkpi li { padding: 28px 30px; }
.jkpi li + li { border-left: 1px solid rgba(255, 255, 255, .09); }
.jkpi b { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.04em; font-weight: 700; background: linear-gradient(100deg, #fff, #8fb5ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.jkpi small { display: block; margin-top: 10px; font-size: .95rem; line-height: 1.4; color: rgba(235, 240, 255, .6); }

/* ---------- Seletor de perfis ---------- */
.rl { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: 22px; margin-top: 12px; align-items: stretch; }
.rl[hidden] { display: none; }
.rl:not([hidden]) ~ .roles--static { display: none; }
.rl__tabs { display: flex; flex-direction: column; gap: 10px; }
.rl__tabs button { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--line); background: #fff; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, background-color .35s; }
.rl__tabs button:hover { transform: translateX(3px); }
.rl__tabs button b { display: block; font-size: 1.02rem; letter-spacing: -0.015em; color: var(--ink); }
.rl__tabs button small { display: block; font-size: .85rem; color: var(--gray-2); line-height: 1.3; }
.rl__ico { flex: none; width: 42px; height: 42px; border-radius: 13px; background: rgba(59, 130, 246, .1); color: var(--blue-d); display: flex; align-items: center; justify-content: center; transition: background-color .35s, color .35s, transform .45s var(--ease); }
.rl__ico .ico { width: 22px; height: 22px; }
.rl__tabs button[aria-selected="true"] { border-color: rgba(59, 130, 246, .5); box-shadow: 0 18px 40px -22px rgba(11, 25, 83, .45); transform: translateX(6px); }
.rl__tabs button[aria-selected="true"] .rl__ico { background: var(--blue); color: #fff; transform: scale(1.06) rotate(-4deg); }
.rl__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #3b82f6, #8fb5ff); transform-origin: 0 50%; transform: scaleX(0); }
.rl__tabs button[aria-selected="true"] .rl__bar { animation: rlFill var(--rl-dur, 6s) linear forwards; }
.rl.is-paused .rl__bar { animation-play-state: paused; }
.rl.is-manual .rl__bar { animation: none; transform: scaleX(0); }
.rl__panel { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: 0 30px 70px -40px rgba(11, 25, 83, .45); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.rl__head h3 { font-size: 1.55rem; letter-spacing: -0.03em; margin-bottom: 6px; }
.rl__head p { color: var(--gray); font-size: 1.02rem; line-height: 1.5; max-width: 620px; }
.rl__app { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; flex: 1; }
.rl__mods { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 18px; background: #f5f5f7; }
.rl__mods li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; font-size: .9rem; font-weight: 500; color: #9ca3af; transition: background-color .45s var(--ease), color .45s var(--ease), transform .45s var(--ease), opacity .45s; transition-delay: calc(var(--n, 0) * 35ms); }
.rl__mods li .ico { width: 17px; height: 17px; flex: none; }
.rl__mods li .rl__lk { margin-left: auto; opacity: .8; }
.rl__mods li .rl__ck { margin-left: auto; opacity: 0; color: #10b981; stroke-width: 2.6; transform: scale(.4); transition: opacity .35s, transform .5s cubic-bezier(.34, 1.8, .5, 1); transition-delay: calc(var(--n, 0) * 35ms + 150ms); }
.rl__mods li span { line-height: 1.25; min-width: 0; }
.rl__mods li.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .09); transform: translateX(4px); }
.rl__mods li.on .ico:first-child { color: var(--blue-d); }
.rl__mods li.on .rl__ck { opacity: 1; transform: none; }
.rl__mods li.on .rl__lk { display: none; }
.rl__mods li:not(.on) .rl__ck { display: none; }
.rl__screen { border-radius: 18px; border: 1px solid #ececf1; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; background: linear-gradient(#fff, #fafafc); }
.rl__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rl__kpi { background: #fff; border: 1px solid #ececf1; border-radius: 14px; padding: 12px 14px; animation: rlIn .6s var(--ease) both; animation-delay: calc(var(--n, 0) * 90ms + 120ms); }
.rl__kpi small { font-size: .78rem; color: var(--gray-2); }
.rl__kpi b { display: block; font-size: 1.45rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--navy); }
.rl__rows { display: flex; flex-direction: column; gap: 8px; }
.rl__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #ececf1; animation: rlIn .6s var(--ease) both; animation-delay: calc(var(--n, 0) * 90ms + 330ms); }
.rl__av { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #dbeafe; color: #1e40af; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rl__row div { flex: 1; min-width: 0; }
.rl__row b { display: block; font-size: .9rem; letter-spacing: -0.01em; }
.rl__row small { font-size: .78rem; color: var(--gray-2); }
.rl__row em { font-style: normal; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #d1fae5; color: #047857; white-space: nowrap; }
.rl__row em.w { background: #fef3c7; color: #92400e; }
.rl__row em.n { background: #e5e7eb; color: #4b5563; }

/* ---------- Cena 6: funil de interesse ---------- */
.jf { display: flex; flex-direction: column; gap: 1.35cqw; height: 100%; }
.jf__h { font-size: .72em; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gray-2); }
.jf__h--sp { margin-top: .6cqw; }
.jf__row { display: grid; grid-template-columns: 1fr auto; column-gap: 1.2cqw; align-items: baseline; }
.jf__row > span:first-child { font-weight: 600; }
.jf__row b { font-variant-numeric: tabular-nums; }
.jf__track { grid-column: 1 / -1; height: 1.15cqw; margin-top: .45cqw; border-radius: 99px; background: #eef0f4; overflow: hidden; }
.jf__track i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--c, #0071e3); }
.jscr--fun.is-on .jf__track i { width: var(--w); transition: width .8s var(--ease); }
.jf__src { display: grid; grid-template-columns: 1fr 1fr; gap: .8cqw; list-style: none; margin: 0; padding: 0; }
.jf__src li { display: flex; align-items: center; gap: .8cqw; min-width: 0; background: #f4f5f8; border-radius: 1.2cqw; padding: 1cqw 1.2cqw; font-weight: 600; white-space: nowrap; }
.jf__src i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--c); flex: none; }
.jf__src b { margin-left: auto; font-variant-numeric: tabular-nums; flex: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .jny { gap: 36px; }
  .rl { grid-template-columns: minmax(0, 1fr); }
  .rl__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .rl__tabs button { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .rl__tabs button small { display: none; }
  .rl__tabs button[aria-selected="true"], .rl__tabs button:hover { transform: none; }
}
@media (max-width: 1023px) {
  .jny { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .jny__stage { order: -1; position: sticky; top: 60px; z-index: 6; min-height: 0; padding: 14px 0 26px; background: var(--night); }
  .jny__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: -40px; height: 40px; background: linear-gradient(to bottom, var(--night), rgba(5, 7, 15, 0)); pointer-events: none; }
  .jny__glow { width: 360px; height: 360px; }
  .jwin { max-width: 440px; transform: none; }
  .jny__steps { padding: 2vh 0 6vh; }
  .jny__steps::before, .jny__steps::after { display: none; }
  .jstep { min-height: 42vh; }
  .jkpi { grid-template-columns: repeat(2, 1fr); }
  .jkpi li:nth-child(3) { border-left: 0; }
  .jkpi li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .09); }
}
@media (max-width: 760px) {
  .rl__app { grid-template-columns: minmax(0, 1fr); }
  .rl__tabs { display: flex; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 0 20px 6px; margin: 0 -20px; scrollbar-width: none; }
  .rl__tabs::-webkit-scrollbar { display: none; }
  .rl__tabs button { flex: none; flex-direction: row; align-items: center; scroll-snap-align: start; min-width: 220px; }
  .rl__tabs button small { display: block; }
  .rl__mods { flex-direction: row; flex-wrap: wrap; }
  .rl__mods li { padding: 7px 10px; font-size: .84rem; }
  .rl__mods li.on { transform: none; }
  .rl__kpis { grid-template-columns: 1fr; }
  .rl__panel { padding: 20px; }
  .jkpi li { padding: 20px 18px; }
}

/* ==========================================================================
   MOVIMENTO
   ========================================================================== */
@keyframes jSpin { to { transform: rotate(360deg); } }
@keyframes rlFill { to { transform: scaleX(1); } }
@keyframes rlIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes jRise { from { opacity: 0; transform: translateY(2.4cqw) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes jFromR { from { opacity: 0; transform: translateX(6cqw) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes jFromL { from { opacity: 0; transform: translateX(-4cqw); } to { opacity: 1; transform: none; } }
@keyframes jPop { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes jPress { 0%, 100% { transform: scale(1); } 45% { transform: scale(.93); } }
@keyframes jLift { 0%, 100% { box-shadow: none; } 30%, 70% { box-shadow: 0 1.6cqw 3cqw -1cqw rgba(15, 23, 42, .4); background: #fff; border-color: var(--blue); } }
@keyframes jSwapUp { 0%, 20% { transform: translateY(0) scale(1); } 40%, 100% { transform: translateY(calc(var(--rh) * -1)) scale(1.03); } }
@keyframes jSwapDn { 0%, 20% { transform: translateY(0); } 40%, 100% { transform: translateY(var(--rh)); } }
@keyframes jScan { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - .5cqw); opacity: 0; } }
@keyframes jCell { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes jBurst { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes jFlip { from { opacity: 0; transform: perspective(900px) rotateY(-70deg) translateX(-4cqw); } to { opacity: 1; transform: none; } }
@keyframes jGate { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } 70% { box-shadow: 0 0 0 1.6cqw rgba(16, 185, 129, 0); } }
@keyframes jFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.7cqw); } }

/* Cena 1 */
.jscr--build.is-on .jb__row { animation: jFromL .6s var(--ease) both; animation-delay: calc(var(--n) * 90ms + 120ms); }
.jscr--build.is-on .jb__row--move { animation: jFromL .6s var(--ease) 570ms both, jLift 1.8s var(--ease) 1.7s 1, jSwapUp 2.4s var(--ease) 1.7s both; animation-fill-mode: both; z-index: 2; }
.jscr--build.is-on .jb__row:nth-of-type(3) { animation: jFromL .6s var(--ease) 390ms both, jSwapDn 2.4s var(--ease) 1.7s both; }
.jscr--build.is-on .jp__hero, .jscr--build.is-on .jp__cd, .jscr--build.is-on .jp__tk { animation: jRise .7s var(--ease) both; }
.jscr--build.is-on .jp__cd { animation-delay: .25s; }
.jscr--build.is-on .jp__tk { animation-delay: .4s; }
.jscr--build.is-on .jp__btn { animation: jFloat 3.2s ease-in-out infinite; }

/* Cena 2 */
.jscr--pub.is-on .jq__btn { animation: jRise .6s var(--ease) both; }
.jscr--pub .jq__btn.is-press { animation: jPress .4s var(--ease); }
.jscr--pub.is-on .jq__url, .jscr--pub.is-on .jq__chips { opacity: 0; }
.jscr--pub.is-pub .jq__url { animation: jRise .6s var(--ease) both; }
.jscr--pub.is-pub .jq__chips span { animation: jPop .55s cubic-bezier(.34, 1.7, .5, 1) both; animation-delay: calc(var(--n) * 110ms + 150ms); }
.jscr--pub.is-pub .jq__chips { opacity: 1; }
.jscr--pub .jq__wa, .jscr--pub .jq__g { opacity: 0; }
.jscr--pub.is-pub .jq__wa { animation: jFromR .7s cubic-bezier(.34, 1.4, .5, 1) .5s both; transform-origin: 100% 0; }
.jscr--pub.is-pub .jq__g { animation: jFromR .7s var(--ease) 1.05s both; }

/* Cena 3 */
.jscr--sell.is-on .jc__row, .jscr--sell.is-on .jc__sum { animation: jRise .6s var(--ease) both; }
.jscr--sell.is-on .jc__row:nth-child(2) { animation-delay: .1s; }
.jscr--sell.is-on .jc__sum { animation-delay: .2s; }
.jc__plus.is-press { animation: jPress .35s var(--ease); background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important; }
.jc__cp.is-on { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.jscr--sell #jdisc, .jscr--sell .jc__sum > #jdisc { transition: opacity .4s; }
.jc__sum b.is-tick { animation: jPress .4s var(--ease); }

/* Cena 4 */
.jscr--pay.is-on .jy__qrbox { animation: jRise .6s var(--ease) both; }
.jscr--pay.is-on .jy__qr i { animation: jCell .4s var(--ease) both; animation-delay: var(--d, 0s); }
.jscr--pay.is-on .jy__scan { animation: jScan 1.8s ease-in-out .9s 2; }
.jscr--pay.is-on .jy__side > * { animation: jFromR .6s var(--ease) both; }
.jscr--pay.is-on .jy__side > :nth-child(2) { animation-delay: .12s; }
.jscr--pay.is-on .jy__side > :nth-child(3) { animation-delay: .24s; }
.jscr--pay .jy__cb.is-press { animation: jPress .4s var(--ease); }
.jscr--pay .jy__st:not(.is-paid) .jy__arc { animation: none; }
.jy__st.is-paid::after { content: ""; position: absolute; left: 2cqw; top: 50%; width: 6.4cqw; height: 6.4cqw; margin-top: -3.2cqw; border-radius: 50%; border: .4cqw solid #10b981; animation: jBurst 1s ease-out both; pointer-events: none; }
.jy__st.is-paid .jy__ok { animation: jPop .5s cubic-bezier(.34, 1.8, .5, 1) both; }

/* Cena 5 */
.jscr--done.is-on .jd__tk { animation: jFlip .9s var(--ease) both; }
.jscr--done.is-on .jd__qr i { animation: jCell .35s var(--ease) both; animation-delay: calc(.4s + var(--d, 0s)); }
.jscr--done.is-on .jd__wa { animation: jFromR .7s cubic-bezier(.34, 1.4, .5, 1) .8s both; transform-origin: 0 100%; }
.jscr--done.is-on .jd__org { animation: jFromR .7s cubic-bezier(.34, 1.4, .5, 1) 1.5s both; }
.jscr--done.is-on .jd__gate { animation: jFromR .7s cubic-bezier(.34, 1.4, .5, 1) 2.2s both, jGate 1.8s ease-out 2.9s 2; }

/* Números */
.jkpi li.in b { animation: rlIn .8s var(--ease) both; }

/* Modo calmo: tudo parado, no estado final */
.calm .jscr *, .calm .jwin, .calm .rl *, .calm .jkpi * { animation: none !important; }
.calm .jscr { transition: opacity .2s; transform: none; }
.calm .jwin, .calm .jny__stage:hover .jwin { transform: none; }
.calm .rl__bar { display: none; }
.calm .jc__cp { opacity: 1; transform: none; }
.calm .jscr--pub.is-dom .jq__dom { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .jscr *, .jwin, .rl *, .jkpi * { animation: none !important; }
  .jscr { transform: none; }
  .jscr--pub.is-dom .jq__dom { opacity: 1; transform: none; }
}
.jstep h3 { font-size: clamp(1.35rem, 2.1vw, 1.8rem); }
.jkpi b { font-size: clamp(2rem, 3.4vw, 2.7rem); }
