:root,
body {
    overflow: hidden;
}

body {
    --landing-browser-ui-overdraw: 260px;
    position: relative;
    background: transparent;
    overflow: visible;
}

body::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: calc(-1 * var(--landing-browser-ui-overdraw));
    background: var(--gradient-medium-blue);
    pointer-events: none;
    z-index: 0;
}

@supports (height: 100svh) and (height: 100lvh) {
    body {
        --landing-browser-ui-overdraw: calc((100lvh - 100svh) + 260px);
    }
}

.main-content {
    background: transparent;
    height: var(--app-main-height);
    min-height: var(--app-main-height);
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.landing-page-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.landing-page-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    padding-bottom: calc(24px + var(--app-safe-bottom));
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.header-ai-label {
    display: none;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.landing-page-message {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    flex: 0 0 auto;
}

.landing-page-message .header {
    color: #fff;
    font-size: 29px;
    font-weight: 600;
}

.landing-page-message .subheader {
    color: #fff;
    font-size: 29px;
    font-weight: 400;
}

html.iphone-browser-or-native .landing-page-message .header,
html.iphone-browser-or-native .landing-page-message .subheader {
    font-family: 'Poppins', var(--font-main);
    font-size: 26px;
    line-height: 34px;
}

.landing-page-video-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.landing-page-video {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 32px;
    box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.25);
    display: block;
    object-fit: cover;
}

.landing-page-video-play-button {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.landing-page-video-play-button .material-symbols-rounded {
    font-size: 48px;
}

.landing-page-video-play-button:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.55);
}

.landing-page-video-play-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.landing-page-video-play-button--hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.landing-page-start-button {
    margin-top: 0;
    height: 40px;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.50);
    align-self: center;
    width: min(220px, 100%);
}

.landing-page-start-button--desktop {
    display: none;
}

.landing-page-start-button--mobile {
    display: flex;
}

html.iphone-browser-or-native .landing-page-start-button--mobile {
    height: 41px;
    width: min(167px, 35%);
}

@media (max-width: 1047px) {

    .landing-page-message .header,
    .landing-page-message .subheader {
        line-height: 34px;
    }
}

@media (min-width: 1048px) {
    .landing-page-layout {
        flex-direction: row;
    }

    .header-ai-label {
        display: inline-flex;
        align-items: center;
        color: var(--color-text);
        font-family: 'Poppins', var(--font-main);
        font-size: 18px;
        font-weight: 400;
        line-height: 1.2;
    }

    .landing-page-body {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 64px;
        padding: 0 80px;
        min-height: calc(var(--app-main-height) - 80px);
        box-sizing: border-box;
    }

    .landing-page-message {
        margin: 0;
        text-align: left;
        max-width: 380px;
        order: 2;
        align-self: center;
    }

    .landing-page-video-wrapper {
        order: 1;
        flex: 0 1 auto;
        max-width: min(720px, calc(100vw - 360px));
    }

    .landing-page-video {
        width: auto;
        height: auto;
        max-height: 80vh;
        max-width: 100%;
    }

    .landing-page-start-button--desktop {
        display: inline-flex;
        margin-top: 32px;
        align-self: flex-start;
        width: 168px;
    }

    .landing-page-start-button--mobile {
        display: none;
    }
}
