/**
 * Systems pricing — browser annotation refinement
 * Contained energy, cinematic fold-ins, connected pricing layers,
 * richer path/usage cards, orbital markers, and galaxy windows.
 */

/* ══ CONTAINED HUB-CARD CURRENT ═══════════════════════════════════════════ */
.route-systems-pricing .sp-hub-card__energy {
  width: min(46%, 14rem);
  height: 2px;
  border-radius: 999px;
  filter: saturate(1.18);
}

.route-systems-pricing .sp-hub-card--featured .sp-hub-card__energy {
  width: min(52%, 16rem);
}

@keyframes sp-card-current {
  0%, 100% { transform: translateX(-8%); opacity: 0.38; }
  48%      { transform: translateX(54%); opacity: 1; }
  62%      { transform: translateX(62%); opacity: 0.84; }
}

/* ══ CINEMATIC FOLD-UP ENTRANCES ═════════════════════════════════════════ */
.route-systems-pricing .sp-mock-parallax {
  width: min(100%, 1080px);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  will-change: transform;
}

.route-systems-pricing .sp-mock-parallax .sp-mock {
  width: 100%;
  margin: 0;
}

.route-systems-pricing .sp-fold-stage {
  opacity: 0;
  filter: blur(9px) brightness(0.74);
  transform: perspective(1500px) rotateX(15deg) translateY(4.5rem) scale(0.96);
  transform-origin: 50% 100%;
  transition:
    opacity 700ms ease-out,
    filter 900ms ease-out,
    transform 1050ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.route-systems-pricing .sp-fold-stage.am-in {
  opacity: 1;
  filter: blur(0) brightness(1);
  transform: perspective(1500px) rotateX(0) translateY(0) scale(1);
}

/* ══ LIVING FOUR-LAYER SIGNAL RAIL ═══════════════════════════════════════ */
.route-systems-pricing .sp-how__grid::before {
  top: 3.45rem;
  right: calc(12.5% - 1.7rem);
  left: 3.45rem;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(0, 174, 239, 0.76),
      rgba(109, 94, 252, 0.72) 34%,
      rgba(255, 122, 0, 0.72) 68%,
      rgba(61, 214, 140, 0.68));
  box-shadow:
    0 0 14px rgba(0, 174, 239, 0.36),
    0 0 30px rgba(109, 94, 252, 0.18);
}

.route-systems-pricing .sp-how__grid::after {
  content: '';
  position: absolute;
  top: calc(3.45rem - 2px);
  left: 3.45rem;
  z-index: 1;
  width: clamp(4.5rem, 12vw, 10rem);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fff 46%, var(--ar-cyan) 64%, transparent);
  box-shadow: 0 0 12px var(--ar-cyan), 0 0 26px rgba(0, 174, 239, 0.8);
  animation: sp-layer-signal 5.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
}

.route-systems-pricing .sp-how__num {
  width: 3.3rem;
  height: 3.3rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: #031421;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(145deg, #a9edff, var(--ar-cyan));
  box-shadow: 0 0 0 6px rgba(0, 174, 239, 0.09), 0 0 28px rgba(0, 174, 239, 0.5);
}

.route-systems-pricing .sp-how__layer:nth-child(2) .sp-how__num {
  color: #fff;
  background: linear-gradient(145deg, #a99cff, #6d5efc);
  box-shadow: 0 0 0 6px rgba(109, 94, 252, 0.1), 0 0 28px rgba(109, 94, 252, 0.48);
}

.route-systems-pricing .sp-how__layer:nth-child(3) .sp-how__num {
  color: #241002;
  background: linear-gradient(145deg, #ffb04c, var(--ar-orange));
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.1), 0 0 28px rgba(255, 122, 0, 0.46);
}

.route-systems-pricing .sp-how__layer:nth-child(4) .sp-how__num {
  color: #031a10;
  background: linear-gradient(145deg, #8cf1bd, #3dd68c);
  box-shadow: 0 0 0 6px rgba(61, 214, 140, 0.1), 0 0 28px rgba(61, 214, 140, 0.42);
}

@keyframes sp-layer-signal {
  0%   { transform: translateX(-30%) scaleX(0.55); opacity: 0; }
  12%  { opacity: 0.95; }
  82%  { opacity: 0.95; }
  100% { transform: translateX(clamp(32rem, 57vw, 64rem)) scaleX(0.72); opacity: 0; }
}

/* ══ GUIDED PATH CARDS — DISTINCT SYSTEM WORLDS ═════════════════════════ */
.route-systems-pricing .sp-path-card {
  isolation: isolate;
  overflow: hidden;
  border-width: 2px;
  background:
    radial-gradient(circle at 82% 14%, rgba(0, 174, 239, 0.18), transparent 25%),
    linear-gradient(145deg, rgba(8, 38, 63, 0.95), rgba(5, 14, 31, 0.98));
  box-shadow: 0 26px 70px rgba(0, 8, 20, 0.34), inset 0 1px rgba(255, 255, 255, 0.08);
}

.route-systems-pricing .sp-path-card::before {
  content: '';
  position: absolute;
  top: -4.5rem;
  right: -3.5rem;
  z-index: -1;
  width: 12rem;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 174, 239, 0.32);
  border-radius: 50%;
  box-shadow: inset 0 0 32px rgba(0, 174, 239, 0.12), 0 0 36px rgba(0, 174, 239, 0.1);
}

.route-systems-pricing .sp-path-card::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  width: 0.55rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ar-cyan);
  box-shadow: 0 0 0 5px rgba(0, 174, 239, 0.1), 0 0 22px var(--ar-cyan);
}

.route-systems-pricing .sp-path-card:nth-child(2) {
  border-color: rgba(126, 103, 255, 0.58);
  background:
    radial-gradient(circle at 82% 14%, rgba(126, 103, 255, 0.2), transparent 26%),
    linear-gradient(145deg, rgba(29, 24, 67, 0.96), rgba(8, 12, 31, 0.98));
}

.route-systems-pricing .sp-path-card:nth-child(3) {
  border-color: rgba(255, 122, 0, 0.5);
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 122, 0, 0.19), transparent 26%),
    linear-gradient(145deg, rgba(54, 27, 14, 0.94), rgba(12, 13, 29, 0.98));
}

.route-systems-pricing .sp-path-card:nth-child(2)::before { border-color: rgba(126, 103, 255, 0.4); }
.route-systems-pricing .sp-path-card:nth-child(2)::after { background: #8f7dff; box-shadow: 0 0 0 5px rgba(126, 103, 255, 0.11), 0 0 22px #8f7dff; }
.route-systems-pricing .sp-path-card:nth-child(3)::before { border-color: rgba(255, 122, 0, 0.38); }
.route-systems-pricing .sp-path-card:nth-child(3)::after { background: var(--ar-orange); box-shadow: 0 0 0 5px rgba(255, 122, 0, 0.11), 0 0 22px var(--ar-orange); }

.route-systems-pricing .sp-path-card .sp-btn {
  border-color: color-mix(in srgb, currentColor 55%, transparent);
  background: rgba(0, 174, 239, 0.1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 12px 26px rgba(0, 8, 20, 0.24);
}

/* ══ USAGE CARDS — COMPACT ORBITAL MODULES ══════════════════════════════ */
.route-systems-pricing .sp-usage__item {
  position: relative;
  min-height: 6.5rem;
  justify-content: center;
  overflow: hidden;
  padding: 1.15rem 1.25rem 1.15rem 4.4rem;
  border-width: 2px;
  background:
    radial-gradient(circle at 2.15rem 50%, rgba(0, 174, 239, 0.2), transparent 2.5rem),
    linear-gradient(135deg, rgba(10, 34, 55, 0.92), rgba(8, 13, 29, 0.96));
  box-shadow: 0 16px 34px rgba(0, 8, 20, 0.22), inset 0 1px rgba(255, 255, 255, 0.07);
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.route-systems-pricing .sp-usage__item::before {
  content: '';
  position: absolute;
  left: 1.35rem;
  top: 50%;
  width: 1.5rem;
  aspect-ratio: 1;
  border: 2px solid rgba(111, 220, 255, 0.78);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 8%, var(--ar-cyan) 12% 38%, #064a70 70%);
  box-shadow: 0 0 0 6px rgba(0, 174, 239, 0.08), 0 0 18px rgba(0, 174, 239, 0.48);
  transform: translateY(-50%);
}

.route-systems-pricing .sp-usage__item::after {
  content: '';
  position: absolute;
  left: 0.98rem;
  top: 50%;
  width: 2.25rem;
  height: 0.8rem;
  border: 1px solid rgba(136, 226, 255, 0.46);
  border-radius: 50%;
  transform: translateY(-50%) rotate(-18deg);
}

.route-systems-pricing .sp-usage__item:nth-child(3n + 2)::before {
  border-color: rgba(183, 163, 255, 0.8);
  background: radial-gradient(circle at 34% 30%, #fff 0 8%, #8f7dff 12% 38%, #34276f 70%);
  box-shadow: 0 0 0 6px rgba(126, 103, 255, 0.08), 0 0 18px rgba(126, 103, 255, 0.48);
}

.route-systems-pricing .sp-usage__item:nth-child(3n)::before {
  border-color: rgba(255, 183, 104, 0.82);
  background: radial-gradient(circle at 34% 30%, #fff 0 8%, #ff9a3c 12% 38%, #743408 70%);
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.08), 0 0 18px rgba(255, 122, 0, 0.46);
}

.route-systems-pricing .sp-usage__item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 174, 239, 0.52);
  box-shadow: 0 20px 42px rgba(0, 8, 20, 0.3), 0 0 24px rgba(0, 174, 239, 0.08);
}

/* ══ NOT-INCLUDED — PLANETARY MARKERS ═══════════════════════════════════ */
.route-systems-pricing .sp-notinc__grid {
  gap: 1rem clamp(1rem, 2.4vw, 2rem);
}

.route-systems-pricing .sp-notinc__item {
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  padding: 0.45rem 0.6rem 0.45rem 3rem;
  border-bottom: 1px solid rgba(141, 198, 228, 0.12);
}

.route-systems-pricing .sp-notinc__item::before {
  content: '';
  left: 0.7rem;
  top: 50%;
  width: 1rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 184, 111, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd3a0, var(--ar-orange) 38%, #6e2c00 75%);
  box-shadow: 0 0 14px rgba(255, 122, 0, 0.48);
  transform: translateY(-50%);
}

.route-systems-pricing .sp-notinc__item::after {
  content: '';
  position: absolute;
  left: 0.38rem;
  top: 50%;
  width: 1.6rem;
  height: 0.55rem;
  border: 1px solid rgba(255, 185, 112, 0.52);
  border-radius: 50%;
  transform: translateY(-50%) rotate(-18deg);
}

.route-systems-pricing .sp-notinc__item:nth-child(3n + 2)::before {
  border-color: rgba(151, 222, 255, 0.86);
  background: radial-gradient(circle at 35% 30%, #e7faff, var(--ar-cyan) 38%, #06436a 75%);
  box-shadow: 0 0 14px rgba(0, 174, 239, 0.46);
}

.route-systems-pricing .sp-notinc__item:nth-child(3n + 2)::after { border-color: rgba(118, 216, 255, 0.5); }

/* ══ GALAXY WINDOWS ══════════════════════════════════════════════════════ */
.route-systems-pricing .sp-webplat,
.route-systems-pricing .sp-band,
.route-systems-pricing .sp-final {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(0, 174, 239, 0.2), transparent 28%),
    radial-gradient(circle at 84% 72%, rgba(111, 76, 255, 0.17), transparent 30%),
    radial-gradient(circle at 72% 14%, rgba(255, 122, 0, 0.08), transparent 18%),
    linear-gradient(135deg, rgba(3, 17, 34, 0.58), rgba(5, 7, 24, 0.7));
}

.route-systems-pricing .sp-webplat::after,
.route-systems-pricing .sp-band::after,
.route-systems-pricing .sp-final::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.58;
  background-image:
    radial-gradient(circle, rgba(160, 231, 255, 0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(174, 145, 255, 0.58) 0 1px, transparent 1.5px);
  background-position: 18px 24px, 92px 74px;
  background-size: 150px 138px, 210px 186px;
  pointer-events: none;
}

.route-systems-pricing .sp-webplat > *,
.route-systems-pricing .sp-band > *,
.route-systems-pricing .sp-final > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .route-systems-pricing .sp-how__grid::before,
  .route-systems-pricing .sp-how__grid::after {
    content: none;
  }

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

@media (max-width: 620px) {
  .route-systems-pricing .sp-usage__grid {
    grid-template-columns: 1fr;
  }

  .route-systems-pricing .sp-notinc__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-systems-pricing .sp-fold-stage,
  .route-systems-pricing .sp-fold-stage.am-in {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .route-systems-pricing .sp-how__grid::after,
  .route-systems-pricing .sp-hub-card__energy {
    animation: none;
  }

  .route-systems-pricing .sp-how__grid::after {
    opacity: 0.72;
    transform: translateX(clamp(10rem, 24vw, 24rem)) scaleX(0.72);
  }
}
