/* Phone layout rules written as CSS. They load after mobile.css. */

/* Fixed widths that only make sense on a wide screen are released up to 1023px. */
@media (max-width:1023px){
  .page-home .cta .c-head h2{width:auto;max-width:100%;}
  .page-home .cta .c-sub{white-space:normal;}
}

@media (max-width:768px){
  /* Home: the product screens sit between the headline and the intro text.
     The copy column dissolves into the hero grid so its children can be reordered. */
  .page-home .hero-grid{display:flex!important;flex-direction:column!important;padding:34px 20px!important;}
  .page-home .hero-copy{display:contents!important;}
  .page-home .hero-copy>*{order:5;}
  .page-home .hero-copy>.kase{order:1;}
  .page-home .hero-copy>h1{order:2;}
  .page-home .hero-media{order:3;margin:14px -20px 2px!important;}
  .page-home .hero-copy>.hero-lead{order:4;}
  .page-home .hero-copy>.hero-cta{order:6;}

  /* Product pages: the main buttons sit right under the title (and its sub-line). */
  .phero-copy{display:flex;flex-direction:column;}
  .phero-copy>*{order:4;}
  .phero-copy>.phero-toprow,.phero-copy>.flag{order:0;}
  .phero-copy>h1{order:1;}
  .phero-copy>.h1-sub{order:2;}
  .phero-copy>.phero-cta{order:3;}
}
