/* RaidX — dedicated mobile shell. Desktop layout stays in landing.css. */

.tool-icon-close {
  width: 0.95rem;
  height: 0.95rem;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12 19 6.4 17.6 5 12 10.6 6.4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12 19 6.4 17.6 5 12 10.6 6.4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mobile-scrim,
.mobile-sheet,
.mobile-dock {
  display: none;
}

@media (max-width: 860px) {
  :root {
    --rx-header: 3.55rem;
    --rx-dock: calc(4.35rem + env(safe-area-inset-bottom, 0px));
    --rx-gutter: 1rem;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--rx-header) + 0.6rem);
  }

  html,
  body.landing-body {
    overscroll-behavior-y: contain;
  }

  body.landing-body {
    padding-bottom: var(--rx-dock);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    -webkit-tap-highlight-color: transparent;
  }

  a, button, .btn, .tool-btn, .price-tab, .nav-toggle, .mobile-dock-item {
    touch-action: manipulation;
  }

  body.landing-body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .atmosphere {
    background:
      radial-gradient(520px 340px at 110% -10%, var(--atmosphere-1), transparent 62%),
      radial-gradient(420px 280px at -20% 8%, var(--atmosphere-2), transparent 58%),
      var(--atmosphere-base);
  }

  .site-header {
    min-height: var(--rx-header);
    padding: 0.55rem var(--rx-gutter);
    padding-top: max(0.55rem, env(safe-area-inset-top, 0px));
    gap: 0.5rem;
  }

  .site-header.is-scrolled {
    padding-block: 0.45rem;
    padding-top: max(0.45rem, env(safe-area-inset-top, 0px));
  }

  .brand {
    font-size: 1.08rem;
    gap: 0.5rem;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .nav,
  .header-tools .header-cta {
    display: none !important;
  }

  .header-tools {
    margin-left: auto;
    gap: 0.4rem;
  }

  .tool-btn {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 12px;
  }

  .tool-lang {
    min-width: 2.55rem;
    padding: 0 0.55rem;
  }

  .nav-toggle {
    display: flex;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 12px;
    gap: 0.28rem;
    z-index: 60;
  }

  .nav-toggle span {
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  body.landing-body.mobile-nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(0.36rem) rotate(45deg);
  }

  body.landing-body.mobile-nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.landing-body.mobile-nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-0.36rem) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1.15rem var(--rx-gutter) 1.6rem;
  }

  .hero-status {
    font-size: 0.72rem;
    margin-bottom: 0.65rem;
  }

  .hero-brand {
    font-size: clamp(3.1rem, 22vw, 4.4rem);
    margin-bottom: 0.2rem;
  }

  .hero h1 {
    max-width: none;
    font-size: 1.18rem;
    line-height: 1.25;
  }

  .hero-lead {
    margin: 0.85rem 0 1.15rem;
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 3rem;
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 210px;
    max-width: 22rem;
    margin: 0 auto;
    width: 100%;
  }

  .hero-plane {
    inset: 0;
    border-radius: 22px;
  }

  .hero-frame {
    inset: 10% 18% 12%;
    transform: none;
    animation: none;
    border-radius: 18px 18px 22px 22px;
    padding: 0.65rem;
  }

  .hero-orb-a {
    width: 88px;
    height: 88px;
    right: -10px;
    bottom: 18px;
  }

  .hero-orb-b {
    width: 52px;
    height: 52px;
  }

  .scroll-cue {
    display: none;
  }

  .strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    margin: 0 var(--rx-gutter) 0.35rem;
    padding: 0;
    border-radius: 18px;
  }

  .strip::-webkit-scrollbar {
    display: none;
  }

  .strip-item {
    flex: 0 0 72%;
    scroll-snap-align: start;
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
    padding: 1.1rem 1rem;
  }

  .strip-item:last-child {
    border-right: 0 !important;
  }

  .strip-item strong {
    font-size: 1.35rem;
  }

  .section {
    padding: 2.4rem var(--rx-gutter);
  }

  .section-alt {
    padding-inline: var(--rx-gutter);
  }

  .section-lead-form {
    padding-bottom: 2.6rem;
  }

  .section-head {
    margin-bottom: 1.25rem;
  }

  .section-head h2,
  .lead-copy h2 {
    font-size: 1.7rem;
  }

  .section-meta {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .audience-grid,
  .price-board,
  .lead-layout,
  .saas-tiers,
  .footer-top,
  .vacancy-card,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .audience-card,
  .saas-tier,
  .faq-item,
  .price-main,
  .price-side,
  .lead-form {
    padding: 1.15rem 1.05rem 1.25rem;
    border-radius: 18px;
  }

  .price-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(var(--rx-gutter) * -1) 1rem;
    padding: 0.1rem var(--rx-gutter);
    gap: 0.45rem;
  }

  .price-tabs::-webkit-scrollbar {
    display: none;
  }

  .price-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 2.7rem;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
  }

  .price-value {
    font-size: 2.15rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
  }

  .steps::before {
    content: "";
    position: absolute;
    left: 1.35rem;
    top: 1.4rem;
    bottom: 1.4rem;
    width: 2px;
    background: var(--line);
  }

  .steps li {
    display: grid;
    grid-template-columns: 2.1rem 1fr;
    column-gap: 0.85rem;
    padding: 1.05rem 1rem 1.15rem 0.85rem;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .steps li:hover {
    transform: none;
  }

  .steps li + li {
    border-top: 1px solid var(--line);
  }

  .step-num {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    margin: 0;
    position: relative;
    z-index: 1;
    grid-row: 1 / span 2;
  }

  .steps h3 {
    grid-column: 2;
    margin: 0.15rem 0 0.3rem;
  }

  .steps p {
    grid-column: 2;
  }

  .works-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.75rem;
    margin: 0 calc(var(--rx-gutter) * -1);
    padding: 0.15rem var(--rx-gutter) 0.65rem;
  }

  .works-grid::-webkit-scrollbar {
    display: none;
  }

  .work-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
    border-radius: 18px;
  }

  .work-card:hover {
    transform: none;
  }

  .work-card-media {
    height: 150px;
  }

  .saas-tiers {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.75rem;
    margin: 0 calc(var(--rx-gutter) * -1);
    padding: 0.1rem var(--rx-gutter) 0.4rem;
  }

  .saas-tiers::-webkit-scrollbar {
    display: none;
  }

  .saas-tier {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .vacancy-card {
    gap: 1rem;
    padding: 1.1rem;
  }

  .vacancy-apply-form .btn,
  .lead-form .btn {
    width: 100%;
    min-height: 3rem;
    justify-self: stretch;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .field input,
  .field select,
  .field textarea,
  .vacancy-apply-form input,
  .vacancy-apply-form textarea {
    font-size: 16px;
    min-height: 2.85rem;
    border-radius: 14px;
  }

  .faq-item summary {
    min-height: 1.4rem;
    padding-right: 1.5rem;
  }

  .site-footer {
    padding: 1.35rem var(--rx-gutter) 1.5rem;
    gap: 1rem;
  }

  .footer-top {
    gap: 1rem;
  }

  .footer-links {
    gap: 0.7rem 0.9rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: 0.65rem;
  }

  .mobile-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(13, 18, 24, 0.42);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .mobile-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0.65rem;
    right: 0.65rem;
    bottom: calc(var(--rx-dock) + 0.45rem);
    z-index: 55;
    max-height: min(78vh, 640px);
    padding: 0.7rem 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    transform: translateY(118%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-sheet.is-open {
    transform: translateY(0);
  }

  .mobile-sheet-handle {
    width: 2.4rem;
    height: 0.28rem;
    border-radius: 99px;
    background: var(--line);
    margin: 0.15rem auto 0.7rem;
  }

  .mobile-sheet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
  }

  .mobile-sheet-kicker {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-deep);
  }

  .mobile-sheet-nav {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 1rem;
  }

  .mobile-sheet-nav a {
    display: grid;
    grid-template-columns: 2.1rem 1fr;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.85rem;
    padding: 0.35rem 0.35rem;
    border-radius: 14px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: -0.03em;
  }

  .mobile-sheet-nav a span {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.04em;
  }

  .mobile-sheet-nav a:active,
  .mobile-sheet-nav a:hover {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
  }

  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    height: var(--rx-dock);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: var(--header-bg-strong);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 12px;
    min-width: 0;
  }

  .mobile-dock-item svg {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
  }

  .mobile-dock-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-dock-item.is-active,
  .mobile-dock-item:active {
    color: var(--accent-deep);
  }

  .mobile-dock-cta.is-active,
  .mobile-dock-cta:active {
    color: var(--accent);
  }

  .btn:hover,
  .work-card:hover,
  .steps li:hover,
  .tool-btn:hover,
  .header-cta:hover {
    transform: none;
  }
}

@media (max-width: 860px) and (max-height: 560px) and (orientation: landscape) {
  .hero-visual {
    display: none;
  }

  .mobile-sheet {
    max-height: calc(100vh - var(--rx-dock) - 1rem);
    bottom: calc(var(--rx-dock) + 0.35rem);
  }
}

@media (max-width: 380px) {
  .hero-brand {
    font-size: 2.7rem;
  }

  .mobile-dock-item {
    font-size: 0.58rem;
  }
}

@media (min-width: 861px) {
  .mobile-scrim,
  .mobile-sheet,
  .mobile-dock {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-sheet,
  .mobile-scrim,
  .nav-toggle span,
  .hero-frame {
    transition: none !important;
    animation: none !important;
  }
}
