/**
 * Request-flow diagram — boxes and arrows for landing + security pages.
 * Vertical on mobile; horizontal row at ≥768px.
 */

.c-flow {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.c-flow__node {
  background: var(--bg-secondary);
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  text-align: center;
}

.c-flow__title {
  display: block;
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--text-primary);
}

.c-flow__sub {
  display: block;
  margin-top: var(--space-xs);
  font-size: var(--font-size-micro);
  color: var(--text-secondary);
  line-height: 1.4;
}

.c-flow__edge {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 2.75rem;
  padding: var(--space-1) 0;
}

.c-flow__edge span {
  position: relative;
  z-index: 1;
  font-size: var(--font-size-micro);
  color: var(--text-tertiary);
  background: var(--bg-primary);
  padding: var(--space-xs) var(--space-2);
  border-radius: var(--radius-sm);
  text-align: center;
  max-width: 12rem;
  line-height: 1.35;
}

/* Vertical connector (mobile) */
.c-flow__edge::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1.5px solid var(--border-secondary);
  transform: translateX(-50%);
}

.c-flow__edge::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--border-secondary);
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .c-flow {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .c-flow__node {
    flex: 1 1 0;
    min-width: 0;
  }

  .c-flow__edge {
    flex: 0 0 auto;
    min-width: 5.5rem;
    min-height: auto;
    padding: 0 var(--space-1);
  }

  .c-flow__edge span {
    max-width: 7rem;
  }

  /* Horizontal connector (desktop) */
  .c-flow__edge::before {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 0;
    border-left: none;
    border-top: 1.5px solid var(--border-secondary);
    transform: translateY(-50%);
  }

  .c-flow__edge::after {
    bottom: auto;
    top: 50%;
    left: auto;
    right: 0;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid var(--border-secondary);
    border-right: none;
  }
}
