html.kc-design-booting #kc-design-surface {
  visibility: hidden;
}

html.kc-design-ready #kc-design-surface {
  visibility: visible;
}

html.kc-app-mode {
  background-color: var(--kds-background, #121212);
}

html.kc-app-mode body.kc-app-body {
  background-color: var(--kds-background, #121212);
}

html.kc-landing-mode,
html.kc-landing-mode body {
  overflow: hidden;
  height: 100%;
  max-height: 100vh;
}

html.kc-landing-mode #ws-main-site {
  max-height: 100vh;
  overflow: hidden;
}

html.kc-landing-mode #kc-design-surface {
  max-height: 100vh;
  overflow: hidden;
}

html.kc-landing-mode #root {
  display: none !important;
}

html.kc-app-mode #kc-design-surface {
  display: none !important;
}

html.kc-app-mode #ws-main-site {
  max-height: none;
  overflow: visible;
}

html.kc-app-mode,
html.kc-app-mode body {
  overflow-x: hidden;
  max-height: none;
}

.kc-signup-error-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2147483000;
  transform: translateX(-50%);
  max-width: min(92vw, 480px);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(231, 66, 92, 0.95);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.kc-signup-error-toast[hidden] {
  display: none !important;
}

/* ——— Mobile landing layout ——— */
@media (max-width: 767px) {
  html.kc-landing-mode,
  html.kc-landing-mode body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    max-height: none;
    -webkit-overflow-scrolling: touch;
  }

  html.kc-landing-mode #ws-main-site,
  html.kc-landing-mode #kc-design-surface {
    max-height: none;
    overflow: visible;
  }

  html.kc-landing-mode section[aria-label="hero banner"] ~ section,
  html.kc-landing-mode footer.gbiz-Footer {
    display: none !important;
  }

  html.kc-landing-mode section[aria-label="hero banner"] {
    padding-bottom: 28px;
  }

  html.kc-landing-mode section[aria-label="hero banner"] .min-h-\[370px\] {
    min-height: auto !important;
    gap: 20px !important;
  }

  html.kc-landing-mode [data-home-guidance-slot="true"] {
    min-height: auto !important;
    gap: 16px !important;
  }

  html.kc-landing-mode [data-home-guidance-signup="true"] > div.mt-\[40px\] {
    margin-top: 12px !important;
  }

  html.kc-landing-mode [data-kc-whitelist-copy="1"] {
    margin-bottom: 4px;
  }

  html.kc-landing-mode [data-home-guidance-signup="true"] > div > .flex.w-full.items-center {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  html.kc-landing-mode [data-home-guidance-signup="true"] .relative.z-\[11\].flex.h-\[56px\] {
    height: 52px !important;
    width: 100% !important;
    padding-inline-start: 16px !important;
    padding-inline-end: 8px !important;
  }

  html.kc-landing-mode [data-home-guidance-signup="true"] input[placeholder],
  html.kc-landing-mode [data-home-guidance-signup="true"] input[aria-label] {
    font-size: 15px !important;
  }

  html.kc-landing-mode [data-home-guidance-signup="true"] button {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline-start: 0 !important;
    min-height: 48px !important;
    height: 48px !important;
    flex-shrink: 0 !important;
  }

  html.kc-landing-mode a[aria-label="gift"],
  html.kc-landing-mode a[href="/land/KuRewards"] {
    display: none !important;
  }

  html.kc-landing-mode .translate-y-\[54px\] {
    transform: translateY(0) !important;
  }
}