:root {
  --fundo: #071422;
  --fundo-elevado: #102038;
  --linha: rgba(255, 255, 255, 0.1);
  --texto: #f4f7fb;
  --suave: #a9b6c9;
  --verde: #ffd000;
  --verde-escuro: #e0ac00;
  --lima: #ffe566;
  --tinta: #0b1c33;
  --perigo: #ffb4a8;
  --sombra: 0 18px 40px rgba(0, 0, 0, 0.35);
  --fonte: "Outfit", "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --raio: 18px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #040810;
  color: var(--texto);
  font-family: var(--fonte);
}

body {
  min-height: 100dvh;
}

button, input { font: inherit; color: inherit; }

button { cursor: pointer; }

img { display: block; max-width: 100%; }

h1, h2, p { margin: 0; }

.app {
  width: min(100%, 440px);
  min-height: 100dvh;
  margin: 0 auto;
  background:
    radial-gradient(120% 70% at 80% -10%, rgba(36, 92, 168, 0.38), transparent 55%),
    var(--fundo);
  position: relative;
}

@media (min-width: 520px) {
  body {
    background:
      radial-gradient(900px 420px at 50% -10%, rgba(36, 92, 168, 0.35), transparent 55%),
      #040810;
  }

  .app {
    min-height: 100dvh;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 80px rgba(0, 0, 0, 0.45);
  }
}

.ecra {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.ecra[hidden] { display: none !important; }

.centro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
  gap: 18px;
}

.marca { display: flex; align-items: center; gap: 12px; }

.marca-grande { flex-direction: column; gap: 8px; }

.simbolo { width: 86px; height: 54px; overflow: visible; }

.simbolo-pequeno { width: 42px; height: 28px; }

.barra { transform-box: fill-box; transform-origin: center; }

.b1 { fill: #ffffff; }
.b2 { fill: var(--lima); }
.b3 { fill: var(--verde); }

.ecra.ativo .barra {
  animation: barra 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.b2 { animation-delay: 0.08s; }
.b3 { animation-delay: 0.16s; }

@keyframes barra {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 2.35rem;
  line-height: 0.9;
  color: var(--verde);
}

.wordmark-pequeno { font-size: 1.28rem; }

.assinatura {
  color: var(--suave);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.linha-carga {
  width: min(220px, 70%);
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.linha-carga span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--verde-escuro), var(--lima));
  animation: carga 1.1s ease-in-out infinite;
}

#ecra-splash .linha-carga span {
  width: 100%;
  transform-origin: left center;
  animation: encher 5s linear forwards;
}

@keyframes carga {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@keyframes encher {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.estado-carga { color: var(--suave); font-size: 0.92rem; }

.topo-inicio {
  padding: calc(14px + env(safe-area-inset-top)) 18px 8px;
}

.hero {
  position: relative;
  height: clamp(300px, 48vh, 460px);
  margin: 4px 0 0;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero-fade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to top, var(--fundo) 8%, rgba(7, 20, 34, 0.15) 70%, transparent);
}

.conteudo-inicio { padding: 0 20px 8px; }

.selo {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--tinta);
  background: var(--lima);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.15rem, 8vw, 2.7rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
}

h1 em {
  font-style: normal;
  color: var(--lima);
}

h2 {
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lead {
  color: var(--suave);
  margin-top: 8px;
  line-height: 1.45;
}

.vantagens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.vantagens li {
  border: 1px solid var(--linha);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 7px 10px;
  color: #d7e4d8;
  font-size: 0.78rem;
  font-weight: 600;
}

.rodape-acao {
  margin-top: auto;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(7, 20, 34, 0.96) 72%, rgba(7, 20, 34, 0));
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(180deg, #ffe566 0%, #ffd000 48%, #f0b400 100%);
  color: var(--tinta);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(255, 208, 0, 0.28);
}

.btn:active { transform: translateY(1px); }

.btn-secundario {
  margin-top: 10px;
  background: transparent;
  color: var(--texto);
  border: 1px solid var(--linha);
  box-shadow: none;
  font-weight: 700;
}

.btn-whatsapp { gap: 8px; }

.btn-texto {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--suave);
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-icone {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--linha);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  flex: none;
}

.btn-icone svg { width: 22px; height: 22px; }

.nota {
  margin-top: 8px;
  text-align: center;
  color: var(--suave);
  font-size: 0.8rem;
}

.topo-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 10px;
}

.progresso { flex: 1; }

#rotulo-passo {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lima);
}

.barra {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#barra-preenchida {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--verde), var(--lima));
  transition: width 0.25s ease;
}

#ecra-formulario {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.miolo {
  flex: 1;
  overflow: auto;
  padding: 8px 20px 12px;
}

.passo h2 { margin-top: 6px; }

.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.campo span, .pesquisa span { font-size: 0.82rem; font-weight: 600; }

.campo input, .pesquisa input {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--linha);
  background: var(--fundo-elevado);
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}

.campo input:focus, .pesquisa input:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 4px rgba(255, 208, 0, 0.2);
}

.campo.tem-erro input { border-color: var(--perigo); }

.erro {
  display: block;
  min-height: 1em;
  color: var(--perigo);
  font-size: 0.78rem;
}

.erro:empty { display: none; }

#erro-geral {
  text-align: center;
  margin-bottom: 8px;
}

.abas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--linha);
}

.abas button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--suave);
  font-size: 0.82rem;
  font-weight: 700;
}

.abas button[aria-selected="true"] {
  background: var(--verde);
  color: var(--tinta);
}

.pesquisa { display: block; margin-top: 12px; }

.lista-locais, .lista-opcoes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.local, .opcao {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--linha);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.opcao { align-items: flex-start; min-height: 84px; }

.local[aria-pressed="true"], .opcao[aria-pressed="true"] {
  border-color: rgba(255, 208, 0, 0.9);
  background: linear-gradient(180deg, rgba(255, 208, 0, 0.18), rgba(255, 208, 0, 0.05));
}

.local-nome, .opcao strong { font-weight: 700; }

.opcao p {
  margin-top: 3px;
  color: var(--suave);
  font-size: 0.84rem;
  line-height: 1.35;
}

.icone {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(255, 208, 0, 0.12);
  color: var(--lima);
}

.icone svg { width: 26px; height: 26px; }

.marca-escolha {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  flex: none;
}

.local[aria-pressed="true"] .marca-escolha,
.opcao[aria-pressed="true"] .marca-escolha {
  border-color: transparent;
  background: var(--verde);
}

.local[aria-pressed="true"] .marca-escolha::after,
.opcao[aria-pressed="true"] .marca-escolha::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid var(--tinta);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.vazio {
  color: var(--suave);
  text-align: center;
  padding: 24px 8px;
}

.sucesso {
  padding: calc(28px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}

.visto {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--tinta);
  background: linear-gradient(180deg, var(--lima), var(--verde));
  box-shadow: var(--sombra);
}

.visto svg { width: 32px; height: 32px; }

.sucesso h2 { margin-top: 14px; }

.referencia {
  margin-top: 16px;
  color: var(--suave);
}

.referencia strong {
  color: var(--texto);
  letter-spacing: 0.04em;
}

.resumo {
  margin: 16px 0 18px;
  padding: 6px 14px;
  border-radius: var(--raio);
  border: 1px solid var(--linha);
  background: rgba(255, 255, 255, 0.03);
}

.resumo div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--linha);
  font-size: 0.92rem;
}

.resumo div:last-child { border-bottom: 0; }

.resumo dt { color: var(--suave); }

.resumo dd { margin: 0; font-weight: 600; text-align: right; }

.aviso {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 208, 0, 0.1);
  color: #fff3c4;
  font-size: 0.84rem;
  line-height: 1.4;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.noscript {
  max-width: 440px;
  margin: 24px auto;
  padding: 0 20px;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
