/* ============================================================
   HOME v3 — "time de agentes de IA para a empresa inteira"
   Página mais limpa: menos texto, uma imagem real do produto por seção.
   Tudo aqui usa as variáveis --v3-*, definidas para o tema escuro
   (padrão) e para o claro (html[data-theme="light"]). Carregar depois
   de theme-light.css.
   ============================================================ */

.has-hero-video {
    --v3-bg: #070a14;
    --v3-bg-soft: #0b0f1c;
    --v3-card: rgba(255, 255, 255, 0.04);
    --v3-card-hover: rgba(255, 255, 255, 0.07);
    --v3-line: rgba(255, 255, 255, 0.09);
    --v3-line-strong: rgba(255, 255, 255, 0.18);
    --v3-text: #ffffff;
    --v3-text-2: rgba(255, 255, 255, 0.68);
    --v3-text-3: rgba(255, 255, 255, 0.46);
    --v3-accent: #fb923c;
    --v3-accent-2: #c084fc;
    --v3-chip: rgba(255, 255, 255, 0.05);
    --v3-frame-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 80px rgba(147, 51, 234, 0.14);
    --v3-glow-a: rgba(147, 51, 234, 0.3);
    --v3-glow-b: rgba(249, 115, 22, 0.2);
    --v3-icon-bg: linear-gradient(140deg, rgba(249, 115, 22, 0.22), rgba(147, 51, 234, 0.22));
    --v3-icon-color: #ffffff;
}

html[data-theme="light"] .has-hero-video {
    --v3-bg: #ffffff;
    --v3-bg-soft: #f6f5fb;
    --v3-card: #ffffff;
    --v3-card-hover: #ffffff;
    --v3-line: rgba(15, 18, 34, 0.09);
    --v3-line-strong: rgba(15, 18, 34, 0.18);
    --v3-text: #0f1222;
    --v3-text-2: rgba(15, 18, 34, 0.68);
    --v3-text-3: rgba(15, 18, 34, 0.5);
    --v3-accent: #ea580c;
    --v3-accent-2: #9333ea;
    --v3-chip: rgba(15, 18, 34, 0.04);
    --v3-frame-shadow: 0 30px 80px rgba(15, 18, 34, 0.14), 0 0 80px rgba(147, 51, 234, 0.08);
    --v3-glow-a: rgba(147, 51, 234, 0.14);
    --v3-glow-b: rgba(249, 115, 22, 0.12);
    --v3-icon-bg: linear-gradient(140deg, rgba(249, 115, 22, 0.12), rgba(147, 51, 234, 0.12));
    --v3-icon-color: #7e22ce;
}

/* ---------- Menu superior ----------
   Quatro links, idioma num seletor compacto, Entrar e o botão.
   O seletor de idioma em si fica em site-nav.css, que as outras páginas também usam. */
.has-hero-video {
    --v3-pop: #10152a;
}

html[data-theme="light"] .has-hero-video {
    --v3-pop: #ffffff;
}

.has-hero-video #mainHeader nav {
    max-width: 1120px;
}

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

/* Empurra idioma, tema, Entrar e o botão para a direita, separados dos links de seção. */
.has-hero-video .nav-menu li.v3-lang {
    margin-left: 10px;
}

.has-hero-video .hv-nav-cta {
    height: 38px;
    padding: 0 20px;
}

/* Menu lateral do celular: idiomas em linha. */
@media (max-width: 1100px) {
    .has-hero-video .nav-menu li.v3-lang {
        margin-left: 0;
    }
}

/* ---------- Base de seção ---------- */
.v3-section {
    position: relative;
    padding: 120px 0;
    background: var(--v3-bg);
    color: var(--v3-text);
}

.v3-section.is-soft {
    background: var(--v3-bg-soft);
}

.v3-section .section-header {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.v3-section .section-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Hero ---------- */
.v3-hero {
    position: relative;
    padding: 168px 0 0;
    background: var(--v3-bg);
    color: var(--v3-text);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.v3-hero::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 720px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(48% 60% at 30% 0%, var(--v3-glow-a), transparent 70%),
        radial-gradient(44% 56% at 72% 6%, var(--v3-glow-b), transparent 70%);
}

.v3-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--v3-line);
    background: var(--v3-chip);
    font-size: 13px;
    font-weight: 500;
    color: var(--v3-text-2);
}

.v3-hero-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

.v3-hero-title {
    max-width: 15ch;
    margin: 0 auto 22px;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6.2vw, 4.6rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--v3-text);
    text-wrap: balance;
}

.v3-hero-title em,
.v3-section .section-title em {
    font-family: var(--hv-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.08em;
    letter-spacing: -0.01em;
    padding-right: 0.05em;
}

.v3-hero-sub {
    max-width: 620px;
    margin: 0 auto 34px;
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: var(--v3-text-2);
    text-wrap: pretty;
}

.v3-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.v3-hero-note {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--v3-text-3);
}

/* ---------- Topo em duas colunas: texto + exemplo de conversa ---------- */
.v3-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 56px;
    align-items: center;
    text-align: left;
}

.v3-hero-grid .v3-hero-title {
    max-width: 12ch;
    margin: 0 0 22px;
    font-size: clamp(2.5rem, 4.6vw, 3.9rem);
}

.v3-hero-grid .v3-hero-sub {
    max-width: 540px;
    margin: 0 0 32px;
}

.v3-hero-grid .v3-hero-cta {
    justify-content: flex-start;
}

/* Moldura de imagem/vídeo do produto */
.v3-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--v3-line-strong);
    background: var(--v3-bg-soft);
    box-shadow: var(--v3-frame-shadow);
}

.v3-frame img,
.v3-frame video {
    display: block;
    width: 100%;
    height: auto;
}

.v3-hero-frame {
    max-width: 1100px;
    margin: 64px auto 0;
}

/* ---------- Números ---------- */
.v3-stats {
    padding: 72px 0 0;
    background: var(--v3-bg);
}

.v3-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid var(--v3-line);
    border-bottom: 1px solid var(--v3-line);
}

.v3-stat {
    padding: 30px 16px;
    text-align: center;
    border-left: 1px solid var(--v3-line);
}

.v3-stat:first-child {
    border-left: 0;
}

.v3-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--v3-text);
}

.v3-stat span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--v3-text-3);
}

/* ---------- Times (abas) ---------- */
.v3-squads {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.v3-squad-tabs {
    display: grid;
    gap: 8px;
}

.v3-squad-tab {
    display: block;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: var(--v3-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
}

.v3-squad-tab:hover {
    background: var(--v3-chip);
}

.v3-squad-tab[aria-selected="true"] {
    background: var(--v3-card);
    border-color: var(--v3-line-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.v3-squad-tab:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.v3-squad-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.v3-squad-role {
    display: block;
    margin-top: 2px;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--v3-text-3);
}

.v3-squad-panel[hidden] {
    display: none;
}

.v3-squad-lead {
    margin: 22px 0 16px;
    font-size: 1.12rem;
    line-height: 1.55;
    color: var(--v3-text);
    text-wrap: pretty;
}

.v3-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.v3-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--v3-line);
    background: var(--v3-chip);
    font-size: 0.88rem;
    color: var(--v3-text-2);
}

.v3-beta {
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid var(--v3-line-strong);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--v3-text-3);
}

/* ---------- Fluxo entre os times ---------- */
.v3-flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: v3flow;
}

.v3-flow li {
    position: relative;
    padding: 24px 20px 22px;
    border-radius: 18px;
    border: 1px solid var(--v3-line);
    background: var(--v3-card);
}

.v3-flow li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 44px;
    right: -11px;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid var(--v3-text-3);
    border-right: 1.5px solid var(--v3-text-3);
    transform: rotate(45deg);
    z-index: 1;
}

.v3-flow-area {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v3-accent);
}

.v3-flow p {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--v3-text);
}

/* ---------- Duas colunas: texto + imagem ---------- */
.v3-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: center;
}

.v3-split .section-tag {
    margin-bottom: 18px;
}

.v3-split .section-title {
    text-align: left;
}

.v3-split-sub {
    margin: 0 0 30px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--v3-text-2);
}

.v3-points {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.v3-points li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    align-items: start;
}

.v3-points strong {
    display: block;
    margin-bottom: 3px;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--v3-text);
}

.v3-points span {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--v3-text-2);
}

/* ---------- Cartões (implantação e controle) ---------- */
.v3-cards {
    display: grid;
    gap: 20px;
}

.v3-cards.is-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 980px;
    margin: 0 auto;
}

.v3-cards.is-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v3-card {
    display: flex;
    flex-direction: column;
    padding: 32px 30px;
    border-radius: 20px;
    border: 1px solid var(--v3-line);
    background: var(--v3-card);
    transition: border-color 0.3s, background 0.3s;
}

.v3-card:hover {
    border-color: var(--v3-line-strong);
    background: var(--v3-card-hover);
}

.v3-card .v3-card-eyebrow {
    margin: 0 0 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v3-accent);
}

.v3-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--v3-text);
}

.v3-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--v3-text-2);
}

.v3-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--v3-text);
    text-decoration: none;
    transition: gap 0.25s, color 0.25s;
}

.v3-card-link:hover {
    gap: 12px;
    color: var(--v3-accent);
}

/* ---------- Frase de resultado ---------- */
.v3-result {
    max-width: 760px;
    margin: 48px auto 0;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: center;
    text-wrap: balance;
    background: linear-gradient(90deg, var(--v3-accent), var(--v3-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Planos: para quem é cada um ---------- */
.rs-plan-audience {
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--v3-accent);
}

/* ---------- FAQ: frase lateral no mesmo tom das outras seções ---------- */
.has-hero-video .faq-section {
    background: var(--v3-bg-soft);
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
    .v3-squads {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* As abas viram uma fileira rolável de botões curtos */
    .v3-squad-tabs {
        display: flex;
        gap: 8px;
        margin: 0 -20px;
        padding: 0 20px 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .v3-squad-tabs::-webkit-scrollbar {
        display: none;
    }

    .v3-squad-tab {
        flex: 0 0 auto;
        width: auto;
        padding: 10px 18px;
        border-color: var(--v3-line);
        border-radius: 999px;
    }

    .v3-squad-name {
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .v3-squad-role {
        display: none;
    }

    .v3-flow {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .v3-flow li {
        display: grid;
        grid-template-columns: 40px 1fr;
        column-gap: 16px;
        align-items: center;
        padding: 18px 20px;
    }

    .v3-flow-area {
        margin-bottom: 2px;
    }

    .v3-flow li:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: -11px;
        left: 36px;
        transform: rotate(135deg);
    }

    .v3-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .v3-hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
        text-align: center;
    }

    .v3-hero-grid .v3-hero-title,
    .v3-hero-grid .v3-hero-sub {
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }

    .v3-hero-grid .v3-hero-cta {
        justify-content: center;
    }

    .v3-cards.is-3 {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .v3-section {
        padding: 80px 0;
    }

    .v3-section .section-header {
        margin-bottom: 40px;
    }

    .v3-hero {
        padding-top: 124px;
    }

    .v3-hero-title {
        font-size: clamp(2.3rem, 10vw, 3rem);
    }

    .v3-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .v3-hero-cta .hv-btn {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }

    .v3-hero-frame {
        margin-top: 44px;
    }

    .v3-frame {
        border-radius: 14px;
    }

    .v3-stats {
        padding-top: 48px;
    }

    .v3-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v3-stat {
        padding: 22px 12px;
    }

    .v3-stat:nth-child(3) {
        border-left: 0;
    }

    .v3-stat:nth-child(n + 3) {
        border-top: 1px solid var(--v3-line);
    }

    .v3-cards.is-2 {
        grid-template-columns: 1fr;
    }

    .v3-card {
        padding: 26px 22px;
    }
}

/* ============================================================
   Janela do assistente no topo (ilustração).
   Usa as cores e as fontes do produto (tema claro do RevSales+),
   iguais nos dois temas da página, como se fosse uma captura de tela.
   ============================================================ */
.v3-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
}

.v3-hero-grid .v3-hero-title {
    max-width: 13ch;
}

.v3-app-wrap {
    position: relative;
    margin-bottom: 44px;
}

.v3-app {
    --app-bg: #f3f6fb;
    --app-card: #ffffff;
    --app-line: #d9e1ec;
    --app-primary: #0284c7;
    --app-primary-soft: #e0f2fe;
    --app-primary-ink: #075985;
    --app-muted: #e9eef5;
    --app-muted-fg: #64748b;
    --app-fg: #0f172a;
    --app-ok: #0d9488;
    --app-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
    display: grid;
    grid-template-columns: 146px minmax(0, 1fr);
    border-radius: 16px;
    border: 1px solid var(--v3-line-strong);
    background: var(--app-bg);
    box-shadow: var(--v3-frame-shadow);
    overflow: hidden;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--app-fg);
    text-align: left;
}

.v3-app p {
    margin: 0;
    color: inherit;
}

.v3-app svg {
    flex: none;
    width: 14px;
    height: 14px;
}

/* Menu lateral do produto */
.v3-app-side {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 10px 20px;
    border-right: 1px solid var(--app-line);
    background: var(--app-card);
}

.v3-app-logo {
    width: 96px;
    height: auto;
    margin: 0 6px 14px;
}

.v3-app-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    color: #334155;
}

.v3-app-nav svg {
    color: var(--app-muted-fg);
}

.v3-app-nav.is-on {
    border-color: var(--app-primary);
    background: var(--app-primary-soft);
    font-weight: 600;
    color: var(--app-primary-ink);
}

.v3-app-nav.is-on svg {
    color: var(--app-primary);
}

.v3-app-group {
    margin: 12px 8px 4px;
    font-family: var(--app-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}

/* Conversa */
.v3-app-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-bottom: 44px;
}

.v3-app-top {
    display: none;
}

.v3-app-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 20px 20px 16px;
}

.v3-app-user {
    align-self: flex-end;
    max-width: 88%;
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--app-muted);
}

.v3-app-ai > p {
    margin-bottom: 10px;
}

.v3-app-block {
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: var(--app-card);
    overflow: hidden;
}

.v3-app-block-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--app-line);
}

.v3-app-block-head strong {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.v3-app-mono {
    font-family: var(--app-mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--app-muted-fg);
}

.v3-app-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--app-primary);
}

.v3-app-link svg {
    width: 11px;
    height: 11px;
}

.v3-app-block ul,
.v3-app-action ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.v3-app-block li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    border-top: 1px solid var(--app-line);
    font-size: 12.5px;
}

.v3-app-block li:first-child {
    border-top: 0;
}

.v3-app-block li strong {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v3-app-block li span {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--app-muted);
    font-size: 11px;
    white-space: nowrap;
    color: #475569;
}

.v3-app-block li em {
    font-family: var(--app-mono);
    font-size: 11.5px;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Pedido feito por voz */
.v3-voice-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
    font-family: var(--app-mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--app-primary);
}

.v3-app .v3-voice-tag svg {
    width: 12px;
    height: 12px;
}

.v3-wave {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 12px;
}

.v3-wave i {
    width: 2px;
    height: 100%;
    border-radius: 2px;
    background: currentColor;
    transform-origin: center;
    animation: v3-wave 1.1s ease-in-out infinite;
}

.v3-wave i:nth-child(1) { animation-delay: -0.9s; }
.v3-wave i:nth-child(2) { animation-delay: -0.6s; }
.v3-wave i:nth-child(3) { animation-delay: -0.2s; }
.v3-wave i:nth-child(4) { animation-delay: -0.75s; }
.v3-wave i:nth-child(5) { animation-delay: -0.4s; }

@keyframes v3-wave {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* Cartão da ação executada */
.v3-app-action {
    align-self: flex-start;
    max-width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: var(--app-card);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    font-size: 12.5px;
}

.v3-app-action ul {
    display: grid;
    gap: 5px;
}

.v3-app-action li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.v3-app-action li svg {
    margin-top: 2px;
    color: var(--app-ok);
}

.v3-app-undo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding: 4px 10px;
    border: 1px solid var(--app-line);
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
}

.v3-app .v3-app-undo svg {
    width: 12px;
    height: 12px;
}

/* Caixa de pergunta */
.v3-app-input {
    margin: 0 20px;
    padding: 10px 12px 9px;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: var(--app-card);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.v3-app-input p {
    margin-bottom: 10px;
    color: #94a3b8;
}

.v3-app-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--app-muted-fg);
}

.v3-app-send {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-left: auto;
    border-radius: 7px;
    background: var(--app-primary);
    color: #ffffff;
}

/* Aviso de um agente trabalhando, por cima do canto da janela */
.v3-app-toast {
    position: absolute;
    left: -20px;
    bottom: -40px;
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: 290px;
    padding: 11px 16px 11px 14px;
    border: 1px solid var(--v3-line-strong);
    border-radius: 14px;
    background: var(--v3-pop);
    box-shadow: 0 16px 44px rgba(15, 18, 34, 0.2);
    font-size: 0.8rem;
    line-height: 1.35;
    text-align: left;
    color: var(--v3-text-2);
}

.v3-app-toast strong {
    display: block;
    font-size: 0.82rem;
    color: var(--v3-text);
}

.v3-live-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: v3-pulse 1.8s ease-out infinite;
}

@keyframes v3-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    100% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
}

/* As mensagens entram uma a uma quando a janela aparece na tela. */
.v3-app-wrap [data-step] {
    opacity: 0;
    transform: translateY(10px);
}

.v3-app-wrap.revealed [data-step] {
    animation: v3-msg-in 0.5s ease forwards;
}

.v3-app-wrap.revealed [data-step="1"] { animation-delay: 0.5s; }
.v3-app-wrap.revealed [data-step="2"] { animation-delay: 1.4s; }
.v3-app-wrap.revealed [data-step="3"] { animation-delay: 3s; }
.v3-app-wrap.revealed [data-step="4"] { animation-delay: 4.1s; }
.v3-app-wrap.revealed [data-step="5"] { animation-delay: 5.2s; }

@keyframes v3-msg-in {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   Tarefas que dá para delegar (#agentes)
   ============================================================ */
.v3-tasks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.v3-task {
    display: flex;
    align-items: center;
    min-height: 84px;
    padding: 20px 22px;
    border: 1px solid var(--v3-line);
    border-radius: 18px;
    background: var(--v3-card);
    transition: border-color 0.25s, transform 0.25s;
}

.v3-task:hover {
    border-color: var(--v3-line-strong);
    transform: translateY(-3px);
}

.v3-task h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--v3-text);
}

/* ============================================================
   Times: a tela do sistema fica de fundo, o agente trabalhando na frente
   ============================================================ */
.v3-work {
    position: relative;
    padding-bottom: 40px;
}

.v3-work-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, var(--v3-bg) 130%);
    opacity: 0.85;
    pointer-events: none;
}

.v3-log {
    position: absolute;
    right: 20px;
    bottom: 0;
    width: min(380px, 64%);
    border: 1px solid var(--v3-line-strong);
    border-radius: 16px;
    background: var(--v3-pop);
    box-shadow: 0 24px 64px rgba(15, 18, 34, 0.24);
    overflow: hidden;
    font-size: 0.87rem;
    line-height: 1.4;
    text-align: left;
}

.v3-log-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--v3-line);
}

.v3-log-head strong {
    font-size: 0.92rem;
    color: var(--v3-text);
}

.v3-log-state {
    margin-left: auto;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #0d9488;
}

.v3-log ol {
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.v3-log li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
    padding: 8px 16px;
    color: var(--v3-text-2);
}

.v3-log time {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.7rem;
    color: var(--v3-text-3);
}

.v3-log li em {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
    color: var(--v3-accent);
}

.v3-log-foot {
    margin: 0;
    padding: 8px 16px 10px;
    border-top: 1px solid var(--v3-line);
    font-size: 0.68rem;
    color: var(--v3-text-3);
}

/* As linhas do registro entram uma a uma quando a aba abre. */
.v3-squad-panel:not([hidden]) .v3-log li {
    animation: v3-msg-in 0.45s ease both;
}

.v3-squad-panel:not([hidden]) .v3-log li:nth-child(1) { animation-delay: 0.15s; }
.v3-squad-panel:not([hidden]) .v3-log li:nth-child(2) { animation-delay: 0.55s; }
.v3-squad-panel:not([hidden]) .v3-log li:nth-child(3) { animation-delay: 0.95s; }
.v3-squad-panel:not([hidden]) .v3-log li:nth-child(4) { animation-delay: 1.35s; }

.v3-log li {
    transform: translateY(8px);
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .v3-app-wrap [data-step],
    .v3-log li {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    .v3-wave i {
        animation: none;
        transform: scaleY(0.6);
    }

    .v3-live-dot {
        animation: none;
    }
}

@media (max-width: 1024px) {
    .v3-hero-grid {
        grid-template-columns: 1fr;
    }

    .v3-app-wrap {
        width: 100%;
        max-width: 620px;
        margin: 0 auto 44px;
    }

    .v3-app-toast {
        left: -10px;
    }

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

@media (max-width: 768px) {
    .v3-app {
        grid-template-columns: 1fr;
    }

    .v3-app-side {
        display: none;
    }

    .v3-app-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        border-bottom: 1px solid var(--app-line);
        background: var(--app-card);
    }

    .v3-app-top img {
        width: 88px;
        height: auto;
    }

    .v3-app-body {
        padding: 16px 14px 14px;
    }

    .v3-app-input {
        margin: 0 14px;
    }

    .v3-app-block li {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .v3-app-block li span {
        display: none;
    }

    .v3-app-toast {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .v3-tasks {
        gap: 10px;
    }

    .v3-task {
        padding: 18px 16px;
    }

    .v3-task:hover {
        transform: none;
    }

    .v3-task h3 {
        font-size: 1rem;
    }

    .v3-work {
        padding-bottom: 0;
    }

    .v3-log {
        position: relative;
        right: auto;
        width: auto;
        margin: -44px 10px 0;
    }
}

/* ============================================================
   Passada minimalista: cor chapada no lugar dos degradês, botão principal
   em tinta, sombra neutra e nenhum ícone decorativo.
   Fica no fim do arquivo e usa !important onde precisa vencer as regras
   antigas (revsales.css, hero-video.css, home-v2.css, theme-light.css).
   ============================================================ */
.has-hero-video {
    --v3-ink: #ffffff;
    --v3-ink-fg: #0b0f1c;
    --v3-accent: #a78bfa;
    --v3-accent-2: #a78bfa;
    --v3-bg-soft: #0b0e18;
    --v3-frame-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .has-hero-video {
    --v3-ink: #0f1222;
    --v3-ink-fg: #ffffff;
    --v3-accent: #6d28d9;
    --v3-accent-2: #6d28d9;
    --v3-bg-soft: #f7f7f9;
    --v3-frame-shadow: 0 24px 60px rgba(15, 18, 34, 0.1);
}

html .has-hero-video .scroll-progress,
html .has-hero-video .cursor-glow,
html .has-hero-video .cta-mesh,
html .has-hero-video .faq-section::after,
html .has-hero-video .v3-hero-pill::before,
html .has-hero-video .section-tag::before {
    display: none !important;
}

/* Botão principal: uma cor só, sem brilho */
html .has-hero-video .hv-nav-cta,
html .has-hero-video .hv-btn-primary,
html .has-hero-video .btn.btn-primary,
html .has-hero-video .tenant-login-submit {
    background: var(--v3-ink) !important;
    color: var(--v3-ink-fg) !important;
    box-shadow: none !important;
    animation: none !important;
    transition: opacity 0.2s !important;
}

html .has-hero-video .hv-nav-cta:hover,
html .has-hero-video .hv-btn-primary:hover,
html .has-hero-video .btn.btn-primary:hover,
html .has-hero-video .tenant-login-submit:hover {
    opacity: 0.86;
}

html .has-hero-video .hv-btn-primary::before,
html .has-hero-video .hv-btn-primary::after,
html .has-hero-video .btn.btn-primary::before,
html .has-hero-video .btn.btn-primary::after {
    display: none !important;
}

html .has-hero-video .hv-nav-cta span,
html .has-hero-video .hv-btn-primary span,
html .has-hero-video .btn.btn-primary span {
    color: inherit !important;
}

/* Rótulo das seções: só o texto */
html .has-hero-video .section-tag {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--v3-text-3) !important;
}

/* Pontos do assistente sem ícone: título, frase e um fio entre eles */
.v3-points {
    gap: 0;
}

.v3-points li {
    display: block;
    padding: 18px 0;
    border-top: 1px solid var(--v3-line);
}

.v3-points li:last-child {
    border-bottom: 1px solid var(--v3-line);
}

/* Fluxo entre os times: número no lugar do ícone */
.v3-flow-num {
    display: block;
    margin-bottom: 14px;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
    font-size: 0.78rem;
    color: var(--v3-text-3);
}

.v3-flow-area {
    color: var(--v3-text);
}

.v3-result {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--v3-text);
}

.rs-plan-audience {
    color: var(--v3-text-3);
}

/* Planos: cartões chapados; o recomendado se destaca só pelo contorno */
html .has-hero-video .rs-plan {
    background: var(--v3-card) !important;
    box-shadow: none !important;
}

html .has-hero-video .rs-plan.is-featured {
    border-color: var(--v3-text) !important;
}

html .has-hero-video .rs-plan-badge {
    background: var(--v3-ink) !important;
    color: var(--v3-ink-fg) !important;
    box-shadow: none !important;
}

html .has-hero-video .rs-plan.is-featured .rs-plan-amount {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: var(--v3-text) !important;
}

html .has-hero-video .rs-plan-app {
    background: var(--v3-chip) !important;
    border-color: var(--v3-line) !important;
}

html .has-hero-video .rs-plan-features i {
    color: var(--v3-text-3) !important;
}

/* FAQ e chamada final */
html .has-hero-video .faq-impact-phrase .highlight {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: inherit !important;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1.14em;
    font-style: italic;
    font-weight: 400;
}

html .has-hero-video .faq-impact-phrase .highlight::after {
    display: none !important;
}

html .has-hero-video .faq-item::before {
    background: var(--v3-text) !important;
}

html .has-hero-video .cta-section {
    background: var(--v3-bg) !important;
}

/* Agentes de cada time (2026-11-22): uma linha de texto, sem ícone. */
.v3-squad-agents {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--v3-text, inherit);
}
.v3-squad-agents > span:first-child {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .6;
}

/* "Monte o seu time": mesma lista numerada do fluxo, com 4 passos. */
.v3-flow.is-4 {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
    .v3-flow.is-4 {
        grid-template-columns: 1fr;
    }
}

/* Celular: o número ocupa as duas linhas; rótulo e texto ficam na coluna larga. Sem isso o texto
   caía na coluna de 40px do número quando o rótulo era longo. */
@media (max-width: 1024px) {
    .v3-flow li > .v3-flow-num {
        grid-row: 1 / span 2;
        align-self: start;
    }
    .v3-flow li > .v3-flow-area,
    .v3-flow li > p {
        grid-column: 2;
    }
}

