@media (max-width: 1199px) {
    .site-header .site-main-menu li > a {
        margin: 0 0.9rem;
        font-size: 1.4rem;
    }

    .toolbar-chip {
        left: -24px;
    }
}

@media (max-width: 991px) {
    html {
        font-size: 9px;
    }

    /* mobile menu (structure kept from template) */
    .site-header .header-inner .site-nav .menu-wrapper {
        flex-direction: column;
    }

    .toggle-menu {
        position: absolute;
        right: 18px;
        width: 26px;
        top: 50%;
        transform: translateY(-50%);
        display: block;
        height: 24px;
        cursor: pointer;
    }

    .toggle-menu .bar {
        width: 26px;
        height: 2px;
        display: block;
        float: left;
        margin: 3px auto;
        transition: all 0.3s ease-in-out;
    }

    .site-header .header-inner {
        text-align: center;
        padding: 12px 16px;
    }

    .site-header .site-mobile-logo {
        display: block;
        max-width: 154px;
        text-align: left;
    }

    .site-nav .site-logo {
        display: none;
    }

    .site-header .site-nav {
        position: fixed;
        width: 300px !important;
        height: 100vh;
        background: var(--ink);
        top: 0;
        right: -100%;
        display: block !important;
        transition: all 0.5s ease-in-out;
        overflow-y: auto;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    }

    .site-header .site-nav .site-main-menu {
        display: block;
        width: 100%;
        padding-bottom: 50px;
        text-align: left;
        margin: 0;
    }

    .site-header .site-nav .site-main-menu li {
        padding: 0;
        margin: 0;
    }

    .site-header .site-nav .site-main-menu li > a {
        display: block;
        margin: 0;
        padding: 14px 32px;
        font-weight: 600;
        font-size: 1.7rem;
        color: #FFFFFF;
    }

    .site-header .site-nav .site-main-menu li > a.active,
    .site-header .site-nav .site-main-menu li > a.current_page {
        color: var(--accent);
    }

    .site-header .site-nav > .btn {
        display: none;
    }

    .sidebar-open .site-header .site-nav {
        right: 0;
    }

    .sidebar-open .menu-wrapper:before {
        opacity: 1;
        visibility: visible;
    }

    .close-menu {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        padding: 26px 24px;
        color: #B9C3D1;
        cursor: pointer;
    }

    .close-menu span {
        font-size: 15px;
    }

    .site-header {
        margin-top: 12px;
    }

    /* hero stacks */
    .hero {
        padding: 5rem 0 7rem;
        text-align: center;
    }

    .hero__title,
    .hero__text {
        margin-left: auto;
        margin-right: auto;
    }

    .proof {
        text-align: left;
    }

    .hero__visual {
        margin-top: 6rem;
        max-width: 340px;
    }

    .hero__visual::before {
        width: 440px;
        height: 440px;
    }

    .toolbar-chip {
        left: -30px;
    }

    /* ledger: trick label above, query → fix side by side */
    .ledger__head {
        display: none;
    }

    .ledger__row {
        grid-template-columns: 1fr 1fr;
        gap: 12px 24px;
    }

    .ledger__trick {
        grid-column: 1 / -1;
    }

    /* how: stack, connector turns vertical */
    .how__flow {
        grid-template-columns: 1fr;
        gap: 56px;
        max-width: 560px;
        margin: 0 auto;
    }

    .how__head {
        min-height: 0;
    }

    .how__step:not(:last-child)::after {
        top: 58px;
        bottom: -48px;
        left: 21px;
        right: auto;
        border-top: 0;
        border-left: 2px dashed var(--border-strong);
    }

    .how__head,
    .how__visual {
        margin-left: 68px;
    }

    .how__num {
        position: absolute;
        left: 0;
        top: 0;
    }

    /* charge: copy first, popup below */
    .charge {
        padding: 8rem 0 9rem;
    }

    .charge__copy {
        max-width: 560px;
        margin: 0 auto 5rem;
    }

    .contact-card {
        min-height: 0;
        margin-bottom: 24px;
    }
}

@media (max-width: 767px) {
    .title {
        font-size: 3.8rem;
    }

    .hero__title {
        font-size: 4.4rem;
    }

    .section-head__title,
    .charge__title {
        font-size: 3.4rem;
    }

    .catches {
        padding: 7rem 0 6rem;
    }

    .how {
        padding: 7rem 0 8rem;
    }

    .footer-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav-wrapper {
        gap: 32px;
        flex-wrap: wrap;
    }
}

@media (max-width: 575px) {
    .container,
    .header-container {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 3.8rem;
    }

    .proof {
        display: block;
    }

    .proof__strip {
        padding: 12px 16px;
    }

    .proof__query {
        font-size: 1.5rem;
    }

    .proof__note {
        margin-left: 3.6rem;
    }

    .hero__visual {
        max-width: 280px;
    }

    .hero__visual::before {
        width: 340px;
        height: 340px;
    }

    .toolbar-chip {
        left: -12px;
        padding: 8px 14px 8px 8px;
    }

    .toolbar-chip__icon {
        width: 38px;
        height: 38px;
    }

    .ledger__row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 2.2rem 0;
    }

    .how__head,
    .how__visual {
        margin-left: 60px;
    }

    .charge__visual img {
        width: 280px;
    }

    .contact-card {
        padding: 2.8rem 2.4rem;
    }

    .return-to-top.back-top {
        bottom: 5rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 3.4rem;
    }

    .btn_main {
        width: 100%;
    }

    .toolbar-chip__label {
        font-size: 1.3rem;
    }

    .how__head,
    .how__visual {
        margin-left: 0;
    }

    .how__head {
        padding-left: 60px;
    }

    .how__step:not(:last-child)::after {
        display: none;
    }

    .charge__visual img {
        width: 240px;
    }
}
