html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}


/* ==================================================
   HOME PAGE
   ================================================== */

body:not(.about-page):not(.legal-page) {
    width: 100vw;
    height: 100vh;

    background-color: #000;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage {
    position: relative;

    /*
    The homepage element itself is now exactly the same
    aspect ratio as the artwork. This makes every hotspot
    stay locked to the visible button underneath it.
    */
    width: min(100vw, calc(100vh * 0.993296));
    aspect-ratio: 889 / 895;
    max-height: 100vh;

    background-image: url("/static/background-demo.png");
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;

    flex: 0 0 auto;
}


/* ==================================================
   TRANSPARENT HOME PAGE HOTSPOTS
   ================================================== */

.hotspot-layer {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}

.image-hotspot {
    position: absolute;
    display: block;

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;
    appearance: none;
    -webkit-appearance: none;

    background: transparent;

    z-index: 21;
    cursor: pointer;

    pointer-events: auto;

    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}


/* ==================================================
   DEMO VIDEO OVERLAY
   ================================================== */

.hidden {
    display: none !important;
}

.demo-screen {
    position: fixed;
    inset: 0;

    z-index: 1000;

    background: rgba(0, 0, 0, 0.92);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    box-sizing: border-box;

    overflow-y: auto;
}

.demo-panel {
    width: min(1000px, 94vw);
    max-height: 94vh;

    padding: 24px;

    box-sizing: border-box;

    background: #101820;
    color: #f5d58a;

    border: 1px solid #b98a3d;
    border-radius: 16px;

    box-shadow:
        0 12px 40px
        rgba(0, 0, 0, 0.65);
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 12px;
}

.demo-header h1 {
    margin: 0;

    color: #f5d58a;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 30px;
}

.close-demo {
    flex: 0 0 auto;

    padding: 10px 18px;

    border: 1px solid #d7a84f;
    border-radius: 8px;

    background: #f1bd58;
    color: #111;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    touch-action: manipulation;
}

.close-demo:hover {
    background: #ffd277;
}

.demo-intro {
    margin: 0 0 18px 0;

    color: #f3e4c0;

    font-size: 17px;
    line-height: 1.5;
}

.demo-video {
    display: block;

    width: 100%;
    max-height: 70vh;

    margin: 0 auto;

    background: #000;

    border-radius: 10px;
}


/* ==================================================
   MOBILE HOME PAGE
   ================================================== */

@media (max-width: 700px) {

    .hotspot-demo {
        left: 4.7% !important;
        top: 80.4% !important;
        width: 17.5% !important;
        height: 13% !important;
    }

    .hotspot-freeTrial {
        left: 22.2% !important;
        top: 80.4% !important;
        width: 16.5% !important;
        height: 13% !important;
    }

    .hotspot-subscribe {
        left: 38.7% !important;
        top: 80.4% !important;
        width: 17.2% !important;
        height: 13% !important;
    }

    .hotspot-manage {
        left: 55.9% !important;
        top: 80.4% !important;
        width: 17.8% !important;
        height: 13% !important;
    }

    .hotspot-wayfinder {
        left: 73.7% !important;
        top: 80.4% !important;
        width: 20.2% !important;
        height: 13% !important;
    }

    .hotspot-terms {
        left: 28.7% !important;
        top: 92.7% !important;
        width: 10.7% !important;
        height: 6.8% !important;
    }

    .hotspot-privacy {
        left: 39.4% !important;
        top: 92.7% !important;
        width: 8.4% !important;
        height: 6.8% !important;
    }

    .hotspot-disclaimer {
        left: 47.8% !important;
        top: 92.7% !important;
        width: 9.1% !important;
        height: 6.8% !important;
    }

    .hotspot-support {
        left: 56.9% !important;
        top: 92.7% !important;
        width: 11.8% !important;
        height: 6.8% !important;
    }
}


/* ==================================================
   ABOUT PAGE
   ================================================== */

.about-page {
    margin: 0;
    min-height: 100vh;

    background-color: #dfe6b7;
    color: #24311f;
}

.about-hero {
    width: 100%;
    margin: 0;
    padding: 0;

    overflow: hidden;
}

.about-hero img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 62vh;

    object-fit: contain;
    object-position: center;

    background-color: #dfe6b7;
}

.about-panel {
    max-width: 900px;

    margin: 28px auto 50px auto;
    padding: 35px 45px;

    background-color: #f0edbd;
    color: #26321e;

    border-radius: 18px;

    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);

    font-size: 18px;
    line-height: 1.65;
}

.about-panel h1 {
    margin-top: 5px;
    margin-bottom: 25px;

    text-align: center;

    color: #2d481f;
    font-size: 36px;
}

.about-panel p {
    margin-bottom: 20px;
}

.about-tagline {
    margin-top: 30px;

    text-align: center;

    color: #2d481f;
    font-size: 21px;
}


/* ==================================================
   LEGAL PAGES
   ================================================== */

.legal-page {
    min-height: 100vh;

    padding: 35px 18px;

    background-color: #dfe6b7;
    color: #222;
}

.legal-panel {
    max-width: 950px;

    margin: 0 auto;
    padding: 35px 45px;

    background-color: #f0edbd;

    border-radius: 18px;

    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);

    line-height: 1.6;
}

.legal-panel h1 {
    color: #2d481f;
}

.legal-panel h2 {
    margin-top: 28px;
    color: #355425;
}

.legal-panel p,
.legal-panel li {
    font-size: 16px;
}

.legal-effective {
    font-style: italic;
    color: #555;
}

.legal-nav {
    margin-bottom: 20px;
}

.legal-nav a {
    display: inline-block;

    padding: 9px 16px;

    background-color: #355425;
    color: #fff;

    text-decoration: none;

    border-radius: 7px;
}

.legal-nav a:hover {
    background-color: #263c1b;
}

.legal-footer-note {
    margin-top: 35px;

    text-align: center;

    font-size: 14px;

    color: #555;
}


/* ==================================================
   MOBILE — DEMO / ABOUT / LEGAL
   ================================================== */

@media (max-width: 700px) {

    .demo-screen {
        padding: 10px;
    }

    .demo-panel {
        width: 100%;

        padding: 16px;

        border-radius: 12px;
    }

    .demo-header {
        align-items: flex-start;
    }

    .demo-header h1 {
        font-size: 23px;
    }

    .close-demo {
        padding: 9px 13px;
        font-size: 14px;
    }

    .demo-intro {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .demo-video {
        max-height: 68vh;
    }

    .about-hero img {
        max-height: none;
    }

    .about-panel,
    .legal-panel {
        margin: 18px 12px 30px 12px;
        padding: 24px 20px;

        border-radius: 12px;

        font-size: 16px;
    }

    .about-panel h1 {
        font-size: 30px;
    }

    .about-tagline {
        font-size: 18px;
    }

    .legal-page {
        padding: 15px 5px;
    }
}
