/* TP Context HOME03E — mobile hero only.
   Original approved desktop artwork, reordered above hero copy.
   No changes to desktop and no market data simulation. */

/* Extras must remain invisible on desktop, even after a viewport resize. */
body .tpx-hero-trust > [data-tp-home03e-extra] { display: none !important; }

@media (max-width: 720px) {
  body.tpx-home-active .tpx-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: calc(100% - 24px) !important;
    max-width: 520px !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 10px 0 22px !important;
    overflow: visible !important;
  }

  body.tpx-home-active .tpx-hero-visual {
    order: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    isolation: isolate !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1139 / 463 !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: transparent !important;
    box-shadow: 0 14px 38px rgba(0, 8, 18, .20) !important;
    transform: none !important;
  }

  /* Subtle ambient light behind the ORIGINAL approved illustration.
     It neither depicts nor changes live market prices. */
  body.tpx-home-active .tpx-hero-visual::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(39,146,213,.22), transparent 80%) !important;
    opacity: .8 !important;
    pointer-events: none !important;
    filter: none !important;
  }

  body.tpx-home-active .tpx-hero-visual::after {
    content: '' !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    background-image: url('/home-reference/hero-right-reference.png') !important;
    background-position: 50% 50% !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 83%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, #000 0%, #000 83%, transparent 100%) !important;
    pointer-events: none !important;
    transform: translateZ(0) !important;
    animation: tp-home03e-breathe 7s ease-in-out infinite alternate !important;
    filter: none !important;
  }

  /* Never expose the older underlying demo chart below the approved artwork. */
  body.tpx-home-active .tpx-hero-visual .tpx-terminal,
  body.tpx-home-active .tpx-hero-visual .tpx-phone,
  body.tpx-home-active .tpx-hero-visual .tpx-hand-note {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.tpx-home-active .tpx-hero-copy {
    order: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  body.tpx-home-active .tpx-hero-trust {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 9px !important;
    margin-top: 20px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.tpx-home-active .tpx-hero-trust > span,
  body.tpx-home-active .tpx-hero-trust > [data-tp-home03e-extra] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    min-height: 66px !important;
    width: 100% !important;
    padding: 10px 8px !important;
    margin: 0 !important;
    border: 1px solid rgba(77, 151, 200, .20) !important;
    border-radius: 12px !important;
    background: linear-gradient(155deg, rgba(16, 41, 62, .80), rgba(6, 24, 40, .60)) !important;
    box-shadow: inset 0 1px 0 rgba(141, 215, 255, .03) !important;
  }

  body.tpx-home-active .tpx-hero-trust .tpx-trust-icon {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    font-size: 14px !important;
    line-height: 1 !important;
    display: inline-grid !important;
    place-items: center !important;
  }

  body.tpx-home-active .tpx-hero-trust b {
    display: block !important;
    min-width: 0 !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    font-weight: 590 !important;
    color: #cde2f1 !important;
  }
}

@keyframes tp-home03e-breathe {
  from { opacity: .95; transform: translateY(1px) translateZ(0); }
  to { opacity: 1; transform: translateY(-2px) translateZ(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.tpx-home-active .tpx-hero-visual::after { animation: none !important; transform: none !important; }
}
