/* Static-site patches: transitions for vanilla-JS driven components. */

/* Hero slide tween is driven inline by js/hero.js (exact Framer timings:
   0.55s easeOut exit to y -16, then 0.55s easeOut enter from y 24). */

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s ease, transform 1s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* Canvas layer drawn by js/liquid-ether.js. The world map is a real ECharts
   instance now, so it manages its own canvases and tooltip DOM. */
.liquid-ether-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}
#world-map {
  position: relative;
}

/* Pricing coverflow (mirrors the 500ms ease-out transform) */
.coverflow-card {
  transition: transform .5s ease-out, opacity .5s ease-out;
  will-change: transform, opacity;
}

/* Reduced motion: original site disables every animation/transition */
/* The upstream stylesheet only disables its ai-* / studio-* keyframes under
   reduced motion; eyebrow-fade, pulse and scroll-left keep running. Do not
   add a global animation override here - the three animations are part of
   the intended reduced-motion experience. */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; }
}

/* Mobile navigation drawer (only created after the first paint) */
.lia-mobile-panel {
  position: fixed;
  z-index: 90;
  top: 76px;
  left: 12px;
  right: 12px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(17, 16, 27, .97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  padding: 10px;
}
.lia-mobile-panel[hidden] { display: none; }
.lia-mobile-inner { display: flex; flex-direction: column; gap: 2px; }
.lia-mobile-inner a {
  padding: 11px 14px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.lia-mobile-inner a:hover { background: rgba(255, 255, 255, .07); color: #fff; }

/* Header elevation while scrolling */
.lia-header-scrolled { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .28)); }

/* Live OS preference change */
.lia-reduced-motion .animate-scroll-left { animation-play-state: paused; }

/* Newsletter CTA (news page): upstream keeps the field and the submit button in
   one flex row, so on <=390px screens the button is pushed past the card and
   the whole page scrolls sideways. Stack them on phones and let the field
   shrink so the button always stays inside. */
.lia-subscribe > input {
  min-width: 0;
}
@media (max-width: 639px) {
  .lia-subscribe {
    flex-direction: column;
    align-items: stretch;
  }
  .lia-subscribe > input,
  .lia-subscribe > button {
    width: 100%;
  }
}

/* The news page reserves 64px (pt-16) for the fixed header above a dark hero,
   which used to expose the light wrapper behind it. Paint that strip with the
   hero's top colour so the dark block starts at y=0 like the other pages. */
.lia-top-clear {
  background-image: linear-gradient(#0f1419, #0f1419);
  background-repeat: no-repeat;
  background-size: 100% 4rem;
  background-position: top;
}

/* All page copy is authored in the HTML. These blocks are only toggled by
   JavaScript, so keep the native hidden attribute authoritative (SVG icons
   are not covered by the UA stylesheet's [hidden] rule). */
.lia-drawer[hidden],
.lia-faq-answer[hidden],
[data-drawer-icon][hidden] {
  display: none !important;
}
