/* Ilustracao animada do hero (padrao v2): janela do app com indicador, grafico, lista com situacoes,
   notificacoes e anel de progresso. Os dados de cada pagina ficam no HTML; o movimento respeita prefers-reduced-motion. */
@property --hv-p { syntax: "<number>"; inherits: true; initial-value: 0; }

.hv { --hv-blue: #0062db; --hv-deep: #0041a3; position: relative; width: 100%; min-width: 0; max-width: 600px; margin: 0 0 0 auto; padding: 46px 30px 86px 30px; color: #0f172a; font-family: Inter, ui-sans-serif, system-ui, sans-serif; text-align: left; }
.hv * { box-sizing: border-box; }
.hv-glow { position: absolute; inset: 6% 4% 10% 12%; border-radius: 40px; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%), radial-gradient(circle at 80% 80%, rgba(56,189,248,.35), transparent 55%); filter: blur(30px); pointer-events: none; }

.hv-window { position: relative; background: #fff; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(2,22,64,.55), 0 0 0 1px rgba(255,255,255,.6); overflow: hidden; animation: hv-float 8s ease-in-out infinite; }
.hv-bar { display: flex; align-items: center; gap: 6px; padding: 12px 104px 12px 16px; border-bottom: 1px solid #eef2f7; background: #f8fafc; }
.hv-bar > i { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.hv-bar > span { margin-left: 8px; font-size: 12.5px; font-weight: 700; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #f0fdf4; color: #15803d; font-size: 11px; font-weight: 700; white-space: nowrap; }
.hv-live em { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; animation: hv-ping 1.8s ease-out infinite; }
.hv-body { padding: 18px 20px 40px; }

.hv-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.hv-kpi { position: relative; overflow: hidden; }
.hv-kpi small { display: block; font-size: 12px; font-weight: 600; color: #64748b; }
.hv-kpi strong { display: block; margin-top: 4px; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: #0f172a; white-space: nowrap; }
.hv-delta { display: inline-flex; margin-top: 8px; padding: 3px 9px; border-radius: 999px; background: #eff6ff; color: var(--hv-blue); font-size: 11.5px; font-weight: 700; }
.hv-kpi::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent); animation: hv-shine 6s ease-in-out infinite 1.5s; }

.hv-chart { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.hv-chart span { width: 14px; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #93c5fd, #dbeafe); transform-origin: bottom; animation: hv-grow .9s cubic-bezier(.2,.8,.2,1) both; }
.hv-chart span:nth-child(2) { animation-delay: .08s; } .hv-chart span:nth-child(3) { animation-delay: .16s; } .hv-chart span:nth-child(4) { animation-delay: .24s; }
.hv-chart span:nth-child(5) { animation-delay: .32s; } .hv-chart span:nth-child(6) { animation-delay: .40s; }
.hv-chart span:last-child { background: linear-gradient(180deg, var(--hv-blue), #60a5fa); animation: hv-grow .9s cubic-bezier(.2,.8,.2,1) .48s both, hv-breathe 3.2s ease-in-out 1.6s infinite; }

.hv-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.hv-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid #f1f5f9; animation: hv-in .6s ease both; }
.hv-list li:nth-child(1) { animation-delay: .5s; } .hv-list li:nth-child(2) { animation-delay: .65s; } .hv-list li:nth-child(3) { animation-delay: .8s; }
.hv-ico { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 10px; background: color-mix(in srgb, var(--c, #0062db) 12%, #fff); color: var(--c, #0062db); font-size: 11px; font-style: normal; font-weight: 800; }
.hv-list b { display: block; font-size: 13px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-list small { display: block; font-size: 11.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-list li > div { min-width: 0; }
.hv-list li > strong { font-size: 13px; font-weight: 700; white-space: nowrap; }
.hv-tag { position: relative; display: inline-grid; font-style: normal; }
.hv-tag > em { grid-area: 1 / 1; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; font-style: normal; white-space: nowrap; text-align: center; }
.is-ok { background: #f0fdf4; color: #15803d; } .is-wait { background: #fff7ed; color: #c2410c; } .is-late { background: #fef2f2; color: #dc2626; } .is-info { background: #eff6ff; color: #0062db; }
/* Situacao que muda sozinha (ex.: Aguardando -> Recebido). */
.hv-tag.is-swap > em:first-child { animation: hv-swap-out 8s ease-in-out infinite 2s; }
.hv-tag.is-swap > em:last-child { opacity: 0; animation: hv-swap-in 8s ease-in-out infinite 2s; }

.hv-toast { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; max-width: 250px; padding: 11px 14px; border-radius: 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); box-shadow: 0 22px 44px -22px rgba(2,22,64,.55), 0 0 0 1px rgba(226,232,240,.9); animation: hv-pop .7s cubic-bezier(.2,.9,.3,1.2) both, hv-float-s 6s ease-in-out infinite; }
.hv-toast small { display: block; font-size: 11px; font-weight: 600; color: #64748b; }
.hv-toast b { display: block; font-size: 13px; color: #0f172a; line-height: 1.3; }
.hv-tico { position: relative; flex: none; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 11px; }
.hv-tico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hv-tico::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 currentColor; opacity: .35; animation: hv-ring-ping 2.6s ease-out infinite 1.2s; }
.hv-t1 { left: 0; bottom: 30px; animation-delay: .9s, 1.6s; }
.hv-t2 { right: 0; bottom: 0; animation-delay: 1.4s, 2.4s; }

.hv-ring { position: absolute; z-index: 2; top: 0; right: 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 14px 10px; border-radius: 18px; background: linear-gradient(160deg, var(--hv-blue), var(--hv-deep)); color: #fff; box-shadow: 0 22px 44px -20px rgba(0,65,163,.8); animation: hv-pop .7s cubic-bezier(.2,.9,.3,1.2) 1.1s both, hv-float-s 7s ease-in-out 2s infinite; }
.hv-ring-dial { --hv-p: var(--p); position: relative; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(#fff calc(var(--hv-p) * 1%), rgba(255,255,255,.22) 0); animation: hv-fill 1.6s cubic-bezier(.2,.8,.2,1) 1.2s both; }
.hv-ring-dial::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--hv-deep); }
.hv-ring-dial b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.hv-ring small { font-size: 11px; font-weight: 700; color: #dbeafe; white-space: nowrap; }

@keyframes hv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hv-float-s { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes hv-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hv-breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
@keyframes hv-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes hv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hv-pop { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes hv-ping { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); } 100% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } }
@keyframes hv-ring-ping { 0% { box-shadow: 0 0 0 0 currentColor; opacity: .35; } 100% { box-shadow: 0 0 0 12px currentColor; opacity: 0; } }
@keyframes hv-fill { from { --hv-p: 0; } }
@keyframes hv-swap-out { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hv-swap-in { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 1120px) { .hv { margin: 8px auto 0; } }
@media (max-width: 640px) {
  .hv { padding: 46px 0 120px; }
  .hv-bar { padding-right: 80px; }
  .hv-body { padding-bottom: 20px; }
  .hv-kpi strong { font-size: 24px; }
  .hv-chart { height: 56px; gap: 4px; } .hv-chart span { width: 10px; }
  .hv-list li { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .hv-window { max-width: 100%; }
  .hv-chart span:nth-child(-n+2) { display: none; }
  .hv-list li > strong { display: none; }
  .hv-t1 { left: 0; bottom: 58px; } .hv-t2 { right: 0; bottom: 0; }
  .hv-ring { top: 0; right: 0; }
  .hv-toast { max-width: 82%; }
  .hv-ring { top: 2px; right: 0; padding: 9px 10px 8px; } .hv-ring-dial { width: 46px; height: 46px; } .hv-ring-dial b { font-size: 11.5px; letter-spacing: -.02em; } .hv-ring small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hv *, .hv *::before, .hv *::after { animation: none !important; }
  .hv-tag.is-swap > em:last-child { display: none; }
}

/* Foto com cards (Open Finance no cartao): os cards antigos passam a usar o visual das notificacoes. */
.hv-photo { position: relative; }
.hv-photo { padding: 0; }
.hv-photo .hv-t1 { left: -28px; bottom: 34%; }
.hv-photo .hv-t2 { right: -18px; bottom: 9%; }
.hv-photo .hv-ring { top: 22px; right: -18px; }
@media (max-width: 640px) { .hv-photo .hv-t1 { left: 8px; bottom: 30%; } .hv-photo .hv-t2 { right: 8px; bottom: 6%; } .hv-photo .hv-ring { right: 8px; top: 12px; } }
