/* Desktop (Default) */
.promo {
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #b5b5b5;
}
.promo .img {
  text-align: center;
  float: left;
  width: 385px;
  height: 399px;
  background: url('/assets/homepage/iphone_screens.jpg') 0 0 no-repeat;
  margin-right: 30px;
}
.promo .text {
  float: left;
  width: 213px;
  padding-top: 90px;
}
.promo .text a.app {
  margin-bottom: 40px;
  display: block;
}
.promo .text h4 {
  margin-bottom: 5px;
}
.promo .text .signup {
  text-indent: -9999em;
  display: inline-block;
  width: 209px;
  height: 81px;
  background: url('/assets/homepage/button_signup_web_app.png') 0 0 no-repeat;
}
.features {
  border-bottom: 1px solid #b5b5b5;
  position: relative;
  margin-bottom: 30px;
}
.features .arrow {
  position: absolute;
  width: 88px;
  height: 36px;
  background: url('/assets/homepage/arrow.png') 0 0 no-repeat;
  top: -25px;
  right: -40px;
}
.features .row {
  margin-bottom: 30px;
}
.features .feature {
  float: left;
  width: 305px;
}
.features .feature:first-child {
  margin-right: 18px;
}
.features .feature img {
  display: block;
  float: left;
  width: 74px;
  border: 1px solid #22395a;
  margin-right: 18px;
}
.features .feature h4 {
  font-size: 20px;
  margin-bottom: 0;
}
.features .feature p {
  font-size: 16px;
  margin-bottom: 0;
}

.illustrations h2 {
  margin-bottom: 5px;
}
.illustrations p {
  position: relative;
  display: block;
}
.illustrations p span.link {
  position: absolute;
  bottom: 0;
  right: 0;
}
.illustrations .img {
  display: block;
  border: 1px solid #22395a;
}

/* Desktop (Default) Retina Images */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
  .promo .img {
    background-image: url('/assets/homepage/iphone_screens-retina.png');
    background-size: 100% 100%;
  }
  .promo .text .signup {
    background-image: url('/assets/homepage/button_signup_web_app-retina.png');
    background-size: 100% 100%;
  }
}

/* Tablet/Mobile */
@media screen and (max-width: 1024px) {
  .promo .text .signup {
    width: 285px;
    height: 35px;
    background: url('/assets/homepage/button_signup_web_app_wide.png') 0 0 no-repeat;
  }
  .promo .text a.app {
    margin-top: 20px;
    margin-bottom: 20px;
    display: block;
  }
  .features .row {
    margin-bottom: 0;
  }
  .features .feature {
    float: none;
    width: 100%;
    margin-bottom: 30px;
  }
  .features .feature img {
    width: 15%;
    margin-right: 5%
  }
  .features .feature h4 {
    font-size: 20px;
    display: block;
    float: left;
    width: 79%;
  }
  .features .feature p {
    font-size: 16px;
    display: block;
    float: left;
    width: 79%;
  }
}

/* Tablet/Mobile Retina Images */
@media screen and (max-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {
  .promo .text .signup {
    background-image: url('/assets/homepage/button_signup_web_app_wide-retina.png');
    background-size: 100% 100%;
  }
}

/* Tablet only */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .promo .img {
    float: none;
    margin: 0 auto 20px;
    height: 220px;
    background-image: url('/assets/homepage/iphone_screens_cropped_large.png');
  }
  .promo .text {
    border-top: 1px solid #b5b5b5;
    float: none;
    width: auto;
    padding-top: 0;
    text-align: center;
  }
  .promo .text h2 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 25px;
  }
  .features .arrow {
    top: 75px;
    right: 0;
  }
  .illustrations {
    margin-bottom: 20px;
  }
}

/* Tablet Only Retina Images */
@media screen and (min-width: 768px) and (max-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {
  .promo .img {
    background-image: url('/assets/homepage/iphone_screens_cropped_large-retina.png');
    background-size: 100% 100%;
  }
}

/* Mobile (Portrait/Landscape) */
@media screen and (max-width: 767px) {
  .promo .img {
    width: 219px;
    height: 123px;
    margin: 0 auto 10px;
    margin-bottom: 0;
    float: none;
    background-image: url('/assets/homepage/iphone_screens_cropped.jpg');
  }
  .promo .text {
    border-top: 1px solid #b5b5b5;
    float: none;
    width: auto;
    padding-top: 0;
    text-align: center;
  }
  .promo .text h2 {
    font-size: 12px;
    margin-bottom: 20px;
    margin-top: 10px;
    margin-bottom: 25px;
  }
  .features .arrow {
    display: none;
  }
  .illustrations {
    margin-bottom: 20px;
  }
  .illustrations p {
    font-size: 14px;
  }
}

/* Mobile (Portrait/Landscape) Retina Images */
@media screen and (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2) {
  .promo .img {
    background-image: url('/assets/homepage/iphone_screens_cropped-retina.jpg');
    background-size: 100% 100%;
  }
}

/* Mobile Portrait only */
@media screen and (max-width: 380px) {
  .features .feature h4 {
    font-size: 16px;
  }
  .features .feature p {
    font-size: 12px;
  }
  .illustrations p {
    font-size: 12px;
  }
}
