.hero {
    min-height: max(100vh, 300px);
    background-color: #141414;
}

@media (min-width: 767px) {
    .hero {
        background: radial-gradient(
                ellipse at top right,
                rgba(255, 255, 255, 0.08) 0%,
                rgba(255, 255, 255, 0.035) 25%,
                transparent 60%
        ),
        #141414;
    }
}


@media (max-width: 767px) {
    .hero {
        min-height: max(calc(100vh - 60px), 300px);
        padding-top: 60px;
    }
}

.hero-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    padding-inline: 1.5em;
    gap: 4em;
    max-width: 1600px;
    margin-inline: auto;
    box-sizing: border-box;
    align-content: center;
}

@media (min-width: 1200px) {
    .hero-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid-container .ui.column.right-column {
        padding-right: 50px;
    }

    .hero-grid-container .ui.column.left-column {
        padding-left: 50px;
    }
}

.intro-container {
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: center;
    min-height: max(100vh, 480px);
}

@media (min-width: 1200px) {
    .intro-container {
        justify-content: start;
    }
}

.intro {
    text-align: center;
    color: #fff;
    margin-top: 60px;
    margin-bottom: 60px;
}

@media (min-width: 1200px) {
    .intro {
        text-align: left;
    }
}

.intro-container .intro .screenshot {
    width: auto;
    max-width: 100%;
    max-height: 250px;
    border-radius: 6px;
    opacity: .9;
    /*box-shadow: 0px 0px 113px 15px rgba(46, 179, 241, 0.30);*/
    box-shadow: 0px 0px 38px 6px rgba(255, 255, 255, 0.11);
    -webkit-box-reflect: below 0 linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.4));
    margin-bottom: 50px;
}

.intro .ui.button.book-button {
    background-color: #c1c1c1;
    color: rgb(0 0 0 / .8);
}

@media (min-width: 1200px) {
    .intro-container .intro .screenshot {
        display: none;
    }
}

@media (max-width: 1199px) {
    .intro .ui.header.hero-header {
        margin-left: auto;
        margin-right: auto;
    }
}

.intro .ui.header.hero-sub-header {
    max-width: 50ch;
    margin-right: auto;
    margin-left: auto;
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: normal;
    text-wrap: balance;
    font-size: 1.1em;
}

@media (min-width: 723px) {
    .intro .ui.header.hero-sub-header {
        font-size: 18px;
    }
}

@media (min-width: 1200px) {
    .intro .ui.header.hero-sub-header {
        margin-left: initial;
    }
}

.hero-screenshot {
    display: flex;
    align-items: center;
    justify-content: end;
    min-height: 100vh;
    text-align: left;
}

.hero-screenshot img {
    width: 100%;
    max-width: 625px;
    height: auto;
    opacity: .9;
    border-radius: 6px;
    -webkit-box-reflect: below 0 linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.4));
    box-shadow: 0px 0px 113px 15px rgba(46, 179, 241, 0.30); /* glow */
}

.intro .ui.header.hero-header {
    font-size: 2.2rem;
    max-width: 22ch;
}

@media (min-width: 723px) {
    .intro .ui.header.hero-header {
        font-size: 2.7rem;
    }
}

@media (min-width: 1300px) {
    .intro .ui.header.hero-header {
        font-size: 3rem;
        margin-top: 0;
    }
}

.screenshot-column {
    display: none;
}

@media (min-width: 1200px) {
    .screenshot-column {
        display: block;
    }
}


.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-actions.centered {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1199px) {
    .hero-actions {
        justify-content: center;
    }
}

.hero-actions .ui.button {
    margin: 0;
    width: 100%;
    max-width: 200px;
}

.hero-actions.narrow .ui.button {
    max-width: 180px;
}

/* Pulsing CTA ring */
.cta-primary {
    background: var(--orange);
    color: #111;
    position: relative;
}

.cta-primary::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 4px solid var(--orange);
    /* Fomantic's button radius is .28571429rem, so add the inset to keep the corners concentric */
    border-radius: calc(.28571429rem + 4px);
    pointer-events: none;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    from {
        inset: -4px;
        opacity: .9;
    }
    to {
        inset: -12px;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-anim {
        animation: rise 1.7s cubic-bezier(.16, 1, .3, 1) backwards;
        animation-delay: calc(var(--i, 0) * 320ms);
    }

    /* Don't replay when Turbo shows a cached preview */
    [data-turbo-preview] .hero-anim {
        animation: none;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(150px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/*@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {*/
/*    [data-reveal] {*/
/*        opacity: 0;*/
/*        transform: translateY(150px);*/
/*        transition: opacity .7s ease, transform .7s ease;*/
/*        transition-delay: calc(var(--i, 0) * 320ms);*/
/*    }*/
/*    [data-reveal].is-visible { opacity: 1; transform: none; }*/
/*    [data-turbo-preview] [data-reveal] { opacity: 1; transform: none; transition: none; }*/
/*}*/

:root {
    --slide: 320px;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-slide-left {
        animation: slide-in-left 1s cubic-bezier(.16, 1, .3, 1) backwards;
        animation-delay: calc(var(--i, 0) * 220ms);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(calc(var(--slide) * -1));
    }
    to {
        opacity: 1;
        transform: none;
    }
}


:root {
    --rise: 320px;
    --slide: 120px;
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        opacity: 0;
        transform: translateY(var(--rise));
        transition: opacity 1.7s cubic-bezier(.16, 1, .3, 1),
        transform .9s cubic-bezier(.16, 1, .3, 1);
        transition-delay: calc(var(--i, 0) * 320ms);
    }

    [data-reveal="left"] {
        transform: translateX(calc(var(--slide) * -1));
    }

    [data-reveal="right"] {
        transform: translateX(var(--slide));
    }

    /* Revealed: either the parent section or the element itself is visible */
    [data-reveal-group].is-visible [data-reveal],
    [data-reveal].is-visible {
        opacity: 1;
        transform: none;
    }

    [data-turbo-preview] [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}