/* Guardião Cibernético — layout do site guardiaocibernetico.com
   Ordem de carga: tokens.css → components.css (bundle do Design System) → site.css.
   Este arquivo só monta a página: cores, fontes e componentes vêm do Design System. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { font-size: 16px; line-height: 26px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
p { margin: 0 0 var(--space-4); max-width: 38rem; }
strong, b { font-weight: 650; }

.pular {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.pular:focus { left: var(--space-4); top: var(--space-4); }

.miolo { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

/* Tipografia do Design System (escala web) */
.display-xl { font-size: clamp(48px, 7vw, 72px); line-height: .95; }
.display-l  { font-size: clamp(36px, 5vw, 48px); line-height: 1; }
.lead { font-size: 20px; line-height: 30px; color: var(--ink-muted); }
.label-s {
  font-family: var(--font-label); font-weight: 500; font-size: 11px; line-height: 14px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-subtle);
}
.small { font-size: 14px; line-height: 20px; color: var(--ink-subtle); }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 27, 34, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topo .miolo { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 68px; }
.marca img { height: 44px; width: auto; }

.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-8); }
.menu a {
  font-family: var(--font-label); font-weight: 600; font-size: 13px; line-height: 16px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted); text-decoration: none;
}
.menu a:hover { color: var(--accent-text); }

.menu-botao { display: none; }
@media (max-width: 760px) {
  .menu-botao { display: inline-flex; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-000); border-bottom: 1px solid var(--line);
    display: none;
  }
  .menu.aberto { display: block; }
  .menu ul { flex-direction: column; gap: 0; padding: var(--space-2) 1.25rem var(--space-4); }
  .menu a { display: block; padding: var(--space-3) 0; }
}

/* ---------- Seções ---------- */
.secao { padding: var(--space-16) 0; scroll-margin-top: 68px; }
@media (min-width: 900px) { .secao { padding: calc(var(--space-16) * 1.5) 0; } }
.secao.alt { background: var(--bg-100); border-block: 1px solid var(--line); }
.secao .gc-title-bar { margin-bottom: var(--space-8); max-width: 18ch; }

.duas-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
@media (max-width: 900px) { .duas-colunas { grid-template-columns: 1fr; gap: var(--space-12); } }

.moldura { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.moldura img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: var(--space-16) 0;
  background: var(--bg-000) url("../assets/fundo-circuito-cadeado.jpg") 70% 35% / cover no-repeat;
}
@media (min-width: 900px) { .hero { padding: calc(var(--space-16) * 1.5) 0 calc(var(--space-16) * 1.75); } }
/* Véu petróleo (≥60%) atrás do texto, como pede o Design System */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,27,34,.96) 0%, rgba(6,27,34,.9) 45%, rgba(6,27,34,.35) 75%, rgba(6,27,34,.2) 100%);
}
.hero .miolo { position: relative; }
.hero-conteudo { max-width: 560px; }
.hero h1 { margin-bottom: var(--space-6); }
.hero .lead { margin-bottom: var(--space-8); }
.hero .gc-term { margin-top: var(--space-12); max-width: 560px; box-shadow: var(--shadow-card); }
.hero .gc-term-body div { white-space: normal; overflow-wrap: anywhere; }
.hero .rastro-legenda { margin-top: var(--space-3); }

@media (max-width: 900px) {
  .hero { background-position: 70% 0; background-size: cover; }
  .hero::before { background: rgba(6, 27, 34, .86); }
}

/* Linhas do terminal aparecem em sequência, uma única vez */
@media (prefers-reduced-motion: no-preference) {
  .js .gc-term-body > div { opacity: 0; animation: gc-linha .35s ease-out forwards; }
  .js .gc-term-body > div:nth-child(1)  { animation-delay: .4s; }
  .js .gc-term-body > div:nth-child(2)  { animation-delay: .8s; }
  .js .gc-term-body > div:nth-child(3)  { animation-delay: 1.3s; }
  .js .gc-term-body > div:nth-child(4)  { animation-delay: 1.7s; }
  .js .gc-term-body > div:nth-child(5)  { animation-delay: 2.2s; }
  .js .gc-term-body > div:nth-child(6)  { animation-delay: 2.6s; }
  .js .gc-term-body > div:nth-child(7)  { animation-delay: 3.1s; }
  .js .gc-term-body > div:nth-child(8)  { animation-delay: 3.5s; }
  .js .gc-term-body > div:nth-child(9)  { animation-delay: 4.1s; }
}
@keyframes gc-linha { to { opacity: 1; } }

/* ---------- Defesa ---------- */
.golpes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.golpes .gc-card { max-width: none; }
.golpes .gc-card h3 { font-size: 28px; }
@media (max-width: 560px) { .golpes { grid-template-columns: 1fr; } }
.defesa-imagem { margin-top: var(--space-8); aspect-ratio: 16 / 11; }

/* ---------- OSINT: ciclo ---------- */
.ciclo { list-style: none; margin: var(--space-12) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.ciclo .gc-card { max-width: none; }
@media (max-width: 900px) { .ciclo { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ciclo { grid-template-columns: 1fr; } }
.ciclo-volta { margin-top: var(--space-6); }

/* ---------- Segurança Ofensiva ---------- */
.ofensiva-imagem { aspect-ratio: 1024 / 921; }
.fases { list-style: none; margin: var(--space-6) 0 var(--space-8); padding: 0; counter-reset: fase; }
.fases li {
  counter-increment: fase;
  display: grid; grid-template-columns: 48px 1fr; align-items: baseline;
  padding: var(--space-3) 0; border-top: 1px solid var(--line);
}
.fases li::before {
  content: counter(fase, decimal-leading-zero);
  font-family: var(--font-display); font-size: 32px; line-height: 1; color: var(--accent-text);
}
.fases strong { display: block; color: var(--ink); }
.fases span { color: var(--ink-muted); }

/* ---------- Livro ---------- */
.volumes { list-style: none; margin: var(--space-8) 0 var(--space-8); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.volumes .gc-card { max-width: none; }
@media (max-width: 760px) { .volumes { grid-template-columns: 1fr; } }

/* ---------- Manifesto ---------- */
.manifesto .lead { color: var(--ink); max-width: 40rem; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--bg-000); border-top: 1px solid var(--line); padding: var(--space-16) 0 var(--space-8); scroll-margin-top: 68px; color: var(--ink-muted); }
.rodape-grade { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-8); }
.rodape-logo { height: 40px; width: auto; margin-bottom: var(--space-4); }
.rodape h2 {
  font-family: var(--font-label); font-weight: 600; font-size: 13px; line-height: 16px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 var(--space-4);
}
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.rodape a { color: var(--ink-muted); }
.rodape a:hover { color: var(--accent-text); }
.rodape-final { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.rodape-final p { max-width: none; margin-bottom: var(--space-1); }
@media (max-width: 760px) { .rodape-grade { grid-template-columns: 1fr; } }

/* ---------- Páginas de texto (privacidade, termos) ---------- */
.documento { padding: var(--space-16) 0; }
.documento .miolo { max-width: 44rem; }
.documento h1 { margin-bottom: var(--space-3); }
.documento .data { margin-bottom: var(--space-12); }
.documento h2 { font-size: 32px; line-height: 1.05; margin: var(--space-12) 0 var(--space-4); }
.documento ul { padding-left: 1.2rem; max-width: 38rem; }
.documento li { margin-bottom: var(--space-2); }
.documento .gc-btn { margin-top: var(--space-12); }

/* ---------- Página da isca (/guia-pix/) ---------- */
.isca-hero { padding: var(--space-16) 0; }
@media (min-width: 900px) { .isca-hero { padding: calc(var(--space-16) * 1.25) 0 calc(var(--space-16) * 1.5); } }
.isca-grade { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-16); align-items: start; }
@media (max-width: 900px) { .isca-grade { grid-template-columns: 1fr; gap: var(--space-8); } }
.isca-hero .gc-tag { margin-bottom: var(--space-6); }
.isca-hero h1 { margin-bottom: var(--space-6); max-width: 14ch; }
.isca-hero .lead { margin-bottom: var(--space-8); }

@media (min-width: 901px) { .isca-capa { position: sticky; top: 100px; } }
.capa {
  width: 100%; max-width: 340px; margin-inline: auto;
  border-radius: var(--radius-md); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), var(--glow-ciano);
}
@media (max-width: 900px) { .capa { max-width: 220px; } .isca-capa { order: -1; } }

/* Formulário de cadastro */
.cadastro { max-width: 520px; }
.cadastro h2 { font-size: 32px; line-height: 1.05; letter-spacing: .02em; margin-bottom: var(--space-2); }
.cadastro > p { color: var(--ink-muted); margin-bottom: var(--space-6); }
.campo { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.campo label {
  font-family: var(--font-label); font-weight: 600; font-size: 13px; line-height: 16px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted);
}
.campo input {
  height: 48px; padding: 0 var(--space-4);
  background: var(--bg-000); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  font: 16px/1 var(--font-sans);
}
.campo input::placeholder { color: var(--ink-subtle); }
.campo input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-color: var(--accent); }
.consentimento { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); align-items: start; margin: var(--space-2) 0 var(--space-6); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.consentimento input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.cadastro .gc-btn { width: 100%; justify-content: center; }
.cadastro .small { margin: var(--space-4) 0 0; }
.cadastro-erro { display: none; margin-top: var(--space-4); }
.cadastro-erro.ativo { display: grid; }
.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Faixa "caiu agora?" */
.agora { padding: 0 0 var(--space-16); }
.agora .gc-callout { max-width: 720px; }

/* Capítulos do guia (sequência real: numerados) */
.capitulos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.capitulos .gc-card { max-width: none; }
.capitulos .gc-card h3 { font-size: 28px; }
@media (max-width: 900px) { .capitulos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .capitulos { grid-template-columns: 1fr; } }

.para-quem { max-width: 40rem; }
.para-quem .gc-topics { margin-top: var(--space-6); }

/* Perguntas frequentes */
.faq { max-width: 44rem; display: grid; gap: var(--space-3); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-100); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-4) var(--space-6);
  font-weight: 650; color: var(--ink); display: flex; justify-content: space-between; gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 var(--space-6) var(--space-4); margin: 0; color: var(--ink-muted); max-width: none; }

.chamada-final { text-align: left; }
.chamada-final .gc-btn { margin-top: var(--space-4); }

/* Página de obrigado */
.obrigado { padding: var(--space-16) 0; }
.obrigado .miolo { max-width: 44rem; }
.obrigado h1 { margin-bottom: var(--space-6); }
.passos { list-style: none; margin: var(--space-8) 0; padding: 0; counter-reset: passo; display: grid; gap: var(--space-4); }
.passos li { counter-increment: passo; display: grid; grid-template-columns: 56px 1fr; align-items: baseline; padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.passos li::before { content: counter(passo, decimal-leading-zero); font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--accent-text); }
.passos strong { display: block; color: var(--ink); }
.passos span { color: var(--ink-muted); }
.obrigado .gc-callout { margin-bottom: var(--space-8); }

/* ---------- Página do Kit (/kit/) ---------- */
.categorias { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.categorias .gc-card { max-width: none; }
.categorias .gc-card h3 { font-size: 28px; }
.categorias .ferramentas { margin: 0; color: var(--ink-muted); }
@media (max-width: 900px) { .categorias { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .categorias { grid-template-columns: 1fr; } }
.bonus-linha { margin-top: var(--space-6); }

.amostra { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); background: #fff; }
.amostra img { width: 100%; }
.amostra-legenda { margin-top: var(--space-3); }
.etiquetas { list-style: none; margin: var(--space-6) 0; padding: 0; display: grid; gap: var(--space-4); }
.etiquetas li { display: grid; grid-template-columns: 150px 1fr; gap: var(--space-4); align-items: start; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.etiquetas li > span:last-child { color: var(--ink-muted); }
@media (max-width: 560px) { .etiquetas li { grid-template-columns: 1fr; gap: var(--space-2); } }

.fora .gc-callout { max-width: 720px; }
.fora .gc-callout ul { margin: var(--space-2) 0 0; padding-left: 1.1rem; }
.fora .gc-callout li { margin-bottom: var(--space-1); }
