/* Structural CSS that the builder's runtime used to provide.
 *
 * The original page scrolled inside #ssg-root via a Tailwind overflow-y-auto
 * utility. That utility does NOT survive into this build (computed overflow is
 * `visible`), so depending on it produced a page with no scroll container at all
 * — html/body were hidden and the root could not scroll: the page was frozen.
 *
 * So: scroll the document. It is the most reliable behaviour across mouse, wheel,
 * keyboard, trackpad and touch, it gives a real visible scrollbar, and sticky
 * descendants keep working because they stick to the document scroller.
 */

html,
body {
  height: auto;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto;
  position: static !important;
}

#ssg-root {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* Decorative loops: never let a video collapse or stretch its card. */
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The carousels are native horizontal scrollers; kill the chrome. */
.flow-hero-gallery-carousel,
.flow-feedback-carousel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.flow-hero-gallery-carousel::-webkit-scrollbar,
.flow-feedback-carousel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* ------------------------------------------------------------------ menu */
/* Measured from live: a 600px-wide fixed drawer on the right, #202020, full
   height, parked off-screen by translateX(600px) and opened by adding
   .flow-mobile-menu--open. PurgeCSS had stripped every vendor menu rule (the
   menu markup was not in the file it purged against), so the drawer geometry is
   declared here explicitly rather than assumed. */
.flow-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 600px;
  max-width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #202020;
  color: #fff7ef;
  z-index: 100;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 320ms;
  overflow-y: auto;
}

.flow-mobile-menu.flow-mobile-menu--open {
  transform: translateX(0);
  visibility: visible;
}

@media (max-width: 700px) {
  .flow-mobile-menu { width: 100%; }
}

/* dim the page behind the drawer */
html.menu-open body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99;
}

html.menu-open body { overflow: hidden; }

/* ---------------------------------------------------------------- sliders */
/* These viewports are overflow:hidden by the vendor CSS; motion comes from a
   transform on the track, applied by site.js. Give them real affordances. */
.flow-hero-gallery-carousel,
.flow-feedback-carousel {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;                /* vertical page scroll stays native */
  overscroll-behavior-x: contain;
}

.flow-hero-gallery-carousel.dragging,
.flow-feedback-carousel.dragging {
  cursor: grabbing;
}

.flow-hero-gallery-carousel:focus-visible,
.flow-feedback-carousel:focus-visible {
  outline: 2px solid var(--text-heading, #1e0b0a);
  outline-offset: 4px;
}

.flow-hero-gallery-track,
.flow-feedback-track,
.flow-followers-track {
  will-change: transform;
  backface-visibility: hidden;
}

.flow-hero-gallery-carousel img,
.flow-hero-gallery-carousel video,
.flow-feedback-carousel img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;               /* a drag must never start on the media */
}

/* -------------------------------------------------------------------- faq */
/* Answer panels are injected at build time (the capture had none). */
.flow-faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-faq-answer p {
  margin: 0;
  padding: 4px 0 18px;
  font-family: var(--font-body, Poppins), sans-serif;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-body, rgba(30, 11, 10, 0.8));
  max-width: 62ch;
}

.flow-faq-item.is-open .flow-faq-chevron {
  transform: rotate(180deg);
}

.flow-faq-chevron {
  transition: transform 220ms ease;
  flex: 0 0 auto;
}

.flow-faq-question-row {
  cursor: pointer;
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
}

/* Respect a reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
