/* ==========================================================================
   PRADOK — MOTION DESIGN
   Camada de movimento, discreta e funcional. Carregada depois de styles.css.
   O botão "Reduzir animações" do rodapé liga o modo calmo (classe .calm no <html>).
   ========================================================================== */
.footer__right { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.calm-toggle { background: none; border: 1px solid var(--line-2); color: var(--gray); border-radius: 99px; padding: 5px 12px; font-size: .75rem; cursor: pointer; }
.calm-toggle:hover { color: var(--ink); border-color: var(--gray-2); }
@keyframes blurUp { from { opacity: 0; translate: 0 24px; filter: blur(10px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes stageIn { from { opacity: 0; translate: 0 80px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes riseIn { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes slideIn { from { opacity: 0; translate: -16px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes popIn { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes tagDrop { 0% { opacity: 0; translate: 0 -120px; rotate: -24deg; } 60% { opacity: 1; translate: 0 8px; rotate: 3deg; } 100% { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes coreSpin { 0% { transform: rotate(-90deg) scale(0); } 70% { transform: rotate(12deg) scale(1.25); } 100% { transform: rotate(0) scale(1); } }
@keyframes printOut { 0% { translate: 0 -55%; clip-path: inset(55% 0 0 0 round 10px); } 100% { translate: 0 0; clip-path: inset(0 0 0 0 round 10px); } }
@keyframes scanRing { 0% { opacity: .95; scale: .82; } 100% { opacity: 0; scale: 1.28; } }
@keyframes ring { from { opacity: .8; transform: translate(-50%, -50%) scale(.6); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }
@keyframes routeDash { to { stroke-dashoffset: 0; } }
@keyframes dotRun { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes glowPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Títulos palavra por palavra ---------- */
.is-split.rv { opacity: 1; transform: none; }
.is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .05em .26em; margin: 0 -.05em -.26em; }
.is-split .wi { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.05s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.is-split.in .wi { transform: none; }
/* palavras com gradiente: o gradiente fica na palavra, não no bloco */
.is-split .grad, .is-split .grad--light { background: none; }
/* o gradiente só pinta dentro da caixa da palavra: ela ganha folga embaixo para não cortar g, p, q, y */
.is-split .grad .wi, .is-split .grad--light .wi { padding-bottom: .26em; margin-bottom: -.26em; }
.is-split .grad .wi { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.is-split .grad--light .wi { background: linear-gradient(90deg, #8ab4ff 0%, var(--teal-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Rótulo da seção: o núcleo gira para dentro */
.over .core { transform: scale(0); }
.over.in .core { animation: coreSpin .9s var(--spring) .15s both; }

/* ---------- Hero ---------- */
.hero__copy, .stage, .trust { position: relative; z-index: 2; }
.hero__copy .rv:not(.is-split) { filter: blur(10px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.hero__copy .rv.in { filter: blur(0); }

/* Palco: entra em camadas */
.stage.rv { opacity: 1; transform: none; }
.stage .stage__photo { opacity: 0; }
.stage.is-live .stage__photo { animation: stageIn 1.4s var(--ease) .2s both; }
.stage__ui > * { opacity: 0; }
.stage.is-live .stage__win { animation: blurUp 1.1s var(--ease) .75s both; }
.stage.is-live .stage__phone { animation: blurUp 1.1s var(--ease) 1s both; }
.stage.is-live .stage__caption { animation: riseIn .9s var(--ease) 2.2s both; }
.stage.is-live .stage__tag { opacity: 1; }
.stage__tag .tag { opacity: 0; }
.stage.is-live .stage__tag .tag { animation: tagDrop 1.2s var(--spring) 1.6s both; }
.stage.is-live .stage__tag .tag__qr { animation: bob 6s ease-in-out 3s infinite; }
/* Interior do painel ganha vida em cascata */
.stage.is-live .stage__win .ui-item, .stage.is-live .stage__win .ui-sec { animation: slideIn .6s var(--ease) both; animation-delay: calc(1.1s + var(--n, 0) * 60ms); }
.stage.is-live .stage__win .ui-head { animation: riseIn .8s var(--ease) 1.05s both; }
.stage.is-live .stage__win .ui-kpi { animation: popIn .8s var(--spring) both; animation-delay: calc(1.25s + var(--n, 0) * 110ms); }
.stage.is-live .stage__win .ui-card { animation: riseIn .9s var(--ease) 1.7s both; }
.stage.is-live .stage__phone .an-bar, .stage.is-live .stage__phone .an-scan, .stage.is-live .stage__phone .an-progress { animation: riseIn .8s var(--ease) both; animation-delay: calc(1.35s + var(--n, 0) * 120ms); }
.stage__photo img { will-change: transform; }


/* ---------- Jornada do volume (rolagem fixa) ---------- */
.journey { position: relative; height: 500vh; background: linear-gradient(180deg, var(--paper) 0%, var(--soft) 22%, var(--soft) 78%, var(--paper) 100%); }
.journey__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.journey__pin > .wrap { display: flex; flex-direction: column; gap: clamp(20px, 4vh, 44px); }
.journey__head { text-align: center; }
.journey__head h2 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); }
.journey__head .lead { margin: 16px auto 0; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.jr-stage { --jp: 0; position: relative; padding: 130px 40px 84px; }
.jr-track { position: relative; height: 6px; border-radius: 99px; background: #dde4f0; }
.jr-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--jp) * 100%); border-radius: inherit; background: var(--grad); box-shadow: 0 0 18px rgba(34, 148, 199, .45); }
.jr-stops { position: absolute; left: 40px; right: 40px; top: 130px; display: flex; justify-content: space-between; }
.jr-stop { position: relative; width: 0; display: flex; flex-direction: column; align-items: center; }
.jr-stop__dot { width: 46px; height: 46px; margin-top: -20px; border-radius: 15px; background: #fff; color: var(--gray-2); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line-2), 0 8px 20px -10px rgba(0, 0, 0, .3); transition: background-color .45s var(--ease), color .45s, box-shadow .45s, transform .45s var(--spring); flex: none; }
.jr-stop__dot svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.jr-stop__t { margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: -0.015em; white-space: nowrap; color: var(--gray); transition: color .3s; }
.jr-stop.done .jr-stop__dot { background: var(--ink); color: #fff; box-shadow: none; }
.jr-stop.now .jr-stop__dot { background: linear-gradient(145deg, var(--teal-2), var(--teal)); color: #fff; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(34, 148, 199, .18), 0 12px 30px -8px rgba(26, 124, 169, .7); }
.jr-stop.done .jr-stop__t, .jr-stop.now .jr-stop__t { color: var(--ink); }
.jr-box { position: absolute; top: 0; left: calc(40px + var(--jp) * (100% - 80px)); width: 132px; margin-left: -66px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.jr-chip { height: 28px; padding: 0 12px; border-radius: 99px; font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: #fff; color: var(--c, var(--blue)); box-shadow: 0 0 0 1px var(--line), 0 8px 18px -10px rgba(0, 0, 0, .35); transition: color .3s; }
.jr-chip::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.jr-chip.swap { animation: popIn .45s var(--spring); }
.cbox { position: relative; width: 112px; height: 78px; border-radius: 9px; background: linear-gradient(180deg, #dcbb85 0%, #cfa66a 100%); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .06), 0 18px 30px -16px rgba(80, 50, 10, .6); transform: translateY(var(--bob, 0px)) rotate(var(--tilt, 0deg)); transform-origin: 50% 100%; }
.cbox::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; border-radius: 9px 9px 0 0; background: rgba(0, 0, 0, .07); }
.cbox::after { content: ""; position: absolute; left: 50%; top: 0; width: 18px; margin-left: -9px; height: 14px; background: rgba(255, 255, 255, .35); }
.cbox__label { position: absolute; left: 50%; top: 22px; width: 58px; margin-left: -29px; padding: 4px; border-radius: 5px; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.cbox__label > div { width: 30px; }
.cbox__label b { font-family: var(--mono); font-size: 7px; font-weight: 700; color: var(--ink); }
.jr-shadow { width: 90px; height: 10px; margin-top: -6px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .22), transparent); transform: scaleX(calc(1 - var(--lift, 0) * .3)); }
.jr-scan { position: absolute; left: 50%; top: 32px; width: 132px; height: 92px; margin-left: -66px; border-radius: 16px; pointer-events: none; opacity: 0; box-shadow: 0 0 0 2px var(--teal-3), 0 0 30px rgba(95, 196, 236, .6); }
.jr-scan.go { animation: scanRing .8s var(--ease) both; }
.jr-bottom { display: block; max-width: 760px; margin: 0 auto; width: 100%; text-align: center; }
.jr-caps { position: relative; min-height: 132px; }
.jr-cap { position: absolute; inset: 0; opacity: 0; translate: 0 14px; transition: opacity .5s var(--ease), translate .6s var(--ease); }
.jr-cap.on { opacity: 1; translate: 0 0; }
.jr-cap b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; }
.jr-cap p { color: var(--gray); margin: 10px auto 0; font-size: 1.06rem; max-width: 620px; }

/* ---------- Revelação das fotos ---------- */
.photo.rv, .who-card.rv { transform: none; clip-path: inset(10% 6% 10% 6% round var(--r)); transition: opacity 1s var(--ease), clip-path 1.3s var(--ease); transition-delay: var(--d, 0s); }
.photo.rv.in, .who-card.rv.in { clip-path: inset(0 0 0 0 round var(--r)); }
.photo.rv img, .who-card.rv img { scale: 1.18; transition: scale 1.8s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.photo.rv.in img, .who-card.rv.in img { scale: 1; }

.feat-d { position: relative; }

.link-arrow .ico { transition: transform .35s var(--spring); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Etiquetas: a folha sai da impressora ---------- */
.printer { position: relative; z-index: 3; height: 34px; margin: 0 -14px -14px; border-radius: 16px 16px 10px 10px; background: linear-gradient(180deg, #24304b, #0c1428); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .8); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.printer::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 8px; height: 4px; border-radius: 4px; background: #05080f; }
.printer i { width: 7px; height: 7px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 8px #3ee08f; }
.printer span { font-size: 10px; font-weight: 700; letter-spacing: .2em; color: rgba(255, 255, 255, .45); }
.printer.busy i { animation: glowPulse .4s infinite; background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.sheet-wrap.rv { transform: none; }
.sheet-wrap .sheet { translate: 0 -55%; clip-path: inset(55% 0 0 0 round 10px); }
.sheet-wrap.in .sheet { animation: printOut 1.6s cubic-bezier(.6, 0, .2, 1) .3s both; }
.sheet.reprint { animation: printOut 1.1s cubic-bezier(.6, 0, .2, 1) both !important; }

/* ---------- App: palco escuro que se abre ---------- */
.app-sec { clip-path: inset(0 calc(var(--ci, 0) * 1px) round calc(var(--cr, 0) * 1px)); }
.app-device .phone, .app-device .rugged { transform: perspective(1400px) rotateX(calc(var(--ar, 0) * 18deg)) translateY(calc(var(--ar, 0) * 50px)); transform-origin: 50% 100%; }
.app-device::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(37, 99, 235, .35), transparent); filter: blur(20px); animation: glowPulse 5s ease-in-out infinite; pointer-events: none; }
.scan-ring { position: absolute; left: 50%; top: 38%; width: 260px; height: 260px; border-radius: 34%; border: 2px solid var(--teal-3); pointer-events: none; animation: ring .8s var(--ease) forwards; z-index: 3; }

/* ---------- Armazém: rota até a caixa ---------- */
.wh-route { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 3; }
.wh-route path { fill: none; stroke: var(--teal-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(34, 148, 199, .6)); animation: routeDash 1.1s var(--ease) forwards; }
.wh-route .runner { position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 4px; background: var(--ink); box-shadow: 0 0 0 3px #fff; offset-rotate: 0deg; animation: dotRun 1.1s var(--ease) forwards; }
.wh-result.swap code { animation: blurUp .6s var(--ease); }
.wh-result.swap .wh-path div { animation: riseIn .5s var(--ease) both; }
.wh-result.swap .wh-path div:nth-child(2) { animation-delay: .06s; }
.wh-result.swap .wh-path div:nth-child(3) { animation-delay: .12s; }
.wh-result.swap .wh-path div:nth-child(4) { animation-delay: .18s; }
.wh-floor .aisle { transition: opacity .5s; }

/* ---------- Assinatura: comprovante emitido ---------- */
@keyframes receiptIn { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-6px) scale(1.015); } 100% { transform: translateY(0) scale(1); } }
.receipt.stamp { animation: receiptIn .7s var(--spring); box-shadow: 0 0 0 2px rgba(15, 169, 104, .35), 0 40px 80px -40px rgba(15, 169, 104, .55); }
.receipt.stamp .receipt__sig img { animation: blurUp .6s var(--ease); }

/* ---------- Checklist ---------- */
.qa-card { transition: box-shadow .5s var(--ease); }
.qa-card.done { box-shadow: 0 0 0 2px rgba(15, 169, 104, .35), 0 30px 60px -40px rgba(15, 169, 104, .6); }

/* ---------- Status: níveis ---------- */
.lvl__ico { transition: transform .5s var(--spring), background-color .3s, color .3s; }
.lvl[aria-selected="true"] .lvl__ico { background: var(--blue); color: #fff; transform: rotate(-8deg) scale(1.06); }

/* ---------- Cascata genérica ---------- */
.stagger > * { opacity: 0; translate: 0 22px; transition: opacity .8s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--n, 0) * 70ms); }
.stagger.in > * { opacity: 1; translate: 0 0; }
.ui-kpi b, .tile__big { font-variant-numeric: tabular-nums; }

/* ---------- FAQ com altura animada ---------- */
.faq details { overflow: hidden; }
.faq summary { transition: color .25s, padding-left .35s var(--ease); }
.faq summary:hover { color: var(--blue); padding-left: 6px; }

/* ---------- Contato ---------- */
.contact__icon.in { animation: coreSpin 1s var(--spring) .1s both; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .journey { height: 440vh; }
  .jr-stage { padding: 120px 18px 56px; }
  .jr-stops { left: 18px; right: 18px; top: 120px; }
  .jr-box { left: calc(18px + var(--jp) * (100% - 36px)); }
  .jr-stop__dot { width: 36px; height: 36px; margin-top: -15px; border-radius: 12px; }
  .jr-stop__dot svg { width: 18px; height: 18px; }
  .jr-stop__t { font-size: .72rem; }
  .jr-stop:not(.now) .jr-stop__t { opacity: 0; }
  .jr-caps { min-height: 170px; }
  .cbox { width: 92px; height: 64px; }
  .cbox__label { top: 18px; width: 48px; margin-left: -24px; }
  .cbox__label > div { width: 24px; }
  .journey__head .lead { display: none; }
}

/* ---------- Movimento reduzido: tudo parado e visível ---------- */
/* Modo calmo (botão "Reduzir animações" no rodapé) */
.calm .is-split .wi { transform: none !important; }
.calm .stage .stage__photo, .calm .stage__ui > *, .calm .stage__tag .tag { opacity: 1 !important; animation: none !important; }
.calm .photo.rv, .calm .who-card.rv { clip-path: none; }
.calm .photo.rv img, .calm .who-card.rv img { scale: 1; }
.calm .sheet-wrap .sheet { translate: 0 0; clip-path: none; }
.calm .stagger > * { opacity: 1; translate: 0 0; }
.calm .over .core { transform: none; }
.calm .hero__copy .rv { filter: none !important; }
.calm .app-sec { clip-path: none; }
.calm .app-device .phone, .calm .app-device .rugged { transform: none; }
