/* Aurora Vet — site do piloto. Paleta Indigo vivo; Manrope no texto, Comfortaa so no logotipo. */

@font-face {
  font-family: 'Manrope';
  src: url('/fontes/manrope-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Subconjunto so com as letras do logotipo (A u r o v e t). */
@font-face {
  font-family: 'Comfortaa Logo';
  src: url('/fontes/comfortaa-logo.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --tinta: #1d1f4f;
  --principal: #4d5bd6;
  --principal-escuro: #3d4ac0;
  --claro: #a8b3ff;
  --fundo: #f2f3fc;
  --papel: #ffffff;
  --tinta-suave: #4a4c78;
  --borda: #cfd3f0;
  --borda-forte: #9ea5dc;
  --raio: 14px;
  --raio-g: 22px;
  --margem: 1.25rem;
  --barra: 76px;
  --texto: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

/* hidden sempre vence (botoes usam display:flex) */
[hidden] { display: none !important; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-bottom: calc(var(--barra) + env(safe-area-inset-bottom));
}

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

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; }
p { margin: 0; }

a { color: var(--principal); text-underline-offset: 0.18em; }

:focus-visible {
  outline: 3px solid var(--principal);
  outline-offset: 3px;
  border-radius: 6px;
}

main, .topo, .rodape {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: var(--margem);
}

/* ---------- logotipo ---------- */

.topo { padding-top: 1.1rem; padding-bottom: 0.4rem; }

.logo {
  font-family: 'Comfortaa Logo', var(--texto);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tinta);
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo-ponto {
  display: inline-block;
  width: 0.17em;
  height: 0.17em;
  margin-inline: 0.07em;
  border-radius: 50%;
  background: var(--principal);
  vertical-align: 0.13em;
}

.logo-vet { font-weight: 400; opacity: 0.72; }

/* ---------- topo: voz primeiro ---------- */

.hero { padding-top: 1.75rem; }

.hero h1 {
  font-size: clamp(2.2rem, 9.8vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.titulo-2 { display: block; color: var(--principal); }

.sub {
  margin-top: 1.1rem;
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--tinta-suave);
}

.demo { margin: 1.75rem 0 0; }

.demo video {
  /* altura limitada sem cortar: a legenda do video fica embaixo */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  border-radius: var(--raio-g);
  background: var(--tinta);
}

.demo-quadro {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

/* botao proprio de tocar: aparece quando o navegador nao toca sozinho
   (ex.: Modo Pouca Energia do iPhone bloqueia o autoplay) */
.demo-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4.5rem;
  height: 4.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--principal);
  box-shadow: 0 0.5rem 1.5rem rgb(29 31 79 / 0.35);
  cursor: pointer;
}
.demo-play::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.85rem 0 0.85rem 1.4rem;
  border-color: transparent transparent transparent #fff;
  transform: translateX(0.15rem);
}
.demo-play:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }

.demo figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--tinta-suave);
}

/* ---------- laudo ---------- */

.laudo { margin-top: 4.5rem; }

.laudo h2, .passos h2, .quem h2, .perguntas h2 {
  font-size: clamp(1.7rem, 7vw, 2.35rem);
  font-weight: 800;
}

.laudo-texto p { margin-top: 0.8rem; color: var(--tinta-suave); }

.laudo-img {
  margin-top: 1.6rem;
  width: 100%;
  border-radius: var(--raio);
  border: 1px solid var(--borda);
  background: var(--papel);
}

/* ---------- tres passos (sequencia real) ---------- */

.passos { margin-top: 4.5rem; }

.lista-passos {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  counter-reset: passo;
}

.lista-passos li {
  counter-increment: passo;
  position: relative;
  padding: 0 0 1.75rem 3.5rem;
}

.lista-passos li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--principal);
  color: var(--papel);
  font-weight: 800;
  font-size: 1.1rem;
}

/* fio que liga um passo ao proximo */
.lista-passos li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(1.2rem - 1px);
  top: 2.5rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--claro);
}

.lista-passos h3 { font-size: 1.3rem; font-weight: 800; }
.lista-passos p { margin-top: 0.3rem; color: var(--tinta-suave); }

/* ---------- sem internet ---------- */

.offline {
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  border-block: 2px solid var(--tinta);
  font-size: 1.2rem;
  line-height: 1.45;
}

/* ---------- vaga de fundador ---------- */

.fundador {
  margin-top: 4.5rem;
  padding: 2rem 1.5rem 2.1rem;
  border-radius: var(--raio-g);
  background: var(--tinta);
  color: var(--fundo);
}

.fundador h2 {
  font-size: clamp(1.7rem, 7vw, 2.35rem);
  font-weight: 800;
}

.fundador h2::after {
  content: '';
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.12em;
  border-radius: 50%;
  background: var(--claro);
}

.fundador p { margin-top: 0.9rem; font-size: 1.15rem; line-height: 1.5; }

/* ---------- quem faz ---------- */

.quem { margin-top: 4.5rem; }
.quem p { margin-top: 0.8rem; }
.dores { margin-top: 1.25rem; padding: 0; list-style: none; }
.dores li {
  padding: 0.9rem 0 0.9rem 1rem;
  border-left: 3px solid var(--principal);
}
.dores li + li { margin-top: 0.75rem; }
.dores strong { display: block; color: var(--tinta); }

/* ---------- perguntas ---------- */

.perguntas { margin-top: 4.5rem; }
.perguntas h2 { margin-bottom: 1rem; }

.perguntas details { border-top: 1px solid var(--borda-forte); }
.perguntas details:last-of-type { border-bottom: 1px solid var(--borda-forte); }

.perguntas summary {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}

.perguntas summary::-webkit-details-marker { display: none; }

.perguntas summary::after {
  content: '+';
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--principal);
  color: var(--principal);
  font-weight: 700;
  line-height: 1;
}

.perguntas details[open] summary::after { content: '\2212'; }

.perguntas details p { padding: 0 0 1.1rem; color: var(--tinta-suave); }

/* ---------- formulario ---------- */

.participar {
  margin-top: 4.5rem;
  scroll-margin-top: 1rem;
}

#form-candidatura, .obrigado {
  padding: 1.75rem 1.25rem;
  border-radius: var(--raio-g);
  background: var(--papel);
  border: 1px solid var(--borda);
}

.participar h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); font-weight: 800; }

.form-intro { margin-top: 0.6rem; color: var(--tinta-suave); }

.campo { margin: 1.25rem 0 0; }

.campo label, .campo legend {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.dica { font-weight: 500; color: var(--tinta-suave); font-size: 0.9375rem; }

.campo input[type='text'],
.campo input[type='tel'],
.campo input[type='email'] {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--borda-forte);
  border-radius: var(--raio);
  background: var(--papel);
  color: var(--tinta);
  font: inherit;
  font-size: 1.0625rem; /* >= 16px: evita o zoom do iPhone ao focar */
}

.campo input::placeholder { color: #8d90b3; }

.campo input:focus { outline: none; border-color: var(--principal); box-shadow: 0 0 0 3px var(--claro); }

.campo input[aria-invalid='true'] {
  border-color: var(--tinta);
  border-width: 2px;
  background: #eceefd;
}

.erro-campo {
  margin-top: 0.4rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--principal);
  font-weight: 700;
  font-size: 0.9375rem;
}

.opcoes { border: 0; padding: 0; min-width: 0; }

.opcoes-lista { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.opcao { position: relative; display: block; margin: 0; font-weight: 600; }

.opcao input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.opcao span {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1.1rem;
  border: 1.5px solid var(--borda-forte);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
}

.opcao input:checked + span {
  background: var(--principal);
  border-color: var(--principal);
  color: var(--papel);
}

.opcao input:focus-visible + span { outline: 3px solid var(--principal); outline-offset: 3px; }

/* campo-isca: fora da tela, so robo preenche */
.isca {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.erro-envio:not(:empty) {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--raio);
  background: var(--tinta);
  color: var(--fundo);
  font-weight: 600;
}

.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: var(--raio);
  background: var(--principal);
  color: var(--papel);
  font: inherit;
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.botao:hover { background: var(--principal-escuro); }
.botao:active { transform: translateY(1px); }
.botao:disabled { cursor: progress; opacity: 0.72; transform: none; }

.botao-secundario {
  background: transparent;
  color: var(--principal);
  border: 1.5px solid var(--principal);
}

.botao-secundario:hover { background: #e6e8fb; }

#tentar-de-novo { width: 100%; margin-top: 0.75rem; }

.botao-enviar { width: 100%; margin-top: 1.5rem; }

.lgpd { margin-top: 0.9rem; font-size: 0.875rem; color: var(--tinta-suave); line-height: 1.5; }

.obrigado h2 { outline: none; }

/* Aurora (mascote) acenando: o disco branco esconde o halo do fundo branco do video */
.aurora-moldura {
  width: 104px;
  height: 104px;
  margin-bottom: 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--claro);
  box-shadow: 0 6px 18px rgba(29, 31, 79, 0.12);
}
.aurora-aceno {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.obrigado p { margin-top: 0.9rem; }
.obrigado .botao { width: 100%; margin-top: 1.5rem; }
.indicar-status { font-weight: 700; }
.indicar-status:empty { display: none; }

/* ---------- rodape e botao fixo ---------- */

.rodape {
  margin-top: 4rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--tinta-suave);
  border-top: 1px solid var(--borda);
}

.cta-barra {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 0.6rem var(--margem) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(242, 243, 252, 0.96);
  border-top: 1px solid var(--borda);
  transition: transform 0.2s ease, visibility 0.2s;
}

.cta-barra .botao { max-width: 28rem; margin-inline: auto; min-height: 3.25rem; }

.cta-barra[data-oculto] { transform: translateY(110%); visibility: hidden; }

/* ---------- telas largas ---------- */

@media (min-width: 60rem) {
  main, .topo, .rodape { max-width: 70rem; padding-inline: 2.5rem; }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.5rem;
    align-items: center;
    padding-top: 3rem;
  }

  .demo { margin-top: 0; }

  .laudo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
    margin-top: 6rem;
  }

  .laudo-img { margin-top: 0; }

  .passos, .offline, .fundador, .quem, .perguntas, .participar { max-width: 44rem; }
  .passos, .quem, .perguntas, .fundador, .participar { margin-top: 6rem; }

  #form-candidatura, .obrigado { padding: 2.25rem 2rem; }
  .aurora-moldura { width: 128px; height: 128px; }
}

/* ---------- politica de privacidade ---------- */

.doc { padding-top: 1.5rem; padding-bottom: 2rem; max-width: 44rem; }
.doc h1 { font-size: clamp(2rem, 8vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.doc .atualizado { margin-top: 0.5rem; color: var(--tinta-suave); font-size: 0.9375rem; }
.doc h2 { margin-top: 2.25rem; font-size: 1.3rem; font-weight: 800; }
.doc p, .doc ul { margin-top: 0.7rem; }
.doc ul { padding-left: 1.2rem; }
.doc li + li { margin-top: 0.3rem; }
.doc .voltar { display: inline-block; margin-top: 2.5rem; font-weight: 700; }
body.pagina-doc { padding-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
