/* ============================================
   WICFLOW — What We Automate Section
   ============================================ */

.automate {
  background-color: var(--bg-primary);
}

.automate__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.automate__lead {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 40ch;
}

.automate__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
}

.automate__item {
  padding: 1.75rem 1.25rem;
  border-top: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 0 0.5rem 0.5rem;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.automate__item:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-top-color: rgba(0, 0, 0, 0.2);
}

.automate__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-primary);
  opacity: 0.65;
  margin-bottom: 1.25rem;
}

.automate__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.automate__desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 36ch;
}

/* Stagger */
.automate__item:nth-child(1) { transition-delay: 0s; }
.automate__item:nth-child(2) { transition-delay: 0.08s; }
.automate__item:nth-child(3) { transition-delay: 0.16s; }
.automate__item:nth-child(4) { transition-delay: 0.24s; }
.automate__item:nth-child(5) { transition-delay: 0.32s; }
.automate__item:nth-child(6) { transition-delay: 0.4s; }

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .automate__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  .automate__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .automate__item {
    padding: 1.5rem 0.5rem;
  }

  .automate__title {
    font-size: 1.2rem;
  }

  .automate__desc {
    max-width: none;
    font-size: 0.9rem;
  }

  .automate__heading {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
}
