/* O site do produto (spec 089). Os tokens sao os do painel (frontend/src/styles.css, spec 085):
   papel, tinta e caneta; o latao so aparece no desenho da marca. Fontes do sistema: baixar fonte de
   terceiro mandaria o endereco de quem visita para fora (FR-009). */
:root {
  --surface: 250 250 249;
  --elevated: 255 255 255;
  --line: 231 229 228;
  --ink: 28 25 23;
  --muted: 107 101 96;
  --brand: 37 59 157;
  --sobre-brand: 255 255 255;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: 12 13 15;
    --elevated: 24 26 29;
    --line: 44 47 52;
    --ink: 237 236 234;
    --muted: 156 156 160;
    --brand: 142 161 246;
    --sobre-brand: 12 13 15;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: rgb(var(--surface));
  color: rgb(var(--ink));
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: rgb(var(--brand));
}

a:focus-visible,
.botao:focus-visible {
  outline: 3px solid rgb(var(--brand));
  outline-offset: 3px;
  border-radius: 0.5rem;
}

.faixa {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .faixa {
    padding: 0 1.5rem;
  }
}

.pular {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  background: rgb(var(--elevated));
  border: 1px solid rgb(var(--line));
  border-radius: 0.5rem;
}

.pular:focus {
  top: 1rem;
}

/* -- topo ----------------------------------------------------------------------------------- */
.topo {
  border-bottom: 1px solid rgb(var(--line));
  background: rgb(var(--surface));
}

.topo-faixa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo img {
  height: 2rem;
  width: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.menu a:not(.botao) {
  color: rgb(var(--muted));
  text-decoration: none;
  font-size: 0.9375rem;
}

.menu a:not(.botao):hover {
  color: rgb(var(--ink));
}

@media (max-width: 639px) {
  .menu a:not(.botao) {
    display: none;
  }
}

/* -- botoes --------------------------------------------------------------------------------- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid rgb(var(--brand));
  border-radius: 0.625rem;
  background: rgb(var(--brand));
  color: rgb(var(--sobre-brand));
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.botao:hover {
  filter: brightness(1.08);
}

.botao-secundario {
  background: transparent;
  border-color: rgb(var(--line));
  color: rgb(var(--ink));
}

.botao-secundario:hover {
  border-color: rgb(var(--brand));
  filter: none;
}

.botao-pequeno {
  min-height: 2.25rem;
  padding: 0 0.875rem;
  font-size: 0.9375rem;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* -- abertura ------------------------------------------------------------------------------- */
.abertura {
  padding: 3.5rem 0 4rem;
}

@media (min-width: 840px) {
  .abertura {
    padding: 5.5rem 0 6rem;
  }
}

.selo {
  margin: 0 0 1rem;
  color: rgb(var(--brand));
  font-size: 0.9375rem;
  font-weight: 600;
}

h1 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.lead {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
}

.nota {
  margin: 1rem 0 0;
  color: rgb(var(--muted));
  font-size: 0.9375rem;
}

/* -- secoes --------------------------------------------------------------------------------- */
.secao {
  padding: 3.5rem 0;
  border-top: 1px solid rgb(var(--line));
}

@media (min-width: 840px) {
  .secao {
    padding: 4.5rem 0;
  }
}

.secao-alternada {
  background: rgb(var(--elevated));
}

.grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.cartao {
  padding: 1.25rem;
  background: rgb(var(--elevated));
  border: 1px solid rgb(var(--line));
  border-radius: 0.875rem;
}

.cartao p {
  margin: 0;
  color: rgb(var(--muted));
}

.secao-alternada .cartao {
  background: rgb(var(--surface));
}

@media (min-width: 840px) {
  .duas-colunas {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: start;
  }
}

.lista-marcada {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lista-marcada li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
}

.lista-marcada li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.05rem;
  width: 0.6rem;
  height: 0.32rem;
  border-left: 2px solid rgb(var(--brand));
  border-bottom: 2px solid rgb(var(--brand));
  transform: rotate(-45deg);
}

/* -- diagnostico de exemplo ------------------------------------------------------------------ */
.diagnostico {
  margin-top: 2rem;
  padding: 1.25rem;
  background: rgb(var(--elevated));
  border: 1px solid rgb(var(--line));
  border-radius: 0.875rem;
}

@media (min-width: 640px) {
  .diagnostico {
    padding: 1.75rem 2rem;
  }
}

.aviso {
  margin: 0 0 1.25rem;
  padding: 0.625rem 0.875rem;
  border-left: 3px solid rgb(var(--brand));
  background: rgb(var(--brand) / 0.07);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.9375rem;
}

.diagnostico table {
  width: 100%;
  border-collapse: collapse;
}

.diagnostico caption {
  margin-bottom: 0.25rem;
  text-align: left;
  font-weight: 600;
}

.diagnostico thead th {
  padding: 0.5rem 0;
  color: rgb(var(--muted));
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.diagnostico tbody th,
.diagnostico tbody td {
  padding: 0.875rem 0;
  border-top: 1px solid rgb(var(--line));
  vertical-align: top;
}

.diagnostico tbody th {
  font-weight: 600;
  text-align: left;
}

.diagnostico tbody th span {
  display: block;
  margin-top: 0.2rem;
  color: rgb(var(--muted));
  font-size: 0.9rem;
  font-weight: 400;
}

.diagnostico .valor {
  padding-left: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.diagnostico tfoot th,
.diagnostico tfoot td {
  padding: 1rem 0 0;
  border-top: 2px solid rgb(var(--ink));
  font-size: 1.125rem;
  font-weight: 700;
  text-align: left;
}

.diagnostico tfoot .valor {
  text-align: right;
}

.fora {
  margin: 1.25rem 0 1.5rem;
  color: rgb(var(--muted));
  font-size: 0.9375rem;
}

/* -- piloto ---------------------------------------------------------------------------------- */
.passos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: passo;
}

.passos li {
  padding: 1.25rem;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  border-radius: 0.875rem;
  counter-increment: passo;
}

.passos li::before {
  content: counter(passo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgb(var(--brand));
  color: rgb(var(--sobre-brand));
  font-weight: 700;
}

.passos p {
  margin: 0;
  color: rgb(var(--muted));
}

/* -- precos ---------------------------------------------------------------------------------- */
.preco .faixa-de-pedidos {
  margin: 0 0 0.5rem;
  color: rgb(var(--muted));
  font-size: 0.9375rem;
}

.preco .valor-do-plano {
  margin: 0;
  color: rgb(var(--ink));
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.preco .valor-do-plano span {
  display: block;
  color: rgb(var(--muted));
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
}

.condicoes {
  margin-top: 1.5rem;
}

/* -- rodape ---------------------------------------------------------------------------------- */
.rodape {
  padding: 2rem 0;
  border-top: 1px solid rgb(var(--line));
  color: rgb(var(--muted));
}

.rodape-faixa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.rodape-faixa p {
  margin: 0;
}

.rodape img {
  height: 1.5rem;
  width: auto;
}

@media print {
  .pular,
  .menu,
  .acoes {
    display: none;
  }
}
