:root {
  --fundo: #f6f7f3;
  --superficie: #ffffff;
  --tinta: #14201b;
  --tinta-suave: #4d5b55;
  --linha: #dfe4dc;
  --marca: #0f7a55;
  --marca-forte: #0b5c40;
  --sobre-marca: #ffffff;
  --alerta: #a8480f;
  --alerta-fundo: #fbeadb;
  --ok-fundo: #dff3e9;
  --neutro-fundo: #edf0ea;
  --raio: 14px;
  --largura: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #0e1513;
    --superficie: #16201c;
    --tinta: #e9f0eb;
    --tinta-suave: #a3b1aa;
    --linha: #2a3832;
    --marca: #3ecf8e;
    --marca-forte: #6ee0ac;
    --sobre-marca: #06281b;
    --alerta: #f0a368;
    --alerta-fundo: #3a2414;
    --ok-fundo: #153527;
    --neutro-fundo: #1f2b26;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

img, svg { max-width: 100%; }

a { color: var(--marca-forte); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--marca);
  outline-offset: 2px;
}

.envolve { width: min(100% - 2rem, var(--largura)); margin-inline: auto; }

.pular {
  position: absolute; left: -999px; top: 0;
  background: var(--marca); color: var(--sobre-marca); padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.pular:focus { left: 0; z-index: 10; }

/* Topo */
.topo { padding: 1.1rem 0; }
.topo .envolve { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marca { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -.01em; color: var(--tinta); text-decoration: none; }
.marca svg { width: 28px; height: 28px; flex: none; }
.topo .link-lista { font-weight: 600; font-size: .95rem; white-space: nowrap; }

/* Abertura */
.abertura { padding: 2.2rem 0 3rem; }
.abertura .envolve { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 880px) {
  .abertura { padding: 3.6rem 0 4.4rem; }
  .abertura .envolve { grid-template-columns: 1.08fr .92fr; gap: 3.2rem; }
}

.selo {
  display: inline-block; margin: 0 0 1rem; padding: .28rem .7rem; border-radius: 999px;
  background: var(--neutro-fundo); color: var(--tinta-suave); font-size: .82rem; font-weight: 600;
}

h1 {
  margin: 0 0 1rem; font-size: clamp(2rem, 5.6vw, 3.15rem); line-height: 1.08; letter-spacing: -.025em;
  text-wrap: balance;
}
.subtitulo { margin: 0 0 1.6rem; font-size: 1.14rem; color: var(--tinta-suave); max-width: 34rem; }

.botao {
  display: inline-block; border: 0; border-radius: 12px; padding: .95rem 1.5rem; cursor: pointer;
  background: var(--marca); color: var(--sobre-marca); font: inherit; font-weight: 700; text-decoration: none;
  transition: background .15s ease;
}
.botao:hover { background: var(--marca-forte); }
.botao[disabled] { opacity: .6; cursor: progress; }
.nota-botao { margin: .8rem 0 0; font-size: .9rem; color: var(--tinta-suave); }

/* Exemplo de tela */
.tela {
  background: var(--superficie); border: 1px solid var(--linha); border-radius: 22px; padding: 1.2rem;
  box-shadow: 0 18px 40px -24px rgba(10, 40, 28, .45);
}
.tela-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.tela-titulo { margin: 0; font-size: .86rem; font-weight: 600; color: var(--tinta-suave); }
.tela-total { margin: 0; font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tela ul { list-style: none; margin: 0; padding: 0; }
.tela li {
  display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; align-items: center;
  padding: .8rem 0; border-top: 1px solid var(--linha);
}
.tela .quem { font-weight: 650; }
.tela .quando { grid-column: 1; font-size: .86rem; color: var(--tinta-suave); }
.tela .valor { grid-row: 1; grid-column: 2; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.etiqueta {
  grid-column: 2; justify-self: end; padding: .14rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 650;
  background: var(--neutro-fundo); color: var(--tinta-suave); white-space: nowrap;
}
.etiqueta.atraso { background: var(--alerta-fundo); color: var(--alerta); }
.etiqueta.ok { background: var(--ok-fundo); color: var(--marca-forte); }
.tela-legenda { margin: .9rem 0 0; font-size: .78rem; color: var(--tinta-suave); text-align: center; }

/* Seções */
section { padding: 2.6rem 0; }
h2 { margin: 0 0 1.3rem; font-size: clamp(1.45rem, 3.4vw, 1.9rem); line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }

.blocos .grade { display: grid; gap: 1rem; }
@media (min-width: 640px) { .blocos .grade { grid-template-columns: 1fr 1fr; } }
.bloco { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.25rem 1.3rem; }
.bloco h3 { margin: 0 0 .4rem; font-size: 1.08rem; }
.bloco p { margin: 0; color: var(--tinta-suave); }

.passos ol { margin: 0; padding: 0; list-style: none; counter-reset: passo; display: grid; gap: 1rem; }
@media (min-width: 760px) { .passos ol { grid-template-columns: repeat(3, 1fr); } }
.passos li { counter-increment: passo; padding-top: .2rem; }
.passos li::before {
  content: counter(passo); display: grid; place-items: center; width: 2.1rem; height: 2.1rem; margin-bottom: .7rem;
  border-radius: 50%; background: var(--marca); color: var(--sobre-marca); font-weight: 750;
}

/* Lista de espera */
.lista { padding-bottom: 3.2rem; }
.lista .cartao {
  background: var(--superficie); border: 1px solid var(--linha); border-radius: 22px; padding: 1.5rem;
  max-width: 44rem; margin-inline: auto;
}
@media (min-width: 640px) { .lista .cartao { padding: 2.2rem; } }
.lista .introducao { margin: 0 0 1.6rem; color: var(--tinta-suave); }

.campo { margin-bottom: 1.5rem; }
.campo > label, legend { display: block; margin-bottom: .5rem; font-weight: 650; padding: 0; }
.dica { display: block; margin: -.2rem 0 .55rem; font-size: .88rem; font-weight: 400; color: var(--tinta-suave); }
fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }

input[type="text"], input[type="email"] {
  width: 100%; padding: .85rem .95rem; border: 1.5px solid var(--linha); border-radius: 10px;
  background: var(--fundo); color: var(--tinta); font: inherit;
}
input[type="text"]:focus, input[type="email"]:focus { border-color: var(--marca); }

.opcoes { display: flex; flex-wrap: wrap; gap: .5rem; }
.opcoes.empilhadas { flex-direction: column; }
.opcao { position: relative; }
.opcao input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opcao span {
  display: block; padding: .62rem .95rem; border: 1.5px solid var(--linha); border-radius: 10px;
  background: var(--fundo); font-size: .98rem; line-height: 1.35;
}
.opcao input:checked + span { border-color: var(--marca); background: var(--ok-fundo); font-weight: 650; }
.opcao input:focus-visible + span { outline: 3px solid var(--marca); outline-offset: 2px; }
.opcao input:disabled + span { opacity: .45; }

.marcar { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; margin-bottom: 1rem; }
.marcar input { width: 1.25rem; height: 1.25rem; margin: .18rem 0 0; accent-color: var(--marca); }
.marcar label { font-weight: 400; }

.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

.situacao { margin: 1rem 0 0; font-weight: 600; min-height: 1.5em; }
.situacao.erro { color: var(--alerta); }

.sucesso { text-align: center; padding: 1rem 0; }
.sucesso h2 { margin-bottom: .7rem; }
.sucesso p { color: var(--tinta-suave); margin: 0 auto; max-width: 30rem; }

/* Perguntas frequentes */
.faq details { border-top: 1px solid var(--linha); padding: 1rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--linha); }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--marca-forte); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--tinta-suave); max-width: 46rem; }

/* Páginas de texto */
.texto { max-width: 46rem; padding: 2rem 0 3rem; }
.texto h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); }
.texto h2 { margin-top: 2rem; font-size: 1.25rem; }
.texto p, .texto li { color: var(--tinta-suave); }

/* Rodapé */
.rodape { border-top: 1px solid var(--linha); padding: 1.6rem 0 2.4rem; font-size: .92rem; color: var(--tinta-suave); }
.rodape .envolve { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; }
.rodape nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }

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