/**
 * SaaS SEO Services page-only extras.
 * Loaded only via seo.extra_css — scoped so other pages are unaffected.
 */
html body.page-saasseo.page-service .saasseo-theme-page.theme-html-root {
  /* namespace hook */
}

html body.page-saasseo.page-service .saasseo-theme-page .sec-paper,
html body.page-saasseo.page-service .saasseo-theme-page .sec-mist,
html body.page-saasseo.page-service .saasseo-theme-page .sec-ink {
  position: relative;
}

html body.page-saasseo.page-service .hero-eyebrow { display: none !important; }

/* Match on-page: breadcrumb→H1 gap + space under trust badges */
html body.page-saasseo.page-service .hero {
  min-height: 0 !important;
  padding-top: calc(84px + 24px) !important;
  padding-bottom: clamp(64px, 8.5vh, 112px) !important;
  align-items: flex-start !important;
}
html body.page-saasseo.page-service .hero .breadcrumb,
html body.page-saasseo.page-service .hero .crumbs,
html body.page-saasseo.page-theme-html .hero .breadcrumb {
  margin: 0 0 clamp(36px, 4vw, 52px) !important;
  padding-bottom: 0 !important;
}
html body.page-saasseo.page-service .hero h1,
html body.page-saasseo.page-theme-html .hero h1 {
  margin: 0 0 18px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
html body.page-saasseo.page-service .hero .lede,
html body.page-saasseo.page-service .hero p.sub,
html body.page-saasseo.page-service .hero .hero-sub {
  margin: 0 0 28px !important;
}
html body.page-saasseo.page-service .hero .hero-actions,
html body.page-saasseo.page-service .hero .hero-cta {
  margin: 0 0 clamp(28px, 3.5vw, 44px) !important;
}
html body.page-saasseo.page-service .hero-badges.hero-trust,
html body.page-saasseo.page-service .hero-trust.hero-badges,
html body.page-saasseo.page-service .hero .hero-badges,
html body.page-saasseo.page-service .hero .hero-trust,
html body.page-saasseo.page-service .hero .hero-badges.hero-trust {
  margin-top: clamp(40px, 4.5vw, 64px) !important;
  margin-bottom: clamp(36px, 5vw, 64px) !important;
  padding-top: clamp(26px, 3vw, 36px) !important;
}
@media (max-width: 900px) {
  html body.page-saasseo.page-service .hero {
    padding-top: calc(64px + 16px) !important;
    padding-bottom: clamp(52px, 7.5vh, 80px) !important;
  }
  html body.page-saasseo.page-service .hero .lede,
  html body.page-saasseo.page-service .hero p.sub {
    margin: 0 0 24px !important;
  }
}
@media (max-width: 680px) {
  html body.page-saasseo.page-service .hero {
    padding-bottom: clamp(48px, 7vh, 68px) !important;
  }
}

/* Desktop: hero fills the screen like monthly SEO; services are 3 cards per row */
@media (min-width: 981px) {
  html body.page-saasseo.page-service .hero {
    box-sizing: border-box !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    align-items: flex-start !important;
  }
  html body.page-saasseo.page-service .hero > .wrap > .hero-copy {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  html body.page-saasseo.page-service .hero .hero-actions,
  html body.page-saasseo.page-service .hero .hero-cta {
    margin-bottom: 0 !important;
  }
  html body.page-saasseo.page-service .hero .hero-badges,
  html body.page-saasseo.page-service .hero .hero-trust,
  html body.page-saasseo.page-service .hero .hero-badges.hero-trust {
    margin-top: clamp(72px, 9vh, 112px) !important;
    padding-top: 22px !important;
  }
  html body.page-saasseo.page-service .hero .hero-bg,
  html body.page-saasseo.page-service .hero .hero-veil {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  html body.page-saasseo.page-service .saasseo-theme-page #services .why-mobile-carousel:has(> .svc-grid) {
    display: contents !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #services .svc-grid,
  html body.page-saasseo.page-service .saasseo-theme-page #services .svc-grid[data-thm-carousel],
  html body.page-saasseo.page-service .saasseo-theme-page #services .why-mobile-carousel > .svc-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 22px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    flex-wrap: unset !important;
    scroll-snap-type: none !important;
    transform: none !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #services .svc-grid > .svc,
  html body.page-saasseo.page-service .saasseo-theme-page #services .svc-grid > .svc-card,
  html body.page-saasseo.page-service .saasseo-theme-page #services .why-mobile-carousel > .svc-grid > * {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    scroll-snap-align: unset !important;
    margin: 0 !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #services .thm-carousel-dots,
  html body.page-saasseo.page-service .saasseo-theme-page #services .thm-carousel-nav-wrap,
  html body.page-saasseo.page-service .saasseo-theme-page #services .wrap > .testi-dots.thm-carousel-dots {
    display: none !important;
  }
}

html body.page-saasseo.page-service #contact .contact-side .compare-list .mark.v {
  color: var(--graphite, #0d2029) !important;
}

/* FAQ heading: centered like other service pages */
html body.page-saasseo.page-service .saasseo-theme-page #faq .shead,
html body.page-saasseo.page-service .saasseo-theme-page.webdev-ref #faq .shead {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  max-width: 820px !important;
}
html body.page-saasseo.page-service .saasseo-theme-page #faq .shead .eyebrow,
html body.page-saasseo.page-service .saasseo-theme-page #faq .shead h2 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Force reveal nodes visible (theme .rv starts at opacity:0) */
html body.page-saasseo.page-service .saasseo-theme-page .rv,
html body.page-saasseo.page-service .saasseo-theme-page .reveal,
html body.page-saasseo.page-service .saasseo-theme-page .rev,
html body.page-saasseo.page-service .saasseo-theme-page .fade-up {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Card faces stay opaque / readable inside sticky stacks */
html body.page-saasseo.page-service .saasseo-theme-page .svc-stack-item > .pain,
html body.page-saasseo.page-service .saasseo-theme-page .svc-stack-item > .pain-card,
html body.page-saasseo.page-service .saasseo-theme-page .svc-stack-item > .svc,
html body.page-saasseo.page-service .saasseo-theme-page .svc-stack-item > .svc-card,
html body.page-saasseo.page-service .saasseo-theme-page .svc-stack-item > .proc-step,
html body.page-saasseo.page-service .saasseo-theme-page .svc-stack-item > .step,
html body.page-saasseo.page-service .saasseo-theme-page .svc-stack-item > .loop-card,
html body.page-saasseo.page-service .saasseo-theme-page .svc-stack-item > .tst,
html body.page-saasseo.page-service .saasseo-theme-page .svc-stack-item > .tst-card {
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Process: sticky swipe-up stack faces */
html body.page-saasseo.page-service .saasseo-theme-page #process .proc-grid,
html body.page-saasseo.page-service .saasseo-theme-page #process .proc-grid.page-svc-stack,
html body.page-saasseo.page-service .saasseo-theme-page #process [data-thm-stack] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
html body.page-saasseo.page-service .saasseo-theme-page #process .step,
html body.page-saasseo.page-service .saasseo-theme-page .proc-grid .step,
html body.page-saasseo.page-service .saasseo-theme-page #process .svc-stack-item > .step {
  background: #fff !important;
  border: 1px solid var(--line, #e1e9e5) !important;
  border-top: 3px solid var(--signal, #f47a1f) !important;
  border-radius: 18px !important;
  box-shadow: 0 1px 2px rgba(13, 32, 41, 0.04), 0 10px 28px -16px rgba(13, 32, 41, 0.16) !important;
  padding: 24px 20px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  color: var(--graphite, #0d2029) !important;
  isolation: isolate;
  overflow: hidden !important;
}
html body.page-saasseo.page-service .saasseo-theme-page #process .step h4,
html body.page-saasseo.page-service .saasseo-theme-page .proc-grid .step h4 {
  color: var(--graphite, #0d2029) !important;
}
html body.page-saasseo.page-service .saasseo-theme-page #process .step p,
html body.page-saasseo.page-service .saasseo-theme-page .proc-grid .step p {
  color: var(--slate, #4b5b62) !important;
}
html body.page-saasseo.page-service .saasseo-theme-page #process .svc-stack-item {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* #pain cards: desktop grid; mobile swipe-up sticky stack */
@media (min-width: 901px) {
  html body.page-saasseo.page-service .saasseo-theme-page #pain .pain-grid,
  html body.page-saasseo.page-service .saasseo-theme-page .pain-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
    overflow: visible !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    scroll-snap-type: none !important;
    touch-action: auto !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #pain .pain-grid.page-svc-stack > .svc-stack-item,
  html body.page-saasseo.page-service .saasseo-theme-page #pain .pain-grid[data-thm-stack] > .svc-stack-item {
    position: relative !important;
    top: auto !important;
    margin: 0 !important;
    transform: none !important;
    height: 100% !important;
  }
}
@media (min-width: 901px) and (max-width: 1080px) {
  html body.page-saasseo.page-service .saasseo-theme-page #pain .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  html body.page-saasseo.page-service .saasseo-theme-page section#pain,
  html body.page-saasseo.page-service .saasseo-theme-page section#pain.has-page-svc-stack {
    overflow-x: clip !important;
    overflow-y: visible !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #pain .wrap,
  html body.page-saasseo.page-service .saasseo-theme-page section#pain.has-page-svc-stack > .wrap {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #pain .why-mobile-carousel:has(> .pain-grid) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    touch-action: auto !important;
    scroll-snap-type: none !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #pain .pain-grid[data-thm-stack],
  html body.page-saasseo.page-service .saasseo-theme-page #pain .pain-grid.page-svc-stack,
  html body.page-saasseo.page-service .saasseo-theme-page .pain-grid[data-thm-stack],
  html body.page-saasseo.page-service .saasseo-theme-page .pain-grid.page-svc-stack {
    display: block !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 0 !important;
    overflow: visible !important;
    transform: none !important;
    filter: none !important;
    contain: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    scroll-snap-type: none !important;
    touch-action: auto !important;
    height: auto !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #pain .pain-grid .svc-stack-item,
  html body.page-saasseo.page-service .saasseo-theme-page #pain .pain-grid[data-thm-stack] > *,
  html body.page-saasseo.page-service .saasseo-theme-page #pain .pain-grid.page-svc-stack > * {
    position: sticky !important;
    top: calc(var(--svc-stack-nav, 68px) + (var(--index0, 0) * var(--svc-stack-peek, 14px))) !important;
    z-index: calc(1 + var(--index0, 0)) !important;
    display: block !important;
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 0 var(--svc-stack-gap, 20px) !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    scroll-snap-align: unset !important;
    box-sizing: border-box !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #pain .pain-grid .svc-stack-item:last-child {
    margin-bottom: 0 !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #pain .pain-grid .svc-stack-item > .pain,
  html body.page-saasseo.page-service .saasseo-theme-page #pain .pain-grid .svc-stack-item > .pain-card,
  html body.page-saasseo.page-service .saasseo-theme-page #pain .pain-grid[data-thm-stack] .pain {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 160px !important;
    margin: 0 !important;
    flex: none !important;
    opacity: 1 !important;
    transform: none !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #pain .pain-grid .svc-stack-item > *:hover {
    transform: none !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #pain .thm-carousel-dots,
  html body.page-saasseo.page-service .saasseo-theme-page #pain .thm-carousel-nav-wrap,
  html body.page-saasseo.page-service .saasseo-theme-page #pain .wrap > .testi-dots.thm-carousel-dots {
    display: none !important;
  }
}

@media (max-width: 980px) {
  /* Services + testimonials: horizontal carousel (pain uses swipe-up stack) */
  html body.page-saasseo.page-service .saasseo-theme-page #services .svc-grid.thm-mobile-carousel[data-thm-carousel],
  html body.page-saasseo.page-service .saasseo-theme-page .tst-grid.thm-mobile-carousel[data-thm-carousel] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    padding: 0 2px 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    overscroll-behavior-x: contain !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #services .svc-grid.thm-mobile-carousel[data-thm-carousel]::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #services .svc-grid.thm-mobile-carousel[data-thm-carousel] > *,
  html body.page-saasseo.page-service .saasseo-theme-page .tst-grid.thm-mobile-carousel[data-thm-carousel] > * {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    overflow-wrap: anywhere !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page .wrap > .testi-dots.thm-carousel-dots {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }

  /* Process sticky stack: one full-width card face */
  html body.page-saasseo.page-service .saasseo-theme-page #process .proc-grid.page-svc-stack,
  html body.page-saasseo.page-service .saasseo-theme-page #process .proc-grid[data-thm-stack] {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #process .svc-stack-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 767px) {
  html body.page-saasseo.page-service .saasseo-theme-page {
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page .wrap {
    max-width: var(--maxw) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--pad) !important;
    padding-right: var(--pad) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page section {
    overflow-x: clip !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page .pain-grid:not([data-thm-carousel]):not(.thm-mobile-carousel):not(.page-svc-stack):not([data-thm-stack]),
  html body.page-saasseo.page-service .saasseo-theme-page .svc-grid:not([data-thm-carousel]):not(.thm-mobile-carousel):not(.page-svc-stack),
  html body.page-saasseo.page-service .saasseo-theme-page .serv-grid:not([data-thm-carousel]):not(.thm-mobile-carousel),
  html body.page-saasseo.page-service .saasseo-theme-page .proc-grid:not([data-thm-stack]):not(.page-svc-stack):not([data-thm-carousel]),
  html body.page-saasseo.page-service .saasseo-theme-page .proc:not([data-thm-stack]):not(.page-svc-stack):not([data-thm-carousel]),
  html body.page-saasseo.page-service .saasseo-theme-page .loop-grid:not([data-thm-carousel]):not(.thm-mobile-carousel),
  html body.page-saasseo.page-service .saasseo-theme-page .tst-grid:not([data-thm-carousel]):not(.thm-mobile-carousel),
  html body.page-saasseo.page-service .saasseo-theme-page .test-grid:not([data-thm-carousel]):not(.thm-mobile-carousel),
  html body.page-saasseo.page-service .saasseo-theme-page .feature-grid:not([data-thm-carousel]):not(.thm-mobile-carousel),
  html body.page-saasseo.page-service .saasseo-theme-page .why-grid:not([data-thm-carousel]):not(.thm-mobile-carousel),
  html body.page-saasseo.page-service .saasseo-theme-page .industry-grid:not([data-thm-carousel]):not(.thm-mobile-carousel),
  html body.page-saasseo.page-service .saasseo-theme-page .ind-grid:not([data-thm-carousel]):not(.thm-mobile-carousel) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 14px !important;
    box-sizing: border-box !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page .pain,
  html body.page-saasseo.page-service .saasseo-theme-page .pain-card,
  html body.page-saasseo.page-service .saasseo-theme-page .svc,
  html body.page-saasseo.page-service .saasseo-theme-page .svc-card,
  html body.page-saasseo.page-service .saasseo-theme-page .serv-card,
  html body.page-saasseo.page-service .saasseo-theme-page .proc-step,
  html body.page-saasseo.page-service .saasseo-theme-page .proc-card,
  html body.page-saasseo.page-service .saasseo-theme-page .step,
  html body.page-saasseo.page-service .saasseo-theme-page .loop-card,
  html body.page-saasseo.page-service .saasseo-theme-page .tst,
  html body.page-saasseo.page-service .saasseo-theme-page .tst-card,
  html body.page-saasseo.page-service .saasseo-theme-page .test-card,
  html body.page-saasseo.page-service .saasseo-theme-page .feat,
  html body.page-saasseo.page-service .saasseo-theme-page .feat-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
  }
}

/* #results photo: theme HTML set this via JS on #statsBg; that script is stripped on import */
html body.page-saasseo.page-service .saasseo-theme-page #results.stats-sec {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
}
html body.page-saasseo.page-service .saasseo-theme-page #results .stats-bg,
html body.page-saasseo.page-service .saasseo-theme-page #results #statsBg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background-image: url("../media/services/saas-seo/saas-seo-services-content-clusters-serp-ai-visibility-recurring-revenue-growth.jpg") !important;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  opacity: 0.9 !important;
  pointer-events: none;
}
html body.page-saasseo.page-service .saasseo-theme-page #results .stats-veil {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none;
  background:
    radial-gradient(90% 120% at 82% 28%, rgba(244, 122, 31, 0.12), transparent 55%),
    linear-gradient(90deg, var(--ink, #0a1a22) 0%, rgba(10, 26, 34, 0.88) 28%, rgba(10, 26, 34, 0.62) 58%, rgba(10, 26, 34, 0.32) 100%) !important;
}
html body.page-saasseo.page-service .saasseo-theme-page #results .wrap {
  position: relative !important;
  z-index: 2 !important;
}
@media (max-width: 860px) {
  html body.page-saasseo.page-service .saasseo-theme-page #results .stats-bg,
  html body.page-saasseo.page-service .saasseo-theme-page #results #statsBg {
    opacity: 0.5 !important;
    background-position: center !important;
  }
  html body.page-saasseo.page-service .saasseo-theme-page #results .stats-veil {
    background: linear-gradient(180deg, rgba(10, 26, 34, 0.72), rgba(10, 26, 34, 0.82)) !important;
  }
}
