/* ------------------------------------------------------------------
   Geenius AI - flattened site runtime styles
   Only covers behaviour the React build produced at runtime; every
   other style still comes from the compiled Tailwind sheet.
   ------------------------------------------------------------------ */

/* ---- Accordion ---- */
[data-gx="accordion-content"] {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease-out;
}
/* .gx-acc-inner is an unpadded wrapper: a grid item's automatic minimum
   includes its own padding, so the padded panel must sit one level down
   for the collapsed track to reach a true 0px. */
[data-gx="accordion-content"] > .gx-acc-inner {
  overflow: hidden;
  min-height: 0;
}
[data-gx="accordion-content"][data-state="open"] {
  grid-template-rows: 1fr;
}
@media (prefers-reduced-motion: reduce) {
  [data-gx="accordion-content"] { transition: none; }
}

/* ---- Popup overlay ---- */
[data-gx="popup-host"][hidden] { display: none !important; }

/* ---- Demo widget ---- */
[data-gx="demo-widget-panel"][hidden] { display: none !important; }

/* ---- Tooltip ---- */
.gx-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: 20rem;
  padding: 0.375rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--popover));
  color: hsl(var(--popover-foreground));
  font-size: 0.875rem;
  line-height: 1.25rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 120ms ease-out, transform 120ms ease-out;
}
.gx-tooltip[data-state="open"] { opacity: 1; transform: scale(1); }

/* ---- Toasts ---- */
.gx-toaster {
  position: fixed;
  z-index: 10001;
  bottom: 0;
  right: 0;
  display: flex;
  max-height: 100vh;
  width: 100%;
  flex-direction: column-reverse;
  padding: 1rem;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .gx-toaster { top: auto; bottom: 0; right: 0; flex-direction: column; max-width: 420px; }
}
.gx-toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  padding-right: 2rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transform: translateY(0.5rem);
  opacity: 0;
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}
.gx-toast[data-state="open"] { opacity: 1; transform: translateY(0); }
.gx-toast[data-variant="destructive"] {
  border-color: hsl(var(--destructive));
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}
.gx-toast-title { font-size: 0.875rem; font-weight: 600; }
.gx-toast-desc { font-size: 0.875rem; opacity: 0.9; margin-top: 0.25rem; }
.gx-toast-close {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  border-radius: 0.375rem;
  padding: 0.25rem;
  opacity: 0.5;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}
.gx-toast-close:hover { opacity: 1; }
.gx-toast-inner { position: relative; display: grid; gap: 0.125rem; }

/* ---- Carousel ---- */
[data-gx="carousel-track"] {
  transition: transform 500ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  [data-gx="carousel-track"] { transition: none; }
}

/* ---- Slider ---- */
[data-gx="slider"] { cursor: pointer; }
[data-gx="slider-thumb"] { cursor: grab; }
[data-gx="slider-thumb"]:active { cursor: grabbing; }

/* ---- Video play overlay ---- */
[data-gx="play-video"][hidden] { display: none !important; }

/* ---- Cookie bar ---- */
[data-gx="cookie-bar"][hidden] { display: none !important; }

/* ---- Demo: two column with stepped timeline ---- */
.gx-split { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .gx-split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.gx-steps { list-style: none; margin: 0; padding: 0; }
.gx-step { display: flex; gap: 1rem; align-items: flex-start; position: relative; padding-bottom: 1.75rem; }
.gx-step:last-child { padding-bottom: 0; }
.gx-step:not(:last-child)::after {
  content: ""; position: absolute; left: 1.125rem; top: 2.75rem; bottom: .25rem;
  width: 1px; background: hsl(var(--border));
}
.gx-step-num {
  flex: 0 0 auto; width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  color: hsl(var(--primary)); background: hsl(var(--primary) / .1);
  position: relative; z-index: 1;
}

/* ---- Use-case selector ---- */
.gx-uc { display: grid; gap: 2rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 1024px) { .gx-uc { grid-template-columns: 21rem 1fr; gap: 2.5rem; } }
.gx-uc-list { display: flex; flex-direction: column; gap: .5rem; }
.gx-uc-tab {
  display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left;
  padding: .75rem 1rem; border: 1px solid hsl(var(--border)); border-radius: .5rem;
  background: transparent; color: hsl(var(--muted-foreground)); font: inherit;
  font-weight: 500; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.gx-uc-tab:hover { border-color: hsl(var(--primary) / .5); color: hsl(var(--foreground)); }
.gx-uc-tab[aria-selected="true"] {
  background: hsl(var(--card)); border-color: hsl(var(--primary));
  color: hsl(var(--foreground)); box-shadow: 0 1px 2px 0 rgb(0 0 0 / .06);
}
.gx-uc-label { min-width: 0; }
.gx-uc-ico {
  flex: 0 0 auto; width: 2.25rem; height: 2.25rem; border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--primary) / .1); color: hsl(var(--primary));
}
.gx-uc-ico svg { width: 1.125rem; height: 1.125rem; }
.gx-uc-panel {
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  border-radius: .75rem; padding: 2rem;
  display: flex; flex-direction: column; justify-content: center;
}
.gx-uc-panel > :last-child { margin-bottom: 0; }
.gx-uc-panel[hidden] { display: none !important; }
.gx-uc-panels { display: grid; }
.gx-uc-panel { grid-area: 1 / 1; }
.gx-uc-ico-lg { width: 3rem; height: 3rem; margin-bottom: 1.25rem; }
.gx-uc-ico-lg svg { width: 1.5rem; height: 1.5rem; }

/* ---- Platform strip ---- */
.gx-plat { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; max-width: 56rem; margin: 0 auto; }
.gx-plat-item {
  display: flex; align-items: center; gap: .625rem; padding: .75rem 1.25rem;
  border: 1px solid hsl(var(--border)); border-radius: 9999px;
  background: hsl(var(--background)); font-weight: 600;
}
.gx-plat-item svg { width: 1.25rem; height: 1.25rem; }

/* ---- <picture> wrappers must not affect layout ---- */
picture{display:contents}

/* ---- hero headline: balance each line so no single word orphans ---- */
@media (min-width: 768px){ .gx-h1-balance > span{text-wrap:balance} }
