/* ============================================================================
   HERO SPLIT & DARK-SLATE ANIMATED PHONE STORYTELLER
   ============================================================================ */

.apex-hero.apex-hero-split {
  max-width: 1220px;
  padding: 4.5rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 3rem;
  text-align: left;
}

.apex-hero-split .apex-hero-copy {
  position: relative;
  z-index: 2;
}

.apex-hero-split .apex-hero-headline {
  font-size: clamp(2.85rem, 5.2vw, 4.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0.85rem;
}

.apex-hero-kicker {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #e2e8f0;
  margin: 0 0 1.15rem 0;
  max-width: 560px;
}

.apex-hero-split .apex-hero-subheadline {
  margin-left: 0;
  margin-right: 0;
  max-width: 560px;
}

.apex-hero-split .apex-hero-actions {
  justify-content: flex-start;
}

/* ---- Stage & Concentric Orbit Rings ---- */
.apex-hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.75rem 1rem 1rem;
  min-height: 540px;
}

.phone-orbit-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.phone-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.12);
}

.phone-orbit-ring.ring-1 {
  width: 340px;
  height: 340px;
  border-color: rgba(56, 189, 248, 0.18);
}

.phone-orbit-ring.ring-2 {
  width: 450px;
  height: 450px;
  border-style: dashed;
  border-color: rgba(99, 102, 241, 0.16);
}

.phone-orbit-ring.ring-3 {
  width: 550px;
  height: 550px;
  border-color: rgba(255, 255, 255, 0.05);
}

/* ---- Phone Hardware Bezel (Dark Slate Glass) ---- */
.hero-phone-wrap {
  position: relative;
  z-index: 2;
  width: 300px;
}

.hero-phone-device {
  position: relative;
  width: 300px;
  height: 500px;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(160deg, #1e293b 0%, #0b1120 60%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.72),
    0 0 48px rgba(14, 165, 233, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 18px;
  background: #020617;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 5;
}

.hero-phone-viewport {
  width: 100%;
  height: 100%;
  border-radius: 29px;
  overflow: hidden;
  background: #090e1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.hero-phone-track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-phone-slide {
  width: 33.3333%;
  height: 100%;
  padding: 38px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
}

/* ---- Outer Floating Callouts & Connector Lines ---- */
.phone-callout {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.phone-callout.active {
  opacity: 1;
  transform: translateY(0);
}

.callout-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.callout-pill.cyan {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  border: 1px solid rgba(125, 211, 252, 0.5);
}

.callout-pill.emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: 1px solid rgba(110, 231, 183, 0.45);
}

.callout-pill.slate {
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.callout-amount {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  animation: calloutPulse 2.4s ease-in-out infinite;
}

.callout-line-h {
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.9), rgba(56, 189, 248, 0.25));
  position: relative;
}

.callout-line-h::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.callout-line-h.left-dir {
  background: linear-gradient(270deg, rgba(56, 189, 248, 0.9), rgba(56, 189, 248, 0.25));
}

.callout-line-h.left-dir::after {
  right: auto;
  left: -3px;
}

.callout-line-v {
  width: 2px;
  height: 26px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.8), rgba(56, 189, 248, 0.35));
  position: relative;
}

.callout-line-v::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

/* Specific Callout Positions */
.callout-top {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
}
.callout-top.active {
  transform: translateX(-50%);
}

.callout-left-1 {
  top: 138px;
  left: -138px;
}

.callout-left-2 {
  top: 238px;
  left: -152px;
}

.callout-right-1 {
  top: 315px;
  right: -136px;
}

@keyframes calloutPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ---- Phone Screen Shared UI ---- */
.ps-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ps-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #f8fafc;
}

.ps-brand-dot {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
}

.ps-brand-dot.cyan { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.ps-brand-dot.emerald { background: linear-gradient(135deg, #10b981, #059669); }
.ps-brand-dot.indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }

.ps-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ps-tag.green {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

/* Slide 1: Map & Dispatch */
.ps-map-box {
  position: relative;
  flex: 1;
  margin: 10px 0;
  border-radius: 14px;
  background:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 70% 35%, rgba(14, 165, 233, 0.16), transparent 65%),
    #0b1324;
  background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ps-route-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.66rem;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
}

.ps-route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ps-sheet {
  background: #111a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 11px 12px;
}

.ps-mini-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 6px;
  position: relative;
}

.ps-mini-steps::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.ps-step-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334155;
  position: relative;
  z-index: 1;
}

.ps-step-dot.done {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

/* Slide 2: Proof & Touchless Pay */
.ps-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}

.ps-photo-tile {
  height: 82px;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-photo-tile.before {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.9));
}

.ps-photo-tile.after {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(15, 23, 42, 0.9));
}

.ps-checklist-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 0.7rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ps-check-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ps-pay-bar {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(14, 165, 233, 0.14));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Slide 3: Owner Revenue & Instant Payout */
.ps-rev-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
}

.ps-tx-list {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 10px;
  flex: 1;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.ps-tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-tx-row:last-child {
  border-bottom: none;
}

.ps-bank-bar {
  background: #0d1526;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: #94a3b8;
}

/* ---- Trade Switcher Pills Below Phone ---- */
.hero-phone-switcher {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.phone-switch-btn {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.phone-switch-btn:hover {
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.4);
}

.phone-switch-btn.active {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(56, 189, 248, 0.55);
  color: #38bdf8;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 1120px) {
  .callout-left-1 { left: -96px; }
  .callout-left-2 { left: -104px; }
  .callout-right-1 { right: -92px; }
}

@media (max-width: 980px) {
  .apex-hero.apex-hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3.5rem;
    gap: 2.25rem;
  }

  .apex-hero-split .apex-hero-headline,
  .apex-hero-split .apex-hero-subheadline {
    margin-left: auto;
    margin-right: auto;
  }

  .apex-hero-split .apex-hero-actions {
    justify-content: center;
  }

  .apex-hero-stage {
    min-height: 520px;
    overflow: hidden;
  }

  .callout-left-1,
  .callout-left-2,
  .callout-right-1 {
    display: none;
  }
}
