body {
    margin: 0;
    font-family: 'Garet', Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    color: #222;
}

/* ================= FONTS ================= */
@font-face {
    font-family: 'Garet', sans-serif;
    src: url('https://d2nt2stsaqz8ux.cloudfront.net/globalstatic/font/Garet-Book.woff2') format('woff2'),
         url('https://d2nt2stsaqz8ux.cloudfront.net/globalstatic/font/Garet-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Garet', sans-serif;
    src: url('https://d2nt2stsaqz8ux.cloudfront.net/globalstatic/font/Garet-Heavy.woff2') format('woff2'),
         url('https://d2nt2stsaqz8ux.cloudfront.net/globalstatic/font/Garet-Heavy.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

h1,
h2,
.hero h1,
.foundation-title,
.exhaustion h1 {
    font-family: 'League Spartan', Arial, sans-serif;
    letter-spacing: 0.5px;
}

/* ================= HERO ================= */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

a {
cursor: pointer;
}

.hero h1 {
    color: white;
 }
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 90px 60px 70px;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url('https://d2nt2stsaqz8ux.cloudfront.net/globalstatic/images/restorative-sleep/sleeping-man.png') center/cover no-repeat;
    color: #fff;
}

.logo-link {
    position: absolute;
    top: 40px;
    right: 50px;
    z-index: 10;
}

.hero-logo {
    width: 150px;
    height: auto;
}

.hero h1 {
    margin: 0;
    line-height: 0.95;
}

.hero h1 span {
    display: block;
    font-weight: 900;
}

.hero h1 span:first-child {
    font-size: 70px;
}

.hero h1 span:last-child {
    font-size: 80px;
}

.hero p {
    max-width: 560px;
    font-size: 25px;
    line-height: 1.2;
}

.foundation-title {
    margin-top: 200px;
    text-transform: uppercase;
    text-align: right;
    line-height: 1;
    color: #eaeaea;
}

.foundation-title span {
    display: block;
    font-weight: 750;
}

.foundation-title span:first-child {
    font-size: 38px;
}

.foundation-title span:last-child {
    font-size: 40px;
}

.timeline-wrapper {
    grid-column: 1 / -1;
    margin-top: 30px;
    position: relative;
}

.timeline-dots {
    width: 100%;
    height: 24px;
    background-image: radial-gradient(rgba(255,255,255,0.7) 35%, transparent 40%);
    background-size: 17px 17px;
    background-repeat: repeat-x;
}

.timeline-dot {
    position: absolute;
    top: -18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(-50%);
}

.timeline-dot.green {
    left: 14%;
    background-image: url('https://d2nt2stsaqz8ux.cloudfront.net/globalstatic/images/restorative-sleep/circle-green.png');
}

.timeline-dot.blue {
    left: 50%;
    background-image: url('https://d2nt2stsaqz8ux.cloudfront.net/globalstatic/images/restorative-sleep/circle-blue.png');
}

.timeline-dot.teal {
    left: 86%;
    background-image: url('https://d2nt2stsaqz8ux.cloudfront.net/globalstatic/images/restorative-sleep/circle-teal.png');
}

.timeline-dot::before {
    content: "";
    position: absolute;
    top: 57px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: rgba(255,255,255,0.45);
}

/* ================= INFOGRAPHIC ================= */
.section-row {
    display: flex;
    width: 100%;
}

.infobox {
    font-size: 22px;
    flex: 1;
    padding: 85px 35px;
    position: relative;
    overflow: visible;
    color: #000;
    border: none;
}

.infobox span.circle-mask {
    position: absolute;
    top: -62px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: inherit;
    z-index: 4;
}

/* single white circle that blends into the card 
.infobox::after {
    content: "";
    position: absolute;
    top: -56px;
    left: 50%;
    transform: translateX(-50%);
    width: 104px;
    height: 104px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 5;
}*/

/* colored inner circle 
.infobox::before {
    content: "";
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    z-index: 6;
}*/

.deep { background: #90ba3e; }
.deep::after { background: #90ba3e; }

.rem { background: #409ed9; }
.rem::after { background: #409ed9; }

.cycles { background: #3cb2c4; }
.cycles::after { background: #3cb2c4; }

.infobox h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 800;
}

.infobox strong {
    font-size: 22px;
    font-weight: 800;
}

.infobox ul {
    font-size: 22px;
    margin: 12px 0 16px;
    padding-left: 18px;
}

.infobox li {
    margin-bottom: 6px;
}

/* ================= EXHAUSTION ================= */
.exhaustion {
    background: #efecec;
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
}

.exhaustion-header {
    display: flex;
    flex-direction: row;
}
.exhaustion-header-text {
    display: flex;
    flex-direction: column;
    width: 60%;
}
.exhaustion-text {
    flex: 1.25;
}

.exhaustion h1 {
    font-size: 30px;
    font-weight: 800;
    margin: auto 0 22px 0;
}

.exhaustion p {
    color: #404040;
    font-size: 22px;
    max-width: 700px;
    line-height: 1.55;
    margin-bottom: 16px;
}

/* colored emphasis text */
.depth {
    color: #90ba3e;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.rhythm {
    color: #409ed9;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.restoration {
    color: #3cb2c4;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.product {
    flex: 1;
    display: flex;
    justify-content: center;
}

.product img {
    width: 100%;
}

/* ================= FOOTER ================= */
.footer-wrapper {
    background: #eae7e7;
}

.footer {
    background: #6dbd1e;
    text-align: center;
    padding: 28px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50px 50px 0 0;
}

.footer span {
    color: #ffe15c;
    font-weight: 800;
    cursor: pointer;
}

.link {
    text-decoration: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-logo {
        width: 110px;
        top: 20px;
        right: 20px;
    }

    .foundation-title {
        text-align: left;
        margin-top: 20px;
    }

    .section-row,
    .exhaustion {
        flex-direction: column;
    }

    .timeline-dots {
    width: 100%;
    height: 24px;
    background-image: radial-gradient(rgba(255,255,255,0.7) 35%, transparent 40%);
    background-size: 12px 12px;
    background-repeat: repeat-x;
    }

    .timeline-dot {
    position: absolute;
    top: -10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(-50%);
    }

    .timeline-dot.green { left: 1%; }
    .timeline-dot.blue { left: 50%; }
    .timeline-dot.teal { left: 100%; }

        .timeline-dot::before {
        display: none;
    }

    .exhaustion-header {
        flex-direction: column-reverse;
     }

     .exhaustion-header-text {
        width: auto;
     }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 20px;
    }

    .hero h1 span:first-child {
        font-size: 46px;
    }

    .hero h1 span:last-child {
        font-size: 50px;
    }

    .hero p {
        font-size: 18px;
        line-height: 1.45;
    }

    .hero-logo {
        width: 100px;
        top: 14px;
        right: 14px;
    }

    .foundation-title span:first-child {
        font-size: 38px;
    }

    .foundation-title span:last-child {
        font-size: 38px;
    }

    .timeline-wrapper {
        margin-top: 22px;
    }

    .timeline-dots {
        width: 100%;
        height: 24px;
        background-image: radial-gradient(rgba(255,255,255,0.7) 35%, transparent 40%);
        background-size: 12px 12px;
        background-repeat: repeat-x;
    }

    .timeline-dot {
        position: absolute;
        top: -10px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        transform: translateX(-50%);
    }

    .timeline-dot.green { left: 1%; }
    .timeline-dot.blue { left: 50%; }
    .timeline-dot.teal { left: 100%; }

    .timeline-dot::before {
        display: none;
    }

    .infobox {
        padding: 75px 20px 90px;
        font-size: 20px;
    }

    .infobox h2 {
        margin: 0 0 14px;
        font-size: 24px;
        font-weight: 800;
    }

    .infobox strong {
        font-size: 20px;
        font-weight: 800;
    }

    .infobox ul {
        font-size: 20px;
        margin: 12px 0 16px;
        padding-left: 18px;
    }

    .exhaustion {
        padding: 50px 18px;
    }

    .exhaustion h1 {
        font-size: 40px;
        line-height: 1.15;
    }

    .exhaustion p {
        font-size: 18px;
        line-height: 1.5;
    }

    .eyewear-shape {
        margin-top: 26px;
    }

    .footer {
        font-size: 16px;
        padding: 22px 16px;
        border-radius: 24px 24px 0 0;
    }
}
