/* Ajustes específicos do site revsales.com.br (o resto vem dos CSS da landing da Revaya). */

/* A logo virou link para o topo: sem sublinhado nem cor herdada de <a>. */
a.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* "Um produto Revaya" abaixo da logo do rodapé. */
.rs-footer-byline {
    margin: 10px 0 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.rs-footer-byline a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Âncoras do menu não ficam escondidas atrás do header fixo. */
section[id] {
    scroll-margin-top: 96px;
}

/* Política de privacidade: um bloco por idioma, exibido conforme o <html lang> que o i18n.js define.
   Sem JS o lang fica "pt" (do markup), então o PT aparece por padrão. */
.policy-lang {
    display: none;
}

html:not([lang="en"]):not([lang="es"]) .policy-lang[data-lang="pt"],
html[lang="en"] .policy-lang[data-lang="en"],
html[lang="es"] .policy-lang[data-lang="es"] {
    display: block;
}

.policy-lang-note {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.75;
    border-left: 3px solid currentColor;
    padding-left: 12px;
}

/* ============================================================
   PLANOS (#planos)
   ============================================================ */
.rs-pricing {
    position: relative;
    padding: 120px 0;
}

.rs-plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-top: 56px;
}

.rs-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 26px 30px;
    border-radius: 20px;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.09));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.025) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.rs-plan:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

/* Professional: o mais procurado — borda em gradiente da marca + brilho */
.rs-plan.is-featured {
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, #151028 0%, #0d0b1c 100%) padding-box,
        linear-gradient(140deg, #f97316, #9333ea) border-box;
    box-shadow: 0 30px 80px rgba(147, 51, 234, 0.28), 0 0 0 1px rgba(249, 115, 22, 0.12);
    transform: translateY(-12px);
}

.rs-plan.is-featured[data-reveal].revealed {
    transform: translateY(-12px);
}

.rs-plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(120deg, #f97316, #9333ea);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.4);
}

.rs-plan-name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary, #fff);
    margin: 0 0 8px;
}

.rs-plan-desc {
    min-height: 4.65em; /* 3 linhas: mantém os preços alinhados entre os cards */
    margin: 0 0 22px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary, rgba(255, 255, 255, 0.66));
}

.rs-plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-height: 52px;
    margin-bottom: 22px;
}

.rs-plan-amount {
    white-space: nowrap;
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary, #fff);
}

.rs-plan-amount-text {
    font-size: 1.6rem;
}

.rs-plan-annual {
    margin: -14px 0 20px;
    font-size: 0.82rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.46));
}

.rs-plan.is-featured .rs-plan-amount {
    background: linear-gradient(90deg, #fb923c, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rs-plan-period {
    font-size: 0.9rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.46));
}

.rs-plan .btn {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.rs-plan .btn,
.rs-plan-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 26px;
    text-align: center;
}

.rs-plan-btn {
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.rs-plan-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}

.rs-plan-app {
    margin: 0 0 22px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(249, 115, 22, 0.35);
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.12), rgba(147, 51, 234, 0.14));
}

.rs-plan-app-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 0.86rem;
    white-space: nowrap;
    color: var(--text-primary, #fff);
}

.rs-plan-app-icons {
    display: inline-flex;
    gap: 5px;
    font-size: 1.05rem;
    color: #fb923c;
}

.rs-plan-app-icons .fa-android {
    color: #c084fc;
}

.rs-plan-app-desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-secondary, rgba(255, 255, 255, 0.66));
}

.rs-plan-includes {
    margin: 0 0 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-primary, #fff);
}

.rs-plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.rs-plan-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary, rgba(255, 255, 255, 0.66));
}

.rs-plan-features i {
    flex-shrink: 0;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #fb923c;
}

.rs-pricing-note {
    margin: 48px auto 0;
    max-width: 640px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.46));
}

@media (max-width: 1280px) {
    .rs-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .rs-plan.is-featured,
    .rs-plan.is-featured[data-reveal].revealed {
        transform: none;
    }
}

@media (max-width: 640px) {
    .rs-pricing {
        padding: 80px 0;
    }

    .rs-plans {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .rs-plan-desc {
        min-height: 0;
    }

    /* Cards empilhados: não há o que alinhar, o espaço do preço vazio só abriria um buraco. */
    .rs-plan-price.is-empty {
        display: none;
    }
}

/* Grades que perderam cards (cobrança e prospecção via Google Maps saíram por enquanto):
   colunas fixas para a última linha não ficar com buraco. */
.crm-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 5 cards em 3 colunas (3 + 2) ou 2 colunas (2 + 2 + 1): o último ocupa 2 colunas. */
.crm-feature:nth-child(5):last-child {
    grid-column: span 2;
}

.assistant-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

@media (max-width: 1024px) {
    .crm-features,
    .assistant-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .crm-features,
    .assistant-categories,
    .discovery-grid {
        grid-template-columns: 1fr;
    }

    .crm-feature:nth-child(5):last-child {
        grid-column: auto;
    }
}

/* ---------- Header ---------- */
.nav-menu li a {
    white-space: nowrap;
}

/* O desfoque sai do <nav> para um pseudo-elemento: backdrop-filter no nav vira o bloco de
   contenção do drawer (position: fixed) e o prendia dentro da pill no mobile. */
.has-hero-video #mainHeader nav,
.has-hero-video #mainHeader.scrolled nav {
    position: relative;
    isolation: isolate;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.has-hero-video #mainHeader nav::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    transition: background 0.4s;
}

.has-hero-video #mainHeader.scrolled nav::before {
    background: rgba(10, 12, 22, 0.88);
}

.has-hero-video .nav-menu {
    gap: 26px;
}

/* Idioma, Entrar e CTA formam o grupo de ações, separado dos links de seção. */
.nav-menu li.language-switcher {
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.language-switcher button {
    font-size: 16px;
}

.has-hero-video .nav-menu li a.nav-login {
    color: #ffffff;
    font-weight: 600;
}

.has-hero-video .nav-menu li.nav-cta {
    margin-left: 0;
}

.hv-nav-cta,
.has-hero-video .hv-nav-cta {
    background: linear-gradient(90deg, #f97316, #9333ea);
    border: 0;
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.35);
    color: #ffffff !important;
}

.hv-nav-cta:hover {
    background: linear-gradient(90deg, #f97316, #9333ea);
    filter: brightness(1.1);
}

/* Até 1100px os 5 links + ações não cabem na pill: vira menu lateral. */
@media (max-width: 1100px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu,
    .has-hero-video .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-elevated, #0f1220);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 60px 40px;
        gap: 24px;
        transition: right 0.5s var(--ease-out-expo, ease);
        border-left: 1px solid var(--border, rgba(255, 255, 255, 0.1));
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li a {
        font-size: 16px;
        color: var(--text-primary, #fff) !important;
    }

    .nav-menu li.language-switcher {
        padding-left: 0;
        border-left: 0;
    }

    .language-switcher button {
        font-size: 20px;
    }

    .nav-menu li.nav-cta {
        width: 100%;
    }

    .hv-nav-cta,
    .has-hero-video .hv-nav-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Entrar: janela que pergunta o endereço da empresa (tenant-login.js) ---------- */
.tenant-login {
    width: min(440px, calc(100vw - 32px));
    max-width: none;
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: #10152a;
    color: #ffffff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.tenant-login::backdrop {
    background: rgba(5, 7, 15, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tenant-login-form {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 28px;
}

.tenant-login-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    cursor: pointer;
}

.tenant-login-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.tenant-login-title {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.tenant-login-desc {
    margin: 0 0 22px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.66);
}

.tenant-login-label {
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.tenant-login-field {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tenant-login-field:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.tenant-login-field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 1rem;
    text-align: right;
}

.tenant-login-field input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.tenant-login-suffix {
    flex-shrink: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.tenant-login-error {
    margin: 10px 0 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #fca5a5;
}

.tenant-login-submit {
    height: 48px;
    margin-top: 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #9333ea);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.35);
    color: #ffffff;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s;
}

.tenant-login-submit:hover {
    filter: brightness(1.1);
}

.tenant-login-submit:disabled {
    cursor: progress;
    filter: saturate(0.6);
}

.tenant-login-signup {
    margin: 18px 0 0;
    font-size: 0.85rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.tenant-login-signup a {
    color: #fb923c;
    font-weight: 600;
    text-decoration: none;
}

.tenant-login-signup a:hover {
    text-decoration: underline;
}

/* Selos das lojas (App Store / Google Play) no rodapé. */
.footer-apps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.footer-apps a {
    display: inline-flex;
    transition: opacity 0.2s;
}

.footer-apps a:hover {
    opacity: 0.85;
}

.footer-apps img {
    display: block;
    height: 40px;
    width: auto;
}

/* ---------- Título do hero rotativo: 3 frases no mesmo lugar, trocando por fade ---------- */
.hv-title-rotate {
    display: grid;
    align-items: start;
    max-width: 16ch;
    /* A altura é ajustada pelo hero-rotate.js para a frase ativa; a transição evita o pulo. */
    transition: height 0.5s ease;
}

.hv-title-rotate .hv-rotate-item {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.hv-title-rotate .hv-rotate-item.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.hv-title-rotate .hv-rotate-item.is-leaving {
    opacity: 0;
    transform: translateY(-14px);
}

@media (prefers-reduced-motion: reduce) {
    .hv-title-rotate,
    .hv-title-rotate .hv-rotate-item {
        transition: none;
        transform: none;
    }
}

/* ---------- Diagrama do assistente: redesenho (alinhado aos raios do SVG, acabamento premium) ---------- */
.assistant-hub .hub-lines {
    animation: none;
    overflow: visible;
}

.assistant-hub .hub-orbit {
    transform-box: view-box;
    transform-origin: 200px 200px;
    animation: hubOrbit 26s linear infinite;
}

.assistant-hub .hub-orbit-inner {
    animation-duration: 18s;
    animation-direction: reverse;
}

@keyframes hubOrbit {
    to { transform: rotate(360deg); }
}

/* Satélites nos 6 pontos dos raios (60° em 60°, raio = 35% do quadro), em qualquer tamanho de tela */
.assistant-hub .hub-satellite {
    top: auto; right: auto; bottom: auto; left: auto;
    transform: translate(-50%, -50%);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(253, 186, 116, 0.20);
    border-radius: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 12px 32px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    gap: 6px;
}

.assistant-hub .hub-pos-1 { left: 50%;    top: 15%; }
.assistant-hub .hub-pos-2 { left: 80.31%; top: 32.5%; }
.assistant-hub .hub-pos-4 { left: 80.31%; top: 67.5%; }
.assistant-hub .hub-pos-5 { left: 50%;    top: 85%; }
.assistant-hub .hub-pos-6 { left: 19.69%; top: 67.5%; }
.assistant-hub .hub-pos-8 { left: 19.69%; top: 32.5%; }

.assistant-hub .hub-satellite:hover {
    transform: translate(-50%, -50%) scale(1.06);
    border-color: rgba(253, 186, 116, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 16px 40px rgba(0, 0, 0, 0.45),
        0 0 36px rgba(249, 115, 22, 0.18);
}

.assistant-hub .hub-satellite i {
    font-size: 21px;
    background: linear-gradient(135deg, #fde7c8 0%, #fdba74 55%, #fb923c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.assistant-hub .hub-satellite span {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    padding: 0 4px;
}

/* Centro: orbe com anel fino, pulso discreto e etiqueta em serif */
.assistant-hub .hub-orb {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.35),
        0 0 0 7px rgba(7, 10, 20, 0.85),
        0 0 0 8px rgba(253, 186, 116, 0.35),
        0 24px 60px rgba(147, 51, 234, 0.35),
        0 0 90px rgba(249, 115, 22, 0.18);
}

.assistant-hub .hub-pulse {
    border: 1px solid rgba(253, 186, 116, 0.45);
    animation-duration: 3.6s;
}

.assistant-hub .hub-pulse-2 { animation-delay: 1.8s; }

.assistant-hub .hub-label {
    font-family: var(--hv-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.03em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(7, 10, 20, 0.62);
    border: 1px solid rgba(253, 186, 116, 0.28);
    padding: 4px 16px 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .assistant-hub .hub-satellite { border-radius: 16px; gap: 4px; }
    .assistant-hub .hub-satellite i { font-size: 17px; }
    .assistant-hub .hub-satellite span { font-size: 8px; letter-spacing: 0.04em; padding: 0 2px; }
    .assistant-hub .hub-label { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .assistant-hub .hub-orbit, .assistant-hub .hub-pulse { animation: none; }
}

/* Centro do hub: o orbe fica exatamente no centro do quadro (a etiqueta pende abaixo, sem deslocar o orbe)
   e o pulso nasce na borda do bisel, concêntrico ao orbe. */
.assistant-hub { --orb-half: 46px; --bezel: 8px; }

.assistant-hub .hub-center {
    transform: translate(-50%, calc(-1 * var(--orb-half)));
}

.assistant-hub .hub-pulse {
    top: var(--orb-half);
    width: calc(var(--orb-half) * 2 + var(--bezel) * 2 + 2px);
    height: calc(var(--orb-half) * 2 + var(--bezel) * 2 + 2px);
    z-index: 0;
}

@media (max-width: 768px) {
    .assistant-hub { --orb-half: 38px; }
}

/* Captação e automação: o fluxo 1-2-3 encostava na grade de cards logo acima. */
.crm-features + .discovery-flow {
    margin-top: 48px;
}
@media (max-width: 768px) {
    .crm-features + .discovery-flow {
        margin-top: 32px;
    }
}

.rs-pricing-credits {
    margin-top: 14px;
    font-size: 0.84rem;
}
