/* =============================================================
   SISTEMA, estilos compartilhados pelas 5 páginas de sistema
   (ABP, Outbound, Paid Ads, SDR Enablement, Data Enrichment).
   ============================================================= */

/* -----------------------------------------------------------
   1. HERO (compacto, focado em definição rápida)
   ----------------------------------------------------------- */

.sys-hero {
  position: relative;
  padding-block: clamp(var(--space-2xl), 6vw + 1rem, var(--space-4xl)) var(--section-py);
  background: var(--bg-primary);
  overflow: hidden;
}

.sys-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../../assets/logos/obp-simbolo-branco.png');
  background-repeat: no-repeat;
  background-position: right -10% center;
  background-size: 60vmin;
  opacity: 0.04;
  pointer-events: none;
}

.sys-hero__content {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.sys-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.sys-hero__meta-index {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--text-brand);
  letter-spacing: var(--ls-wide);
}

.sys-hero__dots {
  display: flex;
  gap: var(--space-3xs);
}
.sys-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cinza-600);
}
.sys-hero__dot.is-current {
  background: var(--action-primary);
  width: 24px;
  border-radius: var(--radius-pill);
}

.sys-hero__name {
  font-size: clamp(3rem, 2rem + 5vw, 6rem);
  font-weight: var(--fw-light);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.sys-hero__name strong {
  font-weight: var(--fw-semibold);
  color: var(--text-brand);
}

.sys-hero__subname {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  letter-spacing: var(--ls-tight);
}

.sys-hero__def {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-primary);
  margin-top: var(--space-lg);
  max-width: 60ch;
}

.sys-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* -----------------------------------------------------------
   2. SECTION HEADER (cabeçalho padrão de seção interna)
   ----------------------------------------------------------- */

.sys-section-header {
  max-width: 64ch;
  margin-bottom: var(--space-2xl);
}

.sys-section-header__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-top: var(--space-sm);
}
.sys-section-header__title strong {
  color: var(--text-brand);
  font-weight: var(--fw-semibold);
}

.sys-section-header__lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

/* -----------------------------------------------------------
   3. PROBLEMA (parágrafos práticos)
   ----------------------------------------------------------- */

.sys-problem {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-2xl);
  align-items: start;
}
@media (max-width: 768px) {
  .sys-problem { grid-template-columns: 1fr; gap: var(--space-lg); }
}

.sys-problem__quote {
  border-left: 3px solid var(--action-primary);
  padding-left: var(--space-lg);
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}
.sys-problem__quote strong {
  color: var(--text-brand);
  font-weight: var(--fw-semibold);
}

.sys-problem__body p + p {
  margin-top: var(--space-md);
}

/* -----------------------------------------------------------
   4. FLUXO (passo a passo de como funciona)
   ----------------------------------------------------------- */

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.flow__step {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  border-right: 1px solid var(--border-subtle);
}

.flow__step:last-child { border-right: 0; }

@media (max-width: 768px) {
  .flow { grid-template-columns: 1fr; }
  .flow__step {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .flow__step:last-child { border-bottom: 0; }
}

.flow__step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--text-brand);
  letter-spacing: var(--ls-wide);
  font-weight: var(--fw-medium);
}

.flow__step-title {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--text-primary);
}

.flow__step-desc {
  font-size: var(--fs-caption);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

/* Seta entre passos (apenas desktop, decorativa) */
.flow__step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  color: var(--text-brand);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-bold);
  background: var(--bg-primary);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
}
@media (max-width: 768px) {
  .flow__step:not(:last-child)::after {
    top: auto;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    content: '↓';
  }
}

/* -----------------------------------------------------------
   5. STACK DO SISTEMA (subset das 12 ferramentas)
   ----------------------------------------------------------- */

.sys-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.sys-stack__item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-out);
}
.sys-stack__item:hover {
  border-color: var(--border-brand);
  transform: translateY(-2px);
}

.sys-stack__logo {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: var(--space-xs);
}
.sys-stack__logo img {
  max-height: 72px;
  max-width: 200px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.sys-stack__name {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}

.sys-stack__role {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* -----------------------------------------------------------
   6. ENTREGÁVEIS
   ----------------------------------------------------------- */

.deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.deliverable {
  background: linear-gradient(180deg, rgba(255, 82, 0, 0.05), transparent 50%), var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
}

.deliverable__check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--action-primary);
  color: var(--action-primary-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.deliverable__title {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--text-primary);
}

.deliverable__desc {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

/* -----------------------------------------------------------
   7. CONECTADO COM (cross-links entre sistemas)
   ----------------------------------------------------------- */

.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.connect-card {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-out);
  position: relative;
}
.connect-card:hover {
  border-color: var(--border-brand);
  transform: translateY(-2px);
}

.connect-card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--text-brand);
  letter-spacing: var(--ls-wide);
}

.connect-card__name {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

.connect-card__hint {
  font-size: var(--fs-caption);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.connect-card__arrow {
  margin-top: auto;
  color: var(--text-brand);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-bold);
  transition: transform var(--motion-fast) var(--ease-out);
}
.connect-card:hover .connect-card__arrow { transform: translateX(4px); }

/* -----------------------------------------------------------
   8. CTA FINAL (mesmo padrão da Home, mais compacto)
   ----------------------------------------------------------- */

.sys-cta {
  position: relative;
  text-align: center;
  padding-block: clamp(var(--space-3xl), 8vw, var(--space-4xl));
  background: var(--color-preto);
  overflow: hidden;
}
.sys-cta__bg {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url('../../assets/logos/obp-simbolo-branco.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50vmin;
  pointer-events: none;
}
.sys-cta__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}
.sys-cta__title {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.sys-cta__title strong {
  font-weight: var(--fw-semibold);
  color: var(--text-brand);
}
.sys-cta__body {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  margin-top: var(--space-md);
}
.sys-cta__pill {
  display: inline-block;
  background: var(--action-primary);
  color: var(--action-primary-text);
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-lg);
  margin-top: var(--space-xl);
  transition: background-color var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-base) var(--ease-out);
}
.sys-cta__pill:hover {
  background: var(--action-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-orange);
}
