/*
 * Systems & Pricing — cinematic scene layer
 * Loaded after systems-pricing.css so the core page remains stable while this
 * file owns macro rhythm, editorial header variance, and connection motion.
 */

.route-systems-pricing {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* ══ HERO SCALE + SEPARATION ══════════════════════════════════════════════ */
.route-systems-pricing .sp-stage__hero {
  max-width: min(100%, 76rem);
}

.route-systems-pricing .sp-hero__headline {
  max-width: 72rem;
  margin-inline: auto;
  font-size: clamp(3.15rem, 6.1vw, 5.45rem);
  line-height: 0.98;
  letter-spacing: -0.042em;
}

.route-systems-pricing .sp-hero__lead {
  max-width: 62ch;
}

.route-systems-pricing .sp-hero__review {
  max-width: 62ch;
}

.route-systems-pricing .sp-billing {
  margin-top: clamp(4.25rem, 6.4vw, 6rem);
}

/* ══ MACRO SCENE RHYTHM ═══════════════════════════════════════════════════ */
.route-systems-pricing .sp-section {
  padding-block: clamp(6.5rem, 9.5vw, 9.5rem);
}

.route-systems-pricing .sp-section::after {
  content: var(--sp-scene, '');
  position: absolute;
  top: clamp(3.5rem, 6vw, 6rem);
  right: 0;
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(7rem, 15vw, 14rem);
  font-weight: var(--weight-extrabold);
  line-height: 0.75;
  letter-spacing: -0.08em;
  color: rgba(127, 224, 255, 0.035);
  pointer-events: none;
}

.route-systems-pricing .sp-how { --sp-scene: '01'; }
.route-systems-pricing .sp-compare { --sp-scene: '02'; }
.route-systems-pricing .sp-paths { --sp-scene: '03'; }
.route-systems-pricing .sp-access { --sp-scene: '04'; }
.route-systems-pricing .sp-impl { --sp-scene: '05'; }
.route-systems-pricing .sp-usage { --sp-scene: '06'; }
.route-systems-pricing .sp-faq { --sp-scene: '07'; }

.route-systems-pricing .sp-webplat,
.route-systems-pricing .sp-impl,
.route-systems-pricing .sp-ecom,
.route-systems-pricing .sp-ongoing {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.028) 48%, rgba(255, 255, 255, 0.012));
}

.route-systems-pricing .sp-paths,
.route-systems-pricing .sp-addons,
.route-systems-pricing .sp-usage,
.route-systems-pricing .sp-notinc {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(111, 91, 214, 0.05), transparent 72%);
}

/* Centered feature scenes */
.route-systems-pricing .sp-how .sp-section__head,
.route-systems-pricing .sp-compare .sp-section__head,
.route-systems-pricing .sp-paths .sp-section__head,
.route-systems-pricing .sp-impl .sp-section__head,
.route-systems-pricing .sp-ongoing .sp-section__head {
  max-width: 78ch;
  margin: 0 auto clamp(3.5rem, 5vw, 5.25rem);
  text-align: center;
}

.route-systems-pricing .sp-how .sp-section__head::before,
.route-systems-pricing .sp-compare .sp-section__head::before,
.route-systems-pricing .sp-paths .sp-section__head::before,
.route-systems-pricing .sp-impl .sp-section__head::before,
.route-systems-pricing .sp-ongoing .sp-section__head::before {
  left: 50%;
  width: 5.25rem;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--ar-cyan), transparent);
}

.route-systems-pricing .sp-how .sp-section__intro,
.route-systems-pricing .sp-compare .sp-section__intro,
.route-systems-pricing .sp-paths .sp-section__intro,
.route-systems-pricing .sp-impl .sp-section__intro,
.route-systems-pricing .sp-ongoing .sp-section__intro {
  max-width: 62ch;
  margin-inline: auto;
}

/* Forward editorial splits */
.route-systems-pricing .sp-webplat .sp-section__head,
.route-systems-pricing .sp-addons .sp-section__head,
.route-systems-pricing .sp-usage .sp-section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
  column-gap: clamp(3rem, 7vw, 7rem);
  align-items: end;
  max-width: none;
  margin-bottom: clamp(3.5rem, 5vw, 5rem);
}

.route-systems-pricing .sp-webplat .sp-section__head .sp-eyebrow,
.route-systems-pricing .sp-addons .sp-section__head .sp-eyebrow,
.route-systems-pricing .sp-usage .sp-section__head .sp-eyebrow,
.route-systems-pricing .sp-webplat .sp-section__head .sp-section__title,
.route-systems-pricing .sp-addons .sp-section__head .sp-section__title,
.route-systems-pricing .sp-usage .sp-section__head .sp-section__title {
  grid-column: 1;
}

.route-systems-pricing .sp-webplat .sp-section__head .sp-section__intro,
.route-systems-pricing .sp-addons .sp-section__head .sp-section__intro,
.route-systems-pricing .sp-usage .sp-section__head .sp-section__intro {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  padding: 0.5rem 0.5rem 0.5rem clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(127, 224, 255, 0.22);
}

/* Reverse editorial splits */
.route-systems-pricing .sp-buyout .sp-section__head,
.route-systems-pricing .sp-ecom .sp-section__head,
.route-systems-pricing .sp-notinc .sp-section__head {
  display: grid;
  grid-template-columns: minmax(22rem, 1.08fr) minmax(0, 0.92fr);
  column-gap: clamp(3rem, 7vw, 7rem);
  align-items: end;
  max-width: none;
  margin-left: auto;
  margin-bottom: clamp(3.5rem, 5vw, 5rem);
  text-align: right;
}

.route-systems-pricing .sp-buyout .sp-section__head .sp-eyebrow,
.route-systems-pricing .sp-ecom .sp-section__head .sp-eyebrow,
.route-systems-pricing .sp-notinc .sp-section__head .sp-eyebrow,
.route-systems-pricing .sp-buyout .sp-section__head .sp-section__title,
.route-systems-pricing .sp-ecom .sp-section__head .sp-section__title,
.route-systems-pricing .sp-notinc .sp-section__head .sp-section__title {
  grid-column: 2;
}

.route-systems-pricing .sp-buyout .sp-section__head .sp-section__intro,
.route-systems-pricing .sp-ecom .sp-section__head .sp-section__intro,
.route-systems-pricing .sp-notinc .sp-section__head .sp-section__intro {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: end;
  padding: 0.5rem clamp(1.5rem, 3vw, 2.5rem) 0.5rem 0.5rem;
  border-right: 1px solid rgba(255, 111, 0, 0.24);
  text-align: left;
}

.route-systems-pricing .sp-buyout .sp-section__head::before,
.route-systems-pricing .sp-ecom .sp-section__head::before,
.route-systems-pricing .sp-notinc .sp-section__head::before {
  right: 0;
  left: auto;
  background: linear-gradient(90deg, transparent, var(--ar-orange));
}

/* Give repeated card systems different physical rhythms */
.route-systems-pricing .sp-how__grid {
  position: relative;
}

.route-systems-pricing .sp-how__grid::before {
  content: '';
  position: absolute;
  top: 2.65rem;
  left: 8%;
  right: 8%;
  z-index: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 174, 239, 0.6), transparent);
  box-shadow: 0 0 18px rgba(0, 174, 239, 0.32);
}

.route-systems-pricing .sp-how__layer {
  z-index: 1;
  min-height: 15.5rem;
}

.route-systems-pricing .sp-paths__grid {
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.route-systems-pricing .sp-path-card {
  min-height: 24rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.route-systems-pricing .sp-path-card:nth-child(2) {
  margin-top: -1.25rem;
  margin-bottom: 1.25rem;
}

.route-systems-pricing .sp-tiles {
  gap: clamp(1.25rem, 2.4vw, 2rem);
}

.route-systems-pricing .sp-tile {
  padding: clamp(1.5rem, 2.5vw, 2rem);
}

/* ══ RESPONSIVE CINEMATIC COLLAPSE ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .route-systems-pricing .sp-stage__hero {
    max-width: 52rem;
  }

  .route-systems-pricing .sp-hero__headline {
    font-size: clamp(3rem, 7.6vw, 4.85rem);
  }

  .route-systems-pricing .sp-webplat .sp-section__head,
  .route-systems-pricing .sp-addons .sp-section__head,
  .route-systems-pricing .sp-usage .sp-section__head,
  .route-systems-pricing .sp-buyout .sp-section__head,
  .route-systems-pricing .sp-ecom .sp-section__head,
  .route-systems-pricing .sp-notinc .sp-section__head {
    column-gap: 2.5rem;
  }
}

@media (max-width: 760px) {
  .route-systems-pricing .sp-section {
    padding-block: clamp(4.75rem, 15vw, 6.5rem);
  }

  .route-systems-pricing .sp-section::after {
    top: 3rem;
    font-size: 7rem;
  }

  .route-systems-pricing .sp-stage__hero {
    max-width: calc(100vw - 3.5rem);
  }

  .route-systems-pricing .sp-billing {
    margin-top: 3.5rem;
  }

  .route-systems-pricing .sp-how .sp-section__head,
  .route-systems-pricing .sp-compare .sp-section__head,
  .route-systems-pricing .sp-paths .sp-section__head,
  .route-systems-pricing .sp-impl .sp-section__head,
  .route-systems-pricing .sp-ongoing .sp-section__head {
    margin-bottom: 3rem;
    text-align: left;
  }

  .route-systems-pricing .sp-how .sp-section__head::before,
  .route-systems-pricing .sp-compare .sp-section__head::before,
  .route-systems-pricing .sp-paths .sp-section__head::before,
  .route-systems-pricing .sp-impl .sp-section__head::before,
  .route-systems-pricing .sp-ongoing .sp-section__head::before {
    left: 0;
    transform: none;
    background: linear-gradient(90deg, var(--ar-cyan), transparent);
  }

  .route-systems-pricing .sp-how .sp-section__intro,
  .route-systems-pricing .sp-compare .sp-section__intro,
  .route-systems-pricing .sp-paths .sp-section__intro,
  .route-systems-pricing .sp-impl .sp-section__intro,
  .route-systems-pricing .sp-ongoing .sp-section__intro {
    margin-inline: 0;
  }

  .route-systems-pricing .sp-webplat .sp-section__head,
  .route-systems-pricing .sp-addons .sp-section__head,
  .route-systems-pricing .sp-usage .sp-section__head,
  .route-systems-pricing .sp-buyout .sp-section__head,
  .route-systems-pricing .sp-ecom .sp-section__head,
  .route-systems-pricing .sp-notinc .sp-section__head {
    display: block;
    margin-bottom: 3rem;
    text-align: left;
  }

  .route-systems-pricing .sp-webplat .sp-section__head .sp-section__intro,
  .route-systems-pricing .sp-addons .sp-section__head .sp-section__intro,
  .route-systems-pricing .sp-usage .sp-section__head .sp-section__intro,
  .route-systems-pricing .sp-buyout .sp-section__head .sp-section__intro,
  .route-systems-pricing .sp-ecom .sp-section__head .sp-section__intro,
  .route-systems-pricing .sp-notinc .sp-section__head .sp-section__intro {
    margin-top: 1rem;
    padding: 0;
    border: 0;
  }

  .route-systems-pricing .sp-buyout .sp-section__head::before,
  .route-systems-pricing .sp-ecom .sp-section__head::before,
  .route-systems-pricing .sp-notinc .sp-section__head::before {
    right: auto;
    left: 0;
    background: linear-gradient(90deg, var(--ar-orange), transparent);
  }

  .route-systems-pricing .sp-how__grid::before {
    display: none;
  }

  .route-systems-pricing .sp-how__layer {
    min-height: 0;
  }

  .route-systems-pricing .sp-path-card {
    min-height: 0;
  }

  .route-systems-pricing .sp-path-card:nth-child(2) {
    margin-block: 0;
  }
}

@media (max-width: 620px) {
  .route-systems-pricing .sp-hero__headline {
    font-size: clamp(2.4rem, 10.8vw, 2.8rem);
  }
}
