/* Pitada — site (N5.5). Mesma cara do app: amarelo da marca, tinta azul,
   Fraunces (display) + Figtree (UI). Tokens espelham src/theme/tokens.ts. */

:root {
  --creme: #fffbf0;
  --surface: #ffffff;
  --ink: #1e2a5a;
  --secondary: #5b5f6e;
  --yellow: #ffd400;
  --pink: #f02d7d;
  --pink-dark: #e00264;
  --border: #ece7da;

  --sombra-card: 0 2px 12px rgba(30, 42, 90, 0.1);
  --sombra-forte: 0 14px 34px rgba(30, 42, 90, 0.18);

  --raio: 18px;
  --raio-pill: 999px;
  --largura-max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    'Figtree',
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--yellow);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.display {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a {
  color: var(--pink-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ── Textura do fundo (página inteira) ───────────────────────────────────────
   FIXA e cobrindo a viewport toda, ATRÁS de tudo. Assim a faixa de cima e a área
   de overscroll do desktop também recebem o efeito (antes a textura vivia só
   dentro do .hero e o topo ficava amarelo chapado). `html` amarelo garante que
   até o "puxão" de overscroll seja amarelo. */
html {
  background: var(--yellow);
}
.home {
  background: var(--yellow);
}
.home::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  /* blobs GRANDES, suaves e SÓ na metade de baixo — o topo fica amarelo puro
     (igual ao overscroll), então não há emenda quando a página é puxada pra
     cima. Tons perto do amarelo base p/ ficar homogêneo. */
  background:
    radial-gradient(70% 55% at 25% 82%, #ffe873 0%, transparent 68%),
    radial-gradient(65% 55% at 85% 92%, #fff2a8 0%, transparent 66%),
    radial-gradient(60% 55% at 95% 60%, #ffe259 0%, transparent 64%),
    radial-gradient(65% 55% at 8% 98%, #ffe873 0%, transparent 66%);
  filter: blur(26px);
  /* some suavemente no topo → sem borda visível no overscroll */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 32%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 32%);
  animation: respira 18s ease-in-out infinite;
}
.home::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(rgba(30, 42, 90, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  /* o grão também some no topo */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 32%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 32%);
}
@keyframes respira {
  0%,
  100% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.1) translate(1%, -1%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home::before {
    animation: none;
  }
}

/* ── Hero (a única seção) — conteúdo sobre a textura ─────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px 96px;
}

.hero-conteudo {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-simbolo {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  display: block;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--pink-dark); /* tom rosa na headline (pedido do Fundador) */
}

.hero p {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--ink);
  opacity: 0.74;
  max-width: 480px;
  margin: 0 auto 36px;
}

/* ── Botões das lojas (badges OFICIAIS) ──────────────────────────────────── */
.lojas {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.loja {
  display: inline-block;
  line-height: 0;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}
.loja img {
  height: 54px;
  width: auto;
  display: block;
}

/* App Store: ativa */
.loja--apple {
  filter: drop-shadow(0 6px 16px rgba(30, 42, 90, 0.22));
}
.loja--apple:hover {
  transform: translateY(-2px);
}

/* Google Play: oficial, mas em cinza + "Em breve" (Apple sai primeiro) */
.loja--play {
  position: relative;
  line-height: 0;
  cursor: default;
}
.loja--play img {
  filter: grayscale(1);
  opacity: 0.5;
}
.loja--play .fita {
  position: absolute;
  top: -10px;
  right: -6px;
  background: var(--ink);
  color: #fff;
  font-family: 'Figtree', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 5px 9px;
  border-radius: var(--raio-pill);
  box-shadow: var(--sombra-card);
}

/* ── Rodapé — tinta azul, casando com o hero amarelo ─────────────────────── */
.rodape {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: #fff;
  padding: 56px 24px 40px;
}
.rodape-conteudo {
  max-width: var(--largura-max);
  margin: 0 auto;
}
.rodape-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.rodape-sobre {
  max-width: 300px;
}
.rodape-sobre p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  margin-top: 12px;
}
.rodape-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.rodape-col h4 {
  font-family: 'Figtree', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
}
.rodape-col a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 400;
  margin-bottom: 9px;
}
.rodape-col a:hover {
  color: #fff;
}
.rodape-base {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
}
.rodape-base .copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}
.rodape-base img {
  height: 20px;
  margin-top: 16px;
  opacity: 0.8;
}

/* ── Páginas legais ──────────────────────────────────────────────────────── */
.legal-page {
  background: var(--creme);
}
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px;
}
.legal .voltar {
  display: inline-block;
  margin-bottom: 32px;
  font-weight: 600;
}
.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 8px;
}
.legal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 12px;
}
.legal h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 24px 0 8px;
}
.legal p,
.legal li {
  color: #34384a;
  margin-bottom: 12px;
}
.legal ul,
.legal ol {
  padding-left: 22px;
  margin-bottom: 12px;
}
.legal strong {
  color: var(--ink);
}
.legal hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.legal blockquote {
  background: var(--surface);
  border-left: 3px solid var(--yellow);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0;
  color: var(--secondary);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}
.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal th {
  background: var(--surface);
  font-weight: 600;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .rodape-topo {
    flex-direction: column;
    gap: 32px;
  }
  .rodape-cols {
    gap: 40px;
  }
}
