/* SUNDEX p259 — strict route isolation for SPA transitions.
   Landing sections live outside #root so React cannot unmount them. They must
   never participate in layout, paint or accessibility on product routes. */

html[data-sx-route]:not([data-sx-route="home"]) body > :is(
  #sundex-motion-intro,
  #sundex-market-explorer,
  #sundex-card-story,
  #sundex-trade-stage,
  #sundex-wallet-stage,
  #sundex-final-cta,
  #sundex-cinematic-network
) {
  display: none !important;
  visibility: hidden !important;
  content-visibility: hidden !important;
  pointer-events: none !important;
}

/* Markets and Trade intentionally render their route UI in this shared portal. */
html[data-sx-route]:not([data-sx-route="markets"]):not([data-sx-route="trade"]) body > #sx88-route-portal,
body > #sx88-route-portal[hidden] {
  display: none !important;
  visibility: hidden !important;
  content-visibility: hidden !important;
  pointer-events: none !important;
}

html[data-sx-route]:not([data-sx-route="home"]) body.sundex-route-away > :is(
  #sundex-motion-intro,
  #sundex-market-explorer,
  #sundex-card-story,
  #sundex-trade-stage,
  #sundex-wallet-stage,
  #sundex-final-cta,
  #sundex-cinematic-network
) * {
  animation: none !important;
  transition: none !important;
}
