/*
 * Página dos sistemas (clicamarketing.com.br/sistemas/).
 * Escura, como os próprios sistemas. Cada cartão usa a cor do sistema dele.
 * Sem estilo nem script inline: o CSP do site (no .htaccess) não deixa.
 * As fontes são as mesmas do site, na pasta /assets/fonts da raiz.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../../../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../../../assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --fundo: #080b14;
  --fundo-2: #0c1120;
  --cartao: #10172a;
  --borda: #1d2742;
  --borda-forte: #2c3a5f;
  --texto: #eef2fb;
  --texto-2: #b8c1da;
  --texto-3: #939ebd;
  --branco: #ffffff;
  --verde-zap: #25d366;
  --verde-zap-escuro: #0e7a3b;   /* branco por cima: 5,4:1 */

  /* Cor de cada sistema (tons claros o bastante para texto sobre o fundo escuro) */
  --sagene: #8094ff;
  --clicaai: #3ddc84;
  --clicaleads: #3fd8f2;
  --vynculo: #2ad3a6;
  --elionlab: #e5b45f;
  --netsense: #46dccb;

  --fonte-titulo: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fonte-texto: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --largura: 1200px;
  --margem: clamp(1rem, 4vw, 2.5rem);
  --raio: 18px;
  --raio-p: 12px;
  --topo-altura: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--topo-altura) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--fonte-titulo); line-height: 1.08; letter-spacing: -0.025em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--sagene); outline-offset: 3px; border-radius: 6px; }

.caixa { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pular {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--raio-p);
  background: var(--texto);
  color: var(--fundo);
  font-weight: 700;
}
.pular:focus { top: 1rem; }

/* Botões ------------------------------------------------------------------ */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--verde-zap-escuro);
  color: var(--branco);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.botao:hover { background: #0b6631; }
.botao .icone { width: 20px; height: 20px; fill: currentColor; flex: none; }
.botao--contorno { border-color: var(--borda-forte); background: transparent; color: var(--texto); }
.botao--contorno:hover { border-color: var(--texto-3); background: rgba(255, 255, 255, 0.04); }
.botao--pequeno { min-height: 42px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.botao--grande { min-height: 56px; padding: 0.9rem 1.8rem; font-size: 1.0625rem; }
@media (prefers-reduced-motion: no-preference) { .botao:hover { transform: translateY(-1px); } }

/* Topo -------------------------------------------------------------------- */

.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--borda);
  background: rgba(8, 11, 20, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}

.topo__caixa { display: flex; align-items: center; gap: 1.5rem; min-height: var(--topo-altura); }

/* Marca da Clica, do mesmo jeito que aparece no topo do site dela */
.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  color: var(--branco);
  font-family: var(--fonte-titulo);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}
.marca img { width: 30px; height: auto; }

.menu { display: none; gap: 1.6rem; margin-left: auto; }
.menu a { color: var(--texto-2); font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.menu a:hover { color: var(--texto); }
.topo .botao { margin-left: auto; }
@media (min-width: 760px) {
  .menu { display: flex; }
  .topo .botao { margin-left: 0.5rem; }
}
/* Celular bem estreito: o botão do topo fica só com o ícone (o nome vem do aria-label). */
@media (max-width: 380px) {
  .topo .botao { width: 44px; min-height: 44px; padding: 0; }
  .topo .botao span { display: none; }
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(70, 220, 203, 0.13), transparent 70%),
    radial-gradient(50% 50% at 10% 0%, rgba(128, 148, 255, 0.16), transparent 70%),
    radial-gradient(45% 45% at 60% 100%, rgba(229, 180, 95, 0.08), transparent 70%);
}

.hero__caixa { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .hero__caixa { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

.selo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--borda-forte);
  border-radius: 999px;
  color: var(--texto-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.6rem); font-weight: 800; }

.destaque {
  background: linear-gradient(95deg, var(--sagene) 0%, var(--clicaleads) 55%, var(--vynculo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead { max-width: 36rem; margin-top: 1.4rem; color: var(--texto-2); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); }
.hero__acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Janela de navegador com a captura do sistema */
.janela {
  display: block;
  overflow: hidden;
  border: 1px solid var(--borda-forte);
  border-radius: var(--raio-p);
  background: #0b1020;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.janela__barra {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--borda);
  background: #121a2e;
  color: var(--texto-3);
  font-size: 0.75rem;
}
.janela__barra i { width: 9px; height: 9px; border-radius: 50%; background: #2f3b5c; }
.janela__barra span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.janela img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.colagem { position: relative; }
.colagem .janela--tras-1,
.colagem .janela--tras-2 { display: none; }

@media (min-width: 980px) {
  .colagem { min-height: 430px; }
  .colagem .janela { position: absolute; width: 74%; }
  /* As de trás ficam escuras, mas opacas: uma não aparece através da outra. */
  .colagem .janela--tras-1 { display: block; top: 0; left: 0; filter: brightness(0.5) saturate(0.85); transform: rotate(-4deg); }
  .colagem .janela--tras-2 { display: block; top: 22px; right: 0; filter: brightness(0.62) saturate(0.85); transform: rotate(3.5deg); }
  .colagem .janela--frente { top: 70px; left: 13%; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04); }
}

/* Logos "no ar hoje" */
.vitrine { margin-top: clamp(2.5rem, 6vw, 4rem); }
.vitrine__rotulo { margin-bottom: 0.9rem; color: var(--texto-3); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.vitrine__logos { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.vitrine__logos a { display: block; border-radius: 10px; transition: transform 0.18s ease; }
.vitrine__logos img { height: 48px; width: auto; border: 1px solid var(--borda); border-radius: 10px; }
@media (prefers-reduced-motion: no-preference) { .vitrine__logos a:hover { transform: translateY(-2px); } }

/* Seções ------------------------------------------------------------------ */

.secao { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.secao--faixa { border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); background: var(--fundo-2); }
.secao__topo { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.secao__topo h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 800; }
.secao__lead { margin-top: 1rem; color: var(--texto-2); font-size: 1.125rem; }

/* Cartões dos sistemas ---------------------------------------------------- */

.grade { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }

.sis {
  --cor: var(--sagene);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  background: var(--cartao);
  transition: border-color 0.2s ease;
}
.sis:hover { border-color: var(--borda-forte); }
.sis--sagene { --cor: var(--sagene); }
.sis--clicaai { --cor: var(--clicaai); }
.sis--clicaleads { --cor: var(--clicaleads); }
.sis--vynculo { --cor: var(--vynculo); }
.sis--elionlab { --cor: var(--elionlab); }
.sis--netsense { --cor: var(--netsense); }

.sis__foto { margin: 1rem 1rem 0; border-color: var(--borda); box-shadow: none; }
.sis__foto img { transition: transform 0.4s ease; }
@media (prefers-reduced-motion: no-preference) { .sis:hover .sis__foto img { transform: scale(1.02); } }

.sis__corpo { display: flex; flex: 1; flex-direction: column; padding: 1.4rem 1.5rem 1.6rem; }
.sis__nome img { height: 44px; width: auto; border-radius: 9px; }
.sis__nicho { margin-top: 1rem; color: var(--cor); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sis__resumo { margin-top: 0.45rem; font-size: 1.0625rem; }

.sis__lista { display: grid; gap: 0.45rem; margin: 1rem 0 1.4rem; padding: 0; list-style: none; color: var(--texto-2); font-size: 0.96875rem; }
.sis__lista li { position: relative; padding-left: 1.4rem; }
.sis__lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 3px;
  background: var(--cor);
}

.sis__link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--cor);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 4px;
}
.sis__link:hover { text-decoration: underline; }

/* Em comum ---------------------------------------------------------------- */

.comum { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .comum { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }

.comum__item { padding: 1.5rem; border: 1px solid var(--borda); border-radius: var(--raio); background: var(--cartao); }
.comum__icone { width: 28px; height: 28px; fill: var(--clicaleads); }
.comum__item h3 { margin-top: 1rem; font-size: 1.3rem; font-weight: 700; }
.comum__item p { margin-top: 0.5rem; color: var(--texto-2); }

/* Chamada final ----------------------------------------------------------- */

/* Borda em degradê com as cores dos sistemas: o fundo pinta por dentro
   (padding-box) e o degradê aparece só no fio de 1px (border-box). */
.chamada {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.75rem, 5vw, 3.25rem);
  border: 1px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(155deg, #141d35 0%, #0e1426 55%, #0b101f 100%) padding-box,
    linear-gradient(115deg, var(--sagene), var(--clicaleads) 35%, var(--vynculo) 65%, var(--elionlab)) border-box;
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9);
}
@media (min-width: 900px) { .chamada { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4rem); } }

.chamada h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem); font-weight: 800; }
.chamada__lead { max-width: 32rem; margin-top: 1rem; color: var(--texto-2); font-size: 1.125rem; }

.chamada__antes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.chamada__antes li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border: 1px dashed var(--borda-forte);
  border-radius: 999px;
  color: var(--texto-3);
  font-size: 0.875rem;
}
.chamada__antes li::before { content: "×"; color: #f08a8a; font-weight: 700; }

.chamada__acao {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border: 1px solid var(--borda);
  border-radius: 20px;
  background: rgba(6, 9, 17, 0.6);
}
.chamada__rotulo { color: var(--texto-3); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* Prévia da conversa, nas cores do WhatsApp no modo escuro */
.conversa { overflow: hidden; border: 1px solid #1f2c33; border-radius: 14px; background: #0b141a; }
.conversa__topo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: #1f2c33;
  color: #e9edef;
  font-size: 0.875rem;
  font-weight: 700;
}
.conversa__topo .icone { width: 18px; height: 18px; fill: var(--verde-zap); }
.conversa__balao {
  max-width: 88%;
  margin: 1rem 0.9rem 1rem auto;
  padding: 0.65rem 0.9rem;
  border-radius: 12px 12px 4px 12px;
  background: #005c4b;
  color: #e9fbf4;
  font-size: 0.96875rem;
  line-height: 1.45;
}

.chamada__acao .botao { width: 100%; }
.chamada__numero { color: var(--texto-3); font-size: 0.9375rem; text-align: center; }

/* No celular, menos margem por dentro: o botão cabe numa linha só. */
@media (max-width: 520px) {
  .chamada { padding: 1.4rem 1.15rem; border-radius: 22px; }
  .chamada__acao { padding: 1rem; }
  .chamada__acao .botao { padding-left: 1rem; padding-right: 1rem; font-size: 1rem; }
}

/* Rodapé ------------------------------------------------------------------ */

.rodape { padding: 1rem 0 1.15rem; border-top: 1px solid var(--borda); color: var(--texto-3); font-size: 0.75rem; text-align: center; }
