/* Pingú — layout e ajustes locais. Visual base: style.css + zyga-mascote.css + temas-zyga.js */

/* Mesmo gradiente da home em html + body (evita html só no #0a0a0a, que parece “mais escuro”) */
html.pingu-root {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--neutral-bg-start) 0%,
    var(--neutral-bg-middle) 50%,
    var(--neutral-bg-end) 100%
  );
  overscroll-behavior-y: none;
  scroll-behavior: auto;
}

body.pingu-page {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overscroll-behavior-y: none;
  /* Igual a body em style.css */
  background: linear-gradient(
    135deg,
    var(--neutral-bg-start) 0%,
    var(--neutral-bg-middle) 50%,
    var(--neutral-bg-end) 100%
  );
  color: var(--text-primary, #fff);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
}

.pg-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pg-skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #fff;
  color: #0b1220;
  border-radius: 10px;
  z-index: 9999;
}

/* Barra superior — mesma linguagem de cartão da home */
.pg-top {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: var(--card-background);
  border-bottom: 1px solid var(--card-border);
  transition: background 0.35s ease, border-color 0.35s ease;
  /* Menos artefatos brancos ao rolar com backdrop-filter + sticky (WebKit/Chromium) */
  isolation: isolate;
  backface-visibility: hidden;
}

.pg-top-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.pg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.pg-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(var(--primary-rgb), 0.1);
  border: 2px solid rgba(var(--primary-rgb), 0.28);
  backdrop-filter: blur(10px);
  animation: pingu-pulse-marca 2s infinite;
}

@keyframes pingu-pulse-marca {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.35);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
  }
}

.pg-brand-mark img {
  width: 26px;
  height: 26px;
}

.pg-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pg-brand-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
}

.pg-brand-name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--primary-color);
}

.pg-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pg-nav a:not(.btn) {
  text-decoration: none;
  color: var(--text-secondary, rgba(255, 255, 255, 0.82));
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.pg-nav a:not(.btn):hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.btn.btn--nav {
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
}

/* Hero em duas colunas */
.pingu-hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 3rem;
}

@media (max-width: 960px) {
  .pingu-hero {
    grid-template-columns: 1fr;
  }
}

.status.status--pingu-hero {
  text-align: left;
  padding: 2rem 2.25rem;
}

.status.status--pingu-hero .pg-pill {
  margin-bottom: 0.35rem;
}

/* Título: marca forte + frase única (evita “O Pingú organiza…” quebrado em blocos desiguais) */
.status.status--pingu-hero .pingu-hero-titulo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
  max-width: 36rem;
}

.pingu-hero-marca-line {
  font-size: clamp(2.45rem, 5.5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.pingu-hero-headline-text {
  font-size: clamp(1.12rem, 2.35vw, 1.42rem);
  font-weight: 600;
  line-height: 1.38;
  color: rgba(255, 255, 255, 0.94);
  padding-left: 1rem;
  border-left: 3px solid rgba(var(--primary-rgb), 0.5);
}

.status.status--pingu-hero .pingu-hero-lead {
  margin: 0 0 1.25rem;
  font-size: clamp(1.02rem, 2vw, 1.12rem);
  color: var(--text-secondary);
  max-width: 58ch;
  line-height: 1.65;
}

.status.status--pingu-hero .pingu-hero-lead--continuacao {
  margin: -0.35rem 0 1.1rem;
  max-width: 54ch;
}

.status.status--pingu-hero .pingu-hero-lead--continuacao strong {
  color: var(--text-primary);
  font-weight: 600;
}

.pingu-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 13px;
}

.pg-pill strong {
  color: #ffc857;
  font-weight: 700;
}

.pg-gradient {
  background: linear-gradient(135deg, #ffffff, var(--primary-light, #00e6ff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pg-micro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.25rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
  font-size: 13px;
}

.pg-micro span {
  display: block;
  line-height: 1.45;
  padding: 0.1rem 0;
}

/* Card lateral do hero — herda hover/animação de .product */
.product.product--pingu-aside {
  text-align: left;
  padding: 1.5rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
}

.product.product--pingu-aside .product-icon {
  height: auto;
  min-height: 0;
  margin-bottom: 0.5rem;
}

.pingu-aside-desc {
  margin: 0 0 1rem !important;
  font-size: 0.92rem !important;
  color: var(--text-muted) !important;
  line-height: 1.55 !important;
}

.pg-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0.65rem;
}

@media (max-width: 900px) {
  .pg-metrics {
    grid-template-columns: 1fr;
  }
}

.pg-metric {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 5.5rem;
}

.product.product--pingu-aside:hover .pg-metric {
  border-color: rgba(var(--primary-rgb), 0.25);
}

.pg-metric-numero {
  display: block;
  font-size: clamp(1.65rem, 3vw, 2rem);
  line-height: 1;
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pg-metric-rotulo {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.pg-metric-chamada {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  /* Mesma cor de destaque do número “207” e do título “Web e Android” */
  color: var(--primary-color);
  line-height: 1.2;
}

/* Mantido por clareza no HTML; mesmo estilo da chamada padrão */
.pg-metric-chamada--plataformas {
  color: var(--primary-color);
}

.pg-metric-detalhe {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

.pg-metric--valor .pg-metric-detalhe {
  margin-top: 0.15rem;
}

.pg-micro strong {
  color: var(--text-primary);
  font-weight: 600;
}

.products.pingu-secao {
  margin-bottom: 3rem;
}

.products-lead--pos-subtitulo {
  margin-top: -0.75rem;
}

.about.about--pingu-modulos {
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 0.25rem;
  padding-bottom: 2rem;
}

.pg-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pg-chip {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pg-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb), 0.35);
  background: rgba(var(--primary-rgb), 0.1);
}

.pg-search {
  width: 100%;
  padding: 1rem 1.15rem;
  border-radius: 15px;
  border: 1px solid var(--card-border);
  background: var(--card-background);
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pg-search:focus {
  outline: none;
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.pg-search::placeholder {
  color: var(--text-muted);
}

/* Acordeão de categorias — combina .product (barra + hover) com layout de lista */
details.pg-acc.product {
  text-align: left;
  padding: 0;
  margin-bottom: 0.85rem;
}

details.pg-acc.product summary {
  list-style: none;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

details.pg-acc.product summary::-webkit-details-marker {
  display: none;
}

details.pg-acc.product .pg-acc-title {
  font-weight: 650;
  color: var(--text-primary);
}

details.pg-acc.product .pg-acc-sub {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
}

details.pg-acc.product .pg-acc-badge {
  flex: none;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}

details.pg-acc.product .pg-acc-body {
  padding: 0.85rem 1.25rem 1.35rem;
  border-top: 1px solid var(--card-border);
}

.pg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 10px;
  padding-bottom: 0.25rem;
}

.pg-tag {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* FAQ em cartões .product */
.pg-faq {
  display: grid;
  gap: 0.75rem;
}

details.product.product--faq {
  text-align: left;
  padding: 0;
  margin-bottom: 0;
}

details.product.product--faq > summary {
  list-style: none;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
}

details.product.product--faq > summary::-webkit-details-marker {
  display: none;
}

details.product.product--faq > p {
  margin: 0;
  padding: 0 1.35rem 1.15rem;
  border-top: 1px solid var(--card-border);
  padding-top: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Faixa CTA — reaproveita shimmer do .status */
.status.status--pingu-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  text-align: left;
  padding: 1.65rem 2rem;
  margin-bottom: 2rem;
}

.status.status--pingu-cta .pingu-cta-titulo {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.25;
}

.status.status--pingu-cta p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
}

.pingu-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer.footer--pingu {
  margin-top: 1rem;
}

/* Rodapé: links em coluna no estreito — evita “encavalamento” no mobile */
.footer.footer--pingu .social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.footer.footer--pingu .social-links a {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.5rem 0.9rem;
  min-height: 44px;
  text-align: center;
}

@media (max-width: 520px) {
  .footer.footer--pingu .social-links {
    flex-direction: column;
    align-items: stretch;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .footer.footer--pingu .social-links a {
    width: 100%;
    max-width: 100%;
  }
}

.pg-note {
  margin-top: 1rem;
  font-size: 12px;
  color: var(--text-muted);
}
