/* Homepage Custom Styles */

/* Inter, self-hosted: Google Fonts' stylesheet blocked rendering while two
   more origins connected. A variable font, so one file per subset covers
   weights 300–800; latin-ext only downloads for characters outside latin. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("vendor/fonts/inter-latin-ext.01ba6c2a184b.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("vendor/fonts/inter-latin.65850a373e25.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --qv-green: #2ecc71;
    /* Vibrant Emerald Green */
    --qv-green-hover: #27ae60;
    /* Darker Green for hover */
    --qv-dark: #064e3b;
    /* Deep Emerald/Forest Black */
    --qv-on-green: #022c22;
    /* Text on green buttons: 7:1 on --qv-green, 5:1 on --qv-green-hover */
    --qv-accent: #f59e0b;
    /* Warm Amber - Best Value highlight */
    --qv-text-muted: #6c757d;
    --qv-bg-white: #ffffff;
    --qv-bg-soft: #f8f9fa;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #374151;
    /* Softer gray than pure black for better readability */
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #111827;
    /* Deep charcoal for headings */
}

/* Typography */
h1.display-4 {
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--qv-dark) 0%, var(--qv-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    text-wrap: balance;
}

.text-muted-custom {
    color: #4b5563;
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Specific refined weight for display classes */
.display-6 {
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #374151;
    /* Match body color exactly */
    font-weight: 400;
    /* Ensure it's not too thin */
}

/* Specific list style for feature descriptions in body sections */
.premium-list li {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: #374151;
}

.premium-list li i {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Custom "Premium" Button */
.btn-premium {
    background: linear-gradient(to right, #2ecc71 0%, #219653 100%);
    background-size: 200% auto;
    color: white;
    font-weight: 700;
    padding: 0.6rem 1.0rem;
    border-radius: 50px;
    border: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-premium:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 83, 0.4);
    color: white;
}

/* Specific Larger Variation */
.btn-lg-custom {
    font-size: 1.25rem;
    padding: 1rem 3rem;
}

.btn-lg-custom:hover {
    transform: translateY(-4px) scale(1.03);
}

/* Below lg, CTAs using .btn-lg-custom stack full-width, so the desktop
   sizing (1.25rem font, 1rem 3rem padding) reads as oversized. */
@media (max-width: 991.98px) {
    .btn-lg-custom {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Two large CTAs sharing a hero row (primary + secondary button) need less
   padding than a single .btn-lg-custom, which is sized for one button.
   Scoped to lg, where the hero column narrows to col-lg-5 but the row is
   already horizontal — below lg the buttons stack full-width and don't
   need shrinking. */
@media (min-width: 992px) {
    .btn-hero-pair {
        font-size: 1.05rem;
        padding: 0.85rem 1.25rem;
    }
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-card-sm {
    padding: 1.5rem;
}

.feature-card-sm .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.feature-card-sm .icon-box i {
    font-size: 1.25rem;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(80, 227, 194, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--qv-dark);
}

.icon-box i {
    font-size: 1.5rem;
    color: #27ae60;
    /* Darker green for icon */
}

/* OTA logo strip (_ota_logos.html): greyed out so the brand colours don't compete with the page */
.ota-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 3rem;
    row-gap: 1.25rem;
}

/* The second copy only exists to make the phone marquee loop */
.ota-logos--clone {
    display: none;
}

/* Phones: one line of logos sliding left forever instead of wrapping onto three lines.
   The track holds two identical sets, each padded on the right by one gap, so moving it
   by -50% lands exactly where it started. The edges fade out; no scrollbar. */
@media (max-width: 767.98px) {
    /* Small enough that the short heading stays on one line down to 360px phones */
    .ota-heading {
        font-size: 0.75rem;
    }

    .ota-marquee {
        overflow: hidden;
        margin: 0 -1.5rem; /* bleed past the container's px-4 to the screen edges */
        -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
        mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    }

    .ota-track {
        display: flex;
        width: max-content;
        animation: ota-marquee 28s linear infinite;
    }

    .ota-logos {
        flex-wrap: nowrap;
        column-gap: 2.25rem;
        padding-right: 2.25rem;
    }

    .ota-logos--clone {
        display: flex;
    }
}

@keyframes ota-marquee {
    to {
        transform: translateX(-50%);
    }
}

/* Without motion, the line stays still and can be swiped instead */
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
    .ota-marquee {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .ota-marquee::-webkit-scrollbar {
        display: none;
    }

    .ota-track {
        animation: none;
    }

    .ota-logos--clone {
        display: none;
    }
}

.ota-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    filter: grayscale(100%);
    opacity: 0.55;
}

.ota-logo img {
    width: 26px;
    height: 26px;
}

.ota-logo span {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Stats band: four headline numbers on a WhatsApp-teal gradient, one glassy card each */
.stats-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #06302b 0%, #075e54 55%, #128c7e 100%);
}

.stats-band::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.28), transparent 65%);
    pointer-events: none;
}

.stat-card {
    position: relative;
    height: 100%;
    padding: 24px 10px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(37, 211, 102, 0.5);
}

.stat-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(37, 211, 102, 0.18);
    color: #25d366;
    font-size: 1.5rem;
}

/* Shrinks on phones so long translations ("Ilimitadas", "Somente leitura") fit two per row */
.stat-card__value {
    font-size: clamp(1.25rem, 4.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
}

.stat-card__label {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 768px) {
    .stat-card {
        padding: 28px 16px 24px;
    }
}

/* Hero Section */
.hero-section {
    padding-top: 9rem;
    padding-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 50%, #e6f9ed 100%);
    position: relative;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 6rem;
    }
}

/* Decorative premium glow */
.hero-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-img-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Navbar overrides for this page if needed */
.navbar-light .navbar-nav .nav-link {
    color: rgba(0, 0, 0, .7);
    font-weight: 500;
}

#mainNav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Navbar Logo Control */
.navbar-logo {
    height: auto;
    max-height: 68px;
    width: auto;
    max-width: 60vw;
}

@media (max-width: 991.98px) {
    .navbar-logo {
        max-height: 48px;
        max-width: 45vw;
    }

    #mainNav .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Footer Logo Control */
.footer-logo {
    height: auto;
    max-height: 68px;
    width: auto;
    max-width: 100%;
}


/* --- Bootstrap Overrides for Consistency (Pricing & General) --- */

/* Text Colors */
.text-success {
    color: #27ae60 !important;
    /* True Green to match theme */
}

.text-primary {
    color: var(--qv-dark) !important;
}

/* Backgrounds */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Blog post StreamField sections: blocks without an explicit background
   (class "section-alt") alternate white/light automatically by position
   among "section-flow" siblings. Blocks with a manually forced background
   (.bg-white/.bg-light) still count towards that position, so the rhythm
   picks back up correctly after an editor groups a few sections together;
   blocks with no alternation option at all (FAQ, CTA, ...)
   aren't "section-flow" and are skipped entirely. */
.section-alt:nth-child(odd) {
    background-color: #fff;
}

.section-alt:nth-child(even) {
    background-color: #f8f9fa;
}

@supports selector(:nth-child(1 of .section-flow)) {
    .section-alt:nth-child(odd of .section-flow) {
        background-color: #fff;
    }

    .section-alt:nth-child(even of .section-flow) {
        background-color: #f8f9fa;
    }
}

/* Cards (includes Pricing Cards) */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    color: var(--qv-dark);
}

.card-body {
    padding: 1.5rem;
}

.card ul li {
    margin-bottom: 0.15rem;
    line-height: 1.4;
    font-size: 0.95rem;
}

.card-popular {
    border: 2px solid var(--qv-green) !important;
    transform: scale(1.05);
    z-index: 2;
    /* Ensure it stays above others when scaled */
    box-shadow: 0 12px 40px rgba(46, 204, 113, 0.15);
}

@media (max-width: 768px) {
    .card-popular {
        transform: none;
        /* Avoid scaling issues on mobile */
    }
}

.card-popular:hover {
    transform: scale(1.07);
    box-shadow: 0 12px 50px rgba(46, 204, 113, 0.25);
}

@media (max-width: 768px) {
    .card-popular:hover {
        transform: none;
        box-shadow: 0 12px 50px rgba(46, 204, 113, 0.25);
    }
}

/* Standard Buttons redefined to match Premium feel */
.btn-primary {
    background-color: var(--qv-green);
    border-color: var(--qv-green);
    color: var(--qv-on-green);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: var(--qv-green-hover) !important;
    border-color: var(--qv-green-hover) !important;
    color: var(--qv-on-green) !important;
    box-shadow: 0 4px 10px rgba(80, 227, 194, 0.3);
}

.btn-outline-primary {
    color: var(--qv-dark);
    border-color: var(--qv-dark);
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--qv-dark);
    color: white;
}

.btn-outline-success {
    color: #27ae60;
    border: 2px solid #27ae60;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: transparent;
}

.btn-outline-success:hover {
    background-color: #27ae60;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
    border-color: #27ae60;
}

.btn-info {
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
}

.badge.bg-success {
    background-color: var(--qv-dark) !important;
}

[data-bs-toggle="tooltip"] {
    cursor: help;
}

.badge-discount {
    background-color: var(--qv-accent) !important;
    color: white !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
}

.table-section-header,
.table-section-header td {
    background-color: #f0fdf4 !important;
    /* Soft Green Background */
    border-top: 1px solid #d1fae5;
    border-bottom: 2px solid #bbf7d0;
}

.table-section-header {
    border-left: 6px solid #2ecc71;
}

.table-section-header h6 {
    color: var(--qv-dark) !important;
    font-weight: 800 !important;
    padding: 0.5rem 0;
    margin-bottom: 0;
    letter-spacing: 0.05em;
}

.table-section-header-alt,
.table-section-header-alt td {
    background-color: #dcf7fc !important;
    /* Slightly more saturated soft green */
    border-top: 1px solid #bbf4f7;
    border-bottom: 2px solid #86efed;
}

.table-section-header-alt {
    border-left: 6px solid #2297c5;
}

.table-section-header-alt h6 {
    color: var(--qv-dark) !important;
    font-weight: 800 !important;
    padding: 0.5rem 0;
    margin-bottom: 0;
    letter-spacing: 0.05em;
}

/* Links */
a {
    color: var(--qv-dark);
    text-decoration: none;
}

a:hover {
    color: var(--qv-green-hover);
    text-decoration: none;
}

.link-animate {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.link-animate:hover {
    transform: translateX(5px);
}

.link-animate i {
    transition: transform 0.3s ease;
}

.link-animate:hover i {
    transform: translateX(3px);
}


/* Footer Links */
footer {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--qv-green);
    text-decoration: underline;
}

.footer-icons a:hover {
    text-decoration: none;
}

/* --- Custom Styled Switches --- */
.form-switch .form-check-input {
    width: 3rem !important;
    height: 1.5rem !important;
    cursor: pointer;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.form-switch .form-check-input:checked {
    background-color: var(--qv-green) !important;
    border-color: var(--qv-green) !important;
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(46, 204, 113, 0.25);
    border-color: var(--qv-green);
}

.form-switch .form-check-input:checked:disabled {
    opacity: 0.7;
    background-color: var(--qv-green) !important;
    border-color: var(--qv-green) !important;
}

.form-check-label {
    cursor: pointer;
}

/* --- Custom Styled Range Input --- */
.custom-range::-webkit-slider-thumb {
    background-color: var(--qv-green) !important;
}

.custom-range::-webkit-slider-thumb:active {
    background-color: var(--qv-green-hover) !important;
}

.custom-range::-moz-range-thumb {
    background-color: var(--qv-green) !important;
}

.custom-range::-moz-range-thumb:active {
    background-color: var(--qv-green-hover) !important;
}

.custom-range::-ms-thumb {
    background-color: var(--qv-green) !important;
}

.custom-range::-ms-thumb:active {
    background-color: var(--qv-green-hover) !important;
}

.custom-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(46, 204, 113, 0.25) !important;
}

.custom-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(46, 204, 113, 0.25) !important;
}

.custom-range:focus::-ms-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(46, 204, 113, 0.25) !important;
}

.img-crop-right {
    clip-path: inset(0 50px 0 0 round 0.375rem);
}

/* --- Ready-made plan cards --- */
.bundle-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    padding: 1.5rem 1.25rem;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    text-align: left;
    transition: all 0.25s ease;
}

.bundle-card:hover {
    border-color: var(--qv-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(46, 204, 113, 0.15);
}

.bundle-card.active {
    border-color: var(--qv-green);
    background: #f0fdf4;
    box-shadow: 0 10px 28px rgba(46, 204, 113, 0.22);
}

.bundle-card--popular {
    border-color: var(--qv-green);
}

.bundle-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.bundle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f0fdf4;
    color: #27ae60;
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
}

.bundle-name {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.35rem;
}

.bundle-module-wrap {
    min-height: 2.3em;
    margin-bottom: 0.5rem;
}

.bundle-module {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    color: #27ae60;
    background: #fff;
    border: 1px solid rgba(39, 174, 96, 0.35);
    border-radius: 999px;
    padding: 0.16rem 0.6rem;
}

.bundle-module--base {
    color: var(--qv-text-muted);
    border-color: rgba(0, 0, 0, 0.12);
}

.summary-extra {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid rgba(39, 174, 96, 0.35);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.summary-extra i {
    font-size: 0.85rem;
}

.bundle-tagline {
    font-size: 0.85rem;
    color: var(--qv-text-muted);
    margin-bottom: 1rem;
    min-height: 2.4em;
}

.bundle-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    width: 100%;
}

.bundle-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.bundle-features li i {
    color: #27ae60;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.bundle-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin-top: auto;
}

.bundle-price-unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--qv-text-muted);
    margin-left: 0.15rem;
}

.bundle-cta {
    width: 100%;
    margin-top: 1rem;
    padding: 0.55rem;
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    background: #f3f4f6;
    color: #374151;
    transition: all 0.2s ease;
}

.bundle-card:hover .bundle-cta,
.bundle-card.active .bundle-cta {
    background: var(--qv-green);
    color: var(--qv-on-green);
}

/* --- Billing period toggle --- */
.billing-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: #f3f4f6;
    border-radius: 50px;
}

.billing-option {
    border: none;
    background: transparent;
    border-radius: 50px;
    padding: 0.5rem 1.4rem;
    font-weight: 700;
    color: #374151;
    transition: all 0.2s ease;
}

.billing-option.active {
    background: white;
    color: #111827;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.billing-save {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #27ae60;
}

/* --- Optional extra modules --- */
.extra-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    height: 100%;
    padding: 1.25rem;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.extra-card:hover {
    border-color: var(--qv-green);
}

.extra-card.selected {
    border-color: var(--qv-green);
    background: #f0fdf4;
}

.extra-card.extra-locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.extra-card.extra-locked:hover {
    border-color: rgba(0, 0, 0, 0.08);
}

.extra-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f0fdf4;
    color: #27ae60;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.extra-body {
    flex: 1 1 auto;
    min-width: 0;
}

.extra-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.extra-head h5 {
    font-weight: 700;
}

.extra-desc {
    font-size: 0.85rem;
    color: var(--qv-text-muted);
    margin-bottom: 0.5rem;
}

.extra-lock-note {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    background-color: #fef3c7;
    color: #92400e;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.extra-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.extra-price-unit {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--qv-text-muted);
    margin-left: 0.1rem;
}

.premium-bar {
    border: 2px solid var(--qv-green);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.always-included-badge {
    background-color: var(--qv-dark);
    color: white;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.premium-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: white;
    border: 1px solid #d1fae5;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #374151;
    white-space: nowrap;
}

.premium-chip i {
    color: #27ae60;
}

.module-card {
    cursor: pointer;
    border: 2px solid transparent;
}

.module-card:hover {
    transform: translateY(-2px);
}

.module-card.selected {
    border-color: var(--qv-green);
    box-shadow: 0 8px 30px rgba(46, 204, 113, 0.18);
}

.module-card .module-price {
    color: var(--qv-text-muted);
    font-weight: 600;
}

.module-card .module-price.price-active {
    color: #111827;
    font-weight: 700;
}

.module-card .module-price.price-active .module-price-value {
    color: #27ae60;
}

.dependency-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.2rem 0.6rem;
    background-color: #fef3c7;
    color: #92400e;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
/* Lightbox */
img[data-lightbox] { cursor: zoom-in; }
#imgLightbox .modal-dialog { max-width: min(90vw, 1200px); }
#imgLightbox .modal-content { background: #000; border: none; }
#imgLightbox .modal-body { padding: 0; line-height: 0; }
#imgLightbox .modal-body img { display: block; max-height: 90vh; width: 100%; object-fit: contain; }
#imgLightbox .btn-close { filter: invert(1); position: absolute; top: 0.75rem; right: 0.75rem; z-index: 10; }

/* Interest cards on the "Schedule a demo" page */
.interest-card {
    display: block;
    position: relative;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 1.25rem 0.75rem;
    height: 100%;
    background: white;
    text-align: center;
    transition: all 0.2s ease;
}

.interest-card-checkbox {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.18);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.interest-card-checkbox i {
    font-size: 0.85rem;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.interest-card:hover {
    border-color: rgba(39, 174, 96, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.interest-card .icon-box {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
}

.interest-card-title {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #111827;
    margin-bottom: 0.35rem;
}

.interest-card-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--qv-text-muted);
    line-height: 1.3;
}

.btn-check:checked + .interest-card {
    border-color: #27ae60;
    background-color: rgba(46, 204, 113, 0.08);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.15);
}

.btn-check:checked + .interest-card .icon-box {
    background-color: #27ae60;
}

.btn-check:checked + .interest-card .icon-box i {
    color: white;
}

.btn-check:checked + .interest-card .interest-card-checkbox {
    border-color: #27ae60;
    background-color: #27ae60;
}

.btn-check:checked + .interest-card .interest-card-checkbox i {
    opacity: 1;
}

/* The demo form's steps. The script adds .is-stepped; without it the steps
   show together as one form, with no progress or step buttons. */
.demo-step {
    margin-bottom: 1.5rem;
}

.demo-step:last-of-type {
    margin-bottom: 0;
}

.demo-step-progress,
.demo-step-nav [data-step-back],
.demo-step-nav [data-step-next] {
    display: none;
}

.demo-step-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.demo-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.is-stepped .demo-step {
    margin-bottom: 0;
}

.is-stepped .demo-step:not(.is-current) {
    display: none;
}

.is-stepped .demo-step-progress {
    display: block;
    margin-bottom: 1.5rem;
}

.is-stepped .demo-step-progress .progress {
    height: 6px;
}

.is-stepped .demo-step-progress .progress-bar {
    background-color: #27ae60;
}

.is-stepped .demo-step-nav {
    justify-content: space-between;
}

.is-stepped .demo-step-nav [data-step-back],
.is-stepped .demo-step-nav [data-step-next] {
    display: inline-block;
}

/* Property type rows, laid out like the PMS signup's property type step */
.property-type-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    text-align: left;
}

.property-type-emoji {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.property-type-card .interest-card-title {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.property-type-card .interest-card-desc {
    font-size: 0.85rem;
}

.btn-check:focus-visible + .interest-card {
    outline: 2px solid #27ae60;
    outline-offset: 2px;
}

/* Phone input widget (intl-tel-input, see static/js/intl_tel_input.js) */
.intl-tel-input-wrapper .iti {
    display: block;
    width: 100%;
}

/* Highlighted "Sign up" row in the nav dropdown */
.dropdown-item-highlight {
    color: var(--qv-green-hover);
    font-weight: 700;
}

.dropdown-item-highlight:hover,
.dropdown-item-highlight:focus {
    background-color: rgba(46, 204, 113, 0.12);
    color: var(--qv-green-hover);
}

/* --- Screenshot lightbox (js/lightbox.js) --- */
a[data-lightbox] {
    display: block;
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1rem 1rem;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
    animation: lightbox-fade 0.15s ease-out;
}

.lightbox-overlay[hidden] {
    display: none;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.25rem;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes lightbox-fade {
    from { opacity: 0; }
}

/* --- Guide (/guia/) --- */
.guide-header {
    padding-bottom: 2.5rem;
}

.guide-breadcrumb a {
    color: var(--qv-dark);
}

.guide-short-answer {
    background: #f0fdf4;
    border-left: 4px solid var(--qv-green);
}

.guide-toc li + li {
    margin-top: 0.35rem;
}

.guide-toc a {
    color: var(--qv-dark);
}

/* Anchored blocks land below the fixed navbar. */
.guide-anchor {
    scroll-margin-top: 6rem;
}

.guide-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #f0fdf4;
    color: var(--qv-dark);
    font-weight: 700;
}

.guide-pager:hover {
    background: #f0fdf4 !important;
}

.guide-article-card {
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.guide-article-card__title {
    color: var(--qv-dark);
    font-size: 1.25rem;
}

.guide-article-card__number {
    color: var(--qv-green-hover);
}

.guide-article-card__arrow {
    color: var(--qv-green-hover);
    font-size: 1.75rem;
    transition: transform 0.15s ease;
}

/* On phones the number moves into the title, so the text gets the width. */
@media (max-width: 575.98px) {
    .guide-article-card__title {
        font-size: 1.05rem;
    }

    .guide-article-card__arrow {
        font-size: 1.25rem;
    }
}

.guide-article-card:hover,
.guide-article-card:focus-visible {
    border-color: var(--qv-green) !important;
    box-shadow: 0 0.5rem 1rem rgba(6, 78, 59, 0.08) !important;
    transform: translateY(-1px);
}

.guide-article-card:hover .guide-article-card__title,
.guide-article-card:focus-visible .guide-article-card__title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.guide-article-card:hover .guide-article-card__arrow {
    transform: translateX(3px);
}

.guide-product-tip {
    background: #fff;
    border: 1px solid rgba(46, 204, 113, 0.35);
    border-left: 4px solid var(--qv-green);
}

.guide-download {
    background: #fff;
}

/* Glossary links with a definition popover (static/js/glossary_popover.js) */
.glossary-link,
.glossary-link:hover {
    text-decoration: underline dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.glossary-popover {
    position: absolute;
    z-index: 1070;
    width: max-content;
    max-width: min(320px, calc(100vw - 16px));
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #212529;
}

.glossary-popover[hidden] {
    display: none;
}

.glossary-popover__title {
    margin: 0 0 0.25rem;
    font-weight: 700;
}

.glossary-popover__definition {
    margin: 0 0 0.5rem;
    color: #495057;
}

.glossary-popover__more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--qv-dark);
}

.guide-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-card:hover {
    transform: translateY(-2px);
}

.guide-short-answer__text {
    font-size: 1.25rem;
}

.guide-short-answer__text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    /* The current page's title is the H1 right below; on phones the crumb
       would repeat it over two or three lines. */
    .guide-breadcrumb .breadcrumb-item.active {
        display: none;
    }

    .guide-short-answer__text {
        font-size: 1.05rem;
    }

    /* Blocks are spaced for desktop (py-5 on both sides of every section). */
    .guide-body section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .guide-body section.pt-5 {
        padding-top: 2rem !important;
    }

    .guide-table {
        font-size: 0.875rem;
    }

    .guide-table > :not(caption) > * > * {
        padding: 0.5rem 0.4rem;
    }
}

/* Blog chart block (blog/blocks/chart.html): bars drawn in HTML so the labels
   are real text. Each panel is one grid, so the label column fits the longest
   label; .qv-row is display: contents to put its cells on that grid. */
.qv-chart {
    margin: 0;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.qv-chart-head {
    margin-bottom: 1.5rem;
}

.qv-chart-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.qv-chart-sub {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    color: var(--qv-text-muted);
}

.qv-chart-panels {
    display: grid;
    gap: 2rem 3rem;
}

.qv-panel,
.qv-stacked {
    display: grid;
    grid-template-columns: fit-content(40%) 1fr auto;
    align-items: center;
    gap: 0.6rem 0.75rem;
    font-size: 0.92rem;
}

.qv-stacked {
    grid-template-columns: fit-content(32%) 1fr;
}

.qv-row {
    display: contents;
}

.qv-panel-head,
.qv-group {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--qv-text-muted);
}

.qv-group-first {
    color: #1e8449;
}

.qv-group-sep {
    margin-top: 0.4rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e5e7eb;
}

.qv-label {
    text-align: right;
    line-height: 1.25;
    color: #374151;
}

.qv-track {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

/* Leaves 4.5em for the number after the bar. */
.qv-bar {
    flex: none;
    width: max(3px, calc((100% - 4.5em) * var(--f)));
    height: 1.4rem;
    border-radius: 4px;
    background: #d1d5db;
}

.qv-bar-primary {
    background: #1e8449;
}

.qv-bar-accent {
    background: #6ee7b7;
}

.qv-value,
.qv-note {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.qv-value {
    color: #111827;
}

.qv-value-strong {
    font-weight: 700;
}

.qv-note {
    text-align: right;
    color: var(--qv-text-muted);
}

.qv-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--qv-text-muted);
}

.qv-swatch {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0.4rem;
    border-radius: 2px;
    vertical-align: -1px;
}

.qv-stack {
    display: flex;
    gap: 2px;
    height: 2.2rem;
    border-radius: 4px;
    overflow: hidden;
}

.qv-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.qv-band-0 { background: #064e3b; color: #fff; font-weight: 700; }
.qv-band-1 { background: #1e8449; color: #fff; }
.qv-band-2 { background: #a7f3d0; color: #064e3b; }
.qv-band-3 { background: #e5e7eb; color: #374151; }

.qv-source {
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: var(--qv-text-muted);
}

@media (min-width: 768px) {
    .qv-chart {
        padding: 2rem 2.25rem;
    }
}

@media (min-width: 992px) {
    .qv-chart-panels-multi {
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    }
}

/* Phones: each label goes on its own line above its bar. */
@media (max-width: 575.98px) {
    .qv-chart {
        padding: 1.25rem 1rem;
    }

    .qv-panel,
    .qv-stacked {
        grid-template-columns: 1fr auto;
        row-gap: 0.25rem;
    }

    .qv-stacked {
        grid-template-columns: 1fr;
    }

    .qv-label {
        grid-column: 1 / -1;
        margin-top: 0.4rem;
        text-align: left;
        font-size: 0.88rem;
    }

    .qv-seg {
        font-size: 0.78rem;
    }
}

/* Data table block with figures: numbers right-aligned and lined up. */
.data-table-numeric td,
.data-table-numeric thead th:not(:first-child) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table-numeric td {
    white-space: nowrap;
}

.data-table-numeric thead th {
    vertical-align: bottom;
}

/* Figures sit in a white card, like the charts. */
.data-table-numeric > :not(caption) > * > :first-child {
    padding-left: 1rem;
}

.data-table-numeric > :not(caption) > * > :last-child {
    padding-right: 1rem;
}

/* On narrow screens the table scrolls sideways; the row labels stay put. */
.data-table-numeric > :not(caption) > * > :first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: inset -1px 0 0 #e5e7eb, inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}

/* Data table block with text: on phones three or four columns of sentences
   are too narrow to read, so each row becomes a card, with the row label as
   its title and the column name above every cell. */
@media (max-width: 575.98px) {
    .data-table-stack,
    .data-table-stack tbody,
    .data-table-stack tr,
    .data-table-stack th,
    .data-table-stack td {
        display: block;
    }

    .data-table-stack thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .data-table-stack tbody tr {
        margin-bottom: 0.75rem;
        padding: 0.85rem 1rem;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 0.75rem;
    }

    .guide-table.data-table-stack > tbody > tr > * {
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .data-table-stack tbody th {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .data-table-stack tbody td + td {
        margin-top: 0.5rem;
    }

    .data-table-stack td:empty {
        display: none;
    }

    .data-table-stack td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: var(--bs-secondary-color);
    }
}

/* Stat tiles block: two per row on phones (an odd last tile takes the full
   row), all on one row from lg up. */
.qv-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.qv-stats .qv-stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.qv-stat {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.qv-stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #1e8449;
}

/* Values like "R$1.045" don't fit half a phone's width at full size. */
.qv-stat-value--long {
    font-size: 1.7rem;
}

.qv-stat-label {
    margin-top: 0.6rem;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #374151;
}

@media (min-width: 992px) {
    .qv-stats {
        grid-template-columns: repeat(min(var(--n), 5), minmax(0, 1fr));
    }

    .qv-stat-value--long {
        font-size: 2.4rem;
    }

    .qv-stats .qv-stat:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

/* --- Booking fee calculator (blog/blocks/fee_calculator.html) --- */
.qv-fee {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.qv-fee-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.qv-fee-plans .btn {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    color: #374151;
}

.qv-fee-plans .btn-check:checked + .btn {
    background: var(--qv-dark);
    border-color: var(--qv-dark);
    color: #fff;
}

.qv-fee-input {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.92rem;
    color: #374151;
}

.qv-fee-input output {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.qv-fee-bill {
    margin-top: 1.25rem;
}

.qv-fee-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.qv-fee-bill-ours .qv-fee-head {
    color: #1e8449;
}

.qv-fee-track {
    display: flex;
    height: 1.4rem;
}

.qv-fee-bar {
    width: calc(100% * var(--f, 0));
    border-radius: 4px;
    background: #9ca3af;
    transition: width 0.2s ease-out;
}

.qv-fee-bill-ours .qv-fee-bar {
    background: #1e8449;
}

/* The fee sits flush against the monthly price, as one bar in two parts. */
.qv-fee-bar:not(:last-child) {
    border-radius: 4px 0 0 4px;
}

.qv-fee-bar-fee {
    border-radius: 0 4px 4px 0;
    background: var(--qv-accent);
}

.qv-fee-split {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--qv-text-muted);
    text-align: right;
}

.qv-fee-result {
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
    font-size: 1.05rem;
    color: #111827;
}

@media (prefers-reduced-motion: reduce) {
    .qv-fee-bar {
        transition: none;
    }
}

/* Social profile links (author bio, guide carousel box) in the brands' own colours */
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: var(--qv-bg-white);
    color: var(--qv-dark);
    font-weight: 600;
    text-decoration: none;
}

.social-pill:hover {
    border-color: #cbd5e1;
    background: #f9fafb;
    color: var(--qv-dark);
}

.brand-instagram {
    display: inline-block;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-youtube {
    color: #ff0000;
}

.brand-tiktok {
    color: #000000;
    text-shadow: -1px -1px 0 #25f4ee, 1px 1px 0 #fe2c55;
}
