/* GoTek mobile release overrides.
 * Loaded after the shared navigation/header styles to keep the final responsive
 * geometry deterministic across WordPress pages and both locales.
 */

@media (max-width: 820px) {
  .chat-gotek {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    width: 48px !important;
    height: 48px !important;
  }
  .chat-gotek-launcher {
    grid-template-columns: 1fr !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 5px !important;
    border-radius: 14px !important;
  }
  .chat-gotek-launcher-logo {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }
  .chat-gotek-launcher-logo img { width: 25px !important; height: auto !important; }
  .chat-gotek-launcher-copy,
  .chat-gotek-ai-tag { display: none !important; }

  body.home .hero-sequence-status {
    left: 14px !important;
    right: 74px !important;
    bottom: 14px !important;
    width: auto !important;
    min-width: 0 !important;
    grid-template-columns: auto minmax(28px, 1fr) auto !important;
    gap: 7px !important;
    padding: 7px 9px !important;
  }
  body.home .hero-sequence-status > small {
    min-width: 0 !important;
    max-width: 132px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 8.5px !important;
    letter-spacing: .04em !important;
  }

  body.home .global-process {
    padding-inline: 0 !important;
    overflow: hidden !important;
  }
  body.home .global-process__shell {
    box-sizing: border-box !important;
    width: calc(100% - 28px) !important;
    min-width: 0 !important;
    padding-inline: 0 !important;
    margin-inline: auto !important;
  }
  body.home .global-process__layout {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.home .global-process__visual {
    width: min(330px, 100%) !important;
    max-width: 100% !important;
  }
  body.home .global-process__step,
  body.home .global-process__step:hover {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    padding: 18px 0 !important;
    transform: none !important;
  }
  body.home .global-process__step-head > span::after { width: 22px !important; }
  body.home .global-process__step h3 {
    min-width: 0 !important;
    margin-bottom: 7px !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  body.home .global-process__step p {
    min-width: 0 !important;
    max-width: none !important;
    font-size: 12px !important;
    line-height: 1.58 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body.home .metaads-feature-shell {
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    padding: 30px 16px !important;
    overflow: hidden !important;
  }
  body.home .metaads-feature-list,
  body.home .metaads-feature-row,
  body.home .metaads-feature-category,
  body.home .metaads-feature-row > ul,
  body.home .metaads-feature-row > ul > li {
    width: 100% !important;
    min-width: 0 !important;
  }
  body.home .metaads-feature-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 17px !important;
    overflow: hidden !important;
  }
  body.home .metaads-feature-category {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 11px !important;
    padding: 0 0 14px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e1e6ef !important;
  }
  body.home .metaads-feature-row > ul {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }
  body.home .metaads-feature-row > ul > li {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    padding: 9px 0 !important;
  }
  body.home .metaads-feature-row li strong {
    min-width: 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body.home .services-showcase__tabs,
  body.home .services-showcase__viewport {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  body.home .services-showcase__tabs {
    max-width: calc(100% - 24px) !important;
    padding: 0 2px 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain !important;
    scroll-snap-type: x proximity !important;
  }
  body.home .services-showcase__tabs::-webkit-scrollbar,
  body.home .services-showcase__viewport::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  body.home .services-showcase__tabs button,
  body.home .services-showcase__tabs > a {
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
  }

  body.home .ecosystem-unit {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) 20px !important;
    gap: 10px 12px !important;
    padding: 17px !important;
    overflow: hidden !important;
  }
  body.home .ecosystem-unit-logo {
    grid-column: 1 / -1 !important;
    width: 176px !important;
    height: 54px !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
  }
  body.home .ecosystem-unit-logo > img,
  body.home .ecosystem-unit[data-brand="gonetwork"] .ecosystem-unit-logo > img,
  body.home .ecosystem-unit[data-brand*="network"] .ecosystem-unit-logo > img {
    width: 170px !important;
    height: 50px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  body.home .ecosystem-unit-copy {
    grid-column: 1 !important;
    width: auto !important;
    min-width: 0 !important;
  }
  body.home .ecosystem-unit-copy p {
    max-width: none !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

@media (max-width: 540px) {
  body.home .hero-sequence .hero-beat { padding-inline: 14px !important; }
  body.home .hero-sequence .hero-kicker {
    max-width: 100% !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
    letter-spacing: .12em !important;
  }
  body.home .hero-sequence h1,
  body.home .hero-sequence .hero-beat h2 {
    max-width: 100% !important;
    font-size: clamp(30px, 8.8vw, 35px) !important;
    line-height: 1.1 !important;
    letter-spacing: -.035em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  body.home .hero-sequence .hero-beat > p:not(.hero-kicker) {
    max-width: 100% !important;
    padding: 11px 13px !important;
    font-size: 13px !important;
    line-height: 1.62 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  body.home .hero-sequence .hero-actions {
    width: 100% !important;
    gap: 8px !important;
  }

  body.home .ecosystem-intro {
    position: relative !important;
    z-index: 1 !important;
    gap: 12px !important;
  }
  body.home .ecosystem-intro h2 {
    margin: 0 !important;
    color: #0a1a4f !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
    letter-spacing: -.025em !important;
  }
  body.home .ecosystem-intro > p {
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important;
    color: #586680 !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
  }
}
