/* FUT Detector: site institucional estático (futdetector.com).
   Tema escuro único, nas cores do app (#0A1A2A e #D4AF37). Fonte do sistema:
   zero requisição externa, leitura nativa no iPhone. Cantos: 12px em blocos,
   pílula em botões. */

:root {
  --navy: #0a1a2a;
  --navy-deep: #06111c;
  --navy-raised: #0f2337;
  --gold: #d4af37;
  --gold-soft: #e6c86a;
  --ink: #f3f5f7;
  --ink-body: #c9d2dc;
  --ink-muted: #95a1ae;
  --line: rgba(255, 255, 255, 0.09);
  --line-gold: rgba(212, 175, 55, 0.28);
  --radius: 12px;
  --wrap: 72rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--ink-body);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }

/* Barra superior */
.bar { border-bottom: 1px solid var(--line); background: rgba(10, 26, 42, 0.92); position: sticky; top: 0; z-index: 10; }
@supports (backdrop-filter: blur(1px)) {
  .bar { background: rgba(10, 26, 42, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.bar .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marca { display: flex; align-items: center; gap: 0.625rem; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; }
.marca img { width: 32px; height: 32px; border-radius: 8px; }
.marca:hover { color: var(--ink); }
.nav { display: flex; gap: 1.25rem; font-size: 0.9375rem; }
.nav a { color: var(--ink-muted); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 479px) { .nav .so-largo { display: none; } }

main { flex: 1; }

/* Botão */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px;
  background: var(--gold); color: #0a1a2a; font-weight: 650; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}
.btn:hover { background: var(--gold-soft); color: #0a1a2a; }
.btn:active { transform: translateY(1px) scale(0.99); }

/* Abertura da home */
/* overflow-x: o brilho atrás do ícone passa da borda e criaria rolagem lateral no celular. */
.abertura { padding: 3.5rem 0 4rem; overflow-x: clip; }
.abertura .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .abertura { padding: 5rem 0 5.5rem; }
  .abertura .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
}
.abertura h1 {
  margin: 0 0 1rem; color: var(--ink);
  font-size: clamp(2.25rem, 5.2vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 750;
  max-width: 16ch;
}
.abertura h1 em { font-style: normal; color: var(--gold); }
.abertura p { margin: 0 0 2rem; font-size: 1.125rem; color: var(--ink-body); max-width: 38ch; }
.icone-app { justify-self: center; position: relative; width: min(320px, 72vw); }
.icone-app::before {
  content: ""; position: absolute; inset: -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212, 175, 55, 0.16), transparent 72%);
}
.icone-app img { width: 100%; border-radius: 22%; border: 1px solid var(--line-gold); box-shadow: 0 30px 70px rgba(3, 9, 18, 0.55); }

/* Recursos: grade 2x2 com o Detector em destaque */
.recursos { padding: 4rem 0; border-top: 1px solid var(--line); }
.recursos h2, .fecho h2 { margin: 0 0 2rem; color: var(--ink); font-size: clamp(1.625rem, 3.4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 30ch; }
.grade { display: grid; gap: 1rem; }
@media (min-width: 768px) { .grade { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; } }
.item { padding: 1.5rem; border-radius: var(--radius); background: var(--navy-raised); border: 1px solid var(--line); }
.item h3 { margin: 0 0 0.5rem; color: var(--ink); font-size: 1.125rem; letter-spacing: -0.01em; }
.item p { margin: 0; color: var(--ink-body); max-width: 46ch; }
.item.destaque {
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.02) 55%), var(--navy-raised);
  border-color: var(--line-gold);
}
@media (min-width: 768px) {
  .item.destaque { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 16rem; padding: 2rem; }
  .item.destaque h3 { font-size: 1.5rem; }
}
.item.fundo { background: var(--navy-deep); }
@media (min-width: 768px) { .item.largo { grid-column: 1 / -1; } }

/* Fecho */
.fecho { padding: 4rem 0 5rem; border-top: 1px solid var(--line); }
.fecho .wrap { display: grid; gap: 1.5rem; justify-items: start; }
@media (min-width: 768px) { .fecho .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.fecho h2 { margin: 0; }
.fecho p { margin: 0.75rem 0 0; max-width: 52ch; }

/* Páginas de texto (legal, exclusão, suporte) */
.texto { padding: 3rem 0 4rem; }
.texto .wrap { max-width: 46rem; }
.texto h1 { margin: 0 0 0.5rem; color: var(--ink); font-size: clamp(1.875rem, 4.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; }
.texto .atualizado { margin: 0 0 2.5rem; color: var(--ink-muted); font-size: 0.875rem; }
.texto h2 { margin: 2.5rem 0 0.75rem; color: var(--ink); font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.3; }
.texto p, .texto li { color: var(--ink-body); }
.texto ul, .texto ol { padding-left: 1.25rem; }
.texto li { margin: 0.25rem 0; }
.texto strong { color: var(--ink); }
.aviso { margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--line-gold); background: rgba(212, 175, 55, 0.07); }
.aviso p { margin: 0; }

/* Contatos do suporte */
.contatos { display: grid; gap: 1rem; margin: 2rem 0; }
@media (min-width: 640px) { .contatos { grid-template-columns: 1fr 1fr; } }
.contato { padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--navy-raised); border: 1px solid var(--line); }
.contato h2 { margin: 0 0 0.25rem; font-size: 1rem; color: var(--ink-muted); font-weight: 600; }
.contato a { font-size: 1.0625rem; font-weight: 600; word-break: break-all; }
.contato p { margin: 0.5rem 0 0; font-size: 0.9375rem; }

/* Rodapé */
.rodape { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: 0.875rem; color: var(--ink-muted); }
.rodape .wrap { display: grid; gap: 1rem; }
@media (min-width: 768px) { .rodape .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.rodape nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.rodape a { color: var(--ink-muted); text-decoration: none; }
.rodape a:hover { color: var(--ink); }
.rodape p { margin: 0; }

/* A abertura aparece suave, só sem preferência por movimento reduzido. */
@media (prefers-reduced-motion: no-preference) {
  .surge { animation: surge 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .surge.d1 { animation-delay: 0.08s; }
  .surge.d2 { animation-delay: 0.16s; }
  @keyframes surge { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Seletor de idioma das páginas legais (details, sem script) */
.idiomas { position: relative; }
.idiomas summary { list-style: none; cursor: pointer; color: var(--gold-soft); border: 1px solid var(--line-gold); border-radius: 999px; padding: 0.125rem 0.75rem; font-weight: 600; letter-spacing: 0.04em; }
.idiomas summary::-webkit-details-marker { display: none; }
.idiomas summary::after { content: ""; display: inline-block; margin-left: 0.45rem; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.idiomas[open] summary { color: var(--gold); }
.idiomas div { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 20; display: grid; min-width: 9.5rem; padding: 0.375rem; border-radius: var(--radius); border: 1px solid var(--line-gold); background: #0d2034; box-shadow: 0 20px 50px rgba(3, 9, 18, 0.6); }
.idiomas div a { padding: 0.5rem 0.75rem; border-radius: 8px; }
.idiomas div a:hover, .idiomas div a[aria-current="true"] { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
