@media (max-width: 1023px) {
    .site-home #navbar {
        transform: none !important;
    }

    .site-home .site-nav-row {
        height: 64px;
    }

    .site-home #menu-toggle {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
    }

    .site-home .site-menu-icon,
    .site-home .site-menu-icon::before,
    .site-home .site-menu-icon::after {
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
    }

    .site-home .site-menu-icon {
        position: relative;
    }

    .site-home .site-menu-icon::before,
    .site-home .site-menu-icon::after {
        position: absolute;
        left: 0;
        content: "";
    }

    .site-home .site-menu-icon::before { top: -6px; }
    .site-home .site-menu-icon::after { top: 6px; }
    .site-home #menu-toggle[aria-expanded="true"] .site-menu-icon { background: transparent; }
    .site-home #menu-toggle[aria-expanded="true"] .site-menu-icon::before { transform: translateY(6px) rotate(45deg); }
    .site-home #menu-toggle[aria-expanded="true"] .site-menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

    .site-home #mobile-menu {
        position: absolute;
        inset: 100% 0 auto;
        max-height: calc(100vh - 64px);
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

@media (max-width: 767px) {
    .site-home .public-mobile-title,
    .site-information .public-mobile-title,
    .site-faq .public-mobile-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .site-information .site-information-actions,
    .site-faq .site-information-actions,
    .site-home .home-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .site-information-actions a,
    .site-home .home-hero-actions a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 10px 8px;
        font-size: 15px;
        line-height: 1.4;
        text-align: center;
    }

    .site-home #app > header {
        min-height: 0;
        padding-block: 32px 44px;
    }

    .site-home #app > header > .bottom-0 > svg {
        height: auto;
    }

    .site-home .public-mobile-title .gradient-text {
        display: block;
        margin-top: 6px;
        background: none;
        color: #fde68a;
        -webkit-text-fill-color: currentColor;
        font-size: 0.82em;
    }

    .site-home .home-hero-grid {
        gap: 24px;
    }

    .site-home .home-hero-tag {
        margin-bottom: 14px;
    }

    .site-home .home-hero-copy {
        margin-bottom: 16px;
        font-size: 16px;
        line-height: 1.65;
    }

    .site-home .home-hero-highlights {
        gap: 6px 8px;
        margin-bottom: 20px;
    }

    .site-home .home-hero-highlights > div {
        padding: 6px 10px;
        font-size: 13px;
    }

    .site-home .home-hero-preview,
    .site-home .home-hero-preview > div {
        padding: 8px;
        border-radius: 14px;
    }

    .site-home .home-hero-decoration {
        display: none;
    }

    .site-home main > section {
        padding-block: 44px;
    }

    .site-home main > section h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.3;
    }

    .site-home main > section .text-center.mb-16,
    .site-home main > section .text-center.mb-20,
    .site-home main > section .grid.mb-16 {
        margin-bottom: 24px;
    }

    .site-home main > section .grid {
        gap: 18px;
    }

    .site-home main > section .grid > *,
    .site-information main .grid > *,
    .site-faq main .grid > * {
        min-width: 0;
    }

    .site-home main > section .feature-card,
    .site-home #pricing .grid > div {
        padding: 18px;
    }

    .site-home .home-plan-featured {
        transform: none;
    }

    .site-home footer .py-16 {
        padding-block: 36px;
    }

    .site-home footer .py-16 > .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 14px;
        overflow-wrap: anywhere;
    }

    .site-home footer .py-16 > .grid > :first-child,
    .site-home footer .py-16 > .grid > :last-child {
        grid-column: 1 / -1;
    }

    .site-home .home-back-to-top {
        right: 12px;
        bottom: calc(62px + env(safe-area-inset-bottom, 0px));
        width: 44px;
        height: 44px;
    }

    .site-home #qrcodeModal > div {
        width: calc(100% - 28px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        padding: 18px;
    }

    .site-home #qrcodeModal > div > button {
        display: grid;
        top: 6px;
        right: 6px;
        width: 44px;
        height: 44px;
        place-items: center;
    }

    .site-home #qrcodeModal > div > button > i {
        display: none;
    }

    .site-home #qrcodeModal > div > button::after {
        content: "×";
        font-size: 26px;
        line-height: 1;
    }

    .site-home #index-customer-service-qrcode {
        width: min(100%, 224px);
        height: auto;
        aspect-ratio: 1;
        object-fit: contain;
    }

    .site-information > header > div {
        padding-block: 8px;
    }

    .site-information > header a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .site-information-hero > div,
    .site-faq-hero > div:not(.absolute) {
        padding-block: 30px;
    }

    .site-information-hero > div > p,
    .site-faq-hero p {
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.7;
    }

    .site-information-hero > div > :first-child,
    .site-faq-hero h1 {
        margin-bottom: 12px;
    }

    .site-information .site-information-actions,
    .site-faq .site-information-actions {
        margin-top: 20px;
    }

    .site-information main,
    .site-faq .site-faq-topics {
        padding-block: 20px;
    }

    .site-information main > section,
    .site-information main > .grid > section,
    .site-information main > div.rounded-2xl,
    .site-faq article,
    .site-faq main .bg-slate-900 {
        padding: 18px;
    }

    .site-information main > section {
        margin-bottom: 16px;
    }

    .site-information main > .grid {
        gap: 14px;
    }

    .site-information .site-information-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .site-information-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 7px 8px;
        border-radius: 8px;
        background: #f1f5f9;
        font-size: 14px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .site-faq-topics .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .site-faq-topics a {
        padding: 12px;
    }

    .site-faq-topics h2,
    .site-faq article h2 {
        font-size: 18px;
        line-height: 1.4;
    }
}

@media (max-width: 767px), (max-width: 1023px) and (max-height: 500px) {
    .site-auth {
        align-items: flex-start;
        padding-block: 16px;
    }

    .site-auth #app {
        min-width: 0;
        padding-inline: 12px;
    }

    .site-auth .login-container,
    .site-auth .reg-container {
        padding: 22px clamp(16px, 5vw, 28px);
        border-radius: 18px;
    }

    .site-auth :is(.login-container, .reg-container) > .text-center.mb-8 {
        margin-bottom: 16px;
    }

    .site-auth :is(.login-container, .reg-container) > .text-center > .inline-flex.mb-6 {
        margin-bottom: 12px;
    }

    .site-auth #brand-logo {
        width: 48px;
        height: 48px;
    }

    .site-auth #brand-title {
        font-size: 26px;
        line-height: 1.25;
    }

    .site-auth :is(#loginForm, #regForm) > :not([hidden]) ~ :not([hidden]) {
        margin-block: 14px 0;
    }

    .site-auth #regForm > .grid {
        gap: 14px;
    }

    .site-auth :is(#loginForm, #regForm) .input-focus {
        min-height: 48px;
        font-size: 16px;
    }

    .site-auth :is(#loginForm, #regForm) button[type="submit"],
    .site-auth :is(#reg-link, #login-link) {
        min-height: 44px;
    }

    .site-auth .loginresult:empty {
        display: none;
    }

    .site-auth .agreement-check input {
        width: 18px;
        height: 18px;
    }

    .site-auth .welcome-modal-content {
        width: calc(100% - 24px);
        max-width: 500px;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        padding: 20px;
    }

    .site-auth .welcome-modal-title {
        padding-inline: 30px;
    }

    .site-auth .welcome-modal-close {
        top: 4px;
        right: 4px;
        width: 44px;
        height: 44px;
    }
}
