/* Hero shell — coach copy left; right slot reserved for future video */

html:has(.landing-body) {
    scroll-behavior: smooth;
}

.landing-topbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    justify-self: end;
}

.landing-topbar__login,
.landing-topbar__sign-up {
    text-transform: none;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
}

.landing-topbar__sign-up {
    box-shadow: var(--rtp-hover-glow);
}

.landing-hero__shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 40px) clamp(36px, 5vw, 64px);
    gap: 32px;
    min-height: clamp(340px, 52vh, 500px);
}

@media (min-width: 960px) {
    .landing-hero__shell {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(200px, 320px);
        align-items: center;
        column-gap: clamp(48px, 7vw, 80px);
        min-height: clamp(380px, 58vh, 520px);
    }

    .landing-hero__content {
        min-width: 0;
    }

    .landing-hero__subtitle {
        max-width: min(30rem, 100%);
    }

    .landing-hero__actions {
        justify-content: flex-start;
    }

    .landing-hero__media-slot {
        min-width: 0;
        justify-content: flex-end;
        justify-self: end;
        width: 100%;
        max-width: 320px;
    }

    .landing-hero__media-slot .rtp-logo-vertical {
        width: 100%;
        max-width: 320px;
    }
}

@media (min-width: 960px) and (max-width: 1100px) {
    .landing-hero__shell {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
        column-gap: clamp(32px, 5vw, 48px);
    }

    .landing-hero__media-slot {
        max-width: 240px;
    }

    .landing-hero__media-slot .rtp-logo-vertical {
        max-width: 240px;
    }
}

.landing-hero__media-slot {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-hero__media-slot .rtp-logo-vertical {
    display: block;
    width: min(100%, 280px);
    max-width: 280px;
    height: auto;
}

@media (prefers-reduced-motion: no-preference) {
    .landing-hero__content {
        animation: landing-hero-in 0.55s ease both;
    }

    .landing-hero__media-slot .rtp-logo-vertical {
        animation: landing-hero-in 0.65s 0.08s ease both;
    }
}

@keyframes landing-hero-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 959px) {
    .landing-hero__shell {
        gap: 20px;
    }

    .landing-hero__content {
        align-items: center;
        text-align: center;
    }

    .landing-hero__actions {
        justify-content: center;
    }

    .landing-hero__media-slot {
        display: flex;
        justify-content: center;
        margin-top: -2px;
    }

    .landing-hero__media-slot .rtp-logo-vertical {
        width: min(100%, 220px);
        max-width: 220px;
    }
}

.landing-ui-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 12000;
    max-width: min(92vw, 24rem);
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--rtp-border);
    background: var(--rtp-bg-panel);
    box-shadow: var(--rtp-shadow-soft);
    color: var(--rtp-brand-text);
    font-family: var(--rtp-font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 0.75rem);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.landing-ui-toast--visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.landing-ios-a2hs-overlay {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px 16px max(24px, env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--rtp-bg-app) 35%, #000 65%);
}

.landing-ios-a2hs-overlay.hidden {
    display: none;
}

.landing-ios-a2hs-overlay__panel {
    width: min(100%, 22rem);
    padding: 1.35rem 1.25rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--rtp-border);
    background: var(--rtp-bg-panel);
    box-shadow: var(--rtp-shadow-soft);
    color: var(--rtp-brand-text);
    font-family: var(--rtp-font-ui);
}

.landing-ios-a2hs-overlay__title {
    margin: 0 0 0.75rem;
    font-family: var(--rtp-font-brand);
    font-size: 1.05rem;
    font-weight: 800;
}

.landing-ios-a2hs-overlay__steps {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--rtp-brand-muted);
}

.landing-ios-a2hs-overlay__dismiss {
    width: 100%;
}

@media (max-width: 768px) {
    .landing-topbar__actions {
        grid-column: 2;
        grid-row: 1;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }

    .landing-topbar__login,
    .landing-topbar__sign-up {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .landing-topbar__actions {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
    }

    .landing-topbar__login,
    .landing-topbar__sign-up {
        width: auto;
        flex: 0 1 auto;
        padding: 7px 10px;
        font-size: 0.7rem;
        white-space: nowrap;
    }
}
