@font-face {
    font-family: "Feature Display";
    src: url("fonts/feature-display-medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Feature Display";
    src: url("fonts/feature-display-normal.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Feature Display";
    src: url("fonts/feature-display-regular-italic.woff") format("woff");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}


:root {
    --text-color-primary: #000;
    --text-color-secondary: #555559;
    --grid-sizing-4: 32px;
}

html {
    overflow-x: hidden;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
}

a {
    color: #000;
}

main {
    position: relative;
    z-index: 100;
}

.text-large {
    font-family: "Feature Display";
    font-size: 80px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -1.6px;
}

.text-header1, h1 {
    font-family: "Feature Display";
    font-size: 64px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -1.28px;
}

.text-header2 {
    font-family: "Feature Display";
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.48px;
}

.text-header3 {
    font-family: "Feature Display";
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.36px;
}

.text-header4 {
    font-family: "Feature Display";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.24px;
}

.text-subhead {
    color: var(--text-color-secondary, #555559);
    text-align: center;
    font-family: Lato;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px; /* 150% */
    letter-spacing: -0.2px;}

.text-body1 {
    font-family: Lato;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.2px;
}

.text-body2 {
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.16px;
}

.shiny-button {
    display: inline-flex;
    height: 56px;
    padding: 0 16px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    border-radius: var(--grid-sizing-4, 32px);
    background: var(--Dot, radial-gradient(32.64% 43.01% at 73.17% 26.47%, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.00) 100%), radial-gradient(126.8% 117.3% at 74.5% 7%, #F8BD78 0%, #FFD4E0 41.57%, #C9F3EB 74.5%, #FFF 93.5%));
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.10), 4px -4px 4px 0 rgba(168, 220, 210, 0.60) inset;
    color: var(--text-color-primary, #000);
    text-align: center;
    font-family: Lato;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
}

.shiny-button.short {
    height: 48px;
}

.right-arrow {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 4px; /* spacing from text */
    background: url("img/right-arrow.svg") no-repeat center center;
    background-size: contain;
}

body {
    background: #F7F7FB;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    color: var(--text-color-primary, #000);
}

img.bg-tr {
    position: absolute;
    top: 0;
    right: 0;
}

img.bg-ls {
    position: absolute;
    top: 100px;
    left: 0;
}

img.bg-bl {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 661px;
}

img.bg-br {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 600px;
}

section {
    position: relative;
    z-index: 2;
}

section#content-0 {
    height: 345px;
}

section#content-1 {
    height: 1050px;
    display: flex;
    align-items: center;
}

section#content-2 {
    height: 840px;
    display: flex;
    align-items: center;
}

section#content-3 {
    z-index: 1;
    height: 850px;
    display: flex;
    justify-content: center;
}

section#content-3 div.content > div:first-child {
    padding-top: 200px;
}

section#content-3::before {
    background: linear-gradient(180deg, #F7F7FB 0%, #DBD4F8 34.27%, #DBD4F8 80.24%, #F7F7FB 100%);
    content: "";
    position: absolute;
    top: -400px;      /* extend above */
    bottom: -200px;   /* extend below */
    left: 0;
    right: 0;
    z-index: -1;      /* put behind text */
}

section > div {
    margin: auto;
    max-width: 1310px;
    padding: 0 80px 0 80px;
}

section#heading {
    padding-top: 80px;
}

section#heading > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.intro {
    margin: 300px auto 0 auto;
    width: 67%;
    text-align: center
}

.intro h1 {
    margin: 0 0 23px 0;
    position: relative;
}

.intro h1::before {
    content: "";
    position: absolute;
    top: -200px; /* move it outside */
    left: -150px;
    width: 345px;
    height: 342px;
    background: url('img/content-1-star.png');
    pointer-events: none;
}

.intro h2 {
    margin: 0;
    margin-bottom: 40px;
}

.content {
    display: flex;
    width: 100%;
    text-align: left;
    align-items: center;
}

.content .text-subhead {
    text-align: left;
}

.content > div {
    width: 50%;
}

.content img {
    width: 100%;
}

.content h1 {
    margin: 0 0 16px 0;
}
.content h2 {
    margin: 0 0 40px 0;
}

.italic {
    font-style: italic;
}


section#links {
    height: 900px;
    display: flex;
    background-image: url("img/bg-bottom-full-width.png");
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center bottom;
}

section#links h2 {
    margin: 0 0 80px 0;
}

section#links a {
    text-decoration: none;
    font-size: 24px;
}

section#links a span.right-arrow{
    height: 32px;
    width: 32px;
}

section#links div.link {
    margin-bottom: 50px;
}

section#links div.link a {
    display: flex;
    align-items: center;
}

.links-content {
    display: flex;
    width: 100%;
    margin: 325px auto 0 auto;
}

.links-content > div {
    width: 50%;
}

section#links .socials a {
    margin-right: 80px;
}

img#top-full-width {
    display: none;
}

h2#email-subhead {
    display: none;
}
form#email-form {
    display: none;
}

/* Tablet (≤1024px wide) */
@media (max-width: 1024px) {
    .text-large {
        font-size: 56px;
        letter-spacing: -1px;
    }

    .text-header1, h1 {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .text-header2 {
        font-size: 36px;
    }

    .text-header3 {
        font-size: 28px;
    }

    .text-header4 {
        font-size: 20px;
    }

    .text-subhead {
        font-size: 16px;
    }

    section#heading {
        padding-top: 42px;
        margin-bottom: 340px;
    }

    section > div {
        padding: 0 40px; /* reduce side padding */
    }

    .intro {
        margin: 200px auto 0 auto;
        width: 90%; /* looser width */
    }

    .content {
        flex-direction: column-reverse; /* stack instead of side-by-side */
        text-align: center;
    }

    .content > div {
        width: 100%;
        margin-bottom: 40px;
    }

    .content .shiny-button {
        height: 48px;
    }

    section#content-0 {
        width: 530px;
        margin: 0 auto;
    }
    section#content-1 {
        width: 565px;
        margin: 0 auto;
    }
    section#content-2 {
        width: 576px;
        margin: 0 auto 200px auto;
    }
    section#content-3 .content {
        width: 576px;
        margin: 0 auto;
    }

    section#content-3 img {
        height: 711px;
    }
    section#content-3 div.content > div:first-child {
        padding-top: 0;
        position: relative;
        top: -170px;
    }
    section#content-3 div.content > div {
        margin: 0;
    }

    section#content-3 div.content h2 {
        padding: 0 40px;
    }

    .content .text-subhead {
        text-align: center;
    }

    .intro h1::before {
        background-size: contain;
        height: 250px;
        top: -200px;
        left: -135px;
        background-repeat: no-repeat;
    }

    .links-content {
        flex-direction: column;
        margin: 50px auto 0 auto;
        width: 60%;
    }

    .links-content > div {
        width: 100%;
        margin-bottom: 40px;
    }

    section#links {
        height: 679px;
        background-image: url("img/bg-bottom-full-width-dark.png");
        background-repeat: no-repeat;
        background-size: 100%;
        background-position: center bottom;
    }
    section#links h2 {
        margin-bottom: 40px;
    }

    img.bg-br {
        display: none;
    }

    img.bg-bl {
        display: none;
    }

}

/* Mobile (≤600px wide) */
@media (max-width: 600px) {
    body, main {
        width: 100%;
        overflow: hidden;
        position: relative
    }
    section#content-1,
    section#content-2,
    section#content-3 {
        display: none;
    }
    section#content-0,
    section#content-1,
    section#content-2,
    section#content-3 .content {
        width: 100% !important;  /* override tablet widths */
        max-width: 100%;
    }
    img.bg-tr,
    img.bg-ls,
    img.bg-bl,
    img.bg-br {
        max-width: 100%;
        height: auto;
    }
    img.bg-br {
        display: none;
        right: 0;
    }
    img.bg-bl {
        display: none;
        left: 0;
    }

    .text-large {
        font-size: 40px;
        letter-spacing: -0.5px;
    }

    .text-header1, h1 {
        font-size: 36px;
    }

    .text-header2 {
        font-size: 28px;
    }

    .text-header3 {
        font-size: 22px;
    }

    .text-header4 {
        font-size: 18px;
    }

    .text-subhead {
        font-size: 16px;
        line-height: 24px;
    }

    .text-body1 {
        font-size: 16px;
    }

    .text-body2 {
        font-size: 14px;
    }

    section > div {
        padding: 0 20px;
    }

    section#heading, section#content-0, section#content-1, section#content-2, section#content-3, section#links {
        width: 100%;
    }

    section#heading {
        margin-bottom: 100px;
    }

    .intro {
        margin: 120px auto 0 auto;
        width: 90%;
        box-sizing: border-box;
    }

    section#content-0 h2, section#content-0 a {
        display:none;
    }
    section#content-0 h2#email-subhead {
        display: block;
    }
    form#email-form {
        display: block;
        position: relative;
    }



    .content img {
        width: 100%;
        max-width: 320px; /* prevent oversized images */
        margin: 0 auto;
    }

    .links-content {
        width: 80%;
    }

    section#links h2 {
        margin-bottom: 40px;
        font-size: 24px;
    }

    section#links a {
        font-size: 18px;
    }

    section#links a span.right-arrow {
        width: 24px;
        height: 24px;
    }

    section#links .socials a {
        margin-right: 60px;
    }
}
img#top-right-bg-dark {
    display: none;
}
img#left-side-bg-dark {
    display: none;
}



/*************/
/* DARK MODE */
/*************/

/* if we want to make this only active for devices in dark mode, wrap this in a media query */

.dark {
    display: none;
}

body {
    background: #131313;
    color: #fff;
}

.light {
    display:none;
}
.dark {
    display:block;
}
.dark.inline {
    display: inline;
}

img#top-right-bg {
    display: none;
}

img#top-right-bg-dark {
    display: block;
    width: 100%;
}

img#left-side-bg {
    display: none;
}

img#left-side-bg-dark {
    display: block;
}

img.bg-ls {
    top: 700px;
}


.text-subhead {
    color: #D1D1D6;
}

a {
    color: #fff;
}

.right-arrow {
    background-image: url(img/right-arrow-white.svg);
}

.shiny-button {
    border: 0.6px solid #FFF;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.50) 100%), radial-gradient(13.55% 38.75% at 82.5% 28.75%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.00) 100%), rgba(255, 255, 255, 0.20);
    box-shadow: 8px -8px 12px 0 rgba(0, 0, 0, 0.54) inset;
    backdrop-filter: blur(5px);
}

.shiny-button .right-arrow {
    background-image: url(img/right-arrow-dm-btn.svg);
}

.shiny-button .btn-text {
    background: linear-gradient(90deg, #C9F3EB 0%, #FFD19B 32.69%, #FEE5FF 70.67%, #CBBBFF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro h1::before {
    top: -157px;
    left: -115px;
    background: url('img/content-1-star-dark.png') no-repeat;
}

section#content-3::before {
    background: linear-gradient(180deg, #131313 0%, #000 34.27%, #000 80.24%, #131313 100%);
}

form#email-form input[type="email"] {
    height: 59px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #D1D1D6;
    background: #000;
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding: 20px 16px;
    color: #fff;
    margin-bottom: 40px;
}

#email-toast {
    display: none;
}

@media (max-width: 1024px) {
    img.bg-tr {
        display: none !important;
    }
    img#top-full-width {
        display: block;
        position: absolute;
        top: 0;
        width: 100%;
    }

    .intro h1::before {
        top: -100px;
        left: 0;
    }
}

@media (max-width: 600px) {
    .intro h1::before {
        top: -130px;
        left: -10px;
        height: 135px;
        width: 135px;
        background-size: contain;
    }

    section#content-0 {
        height: 525px;
    }
    section#content-1 {
        height: 650px;
    }
    section#content-2 {
        margin: 0 auto;
    }
    section#content-3 {
        height: 810px;
    }
    section#content-3 img {
        height: inherit;
        position: relative;
        left: 25px;
        top: -150px;
    }
    section#links div.link {
        margin-bottom: 40px;
    }
    section#links div.socials h2 {
        margin-bottom: 40px;
    }

    #email-toast {
        position: absolute;
        bottom: 60px;
        left: 0;
        width: 100%;
        justify-content: center;
        padding: 0;
        margin: 0;
        font-family: Lato;
        transition: opacity 0.3s ease;
    }
}