.site-mobile-menu { display: none; }

.site-menu-toggle, .site-mobile-menu a, #obfBrowse, #langChips button, #lvlRow button, #tabRow button {
  touch-action: manipulation;
}

.site-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.marquee-track { animation-play-state: paused; }
.site-marquee-running > .marquee-track { animation-play-state: running; }
.hero-orbit-section h1 .animate-pulse { animation-play-state: paused; }
.hero-orbit-section h1 .site-caret-running { animation-play-state: running; }
.site-cta { overflow: clip; }

@media (max-width: 767px) {
  html { scroll-padding-top: 68px; }

  .site-menu-toggle {
    position: relative;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    flex: none;
    min-width: 44px;
    min-height: 44px;
    pointer-events: auto;
  }

  .site-mobile-menu:not([hidden]) {
    position: absolute;
    z-index: 10;
    top: calc(100% + 6px);
    inset-inline: 0;
    display: grid;
    gap: 2px;
    max-height: calc(100dvh - 76px);
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #3a2e51;
    border-radius: 15px;
    background: #14111e;
    box-shadow: 0 14px 32px #05030999;
  }

  .site-mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 9px;
    color: #ded6eb;
    font-size: 14px;
    font-weight: 600;
  }

  .site-mobile-menu a[aria-current="page"], .site-mobile-menu a:active {
    background: #2a1d40;
    color: #f5edff;
  }

  .site-table-scroll .compare-table { min-width: 440px; }
  .site-table-scroll td { overflow-wrap: anywhere; }
  main button[aria-controls^="faq-panel-"] { min-height: 48px; }
  main :is(input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="search"], select, textarea) {
    font-size: 16px;
  }

  .hero-orbit-section h1 {
    height: auto;
    min-height: 2.1em;
    white-space: normal;
  }
  .hero-orbit-section h1 .gradient-text { display: block; }
  .hero-orbit-section h1 + p { color: #9b94ab; }

  .footer-glass { padding-inline: 16px; }
  .footer-glass a { white-space: normal; }

  #obfDrop { padding: 16px; cursor: auto; }
  #obfDrop > :first-child { width: 48px; height: 48px; }
  #obfDrop .obf-drag-copy, #obfDrop .obf-platforms { display: none; }
  #obfBrowse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 8px 14px;
    border: 1px solid #9160d4;
    border-radius: 10px;
    background: #39215d;
    color: #f7edff;
    font-size: 15px;
    text-decoration: none;
  }
  #langChips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #langChips button { justify-content: center; min-height: 44px; padding-inline: 6px; }
  #langChips button[aria-pressed="true"] {
    border-color: #9160d4;
    background: #35234f;
    color: #f5eaff;
  }
  #obfDrop ~ .glass { padding: 16px; }
  #obfDrop ~ .glass > :first-child { gap: 8px; }
  #obfDrop ~ .glass > :first-child > :last-child { text-align: right; }
  #lvlRow button, #tabRow button { min-height: 44px; padding-inline: 4px; }
  #obfStatus, #obfResult span { overflow-wrap: anywhere; }
  #obfResult a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: no-preference) {
  .site-reveal { animation: site-arrive 420ms cubic-bezier(.2,.75,.3,1) backwards; }
  .site-mobile-menu:not([hidden]), #obfResult:not(.hidden), [data-pane]:not(.hidden), #oaProviders:not([hidden]) {
    animation: site-arrive 200ms cubic-bezier(.2,.75,.3,1) backwards;
  }
  .site-menu-toggle svg { transition: transform 180ms ease; }
  .site-menu-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
  :is(.site-menu-toggle, #obfBrowse, #btnProtect, #langChips button, #lvlRow button, #tabRow button):active {
    scale: .97;
  }
}

@keyframes site-arrive {
  from { opacity: .65; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-orbit-section .animate-pulse { animation: none; }
}
