/* Phone-width fixes for the pages that keep their own inline styles (index.html, about.html, ...).
   Linked last in each page's <head>, so these win over the inline rules. Nothing here changes the desktop layout.
   Before: at 390px wide the pages rendered up to 684px wide and scrolled sideways. */

/* Footer links didn't wrap on some pages */
.footer-links{flex-wrap:wrap}

/* The 700-800px glow behind page headers stuck out past the screen edge */
.hero,.page-header{overflow-x:clip}

@media(max-width:768px){
  /* Homepage dashboard mock: let the main panel shrink instead of pushing the grid wider */
  .preview-body{grid-template-columns:minmax(0,1fr)}
  .preview-main{min-width:0;overflow-x:auto}
  /* Two-column grids set in inline styles (case study, integrations) */
  [style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr!important}
  /* Homepage waitlist: let the email box shrink so the button fits */
  .cta-input{min-width:0}
  /* Wide tables scroll inside their own box */
  .api-table,.compare-table{display:block;max-width:100%;overflow-x:auto}
}

/* Small phones (320px): stack the waitlist email box above the button */
@media(max-width:359px){
  .cta-input-row{flex-direction:column}
}

/* Not phone-specific: ".nav-links a" (grey) beat ".nav-cta" (white), so "Join Waitlist" was grey on purple
   (contrast 1.35, Lighthouse audit 2026-11-06). This file loads last on every page, so the fix lives here. */
.nav-links a.nav-cta{color:#fff}
