/* ==========================================================================
   Site e-IDOCUS — camada de evolução (v1)
   Mesmo padrão do site atual: marinho, azul em degradê, Inter.
   Só acrescenta acabamento e movimento; a estrutura do landing.blade.php fica.
   ========================================================================== */
:root { --linha: rgba(255,255,255,.10); --verde-wa: #4ADE80; }

/* 1. Entrada das seções: só esconde se o JS carregou (sem JS o site aparece inteiro) */
html:not(.js) .reveal { opacity: 1 !important; transform: none !important; }
.reveal { filter: blur(6px); transition-property: opacity, transform, filter; }
.reveal.in { filter: none; }

/* 2. Barra de leitura + topo que encolhe */
.progresso { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, #5eead4, var(--blue2) 55%, var(--blue)); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }
header.nav { top: 38px; }
header.nav.solid { top: 0; }
header.nav .nav-in { transition: height .3s ease; }
header.nav.solid .nav-in { height: 60px; }
.logo-svg { transition: height .3s ease; }
header.nav.solid .logo-svg { height: 30px; }

/* 3. Faixa de informações acima do menu */
.topo-barra { position: absolute; top: 0; left: 0; right: 0; z-index: 51; background: #06122a; color: rgba(255,255,255,.72); font-size: 12.5px; font-weight: 500; }
.topo-barra .wrap { display: flex; align-items: center; gap: 14px; height: 38px; }
.topo-barra i { color: #5eead4; margin-right: 5px; }
.barra-sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
.barra-dir { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.barra-dir a { transition: color .2s; }
.barra-dir a:hover { color: #fff; }
.barra-dir .fa-whatsapp { color: var(--verde-wa); }
@media (max-width: 900px) { .topo-barra .esconde-cel { display: none; } }
@media (max-width: 560px) { .topo-barra .wrap > span:first-child { display: none; } .barra-dir { margin-left: 0; width: 100%; justify-content: space-between; gap: 10px; } }

/* 4. Menu: item atual, pílula, mega menu de recursos */
.nav-links { position: relative; }
.nav-links .item { position: relative; }
.nav-links a.atual { opacity: 1; }
.nav-links a.atual::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #5eead4; }
.nav-links .item > a { position: relative; }
.seta-mega { font-size: 10px; margin-left: 4px; display: inline-block; transition: transform .3s; }
.tem-mega:hover .seta-mega, .tem-mega:focus-within .seta-mega { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 18px); left: -30px; width: 720px; display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; padding: 12px;
  background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 30px 70px rgba(6,18,42,.35);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: 60px 0;
  transition: opacity .22s, transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s; }
.mega::before { content: ""; position: absolute; top: -20px; left: 0; right: 0; height: 20px; }
.tem-mega:hover .mega, .tem-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-lista a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; opacity: 1 !important; transition: background .2s; font-weight: 600; }
.mega-lista a:hover, .mega-lista a:focus-visible { background: var(--soft); }
.mega-lista .ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 15px; transition: transform .25s; }
.mega-lista a:hover .ico { transform: scale(1.08) rotate(-4deg); }
.mega-lista b { display: block; font-size: 14px; }
.mega-lista small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.ico.azul { background: linear-gradient(135deg, var(--blue), var(--blue2)); }
.ico.verde { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.ico.ambar { background: linear-gradient(135deg, #d97706, #fbbf24); }
.ico.roxo { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.ico.vermelho { background: linear-gradient(135deg, #dc2626, #f87171); }
.ico.ciano { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.mega-destaque { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 14px; opacity: 1 !important;
  background: linear-gradient(140deg, #0b1b3b, #13294f); color: #fff; }
.mega-destaque .bolha { position: absolute; width: 220px; height: 220px; right: -70px; top: -70px; border-radius: 50%; background: #1e40af; filter: blur(40px); opacity: .6; }
.mega-destaque > * { position: relative; }
.mega-rot { font-size: 12px; font-weight: 700; color: #5eead4; }
.mega-destaque b { font-size: 17px; line-height: 1.3; }
.mega-destaque span:not(.mega-rot) { font-size: 13px; color: #c3cee0; line-height: 1.5; }
.mega-destaque em { font-style: normal; font-size: 13px; font-weight: 700; margin-top: auto; }
.mega-destaque em i { transition: transform .25s; }
.mega-destaque:hover em i { transform: translateX(4px); }
.mega-rodape { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 13px; opacity: 1 !important; }
.mega-rodape i:first-child { color: var(--blue); }
.mega-rodape i:last-child { margin-left: auto; transition: transform .25s; }
.mega-rodape:hover i:last-child { transform: translateX(4px); }
.nav-hamb { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; padding: 6px; }
@media (max-width: 960px) { .mega { display: none; } }

/* 5. Botões: brilho no hover e resposta ao toque */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); }
.btn:hover::after { animation: brilho .8s ease; }
@keyframes brilho { to { left: 130%; } }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .fa-arrow-right, .btn .fa-arrow-right-to-bracket { transition: transform .25s; }
.btn:hover .fa-arrow-right, .btn:hover .fa-arrow-right-to-bracket { transform: translateX(3px); }

/* 6. Hero: luz que segue o mouse */
.hero { --mx: 70%; --my: 30%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(79,155,255,.16), transparent 60%); }
.hero-in { padding-top: 150px; }

/* 7. Amostra real do painel no hero */
.painel { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 30px 70px rgba(0,0,0,.4); animation: rise 1s .2s both; text-align: left;
  transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .4s ease; }
.painel-topo { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #9fb2d4; margin-bottom: 12px; }
.painel-topo b { color: #fff; font-size: 13px; }
.painel-topo .ao-vivo { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #5eead4; font-weight: 600; }
.painel-topo .ao-vivo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5eead4; animation: pulsa 1.8s infinite; }
@keyframes pulsa { 0% { box-shadow: 0 0 0 0 rgba(94,234,212,.6); } 100% { box-shadow: 0 0 0 9px rgba(94,234,212,0); } }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.chip { border-radius: 12px; padding: 10px; background: rgba(255,255,255,.05); border-top: 3px solid var(--c); transition: background .3s; }
.chip small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #c3cee0; }
.chip b { display: block; font-size: 17px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; margin-top: 3px; }
.chip.pisca { background: rgba(255,255,255,.14); }
.trilha { font-size: 11.5px; color: #9fb2d4; margin: 0 2px 8px; }
.trilha i { font-size: 9px; margin: 0 5px; opacity: .6; }
.doc { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.05); margin-bottom: 8px; border-left: 3px solid var(--c, var(--blue2)); transition: border-color .4s, background .4s; }
.doc .dot { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(79,155,255,.2); color: #cfe0ff; flex-shrink: 0; }
.doc .t { font-size: 13px; font-weight: 700; color: #eaf1ff; }
.doc .s { font-size: 11px; color: #9fb2d4; }
.doc .pill { margin-left: auto; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--c, #5787ff); white-space: nowrap; transition: background .4s; }
.doc.vivo { background: rgba(255,255,255,.09); }
.doc.vivo .pill { animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 40% { transform: scale(1.18); } }
.log-status { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #9fb2d4; padding: 4px 4px 0; min-height: 20px; }
.log-status i { color: #5eead4; }
.log-status span { transition: opacity .3s; }
@media (max-width: 520px) { .chips { grid-template-columns: repeat(2, 1fr); } }

/* 8. Números: reflexo ao aparecer */
.stat { position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.10), transparent); transform: skewX(-18deg); }
.stat.in::after { animation: brilho 1.4s .3s ease; }
.stats-nota { text-align: center; font-size: 12.5px; color: #8fa2c4; margin-top: 18px; }

/* 9. Cartões de recursos: luz que acompanha o mouse */
.feat { --x: 50%; --y: 50%; }
.feat::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--x) var(--y), rgba(37,99,235,.08), transparent 60%); }
.feat:hover::before { opacity: 1; }
.feat .ic { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.feat:hover .ic { transform: scale(1.08) rotate(-5deg); }

/* 10. Plugin Sólidus */
.plugin { background: #fff; }
.plugin-in { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .plugin-in { grid-template-columns: 1fr; gap: 36px; } }
.plugin h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; letter-spacing: -.5px; margin: 10px 0 14px; text-wrap: balance; }
.plugin .eyebrow, .plugin h2 { text-align: left; }
.plugin p.lead2 { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 22px; }
.plugin ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.plugin li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; }
.plugin li i { color: var(--teal); margin-top: 4px; }
.plugin li b { font-weight: 700; }
.selo-loja { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--soft); font-size: 13px; font-weight: 600; }
.selo-loja i { color: var(--blue); font-size: 18px; }
/* janela do navegador desenhada */
.janela { position: relative; border-radius: 14px; background: #eef1f6; box-shadow: 0 30px 70px rgba(15,25,60,.18); overflow: hidden; }
.janela-barra { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #dfe4ec; }
.janela-barra i { width: 10px; height: 10px; border-radius: 50%; background: #c3cad6; }
.janela-barra i:first-child { background: #f87171; } .janela-barra i:nth-child(2) { background: #fbbf24; } .janela-barra i:nth-child(3) { background: #4ade80; }
.janela-barra span { margin-left: 10px; flex: 1; background: #fff; border-radius: 6px; padding: 4px 10px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erp { padding: 16px; display: grid; gap: 10px; min-height: 300px; }
.erp-tit { font-size: 13px; font-weight: 800; color: #163a63; display: flex; justify-content: space-between; }
.erp-tit small { font-weight: 600; color: var(--muted); }
.erp-linha { display: grid; grid-template-columns: 1.6fr .6fr .8fr; gap: 10px; font-size: 12px; background: #fff; border-radius: 8px; padding: 9px 12px; color: #334155; }
.erp-linha.cab { background: transparent; font-weight: 700; color: var(--muted); padding-block: 2px; }
.erp-linha span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.flutuante { position: absolute; right: 18px; bottom: 18px; width: 250px; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(15,25,60,.25); padding: 12px; cursor: grab; touch-action: none; }
.flutuante.arrastando { cursor: grabbing; box-shadow: 0 26px 60px rgba(15,25,60,.32); }
.flu-topo { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: #163a63; margin-bottom: 10px; }
.flu-topo i.fa-grip-vertical { color: #c3cad6; }
.flu-topo button { margin-left: auto; border: 0; background: var(--soft); width: 24px; height: 24px; border-radius: 6px; cursor: pointer; color: var(--muted); }
.flutuante.min .flu-corpo { display: none; }
.flu-arq { display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 8px; border-radius: 10px; background: var(--soft); }
.flu-arq i { color: #dc2626; font-size: 18px; }
.flu-arq span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flu-barra { height: 6px; border-radius: 99px; background: #e5e9f0; margin: 10px 0 8px; overflow: hidden; }
.flu-barra i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--blue), #2dd4bf); transition: width .25s linear; }
.flu-st { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.flu-st.ok { color: #0d9488; font-weight: 700; }
@media (max-width: 520px) { .flutuante { position: relative; right: auto; bottom: auto; width: auto; margin: 0 12px 12px; } .erp { min-height: 0; } }

/* 11. Fluxo: cor do status real em cada etapa */
.step::before { background: var(--c, var(--blue)) !important; box-shadow: none !important; }
.step .st { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--c); }
.step { transition: transform .3s; }
.step:hover { transform: translateY(-4px); }

/* 12. Rodapé escuro vivo */
.rodape { position: relative; overflow: hidden; background: #06122a; color: #9fb2d4; padding: 64px 0 28px; font-size: 14px; }
.rodape-luz { position: absolute; width: 620px; height: 620px; left: 50%; top: -360px; margin-left: -310px; border-radius: 50%; background: #1e40af; filter: blur(110px); opacity: .45; pointer-events: none; }
.rodape .wrap { position: relative; }
.rodape-selos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.rodape-selos span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.05); color: #cfdcf2; font-size: 13px; font-weight: 600; }
.rodape-selos i { color: #5eead4; }
.rodape-grade { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
@media (max-width: 920px) { .rodape-grade { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rodape-grade { grid-template-columns: 1fr; } }
.rodape-marca { color: #fff; }
.rodape-marca p { color: #9fb2d4; line-height: 1.65; margin: 14px 0 0; font-size: 14px; }
.rodape h5 { color: #fff; font-size: 15px; margin: 4px 0 14px; }
.rodape-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rodape-links a { transition: color .2s, padding .2s; }
.rodape-links a:hover { color: #fff; padding-left: 4px; }
.contatos { display: grid; gap: 10px; }
.contato-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); transition: background .2s, transform .2s; }
a.contato-card:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.contato-card > i:first-child { font-size: 18px; color: #4f9bff; width: 20px; text-align: center; }
.contato-card.wa > i:first-child { color: var(--verde-wa); }
.contato-card span { flex: 1; min-width: 0; }
.contato-card small { display: block; font-size: 12px; }
.contato-card b { display: block; color: #fff; font-size: 13px; overflow-wrap: anywhere; }
.contato-card .email { font-size: 12.5px; letter-spacing: -.01em; }
.copiar { border: 0; background: rgba(255,255,255,.08); color: #cfdcf2; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; transition: background .2s; }
.copiar:hover { background: rgba(255,255,255,.16); }
.status { font-weight: 700; }
.status.aberto { color: var(--verde-wa); }
.status.fechado { color: #f87171; }
.rodape-gigante { --gx: 50%; margin: 48px 0 8px; font-size: clamp(64px, 17vw, 220px); font-weight: 900; letter-spacing: -.05em; line-height: .85; text-align: center; user-select: none;
  color: rgba(255,255,255,.05); background: radial-gradient(380px circle at var(--gx) 50%, rgba(94,234,212,.55), rgba(79,155,255,.25) 40%, rgba(255,255,255,.05) 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rodape-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--linha); font-size: 13px; }

/* 13. Voltar ao topo */
.subir { position: fixed; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 59; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--blue); box-shadow: 0 10px 30px rgba(15,25,60,.25); font-size: 16px;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s, color .2s; }
.subir.mostra { opacity: 1; transform: none; pointer-events: auto; }
.subir:hover { background: var(--blue); color: #fff; }

a:focus-visible, button:focus-visible { outline: 3px solid #5eead4; outline-offset: 3px; border-radius: 8px; }

@media (max-width: 760px) {
  .nav-links .item:not(.fica) { display: none; }
  .hero::before { display: none; }
  .painel { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { filter: none; transition: none; opacity: 1 !important; transform: none !important; }
  .hero .blob, .painel-topo .ao-vivo::before, .btn:hover::after, .stat.in::after { animation: none !important; }
  .painel { transform: none !important; animation: none; }
  .progresso { display: none; }
  html { scroll-behavior: auto; }
}

/* 14. Margens laterais também respeitam a área segura do celular */
.wrap { padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }

/* 15. Logo oficial (partials/logo-idocus) no site: mesmo do login e do sistema */
.logo-idocus { height: 42px; width: auto; display: block; overflow: visible; transition: height .3s ease; }
.nav-logo, .rodape-marca a { color: #fff; --lg-acento: #5aa8ff; display: inline-flex; }
header.nav.solid .logo-idocus { height: 34px; }
.rodape-marca .logo-idocus { height: 46px; }
.lg-linha, .lg-ok { transform-box: fill-box; }
.lg-linha { transform-origin: 0 50%; }
.lg-ok { transform-origin: 50% 50%; }
.lg-chk { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .lg-anima .lg-linha { animation: lgLinha .55s cubic-bezier(.2,.8,.2,1) both; }
.js .lg-anima .l1 { animation-delay: .25s; } .js .lg-anima .l2 { animation-delay: .38s; } .js .lg-anima .l3 { animation-delay: .5s; }
.js .lg-anima .lg-ok { animation: lgPop .5s cubic-bezier(.3,1.6,.5,1) .7s both; }
.js .lg-anima .lg-chk { animation: lgRisca .45s cubic-bezier(.6,0,.2,1) 1s both; }
@keyframes lgLinha { from { transform: scaleX(0); } }
@keyframes lgPop { from { transform: scale(0); } }
@keyframes lgRisca { from { stroke-dashoffset: 1; } }
.lg-reflexo { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.lg-anima:hover .lg-reflexo { transform: rotate(20deg) translateX(90px); }
.lg-anima:hover .lg-ok { animation: lgPop .5s cubic-bezier(.3,1.6,.5,1) both; }
@media (prefers-reduced-motion: reduce) { .lg-linha, .lg-ok, .lg-chk { animation: none !important; } .lg-reflexo { transition: none; } }
