﻿/* --- site-mobile.css --- */
/* Global mobile polish â€” all TORX pages */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body:has(.torx-unified-header) {
  overflow-x: clip;
  max-width: 100%;
}

.container {
  box-sizing: border-box;
  width: min(1220px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 36px);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .86);
  color: #315cf4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(53, 93, 244, .08);
}

body:has(.torx-unified-header) .container {
  width: min(1220px, 100%);
}

body.torx-menu-open {
  overflow: hidden;
  touch-action: none;
}

img,
video,
svg,
iframe {
  max-width: 100%;
  height: auto;
}

main {
  overflow-x: clip;
}

@media (max-width: 960px) {
  section,
  .torx-ai-hero,
  .torx-ai-about,
  .home-faq {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: clamp(18px, 5vw, 24px);
  }

  .torx-unified-footer.site-footer {
    padding: 48px 18px 24px;
  }

  .torx-unified-footer .footer-grid {
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .site-header .header-cta {
    padding: 0 12px;
    font-size: 12px;
  }

  .site-header-inner {
    min-height: 68px;
  }
}

.compare-wrap,
.table-scroll {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

p,
li,
td,
th,
a {
  overflow-wrap: anywhere;
}

@supports (padding: max(0px)) {
  .site-header-inner {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .torx-unified-footer.site-footer {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .torx-scroll-top {
    right: max(18px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
  }
}

/* Animate.css helpers (hero immediate entrance only) */
.animate__animated.is-visible {
  opacity: 1;
}

/* Scroll reveal (lightweight, non-animate.css) */
.torx-animate,
.reveal {
  transition: opacity .6s cubic-bezier(.25, 1, .5, 1), transform .6s cubic-bezier(.25, 1, .5, 1);
}

.torx-animate-pending {
  opacity: 0;
  transform: translateY(24px);
}

.torx-animate.is-visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .torx-animate-pending {
    opacity: 1;
    transform: none;
  }

  .torx-animate,
  .reveal {
    transition: none;
  }

  .animate__animated {
    animation: none !important;
  }
}

/* Scroll to top */
.torx-scroll-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 9990;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #325cf4, #a63ff0);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(76, 83, 232, .28);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
}

.torx-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.torx-scroll-top:hover {
  box-shadow: 0 18px 38px rgba(76, 83, 232, .36);
}

.torx-scroll-top svg {
  display: block;
}

@media (max-width: 640px) {
  .torx-scroll-top {
    width: 44px;
    height: 44px;
    right: 14px;
    bottom: 18px;
  }
}

