/***************
* Layout *
***************/
.hero-cm {
  position: relative;
}

.hero-cm__hero{
  position: relative;
  z-index: 999;
}

.hero-cm__curve{
  position: absolute;
  width: 100%;
  bottom: -8px;
}

.hero-cm__text {
  text-align: center;
}

.hero-cm__subtitle{
  margin-bottom: 32px;
}

.hero-cm__bg {
  margin: 0 auto;
}
.hero-cm__image {
  text-align: center;
  margin: 24px auto;
}

section#app-illustrations img {
  max-width: 90%;
}
.hero-cm__cta-wrapper:first-child a {
  margin-left: auto;
}
/***************
* Buttons *
***************/

.hero-cm__cta-link-wrapper {
  display: block;
}

.hero-cm__img{
  max-width: 100%;
  height: auto;
}
.hero-cm__cta-wrapper {
  margin-bottom: 16px;
}

/***************
* Media Tablet *
***************/

@media (min-width:768px) {
  .hero-cm__hero {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-cm__hero.reverse {
    flex-direction: row-reverse;
  }
  .hero-cm__text {
    text-align: left;
  }  

  .hero-cm__col{
    max-width: 48%;
    flex-basis: 48%;
  }
  .hero-cm.full-width .hero-cm__col.hero-cm__text{
    width: 100%;
    text-align: center;
  }  
  .hero-cm__cta-link-wrapper {
    display: flex;
    margin-bottom: 16px;
  }

  .hero-cm__cta-link-wrapper a {
    margin: 0 8px;
  }
  .hero-cm__cta-wrapper {
    margin-right: 16px;
  }
}



.hero-cm.full-width #app-illustrations {
  pointer-events: none;
  position: absolute;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 1287px;
  right: 50%;
  margin-left: -644px;
  -webkit-transform: scale(.5) rotate(12deg) translateX(50px);
  transform: scale(.5) rotate(12deg) translateX(50px);
  -webkit-transform-origin: 50% 20%;
  transform-origin: 50% 20%;
  align-items: flex-end;
}
.hero-cm.full-width #app-illustrations.right{
  -webkit-transform: scale(.5) rotate(-12deg) translateX(50px);
  transform: scale(.5) rotate(-12deg) translateX(50px);
}
.hero-cm.full-width #app-illustrations.counter{
  -webkit-transform: rotate(-12deg);
  transform: rotate(-12deg);
  bottom: 100px;
}
.hero-cm.full-width #app-illustrations.right{
  left: 50%;
}
.hero-cm.full-width #app-illustrations.none {
  -webkit-transform: none;
  transform: initial;
  bottom: 0;
}

.hero-cm.full-width #app-illustrations div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border-radius: 38px;
  background: #fff;
  -webkit-box-shadow: inset 0 4px 7px 1px #fff, inset 0 -5px 20px rgba(173,186,204,.25), 0 2px 6px rgba(0,21,64,.14), 0 10px 20px rgba(0,21,64,.05);
  box-shadow: inset 0 4px 7px 1px #fff, inset 0 -5px 20px rgba(173,186,204,.25), 0 2px 6px rgba(0,21,64,.14), 0 10px 20px rgba(0,21,64,.05);
}
.hero-cm.full-width #app-illustrations .tablet-landscape {
  width: 512px;
  height: 352px;
  margin: 115px 50px 0;
}
.hero-cm.full-width #app-illustrations .phone-big {
  display: none;
}
@media (min-width: 670px){
  .hero-cm.full-width #app-illustrations {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    width: 512px;
    margin-left: -50px;
    top: 215px;
    -webkit-transform: rotate(12deg);
    transform: rotate(12deg);
    -webkit-transform-origin: 100% 0;
    transform-origin: 100% 0;
  }
  .hero-cm.full-width #app-illustrations.right{
    -webkit-transform: rotate(-12deg);
    transform: rotate(-12deg);
  }
  .hero-cm.full-width #app-illustrations [class^=tablet] {
    margin: 0;
  }
  .hero-cm.full-width #app-illustrations .tablet-landscape {
    width: 512px;
    height: 352px;
  }
  .hero-cm.full-width #app-illustrations img.tablet-frame{
    width: 420px;
  }
  .hero-cm.full-width #app-illustrations img.mobile-frame{
    width: 105px;
  }
}
@media (min-width: 880px){
  .hero-cm.full-width #app-illustrations.right {
    width: 829px;
    margin-left: -10px;
    bottom: 200px;
  }
  .hero-cm.full-width #app-illustrations {
    width: 829px;
    margin-left: -10px;
    bottom: -125px;
    z-index: 9999;
  }

  .hero-cm.full-width #app-illustrations .tablet-landscape {
    -ms-flex-item-align: end;
    align-self: flex-end;
    margin-right: 50px;
  }
  .hero-cm.full-width #app-illustrations .phone-big {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 140px;
    height: 280px;
    margin-right: 50px;
  }
}

@media (max-width: 1300px){ 
  .hero-cm.full-width #app-illustrations.right,
  .hero-cm.full-width #app-illustrations,
  .hero-cm.full-width #app-illustrations.counter {
    width: auto;
    margin-left: 0;
    left: auto;
    right: 30px;
    bottom: 0;
    top: auto;
    -webkit-transform: none;
    transform: none;
  }
  .hero-cm.full-width #app-illustrations.left{
    bottom: -100px;
    left 30px;
    right: auto;
  }
  .hero-cm.full-width #app-illustrations .tablet-landscape{
    margin-right: auto;
  }
}
@media (max-width: 1023px){ 
  .hero-cm.full-width #app-illustrations.right,
  .hero-cm.full-width #app-illustrations,
  .hero-cm.full-width #app-illustrations.counter{
    position: relative;
    transform: none;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 0 auto;
    text-align: center;
    width: auto;
  }

  .hero-cm.full-width #app-illustrations .tablet-landscape {
    width: 512px;
    height: 352px;
    margin: 0 auto;
    bottom: -100px;
    position: relative;
    z-index: 99999;
  }
  .hero-cm__cta-link-wrapper {
    display: flex;
    margin-bottom: 16px;
    justify-content: center;
  }
  .hero-cm.full-width #app-illustrations .phone-big{
    display: none;
  }
}
@media(max-width: 767px){
  .hero-cm.full-width #app-illustrations .tablet-landscape{
    max-width: 90%;
  }
}