/*
  AvLu v1.4 gateway positioning
  Extends the existing visual language without changing global components.
*/

.avlu-gateway-section {
  background:
    radial-gradient(circle at 12% 12%, rgba(8, 103, 247, .08), transparent 28%),
    linear-gradient(180deg, var(--v13-surface-alt, #f7faff) 0%, var(--v13-surface, #fff) 100%);
}

.avlu-gateway-heading {
  max-width: 900px;
}

.avlu-gateway-heading .avlu-gateway-lead {
  max-width: 780px;
  color: var(--ref-ink);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 750;
  line-height: 1.55;
}

.avlu-gateway-heading .avlu-gateway-explainer {
  max-width: 820px;
  line-height: 1.7;
}

.avlu-gateway-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.avlu-gateway-stage {
  min-width: 0;
  padding: 22px;
  position: relative;
  border: 1px solid var(--ref-line);
  border-radius: 12px;
  background: var(--v13-surface, #fff);
  box-shadow: var(--ref-shadow-soft);
}

.avlu-gateway-stage:not(:last-child)::after {
  content: "\2192";
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  position: absolute;
  top: calc(50% - 15px);
  right: -23px;
  z-index: 2;
  border: 1px solid var(--ref-line);
  border-radius: 999px;
  color: var(--ref-blue);
  background: var(--v13-surface, #fff);
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(11, 30, 67, .08);
}

.avlu-gateway-stage span {
  display: block;
  margin-bottom: 8px;
  color: var(--ref-blue);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.avlu-gateway-stage h3 {
  margin: 0;
  color: var(--ref-ink);
  font-size: 1rem;
  line-height: 1.3;
}

.avlu-gateway-stage p {
  margin: 8px 0 0;
  color: var(--ref-copy);
  font-size: .78rem;
  line-height: 1.6;
}

.avlu-gateway-stage--avlu {
  border-color: var(--ref-blue);
  background: linear-gradient(145deg, var(--ref-blue-dark), var(--ref-blue));
  box-shadow: 0 14px 34px rgba(8, 103, 247, .2);
}

.avlu-gateway-stage--avlu span,
.avlu-gateway-stage--avlu h3,
.avlu-gateway-stage--avlu p {
  color: #fff;
}

.avlu-gateway-stage--avlu span {
  opacity: .9;
}

.avlu-gateway-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.avlu-gateway-point {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--ref-line);
  border-radius: 10px;
  background: var(--v13-surface, #fff);
}

.avlu-gateway-point strong {
  display: block;
  color: var(--ref-ink);
  font-size: .84rem;
  line-height: 1.35;
}

.avlu-gateway-point p {
  margin: 6px 0 0;
  color: var(--ref-copy);
  font-size: .74rem;
  line-height: 1.55;
}

.avlu-gateway-boundary {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--ref-line);
  border-radius: 10px;
  background: var(--ref-blue-soft);
}

.avlu-gateway-boundary::before {
  content: "i";
  width: 25px;
  height: 25px;
  display: grid;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--ref-blue);
  font-size: .78rem;
  font-weight: 900;
}

.avlu-gateway-boundary strong {
  display: block;
  color: var(--ref-ink);
  font-size: .84rem;
  line-height: 1.4;
}

.avlu-gateway-boundary p {
  margin: 4px 0 0;
  color: var(--ref-copy);
  font-size: .75rem;
  line-height: 1.6;
}

.avlu-gateway-note {
  margin: 12px 0 0;
  color: var(--ref-muted);
  font-size: .68rem;
  line-height: 1.55;
  text-align: center;
}

.avlu-dealer-feature-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .avlu-dealer-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .avlu-gateway-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .avlu-gateway-path,
  .avlu-gateway-points,
  .avlu-dealer-feature-grid {
    grid-template-columns: 1fr;
  }

  .avlu-gateway-stage:not(:last-child)::after {
    top: auto;
    right: calc(50% - 15px);
    bottom: -23px;
    transform: rotate(90deg);
  }

  .avlu-gateway-boundary {
    gap: 12px;
    padding: 16px;
  }
}
