/*
 * [PAGESPEED] optimizations to improve PageSpeed / Lighthouse scoring.
 */

body {
    font-family: Roboto, sans-serif;
    background-color: #F9F9F9;
    font-size: 100%;
    margin: 0;
    padding: 0;
    min-width: 20rem;
}

a, i {
    text-decoration: none;
    -webkit-tap-highlight-color: transparent; /* http://stackoverflow.com/a/45050338 */
}

.page.hidden {
    display: none;
}

/* Sugarloaf page. {{{
 *
 * First slice.
 */

#slice1 {
    position: relative;
    height: calc(100vh - 120px);
    overflow-x: hidden;
}

#slice1-play-overlay {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
}

/* http://css-tricks.com/snippets/css/toggle-visibility-when-hiding-elements */
#slice1-play-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    transition: visibility 0s linear 900ms, opacity 900ms;
}

#slice1-play-button {
    font-size: 88px;
    cursor: pointer;
    opacity: 0.8;
}

#slice1-play-button.hidden { /* [PAGESPEED] */
    display: none;
}

#slice1-pause-overlay {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    opacity: 0;
    visibility: hidden;
}

/* http://css-tricks.com/snippets/css/toggle-visibility-when-hiding-elements */
#slice1-pause-overlay.visible {
    transition: visibility 0s linear 0ms, opacity 900ms;
}

#slice1:hover #slice1-pause-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#slice1-pause-button {
    font-size: 88px;
    cursor: pointer;
    opacity: 0.8;
}

#vid-placeholder {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wistia-noninteractive {
    pointer-events: none;
}

/*
 * Second slice.
 */

#slice2 {
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.075);
}

#slice2 > div {
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 1020px;
    margin: 0 auto;
    padding: 20px 16px;
}

#slice2 .visito-logo {
    min-width: 7.2rem;
    height: 2rem;
    background-color: #F15A24;
    margin-bottom: 10px;
    -webkit-mask: url(img/logo-visito.svg) no-repeat left;
    mask: url(img/logo-visito.svg) no-repeat left;
}

#slice2 .visito-logo + h1 {
    margin: 0;
    font-weight: 300;
    font-style: italic;
    color: #535353;
    text-align: right;
}

#slice2 .visito-logo + h1 > .sep {
    color: #F15A24;
    font-weight: 500;
}

#slice2 .visito-logo + h1 > .suffix {
    display: none;
}

/*
 * Third slice.
 */

#slice3 {
    background-size: cover;
}

#slice3.hidden { /* [PAGESPEED] */
    display: none;
}

#slice3.load-bg { /* [PAGESPEED] */
    background-image: url(img/bg-sugarloaf.svg);
}

#slice3 > div {
    max-width: 1020px;
    margin: 0 auto;
    padding: 20px 16px;
}

#slice3 > div > h1 {
    text-align: center;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 1.25rem;
    color: #535353;
    margin: 35px 0 50px 0;
    letter-spacing: 1pt;
}

#slice3 > div > h1 .blue {
    color: #007791;
}

#slice3-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-gap: 16px;
    margin-bottom: 40px;
}

#slice3-grid article {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 225px;
    background-color: white;
    border-radius: 10px;
    padding: 16px;
}

#slice3-grid article.shake {
    animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    transform: translate3d(0, 0, 0);
}

#slice3-grid article header {
    display: flex;
}

#slice3-grid article header i {
    display: none;
}

#slice3-grid article header h1 {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0;
    color: #535353;
    letter-spacing: 1pt;
    white-space: nowrap;
}

#slice3-grid article header h2 {
    color: #787878;
    font-size: 0.625rem;
    font-weight: 300;
    margin: 0 0 1px 0;
    letter-spacing: 0.5pt;
}

#slice3-grid article section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    font-weight: 300;
    font-size: 1rem;
    color: #EE751C;
    margin: 0;
    min-width: 5rem;
    text-align: center;
    text-transform: uppercase;
}

#slice3-grid article section > div {
    width: 100%;
    position: relative;
}

#slice3-grid article section > div::after {
    display: block;
    content: " ";
    width: 50%;
    height: 5px;
    background-color: #B3B3B3;
    position: absolute;
    bottom: -15px;
    left: 25%;
}

#slice3-grid article footer h1 {
    font-weight: 300;
    font-size: 0.625rem;
    text-align: center;
    margin: 0;
    color: #787878;
    letter-spacing: 0.5pt;
}

#slice3-grid article footer h2 {
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    margin: 0;
    color: #535353;
    letter-spacing: 0.875pt;
}

#slice3-chart-title {
    font-weight: 300;
    font-size: 1rem;
    color: #535353;
    letter-spacing: 1pt;
    text-transform: uppercase;
    margin: 40px 0 0 0;
}

#slice3-chart-title + h2 {
    font-weight: 500;
    font-size: 0.75rem;
    color: #535353;
    text-transform: uppercase;
    margin: 5px 0;
}

#slice3-chart-title + h2 + hr {
    width: 10%;
    border: 3px solid #F15A24;
    margin: 0;
}

#slice3-chart {
    pointer-events: none;
    padding: 45px 0;
    height: 400px;
    box-sizing: border-box;
}

#slice3-totals {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 320px;
    margin: 0 auto 30px auto;
}

#slice3-totals h1 {
    font-size: 3.75rem;
    line-height: 3.175rem;
    height: 3rem;
    color: #E4972E;
    text-align: center;
    margin: 0 0 15px 0;
}

#slice3-totals h2 {
    font-weight: 300;
    font-size: 1rem;
    color: #535353;
    letter-spacing: 0.5pt;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}

#slice3-totals h3 {
    font-weight: 300;
    font-size: 0.75rem;
    color: #535353;
    letter-spacing: 0.5pt;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}

#slice3-chart-helptext {
    display: none;
}

#slice3 .visito-logo-monitored {
    display: none;
}

/*
 * Footer.
 */

body > footer {
    background-color: #B3B3B3;
    padding: 30px 0;
    color: white;
}

body > footer.hidden { /* [PAGESPEED] */
    display: none;
}

body > footer .visito-logo {
    height: 2rem;
    background-color: white;
    -webkit-mask: url(img/logo-visito.svg) no-repeat center;
    mask: url(img/logo-visito.svg) no-repeat center;
}

#copyright {
    margin-top: 30px;
    text-align: center;
    font-size: 9pt;
    font-weight: 300;
    letter-spacing: 0.5pt;
}

/*
 * Styles for larger screens.
 */

@media all and (min-width: 30em) {
    #slice1 {
        height: calc(100vh - 78px);
    }

    #slice2 > div {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    #slice2 .visito-logo {
        margin-bottom: 0;
    }

    #slice2 .visito-logo + h1 {
        letter-spacing: 1pt;
    }

    #slice3-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
        grid-gap: 20px;
    }

    #slice3-grid article {
        height: 250px;
    }

    #slice3-chart-title {
        margin-left: 63px;
    }

    #slice3-chart-title + h2 {
        margin-left: 63px;
    }

    #slice3-chart-title + h2 + hr {
        margin-left: 63px;
    }
}

@media all and (min-width: 60em) {
    html {
        font-size: 130%;
    }

    #slice1 {
        height: calc(100vh - 89px);
    }

    #slice2 > div {
        padding: 20px 60px;
    }

    #slice2 .visito-logo + h1 {
        font-size: 2rem;
    }

    #slice2 .visito-logo + h1 > .suffix {
        display: inline;
    }

    #slice3 > div {
        padding: 20px 60px;
    }

    #slice3 > div:first-child > h1 {
        margin: 50px 40px 60px 40px;
    }

    #slice3-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    }

    #slice3-grid article {
        height: 275px;
    }

    #slice3-grid article header i {
        display: block;
        color: #B3B3B3;
        font-size: 1.75rem;
        margin-right: 8px;
    }

    #slice3-grid + div > div:first-child {
        display: inline-block;
        box-sizing: border-box;
        padding-right: 30px;
        width: 66.666%;
        vertical-align: top;
    }

    #slice3-grid + div > div:first-child + div {
        display: inline-block;
        box-sizing: border-box;
        padding-left: 30px;
        width: 33.333%;
        vertical-align: top;
    }

    #slice3-totals {
        margin: 60px auto;
    }

    #slice3-chart-helptext {
        display: block;
        font-size: 0.5rem;
        color: #535353;
        margin: 75px 0 0 0;
        text-align: justify;
        letter-spacing: 0.5pt;
    }

    #slice3 .visito-logo-monitored {
        display: block;
        height: 2.5rem;
        margin-top: 60px;
        background-color: #F15A24;
        -webkit-mask: url(img/logo-visito-monitored.svg) no-repeat center;
        mask: url(img/logo-visito-monitored.svg) no-repeat center;
    }
}
/* }}} */

/*
 * Animations.
 */

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* vi:set fdm=marker: */
