/*
  BestRes Landing Page
  Author: Wojtek Witkowski <hi@wojtek.im>
  Version: 1.0
*/
html {
  -moz-box-sizing: border-box;
       box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  font-size: 16px; }

*, *:before, *:after {
  -moz-box-sizing: inherit;
       box-sizing: inherit;
  margin: 0;
  padding: 0; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.25;
  background-color: #fff;
  color: #333;
  -webkit-transition: background-color 0.15s ease, opacity 0.3s 0.5s ease-in;
          transition: background-color 0.15s ease, opacity 0.3s 0.5s ease-in;
  opacity: 0; }
  body.ready {
    opacity: 1; }

h1, h2, h3, h4 {
  margin: 0.25em 0; }

h1 {
  font-size: 2.25em; }

h2 {
  font-size: 1.75em;
  font-weight: 500; }

h3 {
  font-size: 1.5em;
  font-weight: 500; }

h4 {
  font-weight: 500; }

p {
  font-size: 1em;
  color: #999; }

a {
  text-decoration: none;
  color: #4A90E2;
  font-weight: 500; }
  a:hover {
    color: #1b5dab; }

.button {
  background: #4A90E2;
  color: #fff;
  text-decoration: none;
  outline: 0;
  font-size: 1.5em;
  font-weight: 500;
  padding: 0.6em 3.25em;
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  display: inline-block;
  position: relative;
  -webkit-transition: 0.25s all cubic-bezier(0.175, 0.885, 0.32, 1.275);
          transition: 0.25s all cubic-bezier(0.175, 0.885, 0.32, 1.275); }
  @media (max-width: 480px) {
    .button {
      padding: 0.6em 2.25em; } }
  .button:hover {
    color: #fff;
    background-color: #2275d7; }
  .button:active {
    -webkit-transform: scale(0.9);
        -ms-transform: scale(0.9);
            transform: scale(0.9); }

.button.ghost {
  font-size: 1.25em;
  padding: 0.5em;
  text-align: center;
  display: block;
  box-shadow: none;
  background: transparent;
  color: #4A90E2;
  border: 2px solid #4A90E2;
  -webkit-transition: 0.25s all;
          transition: 0.25s all; }
  .button.ghost:hover {
    background-color: #4A90E2;
    color: #fff; }

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 3em; }
  @media (min-width: 768px) {
    .wrap {
      padding: 0 2em; } }

section, footer {
  margin: 3em 0; }

header {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
  height: 860px;
  margin: 0;
  margin-top: -0.5em;
  margin-bottom: 3em;
  padding-top: 2em;
  background-image: -webkit-linear-gradient(270deg, #1D1D1F 0%, #4A4A4A 100%);
  background-image: linear-gradient(-180deg, #1D1D1F 0%, #4A4A4A 100%); }
  @media (max-width: 1052px) {
    header {
      height: 910px; } }
  @media (max-width: 767px) {
    header {
      height: 580px; } }
  header h1 {
    margin-top: 0; }
  header h2 {
    font-weight: 300;
    letter-spacing: 0.1px;
    font-size: 2.5em; }
    @media (max-width: 660px) {
      header h2 {
        font-size: 2em; } }
  header span {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85em; }

span {
  display: block;
  margin: 0.5em;
  color: #999; }

.tagline {
  margin: 3.75em 0; }

.download {
  margin-bottom: 3em; }

.macbook {
  background: url('../img/mbp@2x.png') no-repeat center;
  background-size: 100%;
  margin: 0 auto;
  display: block;
  position: relative;
  top: 4px;
  width: 736px;
  height: 432px; }
  @media (-webkit-max-device-pixel-ratio: 1), (max-resolution: 109dpi) {
    .macbook {
      background: url('../img/mbp.png') no-repeat center; } }
  @media (max-width: 767px) {
    .macbook {
      display: none; } }

.display-content {
  background: transparent;
  display: block;
  position: relative;
  margin: 0 auto;
  top: 30px;
  width: 556px;
  height: 350px;
  overflow: hidden;
  opacity: 0;
  -webkit-transition: 0.35s 2s opacity ease-in;
          transition: 0.35s 2s opacity ease-in; }
  .display-content.on {
    background: url('../img/yosemite-ui@2x.jpg') no-repeat center;
    background-size: cover;
    opacity: 1; }

nav {
  position: fixed;
  top: 0;
  z-index: 99;
  width: 100%;
  padding: 0.5em 0;
  background-color: rgba(255, 255, 255, 0.98);
  -webkit-transition: 0.35s all ease;
          transition: 0.35s all ease; }
  nav::after {
    content: '';
    display: block;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 2px;
    bottom: -2px; }
  nav .row {
    padding-bottom: 0.5em; }
  nav div[class^='col-'] {
    padding: 0; }
  nav h1 {
    font-size: 1.75em;
    margin: 0; }
    @media (max-width: 660px) {
      nav h1 {
        font-size: 1.25em; } }
  nav h2 {
    font-size: 1em;
    color: #999;
    margin-top: 0; }
    @media (max-width: 660px) {
      nav h2 {
        font-size: 0.85em; } }
  nav .nav-download {
    display: inline-block;
    position: relative; }
    @media (max-width: 660px) {
      nav .nav-download .button {
        padding: 0.25em; } }

.headroom {
  visibility: hidden; }

.pinned {
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
  visibility: visible; }

.unpinned {
  -webkit-transform: translateY(-200px);
      -ms-transform: translateY(-200px);
          transform: translateY(-200px);
  visibility: hidden; }

section.features {
  margin-top: 4.5em; }
  section.features p {
    width: 80%; }
  section.features .row > div[class^='col-'] {
    padding: 54px 0 0 1.25em;
    margin: 3em 0; }
  section.features .easy {
    background: url('../img/balloon.svg') no-repeat;
    background-position: 20px 0; }
  section.features .simple {
    background: url('../img/click.svg') no-repeat;
    background-position: 20px 0; }
  section.features .display {
    background: url('../img/display.svg') no-repeat;
    background-position: 20px 0; }

section.app-preview {
  background: url('../img/mtns.jpg') no-repeat center;
  background-size: cover;
  width: 100%;
  height: 200px;
  position: relative; }
  @media (min-width: 768px) {
    section.app-preview {
      height: 400px; } }
  section.app-preview .ui {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    position: relative;
    left: -10px; }
  section.app-preview .menubar {
    width: 100%;
    height: 22px;
    display: block;
    position: relative;
    background: rgba(255, 255, 255, 0.76);
    z-index: 2;
    -webkit-transition: 0.25s all ease;
            transition: 0.25s all ease; }
    section.app-preview .menubar.dark {
      background: rgba(0, 0, 0, 0.76); }
  section.app-preview .menubar-icon {
    background: url('../img/menubar-icon.png') no-repeat center;
    background-size: 100%;
    width: 24px;
    height: 22px;
    position: relative;
    top: -22px;
    left: 41px;
    z-index: 3; }
    @media (max-width: 520px) {
      section.app-preview .menubar-icon {
        left: 34px; } }
  section.app-preview .app-window {
    max-width: 494px;
    width: 100%;
    height: 167px;
    position: relative;
    top: -13px;
    background: url('../img/app-window-light.png') no-repeat center;
    background-size: 100%;
    -webkit-transition: 0.25s all ease;
            transition: 0.25s all ease; }
    @media (max-width: 520px) {
      section.app-preview .app-window {
        top: -41px;
        width: 300px; } }
    section.app-preview .app-window.dark {
      background: url('../img/app-window-dark.png') no-repeat center;
      background-size: 100%; }

aside {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center; }
  aside .toggle-container {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: row;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center; }
  aside h4 {
    -webkit-transition: 0.25s color ease;
            transition: 0.25s color ease; }
  aside span.hint {
    display: block;
    font-size: 0.85em;
    margin-top: 3em; }

/* Toggle */
.toggle {
  position: relative;
  top: 2px;
  margin: 0 1.5em;
  -webkit-tap-highlight-color: transparent; }

.toggle-wrapper {
  display: inline-block;
  position: relative;
  width: 4.5em;
  height: 1.85em;
  border-radius: 3em;
  background-color: #fff;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
  background: url('../img/day.svg') no-repeat;
  background-position: 75% 51%;
  background-size: 18px; }

.toggle-wrapper input {
  z-index: 5;
  opacity: 0;
  cursor: pointer; }

.toggle-wrapper input, .toggle-wrapper span.toggle-bg {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%; }

.toggle-wrapper span.toggle-bg {
  z-index: 1;
  border-radius: 1em;
  margin: 0; }

.toggle-wrapper span.toggle-knob {
  display: block;
  width: 2.25em;
  height: 2.25em;
  background: #4A90E2;
  border-radius: 100%;
  border: 2px solid #2275d7;
  position: absolute;
  margin: 0;
  top: -3px;
  left: -3px;
  z-index: 3; }

.toggle-wrapper input:checked ~ span.toggle-bg {
  background: url('../img/night.svg') no-repeat;
  background-size: 18px;
  background-position: 25% 48%;
  background-color: #4A4A4A; }

.toggle-wrapper input:checked ~ span.toggle-knob {
  left: 2.5em; }

.toggle-wrapper span {
  -webkit-transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease-out;
          transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease-out; }

.highlight {
  color: #4A90E2; }

section.made-by {
  width: 100%;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: row;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: rgba(0, 0, 0, 0.02); }
  @media (min-width: 768px) {
    section.made-by {
      height: 50vh; } }
  section.made-by img {
    width: 75px;
    height: 75px;
    border-radius: 100%;
    margin-right: 0.75em; }
  section.made-by h3 {
    margin: 0; }
  section.made-by h4 {
    color: #999;
    margin-top: 0; }

.dude {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: row;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 3em 0; }
  @media (max-width: 380px) {
    .dude h3 {
      font-size: 0.95em; } }
  @media (min-width: 381px) and (max-width: 660px) {
    .dude h3 {
      font-size: 1.25em; } }
  @media (max-width: 380px) {
    .dude h4 {
      font-size: 0.75em; } }

.dude-photo {
  height: 75px; }

.bottom-download {
  padding-top: 3em;
  text-align: center;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center; }
  @media (min-width: 768px) {
    .bottom-download {
      width: 35%;
      margin: 0 auto; } }
  .bottom-download span {
    font-size: 0.85em;
    margin-top: 1.5em;
    opacity: 0.7; }

footer {
  text-align: center;
  font-weight: 500;
  font-size: 1em;
  color: #999;
  margin-bottom: 0;
  padding-bottom: 3em; }
  footer span {
    display: block;
    position: relative;
    margin-top: 1.5em;
    font-size: 0.75em;
    font-weight: 700;
    opacity: 0.8; }

body.dark {
  background-color: #29292c;
  color: #fff; }
  body.dark nav {
    background-color: #29292c; }
    body.dark nav::after {
      background-color: rgba(0, 0, 0, 0.2); }
  body.dark section.made-by {
    background-color: rgba(0, 0, 0, 0.1); }
