/* ==========================================================================
   TranscodeX — Responsive overrides
   ========================================================================== */

@media (max-width: 1080px) {
  .tx-grid-3,
  .tx-steps,
  .tx-how-flow,
  .tx-post-grid { grid-template-columns: repeat(2, 1fr); }

  .tx-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }

  .tx-preset-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .tx-nav { display: none; }
  .tx-nav-toggle { display: inline-flex; }
  .tx-header-cta { display: none; }

  .tx-header-inner { padding: 9px 10px 9px 16px; }

  .tx-pipeline-track { flex-direction: column; align-items: center; }
  .tx-arrow { transform: rotate(90deg); }
  .tx-pipe-card { width: 100%; max-width: 360px; }

  .tx-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 720px) {
  .tx-hero { padding: 40px 0 16px; }
  .tx-section { padding: 52px 0; }

  .tx-app-card { padding: 22px; }
  .tx-processing { padding: 36px 20px; }

  .tx-float-tag--1 { left: -4%; }
  .tx-float-tag--2 { right: -4%; }
  .tx-float-tag--3 { left: -6%; }
  .tx-float-tag--4 { right: -2%; }

  .tx-preset-grid,
  .tx-settings-section,
  .tx-meta-grid,
  .tx-result-stats,
  .tx-levels,
  .tx-compat-grid { grid-template-columns: 1fr 1fr; }

  .tx-settings-section { gap: 16px; }
  .tx-dropzone { padding: 40px 18px; }

  .tx-step-chip .tx-step-label { display: none; }
  .tx-step-chip { padding: 8px 10px; }
  .tx-step-link { width: 18px; }

  .tx-actions { flex-direction: column; align-items: stretch; }
  .tx-actions .tx-spacer { display: none; }
  .tx-start-btn { width: 100%; }
  .tx-actions .tx-btn { width: 100%; }
}

@media (max-width: 520px) {
  .tx-container { padding: 0 18px; }

  .tx-grid-3,
  .tx-steps,
  .tx-how-flow,
  .tx-post-grid,
  .tx-preset-grid,
  .tx-settings-section,
  .tx-meta-grid,
  .tx-result-stats,
  .tx-levels,
  .tx-compat-grid { grid-template-columns: 1fr; }

  .tx-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .tx-footer-bottom { flex-direction: column; }

  .tx-hero-actions .tx-btn { width: 100%; }
  .tx-mobile-note { display: block; }
}

/* Mobile-only advisory */
.tx-mobile-note { display: none; }

@media (max-width: 900px) {
  .tx-mobile-note { display: block; }
}

/* Print */
@media print {
  .tx-header, .tx-footer, .tx-dropzone, .tx-actions, .tx-nav-toggle { display: none; }
  body { background: #fff; }
}
