﻿html {
    scroll-behavior: smooth;
}

.main-container {
    background: var(--pr-white);
    max-width:100%;
    margin:0 0 156px 0;
    border-radius:0;
    align-items:center;
    overflow:hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    background-color: transparent;
    /*background-image: var(--pr-dark-pattern);*/
    /*background-image: url(./../images/how-postrabbit-works-bg.jpg);*/
    background-repeat: repeat;
    /*filter: blur(30px);
    transform: scale(1.08);*/
    overflow: hidden;
    position:relative;
}

    /*.hero-container::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url(./../images/how-postrabbit-works-bg.jpg);
        background-repeat: repeat-x;
        filter: blur(30px);
        transform: scale(1.1);
        z-index: 0;
    }*/

.hero-landscape {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 2791 / 1870;
    overflow: hidden;
    max-width: 1800px;
    min-height: 800px;
    max-height: min(calc(100vw * 1870 / 2791), calc(100vh - 242px));
    background: #fff;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
}

.hero-bg {
    position: absolute;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2791 / 1870;
    bottom: 0;
    
}

.hero-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90%, 1100px);
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: visible;
}

    .hero-content h1 {
        font-family: 'Exo';
        margin-bottom: 0.5rem;
        font-size: 2.5rem;
        font-weight: bold;
        text-align: center;
        width: 80%;
    }

    .hero-content p {
        font-family: 'Roboto';
        margin-bottom: 1.5rem;
        font-size: 1.25rem;
        font-weight: normal;
        text-align: center;
        color: #404950;
        width: 80%;
    }

    .hero-btn {
        margin: 0 auto 3rem auto;
    }

.hero-screenshot-slider {
    position: relative;
    width: 80%;
    overflow: visible; 
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateX(100vw);
    transition: transform 1s ease, opacity 1s ease;
}

    .hero-slide.active {
        position: relative;
        opacity: 1;
        transform: translateX(0);
    }

    .hero-slide.exit-left {
        opacity: 1;
        transform: translateX(-100vw);
    }

    .hero-slide.reset {
        transition: none;
        opacity: 0;
        transform: translateX(100vw);
    }

.hero-caption {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 12%;
    transform: translate(-50%, 50%);
    font-size: 1.8rem;
    color: #fff;
    text-align: center;
    width: 80%;
    opacity: 1;
    transition: opacity 0.6s ease;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

    .hero-caption.fade-out {
        opacity: 0;
    }

.hero-fg {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.splash-main {
    width: 100%;
    background: var(--pr-white);
}

.splash-alt {
    background: var(--pr-list-group-border);
}

.splash-shell {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding-left: clamp(1.25rem, 4vw, 5rem);
    padding-right: clamp(1.25rem, 4vw, 5rem);
    padding-top: clamp(2.5rem, 6vw, 6rem);
    padding-bottom: clamp(2.5rem, 6vw, 6rem);
}

.splash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
}

.splash-grid-reverse .splash-copy {
    order: 2;
}

.splash-grid-reverse .splash-media {
    order: 1;
}

.splash-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1rem, 2vw, 1.75rem);
    min-width: 0;
}

.splash-title {
    margin: 0;
    font-family: 'Exo', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    /*letter-spacing: -0.03em;*/
    /*font-size: clamp(2.5rem, 5vw, 5.75rem);*/
    font-size: clamp(2.5rem, 5vw, 5rem);
    max-width: 12ch;
    color: var(--pr-black);
}

.splash-title-highlight {
    font-family: inherit;
    font-weight: inherit;
    text-decoration: none;
    background: linear-gradient(180deg, var(--pr-secondary-hover), var(--pr-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-desc {
    margin: 0;
    font-size: clamp(1rem, 1.15vw, 1.55rem);
    line-height: 1.5;
    color: var(--bs-secondary-color, #6c757d);
    max-width: 34ch;
}

.splash-desc-long {
    width: min(1400px, 100%);
}

.splash-actions {
    margin-top: clamp(0.5rem, 1vw, 1rem);
}

.splash-cta {
    padding: clamp(0.85rem, 1vw, 1rem) clamp(1.75rem, 3vw, 3rem);
    font-size: clamp(1rem, 1vw, 1.2rem);
    border-radius: 0.65rem;
}

.splash-media {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

    .splash-media img {
        display: block;
        width: 100%;
        max-width: clamp(320px, 42vw, 800px);
        height: auto;
        object-fit: contain;
    }

@media(max-width:1000px) {
    .hero-caption {
        bottom: 8%;
    }
}

@media(max-width:900px) {
    .hero-landscape {
        aspect-ratio: unset;
        height: 700px;
        max-height: 700px;
        min-height: 0;
    }

    .hero-caption {
        font-size: 1.5rem;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    }

    .splash-grid,
    .splash-grid-reverse {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 4vw, 2.5rem);
    }

        .splash-grid-reverse .splash-copy,
        .splash-grid-reverse .splash-media {
            order: initial;
        }

    .splash-copy {
        align-items: center;
        text-align: center;
    }

    .splash-title {
        max-width: 12ch;
        text-align: center;
    }

    .splash-desc {
        max-width: 34ch;
        text-align: center;
    }

    .splash-actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .splash-media img {
        max-width: min(100%, 520px);
    }
}

@media(max-width:768px) {
    .hero-landscape {
        height: 700px;
        max-height: 700px;
        min-height: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media(max-width:700px) {
    .hero-landscape {
        height: 600px;
        max-height: 600px;
        min-height: 0;
    }
}

@media(max-width:600px) {
    .hero-caption {
        bottom: 5%;
        font-size: 1.2rem;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }
}

@media(max-width:500px) {
    .hero-landscape {
        height: 550px;
        max-height:550px;
        min-height: 0;
    }

    .hero-caption {
        bottom: 3%;
        font-size: 1rem;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 480px) {
    .splash-shell {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .splash-grid,
    .splash-grid-reverse {
        gap: 3rem;
    }

    .splash-title {
        font-size: clamp(2.1rem, 10vw, 3rem);
        line-height: 1;
    }

    .splash-desc {
        font-size: 1rem;
        max-width: 28ch;
    }

    .splash-cta {
        width: 80%;
        justify-content: center;
    }
}
