@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 3rem;
        text-align: center;
    }

    .hero-copy {
        padding-left: 0;
        justify-items: center;
        gap: 1.25rem;
        transform: none;
    }

    .hero-panel {
        justify-self: start;
        width: min(100%, 640px);
        justify-self: center;
    }
}

@media (max-width: 860px) {
    :root {
        --rail: 0px;
    }

    .footer,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        min-height: 53px;
        padding: 0 1rem;
        flex-direction: row;
    }

    .topbar::before {
        content: "\2630";
        color: hsl(var(--foreground));
        font-size: 1.25rem;
        line-height: 1;
    }

    .topbar .brand,
    .topbar .nav {
        display: none;
    }

    .nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: .25rem;
    }

    .side-rail {
        display: none;
    }

    .scene-bg {
        display: block;
        inset: var(--topbar) 0 0 0;
    }

    body::before {
        inset: var(--topbar) 0 0 0;
    }

    .page {
        margin: 0;
        padding: 0;
    }

    .hero,
    .grid,
    .grid.two,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        width: min(100% - 1rem, 760px);
        padding-top: calc(var(--topbar) + 1.25rem);
    }

    .hero h1,
    .library-hero h1 {
        font-size: clamp(1.875rem, 8vw, 2.25rem);
    }

    .hero-panel {
        min-height: auto;
    }

    .hero-panel .media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .library-hero {
        min-height: auto;
        padding-top: calc(var(--topbar) + 5rem);
    }

    .library-search,
    .form-grid-two,
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .pricing-hero {
        padding-inline: 1rem;
    }

    .pricing-hero h1 {
        font-size: clamp(2.25rem, 10vw, 3rem);
    }

    .category-tabs,
    .pill-tabs {
        max-width: 100%;
        overflow-x: auto;
    }

    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
        width: 100%;
    }

    .messenger-float::before {
        display: none;
    }
}

@media (max-width: 560px) {
    .actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .button,
    button,
    input[type="submit"] {
        width: 100%;
        min-height: 44px;
        padding-block: .65rem;
    }
}
