/* =========================================================
   FinTruction — QuickBooks Integration Pages
   Scoped to .qb-int-page body class
   Inherits brand teal + fonts from style.css and location.css
   ========================================================= */

:root {
    --qbi-teal: #009282;
    --qbi-bright-teal: #0EAFA0;
    --qbi-dark: #00293a;
    --qbi-darker: #0E1F2A;
    --qbi-deep-teal: #0A4F4A;
    --qbi-line: rgba(255, 255, 255, 0.1);
    --qbi-text-grey: #4a5b65;
    --qbi-card-bg: #ffffff;
    --qbi-soft-bg: #f6fafa;
}

/* The .qb-int-page wrapper sets the platform accent color via inline
   --qbi-accent (set per-page in the blade). The "fix" color defaults to
   the accent, but a page can override it (Procore overrides to green so
   the fix cards don't echo the red used in the failure cards). */
.qb-int-page {
    --qbi-accent: #E85D2F; /* default fallback (ServiceTitan) */
    --qbi-fix-c:  var(--qbi-accent); /* "What We Fix" card color */
    --qbi-danger: #dc2626; /* fixed red for failure-mode cards */
}

/* ==============================================
   1. HERO — full-bleed dark with SVG illustration
   ============================================== */
.qb-int-page .qbi-hero {
    position: relative;
    min-height: calc(100vh - 88px);
    display: flex;
    align-items: stretch;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 90% 110%, rgba(14, 175, 160, 0.18), transparent 60%),
        radial-gradient(900px 500px at 0% 0%, color-mix(in srgb, var(--qbi-accent) 22%, transparent), transparent 65%),
        linear-gradient(135deg, var(--qbi-darker) 0%, var(--qbi-deep-teal) 100%);
}

.qb-int-page .qbi-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}

.qb-int-page .qbi-hero-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.qb-int-page .qbi-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        /* Solid dark wash on the left ~58% to keep text readable */
        linear-gradient(90deg,
            rgba(0, 16, 26, 0.92) 0%,
            rgba(0, 22, 32, 0.88) 30%,
            rgba(0, 30, 42, 0.7) 50%,
            rgba(0, 41, 58, 0.18) 68%,
            rgba(0, 41, 58, 0)    85%),
        /* Subtle bottom darken across the full width */
        linear-gradient(180deg, rgba(0, 41, 58, 0) 60%, rgba(0, 28, 42, 0.35) 100%);
}

.qb-int-page .qbi-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: calc(100vh - 88px);
}

.qb-int-page .qbi-hero-content {
    width: 100%;
    max-width: 880px;
}

.qb-int-page .qbi-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    background: rgba(0, 200, 175, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(154, 255, 255, 0.32);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #d7fbfb;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.qb-int-page .qbi-hero-pill::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--qbi-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--qbi-accent) 22%, transparent);
    animation: qbi-pulse 2.2s ease-in-out infinite;
}

@keyframes qbi-pulse {
    0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--qbi-accent) 22%, transparent); }
    50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--qbi-accent) 8%, transparent); }
}

.qb-int-page .qbi-hero h1 {
    color: #fff;
    margin: 0 0 22px;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.qb-int-page .qbi-hero h1 .qbi-hl {
    background: linear-gradient(135deg, #9affff 0%, #5ee8e8 60%, #00c5b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qb-int-page .qbi-hero-desc {
    color: rgba(255, 255, 255, 0.94);
    max-width: 820px;
    margin: 0 0 18px;
    font-size: 15.5px;
    line-height: 1.65;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.qb-int-page .qbi-hero-trust {
    margin: 0 0 14px;
}

.qb-int-page .qbi-hero-trust .social-proof {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    border-radius: 14px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.qb-int-page .qbi-hero-trust .avatars {
    display: inline-flex;
}

.qb-int-page .qbi-hero-trust .avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.72);
    margin-left: -8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.qb-int-page .qbi-hero-trust .avatars img:first-child { margin-left: 0; }

.qb-int-page .qbi-hero-trust .sp-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.3);
}

.qb-int-page .qbi-hero-trust .stars {
    display: inline-flex;
    gap: 2px;
}

.qb-int-page .qbi-hero-trust .star { width: 16px; height: 16px; }

.qb-int-page .qbi-hero-trust .proof-copy {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.qb-int-page .qbi-hero-cta-wrap {
    margin-top: auto;
    padding-top: 24px;
    align-self: center;
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.qb-int-page .qbi-hero-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    padding: 18px 44px;
    border-radius: 999px;
    background: linear-gradient(180deg, #00c5b0 0%, #00a896 45%, #009282 75%, #00756a 100%);
    color: #ffffff;
    text-decoration: none;
    border: none;
    box-shadow:
        0 18px 36px rgba(0, 41, 58, 0.5),
        0 8px 16px rgba(0, 146, 130, 0.45),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    letter-spacing: 0.3px;
}

.qb-int-page .qbi-hero-cta:hover {
    transform: translateY(-2px);
}

/* ============================================
   1b. Sticky right-edge Call + WhatsApp icons
   ============================================ */
.qb-int-page .qbi-stick-contact {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9997;
}

.qb-int-page .qbi-stick-link {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    background: var(--qbi-teal);
    border: none;
    box-shadow:
        0 6px 16px rgba(0, 41, 58, 0.32),
        0 2px 6px rgba(0, 146, 130, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.22s ease, background 0.22s ease;
}

.qb-int-page .qbi-stick-link:hover {
    transform: translateY(-2px);
    background: #00a896;
}

.qb-int-page .qbi-stick-link svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
}

.qb-int-page .qbi-stick-link[href*="whatsapp"] {
    background: #25d366;
}

.qb-int-page .qbi-stick-link[href*="whatsapp"]:hover {
    background: #1fb759;
}

.qb-int-page .qbi-stick-link[href*="whatsapp"] svg {
    fill: currentColor;
    stroke: none;
}

/* ============================================
   2. Section shells
   ============================================ */
.qb-int-page .qbi-section {
    padding: 80px 0;
}

.qb-int-page .qbi-section--alt {
    background: var(--qbi-soft-bg);
}

.qb-int-page .qbi-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.qb-int-page .qbi-eyebrow {
    display: inline-block;
    color: var(--qbi-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.qb-int-page .qbi-h2 {
    color: var(--qbi-dark);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.4px;
    margin: 0 0 16px;
}

.qb-int-page .qbi-h2-center {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 16px;
}

.qb-int-page .qbi-section-lead {
    color: var(--qbi-text-grey);
    font-size: 17px;
    line-height: 1.7;
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

/* ============================================
   3. Why It Breaks
   ============================================ */
.qb-int-page .qbi-break-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e6eef0;
    border-radius: 18px;
    padding: 28px;
    margin: 0 auto 40px;
    max-width: 920px;
    box-shadow: 0 6px 20px rgba(0, 41, 58, 0.05);
}

.qb-int-page .qbi-break-side h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qb-int-page .qbi-break-side--bad h4 { color: #c2410c; }
.qb-int-page .qbi-break-side--good h4 { color: var(--qbi-teal); }

.qb-int-page .qbi-break-side svg {
    width: 100%;
    height: auto;
    max-height: 130px;
}

.qb-int-page .qbi-break-arrow {
    color: var(--qbi-bright-teal);
    font-size: 28px;
    font-weight: 700;
}

/* Intro paragraph above the failure-mode cards */
.qb-int-page .qbi-why-intro {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}
.qb-int-page .qbi-why-intro p {
    color: var(--qbi-text-grey);
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 14px;
}
.qb-int-page .qbi-why-intro p:last-child { margin-bottom: 0; }

/* Failure-mode cards: scannable replacement for the wall-of-paragraphs */
.qb-int-page .qbi-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.qb-int-page .qbi-why-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #fee2e2;
    border-left: 4px solid var(--qbi-danger);
    border-radius: 12px;
    padding: 26px 26px 24px 70px;
    box-shadow: 0 4px 14px rgba(0, 41, 58, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.qb-int-page .qbi-why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.12);
}

.qb-int-page .qbi-why-card-icon {
    position: absolute;
    top: 24px;
    left: 22px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fee2e2;
    color: var(--qbi-danger);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qb-int-page .qbi-why-card-icon svg { width: 22px; height: 22px; }

.qb-int-page .qbi-why-card-num {
    position: absolute;
    top: 18px;
    right: 22px;
    color: var(--qbi-danger);
    font-family: Outfit, sans-serif;
    font-weight: 800;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.5px;
    opacity: 0.4;
}

.qb-int-page .qbi-why-card-title {
    color: var(--qbi-dark);
    font-family: Outfit, sans-serif;
    font-size: 18.5px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.2px;
    margin: 0 60px 10px 0;
}

.qb-int-page .qbi-why-card-body {
    color: var(--qbi-text-grey);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 767px) {
    .qb-int-page .qbi-why-grid { grid-template-columns: 1fr; }
    .qb-int-page .qbi-why-card { padding: 22px 22px 20px 64px; }
    .qb-int-page .qbi-why-card-icon { top: 22px; left: 20px; width: 32px; height: 32px; }
    .qb-int-page .qbi-why-card-icon svg { width: 18px; height: 18px; }
    .qb-int-page .qbi-why-card-num { font-size: 22px; }
    .qb-int-page .qbi-why-card-title { font-size: 16.5px; margin-right: 36px; }
}

/* ============================================
   4. What We Fix card grid
   ============================================ */
.qb-int-page .qbi-fix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.qb-int-page .qbi-fix-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e6eef0;
    border-left: 3px solid var(--qbi-fix-c);
    border-radius: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.qb-int-page .qbi-fix-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 41, 58, 0.08);
}

.qb-int-page .qbi-fix-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--qbi-fix-c);
}

.qb-int-page .qbi-fix-icon svg { width: 100%; height: 100%; }

.qb-int-page .qbi-fix-text {
    color: var(--qbi-dark);
    font-size: 14.5px;
    line-height: 1.5;
    font-weight: 500;
}

/* ============================================
   5. Built For
   ============================================ */
.qb-int-page .qbi-builtfor {
    background: linear-gradient(135deg, var(--qbi-darker) 0%, var(--qbi-deep-teal) 100%);
    color: #ffffff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.qb-int-page .qbi-builtfor::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 400px at 100% 0%, color-mix(in srgb, var(--qbi-accent) 16%, transparent), transparent 60%);
    pointer-events: none;
}

.qb-int-page .qbi-builtfor .qbi-container {
    position: relative;
    z-index: 1;
}

.qb-int-page .qbi-builtfor .qbi-h2 {
    color: #ffffff;
}

.qb-int-page .qbi-builtfor-body {
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    line-height: 1.8;
    max-width: 920px;
    margin: 0 auto;
}

/* ============================================
   6. Process steps
   ============================================ */
.qb-int-page .qbi-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.qb-int-page .qbi-process-step {
    position: relative;
    background: #ffffff;
    border: 1px solid #e6eef0;
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 41, 58, 0.05);
}

.qb-int-page .qbi-process-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--qbi-bright-teal), var(--qbi-teal));
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(0, 146, 130, 0.35);
}

.qb-int-page .qbi-process-step h4 {
    color: var(--qbi-dark);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.qb-int-page .qbi-process-step p {
    color: var(--qbi-text-grey);
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0;
}

.qb-int-page .qbi-process-step::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    color: var(--qbi-bright-teal);
    font-size: 22px;
    font-weight: 700;
    z-index: 2;
}

.qb-int-page .qbi-process-step:last-child::after { display: none; }

/* ============================================
   7. Testimonials (reused — light themed)
   ============================================ */
.qb-int-page .qbi-testi {
    padding: 80px 0;
    background: var(--qbi-soft-bg);
}

.qb-int-page .qbi-testi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1200px;
    margin: 32px auto 0;
}

.qb-int-page .qbi-testi-card {
    background: #ffffff;
    border: 1px solid #e6eef0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0, 41, 58, 0.05);
    display: flex;
    flex-direction: column;
}

.qb-int-page .qbi-testi-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.qb-int-page .qbi-testi-stars img { width: 16px; height: 16px; }

.qb-int-page .qbi-testi-card p {
    color: var(--qbi-dark);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}

.qb-int-page .qbi-testi-person {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qb-int-page .qbi-testi-person img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.qb-int-page .qbi-testi-name {
    color: var(--qbi-dark);
    font-size: 14px;
    font-weight: 700;
}

.qb-int-page .qbi-testi-role {
    color: var(--qbi-text-grey);
    font-size: 12px;
}

/* ============================================
   8. FAQs accordion
   ============================================ */
.qb-int-page .qbi-faq-list {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qb-int-page .qbi-faq-item {
    background: #ffffff;
    border: 1px solid #e6eef0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.qb-int-page .qbi-faq-item[open] {
    box-shadow: 0 6px 20px rgba(0, 41, 58, 0.08);
}

.qb-int-page .qbi-faq-q {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--qbi-dark);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    user-select: none;
}

.qb-int-page .qbi-faq-q::-webkit-details-marker { display: none; }

.qb-int-page .qbi-faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--qbi-teal);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.qb-int-page .qbi-faq-icon svg { width: 14px; height: 14px; }

.qb-int-page .qbi-faq-item[open] .qbi-faq-icon {
    transform: rotate(45deg);
    background: var(--qbi-accent);
}

.qb-int-page .qbi-faq-a {
    padding: 0 22px 22px;
    color: var(--qbi-text-grey);
    font-size: 15px;
    line-height: 1.7;
}

.qb-int-page .qbi-faq-a p { margin: 0; }

/* ============================================
   9. Final CTA Banner
   ============================================ */
.qb-int-page .qbi-final-cta {
    position: relative;
    padding: 70px 0;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--qbi-accent) 10%, transparent),
            color-mix(in srgb, var(--qbi-teal) 12%, transparent)),
        linear-gradient(180deg, #f6fafa 0%, #e8f5f3 100%);
    text-align: center;
}

.qb-int-page .qbi-final-cta h2 {
    color: var(--qbi-dark);
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
}

.qb-int-page .qbi-final-cta p {
    color: var(--qbi-text-grey);
    font-size: 16.5px;
    line-height: 1.65;
    max-width: 720px;
    margin: 0 auto 28px;
}

.qb-int-page .qbi-final-cta-btn-wrap {
    display: flex;
    justify-content: center;
}

/* ============================================
   10. Bottom internal-link strip
   ============================================ */
.qb-int-page .qbi-internal-link {
    text-align: center;
    padding: 32px 24px;
    background: #ffffff;
    border-top: 1px solid #e6eef0;
}

.qb-int-page .qbi-internal-link a {
    color: var(--qbi-teal);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid color-mix(in srgb, var(--qbi-teal) 35%, transparent);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.qb-int-page .qbi-internal-link a:hover {
    color: var(--qbi-accent);
    border-color: var(--qbi-accent);
}

/* ============================================
   11. FREE flag (matches location page pattern)
   ============================================ */
.qb-int-page .qbi-cta-free { position: relative; overflow: visible; }

.qb-int-page .qbi-cta-free-flag {
    position: absolute;
    top: -18px;
    right: -14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff4d5e 0%, #E63946 45%, #b91c1c 100%);
    color: #ffffff;
    font-family: Outfit, sans-serif;
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 9px 16px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 10px 22px rgba(230, 57, 70, 0.5),
        0 3px 8px rgba(185, 28, 28, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.18);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: qbi-flag-wiggle 2s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
}

.qb-int-page .qbi-cta-free-flag::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: qbi-flag-shine 2.6s ease-in-out infinite;
}

@keyframes qbi-flag-wiggle {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    25%      { transform: rotate(4deg)  scale(1.05); }
    50%      { transform: rotate(-3deg) scale(1); }
    75%      { transform: rotate(5deg)  scale(1.05); }
}

@keyframes qbi-flag-shine {
    0%        { left: -60%; }
    60%, 100% { left: 140%; }
}

@media (prefers-reduced-motion: reduce) {
    .qb-int-page .qbi-cta-free-flag { animation: none; transform: rotate(-4deg); }
    .qb-int-page .qbi-cta-free-flag::before { animation: none; opacity: 0; }
}

/* ============================================
   11b. Sticky-on-scroll CTA (matches NY/SF location pattern)
        Hidden while hero is in view, slides up after scroll
   ============================================ */
.qb-int-page .qbi-sticky-cta {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.qb-int-page .qbi-sticky-cta.is-visible {
    opacity: 1;
    visibility: visible;
}

.qb-int-page .qbi-sticky-cta__btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: Outfit, sans-serif;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.3px;
    padding: 18px 44px;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    background:
        linear-gradient(180deg,
            #00c5b0 0%,
            #00a896 45%,
            #009282 75%,
            #00756a 100%);
    box-shadow:
        0 26px 56px rgba(0, 41, 58, 0.45),
        0 10px 22px rgba(0, 146, 130, 0.45),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -4px 0 rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
    position: relative;
    isolation: isolate;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: none;
}

.qb-int-page .qbi-sticky-cta__btn::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 72px;
    background: radial-gradient(closest-side, rgba(0, 200, 175, 0.55), rgba(0, 146, 130, 0) 75%);
    filter: blur(10px);
    z-index: -1;
    animation: qbi-sticky-pulse 2.6s ease-in-out infinite;
}

.qb-int-page .qbi-sticky-cta__btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 32px 64px rgba(0, 41, 58, 0.5),
        0 14px 28px rgba(0, 146, 130, 0.55),
        inset 0 2px 0 rgba(255, 255, 255, 0.55),
        inset 0 -4px 0 rgba(0, 0, 0, 0.3);
}

.qb-int-page .qbi-sticky-cta__icon {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

@keyframes qbi-sticky-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 0.95; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .qb-int-page .qbi-sticky-cta__btn::before { animation: none; opacity: 0.6; }
}

@media (max-width: 640px) {
    .qb-int-page .qbi-sticky-cta {
        left: 12px;
        right: 12px;
        bottom: 14px;
        transform: none;
    }
    .qb-int-page .qbi-sticky-cta.is-visible { transform: none; }
    .qb-int-page .qbi-sticky-cta__btn {
        width: 100%;
        justify-content: center;
        font-size: 16px;
        padding: 16px 22px;
    }
}

/* ============================================
   12. Hero SVG data-flow animation
   ============================================ */
.qb-int-page .qbi-hero-bg .qbi-flow-line {
    stroke-dasharray: 6 8;
    animation: qbi-flow 3.2s linear infinite;
}

.qb-int-page .qbi-hero-bg .qbi-flow-line:nth-child(2) { animation-duration: 4s; }
.qb-int-page .qbi-hero-bg .qbi-flow-line:nth-child(3) { animation-duration: 5s; }

@keyframes qbi-flow {
    to { stroke-dashoffset: -56; }
}

@media (prefers-reduced-motion: reduce) {
    .qb-int-page .qbi-hero-bg .qbi-flow-line { animation: none; }
}

/* ============================================
   13. Responsive
   ============================================ */
@media (max-width: 1023px) {
    .qb-int-page .qbi-fix-grid { grid-template-columns: repeat(2, 1fr); }
    .qb-int-page .qbi-process { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .qb-int-page .qbi-process-step::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -22px;
        transform: translateX(50%);
    }
    .qb-int-page .qbi-process-step:nth-child(2)::after { display: none; }
    .qb-int-page .qbi-testi-grid { grid-template-columns: repeat(2, 1fr); }
    .qb-int-page .qbi-hero h1 { font-size: 38px; }
    .qb-int-page .qbi-section { padding: 64px 0; }
}

@media (max-width: 1023px) {
    /* On tablet, narrow the readable zone and let the right-side cards still peek through */
    .qb-int-page .qbi-hero-overlay {
        background:
            linear-gradient(90deg,
                rgba(0, 16, 26, 0.94) 0%,
                rgba(0, 22, 32, 0.88) 50%,
                rgba(0, 30, 42, 0.7) 75%,
                rgba(0, 41, 58, 0.3) 100%),
            linear-gradient(180deg, rgba(0, 41, 58, 0) 60%, rgba(0, 28, 42, 0.35) 100%);
    }
}

@media (max-width: 767px) {
    /* On phones, full dark wash — SVG visuals are decorative only */
    .qb-int-page .qbi-hero-overlay {
        background:
            linear-gradient(180deg,
                rgba(0, 16, 26, 0.92) 0%,
                rgba(0, 22, 32, 0.88) 50%,
                rgba(0, 28, 42, 0.92) 100%);
    }
    .qb-int-page .qbi-fix-grid { grid-template-columns: 1fr; }
    .qb-int-page .qbi-process { grid-template-columns: 1fr; }
    .qb-int-page .qbi-process-step::after { content: '↓'; right: 50%; top: auto; bottom: -22px; transform: translateX(50%); }
    .qb-int-page .qbi-process-step:nth-child(2)::after { content: '↓'; }
    .qb-int-page .qbi-testi-grid { grid-template-columns: 1fr; }
    .qb-int-page .qbi-break-diagram {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .qb-int-page .qbi-break-arrow { transform: rotate(90deg); }
    .qb-int-page .qbi-hero h1 { font-size: 30px; }
    .qb-int-page .qbi-h2 { font-size: 26px; }
    .qb-int-page .qbi-final-cta h2 { font-size: 24px; }
    .qb-int-page .qbi-section { padding: 48px 0; }
    .qb-int-page .qbi-builtfor { padding: 56px 0; }
    .qb-int-page .qbi-hero-inner { padding: 32px 18px 28px; min-height: auto; }
    .qb-int-page .qbi-hero { min-height: auto; }
    .qb-int-page .qbi-hero-trust .social-proof { flex-wrap: wrap; padding: 8px 12px; gap: 10px; }
    .qb-int-page .qbi-stick-contact {
        right: 10px;
        gap: 8px;
    }
    .qb-int-page .qbi-stick-link { width: 40px; height: 40px; }
    .qb-int-page .qbi-cta-free-flag {
        top: -16px;
        right: -10px;
        font-size: 13px;
        padding: 6px 12px;
        letter-spacing: 1.6px;
    }
}

@media (max-width: 480px) {
    .qb-int-page .qbi-hero h1 { font-size: 26px; }
    .qb-int-page .qbi-hero-desc { font-size: 14.5px; }
    .qb-int-page .qbi-hero-cta { font-size: 16px; padding: 14px 28px; }
    .qb-int-page .qbi-hero-trust .proof-copy { font-size: 11px; }
    .qb-int-page .qbi-hero-trust .avatars img { width: 26px; height: 26px; }
}
