* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    background-color: #f0eee5;
    font-family: "DM Sans", sans-serif;
    min-height: 100vh;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    position: relative;
    height: 80px;
    -webkit-flex-shrink: 0;
    -ms-flex: 0 0 auto;
    flex-shrink: 0;
}

.logo-link {
    position: absolute;
    left: 40px;
    top: 20px;
    text-decoration: none;
    display: inline-block;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.mission-text {
    position: absolute;
    top: 30px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #098BFF;
    margin: 0;
    text-decoration: none;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.mission-text:hover {
    opacity: 0.8;
}

.twitter-link {
    position: absolute;
    right: 40px;
    top: 25px;
    text-decoration: none;
}

.twitter-icon {
    width: 30px;
    height: 24px;
    fill: #098BFF;
    transition: opacity 0.3s ease;
}

.twitter-icon:hover {
    opacity: 0.8;
}

main {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -moz-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 80px - 60px);
}

.content-wrapper {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -moz-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.hero {
    text-align: center;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -moz-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.main-heading {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: calc(28px * (100vw / 1440px));
    letter-spacing: 0.06;
    color: #098BFF;
    margin-bottom: 20px;
    line-height: 1.3;
}

.description {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #4E4E4E;
    margin-bottom: 40px;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    width: 198px;
    height: 38px;
    background-color: #098BFF;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    -webkit-transition: background-color 0.3s ease;
    -moz-transition: background-color 0.3s ease;
    -o-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
    margin: calc(40px * (100vw / 1440px)) auto 0 auto;
    display: block;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cta-button:hover {
    background-color: #0770d9;
}

.mockups {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -moz-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.mockup {
    width: 100%;
    max-width: 300px;
    max-height: 450px;
    height: auto;
    object-fit: contain;
}

.email-form {
    display: none;
    -webkit-box-align: center;
    -moz-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    background-color: #ffffff;
    border: 2px solid #098BFF;
    border-radius: 8px;
    padding: 4px;
    box-shadow: none;
    width: 380px;
    max-width: 90%;
}

.email-input {
    flex: 1;
    height: 36px;
    padding: 0 16px;
    border: none;
    background-color: transparent;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

.email-input::placeholder {
    color: #aaa;
    font-weight: 400;
}

.join-button {
    width: auto;
    padding: 0 20px;
    height: 36px;
    background-color: #098BFF;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.join-button:hover {
    background-color: #0770d9;
}

.error-message {
    color: #ff0000;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
}

footer {
    padding: 20px;
    text-align: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    color: #666;
    background-color: transparent;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer p {
    margin: 0;
}


/* Limit scaling on very large screens */
@media (min-width: 1440px) {
    header {
        height: 80px;
    }
    
    .logo-link {
        left: 100px;
        top: 36px;
    }
    
    .logo-icon {
        width: 64px;
        height: 64px;
    }
    
    .mission-text {
        top: 57px;
        font-size: 20px;
    }
    
    .twitter-link {
        right: 100px;
        top: 46.5px;
    }
    
    .twitter-icon {
        width: 53.75px;
        height: 43px;
    }
    
    .main-heading {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .mockup {
        max-width: 400px;
    }
    
    .cta-button {
        margin-top: 40px;
    }
    
    main {
        padding: 40px 20px;
        min-height: calc(100vh - 130px);
    }
    
    .hero {
        margin-bottom: 40px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    html, body {
        -webkit-text-size-adjust: 100%;
        -webkit-overflow-scrolling: touch;
        overflow: visible;
        height: auto;
    }
    
    input[type="email"] {
        font-size: 16px !important;
    }
    .content-wrapper {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -moz-box-orient: vertical;
        -moz-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero {
        text-align: center;
        -webkit-box-align: center;
        -moz-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-ordinal-group: 2;
        -moz-box-ordinal-group: 2;
        -ms-flex-order: 1;
        -webkit-order: 1;
        order: 1;
    }
    
    .mockups {
        -webkit-box-ordinal-group: 3;
        -moz-box-ordinal-group: 3;
        -ms-flex-order: 2;
        -webkit-order: 2;
        order: 2;
    }
    
    .email-form {
        width: 100%;
        max-width: 400px;
    }
    header {
        height: 80px;
    }

    .logo-link {
        left: 20px;
        top: 20px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .mission-text {
        top: 30px;
        font-size: 16px;
    }

    .twitter-link {
        right: 20px;
        top: 28px;
    }

    .twitter-icon {
        width: 35px;
        height: 28px;
    }

    main {
        display: flex;
        flex-direction: column;
        padding: calc(120px * (100vw / 1440px)) 0 100px 0;
        overflow: visible;
    }

    .hero {
        margin-bottom: 20px;
    }
    
    .cta-button {
        margin-top: 20px;
    }

    .mockup {
        width: 90%;
        height: auto;
        max-width: 400px;
    }

    .logo-link {
        font-size: 25px;
    }

    .main-heading {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .description {
        font-size: 20px;
        padding: 0 20px;
    }

    .cta-button {
        font-size: 20px;
    }

    .email-input {
        font-size: 16px;
        padding: 0 12px;
    }

    .join-button {
        font-size: 16px;
        padding: 0 16px;
    }
}



/* Terms and privacy: long text, so the page scrolls instead of centring */
footer a {
    color: inherit;
}

.legal-main {
    align-items: flex-start;
    overflow: visible;
    padding: 40px 20px 60px;
}

.legal {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: #444;
}

.legal h1 {
    font-size: 32px;
    color: #111;
    margin-bottom: 6px;
}

.legal h2 {
    font-size: 20px;
    color: #111;
    margin: 36px 0 10px;
}

.legal p,
.legal ul {
    margin-bottom: 14px;
}

.legal ul {
    padding-left: 22px;
}

.legal li {
    margin-bottom: 8px;
}

.legal a {
    color: #111;
}

.legal-date {
    color: #888;
    font-size: 15px;
    margin-bottom: 28px !important;
}
