/* ═════════ ZERP · SECTION 4 · WHO IT'S FOR ═════════
   Desktop: four panels side by side; the one you point at (or focus)
   opens wider and shows its line. Phones: a simple list. */
.ze-section4 {
  position: relative;
  padding: 100px 0;
}

.ze4-list {
  display: flex;
  gap: 12px;
  height: 380px;
}

.ze4-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 70%);
  overflow: hidden;
  cursor: default;
  outline: none;
  transition: flex 0.8s var(--ease), border-color 0.5s, background 0.6s;
}

/* soft blue light rising from the bottom of the open panel */
.ze4-item::before {
  content: '';
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 99, 243, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.8s;
  pointer-events: none;
}

.ze4-item.is-open {
  flex: 2.3;
  border-color: rgba(91, 149, 255, 0.35);
  background: linear-gradient(180deg, rgba(20, 99, 243, 0.08), transparent 70%);
}

.ze4-item.is-open::before {
  opacity: 1;
}

.ze4-item:focus-visible {
  border-color: var(--blue-light);
}

.ze4-n {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.ze4-ico {
  position: relative;
  width: 54px;
  height: 54px;
  margin-top: 22px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  transition: color 0.5s, border-color 0.5s, background 0.5s;
}

.ze4-item.is-open .ze4-ico {
  color: #fff;
  border-color: rgba(91, 149, 255, 0.5);
  background: var(--blue);
  box-shadow: 0 0 30px -6px var(--blue-glow);
}

.ze4-ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ze4-text {
  position: relative;
  margin-top: auto;
}

.ze4-text h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.ze4-text p {
  max-width: 300px;
  max-height: 0;
  margin-top: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.7s var(--ease), opacity 0.5s, margin-top 0.7s var(--ease);
}

.ze4-item.is-open .ze4-text p {
  max-height: 6em;
  margin-top: 10px;
  opacity: 1;
  transition-delay: 0.15s;
}

@media (max-width: 900px) {
  .ze-section4 { padding: 80px 0; }
  .ze4-list { flex-direction: column; height: auto; }
  .ze4-item,
  .ze4-item.is-open {
    flex: none;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-areas: "ico text";
    gap: 4px 16px;
    align-items: center;
    padding: 18px;
  }
  .ze4-n { display: none; }
  .ze4-ico { grid-area: ico; width: 48px; height: 48px; margin: 0; }
  .ze4-text { grid-area: text; margin: 0; }
  .ze4-text h3 { font-size: 1.25rem; white-space: normal; }
  .ze4-text p,
  .ze4-item.is-open .ze4-text p { max-height: none; margin-top: 4px; opacity: 1; font-size: 0.9rem; }
}
