*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    margin: 0;
    font-family: 'Karla', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6{
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
}

.a-btn{
    border: 1px solid white;
    padding: 0.5em 1em;
    width: 90%;
    margin:0 auto;
}

.header{
    width: 100%;
    height: 63px;
    z-index: 3;
    position: fixed;
    background-color: white;
}

.header .logo{
    margin: 1.5em 2em;
}

.header .nav{
    list-style: none;
    clear: both;
    transition: height .2s ease-out;
    background-image: url("images/bg-pattern-mobile-nav.svg");
    background-repeat: no-repeat;
    text-align: center;
    position: fixed;
    width: 100%;
    height: 0;
    top: 63px;
    background-position: 0 90%;
    background-size: 100%;
    font-size: 1.2em;
    line-height: 200%;
    overflow: hidden;
    background-color: hsl(270, 9%, 17%);
}

.header .nav a{
    display: block;
    color: white;
    text-decoration: none;
    margin: 1.5em 0;
    text-transform: uppercase;
}

.header .nav .a-btn{
    margin:0 auto;
}

.header #nav-chk{
    display: none;
}

.header label{
    float: right;
    margin: 1em;
}

#nav-chk:checked ~ label img{
    content: url("images/icon-close.svg");
}

.header #nav-chk:checked ~ .nav{
    height: 100%;
}

.intro img{
    width: 100%;
}

.insure{
    color: white;
    background: hsl(256, 26%, 20%);
    text-align: center;
    margin: -0.5em 0 0 0;
    padding: 5em 3em;
}

.insure h1{
    font-size: 2.5em;
    transform: translateZ(2px);
}

.insure p{
    font-size: 14px;
    line-height: 1.75em;
    margin: 1em 0 2em 0;
}

.insure .a-btn{
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    padding: 0.5em 1.5em;
}

.insure .a-btn:hover{
    background-color: white;
    color: hsl(256, 26%, 20%);
}

.insure::before{
    display: block;
    content: "";
    background-image: url('images/bg-pattern-intro-left-mobile.svg');
    background-repeat: no-repeat;
    background-position: 0 left;

    position: relative;
    height: 175px;
    width: 100%;

    left: -3em;
    top: 6.25em;

    margin-top: -11em;

    transform: translateZ(1px);
}

.insure::after{
    display: block;
    content: "";
    height: 334px;
    width: 100%;
    position: relative;
    right: -3em;
    bottom: 3em;
    background-image: url("images/bg-pattern-intro-right-mobile.svg");
    background-position: right 0;
    background-repeat: no-repeat;
    margin-bottom: -20em;
}

.about{
    text-align: center;
    margin: 10em 2em 5em 2em;
    color: hsla(270, 9%, 17%, .9);
}

.about h1{
    margin-bottom: 1.5em;
    font-size: 2.5em;
}

.about h1::before{
    display: block;
    content: "";
    width: 125px;
    height: 1px;
    background-color: hsla(273, 4%, 51%, .5);

    position: relative;
    margin: 0.5em auto;
}

.about img{
    width: 4.5em;
}

.about h3{
    margin: 1em 0;
    font-size: 1.5em;
}

.about p{
    color: hsl(273, 4%, 51%);
    line-height: 1.75em;
}

.about div{
    margin-bottom: 3em;
}

.c-how{
    padding: 2em 0 5em 0;
}

.how-we-work{
    background-color: hsl(256, 26%, 20%);
    color: white;
    text-align: center;

    margin: 0 1em;
    padding: 3em;

    transform-style: preserve-3d;
}

.how-we-work::before{
    display: inline-block;
    content: "";
    background-image: url("images/bg-pattern-how-we-work-mobile.svg");
    background-repeat: no-repeat;
    background-position: top right;

    position: relative;
    height: 325px;
    width: 100%;
    right: -3em;
    top: 16.35em;
    margin-top: -20em;

    transform: translateZ(1px);
}

.how-we-work h1{
    margin-bottom: 1em;
    transform: translateZ(2px);
}

.how-we-work a{
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    color: white;
    padding: 0.5em 0.25em;
    width: 60%;
    margin-bottom: 3em ;
}

.how-we-work a:hover{
    color: hsl(256, 26%, 20%);
    background-color: white;
}

.footer{
    color: hsl(0, 0%, 98%);
    text-align: center;
    font-size: 14px;

    transform-style: preserve-3d;
}

.footer::before{
    display: block;
    content: "";
    background-image: url("images/bg-pattern-footer-mobile.svg");
    background-repeat: no-repeat;
    background-position: top left;

    position: relative;
    height: 200px;
    width: 100%;

    margin-top: -10em;
    top: 10em;

    transform: translateZ(1px);
}

.footer-head{
    transform: translateZ(2px);
}

.footer-head>img{
    margin: 2em 0;
}

.footer .social img{
    margin: 0 0.25em;
}

.footer-head::after{
    display: block;
    content: "";
    width: 90%;
    height: 1px;
    background-color: hsla(273, 4%, 51%, .3);

    position: relative;
    margin: 2em auto;
}

.footer h4{
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: hsl(273, 4%, 51%);
    padding: 1.5em 0;
}

.footer a{
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    color: hsl(270, 9%, 17%);
    font-weight: 700;
    padding: 0.5em 0;
}

.footer a:hover{
    text-decoration: underline;
}

.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }

@media (min-width:720px){
    .header .nav{
        display: flex;
        height: 100%;
        width: 70%;
        position: unset;
        float: right;
        background: none;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
    }

    .header .nav a{
        color: hsl(273, 4%, 51%);
        margin: 0 0.5em;
    }

    .header .nav a:hover{
        color: hsl(270, 9%, 17%);
    }

    .header .nav .a-btn{
        display: inline;
        color: hsl(270, 9%, 17%);
        border: 1px solid hsl(270, 9%, 17%);
        margin: 0 1.5em 0 1em;
    }

    .header .nav .a-btn:hover{
        background-color: hsl(270, 9%, 17%);
        color: white;
    }

    .header label{
        display: none;
    }

    .container{
        display: grid;
        grid-template-columns: auto auto;
        padding: 0 3em 3em 3em;
        background-color: hsl(256, 26%, 20%);
        transform-style: preserve-3d;
    }

    .intro img{
        content: url("images/image-intro-desktop.jpg");
        order: 2;
        width: 70%;
        margin: 0 auto;
        padding-top: 5em;
        position: relative;
        top: 12em;
        margin-top: -7em;
    }

    .insure{
        text-align: left;
        max-width: 575px;
        padding-bottom: 0;
    }

    .insure h1{
        font-size: 3em;
    }

    .insure h1::before{
        display: block;
        content: "";

        position: relative;
        height: 1px;
        width: 100px;
        background-color: white;

        margin: 2em 0 1em 0;
    }

    .insure::before, .insure::after{
        display: none;
    }

    .container::before{
        display: block;
        content: "";
        background-image: url("images/bg-pattern-intro-right-desktop.svg");
        background-repeat: no-repeat;
        background-position: top right;
        float: right;
        position: absolute;
        width: 100%;
        height: 600px;
        z-index: 5;
        /* margin-top: -35em; */
        /* top: 37.5em; */
        margin-top: -1em;
    }

    .intro::after{
        display: block;
        content: "";
        background-image: url("images/bg-pattern-intro-left-desktop.svg");
        background-repeat: no-repeat;
        background-position: bottom left;
        position: relative;
        top: 15em;
        width: 100%;
        height: 500px;
        margin-left: -6em;
        margin-top: -25em;
    }

    .about{
        text-align: left;
        padding: 0 3em;
    }

    .about h1::before{
        margin: 0.5em 0;
    }

    .about .table{
        display: flex;
    }

    .about .table>div{
        padding: 0 1em;
    }

    .c-how{
        padding: 0 4em 8em 4em;
        background-color: white;
    }

    .how-we-work{
        text-align: left;
        padding: 0 3em 1em 3em;
        /* padding: 0 1em; */
    }

    .how-we-work h1{
        font-size: 3.5em;
        width: 500px;
        display: inline-block;
        margin-right: 7em;
    }

    .how-we-work .a-btn{
        display: inline-block;
        width: 10%;
        padding: 0.5em 1em;
        text-align: center;
        box-sizing: unset;
    }

    .how-we-work::before{
        background-image: url("images/bg-pattern-how-we-work-desktop.svg");
        height: 250px;
        margin-top: -70em;
        top: 14.5em;
    }

    .footer{
        text-align: left;
        padding: 0 5.5em;
        margin-top: 7em;
    }

    .footer-head{
        margin-top: -15em;
    }

    .footer-head .social{
        width: 20%;
        float: right;
        margin: 1.5em 0;
        padding-left: 7.5%;
    }

    .footer-head::after{
        margin: 1em 0;
        width: 100%;
    }

    .links{
        display: flex;
        justify-content: space-between;
        padding-right: 8em;
        margin-bottom: 3em;
        z-index: 5;
        position: relative;
    }

    .footer::before{
        background-image: url("images/bg-pattern-footer-desktop.svg");
        margin-left: -5.5em;
        height: 250px;
        width: 600px;
        top: 0;
        z-index: -1;
    }
}

/* a{
    text-decoration: none;
    color: white;
    font-weight: 400;
}

.btn-anchor{
    border: 1px solid white;
}

.header{
    width: 100%;
    height: 63px;
    z-index: 3;
    position: fixed;
    background-color: white;
}

.header .menu{
    clear: both;
    height: 0;
    transition: height .2s ease-out;
    background-image: url("images/bg-pattern-mobile-nav.svg");
    background-repeat: no-repeat;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 63px;
    background-position: 0 90%;
    background-size: 100%;
    font-size: 1.2em;
    line-height: 200%;
}

.header .menu img{
    margin-top: 50px;
}

.header ul{
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    background-color: hsl(270, 9%, 17%);
    text-align: center;
    z-index: 100;
}

.header ul a{
    display: block;
    padding: 20px;
    text-align: center;
}

.header .btn-anchor{
    display: block;
    width: fit-content;
    padding: 15px 120px;
    margin: auto;
}

.header .logo{
    float: left;
    display: block;
    padding: 10px 20px 25px 20px;
    margin: 10px 0 0 0;
}

.header .menu-icon{
    margin: 10px 15px 0 0;
    cursor: pointer;
    float: right;
}

.menu-icon>img{
    content: url("images/icon-hamburger.svg");
}

.header .menu-icon>img{
    width: 100%;
    height: 100%;
}

.header .menu-btn{
    display: none;
}

.header .menu-btn:checked ~ .menu{
    height: 100%;
}

.header .menu-btn:checked ~ .menu-icon>img{
    content: url("images/icon-close.svg");
}

.intro{
    background-color: hsl(256, 26%, 20%);
    background-image: url("images/bg-pattern-intro-left-mobile.svg");
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    position: relative;
    padding-bottom: 100px;
    width: 100%;
    margin-top: -35px;
}

.intro::after {
    display: block;
    content: "";
    height: 334px;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: -210px;
    background-image: url("images/bg-pattern-intro-right-mobile.svg");
    background-position: right 0;
    background-repeat: no-repeat;
  }

#main{
    width: 100%;
    padding: 0;
    margin: 0;
}

.intro h1{
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 2.7em;
    padding: 50px 30px 0 30px;
    line-height: 100%;
    z-index: 1000;
}

.intro p{
    padding: 0 20px 40px 20px;
    line-height: 155%;
}

.intro .btn-anchor{
    padding: 10px 30px;
    margin-bottom: 10px;
}

.intro .btn-anchor:hover{
    background-color: white;
    color: hsl(256, 26%, 20%);
    
}

.how-we-work{
    padding-top: 150px;
    padding-bottom: 50px;
    width: 100%;
    text-align: center;
}

/* .how-we-work hr{
    box-sizing: border-box;
    border: 1px solid rgba(131, 125, 135, 0.3);
    float: right;
    width: 75px;
    padding: 0 80px;
    margin-right: -1em;
} 

.content-wrapper::before{
    display: block;
    content: "";
    background-color: #b29eb1;
    height: 1px;
    width: 40%;
    position: absolute;
    top: -1px;
    left: 50%;
    -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
}

.how-we-work h1{
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    padding-bottom: 30px;
}

.how-we-work .snappy{
    width: 100%;
}

.how-we-work img{
    width: 70px;
}

.how-we-work h2{
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
}

.how-we-work p{
    color: hsl(273, 4%, 51%);
    line-height: 150%;
    padding: 0 20px 25px 20px;
}

.find-more{
    background-color: hsl(256, 26%, 20%);
    color: white;
    position: relative;
    padding-bottom: 75px;
    margin: 75px 0;
}

.find-more img{
    position: absolute;
    right: 0;
    width: 40%;
    z-index: 1;
}

.find-more h1{
    padding: 30px 40px 15px 40px;
    margin-right: 0;
    z-index: 3;
}

.find-more .btn-anchor{
    padding: 15px 30px;
}

.footer{
    text-align: center;
    background-color: hsl(0, 0%, 98%);
    position: relative;
    padding-bottom: 50px;
}

.bg-footer{
    position: absolute;
    left: 0;
    width: 100%;
}

.footer>.logo{
    padding-top: 100px;
}

.socials{
    padding: 25px 0;
    margin: auto;
    width: 100%;
}

.socials img{
    display: inline;
    padding-left: 15px;
}

.footer hr{
    width: 90%;
    color: rgba(131, 125, 135, 0.3);
    margin-bottom: 25px;
}

.footer div p{
    color: hsl(273, 4%, 51%);
    padding-bottom: 15px;
    font-weight: 700;
    font-size: 14px;
}

.footer div a{
    color: hsl(270, 9%, 17%);
    display: block;
    font-weight: 700;
    font-size: 14px;
    padding-bottom: 10px;
} */


/* 
@media only screen and (min-width: 750px){
    .header{
        height: 75px;
        z-index: 5;
    }

    .header .logo{
        padding-left: 50px;
    }

    .header .menu{
        clear: none;
        background-color: white;
        max-height: 100%;
        float: right;
        display: grid;
        grid-template-columns: auto auto auto auto;
        padding-top: 20px;
        padding-right: 50px;
    }

    .header ul a{
        display: inline;
        color: hsl(273, 4%, 51%);
        font-weight: 700;
    }

    .header ul a:hover{
        color: hsl(270, 9%, 17%);
    }

    .header .menu .btn-anchor{
        padding: 10px 20px;
        margin-top: -10px;
        color: hsl(270, 9%, 17%);
        border: 1px solid hsl(270, 9%, 17%);
    }

    .header .menu .btn-anchor:hover{
        color: white;
        background-color: hsl(270, 9%, 17%);
    }

    .header .menu img{
        display: none;
    }

    .header .menu-icon{
        display: none;
    }

    #main{
        content: url("images/image-intro-desktop.jpg");
        width: 35%;
        float: right;
        margin: 60px 75px 0 0;
        z-index: -1;
    }

    #left-side{
        display: none;
    }

    #right-side{
        content: url("images/bg-pattern-intro-left-desktop.svg");
        position: absolute;
        z-index: 5;
        transform: translate(-370%,0);
    }

    .intro{
        text-align: left;
        z-index: -5;
        position: relative;
    }
} */