/* ==========================================================================
   fotita — site

   A identidade vem do APP e da TIRA, não de uma escolha nova: branco puro,
   quase-preto #111, Inter em pesos leves, tudo minúsculo, muito respiro. O logo
   é o mesmo PNG desenhado à mão que sai impresso no rodapé da tira.
   Antes o site usava serif e paleta bege — não tinha relação com o produto.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg: #ffffff;
  --bg2: #f5f5f5;
  --border: #e0e0e0;
  --text: #111111;
  --text-dim: #888888;
  --text-faint: #bbbbbb;
  --orange: #ff8c00;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* A regra do navegador para [hidden] é apenas display:none — qualquer display
   declarado depois ganharia dela e o bloco escondido voltaria a aparecer. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 620px; margin: 0 auto; padding: 0 1.75rem; }

a { color: inherit; }

/* ── HERO ────────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.75rem 5rem;
  position: relative;
}

.hero-logo {
  width: min(260px, 62vw);
  height: auto;
  display: block;
  margin-bottom: 1.75rem;
}

.tagline {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  line-height: 2;
  margin-bottom: 3rem;
}

.scroll-cta {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.scroll-cta:hover { color: var(--text); }

/* ── CAMPO DO CÓDIGO ─────────────────────────────────────────────────────── */
/* Fica no alto, dentro do hero: a maior parte de quem entra aqui acabou de sair
   da cabine e quer a foto — não pode ter que rolar a página institucional. */

.codigo-bloco { width: 100%; max-width: 340px; }

.codigo-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.codigo-form { display: flex; flex-direction: column; gap: 0.6rem; }

.codigo-input {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
  padding: 0.85rem 0.5rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
}

.codigo-input::placeholder { color: var(--text-faint); letter-spacing: 0.18em; }
.codigo-input:focus { border-color: var(--text); }

.codigo-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.5rem;
  color: var(--bg);
  background: var(--text);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.codigo-btn:hover { opacity: 0.85; }

.codigo-erro {
  color: var(--orange);
  font-size: 0.8rem;
  margin-top: 0.6rem;
}

.codigo-prazo {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.85rem;
}

/* ── SEÇÕES ──────────────────────────────────────────────────────────────── */

.section { padding: 5.5rem 0; }
.section--alt { background: var(--bg2); }

.section h2 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.body-text { color: var(--text-dim); font-weight: 300; }
.body-text.small { font-size: 0.875rem; }
.body-text a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.body-text a:hover { border-color: var(--text); }

/* ── COMO FUNCIONA ───────────────────────────────────────────────────────── */

.steps { list-style: none; margin-top: 2.5rem; }

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.step:last-child { border-bottom: 1px solid var(--border); }

.step-num {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  padding-top: 0.35rem;
  flex: none;
}

.step strong { display: block; font-weight: 500; font-size: 1rem; margin-bottom: 0.2rem; }
.step p { color: var(--text-dim); font-size: 0.875rem; }

/* ── A TIRA ──────────────────────────────────────────────────────────────── */
/* Representação, não foto de cliente: proporção real, fundo preto e o mesmo logo
   que vai impresso no rodapé. Os quadros ficam vazios de propósito — pôr foto
   inventada aqui seria anunciar um resultado que não é o seu. */

.tira-wrap { display: flex; justify-content: center; margin-top: 3rem; }

.tira {
  display: block;
  width: 190px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.13);
}

/* ── ONDE ────────────────────────────────────────────────────────────────── */

.locations { list-style: none; margin: 2rem 0 1.75rem; }

.location {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.location:last-child { border-bottom: 1px solid var(--border); }
.location-city { font-weight: 400; font-size: 0.95rem; }
.location-place { color: var(--text-faint); font-size: 0.8rem; letter-spacing: 0.02em; }

/* ── RODAPÉ ──────────────────────────────────────────────────────────────── */

.footer { background: #111; color: #fff; padding: 4rem 0 3.5rem; text-align: center; }
.footer-logo { width: 96px; height: auto; margin: 0 auto 1.5rem; display: block; opacity: 0.9; }
.footer-links { font-size: 0.85rem; color: #777; }
.footer-links a { color: #bbb; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }

/* ── PÁGINA DA FOTO (/f/) ────────────────────────────────────────────────── */

.foto-page {
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
}

/* Coluna que ocupa a tela inteira: a imagem fica com o que sobrar depois do logo,
   do botão e dos avisos. É o que faz o botão salvar caber sem rolagem em qualquer
   celular, em vez de depender de uma altura chutada para um aparelho só. */
.foto-wrap {
  width: 100%;
  max-width: 420px;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.foto-logo { flex: none; display: block; width: 108px; height: auto; margin-bottom: 1.5rem; }

.foto-achou {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.foto-status { padding: 2rem 0; }
.foto-status p { color: var(--text-dim); font-size: 0.9rem; }

.foto-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 1rem; }

.foto-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-faint);
  animation: foto-pulse 1.2s ease-in-out infinite;
}

.foto-dots span:nth-child(2) { animation-delay: 0.15s; }
.foto-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes foto-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

/* A tira é 1:3 — muito mais alta que larga. Quem manda aqui é a ALTURA: dar a ela
   largura total a prenderia numa caixa larga e baixa, com sobra dos dois lados. */
.foto-achou img {
  display: block;
  min-height: 0;
  flex: 0 1 auto;
  height: 100%;
  width: auto;
  max-width: 100%;
  margin: 0 auto 1.25rem;
  border-radius: 2px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.14);
}

.btn-baixar {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.9rem 2.4rem;
  color: var(--bg);
  background: var(--text);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-baixar:hover { opacity: 0.85; }

.foto-dica { margin-top: 1rem; font-size: 0.8rem; color: var(--text-dim); line-height: 1.6; }
.foto-dica strong { font-weight: 500; }
.foto-prazo { margin-top: 1.4rem; font-size: 0.75rem; color: var(--text-faint); }

.foto-erro-titulo { font-size: 1.15rem; font-weight: 500; margin-bottom: 0.75rem; }
.foto-erro-texto { color: var(--text-dim); font-size: 0.875rem; margin-bottom: 1.5rem; }
.foto-erro-texto.small { font-size: 0.8rem; margin-bottom: 0; }
.foto-erro-texto a { color: var(--text-dim); }
.foto-page .codigo-form { max-width: 300px; margin: 0 auto; }
