@media (max-width: 1120px) {
  .product-grid { grid-template-columns: 1fr !important; }
  .faq-grid { grid-template-columns: 1fr; }
  .compare-grid,
  .pricing-layout { grid-template-columns: 1fr; }
  .compare-grid { display: flex; flex-direction: column; gap: 12px; }
  .merged-recovery-panel { grid-template-columns: 1fr; gap: 24px; }
  .calc-context-grid { grid-template-columns: 1fr; gap: 36px; }
  /* Without this the column is as wide as the calculator card's min-content —
     the two-select window calculator then pushes the whole band past 375px. */
  .calc-context-grid > * { min-width: 0; }
  .problem-record-list { grid-template-columns: 1fr; gap: 32px; }
  .calc-context { order: 2; }
  .calc-context-calc { order: 1; }
  .merged-recovery-col { padding: 0; }
  .merged-recovery-col--divided { border-inline-start: none; border-top: 1px solid var(--border-dark); padding-top: 24px; }
  .merged-recovery-col--figure { text-align: start; }
  .qualify-grid { grid-template-columns: 1fr; }
  .qualify-field--wide { grid-column: span 1; }
  .engine-grid,
  .glass-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .calc-split-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .calc-split-sub { max-width: none; }
  .industry-tab-bar { gap: 20px; flex-wrap: wrap; row-gap: 10px; }
  .industry-tab-desc-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .calc-section--split .calc-card { grid-template-columns: 1fr; }
  .calc-section--split .calc-panel-left { border-inline-end: 0; border-bottom: 1px solid var(--border-dark-soft); }
  .calc-big-value { font-size: 40px; }
  .price-split { grid-template-columns: 1fr; }
  .price-panel--left { border-inline-end: 0; border-bottom: 1px solid var(--border-dark-soft); }
  .price-keep-value { font-size: 40px; }
}

@media (max-width: 620px) {
  /* The status column would take a quarter of a phone's width from the
     finding beside it; stacked, the finding gets the full row. */
  .readiness-card { padding: 24px 20px; }
  .readiness-check-row { flex-direction: column; gap: 4px; }
  .readiness-check-row .text { padding: 0; }
  :root { --section-pad-x: 24px; --section-pad-y: 64px; }
  .hero { padding-top: 56px; padding-bottom: 48px; }
  .hero--statement { padding-top: 64px; padding-bottom: 64px; gap: 40px; }
  /* Twice the viewport wide and short, so a phone sees the whole sweep of
     waves rather than a crop of the middle one. */
  .hero-aurora { width: 200%; inset-inline-start: -50%; height: 360px; }
  .calc-section { padding-top: 48px; padding-bottom: 56px; }
  .calc-section--split { padding-bottom: 56px; }
  .hero-headline,
  .hero-headline--long { font-size: 38px; }
  .site-footer { padding-top: 72px; }
  .site-footer-top { gap: 48px; }
  .footer-logo { font-size: 26px; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
  .footer-column-links a { font-size: 18px; }
  .site-footer-row { flex-direction: column; gap: 16px; }
  .site-footer-row--legal { margin-top: 64px; }
  /* Two buttons of very different widths wrapping onto two centred lines
     reads as ragged, so they stack to matching full-width instead. */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { white-space: normal; }
  .hero-pipeline { display: none; }

  .industry-tab { font-size: 12px; padding: 12px 2px; }
  /* The window calculator's store/cover selects carry sentences, not one-word
     platform names — on a phone they get their own line under the label. */
  .calc-card--window .calc-frow--stacked { flex-wrap: wrap; row-gap: 8px; }
  .calc-card--window .calc-frow--stacked .calc-select-wrap { width: 100%; justify-content: space-between; }
  .calc-card--window .calc-select { max-width: 100%; }
  .calc-panel-left,
  .calc-panel-right { padding: 24px; }
  .price-panel { padding: 24px; }
}

/* Case replay (engine section) */
@media (max-width: 860px) {
  .cr-head { flex-direction: column; gap: 10px; }
  .cr-armed .cr-stage { min-height: 0; }
}

/* Cookie banner spans the viewport on phones rather than floating in a corner */
@media (max-width: 620px) {
  .cookie-banner {
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    bottom: 12px;
    width: auto;
    padding: 18px;
  }
}

/* Connections map (homepage). Sixteen labelled nodes don't fit a ring on a
   phone, so the ring becomes a grid: hub on top, tiles below, spokes gone. */
@media (max-width: 720px) {
  .cx-map { width: 100%; aspect-ratio: auto; }
  .cx-spokes { display: none; }
  .cx-hub { position: static; transform: none; width: 100%; height: auto; flex-direction: row; gap: 10px; padding: 16px; margin-bottom: 16px; }
  .cx-nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
  .cx-node {
    position: static;
    transform: none;
    width: auto;
    padding: 14px 8px;
    background: var(--panel-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-panel);
  }
  /* Both selectors, because the ring's stagger is written against
     .reveal-init.reveal-in and its keyframes end on the ring's centring
     translate — left running here it would shift every grid tile up and left
     by half its size. */
  .reveal-init .cx-node,
  .reveal-init.reveal-in .cx-node { opacity: 1; animation: none; }
  .cx-node-mark { width: 40px; height: 40px; border: 0; box-shadow: none; background: transparent; }
  .cx-node-name { font-size: 11.5px; white-space: normal; text-align: center; }
  .cx-ribbon { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 32px; }
}
