/* HealthAtend.AI: tokens e base compartilhados (landing e painel).
   Conceito "noite no cerrado": azul-petróleo profundo, sálvia para o que é interativo e o dourado
   do ipê como assinatura da Serena (a auréola que respira). Escuro é o padrão. */
:root {
  color-scheme: dark;
  --noite: #0f1e21;      /* fundo */
  --noite-2: #132428;    /* superfície elevada */
  --noite-3: #1a2f33;    /* campos, hover */
  --linha: #25393c;      /* fios */
  --linha-2: #33494b;    /* fios de controles */
  --nevoa: #e4ece7;      /* texto */
  --nevoa-2: #a9bab4;    /* texto secundário */
  --nevoa-3: #839891;    /* texto terciário (AA sobre todas as superfícies) */
  --salvia: #8cc4ae;     /* interativo */
  --salvia-forte: #a9d6c3;
  --salvia-veu: rgb(140 196 174 / 10%);
  --ipe: #e3bc6a;        /* assinatura: Serena, destaques pontuais */
  --ipe-veu: rgb(227 188 106 / 12%);
  --coral: #f2968a;      /* emergência e alertas */
  --coral-veu: rgb(242 150 138 / 10%);
  --serie-v1: #4f98c8;   /* gráficos: versão anterior (validado em fundo escuro) */
  --serie-v2: #c99331;   /* gráficos: versão atual */

  --raio-p: 8px;
  --raio: 14px;
  --raio-g: 24px;
  --sombra: 0 30px 80px -20px rgb(3 10 12 / 70%), 0 2px 6px rgb(3 10 12 / 40%);

  --fonte: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fonte-titulo: "Spectral", Georgia, "Times New Roman", serif;
  --foco: 0 0 0 2px var(--noite), 0 0 0 4px var(--ipe);
  --respiro: 10s; /* 6 respirações por minuto: o ritmo da auréola da Serena */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--noite); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--nevoa);
  background: var(--noite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01";
}
h1, h2, h3, h4 { font-family: var(--fonte-titulo); font-weight: 300; line-height: 1.12; margin: 0 0 .5em; color: var(--nevoa); letter-spacing: -0.01em; text-wrap: balance; }
h3, h4 { font-weight: 400; }
p { margin: 0 0 1em; }
a { color: var(--salvia); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--salvia-forte); }
img, svg { max-width: 100%; }
::selection { background: var(--ipe); color: var(--noite); }
:focus-visible { outline: none; box-shadow: var(--foco); border-radius: 6px; }
code { font-family: inherit; font-variant-numeric: tabular-nums; }

.container { width: min(1160px, 100% - 3rem); margin-inline: auto; }
@media (max-width: 520px) { .container { width: calc(100% - 2.25rem); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pular { position: absolute; left: 1rem; top: -100px; background: var(--ipe); color: var(--noite); padding: .6rem 1rem; border-radius: 10px; z-index: 100; font-weight: 600; }
.pular:focus { top: 1rem; color: var(--noite); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 .95rem/1 var(--fonte); padding: .95rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; letter-spacing: .005em;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn-primario { background: var(--salvia); color: var(--noite); }
.btn-primario:hover { background: var(--salvia-forte); color: var(--noite); }
.btn-secundario { background: transparent; color: var(--nevoa); border-color: var(--linha-2); }
.btn-secundario:hover { border-color: var(--nevoa-3); color: var(--nevoa); }

/* Marca: auréola sálvia com o ponto dourado da Serena ao centro */
.marca { display: inline-flex; align-items: center; gap: .65rem; font: 600 1.05rem/1 var(--fonte); color: var(--nevoa); text-decoration: none; letter-spacing: -0.01em; }
.marca:hover { color: var(--nevoa); }
.marca .nome { font-weight: inherit; }
.marca em { font-style: normal; color: var(--nevoa-3); font-weight: 500; }
.marca svg { width: 30px; height: 30px; flex: none; }

/* Auréola que respira: o elemento de assinatura (hero e lançador do chat) */
.aureola { position: relative; display: inline-grid; place-items: center; border-radius: 50%; }
.aureola::before, .aureola::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgb(227 188 106 / 45%);
  animation: respirar var(--respiro) ease-in-out infinite;
}
.aureola::after { border-color: rgb(140 196 174 / 25%); animation-delay: calc(var(--respiro) / -2); }
@keyframes respirar {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.18); opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
  .aureola::before, .aureola::after { animation: none; }
  .aureola::after { transform: scale(1.14); opacity: .4; }
}

.ponto-vivo { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ipe); flex: none; }
[hidden] { display: none !important; }
