@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,900&subset=latin-ext');

/* typography + box sizing */

* {
  box-sizing: border-box;
}

html, body {
  font-size: 2.125vh;
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: "Open Sans", sans-serif;
}
@media (max-height: 600px) {
  html, body {
    font-size: 12px;
  }
}

a {
  color: #403c83;
  text-decoration: none;
}

/* container size */

.container {
  width: 95%;
  margin: 0 auto;
}

@media screen and (min-width: 980px) {
.container {
  width: 60rem;
  margin: 0 auto;
}
}

/* generic classes */

input,
textarea {
  background: none;
  border: none;
  border-bottom: 2px solid #e7e7e7;
  font-size: 1.25rem;
  font-family: inherit;
  padding: 8px 10px;
  margin: 10px 20px;
  transition: border-bottom-color .2s ease-in-out;
}
input:focus,
textarea:focus {
  border-bottom-color: #292577;
  outline: none;
}

input[type="checkbox"]:focus {
  outline: auto;
}

.btn,
button,
input[type="submit"] {
  background: #52bb93;
  border: none;
  box-shadow: rgba(0,0,0,.2) 0 0 .375rem;
  color: #fff;
  border-radius: .25rem;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  padding: .5rem 1rem;
  margin: 0 .25rem;
  text-transform: lowercase;
  text-decoration: none;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.btn:focus,
button:focus,
input[type="submit"]:focus {
  box-shadow: rgba(0,0,0,.3) 0 0 .75rem;
}

.btn.single,
button.single,
input[type="submit"].single {
  display: inline-block;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.fine-print {
  font-size: smaller;
}
.continued {
  margin-bottom: 0;
}
.continued + p {
  margin-top: 0;
}

.clearfix {
  clear: both;
}

/* Homepage */

.homepage-hero {
  background: url(/images/hero.jpg) top center no-repeat;
  background-size: contain;
  min-height: 60vw;
  height: 50rem;
  padding: 0 0 5rem;
  text-align: center;
}
@media (orientation: portrait) {
  .homepage-hero {
    background: linear-gradient(to top, transparent 0%, transparent 15%,  white 30%, white 100%), url(/images/hero.jpg) bottom center no-repeat;
    background-size: auto, contain;
    height: 45rem;
  }
}

.homepage-menu {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
  padding: .5rem 0;
}

.homepage-menu h1,
.homepage-menu nav {
  width: 12rem;
  flex-grow: 1;
}
@media (max-width: 36rem) {
  .homepage-menu {
    flex-direction: column;
  }
  .homepage-menu h1,
  .homepage-menu nav {
    width: 100%;
  }
}

.homepage-menu h1 img {
  width: 10rem;
}

.homepage-menu .sign-in {
  padding-bottom: .25rem;
}

.homepage-menu a:not(.btn) {
  padding: .5rem .75rem;
}
.homepage-menu .btn {
  background: #fff;
  border: .125rem solid #403c83;
  box-shadow: none;
  color: #403c83;
  font-size: 1rem;
  padding: .5rem .75rem;
}

.features {
  background-color: #7156bd;
  background-image: linear-gradient(to left, #2a83ba, #7156bd);
  color: #fff;
  margin: 0;
  position: relative;
}
.features::before,
.features::after {
  background: inherit;
  content: '';
  display: block;
  height: 100%;
  left: 0;
  position: absolute;
  right: 0;
  transform: skewY(-8.5deg);
  transform-origin: 0;
}
.features::before {
  top: 0;
  transform-origin: 0;
  z-index: 2;
}
.features::after {
  bottom: 0;
  box-shadow: #201e41 0 0 20px;
  transform-origin: 100%;
  z-index: 1;
}
.features .bg-fixer {
  background: inherit;
  padding-top: 2rem;
  position: relative;
  z-index: 3;
}

.features h3 {
  color: #fff;
  font-size: 2.5rem;
  text-align: center;
  text-transform: uppercase;
}

.features .items {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.features .items .item {
  display: flex;
  flex-direction: column;
  max-width: 16rem;
  text-align: center;
}
.features .items .item h4 {
  height: 2rem;
  margin: 0 0 .5rem;
  vertical-align: middle;
}

.features .item-more {
  padding-top: 2.5rem;
  text-align: center;
}
.features .item-more h4 {
  margin: 0;
}

/* demo & media */

.demo {
  background: #403c83;
  color: #fff;
  margin-top: -12rem;
}

.demo .container {
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
  width: 90%;
  z-index: 3;
}

.demo-form {
  font-weight: 600;
  margin: 5rem 0;
}

.demo::before,
.demo::after {
  background: #403c83;
  content: ' ';
  display: block;
  height: 24rem;
  transform: skewY(-8.5deg);
}

.media-mentions h3 {
  opacity: .9;
}

.media-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.media-logos > a {
  display: inline-block;
  margin: .75rem 2.5rem;
  text-align: center;
  width: 15em;
}

.media-logos img {
  max-width: 15rem;
  opacity: .5;
  vertical-align: center;
}

.not-screenshot {
  flex-grow: 1;
  width: 75rem;
  max-width: 100%;
}

.screenshot-container {
  flex-grow: 1;
  margin: 0 auto;
  width: 25rem;
  max-width: 95%;
}

.screenshot-phone {
  background: #111;
  background: linear-gradient(to bottom right, #1a181c, #000);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 1rem;
  box-shadow: rgba(0,0,0,.5) 0 1rem 1rem;
  padding: 10% 5%;
  width: 100%;
}
.screenshot-phone:before {
  background: #0e0e0e;
  border-radius: .25rem;
  content: ' ';
  display: block;
  height: .5rem;
  margin: 0 auto;
  position: relative;
  top: -1rem;
  width: 30%;
  box-shadow: #060606 0 .125rem .25rem inset;
}

.screenshot-image img {
  width: 100%;
}

@media screen and (min-width: 980px) {
  .demo .container {
    flex-direction: row;
  }
  .demo-form,
  .media-mentions {
    text-align: left;
  }
  .media-logos {
    justify-content: space-between;
    margin: 1.5rem -3rem 0;
  }
  .screenshot-container {
    margin: 0 0 0 6rem;
  }
}

/* offer */

.offer {
  background: url(/images/purple-bg.jpg) no-repeat fixed center;
  background-size: cover;
  color: #fff;
  margin-top: -12rem;
  padding-top: 2rem;
}

.offer .container {
  position: relative;
  z-index: 3;
}

.offer > div > p {
  text-align: center;
  padding-bottom: 2rem;
}
.offer h3 {
  font-size: 2.5rem;
  text-align: center;
  text-transform: uppercase;
}
.offer h4 {
  color: #776ed2;
  margin-top: 0;
  text-align: center;
}

.offer a:not(.btn) {
  border-bottom: 1px solid rgba(210, 207, 255, .2);
  color: rgb(210, 207, 255);
}

.offer ul {
  list-style: none;
  padding-left: 0;
  -webkit-padding-start: 0;
}

.offer ul li {
  margin-bottom: .5rem;
  margin-left: 1.25rem;
}

.offer ul li:before {
  content: '✓';
  color: #403c83;
  margin-left: -1.25rem;
  margin-right: .5rem;
}

.offer-box-owner,
.offer-box-tenant {
  background: #fff;
  border-radius: .5rem;
  box-shadow: rgba(0, 0, 0, .25) 0 .25rem 1rem 0;
  margin: 2rem 0;
  padding: 1.5rem;
}

.offer-price-box {
  background: rgb(64, 60, 131);
  color: #fff;
  height: 8rem;
  margin: 0 -1.5rem;
  padding: 1.5rem;
  text-align: center;
}

.offer-price-box p,
.offer-bottom-box p {
  margin: 0;
}

.offer-box-tenant .offer-price-box {
  padding: 3rem;
}

.old-price {
  position: relative;
  text-align: center;
}
.old-price::after {
  background: #ff0000;
  content: ' ';
  display: block;
  height: 2px;
  width: 3rem;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -.75rem) rotateZ(-22.5deg);
}
.old-price s,
.old-price del {
  text-decoration: none;
}

.offer-price-box .price {
  color: #7d75ff;
}

.offer-boxes .amount {
  font-size: 1.5rem;
  font-weight: 600;
}
.offer-price-box .amount {
  color: #fff;
}

.offer-price-box .secondary {
  color: #7d75ff;
}

.offer-content-box {
  color: #1e1c3f;
}
.offer-content-box p {
  font-weight: 600;
  margin-left: 1.25rem;
}

.offer-bottom-box {
  color: rgba(30, 28, 63, .75);
  margin: 2.5rem 0 .5rem;
  text-align: center;
}
.offer-bottom-box :first-child {
  margin-bottom: .5rem;
}
.offer-bottom-box .secondary {
  color: rgba(30, 28, 63, .65);
}
.offer-bottom-box .tertiary {
  color: rgba(30, 28, 63, .35);
  font-size: smaller;
}

.offer-cta {
  text-align: center;
}

@media screen and (min-width: 980px) {
  .offer > div > p {
    color: #333;
  }
  .offer-boxes {
    display: flex;
    align-items: flex-start;
  }
  .offer-box-owner {
    order: 2;
    width: 60%;
  }
  .offer-box-tenant {
    margin-right: 1.5rem;
    order: 1;
    width: calc(40% - 1.5rem);
  }
  .offer a:not(.btn) {
    border-bottom: 1px solid rgba(55, 49, 142, .2);
    color: rgb(55, 49, 142);
  }
}

/* contact form */

.contact {
  background: #fff;
  color: #333;
  padding: 4rem 0;
  text-align: center;
}

.contact-form {
  background: #fff;
  border-radius: .5rem;
  box-shadow: rgba(0, 0, 0, .25) 0 .25rem 1rem 0;
  color: #111;
  margin: 2rem 1rem;
  padding: 1.5rem;
}
.contact-form input,
.contact-form textarea {
  margin: .5rem 0;
  width: 100%;
}
.contact-form .btn {
  margin: 0 auto;
  width: 10rem;
  max-width: 100%;
}

/* footers */

.mini-footer {
  color: #aaa;
  margin: 4em 0;
  text-align: center;
}
.mini-footer a {
  color: #999;
}
.mini-footer .made-by a {
  font-weight: 600;
}
.mini-footer .rules::before {
  content: ' · ';
}

.full-footer {
  background: #fff;
  color: #999999;
  padding: 4rem 0;
}
.full-footer p {
  margin: 0;
}
.full-footer a {
  color: #999999;
}
.full-footer .abramowicz-brand {
  font-weight: 600;
}

.homepage .full-footer .container > div {
  margin-bottom: 1rem;
}
@media screen and (min-width: 980px) {
  .homepage .contact {
    margin-top: -5rem;
    padding: 10rem 0 0;
    position: relative;
  }
  .homepage .contact::before {
    background: inherit;
    content: '';
    display: block;
    height: 30rem;
    margin-bottom: -24rem;
    left: 0;
    position: absolute;
    right: 0;
    transform: skewY(-8.5deg);
    transform-origin: 0;
    top: 0;
    z-index: 0;
  }
  .homepage .contact .container {
    position: relative;
    z-index: 1;
  }
  .homepage .full-footer .container {
    display: flex;
    justify-content: space-between;
  }
  .homepage .full-footer .container > div {
    margin-bottom: 0;
  }
}

/* Registration, login, password reset... pages */

body.page {
  background: #edf0f4;
}

body.page header {
  text-align: center;
}

body.page header h1 {
  display: inline-block;
  margin: auto;
  max-width: 100%;
  width: 30rem;
}

body.page header .logo svg {
  height: 4rem;
  display: inline-block;
  fill: #b5b8cc;
  margin: 1em 0 .5em;
}

body.page .page-form {
  background: #fff;
  border-radius: .5rem;
  box-shadow: rgba(0, 0, 0, .05) 0 0 1rem;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 1rem;
  max-width: 95%;
  width: 30rem;
}

@media screen and (min-width: 980px) {
  body.page .page-form {
    padding: 1.5rem 2.5rem;
  }
}

body.page .page-form h2 {
  margin-top: 0;
}

body.page .page-form input[type=text],
body.page .page-form input[type=password],
body.page .page-form input[type=email] {
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}
body.page .page-form input[type=checkbox],
body.page .page-form input[type=submit] {
  margin-left: 0;
}

.page-form .show-referral {
  color: rgb(64, 60, 131);
  cursor: pointer;
}
.page-form .referral p {
  margin: 1rem 0;
}
.page-form .referral {
  margin: 1rem 0 1.5rem;
}
.page-form .tos.form-field {
  margin-bottom: 1rem;
}

/* alerts, seen only on reg, login, etc. pages */

.alert {
  background: #FC5C7D;
  background: -webkit-linear-gradient(135deg, #6A82FB, #FC5C7D);
  background: linear-gradient(135deg, #6A82FB, #FC5C7D);
  color: white;
  margin-bottom: 1rem;
  padding: 1rem;
  text-shadow: rgba(0,0,0,.3) 0 0 .5rem;
}
.danger.alert {
  background-color: #d32f2f;
  background: -webkit-linear-gradient(135deg, #d32f2f, #fc7d5c);
  background: linear-gradient(135deg, #d32f2f, #fc7d5c);
}
.alert p:first-child {
  margin-top: 0;
}
.alert p:last-child {
  margin-bottom: 0;
}
.page .alert {
  border-radius: .5rem;
  margin: 0 auto 1rem;
  max-width: 95%;
  width: 30rem;
}
.page .alert .container {
    width: auto;
}

/* error page design */

.http-error {
  color: #333;
  margin-top: 0;
}
.error-code {
  display: block;
  font-size: 7rem;
  font-weight: 300;
  margin: 0;
  padding: 0;
}
