/**
 * Touch & click UX — full-surface taps, mobile nav, no ghost overlays.
 */

/* ── Intro overlay must not eat taps when fading or hidden ── */
.teaser-overlay.is-dismissed,
.teaser-overlay[aria-hidden="true"] {
  pointer-events: none !important;
  visibility: hidden;
}

.teaser-skip {
  min-height: 48px;
  touch-action: manipulation;
}

/* ── Card / CTA surfaces ── */
a.brand-suite-card,
a.suite-tool-card,
.landing-socila-jump a,
.landing-btn-primary,
.landing-btn-secondary,
.landing-btn-ghost,
.hero-cta-primary,
.homepage-lane-foot a,
.brand-suite-catalog-link,
.landing-scroll-hint a {
  -webkit-tap-highlight-color: rgba(0, 255, 157, 0.18);
  touch-action: manipulation;
  cursor: pointer;
}

.brand-suite-card::before,
.brand-suite-card-media::after {
  pointer-events: none;
}

.brand-suite-card-body,
.brand-suite-card-media,
.brand-suite-card-tag {
  position: relative;
  z-index: 1;
}

.brand-suite-card .suite-card-btn {
  pointer-events: none;
}

/* Tool catalog: entire card is the link */
a.suite-tool-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

a.suite-tool-card .suite-card-btn {
  pointer-events: none;
  margin-top: auto;
}

a.suite-tool-card:focus-visible {
  outline: 2px solid var(--landing-accent, #00ff9d);
  outline-offset: 3px;
}

/* ── Mobile header & nav ── */
@media (max-width: 1200px) {
  .site-nav .nav-menu > a,
  .site-nav .nav-link,
  .site-nav .nav-dropdown-toggle,
  .nav-menu a {
    min-height: 48px;
    padding: 0.85rem 1rem !important;
    transform: none !important;
    transform-style: flat !important;
    perspective: none !important;
    overflow: visible !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 255, 157, 0.2);
    position: relative;
    z-index: 2;
  }

  .site-nav .nav-menu > a::before,
  .site-nav .nav-menu > a::after,
  .nav-menu a::before,
  .nav-menu a::after {
    pointer-events: none;
  }

  .site-nav .menu-toggle,
  .nl-theme-toggle,
  .nl-lang-select,
  .nl-lang-form button {
    min-width: 48px;
    min-height: 48px;
    touch-action: manipulation;
    position: relative;
    z-index: 120;
  }

  .nav-utilities {
    position: relative;
    z-index: 110;
    flex-shrink: 0;
  }

  .site-nav .nav-link-sound,
  .site-nav .nav-sound-wrap > .nav-link-sound,
  a.nav-sound-wrap.nav-link-sound {
    transform: none !important;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
  }

  .site-nav .nav-menu.active,
  .nav-menu.active {
    pointer-events: auto;
    z-index: 106;
  }

  .site-nav .nav-brand {
    position: relative;
    z-index: 110;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }
}

/* ── Sound Lab (Suno) mobile ── */
@media (max-width: 900px) {
  .nl-sound-lab-page .suno-nav-btn,
  .nl-sound-lab-page .suno-submit,
  .nl-sound-lab-page .suno-download-btn,
  .nl-sound-lab-page .nl-sound-buy-btn,
  .nl-sound-lab-page .nl-sound-buy-inline,
  .nl-sound-lab-page .nl-sound-sidebar-toggle {
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 255, 157, 0.15);
  }

  .nl-sound-lab-page .suno-nav-btn {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }

  .nl-sound-hero.hero-glass::before {
    pointer-events: none;
  }

  .nl-sound-lab-page .suno-field input,
  .nl-sound-lab-page .suno-field textarea,
  .nl-sound-lab-page .suno-field select {
    min-height: 48px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .nl-sound-hero-wrap {
    padding: 0 0.75rem;
  }

  .nl-sound-studio-wrap,
  .suno-layout.nl-sound-layout {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .nl-sound-plan-row {
    flex-direction: column;
    width: 100%;
  }

  .nl-sound-buy-inline {
    margin-left: 0;
    margin-top: 0.35rem;
    width: 100%;
  }

  .suno-download-row {
    justify-content: center;
  }

  .suno-download-btn {
    flex: 1 1 calc(50% - 0.25rem);
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
  }
}

/* ── AI Studio (socila) — playground, SEO, paths ── */
.socila-page .landing-socila-jump a,
.socila-page .landing-btn-primary,
.socila-page .landing-btn-secondary,
.socila-page .landing-btn-ghost,
.socila-page a.socila-path-card,
.socila-page .socila-strategy-chip,
.socila-page .socila-creator-chip {
  -webkit-tap-highlight-color: rgba(0, 255, 157, 0.18);
  touch-action: manipulation;
  cursor: pointer;
}

.socila-page a.socila-path-card .socila-path-cta,
.socila-page a.socila-path-card .socila-path-links,
.socila-page a.socila-path-card .socila-path-links li {
  pointer-events: none;
}

.socila-page .socila-playground-card .prompt-input,
.socila-page .socila-playground-card .playground-extra-controls,
.socila-page .socila-playground-card .button-group,
.socila-page .socila-playground-card .socila-prompt-hint,
.socila-page .seo-tools-form,
.socila-page .seo-tools-form .seo-prompt-input {
  position: relative;
  z-index: 2;
}

.socila-page .generate-btn,
.socila-page .upload-btn,
.socila-page label.upload-btn,
.socila-page .seo-generate-btn,
.socila-page .video-length-chip,
.socila-page .video-control-btn,
.socila-page .download-btn,
.socila-page .video-package-prompt-btn,
.socila-page .image-modal-close,
.socila-page .image-modal-download {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 255, 157, 0.15);
  cursor: pointer;
}

.socila-page label.upload-btn {
  user-select: none;
  -webkit-user-select: none;
  justify-content: center;
  margin: 0;
}

.socila-page .generate-btn,
.socila-page .upload-btn,
.socila-page label.upload-btn,
.socila-page .seo-generate-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.socila-page .prompt-input,
.socila-page .seo-prompt-input {
  min-height: 48px;
  font-size: 16px;
}

.socila-page .video-length-chip {
  min-height: 44px;
  min-width: 3rem;
  padding: 0.5rem 0.85rem;
}

.socila-page .video-control-btn {
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
}

.socila-page .socila-strategy-chip,
.socila-page .socila-creator-chip {
  min-height: 44px;
  padding: 0.65rem 1.1rem;
}

.socila-page .hero-glass::before,
.socila-page .landing-hero::before {
  pointer-events: none;
}

.socila-page .landing-hero-inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .socila-page .button-group {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .socila-page .button-group .generate-btn,
  .socila-page .button-group .upload-btn,
  .socila-page .button-group label.upload-btn {
    width: 100%;
    flex: none;
  }

  .socila-page .seo-tools-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .socila-page .seo-tools-form .seo-generate-btn {
    width: 100%;
  }

  .socila-page .video-length-row {
    width: 100%;
    justify-content: flex-start;
  }

  .socila-page .video-length-options {
    flex: 1;
    justify-content: stretch;
  }

  .socila-page .video-length-chip {
    flex: 1;
    text-align: center;
    min-height: 48px;
  }

  .socila-page .socila-strategy-quick-links,
  .socila-page .socila-creator-quick-links {
    flex-direction: column;
    align-items: stretch;
  }

  .socila-page .socila-strategy-chip,
  .socila-page .socila-creator-chip {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .socila-page .landing-cta-row {
    flex-direction: column;
    width: 100%;
  }

  .socila-page .landing-cta-row a {
    width: 100%;
    text-align: center;
    min-height: 48px;
  }
}
