/* Fire Your Agency — responsive layer.
   The components below are styled with inline JS style objects (no build step,
   Babel-in-browser). Inline styles win over stylesheet rules at equal
   specificity, so overrides here use !important against classNames added
   alongside the inline styles — that's intentional, not sloppiness. */

img, svg { max-width: 100%; }

/* ---------- section / block horizontal padding ---------- */
@media (max-width: 900px) {
  .sec-pad { padding-left: 28px !important; padding-right: 28px !important; }
}
@media (max-width: 640px) {
  .sec-pad { padding-left: 18px !important; padding-right: 18px !important; }
}

/* full padding reset for big gradient CTA boxes / dark cards */
@media (max-width: 900px) {
  .cta-pad { padding: 40px 32px !important; }
}
@media (max-width: 640px) {
  .cta-pad { padding: 28px 20px !important; }
}

/* ---------- generic stacking ---------- */
@media (max-width: 640px) {
  .stack-mobile { flex-direction: column !important; align-items: flex-start !important; }
  .stack-mobile-center { flex-direction: column !important; align-items: center !important; text-align: center !important; }
  .wrap-mobile { flex-wrap: wrap !important; }
}

@media (max-width: 900px) {
  .hide-below-900 { display: none !important; }
}
@media (max-width: 640px) {
  .hide-below-640 { display: none !important; }
}

/* ---------- nav ---------- */
.fya-nav { flex-wrap: nowrap; position: relative; }
.fya-burger { display: none; }
@media (max-width: 860px) {
  .fya-nav { padding: 16px 20px !important; }
  .fya-nav-links, .fya-nav-actions { display: none !important; }
  .fya-burger {
    display: flex !important; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: transparent; border: 2px solid #1A0D08;
    border-radius: 10px; font-size: 18px; cursor: pointer; flex-shrink: 0;
  }
  .fya-mobile-panel {
    position: absolute; top: 100%; left: 0; right: 0; background: #FFF4E8;
    border-bottom: 2px solid #1A0D08; padding: 20px; box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    z-index: 50; display: flex; flex-direction: column; gap: 4px;
  }
}
@media (min-width: 861px) {
  .fya-mobile-panel { display: none !important; }
}

/* ---------- footer ---------- */
@media (max-width: 900px) {
  .fya-footer-grid { grid-template-columns: 1fr 1fr !important; row-gap: 32px !important; }
  .fya-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .fya-footer-grid { grid-template-columns: 1fr !important; }
  .fya-footer-bottom { flex-direction: column !important; gap: 8px !important; align-items: flex-start !important; }
}

/* ---------- CopyVault ---------- */
@media (max-width: 780px) {
  .vault-grid { grid-template-columns: 1fr !important; min-height: 0 !important; }
  .vault-side { border-right: none !important; border-bottom: 2px solid #1A0D08 !important; }
  .vault-variants { grid-template-columns: 1fr !important; }
  .vault-meta { display: none !important; }
}

/* ---------- generic column grids ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
}

/* ---------- hero (home) ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-visual { display: none !important; }
}

/* integration strip */
@media (max-width: 900px) {
  .integration-strip { flex-wrap: wrap !important; justify-content: center !important; gap: 12px 20px !important; row-gap: 12px !important; }
}

/* comparison / data tables rendered as CSS grid rows */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll::-webkit-scrollbar { height: 8px; }
@media (max-width: 900px) {
  .grid-compare-5 { min-width: 720px; }
  .grid-compare-6 { min-width: 820px; }
}

/* features preview grid (home) */
@media (max-width: 900px) {
  .features-preview-grid { grid-template-columns: 1fr 1fr !important; }
  .features-preview-hero { grid-column: 1 / -1; grid-row: auto !important; min-height: 320px !important; }
}
@media (max-width: 640px) {
  .features-preview-grid { grid-template-columns: 1fr !important; }
}

/* ROI calc stat grid */
@media (max-width: 780px) {
  .stat-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr !important; }
}

/* burn-chart floating annotation (home problem section) */
@media (max-width: 640px) {
  .chart-annotation {
    position: static !important; transform: none !important; margin-top: 16px !important;
    max-width: none !important; display: inline-block;
  }
}

/* features.jsx groups */
@media (max-width: 900px) {
  .groups-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .groups-grid { grid-template-columns: 1fr !important; }
  .group-heading-row { flex-wrap: wrap !important; }
  .group-heading-divider { display: none !important; }
}

/* howitworks.jsx steps */
@media (max-width: 780px) {
  .step-grid { grid-template-columns: 1fr !important; }
  .reqs-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .reqs-grid { grid-template-columns: 1fr !important; }
}

/* pricing.jsx */
@media (max-width: 900px) {
  .pricing-tiers-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .pricing-tiers-grid { grid-template-columns: 1fr !important; }
  .tier-card { min-height: 0 !important; }
  .free-tier-grid { grid-template-columns: 1fr !important; text-align: left !important; }
  .free-tier-grid button { width: 100%; }
}
@media (max-width: 780px) {
  .split-2 { grid-template-columns: 1fr !important; }
}

/* legal shell */
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr !important; }
  .legal-aside { position: static !important; }
  .legal-toc { display: none !important; }
}
