/* BairroScout — página de lista de espera. Tokens do DESIGN.md §3 (mesa). */
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('/fonts/dm-serif-display.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('/fonts/dm-serif-display-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --fundo: #F5F7F6;
  --papel: #FAF9F5;
  --cartao: #FFFFFF;
  --tinta: #23307A;
  --tinta-clara: #E3E7F7;
  --forte: #14181F;
  --texto: #3B424C;
  --apoio: #5B6470;
  --erro: #A8431F;
  --ok: #17714A;
  --sombra: 0 1px 2px rgba(20,24,31,.04), 0 6px 20px -8px rgba(20,24,31,.10);
  --suave: cubic-bezier(.2,.8,.2,1);
  --mola: cubic-bezier(.34,1.4,.64,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 17px/1.55 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--tinta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 6px; }

.pula {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none;
}
.pula:focus { top: 16px; }

.palco {
  min-height: 100dvh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 56px) 32px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topo { padding: 4px 0 0; }
.marca { font: 400 28px/1 'DM Serif Display', Georgia, serif; color: var(--forte); letter-spacing: .1px; }

/* herói de resposta: pergunta, veredito, um gesto */
.heroi {
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(32px, 7vh, 80px) 0;
}
.texto { position: relative; z-index: 2; max-width: 560px; }

.pergunta {
  margin: 0 0 10px;
  font: italic 400 21px/1.2 'DM Serif Display', Georgia, serif;
  color: var(--tinta);
}
h1 {
  margin: 0 0 22px;
  font: 400 clamp(38px, 5.2vw, 58px)/1.06 'DM Serif Display', Georgia, serif;
  color: var(--forte);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.apoio { margin: 0 0 32px; font-weight: 500; font-size: 18px; color: var(--texto); max-width: 52ch; }

/* formulário: cartão sem contorno, sombra macia */
.lista { max-width: 520px; }
.rotulo { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14.5px; color: var(--forte); }
.linha { display: flex; gap: 10px; flex-wrap: wrap; }
.linha input {
  flex: 1 1 240px; min-width: 0;
  font: 500 17px/1.2 'DM Sans', system-ui, sans-serif;
  color: var(--forte);
  background: var(--cartao);
  border: 0;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--sombra);
  transition: box-shadow .25s var(--suave);
}
.linha input::placeholder { color: var(--apoio); opacity: 1; }
.linha input:focus { outline: 3px solid var(--tinta); outline-offset: 2px; }
.linha input[aria-invalid="true"] { outline: 3px solid var(--erro); outline-offset: 2px; }

button[type="submit"] {
  flex: 0 0 auto;
  font: 600 17px/1.2 'DM Sans', system-ui, sans-serif;
  color: #fff;
  background: var(--tinta);
  border: 0;
  border-radius: 16px;
  padding: 16px 24px;
  cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(35,48,122,.55);
  transition: transform .35s var(--mola), box-shadow .25s var(--suave), background .2s;
}
button[type="submit"]:hover { transform: translateY(-1px); background: #1B2763; }
button[type="submit"]:active { transform: translateY(0); }
button[type="submit"][disabled] { opacity: .65; cursor: progress; transform: none; }

.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nota { margin: 14px 0 0; font-size: 14.5px; color: var(--apoio); }
/* prova logo abaixo do pedido: o dado fala, sem cartão */
.fatos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0 0; padding: 0; max-width: 560px; font-size: 14.5px; line-height: 1.35; color: var(--apoio); }
.fatos strong { display: block; margin-bottom: 2px; font: 400 22px/1.15 'DM Serif Display', Georgia, serif; color: var(--forte); }
.aviso { min-height: 1.5em; margin: 8px 0 0; font-size: 15px; font-weight: 500; color: var(--erro); }

/* estado de sucesso */
.pronto { max-width: 520px; padding: 22px 24px; background: var(--cartao); border-radius: 20px; box-shadow: var(--sombra); animation: entra .5s var(--suave) both; }
.pronto[hidden] { display: none; }
.selo { width: 34px; height: 34px; color: var(--ok); }
.selo path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: traco .6s .15s var(--suave) forwards; }
.pronto-titulo { margin: 10px 0 2px; font: 400 28px/1.15 'DM Serif Display', Georgia, serif; color: var(--forte); }
.pronto-texto { margin: 0; color: var(--texto); }

/* arte como luz: nunca sob texto, máscara diagonal, multiplicada */
.luz {
  position: absolute; z-index: 1;
  right: -2vw; top: 2%; bottom: 2%;
  width: min(54%, 640px);
  background: url('/copa.webp') right center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 62% 42%, #000 28%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 58% at 62% 42%, #000 28%, transparent 100%);
  pointer-events: none;
  animation: desliza 14s ease-in-out infinite alternate;
}

.pe {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap;
  padding-top: 18px;
  font-size: 14.5px; color: var(--apoio);
}
.pe p { margin: 0; max-width: 62ch; }

@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes traco { to { stroke-dashoffset: 0; } }
@keyframes desliza { from { transform: translate3d(0,0,0); } to { transform: translate3d(-10px,6px,0); } }

.texto > * { animation: entra .7s var(--suave) both; }
.texto > *:nth-child(2) { animation-delay: .06s; }
.texto > *:nth-child(3) { animation-delay: .12s; }
.texto > *:nth-child(4) { animation-delay: .18s; }

/* celular: a luz vira uma faixa no pé do herói, fora do texto */
@media (max-width: 899px) {
  .heroi { align-items: start; padding-bottom: 220px; }
  .luz {
    left: -20px; right: -20px; top: auto; bottom: 0; width: auto; height: 220px;
    -webkit-mask-image: radial-gradient(ellipse 58% 50% at 50% 50%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 58% 50% at 50% 50%, #000 40%, transparent 100%);
    opacity: .42;
  }
  .pergunta { font-size: 18px; }
  button[type="submit"] { flex: 1 1 100%; }
  .fatos { grid-template-columns: 1fr; gap: 12px; }
}

/* página de privacidade */
.doc { max-width: 720px; padding: 12px 0 40px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 18px; }
.doc h2 { margin: 30px 0 8px; font: 400 26px/1.2 'DM Serif Display', Georgia, serif; color: var(--forte); }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 20px; }
.doc .volta { display: inline-block; margin-bottom: 22px; font-weight: 600; }
.doc .quando { color: var(--apoio); font-size: 14.5px; }
.marca a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .selo path { stroke-dashoffset: 0; }
}
