/* ================================================================
   ATOMINC — MOBILE RESPONSIVE OVERRIDES
   ================================================================
   CRITICAL RULE: This file contains ONLY additive overrides.
   Zero desktop styles have been modified, removed, or rewritten.
   All rules are scoped exclusively inside media queries.

   Breakpoint Strategy:
     max-width: 1024px  →  Small Desktop
     max-width: 768px   →  Tablet
     max-width: 480px   →  Mobile (primary focus)
     max-width: 360px   →  Extra Small (safety net)
   ================================================================ */


/* ════════════════════════════════════════════════════════════
   ① SMALL DESKTOP — max-width: 1024px
   ════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {

  /* ── Container ── */
  .container,
  .sf-container {
    padding: 0 32px;
  }

  /* ── Navigation ── */
  .site-nav {
    padding: 0 32px;
  }

  /* ── Hero typography — pull back the extremes ── */
  .giant-heading {
    font-size: clamp(3.5rem, 11vw, 10rem);
  }

  .giant-heading-sub {
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 8px 0 4px;
  }

  .btn-neon-pink {
    font-size: 1.2rem;
    padding: 20px 44px;
  }

  /* ── Stats strip: 4-col → 2×2 grid ── */
  /* NOTE: 900px already handles 1fr 1fr but this sets borders cleanly */
}


/* ════════════════════════════════════════════════════════════
   ② TABLET — max-width: 768px
   ════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── NAVIGATION ──────────────────────────────────────── */

  /* Hide CTA buttons — hamburger menu carries all navigation */
  .nav-right {
    display: none;
  }

  /* nav-menu and hamburger already handled by existing 900px query */

  /* ── HERO ────────────────────────────────────────────── */

  .hero-giant {
    padding-top: 64px;
    min-height: 88vh;
    /* Breathe: down from 100vh */
    padding-bottom: 28px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .giant-heading {
    font-size: clamp(2.8rem, 12vw, 6rem);
    letter-spacing: -0.04em;
  }

  .giant-heading-sub {
    font-size: clamp(1.5rem, 5.5vw, 2.8rem);
    margin: 8px 0 26px;
  }

  .hero-support {
    font-size: 0.95rem;
    margin-bottom: 22px;
    padding: 0 4px;
  }

  .btn-neon-pink {
    font-size: 1.05rem;
    padding: 18px 36px;
    width: 100%;
    max-width: 340px;
  }

  /* Center the AtomInc / Partner tab switcher on mobile */
  .hero-page-switch {
    align-self: center;
    margin-bottom: 24px;
  }

  /* ── MARQUEE ─────────────────────────────────────────── */

  .marquee-inner {
    gap: 48px;
    padding-left: 48px;
    animation-duration: 28s;
    /* Slightly slower for readability */
  }

  .marquee-inner span {
    font-size: 1.35rem;
  }

  .marquee-title {
    font-size: 0.95rem;
    padding: 0 20px;
    margin-bottom: 20px;
  }

  .marquee-section {
    padding-bottom: 30px;
  }

  /* ── GLOBAL TYPOGRAPHY ───────────────────────────────── */

  .h2 {
    font-size: clamp(1.8rem, 5.5vw, 3rem);
  }

  .s-h2 {
    font-size: clamp(1.8rem, 5.5vw, 3rem) !important;
    /* Override inline style font-size */
    max-width: 100% !important;
  }

  .body-lg {
    font-size: 1rem;
    max-width: 100%;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .eyebrow {
    font-size: 0.78rem;
    margin-bottom: 16px;
  }

  /* ── SECTION FAILURE — Stacked panels ───────────────── */

  /* Override absolute positioning — stack panels vertically */
  .panels-wrap {
    position: relative !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
  }

  .sf-panel {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    animation: none !important;
    /* Kill float animations on mobile */
    transform: none !important;
  }

  /* ── UNIFIED OPS TABS — horizontal scroll ────────────── */

  .unified-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px;
    max-width: 100%;
    gap: 2px;
  }

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

  .utab {
    font-size: 0.82rem;
    padding: 12px 14px;
    white-space: nowrap;
    flex: 0 0 auto;
    /* Don't squeeze — allow scroll */
  }

  /* ── SPLIT SECTION ───────────────────────────────────── */
  /* grid-template-columns already 1fr via 900px query */
  .split-section {
    gap: 36px;
  }

  /* ── BRAND FEATURES ──────────────────────────────────── */
  .brand-features {
    display: grid !important;
    /* Override inline style="display:grid" */
    grid-template-columns: 1fr 1fr !important;
    /* Tablet: 3-col → 2-col */
    gap: 14px !important;
    margin-top: 24px !important;
  }

  .bf-text h4 {
    font-size: 1.15rem;
  }

  /* ── PILLAR CARDS ────────────────────────────────────── */
  /* Already 1fr 1fr grid via 900px — just tighten padding */
  .pillar-card {
    padding: 28px 20px;
  }

  /* ── STEPS ───────────────────────────────────────────── */
  /* Already 1fr 1fr via 900px */
  .step h4 {
    font-size: 1.1rem;
  }

  /* ── STATS STRIP ─────────────────────────────────────── */
  /* Already 1fr 1fr via 900px */
  .stat-num {
    font-size: 2.2rem;
  }

  .stat-item {
    padding: 20px 16px;
  }

  /* ── DASHBOARD CARD ──────────────────────────────────── */

  .s-dashboard-card {
    margin-bottom: 28px;
  }

  /* Collapse 2-col (from 1024px) → 1-col on tablet */
  .sdc-body {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }

  /* ── EXEC CARD SECTION ───────────────────────────────── */
  /* Already 1-col at 900px — fix broken desktop font-size clamp */
  .exec-heading {
    font-size: clamp(2rem, 7vw, 3rem) !important;
  }

  .exec-cards-stage {
    height: 300px;
  }

  /* ── METRICS ─────────────────────────────────────────── */
  /* Already 1-col at 1024px */
  .s-metric-block {
    padding: 36px 28px;
  }

  /* ── QUOTE BAND ──────────────────────────────────────── */
  .s-quote-band {
    border-radius: 16px;
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 4px 0;
  }

  .s-qb-item span {
    font-size: 0.78rem;
  }

  /* ── CTA SECTION ─────────────────────────────────────── */
  .cta-inner {
    padding: 0 20px 60px;
  }

  .cta-btns {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .btn-cta-primary,
  .btn-cta-outline {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }

  /* ── FOOTER ──────────────────────────────────────────── */
  /* Already 1fr 1fr at 900px */
  .footer-brand p {
    max-width: 100%;
  }

  /* ── OPS MODAL ───────────────────────────────────────── */
  .ops-modal {
    border-radius: 20px;
    max-height: 96vh;
  }

  .ops-modal-header {
    padding: 18px 24px;
  }

  .ops-modal-body {
    padding: 24px;
  }

  .modal-hero-banner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .modal-stats {
    gap: 20px;
  }

  /* ── DEMO FORM ───────────────────────────────────────── */
  .s-demo-form {
    padding: 28px 24px;
  }
}


/* ════════════════════════════════════════════════════════════
   ③ MOBILE — max-width: 480px
   (Primary mobile optimization layer)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {

  /* ── CONTAINER ───────────────────────────────────────── */
  .container,
  .sf-container {
    padding: 0 16px;
  }

  /* ── HERO ────────────────────────────────────────────── */

  .hero-giant {
    padding-top: 64px;
    min-height: 82vh;
    padding-bottom: 20px;
  }

  .hero-content {
    padding: 0 16px;
  }

  .giant-heading {
    font-size: clamp(2.3rem, 13vw, 4rem);
    letter-spacing: -0.04em;
    line-height: 1.0;
  }

  .giant-heading-sub {
    font-size: clamp(1.2rem, 5.5vw, 1.8rem);
    margin: 6px 0 22px;
    letter-spacing: -0.02em;
  }

  .hero-support {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 18px;
  }

  .btn-neon-pink {
    font-size: 0.95rem;
    padding: 16px 28px;
    width: 100%;
    max-width: 300px;
    border-radius: 50px;
    margin-bottom: 16px;
  }

  .hero-page-switch {
    margin-bottom: 18px;
  }

  .hps-tab {
    padding: 8px 18px;
    font-size: 0.68rem;
  }

  /* ── MARQUEE ─────────────────────────────────────────── */

  .marquee-inner {
    gap: 32px;
    padding-left: 32px;
    animation-duration: 22s;
  }

  .marquee-inner span {
    font-size: 1.1rem;
  }

  .marquee-title {
    font-size: 0.82rem;
    padding: 0 16px;
    margin-bottom: 14px;
  }

  .marquee-section {
    padding-bottom: 22px;
  }

  /* ── GLOBAL TYPOGRAPHY ───────────────────────────────── */

  .h2 {
    font-size: clamp(1.55rem, 7.5vw, 2.4rem);
    letter-spacing: -0.025em;
  }

  .s-h2 {
    font-size: clamp(1.55rem, 7.5vw, 2.4rem) !important;
    /* Override inline style */
    max-width: 100% !important;
    letter-spacing: -0.025em;
  }

  .s-h3 {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
  }

  .body-lg,
  .s-body {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .section-header {
    margin-bottom: 22px;
  }

  /* ── BRAND FEATURES GRID — override inline 3-col ──────── */

  .brand-features {
    display: grid !important;
    /* Override inline style="display:grid" */
    grid-template-columns: 1fr !important;
    /* Mobile: collapse to 1-col */
    gap: 12px !important;
    margin-top: 20px !important;
  }

  .brand-feature {
    display: flex !important;
    /* Keep flex for icon+text layout */
    gap: 16px !important;
  }

  /* ── PILLARS GRID — 2-col → 1-col ───────────────────── */

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .pillar-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .pillar-card h3 {
    font-size: 1.1rem;
  }

  /* ── STEPS — 2-col → 1-col, horizontal layout ───────── */

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }

  /* Reflow into horizontal icon + text layout */
  .step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 0;
  }

  .step-num {
    margin: 0;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .step h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .step p {
    font-size: 0.88rem;
  }

  /* ── STATS STRIP ─────────────────────────────────────── */

  .stat-item {
    padding: 16px 12px;
  }

  .stat-num {
    font-size: 1.9rem;
  }

  .stat-label {
    font-size: 0.76rem;
  }

  /* ── SECTION FAILURE ─────────────────────────────────── */

  .section-failure .section-heading {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
    letter-spacing: -0.025em;
  }

  .section-failure .section-subtext {
    font-size: 0.88rem;
    margin-bottom: 32px;
  }

  .sf-eyebrow {
    font-size: 10px;
  }

  /* Panels already stacked at 768px — refine padding */
  .sf-panel-shipment,
  .sf-panel-compliance {
    padding: 16px 18px !important;
  }

  /* KPI panel: override the 220px desktop fixed-width */
  .sf-panel-kpi {
    width: 100% !important;
    padding: 18px 18px !important;
  }

  /* ── DASHBOARD CARD ──────────────────────────────────── */

  .sdc-body {
    padding: 14px;
    gap: 10px;
  }

  .s-dashboard-card {
    margin-bottom: 20px;
    border-radius: 14px;
  }

  .sdc-metrics {
    gap: 8px;
  }

  /* ── MODULES ─────────────────────────────────────────── */
  /* Already 1-col at 768px */
  .s-module-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .s-mod-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .s-module-card h4 {
    font-size: 0.98rem;
  }

  /* ── LOGO GRID ───────────────────────────────────────── */

  .s-logo-item {
    padding: 14px 12px;
    min-height: 64px;
    border-radius: 10px;
  }

  .s-logo-item img {
    max-height: 28px;
    max-width: 80px;
  }

  /* ── METRICS ─────────────────────────────────────────── */

  .s-met-num {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
  }

  .s-met-title {
    font-size: 0.92rem;
  }

  .s-met-desc {
    font-size: 0.8rem;
  }

  .s-metrics-label {
    font-size: 0.68rem;
    margin-bottom: 40px;
    padding: 0 8px;
  }

  .s-metrics-quotes {
    margin-top: 40px;
  }

  /* ── QUOTE BAND — stacks vertically ─────────────────── */

  .s-quote-band {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 20px;
    border-radius: 14px;
  }

  .s-qb-sep {
    display: none;
    /* Hide separators when vertical */
  }

  /* ── BRANDS ──────────────────────────────────────────── */
  /* Already 1-col at 768px */
  .s-brand-img-placeholder {
    height: 140px;
    font-size: 2.2rem;
  }

  .s-brand-content {
    padding: 18px 20px;
  }

  /* ── RESOURCES ───────────────────────────────────────── */
  /* Already 1-col at 768px */
  .s-res-thumb {
    height: 110px;
  }

  .s-res-content {
    padding: 16px;
  }

  /* ── EXEC SECTION ────────────────────────────────────── */

  .exec-inner {
    padding: 40px 16px;
    gap: 28px;
  }

  .exec-heading {
    font-size: clamp(1.8rem, 7vw, 2.6rem) !important;
  }

  .exec-cards-stage {
    height: 264px;
  }

  .exec-card {
    padding: 22px 22px !important;
    border-radius: 16px;
  }

  .exec-card-title {
    font-size: 1.05rem;
  }

  .exec-card-body {
    font-size: 0.82rem;
    margin-top: 10px;
  }

  .exec-card-bottom {
    margin-top: 14px;
  }

  .exec-progress-track {
    margin-top: 20px;
  }

  /* ── S-BTN-GREEN — override inline font-size + padding ─── */

  .s-btn-green {
    font-size: 0.9rem !important;
    /* Override inline style="font-size:1rem" */
    padding: 13px 28px !important;
    /* Override inline style="padding:18px 44px" */
    min-height: 48px;
  }

  /* ── UNIFIED OPS TABS ────────────────────────────────── */

  .unified-tabs {
    margin-bottom: 32px;
    border-radius: 14px;
  }

  .utab {
    font-size: 0.75rem;
    padding: 10px 12px;
  }

  /* ── BRAND FEATURES ──────────────────────────────────── */

  .brand-feature {
    border-radius: 16px !important;
    padding: 16px !important;
    /* Override inline styles if any */
  }

  .bf-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.4rem;
  }

  .bf-text h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .bf-text p {
    font-size: 0.88rem;
  }

  /* ── SERVICE CARDS ───────────────────────────────────── */

  .service-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .service-card h3 {
    font-size: 1.05rem;
  }

  .service-card p {
    font-size: 0.83rem;
  }

  /* ── PRICING TEASER ──────────────────────────────────── */

  .pricing-teaser-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .pricing-teaser-card .price {
    font-size: 1.7rem;
  }

  .pricing-teaser-card h3 {
    font-size: 1.2rem;
  }

  /* ── CTA ─────────────────────────────────────────────── */

  .cta-section {
    padding: 48px 0 0;
  }

  .cta-inner {
    padding: 0 16px 48px;
  }

  .btn-cta-primary,
  .btn-cta-outline {
    padding: 14px 24px;
    font-size: 0.9rem;
    min-height: 48px;
    /* WCAG touch target */
    width: 100%;
    max-width: 300px;
  }

  /* ── FOOTER (existing classes) ───────────────────────── */

  /* Already 1-col at 600px */
  .footer-brand p {
    font-size: 0.82rem;
  }

  .social-link {
    width: 38px;
    height: 38px;
    /* Larger touch target */
  }

  .footer-bottom {
    gap: 10px;
  }

  /* ── DEMO FORM ───────────────────────────────────────── */

  .s-demo-form {
    padding: 24px 20px;
    border-radius: 16px;
  }

  /* Prevent iOS from zooming on input focus (< 16px triggers zoom) */
  .s-form-group input,
  .s-form-group select {
    padding: 13px 14px;
    font-size: 1rem;
  }

  .s-form-submit {
    padding: 15px;
    font-size: 0.95rem;
  }

  /* ── NEW FOOTER (s- classes) ─────────────────────────── */

  .s-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 16px 0;
  }

  .s-social {
    width: 38px;
    height: 38px;
  }

  /* ── GENERAL TOUCH TARGETS ───────────────────────────── */

  .s-btn-green,
  .s-btn-outline {
    padding: 13px 28px;
    min-height: 48px;
    font-size: 0.9rem;
  }

  /* ── OPS MODAL ───────────────────────────────────────── */

  .ops-modal-header {
    padding: 16px 20px;
    border-radius: 20px 20px 0 0;
  }

  .ops-modal-body {
    padding: 20px 16px;
  }

  .modal-tabs {
    gap: 6px;
    margin-bottom: 28px;
  }

  .mtab {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}


/* ════════════════════════════════════════════════════════════
   ④ EXTRA SMALL — max-width: 360px
   (Safety net for the smallest common devices)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 360px) {

  .container,
  .sf-container {
    padding: 0 14px;
  }

  /* Hero — final floor for readability */
  .giant-heading {
    font-size: 2.1rem;
    letter-spacing: -0.03em;
  }

  .giant-heading-sub {
    font-size: 1.15rem;
  }

  .btn-neon-pink {
    font-size: 0.88rem;
    padding: 14px 22px;
  }

  /* Typography floor */
  .h2,
  .s-h2 {
    font-size: 1.45rem !important;
    /* Override inline style */
  }

  .section-failure .section-heading {
    font-size: 1.5rem;
  }

  .exec-heading {
    font-size: 1.65rem !important;
  }

  /* Layout tightening */
  .pillars-grid {
    gap: 10px;
  }

  .pillar-card {
    padding: 20px 16px;
  }

  .exec-inner {
    padding: 32px 14px;
  }

  .exec-cards-stage {
    height: 240px;
  }
}