/* INASOFT — site público. Sem dependências externas.
   Cores lidas dos SVG oficiais (assets/brand):
   teal   #0d9488 (fundo claro) / #2dd4bf (fundo escuro)  -> Cliente / Agent Health
   índigo #4338ca (fundo claro) / #818cf8 (fundo escuro)  -> Admin / API
   tinta  #0f172a / branco #ffffff
   --teal-texto é um tom mais escuro do teal, usado só em texto pequeno e botões
   para atingir contraste AA sobre branco (o #0d9488 puro fica em ~3,7:1). */

:root {
  --tinta: #0f172a;
  --fundo: #ffffff;
  --fundo-alt: #f4f6f9;
  --cartao: #ffffff;
  --texto: #0f172a;
  --texto-suave: #475569;
  --borda: #d5dbe5;
  --teal: #0d9488;
  --teal-texto: #0f766e;
  --indigo: #4338ca;
  --btn-fundo: #0f172a;
  --btn-texto: #ffffff;
  --sobre-cor: #ffffff;
  --foco: #4338ca;
  --raio: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #0f172a;
    --fundo-alt: #131d33;
    --cartao: #182238;
    --texto: #f1f5f9;
    --texto-suave: #b6c2d4;
    --borda: #33415a;
    --teal: #2dd4bf;
    --teal-texto: #2dd4bf;
    --indigo: #818cf8;
    --btn-fundo: #f1f5f9;
    --btn-texto: #0f172a;
    --sobre-cor: #0f172a;
    --foco: #2dd4bf;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--indigo); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.3em; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: 0.5rem; top: -4rem;
  background: var(--btn-fundo); color: var(--btn-texto);
  padding: 0.6rem 1rem; border-radius: var(--raio); z-index: 20;
}
.skip:focus { top: 0.5rem; }

/* Topo */
.topo { background: var(--fundo); border-bottom: 1px solid var(--borda); }
.topo-in {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.5rem 0.75rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.marca, .marca-rodape { font-weight: 700; letter-spacing: 0.06em; }
.marca { font-size: 1.375rem; color: var(--texto); text-decoration: none; padding: 0.25rem 0; }
.btn-cliente { margin-left: auto; }

/* Menu: no celular abre e fecha pelo botão "Menu" (sem JavaScript); em telas largas fica sempre visível. */
.menu-abre { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.menu-botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0.5rem 0.7rem;
  border: 1px solid var(--borda); border-radius: 8px; font-size: 0.9375rem; font-weight: 600;
  color: var(--texto); cursor: pointer; user-select: none;
}
.menu-abre:focus-visible + .menu-botao { outline: 2px solid currentColor; outline-offset: 2px; }
.menu-icone, .menu-icone::before, .menu-icone::after {
  display: block; width: 1.1rem; height: 2px; border-radius: 2px; background: currentColor;
}
.menu-icone { position: relative; }
.menu-icone::before, .menu-icone::after { content: ""; position: absolute; left: 0; }
.menu-icone::before { top: -6px; }
.menu-icone::after { top: 6px; }
/* Em telas estreitas o botão mostra só o ícone, para caber na mesma linha da marca e da Área do cliente. */
.menu-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 30rem) { .menu-texto { position: static; width: auto; height: auto; clip-path: none; } }
@media (max-width: 29.99rem) {
  .topo-in { flex-wrap: nowrap; gap: 0.5rem; }
  .topo-in:has(.menu-abre:checked) { flex-wrap: wrap; }
  .marca { font-size: 1.125rem; letter-spacing: 0.04em; }
  .topo .btn-cliente { padding: 0.55rem 0.65rem; font-size: 0.875rem; white-space: nowrap; }
  .menu-botao { flex: none; }
}
@media (max-width: 22.49rem) {
  .marca { font-size: 1rem; letter-spacing: 0.02em; }
  .topo .btn-cliente { padding: 0.5rem 0.5rem; font-size: 0.8125rem; }
}
.topo nav { display: none; flex-basis: 100%; }
.menu-abre:checked ~ nav { display: block; }
.menu { list-style: none; margin: 0; padding: 0.25rem 0 0; }
.menu li { margin: 0; border-top: 1px solid var(--borda); }
.menu a {
  display: block; padding: 0.8rem 0.25rem; color: var(--texto); text-decoration: none; font-size: 1rem;
}
.menu a:hover { text-decoration: underline; }

@media (min-width: 62rem) {
  .topo { position: sticky; top: 0; z-index: 10; }
  .menu-abre, .menu-botao { display: none; }
  .topo nav { display: block; flex-basis: auto; order: 1; margin-left: auto; }
  .btn-cliente { order: 2; margin-left: 0; }
  .menu { display: flex; align-items: center; gap: 0.25rem; padding: 0; }
  .menu li { border-top: 0; }
  .menu a { display: inline-block; padding: 0.5rem 0.6rem; border-radius: 6px; font-size: 0.9375rem; }
  .menu a:hover { background: var(--fundo-alt); }
}

/* Botões */
.btn {
  display: inline-block; padding: 0.65rem 1.1rem; border-radius: var(--raio);
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  line-height: 1.3;
}
.btn-pri { background: var(--btn-fundo); color: var(--btn-texto); }
.btn-sec { border-color: var(--borda); color: var(--texto); background: transparent; }
.btn-cliente { background: var(--teal-texto); color: var(--sobre-cor); padding: 0.5rem 0.9rem; font-size: 0.9375rem; }
.btn:hover { text-decoration: underline; }

/* Seções */
section { padding: 3.5rem 0; }
.faixa { background: var(--fundo-alt); border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); }
.intro { color: var(--texto-suave); max-width: 46rem; font-size: 1.0625rem; }
.nota { color: var(--texto-suave); margin-top: 1.5rem; margin-bottom: 0; }
.sub { margin-top: 2.5rem; }

.hero { padding: 4.5rem 0 4rem; border-bottom: 1px solid var(--borda); }
.sobre {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8125rem; font-weight: 600;
  color: var(--teal-texto); margin-bottom: 0.75rem;
}
.lead { font-size: clamp(1.125rem, 2.6vw, 1.375rem); color: var(--texto-suave); max-width: 40rem; }
.acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }

.duas { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) {
  .duas { grid-template-columns: 3fr 2fr; gap: 2.5rem; align-items: start; }
}

.destaque {
  background: var(--cartao); border: 1px solid var(--borda); border-left: 4px solid var(--teal);
  border-radius: var(--raio); padding: 1.25rem 1.25rem 0.5rem;
}
.colunas { columns: 2 12rem; column-gap: 2rem; }
.colunas li { break-inside: avoid; }

/* Produtos */
.cartoes { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 48rem) { .cartoes { grid-template-columns: 1fr 1fr; } }
.cartao {
  background: var(--cartao); border: 1px solid var(--borda); border-top: 4px solid var(--borda);
  border-radius: var(--raio); padding: 1.5rem 1.5rem 0.75rem; min-width: 0;
}
.cartao-teal { border-top-color: var(--teal); }
.cartao-indigo { border-top-color: var(--indigo); }
.cartao picture { display: block; margin-bottom: 1.5rem; }
.cartao h3 { font-size: 1.375rem; margin-bottom: 0.4em; }

.selo {
  display: inline-block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.2rem 0.65rem; border-radius: 999px; border: 1px solid currentColor; margin-bottom: 1em;
}
.selo-teal { color: var(--teal-texto); }
.selo-indigo { color: var(--indigo); }
.selo-neutro { color: var(--texto-suave); vertical-align: middle; margin: 0 0 0 0.5rem; letter-spacing: 0.02em; }

/* Fluxo */
.fluxo {
  list-style: none; padding: 0; margin: 2rem 0 2.5rem;
  display: grid; gap: 0.75rem; counter-reset: passo;
}
@media (min-width: 48rem) { .fluxo { grid-template-columns: repeat(4, 1fr); } }
.fluxo li {
  counter-increment: passo; margin: 0; min-width: 0;
  background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 1rem 1rem 1rem 1.1rem; border-left: 4px solid var(--indigo);
}
.fluxo li:first-child { border-left-color: var(--teal); }
.fluxo li::before {
  content: counter(passo); display: block; font-size: 0.8125rem; font-weight: 700;
  color: var(--texto-suave); margin-bottom: 0.25rem;
}
.fluxo strong { display: block; margin-bottom: 0.25rem; }
.fluxo span { color: var(--texto-suave); font-size: 0.9375rem; }

.grade3, .grade4 { display: grid; gap: 1.5rem 2rem; }
@media (min-width: 40rem) { .grade4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 48rem) { .grade3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 62rem) { .grade4 { grid-template-columns: repeat(4, 1fr); } }
.grade3 > div, .grade4 > div { min-width: 0; }
.grade4 { margin-top: 1.5rem; }

/* Tabela */
.tabela-rolagem { overflow-x: auto; border: 1px solid var(--borda); border-radius: var(--raio); background: var(--cartao); }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--borda); vertical-align: top; }
thead th { background: var(--fundo-alt); font-size: 0.875rem; }
tbody tr:last-child td { border-bottom: 0; }

/* No celular a tabela vira uma lista de blocos, sem rolagem lateral. */
@media (max-width: 39.99rem) {
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table, tbody { display: block; }
  tbody tr { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--borda); }
  tbody tr:last-child { border-bottom: 0; }
  td { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: 0.75rem; padding: 0.3rem 1rem; border-bottom: 0; }
  td::before { content: attr(data-rotulo); font-size: 0.8125rem; font-weight: 600; color: var(--texto-suave, inherit); }
}

/* Contato e rodapé */
.contato { text-align: center; }
.contato p { max-width: 36rem; margin-left: auto; margin-right: auto; }
.email { font-size: clamp(1.25rem, 5vw, 1.75rem); font-weight: 600; }

.rodape { border-top: 1px solid var(--borda); padding: 1.75rem 0; color: var(--texto-suave); font-size: 0.9375rem; }
.rodape-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.rodape p { margin: 0; }
.marca-rodape { color: var(--texto); }

/* Página 404 */
.erro { text-align: center; padding: 6rem 0; }
.erro .acoes { justify-content: center; }
.erro .lead { margin-left: auto; margin-right: auto; }
