/**
 * AI Chatbot Development Services page-only extras.
 * Loaded only via seo.extra_css — scoped so other pages are unaffected.
 */
body.page-aibot .aibot-theme-page.theme-html-root {
  /* namespace hook */
}

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

body.page-aibot .hero-eyebrow {
  display: none !important;
}

body.page-aibot .hero-badges.hero-trust,
body.page-aibot .hero-trust.hero-badges {
  margin-top: 1.25rem;
}

/* ─── Hero: light breathing room ─── */
html body.page-aibot.page-service .hero,
html body.page-aibot.page-service section.hero {
  padding-top: 72px !important;
  padding-bottom: clamp(24px, 3vw, 40px) !important;
}

html body.page-aibot.page-service .hero > .wrap,
html body.page-aibot.page-service .hero > .hero-in,
html body.page-aibot.page-service .hero > .container {
  padding-top: 8px !important;
  padding-bottom: clamp(12px, 2vw, 24px) !important;
}

html body.page-aibot.page-service .hero .hero-copy,
html body.page-aibot.page-service .hero .hero-inner {
  padding-top: 8px !important;
  padding-bottom: clamp(14px, 2vw, 28px) !important;
  margin-top: 0 !important;
}

html body.page-aibot.page-service .hero h1 {
  margin-top: 0.2em !important;
  margin-bottom: 0.45em !important;
  line-height: 1.12 !important;
}

html body.page-aibot.page-service .hero .lede,
html body.page-aibot.page-service .hero p.sub,
html body.page-aibot.page-service .hero .hero-sub {
  margin-top: 0 !important;
  margin-bottom: clamp(18px, 2.4vw, 28px) !important;
  line-height: 1.55 !important;
}

html body.page-aibot.page-service .hero-actions,
html body.page-aibot.page-service .hero-ctas {
  margin-top: 0 !important;
  margin-bottom: clamp(12px, 1.8vw, 20px) !important;
}

@media (max-width: 900px) {
  html body.page-aibot.page-service .hero,
  html body.page-aibot.page-service section.hero {
    padding-top: 72px !important;
    padding-bottom: 24px !important;
  }

  html body.page-aibot.page-service .hero > .wrap,
  html body.page-aibot.page-service .hero > .hero-in,
  html body.page-aibot.page-service .hero > .container {
    padding-top: 6px !important;
  }

  html body.page-aibot.page-service .hero .hero-copy,
  html body.page-aibot.page-service .hero .hero-inner {
    padding-top: 6px !important;
    padding-bottom: 14px !important;
  }
}

/* Cards on the dark #services band */
html body.page-aibot.page-service .aibot-theme-page #services .svc,
html body.page-aibot.page-service .aibot-theme-page #services .svc-grid .svc {
  background: var(--ink-2, #0f2a33) !important;
  background-color: var(--ink-2, #0f2a33) !important;
  color: #9fb6be !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html body.page-aibot.page-service .aibot-theme-page #services .svc h3,
html body.page-aibot.page-service .aibot-theme-page #services .svc h4 {
  color: #fff !important;
}

html body.page-aibot.page-service .aibot-theme-page #services .svc p,
html body.page-aibot.page-service .aibot-theme-page #services .svc li {
  color: #9fb6be !important;
}

html body.page-aibot.page-service .aibot-theme-page #services .svc p .o,
html body.page-aibot.page-service .aibot-theme-page #services .svc .o,
html body.page-aibot.page-service .aibot-theme-page #services .svc a.tlink {
  color: var(--signal, #f47a1f) !important;
  font-weight: 650 !important;
}

html body.page-aibot.page-service .aibot-theme-page #services .svc .svc-ico {
  background: #061018 !important;
  background-color: #061018 !important;
  color: var(--signal, #f47a1f) !important;
}

html body.page-aibot.page-service .aibot-theme-page #services .svc .svc-ico svg {
  stroke: var(--signal, #f47a1f) !important;
}

html body.page-aibot.page-service .aibot-theme-page #services .svc:hover .svc-ico {
  background: var(--signal, #f47a1f) !important;
  background-color: var(--signal, #f47a1f) !important;
  color: var(--signal-ink, #0a1a22) !important;
}

html body.page-aibot.page-service .aibot-theme-page #services .svc:hover .svc-ico svg {
  stroke: var(--signal-ink, #0a1a22) !important;
}

/* ─── #services: mobile swipe-up sticky stack ─── */
@media (max-width: 900px) {
  html body.page-aibot.page-service .aibot-theme-page section#services,
  html body.page-aibot.page-service .aibot-theme-page section#services.has-page-svc-stack {
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #services .wrap {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #services .svc-grid.page-svc-stack,
  html body.page-aibot.page-service .aibot-theme-page #services .svc-grid[data-thm-stack] {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #services .svc-grid.page-svc-stack > .svc-stack-item {
    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;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 var(--svc-stack-gap, 18px) !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #services .svc-grid.page-svc-stack > .svc-stack-item:last-child {
    margin-bottom: 0 !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #services .svc-grid.page-svc-stack .svc,
  html body.page-aibot.page-service .aibot-theme-page #services .svc-grid.page-svc-stack .svc-stack-item > .svc,
  html body.page-aibot.page-service .aibot-theme-page #services .svc-grid[data-thm-stack] .svc {
    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;
    padding: 22px 18px 24px !important;
    box-sizing: border-box !important;
    background: var(--ink-2, #0f2a33) !important;
    background-color: var(--ink-2, #0f2a33) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px !important;
    box-shadow:
      0 1px 2px rgba(13, 32, 41, 0.05),
      0 14px 32px -16px rgba(13, 32, 41, 0.22) !important;
    opacity: 1 !important;
    transform: none !important;
    overflow: hidden !important;
    isolation: isolate;
    color: #9fb6be !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #services .svc h3 {
    color: #fff !important;
    font-size: 1.08rem !important;
    line-height: 1.3 !important;
    margin: 16px 0 8px !important;
    padding-right: 36px !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #services .svc p {
    color: #9fb6be !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    margin: 0 0 14px !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #services .svc .svc-ico {
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #services .svc .svc-badge {
    top: 18px !important;
    right: 18px !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #services .svc a.tlink {
    margin-top: auto !important;
  }
}

@media (min-width: 901px) {
  html body.page-aibot.page-service .aibot-theme-page #services .svc-grid.page-svc-stack,
  html body.page-aibot.page-service .aibot-theme-page #services .svc-grid[data-thm-stack] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #services .svc-grid.page-svc-stack > .svc-stack-item {
    position: relative !important;
    top: auto !important;
    margin: 0 !important;
    transform: none !important;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  html body.page-aibot.page-service .aibot-theme-page #services .svc-grid.page-svc-stack,
  html body.page-aibot.page-service .aibot-theme-page #services .svc-grid[data-thm-stack] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ─── #why: fix broken carousel card widths on mobile/tablet ─── */
@media (max-width: 980px) {
  html body.page-aibot.page-service .aibot-theme-page #why .wrap {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #why .why-mobile-carousel {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !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;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #why .why-mobile-carousel::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #why .why-grid,
  html body.page-aibot.page-service .aibot-theme-page #why .why-grid.thm-mobile-carousel,
  html body.page-aibot.page-service .aibot-theme-page #why .why-mobile-carousel > .why-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: max-content !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 2px 6px !important;
    overflow: visible !important;
    grid-template-columns: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* vw-based widths — avoid % of max-content (blows to 6000px+) */
  html body.page-aibot.page-service .aibot-theme-page #why .why-grid > .why,
  html body.page-aibot.page-service .aibot-theme-page #why .why-grid > * {
    flex: 0 0 min(340px, calc(100vw - 48px)) !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: min(340px, calc(100vw - 48px)) !important;
    min-width: min(340px, calc(100vw - 48px)) !important;
    max-width: min(340px, calc(100vw - 48px)) !important;
    height: auto !important;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #why .why h3,
  html body.page-aibot.page-service .aibot-theme-page #why .why p {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #why .thm-carousel-nav-wrap {
    display: none !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #why .testi-dots.thm-carousel-dots,
  html body.page-aibot.page-service .aibot-theme-page #why .wrap > .testi-dots.thm-carousel-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0 !important;
  }
}

/* #process: equal cards. 3 across under 1200px so five steps don't leave a lone wide card. */
html body.page-aibot.page-service .aibot-theme-page #process .pstep {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-sizing: border-box !important;
  background: #fff !important;
  border: 1px solid var(--line, #e1e9e5) !important;
  border-top: 3px solid var(--signal, #f47a1f) !important;
  border-radius: 16px !important;
  padding: 26px 22px !important;
  box-shadow: 0 1px 2px rgba(13, 32, 41, 0.05) !important;
}

html body.page-aibot.page-service .aibot-theme-page #process .pstep .pn {
  background: var(--ink, #0a1a22) !important;
  color: var(--signal, #f47a1f) !important;
}

html body.page-aibot.page-service .aibot-theme-page #process .pstep h4 {
  color: var(--graphite, #0d2029) !important;
}

html body.page-aibot.page-service .aibot-theme-page #process .pstep p {
  color: var(--slate, #4b5b62) !important;
  margin: 0 !important;
}

@media (min-width: 901px) {
  html body.page-aibot.page-service .aibot-theme-page #process .proc {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    align-items: stretch !important;
  }
}

@media (min-width: 1200px) {
  html body.page-aibot.page-service .aibot-theme-page #process .proc {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  html body.page-aibot.page-service .aibot-theme-page #process .proc.page-svc-stack {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #process .proc.page-svc-stack > .svc-stack-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #process .pstep {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* #problem: dots sit under the cards and the list itself scrolls. */
@media (max-width: 980px) {
  html body.page-aibot.page-service .aibot-theme-page #problem .why-mobile-carousel:has(> .prob-list) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #problem .prob-list.thm-mobile-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;
    margin-top: 22px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #problem .prob-list.thm-mobile-carousel::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #problem .prob-list.thm-mobile-carousel > .prob-item {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #problem .why-mobile-carousel + .testi-dots.thm-carousel-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 16px 0 8px !important;
    position: static !important;
  }

  html body.page-aibot.page-service .aibot-theme-page #problem .testi-dot.is-active {
    background: var(--signal, #f47a1f) !important;
  }
}
