/* =====================================================================
   Telas animadas do produto nas páginas do site (home e setores), montadas pelo telas.js.
   Tudo fica dentro de .tela, com tokens próprios, para não colidir com as classes do site.
   Mesmo desenho das LPs de produto: painel em #F4EEE8, cards brancos com sombra quente,
   pílulas, um só laranja. O palco tem 1000 px e é reduzido inteiro pelo demo-motor.js.
   ===================================================================== */
.tela {
  --app: #F4EEE8; --card: #FFFFFF; --beige: #EFE6DD; --beige-2: #E9DFD5; --pill: #F1E8DF; --line: #E6DCD2;
  --ink: #111317; --muted: #7A726C; --placeholder: #A39A93; --orange: #FF5114; --orange-tint: #FFEDE5; --bar: #E2D6CB;
  --shadow-soft: 0 14px 44px rgba(74, 54, 40, 0.12); --shadow-big: 0 26px 90px rgba(74, 54, 40, 0.14);
  --ease: cubic-bezier(0.6, 0, 0.12, 1); --ease-out: cubic-bezier(0.65, 0, 0.7, 1);
  position: relative; max-width: 1000px; margin: 0 auto; text-align: left; color: var(--ink);
}
.tela * { box-sizing: border-box; }
.tela .lucide { width: 1em; height: 1em; stroke-width: 2; flex: none; }
.tela .demo__fit { position: relative; }
.tela .demo__stage { position: absolute; top: 0; left: 0; width: 1000px; transform-origin: 0 0; }

/* Passos embaixo do painel */
.tela .demo__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.tela .demo__steps li { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 6px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color .4s var(--ease), color .4s var(--ease); }
.tela .demo__steps li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--beige); color: var(--ink); font-size: 12px; transition: background-color .4s var(--ease), color .4s var(--ease); }
.tela .demo__steps li.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-soft); }
.tela .demo__steps li.is-on span { background: var(--orange); color: #fff; }
.tela .demo__case { display: flex; justify-content: center; gap: 8px; margin: 14px 0 0; }
.tela .demo__case span { height: 6px; width: 28px; border-radius: 3px; background: var(--line); transition: background-color .4s var(--ease), width .4s var(--ease); }
.tela .demo__case span.is-on { background: var(--orange); width: 44px; }

/* Painel */
.tela .app { background: var(--app); border-radius: 36px; box-shadow: var(--shadow-big); overflow: hidden; }
.tela .app__bar { display: flex; align-items: center; height: 72px; padding: 0 28px 0 52px; background: var(--card); box-shadow: inset 0 -1.5px 0 var(--line); }
.tela .app__sym { width: 26px; height: auto; }
.tela .app__brand { margin-left: 12px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.tela .app__tabs { display: flex; align-self: stretch; gap: 40px; margin-left: 56px; }
.tela .app__tabs span { position: relative; display: flex; align-items: center; font-size: 16px; color: var(--muted); }
.tela .app__tabs .is-on { font-weight: 500; color: var(--ink); }
.tela .app__tabs .is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); border-radius: 2px; }
.tela .app__avatar { width: 32px; height: 32px; margin-left: auto; border-radius: 50%; object-fit: cover; }
.tela .app__body { padding: 32px 40px 40px; transition: opacity .4s var(--ease); }
.tela .app__body.is-fade { opacity: 0; transition: opacity .35s var(--ease-out); }

/* Cabeçalho do caso */
.tela .t-head { display: flex; align-items: center; gap: 16px; }
.tela .t-head__img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.tela .t-head b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.tela .t-doc { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.tela .t-status {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto; height: 40px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--beige); font-size: 16px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.tela .t-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--placeholder); animation: t-blink 1s ease-in-out infinite; }
.tela .t-status[data-state="ok"] { background: var(--ink); color: #fff; }
.tela .t-status[data-state="review"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-soft); }
.tela .t-status[data-state="block"] { background: var(--orange); color: #fff; }
.tela .t-status[data-state="ok"]::before, .tela .t-status[data-state="block"]::before { background: #fff; animation: none; }
.tela .t-status[data-state="review"]::before { background: var(--orange); animation: none; }
.tela .t-status.is-pop { animation: t-pop .34s var(--ease); }

/* Etapas */
.tela .t-steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.tela .t-step {
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px 0 8px; border-radius: 999px; min-width: 0;
  background: var(--beige); font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .18s var(--ease);
}
.tela .t-step__n { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--card); color: var(--ink); font-size: 14px; }
.tela .t-step__n .lucide { width: 18px; height: 18px; }
.tela .t-step.is-done .t-step__n { background: var(--orange); color: #fff; }
.tela .t-step.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-soft); }
.tela .t-step.is-hover:not(.is-on) { background: var(--pill); }
.tela .t-step.is-press { transform: scale(.95); }
.tela .t-step span:last-child { overflow: hidden; text-overflow: ellipsis; }

/* Painéis das etapas */
.tela .t-panes { position: relative; height: var(--panes-h, 380px); margin-top: 24px; }
.tela .t-pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s; }
.tela .t-pane.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.tela .t-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.tela .dot { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; }
.tela .dot .lucide { width: 50%; height: 50%; stroke-width: 2.2; }
.tela .dot--beige { background: var(--beige); color: var(--ink); }
.tela .pilldot { display: inline-flex; align-items: center; gap: 12px; height: 48px; margin-top: 18px; padding: 0 18px 0 8px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-soft); font-size: 16px; font-weight: 500; white-space: nowrap; }
.tela .pilldot .dot { width: 32px; height: 32px; }
.tela .stag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--beige); font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; margin-left: auto; }
.tela .stag--alert { background: var(--orange); color: #fff; }
.tela .stag--ink { background: var(--ink); color: #fff; }

.tela .rcard { padding: 18px 20px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-soft); }
.tela .rcard__h { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.tela .rcard__h .dot { width: 32px; height: 32px; }
.tela .kv { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--line); }
.tela .kv li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1.5px solid var(--line); font-size: 14px; }
.tela .kv li:last-child { border-bottom: 0; }
.tela .kv span { color: var(--muted); }
.tela .kv b { font-weight: 500; text-align: right; }

/* Documento ilustrado */
.tela .idcard { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 22px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-soft); }
.tela .idcard__band { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1.5px solid var(--line); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tela .idcard__band img { width: 20px; height: auto; }
.tela .idcard__photo { width: 96px; height: 120px; border-radius: 12px; object-fit: cover; background: var(--beige); display: grid; place-items: center; color: var(--muted); }
.tela .idcard__photo .lucide { width: 36px; height: 36px; }
.tela .idcard__lines { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tela .idcard__lines span { display: block; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tela .idcard__lines b { display: block; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tela .idcard__lines i { display: block; height: 10px; border-radius: 5px; background: var(--beige-2); }

/* Biometria */
.tela .t-bio { display: grid; grid-template-columns: 200px minmax(0, 1fr) 200px; align-items: center; padding: 26px 40px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-soft); }
.tela .t-bio__doc { width: 150px; height: 190px; justify-self: center; border-radius: 16px; object-fit: cover; box-shadow: 0 0 0 6px var(--beige); }
.tela .t-bio__line { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #FF0066, #FF7F00); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease) .2s; }
.tela .t-pane.is-on .t-bio__line { transform: scaleX(1); }
.tela .t-oval { position: relative; width: 150px; aspect-ratio: 280 / 360; justify-self: center; }
.tela .t-oval__img { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 4px solid var(--orange); }
.tela .t-oval__img img { width: 100%; height: 100%; object-fit: cover; }
.tela .t-oval__scan { position: absolute; left: 50%; width: 72%; height: 2px; margin-left: -36%; top: 18%; background: var(--orange); box-shadow: 0 0 12px rgba(255, 81, 20, .6); animation: t-scan 2.4s var(--ease) infinite alternate; }
.tela .t-oval i { position: absolute; width: 24px; height: 24px; border: 0 solid var(--ink); }
.tela .t-oval i:nth-of-type(1) { top: -12px; left: -12px; border-width: 3px 0 0 3px; border-top-left-radius: 8px; }
.tela .t-oval i:nth-of-type(2) { top: -12px; right: -12px; border-width: 3px 3px 0 0; border-top-right-radius: 8px; }
.tela .t-oval i:nth-of-type(3) { bottom: -12px; left: -12px; border-width: 0 0 3px 3px; border-bottom-left-radius: 8px; }
.tela .t-oval i:nth-of-type(4) { bottom: -12px; right: -12px; border-width: 0 3px 3px 0; border-bottom-right-radius: 8px; }

/* Checagens */
.tela .t-checks { display: flex; flex-direction: column; gap: 10px; }
.tela .t-check { position: relative; display: flex; align-items: center; gap: 14px; height: 72px; padding: 0 20px 0 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-soft); }
.tela .t-check .dot { width: 44px; height: 44px; }
.tela .t-check b { display: block; font-size: 16px; font-weight: 500; }
.tela .t-check > div > span { font-size: 13px; color: var(--muted); }
.tela .t-check.is-hit { background: var(--orange-tint); }
.tela .t-check.is-hit::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--orange); }

/* Evento (transação, saque, sinistro, login) */
.tela .t-event { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-big); }
.tela .t-event .dot { width: 56px; height: 56px; }
.tela .t-event b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.tela .t-event > div > span { font-size: 14px; color: var(--muted); }
.tela .t-event .stag { height: 32px; font-size: 13px; }

/* Resultado */
.tela .t-result { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-big); }
.tela .t-result .dot { width: 60px; height: 60px; }
.tela .t-result .dot.is-ok { background: var(--ink); }
.tela .t-result b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.tela .t-result > div > span { font-size: 14px; color: var(--muted); }
.tela .t-hook { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px 20px; border-radius: 16px; background: var(--card); font-size: 14px; }
.tela .t-hook .lucide { width: 18px; height: 18px; color: var(--muted); }
.tela .t-hook b { font-weight: 500; }
.tela .t-hist { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tela .t-hist li { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, .6); font-size: 13px; color: var(--muted); }
.tela .t-hist li b { font-weight: 500; color: var(--ink); }
.tela .t-hist li time { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Cursor */
.tela .cursor { position: absolute; top: 0; left: 0; z-index: 5; width: 34px; height: 34px; pointer-events: none; transform: translate(880px, 700px); transition: transform .7s var(--ease); filter: drop-shadow(0 6px 10px rgba(74, 54, 40, .22)); }
.tela .cursor svg { position: relative; z-index: 1; width: 34px; height: 34px; transform-origin: 6px 6px; transition: transform .15s var(--ease); }
.tela .cursor.is-down svg { transform: scale(.86); }
.tela .cursor__ring { position: absolute; left: 6px; top: 6px; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 3px solid var(--orange); opacity: 0; transform: scale(.2); }
.tela .cursor.is-click .cursor__ring { animation: t-ring .45s var(--ease) forwards; }

@keyframes t-pop { 0% { transform: scale(0); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes t-blink { 50% { opacity: .25; } }
@keyframes t-ring { 0% { opacity: 1; transform: scale(.2); } 70% { opacity: .8; } 100% { opacity: 0; transform: scale(1); } }
@keyframes t-scan { to { top: 82%; } }

/* Seção que recebe a tela nos setores */
.tela-sec .tela { margin-top: clamp(36px, 5vw, 64px); }
@media (max-width: 640px) { .tela { margin-inline: -8px; } .tela .demo__steps li { font-size: 13px; } }
/* Celular: palco de 480 px (data-mw no telas.js), painel em coluna e etapas que mostram só o número,
   menos a etapa aberta. A redução fica perto de 0,8 em vez de 0,35. */
.tela.is-narrow .app { border-radius: 28px; }
.tela.is-narrow .app__bar { height: 64px; padding: 0 20px; }
.tela.is-narrow .app__brand { display: none; }
.tela.is-narrow .app__tabs { gap: 18px; margin-left: 18px; }
.tela.is-narrow .app__tabs span { font-size: 15px; white-space: nowrap; }
.tela.is-narrow .app__body { padding: 22px 20px 24px; }
.tela.is-narrow .t-head { gap: 12px; }
.tela.is-narrow .t-head__img { width: 48px; height: 48px; }
.tela.is-narrow .t-head > div { min-width: 0; }
.tela.is-narrow .t-head b { font-size: 21px; }
.tela.is-narrow .t-doc { white-space: normal; font-size: 13px; }
.tela.is-narrow .t-status { height: 36px; padding: 0 14px 0 12px; font-size: 14px; }
.tela.is-narrow .t-steps { display: flex; gap: 8px; margin-top: 18px; }
.tela.is-narrow .t-step { flex: none; height: 52px; padding: 0 6px; }
.tela.is-narrow .t-step span:last-child { display: none; }
.tela.is-narrow .t-step.is-on { flex: 1 1 auto; padding-right: 16px; }
.tela.is-narrow .t-step.is-on span:last-child { display: block; }
.tela.is-narrow .t-panes { height: var(--panes-h, 480px); margin-top: 18px; }
.tela.is-narrow .t-two { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tela.is-narrow .idcard { grid-template-columns: 80px minmax(0, 1fr); padding: 18px; }
.tela.is-narrow .idcard__photo { width: 80px; height: 100px; }
.tela.is-narrow .t-two .rcard { padding: 14px 18px; }
.tela.is-narrow .t-two .kv { margin-top: 10px; }
.tela.is-narrow .t-two .kv li { padding: 8px 0; }
.tela.is-narrow .t-two .pilldot { margin-top: 12px; }
.tela.is-narrow .pilldot { white-space: normal; height: auto; min-height: 48px; padding-block: 8px; }
.tela.is-narrow .t-bio { grid-template-columns: 140px minmax(0, 1fr) 140px; padding: 28px 18px; }
.tela.is-narrow .t-bio__doc { width: 116px; height: 148px; }
.tela.is-narrow .t-oval { width: 116px; }
.tela.is-narrow .t-check { height: auto; min-height: 72px; padding: 12px 16px 12px 14px; }
.tela.is-narrow .t-check > div { min-width: 0; flex: 1; }
.tela.is-narrow .t-check .stag { flex: none; }
.tela.is-narrow .t-event { flex-wrap: wrap; gap: 14px; padding: 18px; }
.tela.is-narrow .t-event > div { flex: 1; min-width: 0; }
.tela.is-narrow .t-event b { font-size: 19px; }
.tela.is-narrow .t-event .stag { margin-left: 70px; }
.tela.is-narrow .t-result { padding: 18px; gap: 14px; }
.tela.is-narrow .t-result .dot { width: 52px; height: 52px; }
.tela.is-narrow .t-result b { font-size: 20px; }
.tela.is-narrow .t-hook { padding: 12px 16px; }
.tela.is-narrow .t-hist li { height: auto; min-height: 44px; padding: 8px 14px; flex-wrap: wrap; gap: 4px 10px; }
.tela.is-narrow .cursor { transform: translate(400px, 560px); }
@media (prefers-reduced-motion: reduce) { .tela * { animation: none !important; transition: none !important; } }
.tela .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tela-note { margin: 18px 0 0; text-align: center; font-size: 13px; color: #A39A93; }
.showcase .tela { margin-top: clamp(32px, 4vw, 56px); }

/* =====================================================================
   Vinhetas animadas dos cards de "Nossos Serviços" (home): no lugar dos ícones,
   miniaturas do produto em loop, só com CSS. Mesmo desenho das telas acima.
   ===================================================================== */
.vig {
  --app: #F4EEE8; --card: #FFFFFF; --beige: #EFE6DD; --beige-2: #E9DFD5; --line: #E6DCD2; --ink: #111317;
  --muted: #7A726C; --orange: #FF5114; --tint: #FFEDE5; --shadow: 0 10px 30px rgba(74, 54, 40, 0.12);
  --e: cubic-bezier(0.6, 0, 0.12, 1);
  position: relative; display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; height: 200px; margin-bottom: 22px; padding: 18px; overflow: hidden;
  border-radius: 20px; background: var(--app); color: var(--ink); text-align: left;
}
.vig * { box-sizing: border-box; }
.vig .lucide { width: 1em; height: 1em; stroke-width: 2.2; flex: none; }
.vig__dot { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 12px; }
.vig__pill {
  position: absolute; left: 50%; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px;
  border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; white-space: nowrap;
  transform: translateX(-50%); animation: vigPop 6s var(--e) infinite;
}
@keyframes vigPop { 0%, 42% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.9); } 48% { opacity: 1; transform: translateX(-50%) scale(1.06); } 52%, 88% { opacity: 1; transform: translateX(-50%) scale(1); } 96%, 100% { opacity: 0; transform: translateX(-50%) translateY(4px); } }

/* 1. Documento: leitura do documento e campos extraídos */
.vig--doc { justify-content: flex-start; padding-left: 22px; }
.vig__id { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 10px; width: 170px; padding: 12px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.vig__id img { width: 52px; height: 64px; border-radius: 8px; object-fit: cover; }
.vig__id i.ln { display: block; height: 7px; margin-bottom: 7px; border-radius: 4px; background: var(--beige-2); }
.vig__id i.ln:nth-child(1) { width: 85%; } .vig__id i.ln:nth-child(2) { width: 60%; } .vig__id i.ln:nth-child(3) { width: 72%; } .vig__id i.ln:nth-child(4) { width: 44%; }
.vig__scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--orange); box-shadow: 0 0 10px rgba(255, 81, 20, .7); animation: vigScan 6s var(--e) infinite; }
@keyframes vigScan { 0% { top: 6%; opacity: 0; } 6% { opacity: 1; } 40% { top: 94%; opacity: 1; } 46%, 100% { top: 94%; opacity: 0; } }
.vig__fields { display: flex; flex-direction: column; gap: 8px; }
.vig__field { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; animation: vigField 6s var(--e) infinite; }
.vig__field .vig__dot { width: 22px; height: 22px; }
.vig__field:nth-child(1) { animation-delay: 0s; } .vig__field:nth-child(2) { animation-delay: .35s; } .vig__field:nth-child(3) { animation-delay: .7s; }
@keyframes vigField { 0%, 30% { opacity: 0; transform: translateX(-8px); } 38%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }

/* 2. Prova de vida: rosto no oval, leitura e confirmação */
.vig__oval { position: relative; width: 104px; height: 134px; margin-top: -20px; }
.vig__oval > span { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 3px solid var(--orange); }
.vig__oval img { width: 100%; height: 100%; object-fit: cover; }
.vig__oval i.c { position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink); }
.vig__oval i.c:nth-of-type(1) { top: -9px; left: -9px; border-width: 2.5px 0 0 2.5px; border-top-left-radius: 6px; }
.vig__oval i.c:nth-of-type(2) { top: -9px; right: -9px; border-width: 2.5px 2.5px 0 0; border-top-right-radius: 6px; }
.vig__oval i.c:nth-of-type(3) { bottom: -9px; left: -9px; border-width: 0 0 2.5px 2.5px; border-bottom-left-radius: 6px; }
.vig__oval i.c:nth-of-type(4) { bottom: -9px; right: -9px; border-width: 0 2.5px 2.5px 0; border-bottom-right-radius: 6px; }
.vig__oval b.s { position: absolute; left: 14%; right: 14%; height: 2px; background: var(--orange); box-shadow: 0 0 10px rgba(255, 81, 20, .7); animation: vigLive 2.2s var(--e) infinite alternate; }
@keyframes vigLive { from { top: 16%; } to { top: 84%; } }

/* 3. Biometria: foto do documento ligada ao rosto pelo fio */
.vig--bio { gap: 0; padding-bottom: 46px; }
.vig__docface { width: 70px; height: 88px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 4px var(--beige); }
.vig__fio { width: 64px; height: 2.5px; border-radius: 2px; background: linear-gradient(90deg, #FF0066, #FF7F00); transform-origin: 0 50%; animation: vigFio 6s var(--e) infinite; }
@keyframes vigFio { 0%, 8% { transform: scaleX(0); } 36%, 90% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
.vig--bio .vig__oval { width: 80px; height: 104px; margin: 0; }

/* 4. KYB: empresa e sócios verificados um a um */
.vig--kyb { gap: 0; height: 180px; }
.vig__co { display: flex; align-items: center; gap: 10px; width: 190px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.vig__co .vig__dot { width: 36px; height: 36px; font-size: 16px; }
.vig__co b { display: block; font-size: 13px; font-weight: 500; }
.vig__co small { font-size: 11px; color: var(--muted); }
.vig--kyb .vig__fio { width: 44px; }
.vig__people { display: flex; flex-direction: column; gap: 8px; }
.vig__p { position: relative; display: flex; align-items: center; gap: 8px; width: 190px; height: 38px; padding: 0 10px 0 6px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 12px; font-weight: 500; }
.vig__ini { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--beige); font-size: 10px; }
.vig__tag { position: absolute; right: 8px; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 10.5px; font-weight: 500; }
.vig__tag--wait { background: var(--beige); color: var(--muted); animation: vigWait 6s var(--e) infinite; }
.vig__tag--ok { background: var(--ink); color: #fff; opacity: 0; animation: vigOk 6s var(--e) infinite; }
.vig__p:nth-child(2) .vig__tag { animation-delay: .5s; } .vig__p:nth-child(3) .vig__tag { animation-delay: 1s; }
@keyframes vigWait { 0%, 30% { opacity: 1; } 34%, 92% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes vigOk { 0%, 30% { opacity: 0; transform: scale(.8); } 36% { opacity: 1; transform: scale(1.08); } 40%, 90% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }

/* 5. Doclink: link enviado e documento recebido sem envio manual */
.vig--link { gap: 0; height: 180px; }
.vig__send { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.vig__send .vig__dot { width: 28px; height: 28px; font-size: 14px; animation: vigPulse 2s ease-in-out infinite; }
@keyframes vigPulse { 50% { box-shadow: 0 0 0 7px rgba(255, 81, 20, .16); } }
.vig--link .vig__fio { width: 56px; }
.vig__got { position: relative; width: 200px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); animation: vigGot 6s var(--e) infinite; }
.vig__got-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.vig__got-h .vig__dot { background: var(--beige); color: var(--ink); width: 28px; height: 28px; font-size: 14px; }
.vig__got-h .ok { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 12px; animation: vigTick 6s var(--e) infinite; }
.vig__bar { height: 6px; margin-top: 12px; border-radius: 3px; background: var(--beige); overflow: hidden; }
.vig__bar i { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--orange); transform-origin: 0 50%; animation: vigBar 6s var(--e) infinite; }
.vig__got small { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
@keyframes vigGot { 0%, 22% { opacity: 0; transform: translateX(16px); } 32%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes vigBar { 0%, 30% { transform: scaleX(0); } 55%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes vigTick { 0%, 55% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.15); } 64%, 90% { opacity: 1; transform: scale(1); } 98%, 100% { opacity: 0; } }

/* 6. Antifraude transacional: transações passando, uma barrada */
.vig--feed { display: block; height: 100%; min-height: 230px; margin: 0; padding: 0 16px; border-radius: 20px; }
.vig__feed { position: absolute; left: 16px; right: 16px; top: 0; display: flex; flex-direction: column; gap: 8px; animation: vigFeed 12s linear infinite; }
.vig__row { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 8px; border-radius: 14px; background: var(--card); font-size: 12.5px; flex: none; }
.vig__row .vig__dot { background: var(--beige); color: var(--ink); width: 28px; height: 28px; font-size: 14px; }
.vig__row b { font-weight: 500; }
.vig__row span.m { color: var(--muted); }
.vig__row em { margin-left: auto; font-style: normal; height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--beige); color: var(--muted); font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.vig__row.is-hit { position: relative; background: var(--tint); box-shadow: var(--shadow); }
.vig__row.is-hit::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); }
.vig__row.is-hit .vig__dot { background: var(--orange); color: #fff; }
.vig__row.is-hit em { background: var(--orange); color: #fff; }
@keyframes vigFeed { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.vig--feed::before, .vig--feed::after { content: ""; position: absolute; left: 0; right: 0; height: 36px; z-index: 1; pointer-events: none; }
.vig--feed::before { top: 0; background: linear-gradient(var(--app), rgba(244, 238, 232, 0)); }
.vig--feed::after { bottom: 0; background: linear-gradient(rgba(244, 238, 232, 0), var(--app)); }

@media (prefers-reduced-motion: reduce) {
  .vig *, .vig *::before { animation: none !important; }
  .vig__pill, .vig__field, .vig__got, .vig__tag--ok, .vig__got-h .ok { opacity: 1 !important; }
  .vig__tag--wait { opacity: 0 !important; }
  .vig__scan { display: none; }
}
.bento__window--vig { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; overflow: hidden; border-radius: 20px; }
/* ajustes de medida das vinhetas */
.vig__id > div { width: 84px; min-width: 84px; padding-top: 4px; }
.vig__id i.ln { width: auto !important; max-width: none; }
.vig__id i.ln:nth-child(1) { margin-right: 6px; } .vig__id i.ln:nth-child(2) { margin-right: 26px; } .vig__id i.ln:nth-child(3) { margin-right: 14px; } .vig__id i.ln:nth-child(4) { margin-right: 40px; }
.vig__co { width: 176px; }
.vig__co b { line-height: 1.25; }
.vig__p { width: 228px; }
.vig__p > span:nth-child(2), .vig__p { white-space: nowrap; }
.vig__co small { white-space: nowrap; }
@media (max-width: 640px) {
  .vig { height: auto; min-height: 190px; }
  .vig--kyb, .vig--link { flex-direction: column; gap: 0; padding: 18px 14px; }
  .vig--kyb .vig__fio, .vig--link .vig__fio { width: 2.5px; height: 18px; background: linear-gradient(180deg, #FF0066, #FF7F00); transform-origin: 50% 0; animation-name: vigFioV; }
  .vig__co, .vig__p, .vig__got { width: 100%; max-width: 260px; }
  .vig--doc { gap: 10px; padding-left: 14px; }
  .vig__id { width: 140px; grid-template-columns: 44px 1fr; }
  .vig__id img { width: 44px; height: 56px; }
  .vig__id > div { width: 60px; min-width: 60px; }
  .vig__field { font-size: 11px; }
  .vig--feed { min-height: 260px; }
}
@keyframes vigFioV { 0%, 8% { transform: scaleY(0); } 36%, 90% { transform: scaleY(1); } 98%, 100% { transform: scaleY(0); } }
@media (max-width: 640px) {
  .vig__people { width: 100%; align-items: center; }
  .vig__row b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vig__row span.m { display: none; }
}

/* Vinhetas reagem à largura do próprio card: sem espaço para lado a lado, empilham (qualquer tela) */
.bento__card { container-type: inline-size; }
@container (max-width: 560px) {
  .vig--kyb, .vig--link { flex-direction: column; gap: 0; height: auto; min-height: 190px; padding: 18px 14px; }
  .vig--kyb .vig__fio, .vig--link .vig__fio { width: 2.5px; height: 18px; background: linear-gradient(180deg, #FF0066, #FF7F00); transform-origin: 50% 0; animation-name: vigFioV; }
  .vig__co, .vig__p, .vig__got { width: 100%; max-width: 260px; }
  .vig__people { width: 100%; align-items: center; }
}
@container (max-width: 380px) {
  .vig--doc { gap: 10px; padding-left: 14px; }
  .vig__id { width: 140px; grid-template-columns: 44px 1fr; }
  .vig__id img { width: 44px; height: 56px; }
  .vig__id > div { width: 60px; min-width: 60px; }
  .vig__field { font-size: 11px; }
}
/* Antifraude: o painel das transações fica dentro do card, com respiro, em vez de vazar pelas bordas */
.bento__window--vig { margin: 0 !important; border: 0 !important; border-radius: 20px !important; min-height: 240px; }
.bento__window--vig .vig--feed { position: absolute; inset: 0; height: auto; min-height: 0; }
