/* Landing page styles (original, inspired by modern SaaS patterns) */
.landing-dance {
  --landing-text: #1f2933;
  --landing-muted: #4a5568;
  --landing-primary: #5c3dff;
  --landing-surface: #ffffff;
  --landing-surface-alt: #f8fafc;
  --landing-border: rgba(15, 23, 42, 0.08);
  --landing-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--landing-text);
  background: var(--landing-surface-alt);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  color: #111827;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 1000;
}
.landing-dance h1,
.landing-dance h2,
.landing-dance h3,
.landing-dance h4 {
  color: var(--landing-text);
  letter-spacing: -0.015em;
}
.landing-dance p,
.landing-dance li {
  color: var(--landing-muted);
}
.landing-dance section:not(.hero) {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}
.landing-dance .container {
  max-width: 1120px;
}
.landing-dance .btn {
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
}
.landing-dance .btn-primary {
  background: var(--landing-primary);
  border-color: var(--landing-primary);
  box-shadow: 0 14px 28px rgba(92, 61, 255, 0.2);
}
.landing-dance .btn-primary:hover,
.landing-dance .btn-primary:focus {
  background: #492de6;
  border-color: #492de6;
  box-shadow: 0 16px 32px rgba(73, 45, 230, 0.22);
}
.landing-dance .btn-secondary {
  color: var(--landing-primary);
  background: rgba(92, 61, 255, 0.1);
  border-color: transparent;
}
.landing-dance .btn-secondary:hover,
.landing-dance .btn-secondary:focus {
  color: var(--landing-primary);
  background: rgba(92, 61, 255, 0.15);
  border-color: rgba(92, 61, 255, 0.2);
}
.landing-dance .text-primary {
  color: var(--landing-primary) !important;
}
.landing-dance .badge,
.landing-dance .rounded-pill {
  letter-spacing: 0.08em;
}
.landing-dance .container > .row > div > p.lead {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.landing-header .brand { font-size: 1.125rem; color: var(--landing-text); }
.landing-header .logo-pill { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; background: rgba(0,0,0,0.75); box-sizing: border-box; padding:4px 2px 2px 2px; }
.landing-header .logo-icon { display:inline-block; width:100%; height:100%; object-fit:contain; filter: none !important; }

.landing-dance .hero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.75), rgba(255,255,255,0.92));
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.landing-dance .hero .hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/happyDancer.png') center/cover no-repeat;
  opacity: .35;
}

.landing-dance .hero .lead {
  color: var(--landing-muted) !important;
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.landing-dance .hero .small {
  font-weight: 600;
  color: var(--landing-muted);
}

.landing-dance .hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.landing-dance .hero .trusted-highlight {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--landing-border);
  border-radius: 18px;
  box-shadow: var(--landing-shadow);
  padding: 0.85rem 1.25rem;
}
.landing-dance .hero .trusted-highlight i {
  font-size: 1rem;
}
.landing-dance .hero .trusted-highlight .trusted-logo {
  filter: none !important;
  height: 40px;
  width: auto;
}
.landing-dance .hero .trusted-highlight .trusted-label {
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--landing-muted);
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .landing-dance .hero .trusted-highlight { padding: 1rem 1.5rem; border-radius: 24px; }
  .landing-dance .hero .trusted-highlight .trusted-label { font-size: .75rem; }
  .landing-dance .hero .trusted-highlight .trusted-logo { height: 48px; }
}
@media (max-width: 767px) {
  .landing-dance .hero .trusted-highlight { gap: .4rem; }
}

.landing-dance .feature-jobs .rounded-4 {
  border: 1px solid var(--landing-border);
}
.landing-dance .feature-jobs .rounded-4 {
  transition: transform .25s ease, box-shadow .25s ease;
}
.landing-dance .feature-jobs .rounded-4:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
}
.landing-dance .feature-jobs ul li i {
  flex: 0 0 auto;
}
.landing-dance .feature-jobs ul li span {
  flex: 1;
}
.landing-dance .trusted-by { display:flex; align-items:center; justify-content:center; gap:.75rem; opacity:.98; flex-wrap:wrap; }
.landing-dance .trusted-by .trusted-label { white-space: nowrap; }
.landing-dance .trusted-by .trusted-logo { height: 32px; width: auto; object-fit: contain; filter: none; display:inline-block; }
.landing-dance .trusted-by .trusted-logo.no-filter { filter: none !important; }
@media (min-width: 768px) {
  .landing-dance .trusted-by .trusted-logo { height: 40px; }
}
.landing-dance .trusted-fallback { padding:.25rem .5rem; background: rgba(0,0,0,.04); border-radius:.375rem; }
.landing-dance .hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
}

/* Trusted section (below hero) */
.landing-dance .trusted-section { background: #fff; }
.landing-dance .trusted-chip { background: rgba(255,255,255,0.96); border: 1px solid var(--landing-border); border-radius: 9999px; padding: .35rem .9rem; display: inline-flex; align-items: center; gap: .5rem; box-shadow: 0 10px 28px rgba(15,23,42,0.07); }
@media (max-width: 767px) {
  .landing-dance .trusted-by .trusted-logo { height: 28px; }
}

.landing-dance .features { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 768px) {
  .landing-dance .features { padding-top: 4rem; padding-bottom: 4rem; }
}

.landing-dance .cta { background: var(--landing-surface); }
.landing-dance .problem .border {
  border: 1px solid var(--landing-border);
  background: var(--landing-surface);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}
.landing-footer {
  border-top: 1px solid var(--landing-border);
}
.landing-footer a {
  color: inherit;
}
.landing-footer a:hover {
  color: var(--landing-primary);
}

/* Utilities */
.py-md-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-lg-7 { padding-top: 6rem !important; padding-bottom: 6rem !important; }

/* Product visual */
.product-hero {
  max-height: 420px;
  object-fit: contain;
  aspect-ratio: 9/16;
  width: 100%;
  height: auto;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent;
}

/* FAQ details */
.landing-dance .faq-item { border: 1px solid var(--landing-border); border-radius: .75rem; padding: 1rem 1.25rem; margin-bottom: 1rem; background: var(--landing-surface); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); }
.landing-dance .faq-item summary { cursor: pointer; font-weight: 600; }

/* Anchor scroll ergonomics */
#pricing { scroll-margin-top: 80px; }

/* Improve visibility for light logos on white */
.landing-header .logo-icon { filter: drop-shadow(0 0 2px rgba(0,0,0,.35)); }
/* Smooth in-page anchor scrolling for this landing */
html { scroll-behavior: smooth; }

/* Never show in-app onboarding UI on landing pages */
.landing-dance .onboarding-minimized,
.landing-dance .onboarding-overlay,
.landing-dance .onboarding-checklist {
  display: none !important;
}

/* Fix Firefox mobile scrolling issues */
@supports (-moz-appearance: none) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
    position: relative;
  }
  .landing-dance {
    /* Ensure landing can scroll independently even if body is locked */
    overflow: visible;
    min-height: 100vh;
    height: auto;
  }
  /* Ensure sticky CTA doesn't block scrolling in Firefox mobile */
  @media (max-width: 767px) {
    .landing-dance .sticky-cta {
      position: fixed;
      pointer-events: auto;
    }
    body {
      touch-action: pan-y;
    }
    /* Make the landing wrapper the scroll container on Firefox mobile */
    .landing-dance {
      height: 100vh;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      contain: layout paint;
    }
  }
}

/* General mobile scrolling safeguards (covers Firefox on iOS/WebKit too) */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto;
    min-height: 100%;
    -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
    touch-action: pan-y; /* allow vertical panning */
  }
  .landing-dance {
    /* On small screens, prefer container scrolling to avoid global locks */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    min-height: 100dvh;
    height: 100dvh;
  }
}

  /* Mobile-first spacing improvements */
@media (max-width: 767px) {
  /* Ensure full logo visibility on narrow devices */
  .landing-header .logo-pill { width:40px; height:40px; padding:2px; display: flex; align-items: center; justify-content: center; }
  .landing-header .logo-icon { width:90%; height:90%; object-fit: contain; object-position: center; }
  /* Increase vertical breathing room on mobile */
  .landing-dance .hero { min-height: 50vh; }
  .landing-dance .hero h1 { font-size: 1.75rem; line-height: 1.3; }
  .landing-dance .hero .lead { font-size: 1rem; }

  /* Add more space between sections */
  .landing-dance section { padding-top: clamp(2.75rem, 8vw, 3.5rem) !important; padding-bottom: clamp(2.75rem, 8vw, 3.5rem) !important; }

  /* Compact feature cards on mobile */
  .landing-dance .benefits .border { padding: 1.25rem !important; }

  /* Increase line-height for better readability */
  .landing-dance p { line-height: 1.65; }

  /* Add spacing around content images without affecting header logo */
  .landing-dance section img { margin-top: 1.5rem; }

  /* More space around buttons */
  .landing-dance .btn { padding: 0.75rem 1.5rem; font-size: 1rem; }

  /* Give problem cards breathing room */
  .landing-dance .problem .border { margin-bottom: 0.75rem; }
}

/* Fine-tune for narrow devices so hero stays above the fold with trust chip */
@media (max-width: 340px) {
  .landing-dance .hero { min-height: 44vh; }
  .landing-dance .hero .lead { margin-bottom: .75rem !important; }
  .landing-dance .trusted-chip { padding: .2rem .4rem; }
  .landing-dance .trusted-by .trusted-logo { height: 22px; }
  .landing-dance .trusted-by .trusted-label { font-size: .75rem; }
  /* Reduce vertical padding applied by utility classes inside hero row */
  .landing-dance .hero .row { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
}

@media (min-width: 341px) and (max-width: 374px) {
  .landing-dance .hero { min-height: 46vh; }
  .landing-dance .hero .row { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .landing-dance .trusted-by .trusted-logo { height: 24px; }
}

@media (min-width: 375px) and (max-width: 400px) {
  .landing-dance .trusted-by .trusted-logo { height: 26px; }
}

@media (min-width: 401px) and (max-width: 767px) {
  .landing-dance .trusted-by .trusted-logo { height: 28px; }
}

/* Align mobile dashboard bullets cleanly */
.landing-dance .dashboard-bullets li { display:flex; align-items:flex-start; gap:.5rem; }
.landing-dance .dashboard-bullets li i.bi { margin-top: .2rem !important; line-height: 1; flex: 0 0 auto; }
.landing-dance .dashboard-bullets li span { line-height: 1.4; display:block; }

/* Sticky CTA (mobile) */
.landing-dance .sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1040;
  background: #fff;
  border-top: 1px solid var(--border, rgba(0,0,0,0.1));
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  transform: translateY(0);
  transition: transform .2s ease-in-out;
  display: none;
}
.landing-dance .sticky-cta.hidden { transform: translateY(110%); }
@media (max-width: 767px) {
  .landing-dance .sticky-cta { display: block; }
  /* Prevent content being hidden under the sticky bar */
  .landing-dance { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
