/* SnapSiteBuild — mobile responsiveness (production). Desktop (>=1024px) unchanged:
   class hooks + max-width media queries; !important beats inline styles below breakpoints only. */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  overflow-x: clip;
}

/* Header / navigation */
.ssb-burger {
  display: none;
}
@media (max-width: 1023px) {
  .ssb-header-bar {
    padding: 13px 16px !important;
    gap: 14px !important;
    position: relative;
    z-index: 1001;
  }
  .ssb-desktop-nav,
  .ssb-desktop-cta {
    display: none !important;
  }
  .ssb-burger {
    display: inline-flex !important;
  }
  .ssb-logo-text {
    font-size: 17px !important;
  }
  .ssb-header-bar > a img {
    height: 28px !important;
  }
  /* Hide desktop hover mega-menu on touch widths */
  .ssb-desktop-mega {
    display: none !important;
  }
}

/* Mobile slide-in panel (replaces full-screen scroll drawer) */
.ssb-mobile-backdrop {
  display: none;
}
.ssb-mobile-panel {
  display: none;
}
@media (max-width: 1023px) {
  .ssb-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: rgba(4, 6, 17, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .ssb-mobile-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1003;
    width: min(320px, 88vw);
    background: rgba(6, 12, 24, 0.98);
    border-left: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: -24px 0 80px -20px rgba(0, 0, 0, 0.85);
    font-family: Inter, system-ui, sans-serif;
  }
  .ssb-mobile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    flex-shrink: 0;
  }
  .ssb-mobile-panel-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    font-family: "JetBrains Mono", monospace;
  }
  .ssb-mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    font-size: 17px;
    cursor: pointer;
  }
  .ssb-mobile-nav-primary {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px;
  }
  .ssb-mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #e7ecf7;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit;
    text-align: left;
  }
  .ssb-mobile-nav-link:active,
  .ssb-mobile-nav-toggle:active {
    background: rgba(255, 255, 255, 0.06);
  }
  .ssb-mobile-chevron {
    color: #64748b;
    font-size: 13px;
    margin-left: 8px;
  }
  .ssb-mobile-services {
    padding: 4px 8px 10px 12px;
    margin-bottom: 4px;
    border-left: 2px solid rgba(59, 130, 246, 0.35);
    margin-left: 12px;
  }
  .ssb-mobile-service-group {
    margin-bottom: 8px;
    padding-top: 4px;
  }
  .ssb-mobile-service-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    font-family: "JetBrains Mono", monospace;
    margin-bottom: 4px;
    line-height: 1.35;
    min-height: 16px;
  }
  .ssb-mobile-service-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    flex-shrink: 0;
  }
  .ssb-mobile-service-label-text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
  }
  .ssb-mobile-service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px 6px;
  }
  .ssb-mobile-service-link {
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
    color: #a8b3cf;
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.3;
  }
  .ssb-mobile-service-link:active {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
  }
  .ssb-mobile-service-all {
    font-weight: 700 !important;
    color: #67e8f9 !important;
    margin-bottom: 8px !important;
  }
  .ssb-mobile-cta-bar {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 10px 12px 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(4, 6, 17, 0.6);
  }
  .ssb-mobile-cta-secondary,
  .ssb-mobile-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }
  .ssb-mobile-cta-secondary {
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #f8fafc;
  }
  .ssb-mobile-cta-primary {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 6px 22px -6px rgba(59, 130, 246, 0.7);
  }
}
@media (min-width: 1024px) {
  .ssb-mobile-backdrop,
  .ssb-mobile-panel {
    display: none !important;
  }
}

/* Footer — compact 2×2 link grid on mobile (not one tall column) */
@media (max-width: 860px) {
  .ssb-footer-inner {
    padding: 28px 16px 20px !important;
  }
  .ssb-footer-inner > svg {
    display: none !important;
  }
  .ssb-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 18px 14px !important;
  }
  .ssb-footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .ssb-footer-desc {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
    max-width: none !important;
  }
  .ssb-footer-col-title {
    font-size: 9px !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.1em !important;
  }
  .ssb-footer-col-links {
    gap: 6px !important;
  }
  .ssb-footer-col-links a {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }
  .ssb-footer-bar {
    margin-top: 24px !important;
    padding-top: 16px !important;
    gap: 10px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .ssb-footer-bar > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  .ssb-footer-bar span,
  .ssb-footer-bar a {
    font-size: 11px !important;
  }
}
@media (max-width: 520px) {
  .ssb-footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* PageShell (19 service/content pages) */
@media (max-width: 640px) {
  .ssb-shell-main {
    padding: 40px 16px 64px !important;
  }
}
@media (max-width: 900px) {
  .ssb-mod-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 520px) {
  .ssb-mod-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 720px) {
  .ssb-links-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 460px) {
  .ssb-links-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 560px) {
  .ssb-deliver-grid {
    grid-template-columns: 1fr !important;
  }
  .ssb-form-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 600px) {
  .ssb-cta {
    padding: 32px 20px !important;
  }
}

/* Home */
@media (hover: none), (pointer: coarse) {
  .ssb-spotlight {
    display: none !important;
  }
}
@media (max-width: 900px) {
  .ssb-page-section {
    padding-top: 48px !important;
    padding-bottom: 52px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .ssb-hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding: 28px 16px 20px !important;
    gap: 8px !important;
  }
  .ssb-hero p {
    font-size: 15px !important;
    line-height: 1.55 !important;
    margin-bottom: 22px !important;
  }
  .ssb-hero-ctas {
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 24px !important;
    width: 100%;
  }
  .ssb-hero-cta-primary,
  .ssb-hero-cta-secondary {
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-radius: 11px !important;
  }
  .ssb-hero-cta-primary span {
    font-size: 15px !important;
  }
  .ssb-hero-stats {
    gap: 14px !important;
    flex-wrap: wrap !important;
  }
  .ssb-hero-stat span:first-child {
    font-size: 22px !important;
  }
  .ssb-hero-stat span:last-child {
    font-size: 9px !important;
  }
  .ssb-hero-stage {
    display: none !important;
  }
  .ssb-problem-grid {
    grid-template-columns: 1fr !important;
  }
  .ssb-problem-grid > div:nth-child(2) {
    display: none !important;
  }
  .ssb-lab-grid {
    grid-template-columns: 1fr !important;
  }
  .ssb-lab-grid > div:first-child {
    border-right: none !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1) !important;
  }
  .ssb-two-col {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .ssb-founder-head {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .ssb-radial-wrap {
    height: auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    max-width: 520px !important;
    margin-left: auto;
    margin-right: auto;
  }
  .ssb-radial-wrap > svg,
  .ssb-radial-core {
    display: none !important;
  }
  .ssb-radial-wrap > div:not(.ssb-radial-core) {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
  }
}
@media (max-width: 720px) {
  .ssb-pillars-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .ssb-timeline-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 460px) {
  .ssb-pillars-grid {
    grid-template-columns: 1fr !important;
  }
  .ssb-radial-wrap {
    grid-template-columns: 1fr !important;
  }
  .ssb-timeline-grid {
    grid-template-columns: 1fr !important;
  }
  .ssb-test-kinds {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 600px) {
  .ssb-founder-card {
    padding: 28px 20px !important;
  }
  .ssb-final-cta {
    padding: 44px 20px !important;
  }
}

/* AI-Lab */
@media (max-width: 900px) {
  .ssb-lab-console {
    grid-template-columns: 1fr !important;
  }
  .ssb-lab-input {
    border-right: none !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1) !important;
  }
}

/* Developer-Access */
.ssb-compare {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 900px) {
  .ssb-reg-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 720px) {
  .ssb-steps-3 {
    grid-template-columns: 1fr !important;
  }
  .ssb-pkg-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  .ssb-pkg-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  .ssb-compare-row {
    min-width: 560px !important;
  }
}
