/* Sobre — apresentações comerciais BioSistema */
#page-sobre.page.active {
  display: block;
  max-width: 1100px;
}

.sobre-intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 640px;
}

.sobre-produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.sobre-produto-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px 20px;
  background: linear-gradient(165deg, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0.12) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.light-theme .sobre-produto-card {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.sobre-produto-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
}

.sobre-produto-card.theme-econtas::before {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
}

.sobre-produto-card.theme-ebot::before {
  background: linear-gradient(90deg, #0d9488, #115e59);
}

.sobre-produto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  border-color: rgba(99, 102, 241, 0.35);
}

.sobre-produto-icon {
  font-size: 2rem;
  line-height: 1;
}

.sobre-produto-card h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.sobre-produto-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.sobre-produto-tagline {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.45;
  flex: 1;
}

.sobre-produto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
}

.sobre-produto-tags li {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.sobre-produto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.sobre-produto-actions .btn {
  flex: 1;
  min-width: 120px;
  justify-content: center;
}

.sobre-resumo-box {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}

body.light-theme .sobre-resumo-box {
  background: #ecfdf5;
  border-color: #99f6e4;
}

.sobre-resumo-box strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f766e;
  margin-bottom: 6px;
}

.sobre-legacy-link {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.sobre-legacy-link a {
  color: var(--accent);
}

/* Modal apresentação */
.sobre-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sobre-modal.is-open {
  display: flex !important;
}

.sobre-modal[hidden]:not(.is-open) {
  display: none !important;
}

.sobre-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.sobre-modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.sobre-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

body.light-theme .sobre-modal-header {
  background: #f8fafc;
}

.sobre-modal-title-wrap {
  min-width: 0;
  flex: 1;
}

.sobre-modal-title-wrap h2 {
  margin: 0;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sobre-modal-title-wrap p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sobre-modal-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.sobre-modal-body {
  flex: 1;
  min-height: 0;
  background: #fff;
}

.sobre-modal-iframe {
  display: block;
  width: 100%;
  height: min(78vh, 780px);
  border: 0;
  background: #fff;
}

body.sobre-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .sobre-produto-actions .btn {
    flex: 1 1 100%;
  }
  .sobre-modal-panel {
    max-height: 96vh;
    border-radius: 12px;
  }
  .sobre-modal-iframe {
    height: min(70vh, 600px);
  }
}
