html { color-scheme: light; }
html.dark { color-scheme: dark; }

.orb-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(164, 247, 145, 0.4) 0%, rgba(247, 249, 252, 0) 70%);
  border-radius: 50%;
  top: -200px;
  left: -100px;
  z-index: -1;
  filter: blur(60px);
  animation: stitch-float 20s ease-in-out infinite alternate;
  pointer-events: none;
}
.orb-2 {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(226, 224, 252, 0.5) 0%, rgba(247, 249, 252, 0) 70%);
  border-radius: 50%;
  bottom: -300px;
  right: -200px;
  z-index: -1;
  filter: blur(80px);
  animation: stitch-float 25s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
@keyframes stitch-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 50px) scale(1.05); }
}
.glass-panel {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(26, 26, 46, 0.04);
}
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 26, 46, 0.08);
}
.soft-shadow {
  box-shadow: 0 10px 30px rgba(26, 26, 46, 0.04);
}
.folder-tab {
  clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
}
.bg-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(112, 122, 107, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(112, 122, 107, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bg-navy-gradient {
  background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4a 100%);
}
.bg-ambient-warm {
  background-image:
    radial-gradient(circle at 15% 50%, rgba(164, 247, 145, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(91, 169, 78, 0.1) 0%, transparent 50%);
}
.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.card-shadow {
  box-shadow: 0 10px 30px rgba(26, 26, 46, 0.04);
}
.orb-bg {
  background-image:
    radial-gradient(circle at 15% 50%, rgba(164, 247, 145, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(91, 169, 78, 0.1) 0%, transparent 50%);
}
.stitch-tf-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(260px, 52vw);
  object-fit: contain;
}
.stitch-tf-logo-light {
  display: block;
}
.stitch-tf-logo-dark {
  display: none;
}
html.dark .stitch-tf-logo-light {
  display: none;
}
html.dark .stitch-tf-logo-dark {
  display: block;
}
@media (min-width: 768px) {
  .stitch-tf-logo {
    height: 44px;
    max-width: 300px;
  }
}
.stitch-gradiante-logo {
  height: 32px;
  width: auto;
}
@media (min-width: 768px) {
  .stitch-gradiante-logo {
    height: 40px;
  }
}
.ss-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ss-brand-mark {
  font-size: 1.5rem;
  color: #1e6d19;
  font-variation-settings: "FILL" 1;
}
.ss-brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1e6d19;
  letter-spacing: -0.01em;
}

@keyframes ss-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.ss-fade-up {
  opacity: 0;
  animation: ss-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .ss-fade-up { animation: none; opacity: 1; }
}

/* ── Sticky site footer (bottom of viewport on short pages) ─────────── */
html {
  height: 100%;
}

body:has(> footer.stitch-footer),
body:has(> #footer-mount),
body.ss-sticky-footer {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body:has(> footer.stitch-footer) > main,
body:has(> #footer-mount) > main,
body:has(> #footer-mount) > #header-mount + main,
body.ss-sticky-footer > main,
body.ss-sticky-footer > .page-body {
  flex: 1 0 auto;
}

body:has(> #footer-mount) > .page-body {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

footer.stitch-footer,
#footer-mount {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
}

body.has-mobile-nav {
  padding-bottom: 4.5rem;
}

@media (min-width: 768px) {
  body.has-mobile-nav {
    padding-bottom: 0;
  }
}

body.ss-chat-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.ss-chat-page .chat-shell {
  flex: 1 1 auto;
  min-height: 0;
}

body.ss-chat-page footer.stitch-footer {
  margin-top: 0;
}
