/* ==========================================================================
   PÁGINAS POR ASSUNTO (indicadores do negócio, leitura de contadores,
   suprimentos e peças, estoques e reposições, alertas, acesso remoto e
   implantação). Vêm depois do style_v2.css, de onde usam as cores, a fonte,
   os botões do topo e o rodapé. Sem JavaScript: o idioma é o da pasta (raiz,
   /en/ ou /es/), e o menu Recursos e as perguntas abrem com <details>.
   ========================================================================== */

.as-page {
  background-color: var(--bg-canvas);
}

/* Cabeçalho */
.as-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.as-top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.as-brand {
  display: flex;
  flex-shrink: 0;
}

.as-brand img {
  height: 30px;
  width: auto;
}

.as-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.as-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.as-nav a:hover,
.as-nav a[aria-current] {
  color: var(--brand-emerald-deep);
}

/* Menu Recursos: as sete páginas por assunto. */
.as-drop {
  position: relative;
}

.as-drop summary {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.as-drop summary::-webkit-details-marker {
  display: none;
}

.as-drop summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.as-drop[open] summary::after {
  transform: translateY(1px) rotate(-135deg);
}

.as-drop summary:hover,
.as-drop[open] summary {
  color: var(--brand-emerald-deep);
}

.as-drop summary:focus-visible {
  outline: 2px solid var(--brand-emerald);
  outline-offset: 4px;
  border-radius: 4px;
}

.as-drop-list {
  position: absolute;
  top: calc(100% + 18px);
  left: -18px;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  padding: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card-md);
  box-shadow: var(--shadow-card-hover);
}

.as-drop-list a {
  padding: 9px 12px;
  border-radius: 10px;
}

.as-drop-list a:hover,
.as-drop-list a[aria-current] {
  background: var(--bg-canvas);
}

/* O que só vem no HubMax. */
.as-plan {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid rgba(0, 201, 120, 0.28);
  font-size: 11px;
  letter-spacing: 0.4px;
}

.as-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.as-lang {
  display: flex;
  gap: 2px;
}

.as-lang a {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.as-lang a:hover {
  color: var(--ink-primary);
}

.as-lang a[aria-current] {
  background: var(--bg-subtle);
  color: var(--ink-primary);
}

.as-signin {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
}

.as-signin:hover {
  color: var(--brand-emerald-deep);
}

.as-trial {
  font-size: 14px;
  font-weight: 700;
  color: var(--btn-primary-fg);
  background: var(--btn-primary-bg);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.2s ease;
}

.as-trial:hover {
  background: var(--btn-primary-hover);
}

/* Topo da página */
.as-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 24px;
}

.as-hero .wrap {
  position: relative;
  z-index: 1;
}

.as-crumbs {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.as-crumbs a {
  color: var(--ink-secondary);
}

.as-crumbs a:hover {
  color: var(--brand-emerald-deep);
}

.as-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-subtle-emerald);
  color: var(--brand-emerald-deep);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 201, 120, 0.28);
  margin-bottom: 20px;
}

.as-eyebrow .pulse-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background-color: var(--brand-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-emerald);
  animation: pulse-glow 2.2s infinite ease-in-out;
}

.as-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--ink-primary);
  max-width: 900px;
  margin-bottom: 18px;
  text-wrap: balance;
}

.as-lead {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink-secondary);
  line-height: 1.65;
  max-width: 800px;
  margin-bottom: 30px;
}

.as-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.as-figure {
  margin-top: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card);
  padding: 10px;
}

.as-figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.as-figure figcaption {
  font-size: 13.5px;
  color: var(--ink-muted);
  padding: 12px 8px 4px;
}

/* Seções */
.as-section {
  padding: 64px 0;
}

.as-section-tight {
  padding: 32px 0;
}

.as-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: var(--ink-primary);
  max-width: 760px;
  margin-bottom: 28px;
}

.as-band {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.as-steps {
  list-style: none;
  counter-reset: passo;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.as-steps li {
  counter-increment: passo;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card-md);
  padding: 22px;
}

.as-steps li::before {
  content: counter(passo);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle-emerald);
  color: var(--brand-emerald-deep);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  margin-bottom: 14px;
}

.as-steps h3,
.as-cards h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-primary);
  margin-bottom: 8px;
}

.as-steps p,
.as-cards p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.as-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.as-cards article {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card-md);
  padding: 22px;
}

.as-cards h3::before {
  content: '';
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: var(--brand-emerald);
  margin-bottom: 14px;
}

/* Perguntas */
.as-faq {
  max-width: 860px;
  border-top: 1px solid var(--border-subtle);
}

.as-faq details {
  border-bottom: 1px solid var(--border-subtle);
}

.as-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-primary);
}

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

.as-faq summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--brand-emerald-deep);
}

.as-faq details[open] summary::after {
  content: '−';
}

.as-faq summary:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.as-faq details p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-secondary);
  padding-bottom: 20px;
  max-width: 760px;
}

/* Chamada para o teste */
.as-cta {
  background: var(--bg-dark-core);
  border-radius: var(--radius-card-xl);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.as-cta > div {
  flex: 1 1 420px;
}

.as-section .as-cta h2 {
  color: #FFFFFF;
  margin-bottom: 10px;
}

.as-cta p {
  color: #A9C1C5;
  font-size: 16px;
  line-height: 1.6;
  max-width: 620px;
}

/* Outros assuntos */
.as-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.as-related a {
  display: block;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card-md);
  padding: 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.as-related a:hover {
  border-color: var(--brand-emerald);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.as-related strong {
  display: block;
  font-size: 17px;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.as-related strong::after {
  content: ' →';
  color: var(--brand-emerald-deep);
}

.as-related span {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

/* Rodapé: o do style_v2.css, com os títulos das colunas em h2 */
.as-page .footer-col-title {
  line-height: 1.4;
}

.as-page .main-footer {
  margin-top: 48px;
}

/* Telas menores */
@media (max-width: 900px) {
  .as-nav {
    display: none;
  }
}

@media (max-width: 980px) {
  .as-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .as-cards,
  .as-related {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .as-top .wrap {
    gap: 12px;
    padding: 0 16px;
  }
  .as-brand img {
    height: 26px;
  }
  .as-actions {
    gap: 8px;
  }
  .as-signin {
    display: none;
  }
  .as-lang a {
    padding: 4px 6px;
  }
  .as-trial {
    font-size: 13px;
    padding: 8px 14px;
  }
  .as-page .wrap {
    padding: 0 16px;
  }
  .as-steps,
  .as-cards,
  .as-related {
    grid-template-columns: 1fr;
  }
  .as-section {
    padding: 48px 0;
  }
  .as-section-tight {
    padding: 24px 0;
  }
  .as-cta {
    padding: 32px 24px;
  }
  .as-ctas a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .as-lang {
    display: none;
  }
}

/* Preço transparente */
.as-price-note {
  margin-top: 16px;
  max-width: 860px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.as-price-note a {
  color: var(--brand-emerald-deep);
  font-weight: 600;
}
