/* ==========================================================================
   Scarpelli Tecnologia — layout e componentes do site
   Depende de tokens.css (cores, fontes, botões, cartões).
   ========================================================================== */

/* ---------- Acessibilidade ---------- */
.pular { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ouro-luz); color: var(--onix); padding: var(--esp-3) var(--esp-4); border-radius: var(--raio-sm); }
.pular:focus { left: var(--esp-4); top: var(--esp-4); }

/* ---------- Cabeçalho ---------- */
.cabecalho { position: sticky; top: 0; z-index: 50; background: rgba(4, 6, 12, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--borda); }
.cabecalho .container { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-6); min-height: 76px; }
.marca { display: flex; align-items: center; gap: var(--esp-3); text-decoration: none; }
.marca img { width: 48px; height: 48px; }
.marca-nome { display: flex; flex-direction: column; line-height: 1; }
.marca-nome b { font-weight: 800; letter-spacing: .1em; color: var(--ouro-luz); font-size: 1.15rem; }
.marca-nome span { font-weight: 300; letter-spacing: .62em; color: #CFFAFE; font-size: .58rem; margin-top: 6px; text-shadow: 0 0 8px rgba(34, 211, 238, .6); }
.menu { display: flex; align-items: center; gap: var(--esp-6); }
.menu ul { display: flex; gap: var(--esp-6); list-style: none; margin: 0; padding: 0; }
.menu a:not(.btn) { color: var(--texto); text-decoration: none; font-size: var(--fs-sm); padding: var(--esp-2) 0; }
.menu a:not(.btn):hover, .menu a:not(.btn)[aria-current="page"] { color: var(--ouro-luz); }
.menu a:not(.btn)[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--champanhe); }
.menu a.btn[aria-current="page"] { box-shadow: 0 0 0 2px var(--onix), 0 0 0 4px var(--champanhe); }
.menu-botao { display: none; width: 48px; height: 48px; border-radius: var(--raio-sm); border: 1px solid var(--borda); background: var(--grafite); color: var(--ouro-luz); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 900px) {
  .menu-botao { display: inline-flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: var(--esp-2);
          background: var(--onix); border-bottom: 1px solid var(--borda); padding: var(--esp-4); }
  .menu.aberto { display: flex; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu a:not(.btn) { display: block; padding: var(--esp-3) var(--esp-2); font-size: var(--fs-base); border-radius: var(--raio-sm); }
  .menu a:not(.btn)[aria-current="page"] { box-shadow: none; background: var(--grafite); }
}

/* ---------- Seções ---------- */
[id] { scroll-margin-top: 96px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.secao { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.secao-borda { border-top: 1px solid var(--borda); }
.secao-cabeca { max-width: 720px; margin-bottom: var(--esp-12); }
.secao-cabeca.centro { margin-inline: auto; text-align: center; }
.secao-cabeca p:last-child { margin-bottom: 0; }
.grade-2 { display: grid; gap: var(--esp-8); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.grade-3 { display: grid; gap: var(--esp-6); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grade-2, .grade-3 { grid-template-columns: 1fr; } }

/* ---------- Abertura (hero) ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(#121A29 1px, transparent 1px) 0 0/24px 24px, var(--onix); }
.hero::after { content: ""; position: absolute; inset: auto -10% -40% 40%; height: 70%; background: radial-gradient(closest-side, rgba(34, 211, 238, .10), transparent); pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--esp-12); align-items: center; padding-block: clamp(3rem, 2rem + 5vw, 7rem); }
.hero p.lead { font-size: var(--fs-lg); color: var(--texto); max-width: 56ch; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: var(--esp-3); margin-top: var(--esp-8); }
.hero-simbolo { justify-self: center; width: min(400px, 80%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-simbolo { order: -1; width: 180px; justify-self: start; }
  .hero-simbolo.so-desktop { display: none; }
}

/* ---------- Faixa de clientes ---------- */
.clientes { background: var(--grafite-2); border-block: 1px solid var(--borda); }
.clientes .container { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-6); flex-wrap: wrap; padding-block: var(--esp-8); }
.clientes ul { display: flex; flex-wrap: wrap; gap: var(--esp-4); list-style: none; margin: 0; padding: 0; }
.cliente { display: flex; flex-direction: column; padding: var(--esp-3) var(--esp-6); border: 1px solid var(--borda); border-radius: var(--raio); background: var(--grafite); }
.cliente b { color: var(--ouro-luz); letter-spacing: .04em; }
.cliente span { font-size: var(--fs-xs); color: var(--texto-suave); max-width: 34ch; }
.cliente b a { color: inherit; text-decoration: underline; text-decoration-color: rgba(242,216,148,.4); text-underline-offset: 3px; }
.cliente b a:hover { text-decoration-color: currentColor; }
.clientes-nota { flex-basis: 100%; margin: 0; font-size: var(--fs-sm); color: var(--texto-suave); }

/* ---------- Moldura de captura de tela ---------- */
.tela { border-radius: var(--raio-lg); border: 1px solid var(--borda); background: var(--grafite-2); overflow: hidden; box-shadow: var(--sombra); }
.tela-barra { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--borda); }
.tela-barra i { width: 10px; height: 10px; border-radius: 50%; background: var(--borda); }
.tela-conteudo { aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--esp-3); padding: var(--esp-8); text-align: center; color: var(--texto-suave); font-size: var(--fs-sm);
                 background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(42, 52, 70, .35) 14px 15px); }
.tela-conteudo strong { color: var(--champanhe); }

/* ---------- Ilustração do Dashboard de Cobrança ---------- */
.dash { --c-aguard: #60A5FA; --c-naopre: #F87171; --c-avencer: #2DD4BF; --c-ate30: #FB923C; --c-mais30: #A78BFA; --c-pagos: #4ADE80;
        margin: 0; border-radius: var(--raio-lg); border: 1px solid var(--borda); background: #0B111C; box-shadow: var(--sombra); overflow: hidden; font-size: 12px; }
.dash-topo { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-3); flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--borda); background: var(--grafite-2); }
.dash-topo b { color: #fff; font-size: 13px; }
.dash-topo span { color: var(--texto-suave); font-size: 11px; }
.dash-corpo { padding: 14px; display: grid; gap: 14px; }
.dash-cartoes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.dash-cartao { background: var(--grafite); border: 1px solid var(--borda); border-top: 3px solid var(--cor); border-radius: 8px; padding: 8px 9px; min-width: 0; }
.dash-cartao small { display: block; color: var(--texto-suave); font-size: 10.5px; line-height: 1.25; min-height: 2.5em; }
.dash-cartao b { display: block; color: #fff; font-size: 20px; line-height: 1.1; margin: 2px 0; }
.dash-cartao span { display: block; color: var(--texto-suave); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-abas { display: flex; gap: 4px; overflow: hidden; border-bottom: 1px solid var(--borda); }
.dash-abas span { padding: 6px 10px; border-radius: 6px 6px 0 0; color: var(--texto-suave); font-size: 11px; white-space: nowrap; }
.dash-abas span:first-child { background: var(--grafite); color: var(--ouro-luz); font-weight: 600; }
.dash-resumo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.dash-painel { background: var(--grafite); border: 1px solid var(--borda); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.dash-painel h4 { margin: 0 0 8px; font-size: 11.5px; color: #fff; font-weight: 600; }
.dash-grafico { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.dash-col { flex: 1; display: flex; flex-direction: column-reverse; gap: 1px; height: var(--h); }
.dash-col i { display: block; flex: var(--f) 0 0; background: var(--cor); border-radius: 2px; }
.dash-meses { display: flex; gap: 8px; margin-top: 4px; color: var(--texto-suave); font-size: 10px; }
.dash-meses span { flex: 1; text-align: center; }
.dash-legenda { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; color: var(--texto-suave); font-size: 10px; }
.dash-legenda span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--cor); margin-right: 4px; vertical-align: -1px; }
.dash-orient p { margin: 0 0 6px; color: var(--texto); font-size: 11.5px; line-height: 1.45; }
.dash-orient b { color: var(--ouro-luz); }
.dash-legenda-fig { padding: 10px 16px; border-top: 1px solid var(--borda); color: var(--texto-suave); font-size: var(--fs-xs); }
@media (max-width: 700px) {
  .dash-cartoes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-cartao span { white-space: normal; }
  .dash-resumo { grid-template-columns: 1fr; }
}

/* ---------- Capturas de tela do sistema ---------- */
.captura { margin: 0; border-radius: var(--raio); overflow: hidden; border: 1px solid var(--borda); background: var(--grafite-2); box-shadow: var(--sombra); }
.captura img { display: block; width: 100%; height: auto; background: #fff; }
.captura figcaption { padding: 10px 14px; color: var(--texto-suave); font-size: var(--fs-xs); border-top: 1px solid var(--borda); }
.captura figcaption b { color: var(--texto); font-weight: 600; }
.capturas { display: grid; gap: var(--esp-4); }
.galeria { display: grid; gap: var(--esp-6); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 900px) { .galeria { grid-template-columns: 1fr; } }
.diretoria { display: grid; gap: var(--esp-8); grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
.diretoria .captura { max-width: 520px; justify-self: center; }
@media (max-width: 900px) { .diretoria { grid-template-columns: 1fr; } }
.selo-novo { justify-self: start; width: fit-content; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--raio-pill); background: rgba(242, 216, 148, .14); color: var(--ouro-luz); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Linha do tempo ---------- */
.linha-tempo { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--esp-6); position: relative; }
.linha-tempo::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--champanhe), rgba(201, 169, 110, .15)); }
.linha-tempo li { position: relative; padding-left: var(--esp-8); }
.linha-tempo li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--onix); border: 2px solid var(--champanhe); }
.linha-tempo li.agora::before { border-color: var(--ciano); box-shadow: 0 0 12px var(--ciano); }
.linha-tempo b { display: block; color: var(--ouro-luz); font-size: var(--fs-lg); }
.linha-tempo p { margin: 0; color: var(--texto); }

/* ---------- Listas de recursos ---------- */
.recursos { display: grid; gap: var(--esp-4); list-style: none; margin: var(--esp-6) 0 0; padding: 0; }
.recursos li { display: grid; grid-template-columns: 28px 1fr; gap: var(--esp-3); align-items: start; }
.recursos svg { width: 22px; height: 22px; margin-top: 3px; color: var(--champanhe); }
.recursos b { color: #fff; font-weight: 600; }

.card h3 { font-size: var(--fs-lg); margin-bottom: var(--esp-2); }
.card p:last-child { margin-bottom: 0; }
.card-icone { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(201, 169, 110, .12); color: var(--ouro-luz); margin-bottom: var(--esp-4); }
.card-icone svg { width: 24px; height: 24px; }

/* ---------- Selo de produto ---------- */
.selo { display: flex; align-items: center; gap: var(--esp-4); }
.selo img { width: 72px; height: 72px; }
.selo-txt b { display: block; font-weight: 800; letter-spacing: .12em; font-size: 1.8rem; line-height: 1; color: var(--ouro-luz); }
.selo-txt span { display: block; margin-top: 8px; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--champanhe); }
.destaque { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--raio-pill); border: 1px solid rgba(34, 211, 238, .45); color: #CFFAFE; font-size: var(--fs-xs); }
.destaque::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ciano); box-shadow: 0 0 10px var(--ciano); }
.fa-logo { background: #fff; border-radius: var(--raio); padding: var(--esp-3); width: fit-content; }
.fa-logo img { display: block; width: 210px; }
.produto { display: flex; flex-direction: column; gap: var(--esp-4); }
.produto .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Bloco IA ---------- */
.ia { position: relative; overflow: hidden; border-radius: var(--raio-lg); border: 1px solid rgba(34, 211, 238, .35); padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
      background: radial-gradient(120% 140% at 100% 0%, rgba(34, 211, 238, .14), transparent 55%), var(--grafite-2); }
.ia h2 { margin-bottom: var(--esp-3); }

/* ---------- Números/Fatos ---------- */
.fatos { display: grid; gap: var(--esp-6); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.fato b { display: block; font-size: var(--fs-2xl); font-weight: 800; color: var(--ouro-luz); line-height: 1.1; }
.fato span { color: var(--texto-suave); font-size: var(--fs-sm); }
@media (max-width: 700px) { .fatos { grid-template-columns: 1fr; } }

/* ---------- Chamada final ---------- */
.chamada { text-align: center; }
.chamada .hero-acoes { justify-content: center; }

/* ---------- Contato e formulário ---------- */
.contato-grade { display: grid; gap: var(--esp-6); grid-template-columns: 1.5fr 1fr; align-items: start; }
.contato-lado { display: grid; gap: var(--esp-6); }
@media (max-width: 900px) { .contato-grade { grid-template-columns: 1fr; } }
.formulario { display: grid; gap: var(--esp-4); }
.campo { display: grid; gap: var(--esp-2); }
.campo-duplo { display: grid; gap: var(--esp-4); grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .campo-duplo { grid-template-columns: 1fr; } }
.campo label { font-size: var(--fs-sm); font-weight: 600; color: #fff; }
.campo label span { color: var(--champanhe); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--raio-sm);
  border: 1px solid var(--borda); background: var(--onix); color: var(--texto); font: inherit;
}
.campo textarea { resize: vertical; min-height: 140px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--ciano); box-shadow: var(--brilho-ciano); }
.campo [aria-invalid="true"] { border-color: #F87171; }
.campo-oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario .btn { justify-self: start; }
.aviso { padding: var(--esp-4); border-radius: var(--raio-sm); margin-bottom: var(--esp-4); font-weight: 600; }
.aviso-ok { background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .5); color: #BBF7D0; }
.aviso-erro { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .5); color: #FECACA; }

/* ---------- Texto longo (política) ---------- */
.texto-longo { max-width: 760px; }
.texto-longo h2 { font-size: var(--fs-xl); margin-top: var(--esp-12); }
.texto-longo ul, .texto-longo ol { padding-left: 1.2em; }
.texto-longo li { margin-bottom: var(--esp-2); }

/* ---------- Rodapé ---------- */
/* ---------- Perguntas frequentes ---------- */
.faq { display: grid; gap: var(--esp-3); max-width: 860px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: var(--esp-4) var(--esp-6); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: var(--esp-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ouro-luz); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--ouro-luz); }
.faq details p { margin: 0; padding: 0 var(--esp-6) var(--esp-6); }

.rodape { border-top: 1px solid var(--borda); background: #03050A; padding-block: var(--esp-12) var(--esp-8); font-size: var(--fs-sm); }
.rodape-grade { display: grid; gap: var(--esp-8); grid-template-columns: 1.4fr 1fr 1fr; }
.rodape h2 { font-size: var(--fs-sm); color: var(--champanhe); letter-spacing: var(--espaco-letra-rotulo); text-transform: uppercase; font-weight: 700; margin-bottom: var(--esp-4); }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rodape a { color: var(--texto); text-decoration: none; }
/* Área de toque confortável no celular (mín. ~32 px de altura) */
.rodape ul a { display: inline-block; padding-block: 6px; }
.rodape a:hover { color: var(--ouro-luz); }
.rodape-base { margin-top: var(--esp-12); padding-top: var(--esp-6); border-top: 1px solid var(--borda); color: var(--texto-suave); display: flex; justify-content: space-between; gap: var(--esp-4); flex-wrap: wrap; }
@media (max-width: 800px) { .rodape-grade { grid-template-columns: 1fr; } }

/* ---------- Botão flutuante de WhatsApp ---------- */
.whats-flutuante { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
                   border-radius: var(--raio-pill); background: #25D366; color: #04060C; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.whats-flutuante:hover { background: #3BE27A; color: #04060C; }
.whats-flutuante svg { width: 24px; height: 24px; }
@media (max-width: 600px) { .whats-flutuante span { display: none; } .whats-flutuante { padding: 0; width: 56px; justify-content: center; } }

/* ---------- Marcador de mockup (remover no site final) ---------- */
.mockup-aviso { background: #3A2A11; color: #F2D894; text-align: center; font-size: var(--fs-xs); padding: 6px var(--esp-4); }
.pendente { outline: 1px dashed rgba(242, 216, 148, .55); outline-offset: 4px; border-radius: 4px; }
