/* ==========================================================================
   Bot Manager — palco da demonstração (celular com Telegram + painel)
   Controlado por public/js/home-demo.js. Tudo é transform/opacity, exceto o
   deslocamento da conversa (um único translate no contêiner das mensagens).
   ========================================================================== */

.stage {
    --phone-w: 300px;
    --phone-h: 590px;
    --tg-bg: #0e1621;
    --tg-head: #17212b;
    --tg-in: #182533;
    --tg-out: #2b5278;
    --tg-link: #6ab2f2;
    position: relative; isolation: isolate;
    display: grid; justify-items: center; align-items: center; gap: 22px 0;
    grid-template-areas: 'device' 'panel';
}
.stage [hidden] { display: none !important; }
.stage__glow { position: absolute; inset: -6% -4%; z-index: -1; pointer-events: none; background: radial-gradient(46% 52% at 32% 48%, rgba(124, 58, 237, .38), transparent 72%), radial-gradient(34% 40% at 82% 70%, rgba(61, 220, 245, .10), transparent 72%); }

.stage__device { grid-area: device; width: 100%; display: flex; justify-content: center; perspective: 1500px; }
.phone { width: min(var(--phone-w), 100%); transform-style: preserve-3d; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .9s var(--ease); will-change: transform; }
/* Aparelho: banda de titânio (::before), bisel preto, vidro com reflexo, botões laterais. */
.phone { position: relative; }
.phone__frame { position: relative; padding: 11px; border-radius: 58px; background: #050507; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 0 0 3px #000, 0 70px 110px -45px rgba(0, 0, 0, .95), 0 34px 70px -34px rgba(124, 58, 237, .5); }
.phone__frame::before { content: ''; position: absolute; inset: -4px; z-index: -1; border-radius: 62px; background: linear-gradient(140deg, #a3a6b3 0%, #4a4d58 14%, #1f2027 38%, #2b2d35 62%, #5d606c 84%, #b4b7c3 100%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.phone__frame::after { content: ''; position: absolute; inset: -4px; border-radius: 62px; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .5), inset 1px 0 0 rgba(255, 255, 255, .12), inset -1px 0 0 rgba(255, 255, 255, .12); }
.phone__btn { position: absolute; z-index: -2; width: 5px; border-radius: 3px; background: linear-gradient(90deg, #6c6f7b, #2a2b32 55%, #4b4d57); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.phone__btn--action { left: -8px; top: 112px; height: 30px; }
.phone__btn--vol-up { left: -8px; top: 160px; height: 54px; }
.phone__btn--vol-down { left: -8px; top: 224px; height: 54px; }
.phone__btn--power { right: -8px; top: 182px; height: 86px; }
.phone__glare { position: absolute; inset: 0; z-index: 9; border-radius: inherit; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 22%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .035) 100%); }
.phone__home { position: absolute; z-index: 8; left: 50%; bottom: 7px; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: rgba(255, 255, 255, .78); }
.phone__screen { position: relative; height: var(--phone-h); border-radius: 47px; overflow: hidden; background: var(--tg-bg); color: #fff; display: flex; flex-direction: column; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'DM Sans', sans-serif; font-size: 14.5px; line-height: 1.38; }
.phone__island { position: absolute; z-index: 10; left: 50%; top: 10px; width: 84px; height: 27px; margin-left: -42px; border-radius: 16px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .04); }
.phone__island i { position: absolute; right: 8px; top: 7.5px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4a7a 0 18%, #0d1326 45%, #05060c 70%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }

.tg-status { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 4px 18px 0 30px; background: var(--tg-head); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.tg-status__time { font-variant-numeric: tabular-nums; }
.tg-status__icons { display: inline-flex; align-items: center; gap: 5px; }
.tg-status__icons svg { display: block; fill: #fff; }
.tg-status__signal { width: 17px; height: 11px; }
.tg-status__wifi { width: 15px; height: 11px; }
.tg-status__bat { position: relative; width: 24px; height: 12px; padding: 1.5px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .45); }
.tg-status__bat::after { content: ''; position: absolute; right: -4px; top: 3.5px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: rgba(255, 255, 255, .45); }
.tg-status__bat i { display: block; width: 78%; height: 100%; border-radius: 2px; background: #fff; }
.tg-head { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 12px 0 6px; background: var(--tg-head); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.tg-head__back { width: 24px; height: 24px; color: var(--tg-link); transform: rotate(180deg); stroke-width: 2.2; }
.tg-head__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background: #25384d; padding: 3px; }
.tg-head__info { display: flex; flex-direction: column; line-height: 1.25; }
.tg-head__info strong { font-size: 15.5px; font-weight: 600; }
.tg-head__info small { font-size: 12.5px; color: #6d7f8f; }

.tg-body { position: relative; flex: 1; min-height: 0; overflow: hidden; background-color: var(--tg-bg); background-image: radial-gradient(circle at 18% 14%, rgba(124, 58, 237, .13), transparent 42%), radial-gradient(circle at 86% 78%, rgba(61, 220, 245, .07), transparent 46%), radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: auto, auto, 22px 22px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26px); mask-image: linear-gradient(180deg, transparent 0, #000 26px); }
.tg-stack { position: absolute; left: 0; right: 0; top: 0; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 7px; transform: translate3d(0, var(--shift, 0px), 0); transition: transform .6s var(--ease); will-change: transform; }

.tg-intro { align-self: center; width: 84%; margin: 6px 0 4px; padding: 14px 14px 12px; border-radius: 16px; background: rgba(24, 37, 51, .94); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tg-intro img { width: 48px; height: 48px; object-fit: contain; }
.tg-intro strong { font-size: 15.5px; }
.tg-intro p { font-size: 13px; color: #b6c4d2; line-height: 1.4; }

.msg { display: flex; flex-direction: column; gap: 3px; max-width: 88%; transform-origin: 0 100%; }
.msg--in { align-self: flex-start; }
.msg--out { align-self: flex-end; transform-origin: 100% 100%; }
.msg.is-in { animation: msgIn .46s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.94); } to { opacity: 1; transform: none; } }
.js .stage [data-msg]:not(.is-shown):not([data-msg='intro']), .js .stage [data-typing]:not(.is-shown) { display: none; }

.bubble { position: relative; padding: 7px 11px 19px; border-radius: 14px 14px 14px 4px; background: var(--tg-in); box-shadow: 0 1px 1px rgba(0, 0, 0, .18); overflow-wrap: anywhere; }
.msg--out .bubble { background: var(--tg-out); border-radius: 14px 14px 4px 14px; }
.bubble time { position: absolute; right: 9px; bottom: 4px; font-size: 11px; color: rgba(255, 255, 255, .45); }
.bubble--rich { padding: 0 0 20px; overflow: hidden; }
.bubble--rich > p, .bubble--rich > ul { padding-inline: 11px; }
.bubble--rich > p:first-child { padding-top: 8px; }
.cover { position: relative; height: 90px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #4c1d95, #7c3aed 58%, #22b8d6); }
.cover::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 14px 14px; }
.cover span { position: relative; font-family: var(--font-d); font-size: 34px; font-weight: 700; letter-spacing: .08em; }
.cover + p { padding-top: 9px; }

.product__name { font-weight: 700; font-size: 15px; padding-top: 10px; }
.product__desc { color: #b6c4d2; font-size: 13.5px; }
.product__list { margin: 6px 0 2px; display: grid; gap: 3px; font-size: 13.5px; }
.product__list li { position: relative; padding-left: 16px; }
.product__list li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--tg-link); }
.product__price { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.product__price b { font-family: var(--font-d); font-size: 22px; letter-spacing: -.02em; }
.product__price small { color: #8ea0b2; font-size: 12.5px; }

.kb { display: flex; flex-direction: column; gap: 3px; }
.kb--row { flex-direction: row; }
.kb__btn { position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; border-radius: 10px; background: rgba(24, 37, 51, .96); font-weight: 600; font-size: 14px; color: #fff; overflow: hidden; transition: transform .16s var(--ease), background-color .2s; }
.kb__btn .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.kb__btn--go { background: var(--tg-out); }
.kb__btn.is-pressed { transform: scale(.965); background: #2c4157; }
.kb__btn--go.is-pressed { background: #356392; }
.kb__btn::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255, 255, 255, .35); opacity: 0; transform: scale(0); }
.kb__btn.is-pressed::after { animation: ripple .55s var(--ease-io); }
@keyframes ripple { from { opacity: 1; transform: scale(0); } to { opacity: 0; transform: scale(14); } }

.typing { display: inline-flex; align-items: center; gap: 4px; height: 12px; padding-inline: 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); animation: blink 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes blink { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.msg--typing .bubble { padding: 10px 12px; }

.bubble--loading { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; }
.spinner { display: inline-block; width: 15px; height: 15px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); border-top-color: var(--tg-link); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.bubble--pix { width: 228px; }
.pix__title { padding-top: 9px !important; }
.qr { position: relative; width: 156px; height: 156px; margin: 9px auto 4px; padding: 10px; border-radius: 12px; background: #fff; color: #0e1621; }
.qr__art { width: 100%; height: 100%; }
.qr__stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-16deg); padding: 2px 9px; border-radius: 6px; border: 2px solid #7c3aed; background: rgba(255, 255, 255, .88); color: #6d28d9; font: 700 20px/1.2 var(--font-m); letter-spacing: .2em; white-space: nowrap; }
.qr__paid { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; background: rgba(14, 22, 33, .86); opacity: 0; transform: scale(.94); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.qr__paid .icon { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: #34e08c; color: #05140c; stroke-width: 3; }
.bubble--pix.is-paid .qr__paid { opacity: 1; transform: none; }
.pix__code { margin-top: 4px; font-size: 12px; color: #8ea0b2; }
.pix__code code { font-family: var(--font-m); font-size: 11.5px; color: #9fd3ff; }
.pix__status { display: flex; align-items: center; gap: 8px; margin: 8px 11px 0 !important; padding: 6px 10px !important; border-radius: 8px; background: rgba(251, 191, 36, .13); color: #fde3a1; font-size: 12.5px; font-weight: 700; transition: background-color .4s, color .4s; }
.pix__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.pix__done { display: none; }
.bubble--pix.is-paid .pix__status { background: rgba(52, 224, 140, .16); color: #b9f5d6; }
.bubble--pix.is-paid .pix__status i { background: var(--green); animation: none; }
.bubble--pix.is-paid .pix__wait { display: none; }
.bubble--pix.is-paid .pix__done { display: inline; }
.pix__demo { margin-top: 7px; font-size: 11px; color: rgba(255, 255, 255, .5); }

.bubble--paid { display: flex; align-items: center; gap: 11px; width: min(100%, 246px); padding: 11px 12px 20px 11px; }
.bubble--paid > div { display: flex; flex-direction: column; line-height: 1.3; }
.bubble--paid b { color: #b9f5d6; font-size: 14.5px; }
.bubble--paid > div > span { font-size: 12.5px; color: #8ea0b2; }
.paid__icon { width: 34px; height: 34px; flex: none; }
.paid__check { width: 100%; height: 100%; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.paid__ring { stroke-dasharray: 63; stroke-dashoffset: 63; }
.paid__tick { stroke-dasharray: 20; stroke-dashoffset: 20; }
.is-shown .paid__ring { animation: dash .6s var(--ease) .1s forwards; }
.is-shown .paid__tick { animation: dash .4s var(--ease) .55s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
html:not(.js) .paid__ring, html:not(.js) .paid__tick { stroke-dashoffset: 0; }

.tg-foot { height: 58px; flex: none; padding: 8px 10px 14px; display: flex; align-items: center; background: var(--tg-head); border-top: 1px solid rgba(255, 255, 255, .05); }
.tg-foot__start { flex: 1; padding: 9px 0; text-align: center; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tg-link); font-size: 14px; border-radius: 10px; transition: background-color .2s, transform .16s; }
.tg-foot__start.is-pressed { background: rgba(106, 178, 242, .16); transform: scale(.98); }
.tg-foot__input { display: none; flex: 1; align-items: center; gap: 12px; color: #6d7f8f; font-size: 14.5px; }
.tg-foot__input span { flex: 1; }
.tg-foot__input .icon { width: 22px; height: 22px; }
.tg-foot.is-input .tg-foot__start { display: none; }
.tg-foot.is-input .tg-foot__input { display: flex; }
html:not(.js) .tg-foot__start { display: none; }
html:not(.js) .tg-foot__input { display: flex; }

.tap { position: absolute; z-index: 7; left: 0; top: 0; width: 42px; height: 42px; margin: -21px 0 0 -21px; pointer-events: none; opacity: 0; transform: translate3d(var(--x, 150px), var(--y, 560px), 0); transition: transform .75s var(--ease), opacity .3s; }
.tap.is-on { opacity: 1; }
.tap__dot { display: block; width: 100%; height: 100%; border-radius: 50%; background: rgba(255, 255, 255, .26); border: 2px solid rgba(255, 255, 255, .8); box-shadow: 0 8px 22px rgba(0, 0, 0, .45); transition: transform .14s var(--ease), background-color .14s; }
.tap.is-down .tap__dot { transform: scale(.72); background: rgba(255, 255, 255, .5); }

/* ---------- Painel administrativo ---------- */
.panel { grid-area: panel; position: relative; width: 100%; max-width: 340px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 50px 90px -40px #000, 0 0 0 1px rgba(255, 255, 255, .03) inset; overflow: hidden; font-size: 12.5px; line-height: 1.35; transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s; }
.stage[data-idle] .panel { opacity: .34; transform: translateY(14px) scale(.975); filter: saturate(.5); }
.panel__chrome { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--ink-1); }
.panel__chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-4); }
.panel__chrome span { margin-left: 8px; flex: 1; padding: 3px 10px; border-radius: 6px; background: var(--ink-3); color: var(--tx-3); font: 11px/1.3 var(--font-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel__content { display: grid; grid-template-columns: 42px minmax(0, 1fr); }
.panel__nav { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; border-right: 1px solid var(--line); background: var(--ink-1); }
.panel__nav .icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; color: var(--tx-3); }
.panel__nav .icon.is-active { color: var(--violet-l); background: rgba(139, 92, 246, .18); }
.panel__main { padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel__title strong { font-family: var(--font-d); font-size: 15px; letter-spacing: -.01em; }
.panel__live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: var(--tx-3); text-transform: uppercase; letter-spacing: .08em; }
.panel__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.kpis { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; }
.kpi { padding: 10px 12px; border-radius: 12px; background: var(--ink-1); border: 1px solid var(--line); transition: border-color .4s, box-shadow .4s; }
.kpi span { display: block; font-size: 11px; color: var(--tx-3); }
.kpi strong { display: block; font-family: var(--font-d); font-size: 21px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.kpi.is-flash { border-color: rgba(52, 224, 140, .6); box-shadow: 0 0 0 3px rgba(52, 224, 140, .12); }
.kpi.is-flash strong { color: #b9f5d6; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.bars i { flex: 1; height: 100%; border-radius: 4px 4px 1px 1px; background: rgba(139, 92, 246, .5); transform-origin: bottom; transform: scaleY(var(--s, .5)); transition: transform .9s var(--ease), background-color .5s; }
.bars i.is-today { background: var(--cyan); }
.bars i.is-up { background: var(--green); }
.bars__legend { display: flex; justify-content: space-between; margin-top: -6px; font-size: 10px; color: var(--tx-3); font-family: var(--font-m); text-transform: uppercase; letter-spacing: .08em; }
.orders { display: flex; flex-direction: column; }
.order { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.order__av { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-4); color: var(--violet-l); font-weight: 700; font-size: 12px; }
.order__who { display: flex; flex-direction: column; min-width: 0; }
.order__who b { font-size: 12.5px; }
.order__who small { color: var(--tx-3); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order__val { display: flex; flex-direction: column; align-items: flex-end; }
.order__val b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.order__val em { font-style: normal; font-size: 10.5px; color: var(--green); }
.order--new:not(.is-shown) { display: none; }
.order--new.is-shown { margin-inline: -8px; padding-inline: 8px; border-radius: 10px; background: linear-gradient(90deg, rgba(52, 224, 140, .14), transparent 90%); animation: orderIn .7s var(--ease) both; }
@keyframes orderIn { from { opacity: 0; transform: translate3d(0, -10px, 0); } to { opacity: 1; transform: none; } }
.toast { position: absolute; left: 54px; right: 12px; top: 46px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #0b2a1c; border: 1px solid rgba(52, 224, 140, .5); box-shadow: 0 16px 32px -14px #000; color: #d6fbe8; opacity: 0; transform: translate3d(0, -14px, 0) scale(.97); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }
.toast .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--green); color: #05140c; stroke-width: 2.6; }
.toast span { display: flex; flex-direction: column; line-height: 1.25; }
.toast b { font-size: 12.5px; }
.toast small { font-size: 11px; color: #9fd9bb; }

.stage__link { grid-area: link; display: none; }

/* ---------- Modo hero ---------- */
.stage--hero .panel { display: none; }
.stage--hero { --phone-w: 296px; --phone-h: 580px; grid-template-areas: 'device'; }
.hero__scene { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; font: 500 12px/1.3 var(--font-m); letter-spacing: .08em; text-transform: uppercase; color: var(--tx-2); }
.hero__scene [data-scene-n] { color: var(--violet-l); }
@media (min-width: 1024px) {
    .stage--hero { display: block; height: 660px; }
    .stage--hero .stage__device { position: absolute; left: 0; top: 0; width: var(--phone-w); }
    .stage--hero .panel { display: block; position: absolute; right: 0; bottom: 78px; width: 304px; max-width: none; z-index: 3; transform: translate3d(0, 0, 0); }
    .stage--hero[data-idle] .panel { transform: translateY(14px) scale(.975); }
    .hero__scene { margin-top: 0; position: absolute; right: 0; bottom: 20px; width: 290px; justify-content: flex-start; }
    .phone { --ry: -9deg; --rx: 3deg; }
    .stage--hero .phone { --ry: -11deg; --rx: 4deg; }
}

/* ---------- Modo completo ---------- */
.stage--full .stage__link { display: none; }
@media (min-width: 1024px) {
    .stage--full { --phone-w: 296px; --phone-h: 600px; grid-template-columns: auto 48px minmax(0, 330px); grid-template-areas: 'device link panel'; align-items: center; }
    .stage--full .stage__device { width: var(--phone-w); }
    .stage--full .stage__link { display: block; position: relative; width: 48px; height: 2px; background: var(--line-2); }
    .stage--full .stage__link i { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); opacity: 0; }
    .stage--full[data-link-on] .stage__link { background: rgba(52, 224, 140, .5); transition: background-color .5s; }
    .stage--full[data-link-on] .stage__link i { animation: travel 1.1s var(--ease-io) 3; }
    .stage--full .panel { max-width: none; }
}
@keyframes travel { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(40px); } }
@media (max-width: 1023px) {
    .stage--full { --phone-w: 330px; --phone-h: 580px; }
    .phone { --ry: 0deg; --rx: 0deg; }
}
@media (max-width: 380px) { .stage { --phone-h: 560px; } }

@media (prefers-reduced-motion: reduce) {
    .phone { transition: none; }
    .tap { display: none; }
}

/* Salto instantâneo (ir para uma etapa / estado final) */
.stage.is-fast *, .stage.is-fast *::before, .stage.is-fast *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }

/* Entrada do celular: só esconde se o JS estiver rodando (e libera mesmo se falhar) */
@media (prefers-reduced-motion: no-preference) {
    .js .stage__device { transition: opacity 1s var(--ease), transform 1s var(--ease); }
    .js .stage:not(.is-ready) .stage__device { opacity: 0; transform: translate3d(0, 28px, 0); }
}

.hero__replay { margin-left: 4px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--tx-2); transition: color .2s, border-color .2s, transform .4s var(--ease); }
.hero__replay:hover { color: #fff; border-color: rgba(255, 255, 255, .4); transform: rotate(-90deg); }
.hero__replay .icon { width: 15px; height: 15px; }
