/* =========================================================
   Querix pages — alignment & layout fixes
   Load AFTER snapinvoice.css so these rules win.
   ========================================================= */

/* ---------- Section headings: always centered ---------- */
.si-page .section-title,
.si-page .section-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.si-page .section-lead {
    max-width: 720px;
}

/* ---------- Hero ---------- */
.si-page .si-hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.qx-brand-name {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
}
.si-page .si-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.si-page .si-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding: 0;
    list-style: none;
}
.si-page .si-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Official Google Play badge (brand-guideline compliant) */
.qx-play-badge {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.qx-play-badge img {
    height: 64px;
    width: auto;
    display: block;
    margin: -8px; /* offsets transparent padding baked into Google's badge PNG */
}

/* Stack + center the hero copy when the phone mock drops below it */
@media (max-width: 960px) {
    .si-page .si-hero-copy {
        text-align: center;
    }
    .si-page .si-hero-brand,
    .si-page .si-hero-actions,
    .si-page .si-trust {
        justify-content: center;
    }
    .si-page .si-hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
    .si-page .si-phone-wrap {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---------- Stats ---------- */
.si-page .si-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.si-page .si-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
@media (max-width: 860px) {
    .si-page .si-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Features ---------- */
.si-page .si-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 20px;
}
.si-page .si-feature {
    position: relative;
}

/* ---------- Pricing ---------- */
.si-page .si-pricing-grid.qx-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 420px));
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    margin-left: auto;
    margin-right: auto;
}
.si-page .si-plan {
    display: flex;
    flex-direction: column;
}
.si-page .si-plan ul {
    flex: 1 1 auto;
}
.si-page .si-plan .cta-button {
    align-self: stretch;
    text-align: center;
    margin-top: auto;
}
.si-page .si-pricing-footnote {
    text-align: center;
    max-width: 720px;
    margin: 24px auto 0;
}

/* ---------- Comparison table ---------- */
.si-page .si-compare-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 920px;
    margin: 40px auto 0;
}
.si-page .si-compare-wrap .si-compare {
    width: 100%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.si-page .si-compare th:first-child,
.si-page .si-compare td:first-child {
    width: 40%;
}
.si-page .si-compare th:not(:first-child),
.si-page .si-compare td:not(:first-child) {
    width: 30%;
}
.si-page .si-compare table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}
.si-page .si-compare th:not(:first-child),
.si-page .si-compare td:not(:first-child) {
    text-align: center;
}
.si-page .si-compare td svg {
    vertical-align: middle;
}

/* ---------- FAQ ---------- */
.si-page .si-faq {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Final CTA ---------- */
.si-page .si-cta-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.si-page .si-cta-band p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
.si-page .si-cta-band .si-hero-actions {
    justify-content: center;
}
.qx-trademark {
    font-size: 0.78rem;
    opacity: 0.6;
    margin-top: 10px;
}

/* ---------- Legal pages ---------- */
.qx-legal-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.qx-legal-head h1,
.qx-legal-head p {
    margin: 0;
}
.qx-narrow {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 90px;
}
.si-page .si-legal code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.9em;
}
.si-page .si-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}