/* ============================================================
   Complya — site-internas.css
   Estilos adicionais para /plataforma, /modulo/{slug}, /segmentos, /segmento/{slug}
   ============================================================ */

/* Hero compacto de páginas internas */
.page-hero {
  padding: 64px 0 32px;
  background:
    radial-gradient(60% 80% at 80% 0%, var(--bg-alt) 0%, transparent 60%),
    #fff;
  text-align: center;
}
.page-hero .lead { color: var(--ink-light); font-size: 1.1rem; margin-top: 8px; }
.page-hero-stats {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--ink-light); font-size: .92rem;
}
.page-hero-stats strong { color: var(--ink); font-size: 1.4rem; font-family: 'Space Grotesk', sans-serif; display: block; }

/* Bloco por categoria (em /plataforma) */
.cat-block { margin-bottom: 48px; }
.cat-block:last-child { margin-bottom: 0; }
.cat-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.cat-head h2 { margin: 0; font-size: 1.4rem; }
.cat-count { color: var(--ink-light); font-size: .88rem; }

/* Hero detalhado (módulo / segmento) */
.detail-hero {
  padding: 56px 0 48px;
  background:
    linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%);
}
.crumbs { margin-bottom: 24px; font-size: .9rem; }
.crumbs a { color: var(--ink-light); }
.crumbs a:hover { color: var(--primary); }
.detail-hero-row {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center;
}
.detail-hero-copy h1 { margin-bottom: 8px; }
.detail-sub {
  color: var(--mod-color, var(--primary));
  font-weight: 600; font-size: 1.05rem; margin: 0 0 12px;
}
.detail-hero-copy .lead {
  font-size: 1.1rem; color: var(--ink-light); margin-bottom: 24px; max-width: 580px;
}

.detail-hero-art {
  display: flex; align-items: center; justify-content: center;
}
.mod-badge {
  width: 220px; height: 220px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mod-color, var(--primary)) 0%, color-mix(in srgb, var(--mod-color, var(--primary)) 65%, #000) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  box-shadow: 0 24px 60px color-mix(in srgb, var(--mod-color, var(--primary)) 35%, transparent);
  position: relative;
}
.mod-badge::after {
  content: ''; position: absolute; inset: -20px;
  border: 2px dashed color-mix(in srgb, var(--mod-color, var(--primary)) 30%, transparent);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .detail-hero-row { grid-template-columns: 1fr; gap: 32px; }
  .mod-badge { width: 160px; height: 160px; font-size: 3.5rem; }
}

/* Lista de benefícios-chave no hero */
.key-bens { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.key-bens li {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-size: .95rem;
}
.key-bens li i {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-alt); color: var(--mod-color, var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
}

/* Grid de features (módulo/segmento) */
.grid-features { grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-features { grid-template-columns: 1fr; } }

.feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px;
}
.feat-ico {
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 14px;
}
.feat h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feat p { color: var(--ink-light); font-size: .94rem; margin: 0; }

/* Listas de casos / dores */
.cases {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px;
  max-width: 900px; margin: 0 auto;
}
.cases li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .95rem;
}
.cases li i { color: var(--primary); margin-top: 3px; }
.cases.cases-warn li i { color: #DC2626; }
@media (max-width: 700px) { .cases { grid-template-columns: 1fr; } }

/* Segmentos cards maiores */
.grid-segs-lg { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-segs-lg { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-segs-lg { grid-template-columns: 1fr; } }
