/*
  Foot Flow shared Liquid Glass layer.
  This file is intentionally shared by the showcase, documentation, FAQ index,
  and individual FAQ pages so visual fixes stay synchronized.
*/

:root {
  --lg-ink: #071126;
  --lg-muted: #53657b;
  --lg-cyan: #06b6d4;
  --lg-green: #22c55e;
  --lg-amber: #f59e0b;
  --lg-violet: #8b5cf6;
  --lg-surface: rgba(244, 249, 255, 0.84);
  --lg-surface-deep: rgba(235, 244, 252, 0.92);
  --lg-border: rgba(15, 23, 42, 0.18);
  --lg-border-bright: rgba(255, 255, 255, 0.94);
  --lg-shadow-rest: 0 14px 34px rgba(15, 23, 42, 0.09), 0 2px 8px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -1px 0 rgba(15, 23, 42, 0.045);
  --lg-shadow-rest-large: 0 22px 56px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.94), inset 0 -1px 0 rgba(15, 23, 42, 0.045);
  --lg-shadow-hover-small: 0 18px 44px rgba(15, 23, 42, 0.12), 0 6px 18px rgba(6, 182, 212, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 -1px 0 rgba(15, 23, 42, 0.05);
  --lg-shadow-hover-large: 0 30px 78px rgba(15, 23, 42, 0.15), 0 10px 28px rgba(6, 182, 212, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.98), inset 0 -1px 0 rgba(15, 23, 42, 0.055);
  --lg-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
  background: #ffffff !important;
}

html.ff-embed,
html.ff-embed body {
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html.ff-embed::-webkit-scrollbar,
html.ff-embed body::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

html.ff-embed .page {
  padding-top: 22px !important;
  padding-bottom: 26px !important;
}

html.ff-embed .page .section {
  margin-top: 18px !important;
}

html.ff-embed .footer {
  padding-bottom: 0 !important;
}

@media (min-width: 641px) and (max-width: 820px) {
  html.ff-embed .page {
    width: min(100% - 14px, 1120px) !important;
  }

  html.ff-embed .hero {
    padding: 34px 38px !important;
    min-height: auto !important;
  }

  html.ff-embed .preview-panel {
    min-height: 340px !important;
  }

  html.ff-embed .update-head,
  html.ff-embed .update-body,
  html.ff-embed .compare,
  html.ff-embed .preview-band,
  html.ff-embed .split-panel,
  html.ff-embed .section.band[style*="padding:32px"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  html.ff-embed .three-grid,
  html.ff-embed .feature-grid {
    grid-template-columns: 1fr !important;
  }

  html.ff-embed .workflow-grid,
  html.ff-embed .compat-grid,
  html.ff-embed .preview-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html.ff-embed .mini-card,
  html.ff-embed .feature-card,
  html.ff-embed .pipeline-card,
  html.ff-embed .workflow-card,
  html.ff-embed .compat-card,
  html.ff-embed .preview-option {
    min-height: auto !important;
  }
}

@media (max-width: 640px) {
  html.ff-embed .page {
    width: min(100% - 12px, 1120px) !important;
    padding-top: 12px !important;
    padding-bottom: 14px !important;
  }

  html.ff-embed .page .section {
    margin-top: 12px !important;
  }

  html.ff-embed .hero {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  html.ff-embed .update-head,
  html.ff-embed .update-body,
  html.ff-embed .compare,
  html.ff-embed .preview-band,
  html.ff-embed .split-panel,
  html.ff-embed .section.band[style*="padding:32px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

body::before,
body::after,
.liquid-filter {
  display: none !important;
}

.band,
.content-shell,
body > div > div {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: var(--lg-border) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.70) 34%, rgba(230, 242, 252, 0.86) 100%),
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.94), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.09), transparent 44%),
    var(--lg-surface) !important;
  box-shadow: var(--lg-shadow-rest-large) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.52) contrast(1.04);
  backdrop-filter: blur(24px) saturate(1.52) contrast(1.04);
  transition:
    transform 280ms var(--lg-ease),
    box-shadow 560ms var(--lg-ease),
    border-color 360ms ease,
    background 520ms ease,
    filter 360ms ease !important;
}

.band:not(.hero):not(.preview-band):not(.cta)::before,
.content-shell::before,
body > div > div::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.42) 18%, transparent 36%),
    linear-gradient(315deg, transparent 0%, rgba(255, 255, 255, 0.26) 58%, rgba(255, 255, 255, 0.76) 100%),
    linear-gradient(90deg, rgba(6, 182, 212, 0.06), transparent 48%, rgba(245, 158, 11, 0.045));
  opacity: 0.58 !important;
  filter: none !important;
}

.band:not(.hero):not(.preview-band):not(.cta)::after,
.content-shell::after,
body > div > div::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background:
    radial-gradient(260px circle at var(--lg-x, 50%) var(--lg-y, 50%), rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.16) 32%, transparent 68%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 48%);
  transition: opacity 360ms ease;
}

.band > *,
.content-shell > *,
body > div > div > * {
  position: relative;
  z-index: 1;
}

.lg-hovering.band:not(.hero):not(.preview-band):not(.cta)::after,
.lg-hovering.content-shell::after,
body > div > div.lg-hovering::after {
  opacity: 0.46;
}

.hero,
.preview-band,
.cta {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background:
    linear-gradient(135deg, rgba(9, 20, 38, 0.96) 0%, rgba(19, 39, 76, 0.94) 50%, rgba(9, 43, 66, 0.96) 100%) !important;
  box-shadow: 0 30px 78px rgba(8, 15, 30, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.055) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.24);
  backdrop-filter: blur(18px) saturate(1.24);
}

.hero::before,
.preview-band::before,
.cta::before {
  filter: none !important;
  opacity: 0.34 !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 36%),
    radial-gradient(circle at 18% 12%, rgba(94, 234, 212, 0.12), transparent 34%),
    radial-gradient(circle at 78% 20%, rgba(139, 92, 246, 0.10), transparent 38%) !important;
}

.hero::after,
.preview-band::after,
.cta::after,
.hover-lift::after,
.preview-option::after {
  display: none !important;
}

.mini-card,
.feature-card,
.pipeline-card,
.workflow-card,
.compat-card,
.output-item,
.trust-note,
.faq-drop,
.preview-option,
.comparison-table td,
td[style*="background"],
div[style*="background:linear-gradient(180deg, #ffffff"],
div[style*="background:linear-gradient(135deg, #fafeff"],
div[style*="background:linear-gradient(135deg, #f8fff8"],
div[style*="background:linear-gradient(135deg, #fcfaff"],
div[style*="background:linear-gradient(135deg, #fffafc"],
div[style*="background:linear-gradient(135deg, #fffdf7"] {
  border-color: var(--lg-border) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.74) 45%, rgba(232, 244, 253, 0.88)),
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.92), transparent 36%),
    var(--lg-surface-deep) !important;
  box-shadow: var(--lg-shadow-rest) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.42) contrast(1.03);
  backdrop-filter: blur(20px) saturate(1.42) contrast(1.03);
  transition:
    transform 260ms var(--lg-ease),
    box-shadow 540ms var(--lg-ease),
    border-color 320ms ease,
    background 460ms ease,
    filter 320ms ease !important;
}

.mini-card.cyan,
.mini-card.green,
.mini-card.amber {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(240, 249, 255, 0.76) 48%, rgba(232, 244, 253, 0.88)),
    var(--lg-surface) !important;
}

.hover-lift:hover,
.section.band.hover-lift:hover,
.output-card.hover-lift:hover,
.content-shell:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--lg-shadow-hover-large) !important;
  filter: saturate(1.02) !important;
}

.mini-card.hover-lift:hover,
.feature-card.hover-lift:hover,
.pipeline-card.hover-lift:hover,
.workflow-card.hover-lift:hover,
.compat-card.hover-lift:hover,
.preview-option.hover-lift:hover,
.faq-drop:hover,
.output-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--lg-shadow-hover-small) !important;
}

.split-panel:hover,
.tech-list li:hover {
  transform: translateY(-1px) !important;
}

.preview-option {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.12) !important;
}

.faq-stack {
  gap: 14px !important;
}

.faq-drop {
  border-radius: 20px !important;
  overflow: hidden !important;
}

.faq-drop::before {
  filter: none !important;
  opacity: 0.40 !important;
}

.faq-drop summary {
  grid-template-columns: auto 1fr auto !important;
  gap: 16px !important;
  min-height: 76px !important;
  padding: 18px 20px !important;
}

.faq-title {
  display: block !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
}

.faq-category {
  display: inline-flex !important;
  width: max-content !important;
  margin-top: 7px !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(6, 182, 212, 0.16) !important;
  background: rgba(236, 254, 255, 0.72) !important;
  color: #0e7490 !important;
  font-size: 11px !important;
}

.faq-preview {
  display: none !important;
  margin: 0 20px 16px 70px !important;
  color: #607086 !important;
}

.faq-drop[open] .faq-preview {
  display: block !important;
}

.faq-answer {
  padding: 0 18px 18px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.faq-toggle {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 7px 14px rgba(15, 23, 42, 0.06) !important;
}

@media (max-width: 640px) {
  .faq-drop summary {
    grid-template-columns: auto 1fr !important;
  }

  .faq-toggle {
    grid-column: auto !important;
    width: 30px !important;
  }

  .faq-preview {
    margin-left: 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .band,
  .content-shell,
  .hover-lift,
  .mini-card,
  .feature-card,
  .pipeline-card,
  .workflow-card,
  .compat-card,
  .faq-drop {
    transition: none !important;
  }
}
