/* ==========================================================================
   tki.finance — o que é só desta página.
   O finance.css vem da landpage de origem e é trazido de lá quando ela muda;
   o que nasceu aqui fica neste arquivo para não se perder na próxima cópia.
   ========================================================================== */

/* ---------- Palavra que gira no título ---------- */
.rotator {
  display: inline-block; position: relative; color: var(--accent); text-align: center;
  transition: opacity .32s ease, transform .32s ease, filter .32s ease;
}
.rotator.is-out { opacity: 0; transform: translateY(-.35em); filter: blur(6px); }
.rotator.is-in { opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: none; }
.rotator::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; border-radius: 99px;
  background: var(--grad-tx); transform-origin: left; animation: sublinha 2.6s ease-in-out infinite;
}
@keyframes sublinha { 0% { transform: scaleX(0); } 30%, 80% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- Bento: o que vem na conta ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento > .tile:nth-child(1) { grid-column: span 4; }
.bento > .tile:nth-child(2) { grid-column: span 2; }
.bento > .tile:nth-child(3),
.bento > .tile:nth-child(4),
.bento > .tile:nth-child(5) { grid-column: span 2; }
.bento > .tile:nth-child(6) { grid-column: span 6; }
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > .tile:nth-child(n) { grid-column: span 1; }
  .bento > .tile:nth-child(1), .bento > .tile:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento > .tile:nth-child(n) { grid-column: span 1; }
}

.tile {
  position: relative; overflow: hidden; isolation: isolate;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
/* brilho que segue o cursor; --mx/--my vêm do site.js */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 64, 240, .09), transparent 60%);
}
.tile:hover { border-color: rgba(0, 64, 240, .25); box-shadow: 0 22px 50px -18px rgba(0, 64, 240, .28); transform: translateY(-4px); }
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; }
.tile p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.tile .tag {
  align-self: flex-start; font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 500;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(0, 64, 240, .18);
  padding: 3px 9px; border-radius: 6px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; display: inline-block;
}
.tile__viz { margin-top: auto; min-height: 112px; display: flex; align-items: flex-end; }
.tile--wide { flex-direction: row; align-items: stretch; gap: 30px; }
.tile--wide > div:first-child { flex: 1 1 52%; display: flex; flex-direction: column; justify-content: center; }
.tile--wide .tile__viz { flex: 1 1 48%; margin-top: 0; align-items: center; }
@media (max-width: 760px) { .tile--wide { flex-direction: column; } }

.tile--dark { background: #0b1220; border-color: #1c2942; color: #fff; }
.tile--dark p { color: #8fa1be; }
.tile--dark .tag { background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .25); color: #38bdf8; }
.tile--dark::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(77, 125, 255, .22), transparent 60%); }

/* Conta: saldo que sobe e extrato que chega */
.saldo-card { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.saldo-card small { font-size: 12px; color: var(--ink-3); }
.saldo-card .valor { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -0.03em; margin: 2px 0 12px; font-variant-numeric: tabular-nums; }
.saldo-card .rende { font-size: 11.5px; color: var(--green); font-weight: 600; margin-left: 6px; }
.extrato { list-style: none; display: grid; gap: 6px; }
.extrato li {
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; animation: linhaEntra .5s cubic-bezier(.2,.7,.3,1) backwards;
}
.extrato li i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; flex-shrink: 0; background: var(--accent-soft); color: var(--accent); }
.extrato li span { flex: 1; color: var(--ink-2); }
.extrato li b { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--green); font-weight: 500; }
.extrato li b.sai { color: var(--ink-3); }
@keyframes linhaEntra { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* Cobranças: as formas de pagamento se acendem em sequência */
.metodos { display: flex; flex-wrap: wrap; gap: 8px; }
.metodos span {
  font-size: 12.5px; font-weight: 500; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); background: #fff;
  animation: acende 7.2s ease-in-out infinite; animation-delay: calc(var(--i) * 1.2s);
}
@keyframes acende {
  0%, 16%, 100% { background: #fff; color: var(--ink-2); border-color: var(--line-2); transform: none; }
  4%, 12% { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 18px -6px rgba(0, 64, 240, .5); }
}

/* Assinatura: o ciclo fecha e renova */
.ciclo { display: flex; align-items: center; gap: 16px; }
.ciclo svg { width: 92px; height: 92px; transform: rotate(-90deg); flex-shrink: 0; }
.ciclo .trilho { stroke: var(--bg-3); }
.ciclo .arco { stroke: var(--accent); stroke-dasharray: 251; stroke-dashoffset: 251; animation: fechaCiclo 4s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes fechaCiclo { 0% { stroke-dashoffset: 251; } 70%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ciclo b { display: block; font-size: 13px; }
.ciclo small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.ciclo .ok { display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 600; color: var(--green); background: #e7f8ee; padding: 3px 9px; border-radius: 99px; animation: piscaOk 4s ease infinite; }
@keyframes piscaOk { 0%, 62% { opacity: 0; transform: scale(.9); } 70%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Avisos: as mensagens chegam uma por uma */
.avisos { width: 100%; display: grid; gap: 7px; }
.avisos div {
  display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 8px 11px;
  animation: chega 6s ease infinite; animation-delay: calc(var(--i) * .5s);
}
.avisos div i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; color: #fff; flex-shrink: 0; }
.avisos .wa i { background: var(--green); }
.avisos .sms i { background: #7c3aed; }
.avisos .mail i { background: var(--accent); }
@keyframes chega { 0%, 4% { opacity: 0; transform: translateX(-12px); } 12%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }

/* Investimentos: as barras crescem */
.barras { width: 100%; height: 110px; display: flex; align-items: flex-end; gap: 7px; }
.barras span {
  flex: 1; border-radius: 6px 6px 3px 3px; height: var(--h); transform-origin: bottom;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  animation: cresce 4.8s cubic-bezier(.2,.7,.3,1) infinite; animation-delay: calc(var(--i) * .09s);
}
.barras span:last-child { background: linear-gradient(180deg, #4ade80, var(--green)); }
@keyframes cresce { 0% { transform: scaleY(.08); } 35%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.08); } }

/* API: a linha que se escreve sozinha */
.terminal { width: 100%; font-family: "JetBrains Mono", monospace; font-size: 12.5px; line-height: 1.9; background: #070d1a; border: 1px solid #1c2942; border-radius: 12px; padding: 14px 16px; color: #8fa1be; overflow: hidden; }
.terminal .ok { color: #4ade80; }
.terminal .ev { color: #38bdf8; }
.terminal [data-digita]::after { content: "▍"; color: #4d7dff; animation: cursor 1s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0; } }

/* ---------- Como funciona: celular que conta a história ---------- */
.fluxo { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: center; }
@media (max-width: 900px) { .fluxo { grid-template-columns: 1fr; gap: 40px; } }
.fluxo__passos { list-style: none; display: grid; gap: 12px; counter-reset: passo; }
.fluxo__passos li {
  position: relative; padding: 20px 22px 20px 70px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  cursor: pointer; transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.fluxo__passos li::before {
  counter-increment: passo; content: counter(passo);
  position: absolute; left: 22px; top: 20px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--bg-3); color: var(--ink-3); transition: background-color .3s ease, color .3s ease;
}
.fluxo__passos li::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; border-radius: 0 3px 3px 0;
  background: var(--grad-tx);
}
.fluxo__passos li.is-ativo { border-color: rgba(0, 64, 240, .3); box-shadow: 0 16px 36px -16px rgba(0, 64, 240, .3); }
.fluxo__passos li.is-ativo::before { background: var(--accent); color: #fff; }
.fluxo__passos li.is-ativo::after { animation: progresso var(--tempo, 3.2s) linear forwards; }
@keyframes progresso { to { width: 100%; } }
.fluxo__passos h3 { font-size: 16.5px; font-weight: 600; margin: 4px 0 4px; letter-spacing: -0.01em; }
.fluxo__passos p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; }

.celular {
  justify-self: center; width: 300px; height: 560px; border-radius: 46px; padding: 12px; position: relative;
  background: #0b1220; box-shadow: 0 40px 80px -30px rgba(11, 18, 32, .5), inset 0 0 0 2px #26324a;
}
@media (max-width: 380px) { .celular { width: 260px; height: 500px; } }
.celular::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 99px; background: #0b1220; z-index: 3; }
.celular__tela { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg-2); }
.tela {
  position: absolute; inset: 0; padding: 62px 18px 18px; display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateX(24px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1);
}
.tela.is-ativa { opacity: 1; transform: none; }
.tela__topo { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.tela__topo i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); }
.tela__card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.tela__card small { display: block; font-size: 11.5px; color: var(--ink-3); }
.tela__card .grande { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; margin: 2px 0 10px; }
.tela__linha { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); padding: 7px 0; border-top: 1px solid var(--line); }
.tela__linha b { color: var(--ink); font-weight: 600; }
.tela__botao { margin-top: auto; text-align: center; font-weight: 600; font-size: 14px; color: #fff; background: var(--accent); border-radius: 12px; padding: 13px; }
.tela--wa { background: #efeae2; }
.tela--wa .tela__topo { background: #075e54; color: #fff; margin: -62px -18px 0; padding: 52px 18px 12px; }
.tela--wa .tela__topo i { background: #fff; color: #075e54; }
.bolha {
  align-self: flex-start; max-width: 88%; margin: 0; background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px; font-size: 13px; line-height: 1.45; color: #111;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
}
.tela.is-ativa .bolha { animation: bolha .45s cubic-bezier(.2,.7,.3,1) backwards; }
.tela.is-ativa .bolha:nth-of-type(2) { animation-delay: .5s; }
@keyframes bolha { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.bolha a { display: block; margin-top: 8px; color: #0b6bcb; font-weight: 600; }
.bolha small { display: block; text-align: right; font-size: 10px; color: #8696a0; margin-top: 4px; }
.tela--pago { align-items: center; justify-content: center; text-align: center; }
.selo-pago {
  width: 86px; height: 86px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, .4);
}
.tela.is-ativa .selo-pago { animation: seloPop .6s cubic-bezier(.2,1.4,.4,1) backwards, onda 1.8s ease-out .6s infinite; }
.selo-pago svg { width: 42px; height: 42px; }
@keyframes seloPop { from { transform: scale(.3); opacity: 0; } }
@keyframes onda { to { box-shadow: 0 0 0 26px rgba(22, 163, 74, 0); } }
.tela--pago h4 { font-size: 20px; margin: 18px 0 2px; letter-spacing: -0.02em; }
.tela--pago .mais { font-family: "JetBrains Mono", monospace; font-size: 22px; color: var(--green); font-weight: 500; }
.tela--pago p { font-size: 12.5px; color: var(--ink-3); margin: 6px 0 0; }

/* ---------- Segurança: só o essencial ---------- */
.seg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .seg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .seg-grid { grid-template-columns: 1fr; } }
.seg {
  background: rgba(255,255,255,.03); border: 1px solid #1c2942; border-radius: 14px; padding: 22px;
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.seg:hover { border-color: rgba(77, 125, 255, .5); background: rgba(77, 125, 255, .06); transform: translateY(-3px); }
.seg .ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(56, 189, 248, .1); color: #38bdf8; margin-bottom: 14px; }
.seg .ico svg { width: 18px; height: 18px; }
.seg h3 { color: #fff; font-size: 15.5px; font-weight: 600; margin: 0 0 6px; }
.seg p { color: #8fa1be; font-size: 13.5px; line-height: 1.55; margin: 0; }

/* ---------- Depoimentos em faixa contínua ---------- */
.quotes-marquee .marquee__track { gap: 18px; animation-duration: 70s; }
.quotes-marquee .quote { width: 340px; flex-shrink: 0; }
@media (max-width: 480px) { .quotes-marquee .quote { width: 280px; } }

/* ---------- Movimento reduzido: tudo parado, no estado final ---------- */
@media (prefers-reduced-motion: reduce) {
  .rotator::after, .metodos span, .ciclo .arco, .ciclo .ok, .avisos div, .barras span,
  .terminal [data-digita]::after, .extrato li, .bolha, .selo-pago, .fluxo__passos li::after { animation: none !important; }
  .ciclo .arco { stroke-dashoffset: 0; }
  .ciclo .ok { opacity: 1; }
  .quotes-marquee .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .quotes-marquee .quote[aria-hidden="true"] { display: none; }
}

/* ---------- Cartões: três linhas em 3D ---------- */
.cartoes { overflow: hidden; }
.cartoes__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .cartoes__grid { grid-template-columns: 1fr; gap: 36px; } }

.palco {
  position: relative; height: 440px; display: grid; place-items: center;
  perspective: 1400px; --rx: 0deg; --ry: 0deg;
}
@media (max-width: 560px) { .palco { height: 300px; } }
.palco__brilho {
  position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 64, 240, .22), transparent 70%);
  filter: blur(10px); animation: respira 6s ease-in-out infinite;
}
@keyframes respira { 50% { transform: scale(1.12); opacity: .7; } }
.pilha {
  position: relative; width: min(390px, 82%); aspect-ratio: 1.586;
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .25s ease-out;
}
.cartao {
  position: absolute; inset: 0; border-radius: 20px; transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .9s ease, filter .9s ease;
  box-shadow: 0 30px 60px -20px rgba(11, 18, 32, .55), inset 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
}
/* posições: 0 na frente, 1 atrás à direita, 2 atrás à esquerda (o site.js gira) */
.cartao[data-pos="0"] { transform: translate3d(0, 0, 60px) rotateZ(-4deg); z-index: 3; }
.cartao[data-pos="1"] { transform: translate3d(22%, -14%, -40px) rotateZ(6deg) scale(.92); z-index: 2; filter: brightness(.82); }
.cartao[data-pos="2"] { transform: translate3d(-22%, -20%, -110px) rotateZ(-12deg) scale(.86); z-index: 1; filter: brightness(.66); }
.js .pilha:not(.is-pronta) .cartao { opacity: 0; transform: translate3d(0, 40px, -200px); }

/* desenho idêntico ao CartaoVisual da plataforma (packages/shared/.../cartao):
   metal fosco, luz larga de cima, grão, tudo impresso em prata; sem bandeira aqui */
.cartao { container-type: inline-size; border-radius: 4.4% / 6.98%; color: #e2e8f0;
  background-image:
    radial-gradient(120% 90% at 20% -20%, rgba(255,255,255,.09) 0%, transparent 60%),
    radial-gradient(80% 80% at 110% 120%, rgba(0,0,0,.35) 0%, transparent 70%),
    linear-gradient(160deg, var(--de) 0%, var(--ate) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(0,0,0,.2), 0 26px 50px -18px rgba(0,0,0,.6);
}
.cartao--flex { --de: #0A2A6B; --ate: #2F7BF6; }
.cartao--prime, .cartao--select { --de: #1C1C1E; --ate: #0B0B0C; }
.cv-grao { position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.cv-reflexo { position: absolute; top: 0; bottom: 0; left: -25%; width: 25%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  animation: cv-reflexo 8s ease-in-out 2s infinite; }
@keyframes cv-reflexo { 0% { transform: translateX(-140%) skewX(-18deg); } 55%, 100% { transform: translateX(340%) skewX(-18deg); } }
.cv-topo { position: absolute; left: 7.5%; right: 7.5%; top: 9%; display: flex; align-items: center; }
.cv-marca { display: block; height: 6.4cqw; aspect-ratio: 957 / 261;
  background-image: linear-gradient(105deg, #f8fafc 0%, #c7ccd4 35%, #f1f5f9 52%, #9aa1ab 100%);
  -webkit-mask: url("/assets/img/logos/logo-tki-finance.png") left center / contain no-repeat;
          mask: url("/assets/img/logos/logo-tki-finance.png") left center / contain no-repeat; }
.cv-meio { position: absolute; left: 7.5%; right: 7.5%; top: 37%; display: flex; align-items: center; }
.cv-chip { width: 12cqw; height: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); }
.cv-metal { background-image: linear-gradient(105deg, #f8fafc 0%, #c7ccd4 35%, #f1f5f9 52%, #9aa1ab 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cv-linha { margin-left: 9cqw; font-size: 3.5cqw; font-weight: 600; letter-spacing: .55em; text-transform: uppercase; white-space: nowrap; }
.cv-aprox { width: 6.4cqw; margin-left: auto; color: #cbd5e1; }
.cartao[data-pos="0"] .cv-aprox { animation: nfc 1.6s ease-in-out infinite; }
.cv-base { position: absolute; left: 7.5%; right: 7.5%; bottom: 9%; }
.cv-base p { margin: 0; }
.cv-final { font-size: 2.6cqw; line-height: 1; letter-spacing: .2em; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; }
.cv-nome { margin-top: 2cqw !important; font-size: 3.4cqw; line-height: 1; font-weight: 500; letter-spacing: .06em; color: rgba(255,255,255,.7); text-transform: uppercase; }

.aviso-compra {
  position: absolute; z-index: 5; right: 4%; bottom: 8%; display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 18px 44px -12px rgba(11, 18, 32, .25);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.3,1);
}
.aviso-compra.is-saindo { opacity: 0; transform: translateY(10px) scale(.96); }
.aviso-compra .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #e7f8ee; color: var(--green); }
.aviso-compra .ic svg { width: 16px; height: 16px; }
.aviso-compra b { display: block; font-size: 13px; }
.aviso-compra small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
@media (max-width: 560px) { .aviso-compra { right: 0; bottom: 0; } }

.linhas { display: grid; gap: 10px; }
.linha {
  position: relative; overflow: hidden; text-align: left; display: grid; gap: 4px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.linha:hover { border-color: var(--line-2); }
.linha.is-ativa { border-color: rgba(0, 64, 240, .32); box-shadow: 0 16px 36px -16px rgba(0, 64, 240, .32); transform: translateX(4px); }
.linha::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--grad-tx); }
.linha.is-ativa::after { animation: progresso var(--tempo-cartao, 3.6s) linear forwards; }
.linha__tag { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.linha b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.linha > span:last-child { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.linhas .btn { justify-self: start; margin-top: 10px; }

/* ---------- App: vitrine de telas ---------- */
.vitrine { display: flex; justify-content: center; align-items: flex-end; gap: 26px; padding: 10px 0 20px; }
.tel { margin: 0; flex: 0 0 auto; width: 220px; text-align: center; animation: flutua 7s ease-in-out infinite; }
.tel picture { display: block; }
.tel img {
  display: block; width: 100%; height: auto; border-radius: 34px;
  box-shadow: 0 30px 60px -24px rgba(11, 18, 32, .45), 0 0 0 7px #0b1220, 0 0 0 8px #26324a;
}
.tel figcaption { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tel--centro { width: 250px; animation-delay: -1.5s; }
.tel--esq { animation-delay: -3s; transform-origin: bottom; }
.tel--dir { animation-delay: -4.5s; }
.tel--extra { animation-delay: -6s; }
.tel:hover { animation-play-state: paused; }
@keyframes flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 1100px) { .tel { width: 190px; } .tel--centro { width: 215px; } }
@media (max-width: 900px) {
  .vitrine { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 8px 28px; margin: 0 -20px; padding-left: 28px; padding-right: 28px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .vitrine::-webkit-scrollbar { display: none; }
  .tel, .tel--centro { width: 210px; scroll-snap-align: center; animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .palco__brilho, .cv-reflexo, .cv-aprox, .tel, .linha.is-ativa::after { animation: none !important; }
  .cartao, .pilha { transition: none; }
}

/* ---------- Negócio físico: maquininha e taxas ---------- */
section.s.balcao {
  position: relative; overflow: hidden; border: 0; color: #fff;
  background: linear-gradient(125deg, #002a9e 0%, #0040f0 48%, #2f6bff 100%);
  border-radius: 32px; margin: 0 20px;
}
@media (max-width: 720px) { section.s.balcao { border-radius: 22px; margin: 0 12px; } }
section.s.balcao::before, section.s.balcao::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent 72%);
}
section.s.balcao::before { width: 620px; height: 620px; right: -160px; top: -240px; animation: respira 9s ease-in-out infinite; }
section.s.balcao::after { width: 480px; height: 480px; left: -200px; bottom: -220px; animation: respira 11s ease-in-out infinite reverse; }
.balcao .container { position: relative; z-index: 1; }
.balcao__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
@media (max-width: 960px) { .balcao__grid { grid-template-columns: 1fr; gap: 30px; } }
.balcao .sec-title { color: #fff; }
.balcao .sec-sub { color: rgba(255,255,255,.86); }
.eyebrow--claro { color: rgba(255,255,255,.75); }
.grad-claro { background: linear-gradient(90deg, #ffffff, #a9c4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.taxas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; }
@media (max-width: 640px) { .taxas { grid-template-columns: 1fr 1fr; } }
.taxa {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 14px 14px 16px;
  backdrop-filter: blur(6px); transition: background-color .25s ease, transform .25s ease;
}
.taxa:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.taxa small { display: block; font-size: 12px; color: rgba(255,255,255,.72); margin-bottom: 6px; }
.taxa b { display: block; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.9); line-height: 1.2; }
.taxa b span { display: inline-block; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.taxa:last-child b { font-size: 17px; font-weight: 700; color: #fff; padding-top: 8px; }
.taxas__nota { font-size: 12px; color: rgba(255,255,255,.62); margin: 10px 0 0; }

.balcao__lista { list-style: none; display: grid; gap: 10px; margin: 26px 0 0; }
.balcao__lista li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.86); }
.balcao__lista li b { color: #fff; font-weight: 600; }
.balcao__lista li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.5 10.5L4 8l-1 1 3.5 3.5L14 5l-1-1z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.balcao__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-contorno { color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-contorno:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* a maquininha é a foto do fabricante (a mesma do catálogo do painel); a tela
   dela é desenhada por cima, e a fase vem do site.js em data-fase */
.balcao__palco { position: relative; height: 560px; display: grid; place-items: center; }
@media (max-width: 960px) { .balcao__palco { height: 520px; } }
.pos-foto { position: absolute; pointer-events: none; }
.pos-foto img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 8, 40, .45)); }
.pos-foto--a920 { width: 300px; right: -6%; top: 6%; transform: rotate(8deg); filter: brightness(.82) saturate(.9); }
.pos-foto--d195 { width: 150px; left: -2%; bottom: 10%; transform: rotate(-10deg); z-index: 3; }
@media (max-width: 560px) { .pos-foto--a920 { width: 220px; right: -14%; } .pos-foto--d195 { width: 110px; left: -4%; } }

.pos-flutua { position: relative; z-index: 2; animation: flutua 7s ease-in-out infinite; }
.pos-real { position: relative; width: 380px; }
@media (max-width: 560px) { .pos-real { width: 320px; } }
.pos-real__foto { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(0, 8, 40, .55)); }

/* a tela da GPOS720 ocupa este retângulo da foto (medido no arquivo 500×500) */
.pos__tela {
  position: absolute; left: 40.6%; top: 33.2%; width: 28.6%; height: 57.4%;
  border-radius: 2px; overflow: hidden; background: #fbfcff;
  container-type: inline-size;
}
.pos__tela::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.35) 0%, transparent 35%); }
.pos__barra { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 2.5cqw 5cqw; font-size: 6.5cqw; color: #fff; background: #1e2a44; z-index: 1; }
.pos__estado {
  position: absolute; inset: 11cqw 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqw; text-align: center; color: var(--ink);
  padding: 0 6cqw; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease;
}
.pos__estado[data-pos-estado="valor"] { justify-content: flex-start; padding-top: 6cqw; }
.pos__estado small { font-size: 7.5cqw; color: var(--ink-3); }
.pos__estado b { font-size: 15cqw; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.pos__estado[data-pos-estado="aproxime"] b { font-size: 9cqw; line-height: 1.2; }
.pos__estado svg { width: 26cqw; height: 26cqw; color: var(--accent); animation: nfc 1.2s ease-in-out infinite; }
.pos__metodos { font-size: 6cqw; color: var(--accent); font-weight: 600; background: var(--accent-soft); padding: 1cqw 4cqw; border-radius: 99px; }
.pos__teclado { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; margin-top: 3cqw; }
.pos__teclado i {
  display: grid; place-items: center; aspect-ratio: 1.25; border-radius: 99px; font-style: normal;
  font-size: 9cqw; font-weight: 500; color: var(--ink); background: #eef1f6;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.pos__pagar { width: 100%; margin-top: 3cqw; padding: 3cqw 0; border-radius: 99px; border: 1.5px solid #22c55e; color: #15803d; font-size: 8cqw; font-weight: 700; transition: background-color .12s ease, color .12s ease; }
.pos [data-tecla].is-apertada, .pos-real [data-tecla].is-apertada { background: var(--accent); color: #fff; transform: scale(.92); }
.pos__pagar.is-apertada { background: #22c55e !important; color: #fff !important; transform: none !important; }
.pos__estado--ok { background: #e9f9ef; }
.pos__estado--ok b { color: var(--green); font-size: 13cqw; }
.pos__ok { width: 34cqw; height: 34cqw; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.pos__ok svg { width: 18cqw; height: 18cqw; color: #fff; animation: none; }
[data-fase="valor"] [data-pos-estado="valor"],
[data-fase="aproxime"] [data-pos-estado="aproxime"],
[data-fase="aprovado"] [data-pos-estado="aprovado"] { opacity: 1; transform: none; }
[data-fase="aprovado"] .pos__ok { animation: seloPop .55s cubic-bezier(.2,1.4,.4,1) backwards; }

/* comprovante: sai pela fenda da impressora da foto */
.pos__saida { position: absolute; left: 41.5%; width: 27%; bottom: 76.4%; height: 160px; overflow: hidden; pointer-events: none; z-index: -1; }
.pos__papel {
  position: absolute; left: 4%; right: 4%; bottom: 0; height: 150px; padding: 12px 8px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: linear-gradient(180deg, #fff 0%, #f3f4f6 100%);
  font-family: "JetBrains Mono", monospace; font-size: 8.5px; color: #3d4a5f; letter-spacing: .04em;
  -webkit-mask: radial-gradient(4px at 50% 0, #0000 98%, #000) 0 0 / 8px 100% repeat-x;
          mask: radial-gradient(4px at 50% 0, #0000 98%, #000) 0 0 / 8px 100% repeat-x;
  transform: translateY(100%); transition: transform 1.6s cubic-bezier(.4,0,.2,1);
}
.pos__papel b { font-size: 9.5px; color: #0b1220; letter-spacing: .12em; }
.pos__papel strong { font-size: 14px; color: #0b1220; letter-spacing: 0; }
.pos__papel-linha { width: 100%; border-top: 1px dashed #c6ccd6; margin: 3px 0; }
[data-fase="aprovado"] .pos__papel { transform: translateY(0); transition-delay: .5s; }

.pos__cartao {
  position: absolute; z-index: 4; width: 150px; aspect-ratio: 1.586; border-radius: 10px; right: 6%; top: 4%;
  background: linear-gradient(160deg, #0A2A6B, #2F7BF6); box-shadow: 0 24px 40px -14px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.14);
  transform: translate(90px, -30px) rotate(18deg); opacity: 0;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .45s ease;
}
.pos__cartao span { position: absolute; left: 12%; top: 36%; width: 19%; aspect-ratio: 1.3; border-radius: 4px; background: linear-gradient(135deg, #F8FAFC, #CBD2DA 40%, #8B939E); }
[data-fase="aproxime"] .pos__cartao { opacity: 1; transform: translate(-60px, 10px) rotate(-8deg); }
[data-fase="aprovado"] .pos__cartao { opacity: 0; transform: translate(70px, -10px) rotate(14deg); }
.pos__ondas { position: absolute; z-index: 1; left: 52%; top: 17%; width: 0; height: 0; }
.pos__ondas i { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); opacity: 0; }
[data-fase="aproxime"] .pos__ondas i { animation: onda-pos 1.4s ease-out infinite; }
[data-fase="aproxime"] .pos__ondas i:nth-child(2) { animation-delay: .45s; }
[data-fase="aproxime"] .pos__ondas i:nth-child(3) { animation-delay: .9s; }
@keyframes onda-pos { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.pos__extrato {
  position: absolute; z-index: 5; right: 0; bottom: 6%; display: flex; align-items: center; gap: 11px;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: 0 20px 44px -14px rgba(0, 10, 40, .5);
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.3,1);
}
[data-fase="aprovado"] .pos__extrato { opacity: 1; transform: none; transition-delay: 1.2s; }
.pos__extrato .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #e7f8ee; color: var(--green); }
.pos__extrato .ic svg { width: 16px; height: 16px; }
.pos__extrato b { display: block; font-size: 13px; }
.pos__extrato small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }

.segmentos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 50px; }
.segmentos span {
  font-size: 13px; font-weight: 500; color: #fff; padding: 8px 14px; border-radius: 99px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  animation: acende-claro 10s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 1s);
}
@keyframes acende-claro { 0%, 12%, 100% { background: rgba(255,255,255,.1); color: #fff; } 4%, 8% { background: #fff; color: var(--accent); } }

@media (prefers-reduced-motion: reduce) {
  section.s.balcao::before, section.s.balcao::after, .pos-flutua, .segmentos span, .pos__ondas i { animation: none !important; }
}

/* ---------- iPhone: moldura de titânio, botões, ilha e vidro ---------- */
.iphone {
  --raio: 52px;
  position: relative; padding: 4px; border-radius: var(--raio);
  background: linear-gradient(135deg, #c9ccd3 0%, #7d828d 18%, #3b3f48 40%, #5d626c 62%, #a7abb4 82%, #6b7079 100%);
  box-shadow: 0 50px 90px -34px rgba(11, 18, 32, .55), 0 18px 30px -18px rgba(11, 18, 32, .35);
}
.iphone::before { /* borda preta entre o titânio e a tela */
  content: ""; position: absolute; inset: 4px; border-radius: calc(var(--raio) - 4px); background: #050608; z-index: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.iphone::after { /* reflexo do vidro */
  content: ""; position: absolute; inset: 14px; border-radius: calc(var(--raio) - 14px); pointer-events: none; z-index: 6;
  background: linear-gradient(118deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 26%, transparent 42%);
}
.iphone__botao { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #5d626c, #c9ccd3 50%, #6b7079); }
.iphone__botao--acao { left: -3px; top: 17%; height: 4.5%; }
.iphone__botao--mais { left: -3px; top: 25%; height: 9%; }
.iphone__botao--menos { left: -3px; top: 36%; height: 9%; }
.iphone__botao--lado { right: -3px; left: auto; top: 29%; height: 13%; }

/* o celular do "como funciona" */
.celular.iphone { width: 300px; height: 620px; padding: 4px; background-color: transparent; }
.celular.iphone::before { display: block; width: auto; height: auto; top: 4px; left: 4px; right: 4px; bottom: 4px; transform: none; }
.celular .celular__tela { position: absolute; inset: 14px; height: auto; border-radius: calc(var(--raio) - 14px); z-index: 1; }
@media (max-width: 380px) { .celular.iphone { width: 270px; height: 560px; } }
.celular .tela { padding-top: 58px; }
.tela--wa .tela__topo { margin-top: -58px; padding-top: 50px; }
.iphone__ilha {
  position: absolute; z-index: 5; top: 11px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 27px; border-radius: 20px; background: #000;
}
.iphone__ilha i { position: absolute; right: 12px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a5c, #0a0f1c 60%); box-shadow: inset 0 0 0 1.5px #111; }
.iphone__status {
  position: absolute; z-index: 4; top: 14px; left: 0; right: 0; padding: 0 26px 0 30px;
  display: flex; justify-content: space-between; align-items: center; color: #0b1220; transition: color .4s ease;
}
.iphone__status b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.iphone__status span { display: flex; align-items: center; gap: 5px; }
.iphone__status svg { height: 11px; width: auto; fill: currentColor; }
.iphone__bateria { position: relative; width: 23px; height: 11px; border-radius: 3.5px; border: 1px solid currentColor; opacity: .9; }
.iphone__bateria::after { content: ""; position: absolute; right: -3.5px; top: 3px; width: 1.5px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; }
.iphone__bateria i { position: absolute; inset: 1.5px; border-radius: 2px; background: currentColor; }
.tela--wa.is-ativa ~ .iphone__status { color: #fff; }
.iphone__home { position: absolute; z-index: 4; bottom: 8px; left: 50%; transform: translateX(-50%); width: 120px; height: 5px; border-radius: 3px; background: #0b1220; opacity: .85; }

/* os prints da vitrine: o print já traz a ilha e a barra de status */
.iphone--print { --raio: 40px; padding: 3px; }
.iphone--print::before { inset: 3px; border-radius: calc(var(--raio) - 3px); }
.iphone--print::after { inset: 10px; border-radius: calc(var(--raio) - 10px); }
.iphone--print picture { position: relative; z-index: 1; display: block; padding: 7px; }
.tel .iphone--print img { box-shadow: none; border-radius: calc(var(--raio) - 10px); }
.tel--centro .iphone--print { --raio: 44px; }

/* "como funciona": os passos 1 e 3 são prints do app; o 2 é o WhatsApp desenhado */
.tela--print { padding: 0 !important; background: #f2f4f8; }
.tela--print picture, .tela--print img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.iphone__status, .iphone__ilha { opacity: 0; transition: opacity .3s ease; }
.tela--wa.is-ativa ~ .iphone__status, .tela--wa.is-ativa ~ .iphone__ilha { opacity: 1; }
.tela__aviso {
  position: absolute; left: 12px; right: 12px; top: 52px; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.96); border-radius: 18px; padding: 10px 12px; box-shadow: 0 14px 30px -10px rgba(11,18,32,.35);
  backdrop-filter: blur(8px); opacity: 0; transform: translateY(-16px);
}
.tela.is-ativa .tela__aviso { animation: avisoDesce .6s cubic-bezier(.2,.8,.2,1) .5s forwards; }
@keyframes avisoDesce { to { opacity: 1; transform: none; } }
.tela__aviso .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--green); color: #fff; flex-shrink: 0; }
.tela__aviso .ic svg { width: 16px; height: 16px; }
.tela__aviso b { display: block; font-size: 13px; }
.tela__aviso small { display: block; font-size: 11.5px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .tela__aviso { opacity: 1; transform: none; animation: none !important; } }
