/* ==========================================================================
   Sistema visual Luppe 2026 — páginas estáticas e 404
   Contrato: .design/sistema-luppe.design.json (auditado, 0 falhas)

   Regra de cor: #3399FF e #33D9FF nunca carregam texto. Todo texto informativo
   usa --texto (15,03:1 no branco), --fraco (6,23:1 no branco) ou branco sobre
   fundo escuro medido. Escala única: --t1..--t5. Contraste medido, não estimado.
   ========================================================================== */

:root {
  --texto: #002163;
  --fraco: #4E5F76;
  --acento: #0A4FA8;
  --acento-claro: #1A6BC9;
  --acento-hover: #083F8A;
  --acento-suave: #E8F2FE;
  --fundo: #FFFFFF;
  --superficie: #F4FBFF;
  --linha: #DCEAF7;

  --t1: clamp(1.75rem, 4vw, 2.5rem);
  --t2: clamp(1.5rem, 3vw, 2.125rem);
  --t3: 1.375rem;
  --t4: 1.125rem;
  --t5: 0.875rem;

  --raio-botao: 12px;
  --raio-cartao: 16px;
  --raio-bloco: 20px;

  --foco: 2px solid var(--acento);
  --foco-escuro: 2px solid #FFFFFF;
}

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

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: 'Poppins', system-ui, Arial, sans-serif;
  font-size: var(--t4);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--acento); }
h1, h2, h3 { margin: 0; line-height: 1.18; color: var(--texto); }
h1 { font-size: var(--t1); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--t2); font-weight: 700; margin: 40px 0 12px; }
h3 { font-size: var(--t3); font-weight: 700; }
p { margin: 0 0 16px; color: var(--fraco); }
strong { color: var(--texto); font-weight: 700; }

:focus-visible { outline: var(--foco); outline-offset: 2px; border-radius: 4px; }
.topo :focus-visible,
.hero :focus-visible,
footer :focus-visible,
.p404-hero :focus-visible { outline: var(--foco-escuro); }

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- faixa de credibilidade (topo) ---------- */
.topo {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #00255f 0%, var(--texto) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 33, 99, 0.1);
}

.topo-faixa {
  max-width: 1080px;
  margin: 0 auto;
  padding: 9px 20px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  flex-wrap: wrap;
}

.topo-cred { display: flex; align-items: center; gap: 11px; min-width: 0; }

.topo-glifo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
  background: rgba(255, 255, 255, 0.12);
  color: #a8cbff;
}

.topo-glifo svg { width: 14px; height: 14px; display: block; }

.topo-reg { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }

.topo-div { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.24); flex: none; }

.topo-rt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.84);
  min-width: 0;
}

.topo-nome { white-space: nowrap; }

.topo-num {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.topo-redes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.topo-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.topo-chip:hover { background: rgba(255, 255, 255, 0.17); border-color: rgba(255, 255, 255, 0.36); transform: translateY(-1px); }
.topo-chip svg { width: 14px; height: 14px; flex: none; color: #ff8fc4; }
.topo a:focus-visible { outline: var(--foco-escuro); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 680px) {
  .topo-faixa { flex-direction: column; align-items: flex-start; gap: 7px; padding: 8px 16px; }
  .topo-cred { flex-wrap: wrap; gap: 8px; }
  .topo-glifo { width: 22px; height: 22px; }
  .topo-div { display: none; }
  .topo-reg { font-size: 0.76rem; }
  .topo-rt { font-size: 0.76rem; flex-wrap: wrap; }
  /* faixa fixa: o nome completo sai para a barra nao consumir 1/4 da tela */
  .topo-nome { display: none; }
  .topo-redes { width: 100%; gap: 8px; }
  .topo-redes .topo-chip { flex: 1; justify-content: center; padding: 5px 10px; }
}

/* ---------- barra de navegação ---------- */
.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linha);
}

.marca { display: block; }
.marca img { height: 2.5rem; width: auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.nav a {
  font-size: var(--t5);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--texto);
  text-decoration: none;
}

.nav a:hover { color: var(--acento); }
.nav a.inicio { text-transform: none; letter-spacing: 0; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--acento) 0%, var(--acento-claro) 100%);
  color: #fff;
  padding: 56px 0 60px;
}

.hero h1 { color: #fff; margin-bottom: 14px; }
.hero p {
  color: #fff;
  font-size: var(--t3);
  margin: 0 0 26px;
  max-width: 36ch;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--raio-botao);
  background: #fff;
  color: var(--texto);
  font-size: var(--t4);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s ease;
}

.cta:hover { background: var(--acento-suave); transform: translateY(-1px); }

/* ---------- corpo ---------- */
main { padding: 8px 0 64px; }

main .wrap > p:first-of-type {
  font-size: var(--t3);
  color: var(--texto);
  line-height: 1.6;
}

/* ---------- fichas de dados ---------- */
.fatos {
  display: grid;
  gap: 12px;
  margin: 28px 0 40px;
  padding: 0;
}

.fatos > div {
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--raio-cartao);
  padding: 16px 18px;
}

.fatos dt {
  font-size: var(--t5);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fraco);
  margin-bottom: 4px;
}

.fatos dd {
  margin: 0;
  font-size: var(--t4);
  font-weight: 600;
  color: var(--texto);
  line-height: 1.45;
}

.fatos dd a { color: var(--acento); }

/* ---------- perguntas frequentes ---------- */
details {
  background: var(--fundo);
  border: 1px solid var(--linha);
  border-radius: var(--raio-cartao);
  padding: 18px 22px;
  margin-bottom: 12px;
}

details[open] {
  border-color: #B9D8F5;
  box-shadow: 0 10px 26px rgba(0, 40, 100, 0.06);
}

summary {
  cursor: pointer;
  font-size: var(--t4);
  font-weight: 600;
  color: var(--texto);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: var(--t3); font-weight: 700; color: var(--acento); line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 14px 0 0; }

/* ---------- chamada final ---------- */
.chamada {
  margin: 44px 0 0;
  padding: 30px;
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--raio-bloco);
}

.chamada h2 { margin-top: 0; }
.chamada p { color: var(--fraco); }

/* ---------- atalhos internos ---------- */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 36px 0 0;
  list-style: none;
}

.links a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--linha);
  border-radius: 10px;
  background: var(--fundo);
  color: var(--texto);
  font-size: var(--t5);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.links a:hover {
  border-color: var(--acento);
  box-shadow: 0 4px 12px rgba(0, 80, 160, 0.14);
}

/* ---------- rodapé ---------- */
footer {
  background: var(--texto);
  color: #fff;
  font-size: var(--t5);
  padding: 40px 0 36px;
  line-height: 1.7;
}

footer p { color: #fff; margin: 0 0 14px; }
footer strong { color: #fff; }
footer a { color: #fff; }
footer a:hover { text-decoration: underline; }
footer .social { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- 404 ---------- */
.p404-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--acento) 0%, var(--acento-claro) 100%);
  color: #fff;
  padding: 56px 0 64px;
  isolation: isolate;
}

.p404-hero .wrap { position: relative; z-index: 2; }

.p404-marca {
  position: absolute;
  right: -10px;
  top: -28px;
  z-index: 1;
  font-size: clamp(8rem, 26vw, 16rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.1);
  user-select: none;
  pointer-events: none;
}

.p404-brilho {
  position: absolute;
  right: -22%;
  bottom: -78%;
  z-index: 1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 217, 255, 0.16), transparent 66%);
  pointer-events: none;
}

.p404-olho {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 13px;
  border-radius: 40px;
  background: var(--texto);
  color: #fff;
  font-size: var(--t5);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.p404-hero h1 { color: #fff; margin: 0 0 14px; }

.p404-texto {
  margin: 0 0 28px;
  max-width: 32rem;
  font-size: var(--t4);
  color: #fff;
}

.p404-acoes { display: flex; flex-wrap: wrap; gap: 12px; }

.p404-botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--raio-botao);
  font-size: var(--t4);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s ease;
}

.p404-botao-principal { background: #fff; color: var(--texto); }
.p404-botao-principal:hover { background: var(--acento-suave); transform: translateY(-1px); }

.p404-botao-secundario {
  background: var(--texto);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.p404-botao-secundario:hover { background: #00123A; }

.p404-corpo { background: var(--superficie); padding: 0 0 56px; }
.p404-corpo h2 { margin: 40px 0 6px; }

.p404-ajuda { margin: 0 0 22px; font-size: var(--t4); color: var(--fraco); }
.p404-grupos { display: grid; gap: 22px; }

.p404-grupo h3 {
  margin: 0 0 12px;
  font-size: var(--t5);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fraco);
}

.p404-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p404-lista a {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--linha);
  border-radius: 10px;
  background: var(--fundo);
  color: var(--texto);
  font-size: var(--t5);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.p404-lista a:hover {
  border-color: var(--acento);
  box-shadow: 0 4px 12px rgba(0, 80, 160, 0.14);
}

.p404-info {
  margin: 40px 0 0;
  padding: 26px 24px;
  border: 1px solid var(--linha);
  border-radius: var(--raio-cartao);
  background: var(--fundo);
}

.p404-info h2 { margin: 0 0 18px; }
.p404-info dl { display: grid; gap: 18px; margin: 0; }

.p404-info dt {
  margin: 0 0 4px;
  font-size: var(--t5);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fraco);
}

.p404-info dd { margin: 0; font-size: var(--t4); font-weight: 600; color: var(--texto); }
.p404-info a { color: var(--acento); }

/* ---------- responsivo ---------- */
@media (min-width: 720px) {
  .fatos { grid-template-columns: 1fr 1fr; }
  .p404-info dl { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 719px) {
  .barra { flex-wrap: wrap; }
  .nav { gap: 12px; }
  .hero { padding: 44px 0 48px; }
  .chamada { padding: 22px; }
  .p404-hero { padding: 44px 0 52px; }
  .p404-acoes { flex-direction: column; }
  .p404-botao { width: 100%; }
}
