@font-face {
    font-family: "Metropolis";
    src: url("/static/assets/fonts/metropolis/Metropolis-Regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Metropolis";
    src: url("/static/assets/fonts/metropolis/Metropolis-Medium.otf") format("opentype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Metropolis";
    src: url("/static/assets/fonts/metropolis/Metropolis-SemiBold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Metropolis";
    src: url("/static/assets/fonts/metropolis/Metropolis-ExtraBold.otf") format("opentype");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

:root {
    --qb-green: #2ca01c;
    --qb-green-deep: #1f7d14;
    --qb-green-soft: #ecf9e9;
    --qb-dark: #0f172a;
    --qb-muted: #5b6475;
    --qb-soft: #f4f8f5;
    --qb-border: #dce7df;
    --qb-card: #ffffff;
    --qb-ai: #0f766e;
    --qb-ai-soft: #dff7f3;
    --qb-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;
    color: var(--qb-dark);
    background:
        radial-gradient(circle at top left, rgba(44, 160, 28, 0.05), transparent 22%),
        linear-gradient(180deg, #fbfefc 0%, #ffffff 28%, #fbfefc 100%);
    font-family: "Metropolis", "Segoe UI", sans-serif;
}

a {
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.container.is-fullhd {
    max-width: 1180px !important;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-main {
    flex: 1;
}

.qb-navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(220, 231, 223, 0.9);
}

.qb-navbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 4.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    column-gap: 1.25rem;
}

.qb-navbar-brand-link {
    align-items: center;
}

.qb-navbar-brand-cluster {
    gap: 0.85rem;
}

.qb-brand-badge--nav {
    width: auto;
    height: auto;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
}

.qb-brand-badge-img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: cover;
}

.qb-navbar-brand-text {
    line-height: 1.2;
    gap: 0.15rem;
}

.qb-navbar-brand-name {
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    letter-spacing: -0.02em;
    color: var(--qb-dark);
}

.qb-navbar-brand-tagline {
    max-width: 22rem;
}

@media screen and (min-width: 1024px) {
    .qb-navbar-inner {
        flex-wrap: nowrap;
    }

    .qb-navbar .navbar-menu.qb-navbar-menu {
        flex-grow: 1;
        flex-shrink: 1;
        min-width: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        margin-top: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .qb-navbar .navbar-start.qb-navbar-links {
        flex-grow: 1;
        justify-content: center;
        flex-wrap: wrap;
        gap: clamp(0.15rem, 0.9vw, 0.5rem);
        margin: 0 clamp(1rem, 3vw, 2.5rem) 0 0;
    }

    .qb-navbar .navbar-start.qb-navbar-links .navbar-item {
        padding: 0.6rem 1.15rem;
        border-radius: 14px;
    }

    .qb-navbar .navbar-end.qb-navbar-actions {
        flex-shrink: 0;
        align-items: center;
    }

    .qb-navbar .navbar-end .navbar-item.qb-navbar-actions-inner {
        padding-right: 0;
    }

    .qb-navbar-buttons {
        display: inline-flex;
        flex-wrap: wrap;
        gap: 0.65rem;
        align-items: center;
    }
}

.qb-footer-nav {
    gap: 0.65rem 1.25rem;
}

.qb-brand-badge {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #fbffff);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 14px 28px rgba(44, 160, 28, 0.2);
}

.qb-nav-link {
    color: var(--qb-muted);
    font-weight: 700;
}

.qb-nav-link:hover {
    color: var(--qb-dark);
    background: transparent;
}

.qb-button-primary,
.qb-ai-btn {
    border: none;
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    min-height: 46px;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
    box-shadow: 0 16px 28px rgba(44, 160, 28, 0.16);
}

.qb-button-primary {
    background: linear-gradient(135deg, var(--qb-green), #24901a);
}

.qb-button-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #24901a, #1f7d14);
}

.qb-button-light {
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid var(--qb-border);
}

.qb-button-light:hover {
    border-color: #cbd9cf;
}

.qb-hero {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 2rem;
    background:
        radial-gradient(circle at top right, rgba(44, 160, 28, 0.12), transparent 24%),
        radial-gradient(circle at left center, rgba(122, 214, 59, 0.08), transparent 22%),
        linear-gradient(180deg, #fafffb 0%, #ffffff 100%);
}

.qb-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    max-width: 100%;
    border: 1px solid #d7efcf;
    color: #287d1b;
    background: #fff;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(44, 160, 28, 0.08);
}

.qb-hero-title {
    font-size: clamp(2.45rem, 5vw, 4.15rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--qb-dark);
    max-width: 11ch;
}

.qb-hero-subtitle {
    color: var(--qb-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 35rem;
}

.qb-hero-meaning {
    color: var(--qb-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 38rem;
    padding-left: 1rem;
    border-left: 3px solid color-mix(in srgb, var(--qb-primary, #2ca01c) 38%, transparent);
}

.qb-hero-meaning em {
    font-style: italic;
    color: var(--qb-dark);
}

.qb-stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.qb-stat-pill {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--qb-border);
    border-radius: 999px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: var(--qb-muted);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.qb-dashboard-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(220, 231, 223, 0.95);
    border-radius: 30px;
    padding: 0.4rem;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.qb-dashboard-inner {
    background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 245, 0.98));
    border: 1px solid #eaf1eb;
    border-radius: 24px;
    padding: 0.6rem;
    overflow: hidden;
}

.qb-dashboard-head,
.qb-plan-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.qb-mini-card {
    background: #fff;
    border: 1px solid #e7efea;
    border-radius: 22px;
    padding: 0.55rem 0.6rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
    height: 100%;
    min-width: 0;
}

.qb-mini-label {
    color: #7b8699;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.qb-mini-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--qb-dark);
}

.qb-money {
    font-size: clamp(1.15rem, 2vw, 1.3rem) !important;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.qb-section {
    padding: 1rem 0;
}

/* Pricing → products: room for tall cards, shadows, and hover lift */
.qb-section-pricing {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

#products.qb-section {
    padding-top: clamp(2rem, 5vw, 4rem);
    padding-bottom: clamp(3rem, 8vw, 6rem);
}

/* After product cards (shadows, hover lift) — clear space before Upgrade path */
#upgrade-path.qb-section {
    padding-top: clamp(2.75rem, 7vw, 5.5rem);
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.qb-section-muted {
    background: linear-gradient(180deg, #f4f8f5 0%, #eef5ef 100%);
}

.qb-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--qb-green);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 800;
}

.qb-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--qb-dark);
    line-height: 1.02;
    margin-top: 0.75rem;
    max-width: 16ch;
}

.qb-section-text {
    color: var(--qb-muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 43rem;
    margin-top: 1rem;
}

.qb-section-text-compact {
    max-width: none;
    margin-bottom: 0;
}

.qb-card-grid {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

.qb-card-grid--features,
.qb-card-grid--upgrade {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Static landing (main.html): pricing grid adapts but keeps sensible min width */
.qb-card-grid--pricing {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Dynamic landing: five tiers (Free → Large) */
.qb-card-grid--pricing.qb-card-grid--pricing-five {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Lock five-up layout only on very wide screens */
@media screen and (min-width: 1216px) {
    .qb-card-grid--pricing.qb-card-grid--pricing-five {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.qb-card-grid--summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qb-grid-cell {
    display: flex;
    min-width: 0;
    min-height: 0;
    align-items: stretch;
}

.qb-grid-cell > * {
    width: 100%;
}

.qb-feature-card,
.qb-summary-card,
.qb-upgrade-card {
    background: var(--qb-card);
    border: 1px solid var(--qb-border);
    border-radius: 26px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.qb-feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.6rem;
    height: 100%;
}

.qb-feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #ecf9e9;
    color: var(--qb-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.qb-plan-overview-grid {
    display: grid;
    grid-template-columns: minmax(290px, 0.95fr) minmax(0, 1.25fr);
    gap: 1.5rem;
    align-items: stretch;
}

.qb-side-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(122, 214, 59, 0.18), transparent 24%),
        linear-gradient(180deg, #132314 0%, #0f172a 100%);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2);
}

.qb-side-kicker {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.8;
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.qb-side-note {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.8;
}

.qb-side-card .menu {
    margin-top: 0.5rem;
}

.qb-side-card .menu-label,
.qb-side-card .menu-list a {
    color: rgba(255, 255, 255, 0.82);
}

.qb-side-card .menu-list a {
    border-radius: 14px;
}

.qb-side-card .menu-list a:hover,
.qb-side-card .menu-list a.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.qb-side-highlight {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.92);
    color: var(--qb-dark);
    border-radius: 22px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.qb-side-list {
    margin: 0;
    padding-left: 1rem;
    color: #4b5563;
    line-height: 1.8;
}

.qb-overview-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(220, 231, 223, 0.95);
    border-radius: 30px;
    box-shadow: var(--qb-shadow);
}

.qb-overview-card .qb-section-title,
.qb-upgrade-head .qb-section-title {
    max-width: 14ch;
}

.qb-overview-card .qb-section-text {
    margin-top: 0;
}

.qb-summary-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.3rem;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
}

.qb-summary-label,
.qb-plan-chip {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.55rem 0.8rem;
}

.qb-summary-label,
.qb-plan-chip {
    background: #edf8ea;
    color: var(--qb-green-deep);
}

.qb-plan-chip-enterprise {
    background: #eef2ff;
    color: #334155;
}

.qb-plan-chip-popular {
    background: #effceb;
    color: var(--qb-green-deep);
}

.qb-plan-chip-ai {
    background: var(--qb-ai-soft);
    color: var(--qb-ai);
}

.qb-pricing-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.6rem;
    border-radius: 30px;
    border: 1px solid rgba(220, 231, 223, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 248, 0.98) 100%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

/* Fills space between price and CTA; keeps buttons aligned in a row of equal-height cards */
.qb-pricing-card__middle {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.qb-pricing-card__meta {
    flex-shrink: 0;
}

.qb-pricing-card .qb-plan-btn {
    margin-top: auto;
    flex-shrink: 0;
}

.qb-pricing-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(44, 160, 28, 0.16), rgba(44, 160, 28, 0.7));
}

.qb-pricing-card.popular {
    border-color: rgba(44, 160, 28, 0.35);
    box-shadow: 0 24px 52px rgba(44, 160, 28, 0.12);
}

.qb-pricing-card.popular::before {
    background: linear-gradient(90deg, rgba(44, 160, 28, 0.4), rgba(122, 214, 59, 0.95));
}

.qb-pricing-card.ai-tier {
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 24px 52px rgba(15, 118, 110, 0.12);
}

.qb-pricing-card.ai-tier::before {
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.35), rgba(45, 212, 191, 0.95));
}

.qb-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

.qb-plan-header {
    display: grid;
    align-content: start;
    gap: 1rem;
    min-height: 192px;
    flex-shrink: 0;
}

/* Five columns: narrow width — let header size to content to avoid excessive card height */
.qb-card-grid--pricing-five .qb-plan-header {
    min-height: 0;
}

.qb-tier-label {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem !important;
    line-height: 1;
}

.qb-tier-label-ai {
    color: var(--qb-ai);
}

.qb-plan-title {
    font-size: 1.55rem !important;
    line-height: 1.04 !important;
    letter-spacing: -0.03em;
}

.qb-plan-desc {
    font-size: 0.95rem;
    line-height: 1.65;
}

.qb-price-wrap {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(220, 231, 223, 0.95);
    flex-shrink: 0;
}

.qb-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.08rem;
    font-size: clamp(1.1rem, 1.3vw, 1.65rem);
    font-weight: 800;
    color: var(--qb-dark);
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.qb-price-currency {
    font-size: 0.95em;
}

.qb-price-value {
    font-size: 1em;
    font-variant-numeric: tabular-nums;
}

.qb-pricing-card.ai-tier .qb-price {
    font-size: clamp(1rem, 1.2vw, 1.5rem);
}

.qb-price-suffix {
    color: var(--qb-muted);
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.3;
}

.qb-pricing-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.qb-pricing-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: start;
    color: var(--qb-muted);
    line-height: 1.55;
}

.qb-pricing-list li i {
    color: var(--qb-green);
    margin-top: 0.22rem;
    font-size: 0.82rem;
}

.qb-pricing-card.ai-tier .qb-pricing-list li i {
    color: var(--qb-ai);
}

.qb-plan-btn {
    margin-top: 0;
    min-height: 48px;
    font-weight: 700;
    border-radius: 16px;
}

.qb-ai-btn {
    background: linear-gradient(135deg, var(--qb-ai), #0b5f58);
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.18);
}

.qb-ai-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #0b5f58, #084f49);
}

.qb-upgrade-head {
    max-width: 44rem;
}

.qb-upgrade-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.5rem;
    height: 100%;
}

.qb-upgrade-step {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(44, 160, 28, 0.14), rgba(122, 214, 59, 0.35));
    color: var(--qb-green-deep);
    font-weight: 800;
    font-size: 0.95rem;
}

.qb-footer {
    border-top: 1px solid var(--qb-border);
    background: #fff;
    padding: 1.75rem 0;
}

.qb-footer a {
    font-weight: 700;
}

.qb-muted {
    color: var(--qb-muted);
}

@media screen and (max-width: 1215px) {
    .qb-card-grid--features,
    .qb-card-grid--upgrade {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qb-card-grid--pricing {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media screen and (max-width: 1023px) {
    .qb-navbar-inner {
        row-gap: 0.35rem;
    }

    .qb-navbar .navbar-menu {
        margin-top: 0.9rem;
        padding: 1rem 1.1rem;
        background: #fff;
        border: 1px solid var(--qb-border);
        border-radius: 24px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    }

    .qb-navbar .navbar-start.qb-navbar-links {
        gap: 0.2rem;
    }

    .qb-navbar .navbar-item {
        border-radius: 14px;
    }

    .qb-navbar .buttons.qb-navbar-buttons {
        display: grid;
        width: 100%;
        gap: 0.65rem;
    }

    .qb-navbar .buttons .button {
        width: 100%;
        justify-content: center;
    }

    .qb-hero {
        padding-top: 2.75rem;
    }

    .qb-plan-overview-grid {
        grid-template-columns: 1fr;
    }

    .qb-pricing-card,
    .qb-overview-card,
    .qb-side-card {
        border-radius: 26px;
    }

    .qb-plan-header {
        min-height: auto;
    }
}

@media screen and (max-width: 768px) {
    .qb-section {
        padding: 3.5rem 0;
    }

    .qb-hero-title {
        max-width: none;
    }

    .qb-hero-subtitle {
        font-size: 1rem;
    }

    .qb-hero-meaning {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .qb-hero .buttons {
        display: grid;
    }

    .qb-hero .buttons .button {
        width: 100%;
        justify-content: center;
    }

    .qb-stat-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .qb-dashboard-card,
    .qb-dashboard-inner,
    .qb-feature-card,
    .qb-summary-card,
    .qb-pricing-card,
    .qb-overview-card,
    .qb-side-card,
    .qb-upgrade-card {
        border-radius: 22px;
    }

    .qb-dashboard-inner,
    .qb-feature-card,
    .qb-summary-card,
    .qb-pricing-card,
    .qb-overview-card,
    .qb-side-card,
    .qb-upgrade-card {
        padding: 1.2rem;
    }

    .qb-card-grid--features,
    .qb-card-grid--summary,
    .qb-card-grid--pricing,
    .qb-card-grid--upgrade {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .qb-section-title,
    .qb-overview-card .qb-section-title,
    .qb-upgrade-head .qb-section-title {
        max-width: none;
    }

    .qb-plan-title {
        font-size: 1.35rem !important;
    }

    .qb-price {
        font-size: 1.95rem;
    }
}

@media screen and (max-width: 480px) {
    .qb-brand-badge {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .qb-hero-tag {
        font-size: 0.68rem;
        white-space: normal;
    }

    .qb-hero-title {
        font-size: clamp(2rem, 11vw, 2.6rem);
    }

    .qb-section-title {
        font-size: 1.85rem;
    }

    .qb-price {
        font-size: 1.8rem;
    }

    .qb-pricing-list li,
    .qb-plan-desc {
        font-size: 0.9rem;
    }
}
    .qb-client-marquee {
        position: relative;
        overflow: hidden;
        width: 100%;
        mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    }

    .qb-client-track {
        display: flex;
        align-items: stretch;
        gap: 1rem;
        width: max-content;
        animation: qbClientScroll 28s linear infinite;
    }

    .qb-client-marquee:hover .qb-client-track {
        animation-play-state: paused;
    }

    .qb-client-card {
        min-width: 220px;
        max-width: 400px;
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 18px;
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 0.9rem;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
        overflow: hidden;
    }

    .qb-client-logo-wrap {
        width: 54px;
        height: 54px;
        min-width: 54px;
        border-radius: 14px;
        overflow: hidden;
        background: #f8fafc;
        border: 1px solid rgba(15, 23, 42, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .qb-client-logo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .qb-client-logo-fallback {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 1rem;
        color: #475569;
        background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    }

    .qb-client-name {
        margin: 0;
        font-weight: 600;
        font-size: 0.95rem;
        line-height: 1.35;
        color: #1f2937;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: break-word;
    }

    @keyframes qbClientScroll {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(-50%);
        }
    }

    @media (max-width: 768px) {
        .qb-client-card {
            min-width: 190px;
            max-width: 190px;
            padding: 0.85rem;
        }

        .qb-client-logo-wrap {
            width: 46px;
            height: 46px;
            min-width: 46px;
        }

        .qb-client-name {
            font-size: 0.9rem;
        }
    }

    .qb-client-card-gold {
        position: relative;
        background: linear-gradient(180deg, #fffdf7 0%, #fff7e6 100%);
        border: 1px solid rgba(212, 175, 55, 0.38);
        box-shadow:
            0 12px 30px rgba(15, 23, 42, 0.08),
            0 0 0 1px rgba(255, 215, 0, 0.12) inset;
    }

    .qb-client-card-gold::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 18px;
        padding: 1px;
        background: linear-gradient(135deg, #f8e7a1, #d4af37, #fff3c4);
        -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

    .qb-client-logo-wrap-gold {
        background: radial-gradient(circle at top, #fff8dc 0%, #f5deb3 100%);
        border: 1px solid rgba(212, 175, 55, 0.45);
        box-shadow: 0 6px 16px rgba(212, 175, 55, 0.18);
    }

    .qb-client-logo-fallback-gold {
        color: #7a5a00;
        background: linear-gradient(180deg, #fff7cc 0%, #f0d36b 100%);
    }

    .qb-client-name-gold {
        color: #6f4e00;
        font-weight: 700;
    }

    .qb-client-badge {
        display: inline-flex;
        margin-top: 0.35rem;
        padding: 0.2rem 0.55rem;
        border-radius: 999px;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: #7a5a00;
        background: rgba(212, 175, 55, 0.14);
        border: 1px solid rgba(212, 175, 55, 0.28);
    }
    .qb-sponsored-highlight {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 1.5rem 1.75rem;
        border-radius: 22px;
        background:
            linear-gradient(135deg, rgba(255, 215, 64, 0.16), rgba(255, 255, 255, 0.96)),
            linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96));
        border: 1px solid rgba(212, 175, 55, 0.28);
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
        position: relative;
        overflow: hidden;
    }

    .qb-sponsored-highlight::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255, 215, 64, 0.18), transparent 35%);
        pointer-events: none;
    }

    .qb-sponsored-highlight__content {
        position: relative;
        z-index: 1;
        max-width: 760px;
    }

    .qb-sponsored-highlight__kicker {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: #9a6b00;
    }

    .qb-sponsored-highlight__title {
        font-size: clamp(1.45rem, 2vw, 2rem);
        font-weight: 800;
        color: #1f2937;
        line-height: 1.15;
    }

    .qb-sponsored-highlight__text {
        font-size: 0.98rem;
        line-height: 1.7;
        color: #4b5563;
    }

    .qb-sponsored-highlight__badge-wrap {
        position: relative;
        z-index: 1;
        flex-shrink: 0;
    }

    .qb-sponsored-highlight__badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.8rem 1.1rem;
        border-radius: 999px;
        background: linear-gradient(135deg, #d4af37, #f4d06f);
        color: #3b2a00;
        font-size: 0.82rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
    }

    @media screen and (max-width: 768px) {
        .qb-sponsored-highlight {
            flex-direction: column;
            align-items: flex-start;
            padding: 1.25rem;
        }

        .qb-sponsored-highlight__badge-wrap {
            width: 100%;
        }

        .qb-sponsored-highlight__badge {
            width: 100%;
            justify-content: center;
        }
    }
    .qb-sponsored-highlight__logo-wrap {
        position: relative;
        z-index: 1;
        flex-shrink: 0;
        width: 200px;
        height: 200px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(212, 175, 55, 0.24);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);

    }

    .qb-sponsored-highlight__logo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


    .qb-card-grid--products {
        display: grid;
        grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
        gap: 1.25rem;
    }

    .qb-product-card {
        position: relative;
        height: 100%;
        padding: 1.35rem;
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
        border: 1px solid rgba(148, 163, 184, 0.18);
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .qb-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 50px rgba(15, 23, 42, 0.10);
        border-color: rgba(34, 197, 94, 0.18);
    }

    .qb-product-card--live {
        border-color: rgba(34, 197, 94, 0.25);
        box-shadow: 0 20px 50px rgba(34, 197, 94, 0.10);
    }

    .qb-product-card__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .qb-product-icon {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: #15803d;
        background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(240, 253, 244, 0.92));
        border: 1px solid rgba(34, 197, 94, 0.16);
        flex-shrink: 0;
    }

    .qb-product-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.4rem 0.75rem;
        border-radius: 999px;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        background: rgba(148, 163, 184, 0.12);
        color: #475569;
        border: 1px solid rgba(148, 163, 184, 0.18);
        white-space: nowrap;
    }

    .qb-product-badge--live {
        background: rgba(34, 197, 94, 0.12);
        color: #15803d;
        border-color: rgba(34, 197, 94, 0.18);
    }

    .qb-product-status {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.86rem;
        font-weight: 600;
        color: #15803d;
    }

    .qb-product-status--soon {
        color: #64748b;
    }

    .qb-products-head {
        max-width: 760px;
    }

    @media screen and (max-width: 768px) {
        .qb-product-card {
            padding: 1.1rem;
        }

        .qb-product-card__top {
            align-items: flex-start;
            flex-direction: column;
        }
    }
@media screen and (max-width: 1023px) {
    .qb-hero .columns {
        row-gap: 1.5rem;
    }

    .qb-dashboard-card {
        margin-top: 0.5rem;
    }

    .qb-plan-overview-grid {
        grid-template-columns: 1fr;
    }

    .qb-overview-card,
    .qb-side-card {
        min-height: auto;
    }
}

@media screen and (max-width: 768px) {
    .container.is-fullhd,
    .container-fluid.is-fullhd {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .qb-hero {
        padding: 1.5rem 0 2rem;
    }

    .qb-hero-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
        line-height: 1.05;
        letter-spacing: -0.03em;
        max-width: 100%;
    }

    .qb-hero-subtitle {
        font-size: 0.98rem;
        line-height: 1.7;
        max-width: 100%;
    }

    .qb-hero-meaning {
        font-size: 0.88rem;
        line-height: 1.6;
        max-width: 100%;
        padding-left: 0.75rem;
    }

    .qb-stat-strip {
        gap: 0.7rem;
    }

    .qb-stat-pill {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        padding: 0.8rem 0.9rem;
        font-size: 0.92rem;
    }

    .qb-dashboard-head,
    .qb-plan-head,
    .qb-product-card__top {
        align-items: flex-start;
        flex-direction: column;
    }

    .qb-mini-card__top {
        align-items: flex-start;
    }

    .qb-mini-value--aligned {
        min-height: auto;
        font-size: 1.25rem;
    }

    .qb-section {
        padding: 2.75rem 0;
    }

    .qb-section-title {
        font-size: clamp(1.65rem, 7vw, 2.2rem);
        line-height: 1.1;
        max-width: 100%;
    }

    .qb-section-text {
        font-size: 0.96rem;
        line-height: 1.7;
        max-width: 100%;
    }

    .qb-card-grid--features,
    .qb-card-grid--summary,
    .qb-card-grid--pricing,
    .qb-card-grid--upgrade {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .qb-feature-card,
    .qb-summary-card,
    .qb-pricing-card,
    .qb-overview-card,
    .qb-side-card,
    .qb-upgrade-card,
    .qb-product-card {
        padding: 1rem;
        border-radius: 20px;
    }

    .qb-plan-header {
        min-height: auto;
        gap: 0.8rem;
    }

    .qb-plan-title {
        font-size: 1.25rem !important;
        line-height: 1.15 !important;
    }

    .qb-plan-desc,
    .qb-pricing-list li,
    .qb-product-status,
    .qb-muted {
        font-size: 0.92rem;
    }

    .qb-price-wrap {
        gap: 0.3rem;
        align-items: baseline;
    }

    .qb-price {
        font-size: 1.6rem !important;
        white-space: normal;
        word-break: break-word;
    }

    .qb-price-suffix {
        font-size: 0.82rem;
    }

    .qb-pricing-list {
        gap: 0.75rem;
    }

    .qb-pricing-list li {
        grid-template-columns: 18px 1fr;
        gap: 0.55rem;
    }

    .qb-plan-btn,
    .qb-button-primary,
    .qb-button-light,
    .support-submit-btn {
        min-height: 46px;
        width: 100%;
    }

    .qb-client-card {
        min-width: 180px;
        max-width: 260px;
        padding: 0.85rem;
        gap: 0.75rem;
    }

    .qb-client-logo-wrap {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }

    .qb-client-name {
        font-size: 0.88rem;
    }

    .support-widget {
        right: 12px;
        bottom: 12px;
    }

    .support-widget__button {
        width: 56px;
        height: 56px;
    }

    .support-widget__panel {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 78px;
        width: auto;
        max-width: none;
    }

    .support-card {
        border-radius: 20px;
        max-height: calc(100vh - 110px);
        overflow: hidden;
    }

    .support-card__body {
        max-height: calc(100vh - 180px);
        overflow-y: auto;
        padding: 0.85rem;
    }

    .support-card__top {
        padding: 0.9rem 1rem;
    }

    .support-layout {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .support-side,
    .support-form-wrap {
        padding: 0.9rem;
        border-radius: 18px;
    }

    .support-quick-options {
        gap: 0.5rem;
    }

    .support-quick-option {
        padding: 0.75rem;
    }

    .support-quick-option__title {
        font-size: 0.8rem;
    }

    .support-form .input,
    .support-form .textarea,
    .support-form .select select {
        min-height: 44px;
        font-size: 16px;
    }

    .support-form .textarea {
        min-height: 110px;
    }
}

@media screen and (max-width: 480px) {
    .qb-hero-title {
        font-size: clamp(1.75rem, 10vw, 2.3rem);
    }

    .qb-hero-subtitle,
    .qb-hero-meaning,
    .qb-section-text,
    .qb-plan-desc,
    .qb-pricing-list li {
        font-size: 0.9rem;
    }

    .qb-mini-card,
    .qb-feature-card,
    .qb-summary-card,
    .qb-pricing-card,
    .qb-overview-card,
    .qb-side-card,
    .qb-product-card {
        padding: 0.9rem;
    }

    .qb-price {
        font-size: 1.45rem !important;
    }

    .qb-plan-chip,
    .qb-summary-label,
    .qb-product-badge {
        font-size: 0.64rem;
        padding: 0.45rem 0.65rem;
    }

    .qb-client-card {
        min-width: 160px;
        max-width: 220px;
    }

    .support-widget__panel {
        left: 8px;
        right: 8px;
        bottom: 74px;
    }

    .support-card__title {
        font-size: 1rem;
    }

    .support-card__subtitle {
        font-size: 0.8rem;
    }
}

/* Legal modals (Terms & Privacy — landing) */
.qb-legal-modal.modal {
    z-index: 1100;
}

.qb-legal-modal .modal-card {
    max-width: 42rem;
    width: calc(100% - 2rem);
    margin: 0 auto;
}

.qb-legal-modal .modal-card-head {
    border-bottom: 1px solid var(--qb-border);
    background: var(--qb-soft);
}

.qb-legal-modal .modal-card-body {
    max-height: min(72vh, 38rem);
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.qb-legal-prose .title.is-6 {
    color: var(--qb-dark);
    margin-bottom: 0.5rem !important;
}

.qb-legal-prose ul {
    margin-top: 0.5rem;
}

/* Footer legal triggers — outlined pill buttons */
.qb-footer-legal {
    margin-top: 0.85rem;
    gap: 0.5rem 0.65rem;
}

.qb-footer-legal__sep {
    color: #64748b;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    user-select: none;
    padding: 0 0.1rem;
}

.qb-legal-pill {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-align: center;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.qb-legal-pill:hover {
    background: #e2e8f0;
    border-color: #64748b;
    color: #1e293b;
}

.qb-legal-pill:active {
    background: #cbd5e1;
}

.qb-legal-pill:focus {
    outline: none;
}

.qb-legal-pill:focus-visible {
    outline: 2px solid var(--qb-green);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(44, 160, 28, 0.2);
}

@media screen and (max-width: 480px) {
    .qb-footer-legal {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .qb-footer-legal__sep {
        display: none;
    }

    .qb-legal-pill {
        width: 100%;
    }
}

.qb-legal-inline-trigger.button.is-ghost {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: inherit !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    color: var(--qb-green-deep) !important;
    text-decoration: underline;
    text-underline-offset: 0.12em;
    vertical-align: baseline;
    display: inline;
}

.qb-legal-inline-trigger.button.is-ghost:hover {
    color: var(--qb-dark) !important;
}
