/* Banner 4 da home: telas do Ackma Portal animadas.
   Cada tela é a captura real (dados de exemplo) com as partes que se mexem redesenhadas por cima. */
.ak-b4 { display: flex; flex-direction: column; gap: 14px; }
.ak-b4-mock { background: #fff; }
.ak-b4-stage { position: relative; }
.ak-b4-scene { position: relative; container-type: inline-size; overflow: hidden; }
.ak-b4-scene[hidden] { display: none; }
.ak-b4-scene.is-on { animation: akb4-in .5s ease both; }
.ak-b4-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ak-b4-scene > span, .ak-b4-scene > .ak-b4-toast { position: absolute; }

/* radar */
.ak-b4-dot { border-radius: 50%; transform: translate(-50%, -50%); }
.is-run .ak-b4-dot { animation: akb4-fly 1.1s var(--d) cubic-bezier(.2,.7,.2,1) both; }
.is-run .ak-b4-pulse { animation: akb4-fly 1.1s var(--d) cubic-bezier(.2,.7,.2,1) both, akb4-pulse 1.4s 2.6s ease-out 3; }

/* números redesenhados sobre a captura */
.ak-b4-num { display: flex; align-items: center; background: #fff; font-weight: 600; line-height: 1; padding-left: .25%; font-variant-numeric: tabular-nums; }
.ak-b4-pct { font-weight: 700; }

/* linhas da tabela que aparecem em sequência */
.ak-b4-mask { transform-origin: right center; transform: scaleX(0); }
.is-run .ak-b4-mask { animation: akb4-unmask var(--t) var(--d) cubic-bezier(.7,0,.2,1) both; }

/* vulnerabilidades */
.ak-b4-chip, .ak-b4-fix { display: flex; align-items: center; justify-content: center; font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; white-space: nowrap; }
.ak-b4-chip { border-radius: .4cqw; font-size: 1.32cqw; }
.is-run .ak-b4-chip { animation: akb4-pop .5s var(--d) cubic-bezier(.2,.7,.2,1) both; }
.ak-b4-fix { border-radius: .3cqw; font-size: .95cqw; background: #A40000; color: #fff; transition: background .6s; }
.ak-b4-fix.is-fixed { background: #118416; }
.is-run .ak-b4-chip.is-flash, .ak-b4-fix.is-flash { animation: akb4-flash 1s ease both; }
.ak-b4-ok.is-fixed { animation: akb4-ok 2.4s ease both; }

/* versões */
.ak-b4-line { transform-origin: left center; }
.is-run .ak-b4-line { animation: akb4-grow .8s var(--d) cubic-bezier(.2,.7,.2,1) both; }
.ak-b4-bar { display: flex; gap: .12cqw; border-radius: 1cqw; overflow: hidden; background: #fff; }
.ak-b4-bar i { display: block; height: 100%; border-radius: 1cqw; transition: width 1.2s var(--d) cubic-bezier(.2,.7,.2,1); }
.ak-b4-bar.is-late i { transition-duration: 1.8s; transition-delay: 0s; }

/* scorecards */
.ak-b4-track { border-radius: 1cqw; overflow: hidden; background: #ACEAAF; }
.ak-b4-track i { display: block; height: 100%; border-radius: 1cqw; background: #118416; }
.ak-b4-rpct { display: flex; align-items: center; justify-content: flex-end; font-weight: 700; font-size: .95cqw; line-height: 1; color: #118416; }

/* aviso flutuante */
.ak-b4-toast { right: 3cqw; bottom: 3cqw; display: flex; gap: 1.4cqw; align-items: center; padding: 1.4cqw 2cqw 1.4cqw 1.4cqw; border-radius: 1.2cqw; background: rgba(22,22,23,.92); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 2cqw 5cqw rgba(0,0,0,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #C7C7CC; font-size: 1.75cqw; line-height: 1.35; }
.ak-b4-toast strong { display: block; color: #fff; }
.ak-b4-toast-i { flex: none; display: flex; width: 4.4cqw; height: 4.4cqw; padding: 1cqw; border-radius: 1cqw; background: rgba(235,0,27,.16); color: #FF5A6A; }
.ak-b4-toast-i svg { width: 100%; height: 100%; }
.is-run .ak-b4-toast { animation: akb4-toast .6s 1.9s cubic-bezier(.2,.7,.2,1) both; }

/* abas abaixo da tela */
.ak-b4-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ak-b4-tab { min-height: 44px; padding: 0; border: 0; background: none; text-align: left; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: #8E8E93; transition: color .2s; }
.ak-b4-tab:hover, .ak-b4-tab.is-on { color: #fff; }
.ak-b4-tbar { display: block; height: 2px; margin-bottom: 10px; border-radius: 1px; overflow: hidden; background: rgba(255,255,255,.16); }
.ak-b4-tbar i { display: block; height: 100%; width: 0; background: #EB001B; }
.ak-b4-tab.is-on .ak-b4-tbar i { animation: akb4-fill var(--b4dur, 7.5s) linear both; }
.ak-b4.is-still .ak-b4-tab.is-on .ak-b4-tbar i { animation: none; width: 100%; }

@keyframes akb4-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes akb4-fly { from { transform: translate(calc(-50% + var(--fx)), calc(-50% + var(--fy))) scale(.4); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes akb4-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,82,249,.55); } 100% { box-shadow: 0 0 0 1.6cqw rgba(0,82,249,0); } }
@keyframes akb4-unmask { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes akb4-pop { from { transform: scale(.55); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes akb4-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes akb4-flash { 0% { filter: brightness(1.6) saturate(1.2); } 100% { filter: none; } }
@keyframes akb4-ok { 0% { background: rgba(17,132,22,0); } 25% { background: rgba(17,132,22,.16); } 100% { background: rgba(17,132,22,0); } }
@keyframes akb4-toast { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes akb4-fill { from { width: 0; } to { width: 100%; } }

@media (max-width: 600px) { .ak-b4-tab { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) {
  .ak-b4 *, .ak-b4 *::before { animation: none !important; transition: none !important; }
  .ak-b4-mask { display: none; }
}
