/* Home, rodada 4 do feedback do Carlos (27/11, iPhone em produção). Por cima do v3/r3. Movimento em r4.js.
   1/2 Hermes: a frase menor embaixo da linha · 4 Apple Pay na grade · 5 "Mais receita" com telas vivas
   · 6 vitrine do checkout que gira (Expresso → Espelho Stripe → Monte o seu).
   Base preto e branco; cor só em status (verde = pago). Vidro só no controle que flutua (as abas da vitrine).
   Com "reduzir movimento" ou "Pausar animações": tudo parado, no estado final. */

/* ---------- 2. Hermes: a frase menor, logo abaixo de "Unimos os negócios digitais do Brasil à Europa." ---------- */
.hm__lines { max-width: 640px; }
.hm__sub { margin: 14px 0 0; max-width: 44ch; font: 400 clamp(14px, 1.15vw, 17px)/1.45 var(--text); color: rgba(255, 255, 255, .68); text-wrap: pretty; }
/* no 3D quem aparece e some é o bloco inteiro (o hermes.js anima .hm__lines) */
.hm.is-3d .hm__lines { opacity: 0; will-change: opacity, transform; }
.hm.is-3d .hm__lines .hm__line { opacity: 1; will-change: auto; }
@media (max-width: 640px), (max-aspect-ratio: 9/10) {
  .hm__lines { margin: 0 auto; text-align: center; }
  .hm__sub { margin: 10px auto 0; max-width: 32ch; font-size: 14px; }
}
/* a frase do prisma ficou mais longa (texto do Carlos): mais largura no celular */
@media (max-width: 768px) {
  .r3-pr__t { font-size: 23px; max-width: 19ch; }
  .r3-pr__s { max-width: 34ch; }
}

/* ---------- 4. Apple Pay (8.ª placa, 4 + 4) ---------- */
.pay__plate--apple img { height: 30px; width: auto; }
@media (max-width: 760px) { .pay__plate--apple img { height: 24px; } }

/* ---------- 6. a vitrine do checkout: gira entre os três; para com o mouse em cima ---------- */
.r4-cs { position: absolute; inset: 0; }
.r4-cs .tc__phone { top: 22px; bottom: 74px; }
.xp__vis--phone .r4-cs .tc__phone { top: 28px; bottom: 84px; }
.r4-cs__scr { position: relative; display: block; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: #fff; }
.r4-cs .tc__phone .r4-cs__i { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: 0; background: #fff;
  opacity: 0; transform: translateY(14px) scale(1.035); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); }
.r4-cs .tc__phone .r4-cs__i.is-on { opacity: 1; transform: none; filter: none; }
/* "Monte o seu": no meio do tempo, o painel troca de Checkout Uneway para Stripe espelho */
.r4-cs.is-auto[data-k="2"] .r4-cs__i[data-sub].is-on { animation: r4Sub var(--dur, 5.2s) linear both; }
.r4-cs.is-paused .r4-cs__i[data-sub], .r4-cs.is-paused .r4-cs__tabs i { animation-play-state: paused !important; }
@keyframes r4Sub { 0%, 48% { opacity: 0; } 56%, 100% { opacity: 1; } }

/* as abas: controle que flutua sobre a vitrine = vidro (regra do liquid glass); a escolhida é a pílula branca */
.r4-cs__tabs { position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 999px; white-space: nowrap;
  background: rgba(28, 29, 34, .55); border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 34px -16px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.xp__vis--phone .r4-cs__tabs { bottom: 24px; }
.r4-cs__tabs button { position: relative; overflow: hidden; height: 34px; padding: 0 14px; border-radius: 999px; font: 500 12.5px/1 var(--text); color: rgba(255, 255, 255, .72); cursor: pointer;
  transition: background .35s var(--ease), color .35s; }
.r4-cs__tabs button:hover { color: #fff; }
.r4-cs__tabs button[aria-pressed="true"] { background: #fff; color: #0B0C0E; }
.r4-cs__tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* o tempo de cada tela: um fio que corre por baixo da palavra */
.r4-cs__tabs i { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; border-radius: 2px; background: rgba(11, 12, 14, .5); transform: scaleX(0); transform-origin: 0 50%; }
.r4-cs.is-auto .r4-cs__tabs button[aria-pressed="true"] i { animation: r4Prog var(--dur, 5.2s) linear both; }
@keyframes r4Prog { to { transform: scaleX(1); } }
/* os selos do checkout não encostam nas abas */
.r4-csw .ck__f--3 { bottom: 30%; }
.r4-csw .ck__f--4 { bottom: 92px; }
@media (max-width: 600px) {
  .r4-cs__tabs button { padding: 0 11px; font-size: 12px; height: 32px; }
  .r4-csw .ck__f--4 { bottom: 86px; }
}

/* ---------- 5. "Mais receita em cada cliente": telas vivas ---------- */
.r4-bento { grid-auto-flow: row dense; }
.bcell--3 { grid-column: span 3; }
.r4-c { gap: 8px; }
.r4-c h3 { font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -.02em; }
.r4-c > p { max-width: 40ch; }
.r4-c svg { flex: none; }
/* telas dentro do vidro = sólidas (sem vidro sobre vidro) */
.r4-bump, .r4-sub, .r4-fn, .r4-cup__t, .r4-cup__use, .r4-trk { margin-top: auto; border-radius: 18px; background: #fff; border: 1px solid rgba(11, 12, 14, .07);
  box-shadow: 0 1px 2px rgba(11, 12, 14, .05), 0 18px 36px -22px rgba(11, 12, 14, .35); color: #0B0C0E; font-size: 13px; }
.r4-c .r4-ok, .r4-tl i, .r4-bump__ck, .r4-ab__win { display: inline-grid; place-items: center; }
.r4-c i svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* order bump: um mini checkout; a caixa se marca e o total sobe */
.r4-bump { padding: 14px; display: grid; gap: 10px; margin-top: 14px; }
.r4-bump__row, .r4-bump__tot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.r4-bump__row span { color: #4A4D55; }
.r4-bump__box { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 11px; border-radius: 12px; border: 1.5px dashed rgba(11, 12, 14, .28); transition: border-color .4s, background .4s; }
.r4-bump__box b { display: block; font: 500 13px/1.25 var(--display); }
.r4-bump__box small { display: block; margin-top: 2px; font-size: 11.5px; color: #5A5D65; }
.r4-bump__box em { font-style: normal; font-weight: 600; }
.r4-bump__ck { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px rgba(11, 12, 14, .35); color: transparent; transition: background .3s, color .3s, box-shadow .3s; }
.r4-bump__tot { padding-top: 10px; border-top: 1px solid rgba(11, 12, 14, .08); }
.r4-bump__tot b { font: 600 16px/1 var(--display); }
.r4-swap { position: relative; display: inline-grid; overflow: hidden; height: 1.15em; }
.r4-swap > span { grid-area: 1 / 1; transition: transform .5s var(--ease), opacity .4s; }
.r4-swap > span:last-child { transform: translateY(100%); opacity: 0; }
.r4-bump.is-on .r4-bump__box { border-style: solid; border-color: #0B0C0E; background: #F6F6F4; }
.r4-bump.is-on .r4-bump__ck { background: #0B0C0E; color: #fff; box-shadow: none; }
.r4-bump.is-on .r4-swap > span:first-child { transform: translateY(-100%); opacity: 0; }
.r4-bump.is-on .r4-swap > span:last-child { transform: none; opacity: 1; }

/* assinaturas: receita recorrente subindo + a linha do tempo das renovações */
.r4-sub { padding: 16px 16px 14px; display: grid; gap: 12px; margin-top: 14px; }
.r4-sub__top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.r4-sub__k { width: 100%; font-size: 11.5px; color: #5A5D65; }
.r4-sub__v { font: 500 clamp(24px, 2.2vw, 30px)/1 var(--display); letter-spacing: -.03em; }
.r4-sub__v small { margin-left: 3px; font: 400 13px var(--text); letter-spacing: 0; color: #5A5D65; }
.r4-up { padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #EEF0F2; color: #0B0C0E; }
.r4-sub__ch { width: 100%; height: 78px; display: block; overflow: visible; }
.js .r4-c--sub:not(.is-in) .r4-sub__ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .r4-c--sub .r4-sub__ln { stroke-dasharray: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.6, .05, .2, 1); }
.js .r4-c--sub:not(.is-in) .r4-sub__ar, .js .r4-c--sub:not(.is-in) .r4-sub__pt { opacity: 0; }
.js .r4-c--sub .r4-sub__ar { transition: opacity 1s ease .9s; } .js .r4-c--sub .r4-sub__pt { transition: opacity .4s ease 1.7s; }
.r4-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.r4-tl::before { content: ""; position: absolute; left: 11px; right: 12%; top: 11px; height: 1.5px; background: linear-gradient(90deg, #0B0C0E 72%, rgba(11, 12, 14, .18) 72%); }
.r4-tl li { position: relative; display: grid; gap: 2px; justify-items: start; }
.r4-tl i { width: 23px; height: 23px; border-radius: 50%; margin-bottom: 6px; background: #1FB66E; color: #fff; box-shadow: 0 0 0 3px #fff; }
.r4-tl b { font: 500 13px/1 var(--display); }
.r4-tl span { font-size: 11px; line-height: 1.25; color: #5A5D65; }
.r4-tl .is-paid span { color: #127A48; font-weight: 500; }
.r4-tl .is-next i { background: #fff; box-shadow: 0 0 0 3px #fff, inset 0 0 0 1.5px #0B0C0E; }
.r4-tl .is-next i::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0B0C0E; }
html:not(.is-still) .r4-c--sub.is-in .r4-tl .is-next i::after { animation: r4Beat 1.8s ease-in-out infinite; }
@keyframes r4Beat { 50% { transform: scale(.55); opacity: .5; } }
.js .r4-c--sub:not(.is-in) .r4-tl li { opacity: 0; transform: translateY(6px); }
.js .r4-c--sub .r4-tl li { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .r4-c--sub .r4-tl li:nth-child(2) { transition-delay: .25s; } .js .r4-c--sub .r4-tl li:nth-child(3) { transition-delay: .5s; } .js .r4-c--sub .r4-tl li:nth-child(4) { transition-delay: .75s; }
.r4-sub__foot { display: flex; flex-wrap: wrap; gap: 6px; }
.r4-sub__foot span { padding: 5px 9px; border-radius: 999px; background: #F2F2F0; font-size: 11px; color: #3A3D44; }

/* funil + teste A/B */
.r4-fn { padding: 16px; display: grid; gap: 14px; margin-top: 14px; }
.r4-fn__st { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.r4-fn__st li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 32px; padding: 0 12px; border-radius: 9px; overflow: hidden; isolation: isolate; font-size: 12.5px; }
.r4-fn__st li::before { content: ""; position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 9px; background: #0B0C0E; opacity: .09; transform-origin: 0 50%; transition: transform 1.1s cubic-bezier(.6, .05, .2, 1); }
/* o último passo é "pagou": status, então verde (com a palavra junto) */
.r4-fn__st li:last-child::before { background: #1FB66E; opacity: .24; }
.r4-fn__st li:last-child b { color: #127A48; }
.r4-fn__st b { font-weight: 600; font-variant-numeric: tabular-nums; }
.js .r4-c--ab:not(.is-in) .r4-fn__st li::before { transform: scaleX(0); }
.js .r4-c--ab .r4-fn__st li:nth-child(2)::before { transition-delay: .15s; } .js .r4-c--ab .r4-fn__st li:nth-child(3)::before { transition-delay: .3s; } .js .r4-c--ab .r4-fn__st li:nth-child(4)::before { transition-delay: .45s; }
.r4-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.r4-ab__v { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid rgba(11, 12, 14, .1); }
.r4-ab__v--a { border-color: #0B0C0E; box-shadow: inset 0 0 0 1px #0B0C0E; }
.r4-ab__th { display: grid; gap: 3px; padding: 6px 5px; height: 58px; border-radius: 8px; background: #F2F2F0; align-content: start; }
.r4-ab__th i { display: block; height: 4px; border-radius: 2px; background: rgba(11, 12, 14, .18); }
.r4-ab__th i.is-m { height: 8px; background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 12, 14, .2); }
.r4-ab__th i.is-w { height: 10px; background: #0B0C0E; }
.r4-ab__th i.is-b { margin-top: auto; height: 7px; background: #0B0C0E; }
.r4-ab__th--b { grid-template-columns: 1fr; background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 12, 14, .12); }
.r4-ab__l b { display: block; font: 500 12.5px/1.2 var(--display); }
.r4-ab__l em { display: block; margin-top: 3px; font: 600 18px/1 var(--display); font-style: normal; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.r4-ab__v--b .r4-ab__l em { color: #5A5D65; }
.r4-ab__win { position: absolute; top: -9px; right: 8px; gap: 4px; grid-auto-flow: column; padding: 3px 8px 3px 6px; border-radius: 999px; background: #0B0C0E; color: #fff; font-size: 10.5px; font-weight: 600; }
.r4-ab__win svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.js .r4-c--ab:not(.is-in) .r4-ab__win { opacity: 0; transform: scale(.6); }
.js .r4-c--ab .r4-ab__win { transition: opacity .4s var(--ease) 1.3s, transform .5s cubic-bezier(.3, 1.5, .5, 1) 1.3s; }

/* cupons: o cupom de verdade (picote) e os usos contando */
.r4-cup { margin-top: auto; display: grid; gap: 8px; padding-top: 14px; }
.r4-cup__t { position: relative; margin: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 14px 16px 14px 18px; background: #0B0C0E; color: #fff; border-color: #0B0C0E; overflow: hidden;
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.r4-cup__code { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; padding: 6px 8px; border-radius: 7px; border: 1px dashed rgba(255, 255, 255, .45); justify-self: start; }
.r4-cup__t b { grid-row: span 2; font: 500 30px/1 var(--display); letter-spacing: -.03em; }
.r4-cup__t small { font-size: 11px; color: rgba(255, 255, 255, .6); }
.r4-cup__t::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-120%); }
html:not(.is-still) .r4-c--cup.is-in .r4-cup__t::after { animation: r4Shine 4.5s ease-in-out 1s infinite; }
@keyframes r4Shine { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }
.r4-cup__use { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; padding: 12px 14px; }
.r4-cup__use > span { color: #5A5D65; font-size: 12px; }
.r4-cup__use b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.r4-cup__use > i { grid-column: 1 / -1; display: block; height: 5px; border-radius: 5px; background: #EEEEEC; overflow: hidden; }
.r4-cup__use > i > i { display: block; height: 100%; width: 38%; border-radius: inherit; background: #0B0C0E; transform-origin: 0 50%; transition: transform 1.4s cubic-bezier(.6, .05, .2, 1); }
.js .r4-c--cup:not(.is-in) .r4-cup__use > i > i { transform: scaleX(0); }

/* rastreamento: as vendas chegando com a origem + o peso de cada origem */
.r4-trk { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-top: 14px; overflow: hidden; }
.r4-trk__feed { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; align-content: start; border-right: 1px solid rgba(11, 12, 14, .07); }
.r4-trk__feed li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; }
.r4-trk__feed li:first-child { background: #F6F6F4; }
.r4-trk__feed b { display: block; font: 500 13px/1.2 var(--display); }
.r4-trk__feed small { display: block; margin-top: 2px; font-size: 11.5px; color: #5A5D65; }
.r4-trk__feed em { font-style: normal; font-size: 11px; color: #5A5D65; white-space: nowrap; }
.r4-ok { width: 26px; height: 26px; border-radius: 50%; background: #E6F6EE; color: #127A48; }
.r4-trk__src { padding: 16px; display: grid; gap: 12px; align-content: start; }
.r4-trk__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: #5A5D65; }
.r4-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: #0B0C0E; white-space: nowrap; }
.r4-live > i { width: 7px; height: 7px; border-radius: 50%; background: #1FB66E; }
html:not(.is-still) .r4-live > i { animation: dotPulse 2s ease-out infinite; }
.r4-bar { display: grid; grid-template-columns: 70px 1fr 34px; gap: 10px; align-items: center; font-size: 12.5px; }
.r4-bar > i { display: block; height: 8px; border-radius: 8px; background: #EEEEEC; overflow: hidden; }
.r4-bar > i > i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #0B0C0E; transform-origin: 0 50%; transition: transform 1.2s cubic-bezier(.6, .05, .2, 1); }
.r4-bar:nth-of-type(3) > i > i { background: #5A5D65; } .r4-bar:nth-of-type(4) > i > i { background: #9A9CA2; }
.r4-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.js .r4-c--trk:not(.is-in) .r4-bar > i > i { transform: scaleX(0); }
.r4-trk__feed li.is-new { animation: r4New .7s var(--ease) both; }
@keyframes r4New { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .bcell--3 { grid-column: span 2; }
}
@media (max-width: 760px) {
  .r4-trk { grid-template-columns: 1fr; }
  .r4-trk__feed { border-right: 0; border-bottom: 1px solid rgba(11, 12, 14, .07); }
}
@media (max-width: 600px) {
  .r4-bento .bcell { grid-column: 1 / -1; }
  .r4-ab { gap: 8px; } .r4-ab__v { grid-template-columns: 36px 1fr; gap: 8px; padding: 9px; } .r4-ab__th { height: 50px; }
  .r4-ab__l em { font-size: 16px; }
}
/* upsell: o valor não quebra linha */
.up__s b { white-space: nowrap; }
@media (max-width: 420px) {
  .r4-ab { grid-template-columns: 1fr; }
  .r4-ab__v { grid-template-columns: 30px 1fr; } .r4-ab__th { height: 40px; }
  .r4-ab__l { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .r4-cs .tc__phone .r4-cs__i { transition: none; filter: none; transform: none; }
}
