/* fonts*/

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&family=Roboto:wght@400&display=swap');

/* variables */

:root {
    --color-background: #d4d4d4;
    --color-text: #181818;
    --color-top: #e7e7e7;
    --color-top-text: #1f1f1f;
    --color-primary: #ee6b00;
    --color-accent: #ee4300;
    
    --ff-logo: 'Roboto', sans-serif;
    --ff-title: 'Roboto', sans-serif;
    --ff-serif: 'Lato', sans-serif;
}

/****/

*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
    font-family: var(--ff-serif);
    font-size: 1.25em;
    color: var(--color-text);
    letter-spacing: 0.5px;
    line-height: 1.2em;
    background-color: var(--color-background);
    text-align: center;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main { flex-grow: 1; }

img {
    display: block;
    max-width: 100%;
}

section {
    padding: 3em 1em;
}

.container {
    max-width: 980px;
    margin: 0 auto;
}

.hidden {
    display: none;
}

/* typography */

body,
ul,
h1,
h2,
h3,
h4,
p {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3 {
    font-family: var(--ff-title);
    line-height: 1.2;
}

h1 {
    font-size: 1rem;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 1em;
    letter-spacing: 1px;
    font-weight: 200;
}

h3 {
    font-size: 1em;
    font-weight: 200;
    margin-bottom: 0.5em;
    letter-spacing: 1px;
}

p {
    margin-bottom: 0.3em;
}

/* buttons */

.button-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/* layout */

header.top {
    height: 3em;
    background-color: var(--color-top);
    color: var(--color-top-text);
    padding: 0.5em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

header.top img {
    display: block;
    height: 2em;
    border-radius: 0.5em;
    margin-right: 1em;
}

header.top h1 {
    display: inline;
    height: 1em;
    line-height: 2em;
    letter-spacing: 2px;
    font-weight: 200;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
}

header.top a {
    text-decoration: none;
    color: var(--color-top-text);
}

body, main {
    width: 100%;
}

.hero {
    margin-top: 3em;
    padding: 3em 1em;
    color: #e7e7e7;
    background-color: #573d17;
    background-image: url('../img/stairs_bg_min.jpg');
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 35vh;
}

.hero .row {
    display: flex;
    flex-direction: column;
}

.hero .badge {
    margin: 2em 0.5em;
    height: 6vh;
}

.phone {
    width: 80vw;
    max-width: 25em;
    margin: 0 auto;
    padding: 0.3em;
    border-radius: 0.5em;
    background-color: #000;
}

.slideshow {
    position: relative;
}

.phone img {
    opacity: 0;
    width: 100%;
    border-radius: 0.3em;
    position: absolute;
    z-index: -10;
}

.phone img.old {
    position: absolute;
    top: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 2;
}

.phone img.current {
    position: relative;
    width: 100%;
    opacity: 1; 
    z-index: 1;
}

.tools {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.tools p {
    margin-bottom: 1em;
}

.tools .row {
    display: flex;
    flex-direction: column;
}

.tools h3 {
    flex: 100%;
    text-align: left;
}

.tools ul {
    margin-left: 1em;
    margin-right: 1em;
    margin-bottom: 1em;
    text-align: left;
    font-size: 0.8em;
}

.social {
    background-color: #161616;
    color: #ececec;
    font-size: 0.8em;
}

.social p {
    margin-bottom: 1em;
}

.social a {
    color: var(--color-primary);
    text-decoration: none;
}

.social a:hover {
    text-decoration: underline;
}

.social .im {
    color: #f3f3f3;
    font-size: 3em;
    margin-top: 0.3em;
}

@media only screen and (min-width: 800px) {
    .hero .row {
        flex-direction: row;
    }

    .hero .info {
        margin-top: 3em;
        margin-right: 2em;
        text-align: left;
        flex: 100%;
    }

    .button-group {
        justify-content: left;
    }

    .hero .badge {
        margin-top: 2em;
        margin-left: 0;
        height: 2.5em;
    }

    .phone {
        flex: 100%;
        max-width: 15em;
    }
    
    .tools .row {
        flex-direction: row;
    }
}

/* Portrait */
@media (max-aspect-ratio: 1/1) and (max-width: 800px) {
    
    .hero {
        /* -webkit-clip-path: polygon(0 0, 0 100%, 5% 95%, 10% 100%, 20% 100%, 30% 90%, 40% 100%, 50% 90%, 100% 0); */
        clip-path: polygon(0 0,
        0% 99%, 5% 100%, 10% 99%, 15% 100%, 20% 99%, 25% 100%, 30% 99%, 35% 100%, 40% 99%, 45% 100%,
        50% 99%, 55% 100%, 60% 99%, 65% 100%, 70% 99%, 75% 100%, 80% 99%, 85% 100%, 90% 99%, 95% 100%,
        100% 99%, 100% 0%);
    }
}

/* Landscape */
/* @media (min-width: 1200px) {
    .hero {
        -webkit-clip-path: polygon(0 0, 0% 85%, 10% 100%, 90% 100%, 100% 85%, 100% 0%);
        clip-path: polygon(0 0, 0% 85%, 10% 100%, 90% 100%, 100% 85%, 100% 0%);
    }
} */