/* ==========================================================================
   TaxGold DeRE — telas de acesso · "Entrada institucional"
   Mesma família visual da entrada do eSocial (esocial.taxgold.com.br):
   marinho #102541 para texto forte, dourado metálico do logotipo como acento.
   À esquerda, o palco da marca (arcos do "G" do logotipo e a vitrine animada);
   à direita, o formulário. Carregado depois do app.css, só nestas telas.

   Movimento: entrada curta e orquestrada (uma vez), vitrine em ciclo com
   pausa, e dois efeitos ambientais discretos no palco (arcos girando bem
   devagar e o brilho que acompanha o ponteiro). Tudo some com
   prefers-reduced-motion: reduce.
   ========================================================================== */

:root {
  --ac-ink: #102541;
  --ac-ink-2: #1a3a64;
  --ac-noite: #0a172a;
  --ac-texto: #1c2738;
  --ac-suave: #5a6880;
  --ac-sutil: #66738a;
  --ac-papel: #faf9f6;
  --ac-linha: #e6e8ec;
  --ac-linha-2: #cfd6e0;

  --ac-ouro-1: #e8c46e;
  --ac-ouro-2: #c99a3e;
  --ac-ouro: #b8862b;
  --ac-ouro-tinta: #7f560f;
  --ac-ouro-claro: #fbf5e6;
  --ac-ouro-grad: linear-gradient(135deg, #eed39a 0%, #d9ae57 48%, #bf8e32 100%);

  --ac-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ac-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --ac-curva: cubic-bezier(.2, .7, .2, 1);
  --ac-foco: 0 0 0 4px rgba(201, 154, 62, .24);
}

body.acesso-pagina {
  margin: 0;
  min-height: 100vh;
  background: var(--ac-papel);
  color: var(--ac-texto);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   Estrutura
   ========================================================================== */
.ac-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  min-height: 100vh;
}
.ac--largo .ac-shell { grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); }

.ac-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  padding: 28px clamp(24px, 5vw, 72px) 24px;
}
.ac-main-topo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
  min-height: 40px;
  color: var(--ac-suave);
  font-size: .88rem;
}
.ac-main-corpo {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 36px 0;
}
.ac-cartao { width: 100%; max-width: 410px; }
.ac--largo .ac-cartao { max-width: 580px; }

.ac-rodape {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--ac-linha);
  color: var(--ac-sutil);
  font-size: .8rem;
}
.ac-rodape nav,
.ac-rodape-legal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; }
.ac-rodape a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--ac-suave);
  text-decoration: none;
  transition: color .15s var(--ac-curva);
}
.ac-rodape a:hover { color: var(--ac-ink); text-decoration: none; }
.ac-rodape .ic { width: 15px; height: 15px; }

/* ==========================================================================
   Palco da marca
   ========================================================================== */
.ac-palco {
  /* parado, o brilho fica junto do dourado do canto; com o mouse, ele segue o ponteiro */
  --mx: 88%;
  --my: 4%;
  position: sticky;
  top: 0;
  order: -1;
  align-self: start;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: #eef2f7;
  background:
    radial-gradient(58% 46% at 84% 10%, rgba(232, 196, 110, .2) 0%, rgba(232, 196, 110, 0) 70%),
    radial-gradient(120% 95% at 92% 0%, #1d3a63 0%, #102541 46%, #0a172a 100%);
  isolation: isolate;
}
/* grade arquitetônica, quase invisível, que some nas bordas */
.ac-palco::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 65% at 28% 42%, #000 20%, transparent 78%);
  mask-image: radial-gradient(75% 65% at 28% 42%, #000 20%, transparent 78%);
}
/* textura de papel fotográfico */
.ac-palco::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
/* brilho dourado que acompanha o ponteiro (o acesso.js atualiza --mx e --my) */
.ac-brilho {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(480px circle at var(--mx) var(--my), rgba(238, 205, 128, .1), rgba(238, 205, 128, 0) 62%);
  mix-blend-mode: screen;
  transition: opacity .6s var(--ac-curva);
}
/* os arcos do "G" do logotipo */
.ac-arcos {
  position: absolute;
  right: -22%;
  bottom: -34%;
  z-index: -1;
  width: min(1040px, 125%);
  height: auto;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, .14) 0%, rgba(0, 0, 0, .14) 46%, #000 80%);
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, .14) 0%, rgba(0, 0, 0, .14) 46%, #000 80%);
}
.ac-arcos .arco {
  fill: none;
  stroke: url(#acOuro);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 18;
  transform-box: view-box;
  transform-origin: 50% 50%;
}
.ac-arcos .a1 { stroke-width: 1.6; opacity: .55; }
.ac-arcos .a2 { stroke-width: 1.2; opacity: .3; }
.ac-arcos .a3 { stroke-width: 1; opacity: .16; }

.ac-palco-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px clamp(32px, 4.6vw, 76px) 32px;
  container-type: inline-size;
}
.ac-palco-topo { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.ac-palco-logo { display: inline-block; }
.ac-palco-logo img { display: block; width: auto; height: 34px; }
.ac-palco-produto {
  padding: .22rem .65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: #c9d3e0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.ac-palco-corpo {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  max-width: 560px;
  padding: 28px 0;
}
.ac-palco-rodape {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  color: #9fb0c6;
  font-size: .82rem;
}
.ac-palco-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.ac-palco-nota { margin: 0; color: #8fa1b8; font-size: .76rem; }

.ac-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  color: var(--ac-ouro-1);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ac-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ac-ouro-grad);
}
.ac-display {
  margin: .95rem 0 1rem;
  color: #fff;
  font-size: clamp(2.05rem, 1.15rem + 2.35vw, 3.35rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.ac-display em {
  padding-right: .06em;
  font-family: var(--ac-serif);
  font-size: 1.1em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  /* simétrico: em 0% mostra claro → escuro; o reflexo desliza para 100% e volta */
  background: linear-gradient(100deg, #f5e3b5 0%, #e5c272 21%, #c99a3e 50%, #e5c272 75%, #f5e3b5 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ac-lede {
  max-width: 46ch;
  margin: 0;
  color: #b7c3d4;
  font-size: 1.02rem;
  line-height: 1.6;
}

/* fatos sobre o sistema */
.ac-fatos { display: grid; gap: .7rem; max-width: 470px; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.ac-fatos li { display: flex; align-items: center; gap: .75rem; color: #c3cedc; font-size: .9rem; }
.ac-fatos .ic {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 9px;
  background: rgba(232, 196, 110, .1);
  box-shadow: inset 0 0 0 1px rgba(232, 196, 110, .22);
  color: var(--ac-ouro-1);
}

/* passos (cadastro) */
.ac-passos { display: grid; max-width: 470px; margin: 2rem 0 0; padding: 0; list-style: none; }
.ac-passos li { position: relative; display: flex; gap: .95rem; padding-bottom: 1.35rem; }
.ac-passos li:last-child { padding-bottom: 0; }
.ac-passos li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: 4px;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(232, 196, 110, .55), rgba(232, 196, 110, .08));
}
.ac-passos .n {
  display: grid;
  flex: none;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: rgba(232, 196, 110, .1);
  box-shadow: inset 0 0 0 1px rgba(232, 196, 110, .35);
  color: var(--ac-ouro-1);
  font-family: var(--ac-serif);
  font-size: 1.15rem;
  font-style: italic;
}
.ac-passos b { display: block; margin-top: .3rem; color: #fff; font-weight: 650; }
.ac-passos div > span { color: #aebbcd; font-size: .9rem; }

/* pílulas do rodapé do palco: site e WhatsApp */
.ac-pilula {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .35rem .95rem .35rem .4rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: #e6ecf3;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s var(--ac-curva), border-color .18s var(--ac-curva), transform .18s var(--ac-curva);
}
.ac-pilula:hover { text-decoration: none; color: #fff; transform: translateY(-1px); }
.ac-pilula:focus-visible { outline: 2px solid var(--ac-ouro-1); outline-offset: 3px; }
.ac-pilula-icone { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.ac-pilula-icone .ic { width: 15px; height: 15px; }
.ac-pilula-site:hover { border-color: rgba(232, 196, 110, .45); background: rgba(232, 196, 110, .08); }
.ac-pilula-site .ac-pilula-icone { background: var(--ac-ouro-grad); color: #1d1404; }
.ac-pilula-whats { border-color: rgba(37, 211, 102, .35); background: rgba(37, 211, 102, .08); }
.ac-pilula-whats:hover { border-color: rgba(37, 211, 102, .65); background: rgba(37, 211, 102, .14); }
.ac-pilula-whats .ac-pilula-icone { background: #25d366; color: #fff; }
.ac-pilula-texto { display: flex; flex-direction: column; line-height: 1.15; color: #aebbcd; font-size: .68rem; font-weight: 600; }
.ac-pilula-texto b { color: #fff; font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Vitrine animada do palco: Excel → DeRE e Apuração IBS/CBS
   Estado padrão = estado final (sem JS ou com "reduzir movimento" fica nele);
   as animações só rodam na cena ativa e recomeçam a cada troca.
   ========================================================================== */
.ac-vitrine-lugar { margin: 1.9rem 0 0; }
.vt {
  position: relative;
  max-width: 480px;
  padding: .85rem .9rem .95rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.vt-abas { display: none; align-items: center; gap: .3rem; margin-bottom: .8rem; }
.is-viva .vt-abas { display: flex; }
.vt-aba {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .75rem .5rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9fb0c6;
  font: inherit;
  font-size: .76rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .15s var(--ac-curva), color .15s var(--ac-curva);
}
.vt-aba .ic { width: 14px; height: 14px; }
.vt-aba:hover { color: #e6ecf3; background: rgba(255, 255, 255, .05); }
.vt-aba[aria-selected="true"] { background: rgba(232, 196, 110, .12); color: #f3dfae; box-shadow: inset 0 0 0 1px rgba(232, 196, 110, .25); }
.vt-aba::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--ac-ouro-grad);
  transform: scaleX(0);
  transform-origin: left;
}
.vt-aba:focus-visible,
.vt-pausa:focus-visible { outline: 2px solid var(--ac-ouro-1); outline-offset: 2px; }
.vt-pausa {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: transparent;
  color: #c9d3e0;
  cursor: pointer;
}
.vt-pausa .ic { width: 13px; height: 13px; }
.vt-pausa:hover { color: #fff; border-color: rgba(232, 196, 110, .5); }

.vt-cenas { display: grid; }
.vt-cena { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .45s var(--ac-curva), visibility 0s linear .45s; }
.vt-cena.is-ativa { opacity: 1; visibility: visible; transition: opacity .45s var(--ac-curva); }
.vt-legenda { margin: .75rem .15rem 0; color: #aebbcd; font-size: .8rem; line-height: 1.5; }

.vt-palco {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 150px) 34px minmax(0, 1fr);
  align-items: center;
  gap: 0 .3rem;
  padding-bottom: 50px;
}
.vt-planilha,
.vt-diag {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(10, 23, 42, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.vt-planilha-topo { display: flex; align-items: center; gap: .35rem; padding: .45rem .55rem; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #dfe6ef; font-size: .62rem; font-weight: 650; white-space: nowrap; }
.vt-planilha-topo .ic { width: 13px; height: 13px; color: #5fd29a; }
.vt-diag .vt-planilha-topo .ic { color: var(--ac-ouro-1); }
.vt-grade { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 6px 5px; padding: .5rem .55rem .6rem; }
.vt-grade .h { color: #8fa1b8; font-size: .52rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.vt-grade i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .18); transform-origin: left; }
.vt-grade i:nth-child(3n + 3) { background: rgba(232, 196, 110, .45); }
.vt-varredura { position: absolute; left: 0; right: 0; top: 30px; height: 18px; background: linear-gradient(180deg, rgba(232, 196, 110, 0), rgba(232, 196, 110, .28), rgba(232, 196, 110, 0)); opacity: 0; pointer-events: none; }

.vt-fluxo { position: relative; height: 2px; margin: 0 .2rem; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(232, 196, 110, .75) 0 6px, transparent 6px 11px); }
.vt-fluxo span { position: absolute; right: -3px; top: -4px; width: 0; height: 0; border-left: 7px solid rgba(232, 196, 110, .85); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

.vt-eventos { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.vt-eventos li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: .4rem;
  padding: .45rem .55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  color: #c9d3e0;
  font-size: .72rem;
}
.vt-eventos b { color: #fff; font-size: .72rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.vt-eventos span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-troca { display: inline-grid; overflow: visible !important; }
.vt-troca > * { grid-area: 1 / 1; justify-self: end; }
.vt-troca .ini { opacity: 0; }
.vt-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .5rem; border-radius: 999px; font-size: .62rem; font-weight: 650; white-space: nowrap; }
.vt-chip.ok { background: rgba(52, 199, 140, .14); color: #8fe3c0; box-shadow: inset 0 0 0 1px rgba(52, 199, 140, .26); }
.vt-chip.info { background: rgba(120, 165, 230, .14); color: #b9d0f4; box-shadow: inset 0 0 0 1px rgba(120, 165, 230, .26); }
.vt-chip.ouro { background: rgba(232, 196, 110, .16); color: #f0d38f; box-shadow: inset 0 0 0 1px rgba(232, 196, 110, .3); }

.vt-selo {
  position: absolute;
  right: 6px;
  bottom: 2px;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .8rem .5rem .55rem;
  border-radius: 12px;
  background: #fff;
  color: var(--ac-texto);
  box-shadow: 0 22px 40px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(16, 37, 65, .06);
  font-size: .68rem;
  transform: rotate(-2deg);
}
.vt-selo .s { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ac-ouro-grad); color: #1d1404; }
.vt-selo .s .ic { width: 14px; height: 14px; }
.vt-selo b { display: block; color: var(--ac-ink); font-size: .72rem; }
.vt-selo code { color: #45536a; font-family: var(--ac-mono); font-size: .62rem; }

/* as barras do logotipo: a apuração do período */
.vt-barras { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 60px; padding: .5rem .7rem .2rem; }
.vt-barras span { flex: 1; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #eed39a, #c99a3e 70%, #8b5e12); transform-origin: bottom; }
.vt-barras .b1 { height: 38%; }
.vt-barras .b2 { height: 62%; }
.vt-barras .b3 { height: 92%; }
.vt-barras svg { position: absolute; inset: .5rem .5rem .3rem; width: calc(100% - 1rem); height: calc(100% - .8rem); overflow: visible; }
.vt-barras path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.vt-diag-rotulo { padding: .35rem .6rem .55rem; color: #f0d38f; font-size: .62rem; font-weight: 650; }

@media (prefers-reduced-motion: no-preference) {
  /* cena 1: a planilha é lida, os eventos passam a aceitos e chega o retorno */
  .is-ativa .vt-planilha,
  .is-ativa .vt-diag { animation: ac-sobe .5s var(--ac-curva) both; }
  .is-ativa .vt-grade .l1 { animation: ac-cresce .45s var(--ac-curva) both .35s; }
  .is-ativa .vt-grade .l2 { animation: ac-cresce .45s var(--ac-curva) both .55s; }
  .is-ativa .vt-grade .l3 { animation: ac-cresce .45s var(--ac-curva) both .75s; }
  .is-ativa .vt-grade .l4 { animation: ac-cresce .45s var(--ac-curva) both .95s; }
  .is-ativa .vt-varredura { animation: ac-varre 1.3s ease-in-out both .4s; }
  .is-ativa .vt-fluxo { animation: ac-fluxo .6s linear 3 1.3s, ac-aparece .3s ease both 1.2s; }
  .is-ativa .vt-eventos .e1 { animation: ac-entra .45s var(--ac-curva) both 1.7s; }
  .is-ativa .vt-eventos .e2 { animation: ac-entra .45s var(--ac-curva) both 2.1s; }
  .is-ativa .vt-eventos .e3 { animation: ac-entra .45s var(--ac-curva) both 2.5s; }
  .is-ativa .e1 .ini { animation: ac-some .3s ease both 2.6s; }
  .is-ativa .e1 .fim { animation: ac-aparece .3s ease both 2.6s; }
  .is-ativa .e2 .ini { animation: ac-some .3s ease both 3s; }
  .is-ativa .e2 .fim { animation: ac-aparece .3s ease both 3s; }
  .is-ativa .e3 .ini { animation: ac-some .3s ease both 3.4s; }
  .is-ativa .e3 .fim { animation: ac-aparece .3s ease both 3.4s; }
  .is-ativa .vt-selo { animation: ac-selo .55s var(--ac-curva) both 3.9s; }
  /* cena 2: as barras do logotipo sobem e a seta se desenha */
  .is-ativa .vt-barras .b1 { animation: ac-ergue .55s var(--ac-curva) both .35s; }
  .is-ativa .vt-barras .b2 { animation: ac-ergue .55s var(--ac-curva) both .55s; }
  .is-ativa .vt-barras .b3 { animation: ac-ergue .55s var(--ac-curva) both .75s; }
  .is-ativa .vt-barras path { animation: ac-traco .7s var(--ac-curva) both 1.05s; }
  .is-ativa .vt-barras .ponta { animation-delay: 1.6s; animation-duration: .3s; }
  .is-ativa .vt-diag-rotulo { animation: ac-aparece .4s ease both 1.5s; }
  /* o tempo da cena: a barrinha dourada da aba ativa (o acesso.js troca a cena no fim dela) */
  .is-viva .vt-aba[aria-selected="true"]::after { animation: ac-progresso 7.5s linear forwards; }
  .vt:hover .vt-aba::after,
  .vt:has(:focus-visible) .vt-aba::after,
  .vt.is-pausada .vt-aba::after { animation-play-state: paused; }
}
@keyframes ac-cresce { from { transform: scaleX(0); } }
@keyframes ac-ergue { from { transform: scaleY(0); } }
@keyframes ac-varre { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(78px); } }
@keyframes ac-fluxo { from { background-position: 0 0; } to { background-position: 11px 0; } }
@keyframes ac-entra { from { opacity: 0; transform: translateX(-10px); } }
@keyframes ac-aparece { from { opacity: 0; } }
@keyframes ac-some { from { opacity: 1; } to { opacity: 0; } }
@keyframes ac-selo { from { opacity: 0; transform: translateY(10px) rotate(-6deg) scale(.96); } }
@keyframes ac-progresso { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ==========================================================================
   Formulário
   ========================================================================== */
.ac-cabecalho { margin-bottom: 1.5rem; }
.ac-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ac-ouro-tinta);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ac-kicker .ic { width: 15px; height: 15px; }
.ac-titulo,
.acesso__cabecalho h1 {
  margin: .55rem 0 .45rem;
  color: var(--ac-ink);
  font-size: clamp(1.7rem, 1.35rem + 1vw, 2.1rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.ac-sub,
.acesso__cabecalho p { margin: 0; color: var(--ac-suave); font-size: .95rem; }

/* telas de acesso que ainda usam a marcação antiga (2FA, senha, e-mail) */
.acesso__cabecalho { margin-bottom: 1.5rem; }
.acesso__cabecalho h1 { margin-top: 0; }
.acesso__cabecalho strong { color: var(--ac-ink); }
.acesso__rodape { margin: 1.5rem 0 0; color: var(--ac-suave); font-size: .9rem; text-align: center; }
.ac-cartao > .btn--bloco,
.ac-cartao form > .btn--bloco { margin-top: .4rem; }

.ac-campo { display: flex; flex-direction: column; gap: .4rem; min-width: 0; margin-bottom: 1.05rem; }
.ac-campo > label,
.ac-cartao .rotulo { color: #2b3a52; font-size: .82rem; font-weight: 600; }
.ac-controle { position: relative; }
.ac-controle > .ac-lead {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #8793a6;
  pointer-events: none;
  transition: color .15s var(--ac-curva);
}
.ac-cartao .campo {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ac-linha-2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 37, 65, .04);
  font-size: .95rem;
  transition: border-color .15s var(--ac-curva), box-shadow .15s var(--ac-curva), background-color .15s var(--ac-curva);
}
.ac-controle > .campo { padding-left: 42px; }
.ac-cartao .campo--codigo { height: 58px; font-size: 1.5rem; }
.ac-cartao .campo::placeholder { color: #98a3b3; }
.ac-cartao .campo:hover:not(:focus):not([readonly]) { border-color: #b3bfce; }
.ac-cartao .campo:focus { outline: none; border-color: var(--ac-ouro-2); box-shadow: var(--ac-foco); }
.ac-controle:focus-within > .ac-lead { color: var(--ac-ouro); }
.ac-cartao .campo[aria-invalid="true"],
.ac-campo--erro .campo,
.ac-cartao .campo-grupo--erro .campo { border-color: #e3a1ab; background: #fffbfb; }
.ac-cartao .campo[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 53, .12); }
.ac-controle:has(.ac-olho) > .campo { padding-right: 50px; }
.ac-olho {
  position: absolute;
  right: 5px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #66738a;
  cursor: pointer;
  transition: background-color .15s var(--ac-curva), color .15s var(--ac-curva);
}
.ac-olho .ic { width: 18px; height: 18px; }
.ac-olho:hover { background: #f1f4f8; color: var(--ac-ink); }
.ac-olho:focus-visible { outline: none; box-shadow: var(--ac-foco); }
.ac-caps { display: inline-flex; align-items: center; gap: .35rem; color: #7a4b06; font-size: .78rem; font-weight: 600; }
.ac-caps .ic { width: 14px; height: 14px; }
.ac-erro { display: inline-flex; align-items: flex-start; gap: .35rem; font-size: .8rem; }
.ac-erro .ic { flex: none; width: 15px; height: 15px; margin-top: .12rem; }
.ac-campo .ajuda { font-size: .78rem; line-height: 1.45; }

.ac-link {
  color: var(--ac-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(184, 134, 43, .45);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color .15s var(--ac-curva), color .15s var(--ac-curva);
}
.ac-link:hover { color: var(--ac-ink-2); text-decoration-color: var(--ac-ouro); }
.ac-link-p { font-size: .84rem; }
.ac-link-voltar { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.ac-link-voltar .ic-volta { width: 16px; height: 16px; transform: rotate(180deg); transition: transform .18s var(--ac-curva); }
.ac-link-voltar:hover .ic-volta { transform: rotate(180deg) translateX(3px); }
.acesso-pagina .ac-cartao a:not(.ac-botao):not(.btn):not(.ac-link) { color: var(--ac-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(184, 134, 43, .45); text-underline-offset: 3px; }
.ac-link:focus-visible,
.ac-rodape a:focus-visible,
.ac-main-topo a:focus-visible { outline: 2px solid var(--ac-ouro-2); outline-offset: 2px; border-radius: 4px; }

/* lembrar e esqueci a senha na mesma linha */
.ac-opcoes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: -.15rem 0 1.15rem; }
.ac-marcar { display: flex; align-items: flex-start; gap: .6rem; color: var(--ac-texto); font-size: .86rem; cursor: pointer; }
.ac-marcar input { flex: none; width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--ac-ink); cursor: pointer; }
.ac-marcar input:focus-visible { outline: 2px solid var(--ac-ouro-2); outline-offset: 2px; }
.ac-termos { display: flex; flex-direction: column; gap: .4rem; margin: .2rem 0 1.2rem; }

/* botões */
.ac-botao,
.ac-cartao .btn--bloco {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  height: 50px;
  padding: 0 1.25rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .18s var(--ac-curva), background-color .18s var(--ac-curva), border-color .18s var(--ac-curva), transform .18s var(--ac-curva), filter .18s var(--ac-curva);
}
.ac-botao:hover { text-decoration: none; }
.ac-botao:focus-visible { outline: none; box-shadow: var(--ac-foco); }
.ac-botao .ic { width: 18px; height: 18px; }
.ac-botao-ouro,
.ac-cartao .btn--primario {
  margin-top: .4rem;
  border-color: #bf8e32;
  color: #1d1404;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 55%), var(--ac-ouro-grad);
  box-shadow: 0 1px 2px rgba(91, 60, 8, .25), 0 14px 26px -14px rgba(184, 134, 43, .85), inset 0 1px 0 rgba(255, 255, 255, .5);
}
/* reflexo que atravessa o botão dourado */
.ac-botao-ouro::before,
.ac-cartao .btn--primario::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%);
  pointer-events: none;
}
.ac-botao-ouro:hover,
.ac-cartao .btn--primario:hover { color: #1d1404; filter: brightness(1.04) saturate(1.06); box-shadow: 0 1px 2px rgba(91, 60, 8, .25), 0 18px 30px -14px rgba(184, 134, 43, .95), inset 0 1px 0 rgba(255, 255, 255, .55); }
.ac-botao-ouro:active { transform: translateY(1px); filter: none; }
.ac-botao-ouro:focus-visible { box-shadow: var(--ac-foco), 0 14px 26px -14px rgba(184, 134, 43, .85); }
.ac-botao .ic-seta { transition: transform .18s var(--ac-curva); }
.ac-botao:hover .ic-seta { transform: translateX(3px); }
.ac-botao-claro,
.ac-cartao .btn--contorno { border-color: var(--ac-linha-2); background: #fff; color: var(--ac-ink); box-shadow: 0 1px 2px rgba(16, 37, 65, .05); }
.ac-botao-claro:hover,
.ac-cartao .btn--contorno:hover { border-color: #b3bfce; background: #f6f8fb; color: var(--ac-ink); }
.ac-botao-claro .ic { color: var(--ac-ouro); }
.ac-cartao .btn[disabled] { opacity: 1; }
.ac-botao[aria-busy="true"],
.ac-cartao .btn[aria-busy="true"] { cursor: progress; opacity: .88; }
.ac-botao[aria-busy="true"] .ic-seta { display: none; }
.ac-botao[aria-busy="true"]::after,
.ac-cartao .btn[aria-busy="true"]::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ac-gira .7s linear infinite;
}
@keyframes ac-gira { to { transform: rotate(360deg); } }

.ac-divisor { display: flex; align-items: center; gap: .9rem; margin: 1.7rem 0 1rem; color: var(--ac-sutil); font-size: .8rem; }
.ac-divisor::before,
.ac-divisor::after { content: ""; flex: 1; height: 1px; background: var(--ac-linha); }

/* cadastro: seções e grade */
.ac-secao { min-width: 0; margin: 0 0 1.2rem; padding: 0; border: 0; }
.ac-secao legend {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  margin-bottom: .95rem;
  padding: 0;
  color: var(--ac-ink);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ac-secao legend .n {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ac-ink);
  color: var(--ac-ouro-1);
  font-size: .68rem;
  letter-spacing: 0;
}
.ac-secao legend::after { content: ""; flex: 1; height: 1px; background: var(--ac-linha); }
.ac-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 0 1rem; }
.ac-grade .ac-campo--largo { grid-column: 1 / -1; }

/* nota abaixo dos campos (regras da senha) */
.ac-nota {
  display: flex; align-items: flex-start; gap: .55rem;
  margin: -.2rem 0 0; padding: .7rem .85rem;
  border-radius: 12px;
  background: #f3f5f8; box-shadow: inset 0 0 0 1px var(--ac-linha);
  color: var(--ac-suave); font-size: .78rem; line-height: 1.5;
}
.ac-nota .ic { flex: none; width: 16px; height: 16px; margin-top: .1rem; color: var(--ac-ouro); }

/* força da senha e conferência */
.ac-medidor { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .15rem; }
.ac-medidor span { height: 4px; border-radius: 4px; background: #e4e8ef; transition: background-color .2s var(--ac-curva); }
.ac-medidor[data-nivel="1"] span:nth-child(-n + 1) { background: #b42335; }
.ac-medidor[data-nivel="2"] span:nth-child(-n + 2) { background: #c27c0e; }
.ac-medidor[data-nivel="3"] span:nth-child(-n + 3) { background: var(--ac-ouro-2); }
.ac-medidor[data-nivel="4"] span { background: #12734f; }
.ac-forca { min-height: 1.1em; color: var(--ac-sutil); font-size: .76rem; font-weight: 600; }
.ac-forca:empty { display: none; }
.ac-confere { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; }
.ac-confere .ic { width: 15px; height: 15px; }
.ac-confere.ok { color: #0b5a3d; }
.ac-confere.nao { color: #8f1b2a; }

/* avisos dentro do cartão */
.ac-cartao .mensagens { margin-bottom: 1.1rem; }
.ac-cartao .aviso { border-radius: 12px; font-size: .88rem; line-height: 1.5; }
.ac-cartao .aviso strong { display: block; margin-bottom: .1rem; }

/* ==========================================================================
   Movimento: entrada curta e orquestrada (uma vez) e efeitos ambientais
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .ac-arcos .arco { animation: ac-traco 1.9s var(--ac-curva) both, ac-orbita 140s linear infinite 1.9s; }
  .ac-arcos .a2 { animation-delay: .15s, 2.05s; animation-direction: normal, reverse; animation-duration: 1.9s, 190s; }
  .ac-arcos .a3 { animation-delay: .3s, 2.2s; animation-duration: 1.9s, 240s; }
  .ac-display em { animation: ac-reflexo 7s ease-in-out infinite 1.4s; }
  .ac-sobe { animation: ac-sobe .7s var(--ac-curva) both; }
  .ac-d1 { animation-delay: .08s; }
  .ac-d2 { animation-delay: .16s; }
  .ac-d3 { animation-delay: .24s; }
  .ac-d4 { animation-delay: .34s; }
  .ac-d5 { animation-delay: .44s; }
  .ac-cartao { animation: ac-sobe .55s var(--ac-curva) both .04s; }
  .ac-cartao .ac-campo,
  .ac-cartao .ac-opcoes,
  .ac-cartao form > .ac-botao { animation: ac-sobe .5s var(--ac-curva) both; }
  .ac-cartao .ac-campo:nth-of-type(1) { animation-delay: .12s; }
  .ac-cartao .ac-campo:nth-of-type(2) { animation-delay: .18s; }
  .ac-cartao .ac-opcoes { animation-delay: .24s; }
  .ac-cartao form > .ac-botao { animation-delay: .3s; }
  .ac-botao-ouro:hover::before,
  .ac-cartao .btn--primario:hover::before { transform: translateX(120%); transition: transform .8s var(--ac-curva); }
}
@keyframes ac-traco { from { stroke-dashoffset: 100; } }
@keyframes ac-orbita { to { transform: rotate(360deg); } }
@keyframes ac-sobe { from { opacity: 0; transform: translateY(14px); } }
@keyframes ac-reflexo { 0%, 70%, 100% { background-position: 0% 0; } 85% { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .ac-botao[aria-busy="true"]::after,
  .ac-cartao .btn[aria-busy="true"]::after { animation-duration: 1.6s; }
  .ac-brilho { display: none; }
  .acesso-pagina *,
  .acesso-pagina *::before,
  .acesso-pagina *::after { transition: none !important; }
}

/* ==========================================================================
   Telas menores e maiores
   ========================================================================== */
@media (min-width: 992px) and (max-height: 940px) {
  .ac-fatos { display: none; }
  .ac-vitrine-lugar { margin-top: 1.4rem; }
  .ac-passos li { padding-bottom: 1rem; }
}
/* telas largas: o formulário fica com largura fixa e o palco ganha espaço para a vitrine ao lado do texto */
@media (min-width: 1680px) {
  .ac-shell { grid-template-columns: minmax(0, 1fr) 640px; }
  .ac--largo .ac-shell { grid-template-columns: minmax(0, 1fr) 760px; }
}
@container (min-width: 900px) {
  .ac-palco-corpo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 470px);
    align-items: center;
    column-gap: clamp(40px, 5cqw, 80px);
    max-width: 1180px;
  }
  .ac-texto { max-width: 600px; }
  .ac-vitrine-lugar { margin: 0; }
  .vt { max-width: none; }
}
@media (min-width: 992px) and (max-height: 760px) {
  .ac-lede { display: none; }
}
@media (max-width: 991.98px) {
  .ac-shell,
  .ac--largo .ac-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .ac-palco { position: relative; height: auto; min-height: 0; }
  .ac-palco-inner { padding: 22px 20px 28px; }
  .ac-palco-logo img { height: 28px; }
  .ac-palco-corpo { padding: 22px 0 0; }
  .ac-display { margin: .7rem 0 0; font-size: clamp(1.55rem, 1.1rem + 2.4vw, 2.1rem); }
  .ac-lede,
  .ac-vitrine-lugar,
  .ac-fatos,
  .ac-passos,
  .ac-palco-rodape,
  .ac-brilho { display: none; }
  .ac-arcos { right: -55%; bottom: -120%; width: 150%; }
  .ac-main { min-height: 0; padding: 18px 20px 22px; }
  .ac-main-topo { justify-content: flex-start; min-height: 0; }
  .ac-main-corpo { align-items: flex-start; padding: 18px 0 32px; }
}
@media (max-width: 575.98px) {
  .ac-grade { grid-template-columns: minmax(0, 1fr); }
  .ac-titulo,
  .acesso__cabecalho h1 { font-size: 1.6rem; }
  .ac-rodape { justify-content: flex-start; }
  .ac-palco-produto { display: none; }
}
