/* rAIuga Health · site (decisão 0072). Sem script, sem fonte ou recurso de fora. */
@font-face { font-family: "Mulish"; src: url("/fonts/mulish-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/fonts/mulish-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/fonts/mulish-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/fonts/mulish-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --papel: #f6f5fb;
  --tinta: #1d1b3a;
  --tinta2: #45436b;
  --linha: #d6d4e4;
  --violeta: #6c4fe0;
  --azul: #3d7bff;
  --faixa: #1aa98f;
  --cartao: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papel: #1b1e27;
    --tinta: #eceef5;
    --tinta2: #c3c5d4;
    --linha: #3a3f52;
    --violeta: #a99cff;
    --azul: #7aa6ff;
    --faixa: #3fd1b6;
    --cartao: #262a36;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 1.0625rem/1.6 "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--violeta); text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--violeta); outline-offset: 3px; border-radius: 2px; }

.moldura { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

/* Topo */
.topo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; }
.marca { white-space: nowrap; color: var(--tinta); text-decoration: none; font-weight: 400; font-size: 1.25rem; letter-spacing: -0.01em; }
.marca b { font-weight: 800; color: var(--violeta); }
.topo nav { display: flex; gap: 0.9rem; font-size: 0.9rem; }
@media (min-width: 40rem) { .topo nav { gap: 1.25rem; font-size: 0.95rem; } }
.topo nav a { color: var(--tinta2); text-decoration: none; }
.topo nav a:hover { color: var(--tinta); text-decoration: underline; }

/* Abertura: a frase grande e o gráfico de um marcador, a coisa que o app mostra */
.abertura { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0 4rem; align-items: center; }
.frase {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.frase span { display: block; }
.frase span + span { font-weight: 800; letter-spacing: -0.045em; }
.resumo { max-width: 34rem; margin: 1.75rem 0 0; font-size: 1.2rem; color: var(--tinta2); }
.situacao { margin: 1.5rem 0 0; font-size: 0.95rem; color: var(--tinta2); }
.situacao::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--faixa); margin-right: 0.55rem; vertical-align: 0.1em; }

.grafico { margin: 0; background: var(--cartao); border: 1px solid var(--linha); border-radius: 1.5rem; padding: 1.5rem 1.5rem 1.25rem; }
.grafico svg { display: block; width: 100%; height: auto; }
.grafico .nome { margin: 0; font-weight: 700; font-size: 1.05rem; }
.grafico .valor { margin: 0.25rem 0 1rem; color: var(--tinta2); font-size: 0.95rem; }
.grafico figcaption { margin-top: 0.75rem; font-size: 0.8rem; color: var(--tinta2); }
.grafico .faixa-ref { fill: var(--faixa); opacity: 0.16; }
.grafico .linha-dado { fill: none; stroke: var(--azul); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.grafico .ponto { fill: var(--cartao); stroke: var(--azul); stroke-width: 3; }
.grafico .ponto.ultimo { fill: var(--azul); }
.grafico .rotulo-faixa { fill: var(--faixa); font: 700 11px "Mulish", system-ui, sans-serif; }
.grafico .eixo { fill: var(--tinta2); font: 400 12px "Mulish", system-ui, sans-serif; }
.grafico .grade { stroke: var(--linha); stroke-width: 1; }

/* Seções */
.secao { padding: 3.5rem 0; border-top: 1px solid var(--linha); }
.secao h2 { margin: 0 0 1.5rem; font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.1; max-width: 30rem; }
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: passo; }
.passos li { counter-increment: passo; max-width: 26rem; }
.passos li::before { content: counter(passo); display: block; font-weight: 300; font-size: 3rem; line-height: 1; color: var(--violeta); margin-bottom: 0.5rem; }
.passos h3, .fatos h3 { margin: 0 0 0.35rem; font-size: 1.1rem; font-weight: 700; }
.passos p, .fatos p { margin: 0; color: var(--tinta2); }
.fatos { display: grid; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.fatos li { max-width: 32rem; padding-left: 1rem; border-left: 3px solid var(--faixa); }
.aviso { max-width: 40rem; font-size: 1.15rem; color: var(--tinta2); margin: 0; }

/* Páginas de texto (privacidade, suporte) */
.texto { max-width: 42rem; padding: 2rem 0 4rem; }
.texto h1 { font-weight: 800; font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; margin: 1rem 0 0.75rem; }
.texto .data { color: var(--tinta2); margin: 0 0 2rem; font-size: 0.95rem; }
.texto h2 { font-weight: 700; font-size: 1.25rem; margin: 2.5rem 0 0.5rem; }
.texto p, .texto li { color: var(--tinta); }
.texto ul { padding-left: 1.25rem; }
.texto li + li { margin-top: 0.4rem; }
.nota { background: var(--cartao); border: 1px solid var(--linha); border-radius: 1rem; padding: 1rem 1.25rem; color: var(--tinta2); }

/* Rodapé */
.rodape { border-top: 1px solid var(--linha); padding: 2rem 0 3rem; font-size: 0.9rem; color: var(--tinta2); display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; }
.rodape nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.rodape a { color: var(--tinta2); }

@media (min-width: 52rem) {
  .abertura { grid-template-columns: 1.15fr 0.85fr; padding: 4.5rem 0 5.5rem; gap: 4rem; }
  .passos { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .fatos { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .linha-dado { stroke-dasharray: 620; stroke-dashoffset: 620; animation: desenhar 1.6s 0.2s ease-out forwards; }
  @keyframes desenhar { to { stroke-dashoffset: 0; } }
}
