/* Landing (/): cabecalho fixo, heroi com tabela, recursos, bloco escuro e rodape. Tokens e componentes vem de marca.css. */
.topo {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--background) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.topo-in { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.heroi { position: relative; overflow: hidden; }
/* filete e grade "ledger" sutis, mais fortes no alto e some ao descer */
.heroi::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--border) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--border) 70%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}
.heroi-in {
  position: relative; max-width: 1120px; margin: 0 auto; padding: 72px 20px 80px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center;
}
.heroi-texto .selo { margin-bottom: 20px; }
.ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.heroi h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.04; margin-bottom: 20px; }
.heroi h1 .azul { color: var(--primary); display: block; }
.heroi .lead { font-size: 18px; color: var(--muted-foreground); max-width: 34em; margin-bottom: 28px; }
.heroi-botoes { display: flex; flex-wrap: wrap; gap: 12px; }

/* Tabela heroi */
.planilha { overflow: hidden; box-shadow: var(--shadow-lift), var(--shadow-card); }
.planilha-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--muted); border-bottom: 1px solid var(--border); font-family: var(--fonte-mono); font-size: 12px; color: var(--muted-foreground); }
.planilha-topo span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planilha-rolagem { overflow-x: auto; }
.planilha table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 13px; }
.planilha th { text-align: left; font-family: var(--fonte-mono); font-weight: 500; font-size: 11.5px; color: var(--secondary-foreground); background: var(--secondary); padding: 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.planilha td:first-child { white-space: nowrap; }
.planilha td { padding: 11px 10px; border-bottom: 1px solid var(--border); border-right: 1px solid color-mix(in oklch, var(--border) 60%, transparent); vertical-align: top; }
.planilha td:last-child { border-right: 0; }
.planilha tbody tr:last-child td { border-bottom: 0; }
.planilha tbody tr:nth-child(even) td { background: color-mix(in oklch, var(--secondary) 55%, white); }
.planilha .mono, .planilha td.num { font-family: var(--fonte-mono); }
.planilha td.num { white-space: nowrap; }
.banho { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.bolinha { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.bolinha.ouro { background: var(--gold); }
.bolinha.rodio { background: var(--primary); }
.bolinha.prata { background: var(--muted-foreground); }

/* Recursos: grade 3x2 com filetes */
.recursos { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.recursos-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.recurso { padding: 28px 24px 30px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.recurso:nth-child(3n) { border-right: 0; }
.recurso:nth-last-child(-n + 3) { border-bottom: 0; }
.recurso svg { width: 22px; height: 22px; color: var(--primary); margin-bottom: 14px; display: block; }
.recurso h2 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 6px; }
.recurso p { color: var(--muted-foreground); font-size: 14.5px; margin: 0; }

/* Bloco escuro */
.protegido-ext { max-width: 1120px; margin: 0 auto; padding: 64px 20px; }
.protegido { background: var(--ink); color: var(--ink-foreground); border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; box-shadow: var(--shadow-lift); }
.protegido svg.escudo { width: 28px; height: 28px; color: var(--gold); margin-bottom: 16px; display: block; }
.protegido h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 12px; }
.protegido p { color: color-mix(in oklch, var(--ink-foreground) 72%, transparent); margin: 0; }
.protegido ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.protegido li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.protegido li svg { width: 17px; height: 17px; color: var(--gold); flex: none; }

.rodape { border-top: 1px solid var(--border); padding: 28px 20px 40px; display: grid; gap: 10px; justify-items: center; font-size: 13px; color: var(--muted-foreground); }

@media (max-width: 900px) {
  .heroi-in { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 48px 20px 56px; }
  .recursos-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recurso:nth-child(3n) { border-right: 1px solid var(--border); }
  .recurso:nth-child(2n) { border-right: 0; }
  .recurso:nth-last-child(-n + 3) { border-bottom: 1px solid var(--border); }
  .recurso:nth-last-child(-n + 2) { border-bottom: 0; }
  .protegido { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
}
@media (max-width: 560px) {
  .recursos-in { grid-template-columns: minmax(0, 1fr); }
  .recurso, .recurso:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--border); }
  .recurso:last-child { border-bottom: 0; }
  .heroi .lead { font-size: 16.5px; }
  .heroi-botoes .btn { flex: 1 1 100%; }
  .protegido-ext { padding: 40px 16px; }
}
