/* SindiÁgil — página de espera
   Tokens extraídos do Figma (Design System SindiÁgil). */

:root {
  /* Marinho (hero e rodapé) */
  --marinho: #061833;
  --marinho-texto: #f0f5fc;
  --marinho-texto-sec: #a9b8cf;
  --marinho-texto-ter: #8b9bb5;
  --marinho-link: #3c9bff;
  --marinho-borda: #24406b;
  --logo-agil: #1e8cff;

  /* Claro */
  --fundo-canvas: #f0f5fc;
  --fundo-superficie: #ffffff;
  --texto-primario: #061833;
  --texto-secundario: #4a5a73;
  --texto-terciario: #5e6d84;
  --texto-link: #2666e0;
  --borda-padrao: #d5deeb;
  --borda-forte: #7d8ca3;
  --borda-foco: #2666e0;
  --primaria: #2666e0;
  --primaria-hover: #1d55c4;
  --primaria-sutil: #e8f0fd;
  --sobre-primaria: #ffffff;
  --sucesso-fundo: #e0f8f5;
  --erro-texto: #c62828;
  --erro-fundo: #fdecec;
  --verde-agua: #02d0bf;

  --raio-md: 8px;
  --raio-lg: 12px;
  --raio-xl: 16px;

  --fonte-texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fonte-titulo: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  --gutter: 20px;
  --largura: 1200px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--marinho);
  color: var(--texto-primario);
  font-family: var(--fonte-texto);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--borda-foco);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: calc(var(--largura) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.so-mobile { display: inline; }
.so-desktop { display: none; }

.pular {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--fundo-superficie);
  color: var(--texto-primario);
  border-radius: var(--raio-md);
}
.pular:focus { top: 16px; }

/* ---------- Tipografia ---------- */
.sobrelinha {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sobrelinha--link { color: var(--texto-link); }
.sobrelinha--link-escuro { color: var(--marinho-link); }

.display {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--marinho-texto);
}
.display .destaque { color: var(--logo-agil); }

.titulo-2 {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.titulo-3 {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--texto-primario);
}

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto-secundario);
}
.lead--escuro { color: var(--marinho-texto-sec); }
.lead--sobre-primaria { color: var(--sobre-primaria); opacity: 0.92; }

.corpo {
  font-size: 16px;
  line-height: 1.5;
  color: var(--texto-secundario);
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 7.8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo__simbolo { width: 36px; height: 36px; }
.logo__nome { width: 83.6px; height: auto; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--raio-md);
  font: 500 14px/20px var(--fonte-texto);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 160ms ease, transform 120ms ease;
}
.botao:active { transform: scale(0.98); }
.botao--primario {
  background: var(--primaria);
  color: var(--sobre-primaria);
}
@media (hover: hover) {
  .botao--primario:hover { background: var(--primaria-hover); }
  .botao--secundario:hover { background: var(--fundo-canvas); }
}
.botao--secundario {
  height: 40px;
  padding: 0 16px;
  background: var(--fundo-superficie);
  color: var(--texto-primario);
  border: 1px solid var(--borda-forte);
}
.botao--bloco { width: 100%; }
.botao--whatsapp {
  flex-shrink: 0;
  height: 40px;
  padding: 0 14px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.55);
  color: var(--marinho-texto);
  white-space: nowrap;
}
.botao--whatsapp svg { width: 18px; height: 18px; color: #25d366; flex-shrink: 0; }
@media (hover: hover) {
  .botao--whatsapp:hover { background: rgba(37, 211, 102, 0.22); }
}
.botao[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.botao[aria-busy="true"] .botao__texto::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: girar 700ms linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero {
  background: var(--marinho);
  color: var(--marinho-texto);
  padding: 20px 0 64px;
  overflow: hidden;
}
.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hero__conteudo {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}
.hero__texto {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chamada {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chamada .botao { width: 100%; }
.chamada__apoio {
  font-size: 14px;
  line-height: 21px;
  color: var(--marinho-texto-sec);
  text-align: center;
}
.garantias {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.garantias li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 21px;
  color: var(--marinho-texto-sec);
}
.garantias img { width: 18px; height: 18px; flex-shrink: 0; }

/* Visual de apoio: imagem exportada do Figma (mockups + brilho + legenda),
   já composta sobre o marinho. Mobile: quadro 350 × 500, exportado de -20 a +20 px. */
.visual {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin-inline: auto;
  aspect-ratio: 350 / 500;
}
.visual__imagem {
  position: absolute;
  left: -5.714%;   /* -20 / 350 */
  top: -4%;        /* -20 / 500 */
  width: 111.43%;  /* 390 / 350 */
  max-width: none;
  height: auto;
  /* suaviza as bordas do brilho em telas mais largas que 390 px */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Recursos ---------- */
.recursos {
  background: var(--fundo-canvas);
  padding: 64px 0;
}
.recursos__cabecalho {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}
.recursos__cabecalho .titulo-2 { color: var(--texto-primario); }
.grade-recursos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
.card-recurso {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--fundo-superficie);
  border: 1px solid var(--borda-padrao);
  border-radius: var(--raio-lg);
}
.card-recurso__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primaria-sutil);
}
.card-recurso__icone img { width: 24px; height: 24px; }

/* ---------- Captura de interesse ---------- */
.captura {
  background: linear-gradient(151deg, #2a66f2 0%, #1746d6 71.4%);
  color: var(--sobre-primaria);
  padding: 64px 0;
  scroll-margin-top: 0;
}
.captura__container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.captura__texto {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.itens {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.itens li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
}
.marcador {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.marcador img { width: 16px; height: 16px; }

.formulario-wrap { width: 100%; }
.formulario {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: var(--fundo-superficie);
  border: 1px solid var(--borda-padrao);
  border-radius: var(--raio-xl);
  box-shadow: 0 12px 16px rgba(6, 24, 51, 0.08);
  color: var(--texto-primario);
}
.formulario__cabecalho {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.campos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.campos__linha {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.campos__linha .campo { flex: 1 1 200px; min-width: 200px; }

.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.campo__rotulo {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--texto-primario);
}
.campo__input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--borda-forte);
  border-radius: var(--raio-md);
  background: var(--fundo-superficie);
  color: var(--texto-primario);
  /* 16px no mobile evita o zoom automático do iOS ao focar */
  font: 400 16px/21px var(--fonte-texto);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.campo__input::placeholder { color: var(--texto-terciario); opacity: 1; }
.campo__input:focus {
  outline: none;
  border-color: var(--borda-foco);
  box-shadow: inset 0 0 0 1px var(--borda-foco);
}
.campo__input[aria-invalid="true"] {
  border-color: var(--erro-texto);
  box-shadow: inset 0 0 0 1px var(--erro-texto);
}
.campo__erro {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  line-height: 18px;
  color: var(--erro-texto);
}
.campo__erro[hidden] { display: none; }
.campo__erro::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.select { position: relative; }
.select__input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.select__input:invalid,
.select__input.vazio { color: var(--texto-terciario); }
.select__input option { color: var(--texto-primario); }
.select__chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}

.checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 21px;
  color: var(--texto-primario);
}
.checkbox__input {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
}
.checkbox__caixa {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.5px;
  border: 1.5px solid var(--borda-forte);
  border-radius: 4px;
  background: var(--fundo-superficie);
  transition: background-color 120ms ease, border-color 120ms ease;
}
.checkbox__caixa::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sobre-primaria);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  opacity: 0;
}
.checkbox__input:checked + .checkbox__caixa {
  background: var(--primaria);
  border-color: var(--primaria);
}
.checkbox__input:checked + .checkbox__caixa::after { opacity: 1; }
.checkbox__input:focus-visible + .checkbox__caixa {
  outline: 2px solid var(--borda-foco);
  outline-offset: 2px;
}
.checkbox__input[aria-invalid="true"] + .checkbox__caixa { border-color: var(--erro-texto); }

.armadilha {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formulario__alerta {
  padding: 10px 12px;
  border-radius: var(--raio-md);
  background: var(--erro-fundo);
  color: var(--erro-texto);
  font-size: 14px;
  line-height: 21px;
}

.legal {
  font-size: 12px;
  line-height: 1.5;
  color: var(--texto-terciario);
}
.legal a { color: var(--texto-link); text-decoration: none; }
.legal a.sublinhado { text-decoration: underline; }
@media (hover: hover) {
  .legal a:hover { text-decoration: underline; }
}

/* Estado de sucesso */
.formulario--sucesso { padding-top: 48px; padding-bottom: 48px; }
.formulario--sucesso:focus { outline: none; }
.formulario--sucesso[hidden] { display: none; }
.sucesso__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sucesso-fundo);
}
.sucesso__icone img { width: 32px; height: 32px; }
.formulario--sucesso .corpo a { color: var(--texto-link); }
.formulario--sucesso .botao { align-self: flex-start; }
.divisor {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--borda-padrao);
}
.entrar { animation: entrar 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes entrar {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .entrar { animation: none; }
}

/* ---------- Rodapé ---------- */
.rodape {
  background: var(--marinho);
  color: var(--marinho-texto-sec);
  padding: 40px 0 32px;
  font-size: 14px;
  line-height: 21px;
}
.rodape__marcas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.rodape__dominio {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.rodape__dominio img { width: 113.2px; height: 32.8px; }
.rodape__acoes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
@media (min-width: 1024px) {
  .rodape__acoes { flex-direction: row; align-items: center; gap: 32px; }
}
.rodape__divisor {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: var(--marinho-borda);
}
.rodape__inferior {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.rodape__copy { order: 2; }
.rodape__contato {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rodape__contato a { text-decoration: none; }
.rodape__contato a.link { color: var(--marinho-link); }
@media (hover: hover) {
  .rodape__contato a:hover { text-decoration: underline; }
}

/* =========================================================
   Tablet (≥ 640px)
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .chamada { flex-direction: row; align-items: center; padding-top: 8px; }
  .chamada .botao { width: auto; }
  .chamada__apoio { text-align: left; }
  .garantias { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; padding-top: 8px; }
  .hero__texto { gap: 24px; }
  .grade-recursos { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .formulario { padding: 36px; }
  .formulario--sucesso { padding-top: 48px; padding-bottom: 48px; }
}

/* =========================================================
   Desktop (≥ 1024px) — Figma "Desktop 1440"
   ========================================================= */
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  .so-mobile { display: none; }
  .so-desktop { display: inline; }
  li.so-desktop { display: list-item; }

  .hero { padding: 32px 0 120px; }
  .logo--hero { gap: 9.75px; }
  .logo--hero .logo__simbolo { width: 45px; height: 45px; }
  .logo--hero .logo__nome { width: 104.52px; }

  .hero__conteudo {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 80px;
  }
  .hero__texto { flex: 0 1 540px; min-width: 0; }
  .display { font-size: clamp(44px, 4.2vw, 60px); line-height: 1.1; }
  .lead { font-size: 20px; }

  /* Visual: quadro 640 × 580 do Figma; a exportação cobre x -60…640 e y -54…635.
     Em proporção, para escalar entre 1024 e 1440. */
  .visual {
    flex: 0 1 640px;
    max-width: 640px;
    aspect-ratio: 640 / 580;
    margin: 0;
  }
  .visual__imagem {
    left: -9.375%;   /* -60 / 640 */
    top: -9.31%;     /* -54 / 580 */
    width: 109.375%; /* 700 / 640 */
    -webkit-mask-image: none;
    mask-image: none;
  }

  .recursos { padding: 112px 0; }
  .recursos__cabecalho { gap: 16px; }
  .titulo-2 { font-size: 40px; line-height: 1.2; }
  .grade-recursos {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 56px;
  }
  .card-recurso { padding: 28px; }

  .captura { padding: 112px 0; }
  .captura__container {
    flex-direction: row;
    align-items: center;
    gap: 80px;
  }
  .captura__texto { flex: 1 1 0; min-width: 0; gap: 20px; }
  .itens { gap: 14px; padding-top: 8px; }
  .marcador { width: 28px; height: 28px; }
  .formulario-wrap { flex: 0 0 560px; width: 560px; }
  .campo__input { font-size: 14px; }

  .rodape { padding: 56px 0 40px; }
  .rodape__marcas {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .rodape__divisor { margin: 32px 0; }
  .rodape__inferior {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .rodape__copy { order: 0; }
  .rodape__contato { flex-direction: row; gap: 28px; }
}

/* Aviso de cookies */
.cookies {
  position: fixed;
  z-index: 50;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 440px;
  padding: 16px;
  background: var(--fundo-superficie);
  color: var(--texto-primario);
  border: 1px solid var(--borda-padrao);
  border-radius: var(--raio-lg);
  box-shadow: 0 12px 32px rgba(6, 24, 51, 0.28);
  animation: cookies-entrar 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cookies[hidden] { display: none; }
.cookies__titulo { margin: 0 0 4px; font: 600 15px/22px var(--fonte-texto); }
.cookies__texto { margin: 0; font: 400 14px/20px var(--fonte-texto); color: var(--texto-secundario); }
.cookies__texto a { color: var(--texto-link); }
.cookies__acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
@media (min-width: 768px) {
  .cookies { left: 24px; right: auto; bottom: 24px; padding: 20px; }
}
@keyframes cookies-entrar {
  from { opacity: 0; transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .cookies { animation: none; }
}
