/* Landing — chrome mínimo: header, footer, sticky CTA, LGPD */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.qs-landing {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.6;
}

/* ── Header ─────────────────────────────────────── */
#qs-ld-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .2s, border-color .2s;
}
#qs-ld-header.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,.09);
    border-color: #e5e7eb;
}
.qs-ld-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.qs-ld-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 8px;
}
.qs-ld-brand img {
    max-height: 40px;
    max-width: 160px;
    object-fit: contain;
}
.qs-ld-brand span {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}
.qs-ld-brand-tagline {
    font-weight: 500 !important;
    font-size: .78rem !important;
    color: #6c757d;
    white-space: normal !important;
}
@media (max-width: 640px) {
    .qs-ld-brand-tagline { display: none; }
}
.qs-ld-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: var(--qs-primary);
    color: #fff;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.qs-ld-header-cta:hover { opacity: .88; }

/* ── Main ────────────────────────────────────────── */
#qs-ld-main { min-height: 100vh; }

/* ── Footer ─────────────────────────────────────── */
.qs-ld-footer {
    padding: 24px 20px;
    background: #f5f5f7;
    border-top: 1px solid #e5e7eb;
}
.qs-ld-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: #6b7280;
}
.qs-ld-footer-logo {
    max-height: 28px;
    max-width: 120px;
    object-fit: contain;
    opacity: .65;
}
.qs-ld-footer a {
    color: #6b7280;
    text-decoration: underline;
}

/* ── Sticky CTA bar (só mobile) ──────────────────── */
#qs-ld-sticky {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 16px rgba(0,0,0,.12);
    transform: translateY(100%);
    transition: transform .3s ease;
    display: none;
}
#qs-ld-sticky.qs-ld-sticky--visible { transform: translateY(0); }
.qs-ld-sticky-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--qs-primary);
    color: #fff;
    border-radius: 10px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s;
}
.qs-ld-sticky-btn:hover { opacity: .88; }

@media (max-width: 639px) {
    #qs-ld-sticky { display: block; }
    /* sticky bar inferior assume o papel — CTA do header desnecessário */
    .qs-ld-header-cta { display: none; }
}

/* ── LGPD (mesmo estilo dos outros templates) ────── */
#qs-lgpd {
    position: fixed;
    bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 500;
    width: calc(100% - 32px); max-width: 560px;
}
.qs-lgpd-inner {
    background: #fff; color: #111;
    border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 14px 16px;
    display: flex; align-items: flex-start; gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.qs-lgpd-icone {
    width: 38px; height: 38px; border-radius: 50%;
    background: #e6f4ea; color: #1a7f37; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.qs-lgpd-body { flex: 1; min-width: 0; }
.qs-lgpd-titulo { font-size: .88rem; font-weight: 700; color: #111; margin-bottom: 3px; }
.qs-lgpd-texto  { font-size: .82rem; color: #555; line-height: 1.55; }
.qs-lgpd-texto a { color: #2563eb; text-decoration: underline; }
.qs-lgpd-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.qs-lgpd-btn { padding: 7px 16px; border-radius: 8px; font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap; border: none; }
.qs-lgpd-aceitar { background: var(--qs-primary); color: #fff; }
.qs-lgpd-navegar { background: #f3f4f6; color: #555; border: 1px solid #d1d5db; }

/* ── Modal (depoimentos) ─────────────────────────── */
.qs-ld-modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 400;
    align-items: center; justify-content: center;
    padding: 20px;
}
.qs-ld-modal.qs-ld-modal--ativo { display: flex; }
.qs-ld-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    max-width: 520px; width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.qs-ld-modal-fechar {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; cursor: pointer;
    font-size: 1.4rem; color: #666; line-height: 1;
}
.qs-ld-modal-fechar:hover { color: #111; }
