/* ==========================================================================
   DEU ROI — landing de vendas
   Direção de arte derivada do próprio painel (Dashboard/public/assets/style.css):
   carvão neutro, verde SÓ como sinal de lucro, número em mono tabular.
   ========================================================================== */

:root {
    color-scheme: dark;

    --bg:            #0B0B0E;
    --bg-soft:       #111114;
    --surface:       #16161B;
    --surface-2:     #1C1C22;
    --surface-hover: #212129;
    --border:        #26262E;
    --border-strong: #36363F;

    --text:   #F4F4F5;
    --text-2: #A1A1AA;
    --text-3: #71717A;

    --pos:  #35C98C;   /* valor efetivo do painel (style.css o redefine) */
    --neg:  #E5706B;
    --warn: #CFA13E;

    --brand:      #3CE6A0;
    --brand-dim:  #1C8A63;
    --brand-glow: rgba(60, 230, 160, .16);
    --brand-soft: rgba(60, 230, 160, .10);

    --r:    18px;
    --r-md: 12px;
    --r-sm: 9px;

    /* A fonte e a do painel: Inter na interface, Geist Mono no numero.
       Hierarquia por PESO e TAMANHO, nunca por troca de familia. */
    --ui:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --brand-deep:   #10231B;
    --brand-deep-2: #0B1A14;

    --shadow:      0 1px 2px rgba(0,0,0,.4), 0 18px 44px -26px rgba(0,0,0,.85);
    --shadow-lift: 0 1px 2px rgba(0,0,0,.45), 0 34px 70px -34px rgba(0,0,0,.95);

    --wrap: 1200px;
    --gut:  clamp(20px, 5vw, 44px);
    --sect: clamp(76px, 10vw, 136px);

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--ui);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* luz ambiente + grão: a mesma camada do painel, zero imagem */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(58% 42% at 88% -4%, var(--brand-glow), transparent 72%),
        radial-gradient(48% 38% at 6% 8%, rgba(120,140,255,.05), transparent 70%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .022;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.08;
    text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

::selection { background: rgba(60, 230, 160, .26); color: #fff; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: var(--gut);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.num {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

section { padding-block: var(--sect); position: relative; }

/* costura acesa: 1px com um radial no meio. É o separador de seção da
   referência (lá em ciano, aqui no verde da marca). Custa nada e lê como
   uma emenda iluminada em vez de uma linha morta. */
.rule {
    height: 1px;
    background: radial-gradient(48% 48%, var(--brand) 0%, transparent 100%);
    opacity: .5;
}

/* ---------- tipografia de seção ---------- */
.h2 { font-size: clamp(28px, 4.3vw, 44px); }
.h3 { font-size: clamp(20px, 2.5vw, 25px); letter-spacing: -.03em; }

.lead {
    color: var(--text-2);
    font-size: clamp(16px, 1.9vw, 19px);
    line-height: 1.6;
    max-width: 62ch;
}

/* cabeçalho de seção: centralizado, coluna estreita, como na referência */
.sect-head {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: clamp(40px, 5.2vw, 64px);
    text-align: center;
}
.sect-head .lead { margin-top: 18px; margin-inline: auto; }

.caption {
    color: var(--text-3);
    font-size: 12.5px;
    line-height: 1.5;
    letter-spacing: .005em;
}

/* ---------- botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    white-space: nowrap;
    font-family: inherit;
    font-size: clamp(14.5px, 1.4vw, 15.5px);
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1;
    padding: 15px 24px;
    border-radius: 11px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: filter .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), transform .06s;
}

.btn:active { transform: translateY(.5px); }

.btn-primary {
    background: linear-gradient(180deg, #33DD97, #1FAE76);
    color: #06130C;
    border-color: rgba(60, 230, 160, .5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 26px -12px var(--brand-glow);
}
.btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 16px 34px -10px var(--brand-glow);
}

.btn-ghost {
    background: rgba(255,255,255,.03);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: #4A4A55; }

.btn-sm { padding: 11px 17px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 17px 27px; font-size: 16px; border-radius: 12px; }

/* secundario CLARO, do topo */
.btn-quiet {
    background: rgba(255,255,255,.07);
    color: var(--text);
    border-color: rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.btn-quiet:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }

/* solido CLARO: e o primario do painel (#F4F4F5 com texto #16161B) */
.btn-light {
    background: linear-gradient(180deg, #FFFFFF, #E8E8EA);
    color: #16161B;
    border-color: rgba(255,255,255,.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 22px -14px rgba(0,0,0,.9);
}
.btn-light:hover { filter: brightness(1.03); }

/* secundario ESCURO da mesma familia do verde, da hero */
.btn-deep {
    background: linear-gradient(180deg, var(--brand-deep), var(--brand-deep-2));
    color: #DCF6EA;
    border-color: rgba(60,230,160,.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.btn-deep:hover { border-color: rgba(60,230,160,.4); color: #E6FAF1; }


/* ==========================================================================
   TOPO + HERO  (refeitos em 2026-09-25)
   Composição centralizada: pílula → headline gigante → subtexto → dois botões
   empilhados, com um feixe de luz vertical subindo atrás e o painel aparecendo
   ainda na primeira dobra. Fonte é a da casa: Inter em tudo, Geist Mono só em
   número de métrica. Hierarquia por PESO e TAMANHO, nunca por troca de família.
   ========================================================================== */

/* ---------- topo ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease);
}

/* nasce transparente em cima do feixe; ganha vidro assim que a página rola */
.nav.stuck {
    background: rgba(11, 11, 14, .82);
    border-bottom-color: var(--border);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.nav-in {
    position: relative;
    display: flex;
    align-items: center;
    gap: 26px;
    height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }

.brand-tok {
    width: 34px; height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #12241C, #0C1613);
    border: 1px solid rgba(60,230,160,.24);
    box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 6px 18px -8px rgba(60,230,160,.4), inset 0 1px 0 rgba(255,255,255,.07);
}
.brand-tok svg { width: 19px; height: 19px; color: var(--brand); }

.wm { font-weight: 700; font-size: 16px; letter-spacing: -.03em; }
.wm-d { color: var(--text); font-weight: 600; }
.wm-r { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
    color: var(--text-2);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: -.008em;
    padding: 9px 13px;
    border-radius: 9px;
    transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }

.nav-acts { display: flex; align-items: center; gap: 9px; margin-left: auto; flex: 0 0 auto; }

/* hambúrguer (só no celular) */
.burger {
    display: none;
    margin-left: auto;
    width: 42px; height: 42px;
    padding: 0;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
}
.burger span {
    position: absolute;
    left: 11px;
    width: 18px; height: 1.6px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .26s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* menu de tela cheia */
.menu-mob {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    padding: 96px var(--gut) 44px;
    background: rgba(11,11,14,.96);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    opacity: 0;
    transition: opacity .24s var(--ease);
}
.menu-mob[hidden] { display: none; }
.menu-mob.open { opacity: 1; }
.menu-mob nav { display: flex; flex-direction: column; gap: 2px; }
.menu-mob nav a {
    font-size: clamp(26px, 7.4vw, 34px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.34;
    color: var(--text);
    padding: 5px 0;
}
.menu-mob nav a:active { color: var(--brand); }
.menu-mob-acts { display: flex; flex-direction: column; gap: 10px; }
.menu-mob-acts .btn { width: 100%; }
body.locked { overflow: hidden; }

/* ==========================================================================
   HERO — centralizada (decisão do dono em 25/09: o texto da hero não
   descentraliza). Pílula → headline → sub → botões lado a lado → selos, tudo
   no eixo, e o painel subindo colado embaixo. Nenhuma altura travada em px:
   a headline ainda está sendo escolhida entre 3 e o bloco aguenta as três.
   ========================================================================== */
.hero {
    position: relative;
    isolation: isolate;
    text-align: center;
    padding: clamp(118px, 14vh, 150px) 0 clamp(70px, 9vh, 110px);
    overflow: hidden;
}

/* ---- fundo em camadas ---- */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* vídeo e canvas dividem o mesmo lugar: o canvas é o plano B do vídeo */
.hero-bg-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 100%;
    display: block;
}

/* O vídeo é fundo, não espetáculo: entra abaixo de meia força e só depois
   que o primeiro quadro existe (.has-video é o JS confirmando o 'playing'). */
.hero-bg-video { opacity: 0; transition: opacity .9s var(--ease); }
.hero-bg.has-video .hero-bg-video { opacity: .55; }
.hero-bg.has-video #hero-canvas { opacity: 0; }
#hero-canvas { transition: opacity .5s linear; }

/* luz ambiente fixa: existe antes do JS e sobrevive a ele */
.hero-bg-wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(46% 38% at 50% 104%, rgba(60,230,160,.14), transparent 72%),
        radial-gradient(60% 40% at 88% -6%, rgba(60,230,160,.05), transparent 70%);
}

.hero-bg-noise {
    position: absolute;
    inset: 0;
    opacity: .05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* O scrim protege a faixa onde o texto mora (o terço de cima) e solta na
   base, onde o fundo tem que aparecer. Não é chapado: chapado mata o fundo.
   Na dúvida, MAIS forte em cima, nunca mais fraco (regra 24 do dono). */
.hero-bg-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(11,11,14,.96) 0%,
            rgba(11,11,14,.80) 26%,
            rgba(11,11,14,.46) 50%,
            rgba(11,11,14,.10) 72%,
            rgba(11,11,14,0)   88%,
            rgba(11,11,14,.55) 100%),
        radial-gradient(52% 44% at 50% 40%, rgba(11,11,14,.55), transparent 100%);
}
/* o vídeo pede um pouco mais de proteção que o canvas, que já nasce apagado em cima */
.hero-bg.has-video .hero-bg-scrim {
    background:
        linear-gradient(to bottom,
            rgba(11,11,14,.97) 0%,
            rgba(11,11,14,.86) 28%,
            rgba(11,11,14,.56) 52%,
            rgba(11,11,14,.18) 74%,
            rgba(11,11,14,.06) 90%,
            rgba(11,11,14,.6) 100%),
        radial-gradient(56% 46% at 50% 40%, rgba(11,11,14,.6), transparent 100%);
}

/* ================= o conteúdo ================= */
.hero-in {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
}

/* pílula de vidro com ícone, em caixa alta */
.pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 clamp(22px, 2.6vw, 30px);
    padding: 8px 17px;
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.11);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.09),
        0 1.81px 1.81px -1.25px rgba(0,0,0,.18),
        0 6.87px 6.87px -2.5px rgba(0,0,0,.16),
        0 30px 30px -3.75px rgba(0,0,0,.06);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text);
}
.pill svg { width: 14px; height: 14px; color: var(--brand); flex: 0 0 14px; }
.pill .fb { width: 15px; height: 15px; color: #E4E4E7; }

/* varredura de luz na borda: uma máscara que passa a cada 5s */
.pill::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: var(--brand);
    opacity: .55;
    -webkit-mask-image: linear-gradient(to right, transparent 30%, #000 50%, transparent 70%);
    mask-image: linear-gradient(to right, transparent 30%, #000 50%, transparent 70%);
    -webkit-mask-size: 150% auto;
    mask-size: 150% auto;
    animation: varre 5s ease-in-out infinite;
    pointer-events: none;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
@keyframes varre {
    from { -webkit-mask-position: 200% center; mask-position: 200% center; }
    to   { -webkit-mask-position: -100% center; mask-position: -100% center; }
}

/* A headline em escala de cartaz, centralizada. ch no limite, balance na
   quebra: cresce ou encolhe sem virar outro layout. */
.hero-h {
    font-size: clamp(30px, 3.2vw, 45px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.04em;
    max-width: 46ch;
    margin: 0;
    text-wrap: balance;
    color: var(--text);
}
.hero-h b { font-weight: 600; color: var(--brand); }

.hero-sub {
    margin: clamp(20px, 2.4vw, 28px) auto 0;
    max-width: 74ch;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.6;
    color: rgba(244, 244, 245, .72);
}

/* botões lado a lado, no eixo */
.hero-cta {
    margin-top: clamp(28px, 3.2vw, 38px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.hero-cta .btn { min-width: 0; }

.btn-pill {
    border-radius: 999px;
    padding: 9px 9px 9px 24px;
    gap: 14px;
    font-size: 15.5px;
}
.btn-pill .chip {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    transition: transform .22s var(--ease);
}
.btn-pill .chip svg { width: 15px; height: 15px; }
.btn-pill:hover .chip { transform: translate(2px, -2px); }
.btn-primary .chip { background: rgba(4, 22, 14, .18); color: #06130C; }
.btn-deep .chip { background: rgba(60, 230, 160, .14); color: var(--brand); }

.hero-note {
    margin-top: clamp(20px, 2.4vw, 26px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    color: var(--text-3);
    font-size: 13.5px;
}
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); flex: 0 0 5px; }

/* o painel não espera a vez: sobe por cima do pé da hero */
.demo-strip { margin-top: clamp(-120px, -9vw, -64px); z-index: 1; }

/* ---------- celular: layout próprio, não desktop espremido ---------- */
@media (max-width: 900px) {
    .nav-links, .nav-acts { display: none; }
    .burger { display: block; }
    .nav-in { height: 66px; }
    .hero { padding-top: 108px; padding-bottom: clamp(56px, 8vh, 90px); }
    .hero-h { max-width: 100%; letter-spacing: -.04em; }
    .hero-sub { max-width: 100%; }
    /* .demo-strip na frente de propósito: sem esse peso o sangramento de
       104vw voltava a valer no celular (barra horizontal). */
    .demo-strip .demo-bleed { width: 100%; margin-left: 0; transform: none; padding-inline: var(--gut); }
    .demo-strip { margin-top: -40px; }
}

@media (max-width: 620px) {
    .hero { padding-top: 96px; }
    .hero-h { font-size: clamp(27px, 7.4vw, 36px); line-height: 1.1; }
    .hero-sub { font-size: 15.5px; }
    .hero-cta { gap: 10px; }
    .hero-cta .btn { width: 100%; }
    .btn-pill { justify-content: space-between; }
    .pill { font-size: 10.5px; letter-spacing: .1em; padding: 7px 14px; }
    .demo-strip { margin-top: -28px; }
}

/* ----------------------------------------------------------------------
   O painel sai de dentro da hero e vira a âncora visual: grande, sangrando
   pelas laterais, já aparecendo na primeira dobra. Continua sendo a interface
   recriada em HTML (não é print), então fica RETA — nada de inclinar em 3D,
   que borraria o texto e mataria as abas que funcionam de verdade.
   ---------------------------------------------------------------------- */
.demo-strip {
    position: relative;
    padding: 0 0 clamp(56px, 8vw, 104px);
    /* a janela chega levemente deitada e se endireita conforme sobe na tela.
       A perspectiva mora no PAI pra não achatar quando o filho é escalado. */
    perspective: 1800px;
    perspective-origin: 50% 0%;
}
.demo-bleed .app {
    transform-origin: 50% 0%;
    /* --tilt vai de 1 (deitada) a 0 (reta); quem escreve é o app.js */
    transform:
        rotateX(calc(var(--tilt, 0) * 7deg))
        scale(calc(1 - var(--tilt, 0) * .035));
    will-change: transform;
}
.demo-bleed {
    /* mais largo que a janela de proposito: o painel sangra pelos DOIS lados.
       margin-inline:auto nao centraliza o que e mais largo que o pai -> 50%+translate. */
    width: min(1560px, 104vw);
    margin-left: 50%;
    transform: translateX(-50%);
    padding-inline: clamp(20px, 3vw, 44px);
}
.demo-strip .panel {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 -30px 90px -40px rgba(60,230,160,.35),
        0 70px 150px -60px rgba(0,0,0,1);
}

/* ---------- celular: hero é layout próprio, não desktop espremido ---------- */

/* ==========================================================================
   A DEU ROI POR DENTRO — recriação fiel do painel, em HTML
   Não é print e não é ilustração: são as MESMAS classes, tokens, raios,
   sombras e espaçamentos de Dashboard/public/assets/style.css e
   campaigns-manager.css, reescritos aqui escopados em .app para não
   brigar com o resto da landing. Todo dado é inventado e rotulado.

   Regras do painel que valem aqui (as que o fazem parecer ele mesmo):
   · borda é SEMPRE 1px var(--border); --border-strong só em hover/total
   · todo card carrega realce interno no topo: inset 0 1px 0 rgba(255,255,255,.045)
   · fundo de card é degradê vertical (surface-2 -> surface), nunca chapado
   · número do home é Geist Mono tabular; número da tabela de campanhas é Inter tabular
   · rótulo tem 2 registros: 12px suave / 11px caixa-alta .04em
   · cor só no DADO: Faturamento e Tráfego nunca são coloridos
   · verde é sinal, não preenchimento: tinta 12-14% + borda 40% + texto cheio
   ========================================================================== */

.app {
    --app-r:   16px;
    --app-r14: 14px;
    --app-r12: 12px;
    --app-r9:  9px;
    --ink-bg:  #F4F4F5;
    --ink-fg:  #16161B;
    --ico-bg:  rgba(255,255,255,.05);
    --sh:      0 1px 2px rgba(0,0,0,.35), 0 14px 34px -20px rgba(0,0,0,.7);

    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--app-r);
    background: var(--surface);
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.055),
        0 -30px 90px -46px rgba(60,230,160,.32),
        0 70px 150px -60px rgba(0,0,0,1);
    font-size: 14px;
    line-height: 1.45;
}

/* barra da janela */
.app-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 40px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.app-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); flex: 0 0 9px; }
.app-url {
    margin-left: 10px;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-3);
    font-size: 11.5px;
    letter-spacing: .01em;
}
.app-chrome .app-demo {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-3);
}

.app-body { display: flex; align-items: stretch; min-height: 0; }

/* ---------------- sidebar ---------------- */
.app-side {
    flex: 0 0 214px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 13px;
    background: var(--surface);
    border-right: 1px solid var(--border);
}
.app-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 8px 16px;
    font-size: 15px; font-weight: 600; letter-spacing: -.02em;
}
.app-mark {
    width: 28px; height: 28px; flex: 0 0 28px;
    border-radius: 9px; display: grid; place-items: center;
    color: var(--brand);
    background: linear-gradient(160deg, #12241C, #0C1613);
    border: 1px solid rgba(60,230,160,.24);
    box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 6px 16px -8px rgba(60,230,160,.4), inset 0 1px 0 rgba(255,255,255,.07);
}
.app-mark svg { width: 17px; height: 17px; }
.app-wm b { color: var(--text-2); font-weight: 600; }
.app-wm i { color: var(--brand); font-style: normal; }

.app-nav { display: flex; flex-direction: column; gap: 3px; }
.app-nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 8px 10px;
    border-radius: var(--app-r9);
    color: var(--text-2);
    font-size: 13px;
    white-space: nowrap;
}
/* estado ativo é TROCA DE FUNDO, nunca barra lateral nem borda */
.app-nav-item.on { background: var(--surface-hover); color: var(--text); }
.app-nav-item.on .app-nav-ico { color: var(--text); }
.app-nav-ico { display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 17px; color: var(--text-3); }
.app-nav-ico svg { width: 17px; height: 17px; }

.app-side-foot {
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--border);
}
.app-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.app-ava {
    width: 28px; height: 28px; flex: 0 0 28px;
    border-radius: 9px; display: grid; place-items: center;
    font-size: 12px; font-weight: 600;
    color: #06130C;
    /* o avatar do painel é um token cônico verde, não um quadrado branco */
    background: conic-gradient(from 210deg, #256045, #3CE6A0, #1C8A63, #256045);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.app-user span { font-size: 13px; font-weight: 500; color: var(--text); }

/* ---------------- main ---------------- */
.app-main { flex: 1 1 auto; min-width: 0; padding: 22px 22px 24px; }

.app-topbar {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 18px; flex-wrap: wrap; margin-bottom: 20px;
}
.app-h1 { margin: 0 0 5px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; color: var(--text); line-height: 1.2; }
.app-subt { margin: 0; color: var(--text-2); font-size: 13px; }

/* seletor: mesmo .seg-group do painel */
.app-seg {
    display: inline-flex;
    padding: 3px; gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--app-r9);
}
.app-seg button {
    padding: 7px 15px;
    background: transparent; color: var(--text-2);
    border: 0; border-radius: 7px;
    font-family: inherit; font-size: 13px; font-weight: 500;
    cursor: pointer;
    transition: background .15s var(--ease), color .15s var(--ease);
    white-space: nowrap;
}
.app-seg button:hover { color: var(--text); }
.app-seg button[aria-selected="true"] { background: var(--surface-hover); color: var(--text); }

/* ---------------- faixa de 6 métricas ---------------- */
/* a landing dá padding a todo <section>; dentro da janela do app, não. */
.app section { padding-block: 0; }

.app-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.app-kpi {
    position: relative;
    min-width: 0;
    padding: 14px 16px 13px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--app-r14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03), var(--sh);
    overflow: hidden;
}
/* trilho de acento à esquerda: 3px, recuado 14px em cima e embaixo */
.app-kpi::before {
    content: '';
    position: absolute; left: 0; top: 14px; bottom: 14px;
    width: 3px; border-radius: 0 3px 3px 0;
    background: var(--border-strong); opacity: .6;
    transition: background .4s var(--ease), opacity .4s var(--ease);
}
.app-kpi.is-pos::before  { background: var(--pos);  opacity: 1; }
.app-kpi.is-neg::before  { background: var(--neg);  opacity: 1; }
.app-kpi.is-warn::before { background: var(--warn); opacity: 1; }

.app-kpi-lbl {
    display: block;
    margin-bottom: 8px;
    font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--text-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-kpi-val {
    font-family: var(--ui);           /* na tela de Campanhas o número é Inter, não mono */
    font-variant-numeric: tabular-nums;
    font-size: clamp(15px, 1.35vw, 22px);
    font-weight: 600; letter-spacing: -.03em; line-height: 1.05;
    color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color .4s var(--ease);
}
.app-kpi-val .cur {
    font-size: .58em; font-weight: 600; color: var(--text-3);
    margin-right: 3px; letter-spacing: 0; vertical-align: .18em;
    transition: color .4s var(--ease);
}
.app-kpi.is-pos  .app-kpi-val, .app-kpi.is-pos  .app-kpi-val .cur { color: var(--pos); }
.app-kpi.is-neg  .app-kpi-val, .app-kpi.is-neg  .app-kpi-val .cur { color: var(--neg); }
.app-kpi.is-warn .app-kpi-val, .app-kpi.is-warn .app-kpi-val .cur { color: var(--warn); }
.app-kpi.is-off  .app-kpi-val { color: var(--text-3); }

/* a sublinha cinza: é ela que mostra o que a Meta diz do lado do que é real */
.app-kpi-sub {
    margin-top: 7px;
    font-size: 11.5px; color: var(--text-3);
    font-variant-numeric: tabular-nums;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-kpi-meter { margin-top: 8px; }
.app-kpi-bar {
    display: block; height: 4px; border-radius: 4px;
    background: var(--surface-hover); position: relative; overflow: hidden; margin-bottom: 6px;
}
.app-kpi-bar::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: var(--w, 0%); border-radius: 4px; background: var(--pos);
    transition: width .6s var(--ease);
}
.app-kpi-meter .app-kpi-sub { margin-top: 0; }

/* ---------------- tabela de campanhas ---------------- */
.app-tablewrap {
    border: 1px solid var(--border);
    border-radius: var(--app-r14);
    background: var(--surface);
    box-shadow: var(--sh);
    overflow-x: auto;
}
table.app-table {
    width: 100%; min-width: 660px;
    border-collapse: separate; border-spacing: 0;
    font-size: 13px;
}
table.app-table th {
    height: 42px; padding: 0 12px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--text-3); line-height: 1.2;
    text-align: left; vertical-align: middle; white-space: nowrap;
}
table.app-table th.r { text-align: right; }
table.app-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    background: var(--surface);
    color: var(--text);
}
table.app-table tbody tr:last-child td { border-bottom: 0; }
table.app-table tbody tr:hover td { background: var(--surface-hover); }
table.app-table td.r { text-align: right; }
table.app-table td.n {
    font-family: var(--ui);           /* Inter tabular, como na tela real */
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
    white-space: nowrap;
}
table.app-table td.n .cur { font-size: 10px; color: var(--text-3); margin-right: 1px; font-weight: 500; }
table.app-table td.pos, table.app-table td.pos .cur { color: var(--pos); }
table.app-table td.neg, table.app-table td.neg .cur { color: var(--neg); }
table.app-table tfoot td {
    background: var(--surface-2);
    border-top: 1px solid var(--border-strong);
    border-bottom: 0;
    font-weight: 600;
}

.app-name { display: flex; align-items: center; gap: 9px; min-width: 0; line-height: 1.3; }
.app-name-txt {
    flex: 1 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-weight: 600; font-size: 13px; color: var(--text); letter-spacing: -.005em;
}
.app-ctx {
    margin-top: 4px;
    font-size: 12px; color: var(--text-3);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* o interruptor: 30x17, botão de 13px que anda 13px, e fica VERDE ligado */
.app-tgl {
    flex: 0 0 auto;
    width: 30px; height: 17px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    position: relative; cursor: pointer;
    transition: background .15s var(--ease), border-color .15s var(--ease);
}
.app-tgl-thumb {
    position: absolute; top: 1px; left: 1px;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--text-3);
    transition: transform .15s var(--ease), background .15s var(--ease);
}
.app-tgl.on { background: color-mix(in srgb, var(--pos) 26%, transparent); border-color: var(--pos); }
.app-tgl.on .app-tgl-thumb { background: var(--pos); transform: translateX(13px); }

/* pílula de ROAS da tabela */
.app-roas {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; height: 22px; padding: 0 8px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 600;
}
.app-roas.pos  { background: color-mix(in srgb, var(--pos) 14%, transparent);  color: var(--pos); }
.app-roas.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.app-roas.neg  { background: color-mix(in srgb, var(--neg) 14%, transparent);  color: var(--neg); }

/* orçamento: valor sublinhado tracejado + chip do tipo */
.app-budget { border-bottom: 1px dashed color-mix(in srgb, var(--text-3) 60%, transparent); }
.app-bkind {
    font-size: 9.5px; font-weight: 600; letter-spacing: .03em;
    padding: 0 4px; margin-left: 5px;
    border-radius: 4px;
    background: var(--surface-2); color: var(--text-3);
}

.app-foot {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 14px;
}
.app-flag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 11px; border-radius: 999px;
    font-size: 12px;
    color: var(--neg);
    border: 1px solid color-mix(in srgb, var(--neg) 40%, transparent);
    background: color-mix(in srgb, var(--neg) 12%, transparent);
}
.app-flag svg { width: 13px; height: 13px; }

/* ---------------- celular ---------------- */
@media (max-width: 1080px) {
    .app-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .app-side { display: none; }              /* no celular o painel real também recolhe a barra */
    .app-main { padding: 16px 14px 18px; }
    .app-chrome { height: 36px; padding: 0 11px; }
    .app-url { font-size: 10.5px; padding: 2px 9px; }
}
@media (max-width: 620px) {
    .app-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .app-kpi { padding: 12px 12px 11px; border-radius: var(--app-r12); }
    .app-h1 { font-size: 18px; }
    .app-topbar { margin-bottom: 15px; }
    .app-seg { width: 100%; }
    .app-seg button { flex: 1; padding: 8px 6px; font-size: 12.5px; }
    .app-chrome .app-demo { display: none; }
}

/* ---------- painel de demonstração ---------- */
.panel {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), var(--shadow-lift);
    overflow: hidden;
}

.panel-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.015);
}

.panel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); flex: 0 0 9px; }

.panel-title {
    font-size: 12.5px;
    color: var(--text-3);
    font-weight: 500;
    letter-spacing: -.01em;
    margin-left: 4px;
}
.panel-title b { color: var(--text-2); font-weight: 600; }

.panel-body { padding: clamp(14px, 2.4vw, 20px); }

/* segmented control */
.seg {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 11px;
    width: 100%;
}
.seg button {
    flex: 1 1 0;
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-3);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.012em;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: color .18s, background .18s, border-color .18s;
    white-space: nowrap;
}
.seg button:hover { color: var(--text-2); }
.seg button[aria-selected="true"] {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    color: var(--text);
}
.seg button[aria-selected="true"].on-brand { color: var(--brand); border-color: rgba(60,230,160,.3); }

/* stats */
.stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.stat {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 13px;
    min-width: 0;
}
.stat-label {
    font-size: 11.5px;
    color: var(--text-3);
    font-weight: 500;
    letter-spacing: -.005em;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-val {
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .35s var(--ease);
}
.stat-val.pos { color: var(--pos); }
.stat-val.neg { color: var(--neg); }
.stat-val.muted { color: var(--text-3); font-size: clamp(13px, 1.8vw, 15px); font-weight: 500; letter-spacing: -.01em; }
.stat-sub { margin-top: 5px; font-size: 11.5px; color: var(--text-3); }

/* tabela de campanhas recriada */
.tbl-scroll {
    margin-top: 14px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-soft);
    -webkit-overflow-scrolling: touch;
}

table.mini {
    width: 100%;
    min-width: 440px;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
}
table.mini th {
    text-align: right;
    font-weight: 500;
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: 10px 10px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
table.mini th:first-child, table.mini td:first-child { text-align: left; }
table.mini td {
    text-align: right;
    padding: 11px 10px;
    border-bottom: 1px solid rgba(38,38,46,.6);
    color: var(--text-2);
    white-space: nowrap;
}
table.mini tr:last-child td { border-bottom: 0; }
table.mini td.name {
    color: var(--text);
    font-weight: 500;
    letter-spacing: -.015em;
    line-height: 1.3;
}
table.mini td.v { transition: color .35s var(--ease); }
table.mini td.pos { color: var(--pos); }
table.mini td.neg { color: var(--neg); }

.tbl-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.flag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(229,112,107,.28);
    background: rgba(229,112,107,.08);
    color: #F0908B;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.flag.show { opacity: 1; transform: none; }

/* ---------- a conta que some (waterfall) ---------- */
.waterfall {
    display: grid;
    gap: 9px;
    margin-top: 6px;
}

.wf-line {
    display: grid;
    grid-template-columns: minmax(150px, 1.3fr) minmax(0, 1.5fr) minmax(92px, auto);
    gap: clamp(10px, 2vw, 18px);
    align-items: center;
}
.wf-line .k { font-size: 13.5px; color: var(--text-2); letter-spacing: -.01em; }
.wf-line .k small { display: block; color: var(--text-3); font-size: 11.5px; letter-spacing: 0; }
.wf-line .v { text-align: right; font-size: 14.5px; font-weight: 600; color: var(--text-2); }

.wf-bar {
    position: relative;
    height: 12px;
    border-radius: 6px;
    background: rgba(255,255,255,.035);
    overflow: hidden;
}
.wf-bar i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: 6px;
    transition: width .9s var(--ease);
}
.wf-bar.gross i  { background: linear-gradient(90deg, #4A4A55, #6B6B78); }
.wf-bar.cut i    { background: linear-gradient(90deg, rgba(229,112,107,.5), rgba(229,112,107,.85)); }
.wf-bar.spend i  { background: linear-gradient(90deg, rgba(207,161,62,.45), rgba(207,161,62,.8)); }
.wf-bar.profit i { background: linear-gradient(90deg, #1FAE76, var(--brand)); }

.wf-line.total .k, .wf-line.total .v { color: var(--text); font-weight: 600; }
.wf-line.total .v { color: var(--brand); font-size: clamp(17px, 2.4vw, 21px); }
.wf-sep { height: 1px; background: var(--border); margin: 4px 0; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: start;
}

/* ---------- blocos de diferencial ---------- */
.feat { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.feat-copy { max-width: 540px; }
.feat h2 { font-size: clamp(26px, 3.7vw, 38px); }
.feat .lead { margin-top: 18px; font-size: clamp(15.5px, 1.8vw, 17.5px); }

.ticks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.5;
}
.ticks li b { color: var(--text); font-weight: 600; }
.tick {
    width: 20px; height: 20px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    border: 1px solid rgba(60,230,160,.22);
    margin-top: 1px;
}
.tick svg { width: 12px; height: 12px; color: var(--brand); }

/* trava de orçamento */
.budget-now {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.budget-val { font-size: clamp(26px, 4vw, 34px); font-weight: 600; letter-spacing: -.04em; }
.budget-val.blocked { color: var(--neg); }

.range-wrap { margin-top: 18px; }

input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 26px;
    background: transparent;
    cursor: pointer;
    margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 5px;
    background: var(--track, rgba(255,255,255,.06));
}
input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 5px;
    background: var(--track, rgba(255,255,255,.06));
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    margin-top: -6px;
    border-radius: 50%;
    background: #F4F4F5;
    border: 3px solid #0B0B0E;
    box-shadow: 0 0 0 1px var(--border-strong), 0 4px 12px -2px rgba(0,0,0,.8);
}
input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #F4F4F5;
    border: 3px solid #0B0B0E;
    box-shadow: 0 0 0 1px var(--border-strong), 0 4px 12px -2px rgba(0,0,0,.8);
}

.range-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 9px;
    font-size: 11.5px;
    color: var(--text-3);
}

.lock-msg {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: var(--r-md);
    font-size: 13px;
    line-height: 1.45;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text-2);
    transition: border-color .2s, background .2s, color .2s;
}
.lock-msg svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--text-3); }
.lock-msg.hit {
    border-color: rgba(229,112,107,.4);
    background: rgba(229,112,107,.08);
    color: #F0908B;
}
.lock-msg.hit svg { color: #F0908B; }

.log { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.log h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 600; margin-bottom: 11px; }
.log ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.log li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    font-size: 12.5px;
    color: var(--text-3);
}
.log .mv { color: var(--text-2); font-weight: 500; }
.log .mv b { color: var(--text); font-weight: 600; }
.log .who { color: var(--text-2); }

/* launcher */
.queue { display: grid; gap: 8px; }
.q-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-soft);
    transition: border-color .3s var(--ease), background .3s var(--ease);
}
.q-item.done { border-color: rgba(60,230,160,.22); background: rgba(60,230,160,.045); }
.q-thumb {
    width: 26px; height: 34px;
    border-radius: 5px;
    background: linear-gradient(160deg, #2A2A33, #191920);
    border: 1px solid var(--border-strong);
    display: grid;
    place-items: center;
}
.q-thumb svg { width: 12px; height: 12px; color: var(--text-3); }
.q-name { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.q-name small { display: block; color: var(--text-3); font-size: 11px; }

.q-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12.5px;
    color: var(--text-3);
}
.q-head b { color: var(--text-2); font-weight: 600; }

/* whatsapp */
.wa {
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lift);
    max-width: 420px;
}
.wa-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    background: #1F2C33;
}
.wa-av {
    width: 36px; height: 36px;
    border-radius: 50%;
    flex: 0 0 36px;
    background: linear-gradient(160deg, #3A4A52, #27353C);
    display: grid;
    place-items: center;
    color: #A7BDC7;
    font-size: 13px;
    font-weight: 600;
}
.wa-who { flex: 1 1 auto; min-width: 0; }
.wa-who b { display: block; font-size: 14px; color: #E9EDEF; font-weight: 600; letter-spacing: -.01em; }
.wa-who span { font-size: 11.5px; color: #8696A0; }
.wa-ico { display: flex; gap: 16px; color: #8696A0; }
.wa-ico svg { width: 17px; height: 17px; }

.wa-body {
    padding: 16px 12px 18px;
    background-color: #0D1418;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.05' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M14 20c4-6 10-6 14 0'/%3E%3Ccircle cx='86' cy='26' r='7'/%3E%3Cpath d='M30 62h14M37 55v14'/%3E%3Cpath d='M70 70l8 8 12-14'/%3E%3Cpath d='M20 96c6-8 14-8 20 0'/%3E%3Crect x='84' y='88' width='14' height='14' rx='3'/%3E%3Cpath d='M56 30l6 10h-12z'/%3E%3C/g%3E%3C/svg%3E");
    display: grid;
    gap: 9px;
    min-height: 330px;
    align-content: start;
}

.bub {
    max-width: 82%;
    padding: 7px 10px 6px;
    border-radius: 9px;
    font-size: 13.6px;
    line-height: 1.42;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,.28);
}
.js .bub {
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.js .bub.in { opacity: 1; transform: none; }
.bub .t { font-size: 10.5px; color: rgba(233,237,239,.5); float: right; margin: 6px 0 0 8px; display: inline-flex; align-items: center; gap: 3px; }
.bub .t svg { width: 13px; height: 13px; }

.bub.out { justify-self: end; background: #005C4B; color: #E9EDEF; border-top-right-radius: 3px; }
.bub.out .t svg { color: #53BDEB; }
.bub.in-msg { justify-self: start; background: #202C33; color: #E9EDEF; border-top-left-radius: 3px; }

.wa-foot {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    background: #1F2C33;
    color: #8696A0;
    font-size: 12px;
}
.wa-foot .fake-input {
    flex: 1 1 auto;
    background: #2A3942;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12.5px;
}

/* ==========================================================================
   BENTO — mosaico de recursos
   Cards de tamanhos diferentes, cada um com um pedaço VIVO do produto
   rodando dentro (não imagem parada). Os fragmentos usam as mesmas classes
   .app-* do painel, então o que anima é o produto, não uma ilustração.
   ========================================================================== */
.bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}
.bcard {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px 22px 0;
    border: 1px solid var(--border);
    border-radius: var(--r);
    /* o ponto quente do radial muda de card pra card (abaixo): é o que impede
       seis cards com a mesma receita de parecerem clonados. */
    background: radial-gradient(79.24% 61.01% at 18.9% 66.6%, #11241D 0%, #0C0F0F 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), var(--shadow);
    overflow: hidden;
    transition: border-color .2s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.bento > .bcard:nth-child(1) { background: radial-gradient(79.24% 61.01% at 16.6% 32.1%, #11241D 0%, #0C0F0F 100%); }
.bento > .bcard:nth-child(2) { background: radial-gradient(79.24% 61.01% at 78.0% 18.0%, #10221C 0%, #0C0F0F 100%); }
.bento > .bcard:nth-child(3) { background: radial-gradient(79.24% 61.01% at 21.8% 17.1%, #101F1A 0%, #0C0F0F 100%); }
.bento > .bcard:nth-child(4) { background: radial-gradient(79.24% 61.01% at 12.0% 74.0%, #11241D 0%, #0C0F0F 100%); }
.bento > .bcard:nth-child(5) { background: radial-gradient(79.24% 61.01% at 84.0% 70.0%, #0F201B 0%, #0C0F0F 100%); }

.bcard:hover { border-color: var(--border-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow-lift); }

/* um brilho de marca que só acende no card sob o cursor */
.bcard::after {
    content: '';
    position: absolute; inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s var(--ease);
    background: radial-gradient(60% 50% at 50% 0%, var(--brand-soft), transparent 70%);
}
.bcard:hover::after { opacity: 1; }

.bcard-h { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.032em; line-height: 1.2; margin: 0; }
.bcard-p { margin: 10px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.55; max-width: 52ch; }
.bcard-live { margin-top: 20px; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.bcard-live > :first-child { flex: 1 1 auto; }
/* nada é cortado a seco: a arte dissolve no piso do card */
.b-fila, .b-wa, .b-home { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 14%); mask-image: linear-gradient(0deg, transparent 0%, #000 14%); }

.b-wide { grid-column: span 4; grid-row: span 2; }
.b-side { grid-column: span 2; }
.b-half { grid-column: span 3; }
.b-full { grid-column: span 6; grid-row: auto; }
.bcard-live { min-width: 0; }

/* ---------- fragmento 1: a tela de projetos ---------- */
.b-home { padding: 16px 16px 18px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg-soft); }
.b-home-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.b-home-top h4 { margin: 0 0 3px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.b-home-top p { color: var(--text-2); font-size: 12.5px; }
.b-home-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); }
.b-home-seg span { padding: 5px 11px; border-radius: 7px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease); }
.b-home-seg span.on { background: var(--surface-hover); color: var(--text); }

/* um projeto por linha: com 2 por linha cada bloco de métrica ficava com
   ~65px e o valor truncava ("R$ 7.…"). No painel real cada bloco tem ~155px. */
.b-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.b-cc {
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), var(--shadow);
}
.b-cc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.b-cc-ava {
    width: 30px; height: 30px; flex: 0 0 30px;
    border-radius: 10px; display: grid; place-items: center;
    font-size: 13px; font-weight: 600; color: #06130C;
    background: conic-gradient(from 210deg, #256045, #3CE6A0, #1C8A63, #256045);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.b-cc-name { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.b-cc-sub { font-size: 11.5px; color: var(--text-3); }

.b-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 9px; }
.b-stat {
    padding: 10px 9px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    min-width: 0;
}
.b-stat-l { font-size: 11.5px; color: var(--text-2); margin-bottom: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-stat-v {
    font-family: var(--mono);            /* no home o número é Geist Mono tabular */
    font-variant-numeric: tabular-nums;
    font-size: 15px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color .45s var(--ease);
}
.b-stat-v.t2 { color: var(--text-2); }
.b-stat-v.pos { color: var(--pos); }
.b-stat-v.neg { color: var(--neg); }
.b-stat-v.warn { color: var(--warn); }

/* ---------- fragmento 2: a trava de 25% ---------- */
.b-trava { padding: 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-soft); }
.b-trava-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.b-trava-lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.b-trava-val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 600; letter-spacing: -.03em; transition: color .3s var(--ease); }
.b-trava-track {
    position: relative; height: 8px; margin: 14px 0 10px;
    border-radius: 999px; background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--border);
}
/* a faixa permitida agora: o painel mostra ANTES de você arrastar */
.b-trava-ok {
    position: absolute; top: 0; bottom: 0;
    left: 0; width: 62%;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pos) 18%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pos) 34%, transparent);
}
.b-trava-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 34%; border-radius: 999px; background: var(--pos); transition: width .5s var(--ease), background .3s var(--ease); }
.b-trava-knob {
    position: absolute; top: 50%; left: 34%;
    width: 16px; height: 16px; margin: -8px 0 0 -8px;
    border-radius: 50%; background: var(--text);
    box-shadow: 0 2px 6px rgba(0,0,0,.6);
    transition: left .5s var(--ease), background .3s var(--ease);
}
.b-trava.blocked .b-trava-knob { background: var(--neg); }
.b-trava.blocked .b-trava-fill { background: var(--neg); }
.b-trava.blocked .b-trava-val { color: var(--neg); }
.b-trava-msg { font-size: 12px; color: var(--text-3); min-height: 18px; transition: color .3s var(--ease); }
.b-trava.blocked .b-trava-msg { color: var(--neg); }

/* ---------- fragmento 3: o interruptor ---------- */
.b-tgl-wrap { padding: 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-soft); }
.b-tgl-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.b-tgl-row:last-child { border-bottom: 0; }
.b-tgl-name { flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-tgl-st { font-size: 11px; color: var(--text-3); white-space: nowrap; transition: color .3s var(--ease); }
.b-tgl-row.on .b-tgl-st { color: var(--pos); }

/* ---------- fragmento 4: a fila do Launcher ---------- */
.b-fila {
    height: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border); border-radius: var(--r-md);
    background: var(--bg-soft);
    display: flex; flex-direction: column;
}
.b-fila-foot { margin-top: auto; padding-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.b-fila-foot b { color: var(--text-2); font-weight: 600; }
.b-fila-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.b-fila-row:last-of-type { border-bottom: 0; }
.b-fila-thumb {
    width: 26px; height: 26px; flex: 0 0 26px;
    border-radius: 7px; display: grid; place-items: center;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text-3);
}
.b-fila-thumb svg { width: 13px; height: 13px; }
.b-fila-name { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-fila-st {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 9px; border-radius: 999px;
    font-size: 10.5px; font-weight: 600;
    color: var(--text-3);
    border: 1px solid var(--border-strong);
    transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
    white-space: nowrap;
}
.b-fila-row.doing .b-fila-st { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.b-fila-row.done  .b-fila-st { color: var(--pos);  border-color: color-mix(in srgb, var(--pos) 40%, transparent);  background: color-mix(in srgb, var(--pos) 12%, transparent); }
.b-fila-row.done .b-fila-thumb { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 34%, transparent); }
.b-fila-row.done .b-fila-name { color: var(--text); }

/* ---------- fragmento 5: a conversa ---------- */
.b-wa {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: #0B141A;                 /* --wa-chat do painel */
    display: flex; flex-direction: column; gap: 8px;
    min-height: 186px;
}
.b-bub {
    max-width: 82%;
    padding: 8px 11px;
    border-radius: 9px;
    font-size: 12.5px; line-height: 1.45;
    color: #E9EDEF;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .34s var(--ease), transform .34s var(--ease);
}
.b-bub.in { opacity: 1; transform: none; }
.b-bub.me  { align-self: flex-end; background: #005C4B; border-bottom-right-radius: 3px; }
.b-bub.you { align-self: flex-start; background: #202C33; border-bottom-left-radius: 3px; }
.b-bub time { display: block; margin-top: 3px; font-size: 10px; color: rgba(233,237,239,.55); text-align: right; }
.b-bub .tick { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; margin-left: 4px; color: #53BDEB; }
.b-wa-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 9px; background: #202C33; opacity: 0; transition: opacity .2s; }
.b-wa-typing.in { opacity: 1; }
.b-wa-typing i { width: 5px; height: 5px; border-radius: 50%; background: rgba(233,237,239,.6); animation: bdot 1.1s infinite; }
.b-wa-typing i:nth-child(2) { animation-delay: .18s; }
.b-wa-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes bdot { 0%,60%,100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- respiro do card ---------- */
.bcard-live > * { margin-bottom: 22px; }

/* ---------- celular ---------- */
@media (max-width: 1080px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b-wide, .b-full { grid-column: span 2; grid-row: auto; }
    .b-side, .b-half { grid-column: span 1; }
}
@media (max-width: 760px) {
    .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .b-wide, .b-side, .b-half, .b-full { grid-column: span 1; }
    .bcard { padding: 18px 16px 0; }
    .b-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bcard-live > * { margin-bottom: 18px; }
}

/* ---------- 3 passos ---------- */
.steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    counter-reset: step;
}
.step {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: clamp(20px, 2.6vw, 28px);
    position: relative;
    box-shadow: var(--shadow);
}
.step-n {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: .06em;
    display: block;
    margin-bottom: 14px;
}
.step h3 { font-size: 19px; letter-spacing: -.03em; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- comparação ---------- */
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.cmp {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    min-width: 660px;
}
table.cmp thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: -.01em;
    border-bottom: 1px solid var(--border-strong);
    vertical-align: bottom;
}
table.cmp thead th.us { color: var(--text); }
table.cmp thead th.us .wm { font-size: 15px; }
table.cmp td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    vertical-align: top;
}
table.cmp td:first-child { color: var(--text); font-weight: 500; letter-spacing: -.012em; }
table.cmp td.us {
    color: var(--text);
    background: linear-gradient(180deg, rgba(60,230,160,.05), rgba(60,230,160,.02));
    border-left: 1px solid rgba(60,230,160,.18);
    border-right: 1px solid rgba(60,230,160,.18);
    font-weight: 500;
}
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tr.lose td:first-child { color: var(--text-2); font-weight: 400; }

.yes, .no {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.yes svg { width: 15px; height: 15px; color: var(--brand); flex: 0 0 15px; }
.no  svg { width: 15px; height: 15px; color: var(--text-3); flex: 0 0 15px; }
.no { color: var(--text-3); }

/* ---------- planos ---------- */
.plan-switch {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-bottom: 34px;
}
.plan-switch button {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--text-3);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .18s, background .18s;
    white-space: nowrap;
}
.plan-switch button[aria-pressed="true"] { background: var(--surface-hover); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.plan-switch .save { color: var(--brand); font-weight: 600; }

.plans {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.plan {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: clamp(22px, 2.6vw, 28px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}
.plan.hi {
    border-color: rgba(60,230,160,.32);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(60,230,160,.08), 0 34px 70px -34px rgba(0,0,0,.95);
}

.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-name { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.plan-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid rgba(60,230,160,.22);
    border-radius: 999px;
    padding: 4px 10px;
}
.plan-for { margin-top: 8px; color: var(--text-3); font-size: 13.5px; line-height: 1.45; min-height: 38px; }

.price { margin-top: 20px; display: flex; align-items: baseline; gap: 7px; }
.price .cur { font-size: 17px; color: var(--text-2); font-weight: 500; }
.price .amt { font-size: clamp(38px, 5vw, 46px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.price .per { font-size: 14px; color: var(--text-3); }
.price-sub { margin-top: 8px; font-size: 12.5px; color: var(--text-3); min-height: 19px; }

.plan .btn { margin-top: 22px; width: 100%; }

.plan-list { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--border); display: grid; gap: 11px; }
.plan-list li {
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr);
    gap: 10px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.45;
    align-items: start;
}
.plan-list li b { color: var(--text); font-weight: 600; }
.plan-list svg { width: 15px; height: 15px; color: var(--brand); margin-top: 3px; }
.plan-list li.off svg { color: var(--text-3); opacity: .55; }
.plan-list li.off { color: var(--text-3); }

.plan-foot {
    margin-top: 28px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--bg-soft);
    display: grid;
    gap: 9px;
}
.plan-foot p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.plan-foot p b { color: var(--text); font-weight: 600; }

/* ---------- dúvidas ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
details {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .2s;
}
details[open] { border-color: var(--border-strong); background: var(--surface-2); }
summary {
    list-style: none;
    cursor: pointer;
    padding: 17px 20px;
    font-size: 15.5px;
    font-weight: 500;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary .chev {
    width: 16px; height: 16px;
    flex: 0 0 16px;
    color: var(--text-3);
    transition: transform .22s var(--ease);
}
details[open] summary .chev { transform: rotate(180deg); }
details .ans { padding: 0 20px 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; max-width: 68ch; }

/* ---------- fechamento ---------- */
.close-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(34px, 5vw, 64px);
    background:
        radial-gradient(90% 130% at 82% -20%, rgba(60,230,160,.1), transparent 62%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: var(--shadow-lift);
    text-align: left;
}
.close-card h2 { font-size: clamp(27px, 4.2vw, 42px); max-width: 21ch; }
.close-card .lead { margin-top: 18px; }
.close-card .hero-cta { margin-top: 30px; }

/* ---------- rodapé ---------- */
footer {
    border-top: 1px solid var(--border);
    padding-block: 40px 52px;
    color: var(--text-3);
    font-size: 13.5px;
}
.foot-in { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a:hover { color: var(--text-2); }

/* ==========================================================================
   DOBRAS DE PRODUTO (25/09): Launcher, WhatsApp, Atribuição, Analytics,
   Gerenciador (mosaico) e MCP. Cada fragmento reproduz a tela real do painel
   com os mesmos tokens; nada aqui é print.
   ========================================================================== */

/* ---------- moldura comum dos fragmentos ---------- */
.frag {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), var(--shadow-lift);
    overflow: hidden;
    min-width: 0;
}
.frag-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.015);
}
.frag-bar.sub { border-top: 1px solid var(--border); }
.frag-title { font-size: 12.5px; font-weight: 600; color: var(--text); letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 8px; }
.frag-title b { color: var(--text-3); font-weight: 500; }
.frag-demo { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.frag-body { padding: 16px; }
.frag .caption { margin-top: 12px; }

.feat-note { margin-top: 22px; font-size: 14px; color: var(--text-3); font-weight: 500; }
.feat-note::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--brand); vertical-align: middle; margin-right: 10px; }

/* pílula de estado reaproveitada */
.pill-st { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; border: 1px solid var(--border-strong); color: var(--text-3); font-style: normal; }
.pill-st.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.pill-st.pos  { color: var(--pos);  border-color: color-mix(in srgb, var(--pos) 40%, transparent);  background: color-mix(in srgb, var(--pos) 12%, transparent); }

.fb { width: 13px; height: 13px; vertical-align: -2px; margin-right: 6px; color: #E4E4E7; }
.app-seg button .fb { margin-right: 6px; }

/* ---------- LAUNCHER ---------- */
.lch-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 4px; }
.lch-steps li {
    flex: 1 1 0; display: flex; align-items: center; gap: 6px; min-width: 0;
    padding: 7px 7px; border-radius: 9px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 10.5px; letter-spacing: -.01em; color: var(--text-3);
    white-space: nowrap; overflow: hidden;
}
.lch-steps li span { overflow: hidden; text-overflow: ellipsis; }
.lch-steps li b { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; background: var(--surface-2); color: var(--text-3); }
.lch-steps li.ok b { background: color-mix(in srgb, var(--pos) 22%, transparent); color: var(--pos); }
.lch-steps li.on { color: var(--text); border-color: var(--border-strong); }
.lch-steps li.on b { background: var(--brand); color: #06130C; }

.lch-drop {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: 9px;
    background: var(--bg); font-size: 13px; color: var(--text-2);
}
.lch-drop small { color: var(--text-3); }
.lch-drop-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--brand); font-weight: 600; }

.lch-rows { margin-top: 10px; display: grid; gap: 6px; }
.lch-row {
    display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
    padding: 8px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-soft);
    transition: border-color .3s var(--ease), background .3s var(--ease);
}
/* miniatura do criativo: a proporção certa dentro de uma caixa fixa, com um
   degradê escuro e o ícone do formato. Nada de imagem inventada. */
.lch-thumb { position: relative; width: 42px; height: 46px; display: grid; place-items: center; }
.lch-art {
    display: block; border-radius: 4px;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 6px -2px rgba(0,0,0,.7);
    transition: border-color .3s var(--ease), filter .3s var(--ease);
}
.t-v9 .lch-art { width: 26px; height: 46px; }
.t-i1 .lch-art { width: 42px; height: 42px; }
.t-i4 .lch-art { width: 37px; height: 46px; }
.lch-row.doing .lch-art { filter: saturate(.7) brightness(.9); }
.lch-row.done .lch-art { border-color: color-mix(in srgb, var(--pos) 45%, transparent); }

.lch-name { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lch-ratio { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lch-st { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: var(--text-3); border: 1px solid var(--border-strong); white-space: nowrap; transition: all .3s var(--ease); }
.lch-row.doing .lch-st { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.lch-row.done { border-color: rgba(57,194,163,.18); background: rgba(57,194,163,.06); }
.lch-row.done .lch-st { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 40%, transparent); background: color-mix(in srgb, var(--pos) 12%, transparent); }
.lch-row.done .lch-name { color: var(--text); }

.lch-cfg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.lch-cfg > span { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 12px; color: var(--text-2); min-width: 0; overflow: hidden; }
.lch-cfg small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.lch-cfg code { font-family: var(--mono); font-size: 11px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbdot { display: inline-grid; place-items: center; width: 14px; height: 14px; vertical-align: -2px; margin-left: 4px; color: #E4E4E7; }
.fbdot svg { width: 13px; height: 13px; }

.lch-prog { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.lch-status { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); }
.lch-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(60,230,160,.5); animation: lchp 1.4s infinite; flex: 0 0 8px; }
.lch-prog.done .lch-pulse { animation: none; box-shadow: none; }
@keyframes lchp { 0% { box-shadow: 0 0 0 0 rgba(60,230,160,.5); } 100% { box-shadow: 0 0 0 8px rgba(60,230,160,0); } }
.lch-bar { margin-top: 10px; height: 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); overflow: hidden; }
.lch-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--brand-dim), var(--brand)); transition: width .5s var(--ease); }
.lch-meta { display: flex; justify-content: space-between; margin-top: 7px; font-size: 12px; color: var(--text-3); }
.lch-done { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.lch-done b { color: var(--text); font-weight: 500; }

/* ---------- WHATSAPP: o construtor ---------- */
.waf-live { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 11px; color: var(--pos); font-weight: 600; }
.waf-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pos) 20%, transparent); }

.waf-canvas {
    position: relative; height: 380px; overflow: hidden;
    background-color: #0E0E12;
    background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 22px 22px;
    --waf-next: var(--brand); --waf-btn: #a78bfa; --waf-wait: #CFA13E; --waf-yes: #3FBF8F; --waf-no: #E5706B;
    --c-trigger: #7C5CFF; --c-message: #EC4899; --c-delay: #F87171; --c-condition: #14B8A6; --c-action: #F5B301;
}
.waf-edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.waf-edges .e { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.waf-edges .next { stroke: var(--waf-next); }
.waf-edges .wait { stroke: var(--waf-wait); }
.waf-edges .btn  { stroke: var(--waf-btn); }
.waf-edges .yes  { stroke: var(--waf-yes); }
.waf-edges .no   { stroke: var(--waf-no); }
/* o pulso que anda pela ligação: é o teste do fluxo com contato de mentira */
.waf-edges .e { stroke-dasharray: 8 6; animation: waf-flow 1.2s linear infinite; }
@keyframes waf-flow { to { stroke-dashoffset: -28; } }

.waf-node {
    position: absolute; width: 220px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow); font-size: 12.5px; color: var(--text);
}
.waf-node header {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 11px; border-radius: 13px 13px 0 0;
    font-size: 12px; font-weight: 600; color: #fff;
}
.waf-node header svg { width: 14px; height: 14px; }
.waf-stat { margin-left: auto; font-family: var(--mono); font-size: 10.5px; font-weight: 500; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.25); }
.t-trigger header { background: var(--c-trigger); }
.t-message header { background: var(--c-message); }
.t-delay header { background: var(--c-delay); }
.t-condition header { background: var(--c-condition); }
.t-action header { background: var(--c-action); color: #1a1400; }
.t-action .waf-stat { background: rgba(0,0,0,.14); }
.waf-body { padding: 10px 11px; line-height: 1.4; color: var(--text-2); }
.waf-body b { color: var(--text); font-weight: 600; }
.waf-body small { display: block; margin-top: 4px; font-size: 11px; color: var(--text-3); }
/* porta de entrada: bolinha à esquerda do cabeçalho */
.waf-node:not(.t-trigger)::before { content: ''; position: absolute; left: -6px; top: 16px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text-3); }
.waf-port {
    position: relative; display: flex; align-items: center; gap: 6px;
    padding: 7px 11px; border-top: 1px solid var(--border);
    font-size: 11.5px; color: var(--text-2);
}
.waf-port i { position: absolute; right: -7px; top: 50%; margin-top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--pc, var(--waf-next)); }
.waf-port.wait { --pc: var(--waf-wait); }
.waf-port.btn  { --pc: var(--waf-btn); }
.waf-port.yes  { --pc: var(--waf-yes); }
.waf-port.no   { --pc: var(--waf-no); }
.waf-port em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--text-3); padding: 0 6px; border: 1px dashed var(--border-strong); border-radius: 999px; }
.waf-hint { position: absolute; left: 14px; bottom: 12px; margin: 0; padding: 6px 11px; border-radius: 999px; font-size: 11.5px; color: var(--text-2); background: rgba(22,22,27,.9); border: 1px solid var(--border); }
.waf-fab { position: absolute; right: 16px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--brand); color: #06130C; font-size: 22px; font-weight: 500; line-height: 1; box-shadow: 0 10px 24px -10px rgba(60,230,160,.7); }

.wa-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.wa-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wa-kpi { display: flex; flex-direction: column; gap: 4px; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); min-width: 0; }
.wa-kpi span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600; }
.wa-kpi b { font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.wa-kpi b.pos { color: var(--pos); }
.wa-kpi small { font-size: 11px; color: var(--text-3); }
.wa-funil { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.wa-funil li { display: grid; grid-template-columns: 108px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 12px; color: var(--text-2); }
.wa-funil li i { display: block; height: 8px; border-radius: 4px; background: var(--surface-hover); position: relative; overflow: hidden; }
.wa-funil li i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--text-3); transition: width .8s var(--ease); }
.wa-funil li.fim i::after { background: var(--pos); }
.wa-funil li.fim { color: var(--text); font-weight: 600; }
.wa-funil li b { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.js .rv:not(.in) .wa-funil li i::after { width: 0; }

.wa-bc-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 600; }
.wa-bc-bar { display: flex; height: 10px; margin-top: 12px; border-radius: 6px; background: var(--surface-hover); overflow: hidden; }
.wa-bc-bar i { display: block; height: 100%; transition: width .5s linear; }
.wa-bc-bar .ok { background: var(--pos); }
.wa-bc-bar .fail { background: var(--neg); }
.wa-bc-nums { margin-top: 9px; font-size: 12px; color: var(--text-3); }
.wa-bc-nums b { color: var(--text); font-weight: 600; }
.wa-bc-lim { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 11.5px; line-height: 1.5; color: var(--text-3); }

.wa-chat { padding: 14px; background: #0B141A; display: flex; flex-direction: column; gap: 8px; min-height: 100%; }
.wa-chat-foot { margin-top: auto; padding: 9px 14px; border-radius: 999px; background: #2A3942; color: #8696A0; font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.wa-chat-foot small { color: #53BDEB; }

/* ---------- ATRIBUIÇÃO ---------- */
.attr-synth {
    display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; align-items: center;
    padding: 12px 16px; font-size: 13px; color: var(--text-2);
    background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
}
.attr-synth b { color: var(--text); font-weight: 600; }
.attr-synth small { grid-column: 2; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.attr-synth small u { color: var(--brand); text-decoration: none; }
.attr-synth-caret { color: var(--text-3); font-size: 15px; transform: rotate(90deg); display: inline-block; }

.attr-bulk {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin: 10px 12px 0; padding: 8px 12px;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
    box-shadow: var(--shadow); font-size: 12px; color: var(--text-2);
    transition: border-color .3s var(--ease);
}
.attr-bulk.hot { border-color: color-mix(in srgb, var(--pos) 45%, var(--border)); }
.attr-lbl { color: var(--text-3); }
.attr-select { padding: 5px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); color: var(--text-3); min-width: 0; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s; }
.attr-select.set { color: var(--text); }
.attr-btn { margin-left: auto; padding: 5px 12px; border-radius: 7px; background: var(--text); color: var(--ink-fg, #16161B); font-weight: 600; transition: background .3s, color .3s; }
.attr-btn.go { background: var(--brand); color: #06130C; }

.attr-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 10px; }
.attr-table th { padding: 8px 12px; text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.attr-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.attr-table tr:last-child td { border-bottom: 0; }
.attr-table td small { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; white-space: nowrap; }
.attr-table td code { font-family: var(--mono); font-size: 10.5px; }
.attr-table .r { text-align: right; white-space: nowrap; }
.attr-chk { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--border-strong); background: var(--bg); transition: background .2s, border-color .2s; }
.attr-table tr.sel .attr-chk { background: var(--brand); border-color: var(--brand); }
.attr-table tr.sel td { background: color-mix(in srgb, var(--pos) 6%, transparent); }
.attr-origin { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.attr-origin.macro, .attr-origin.semmatch { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 40%, var(--border)); }
.attr-chain { font-size: 12px; white-space: nowrap; }
.attr-chain em { color: var(--text-3); font-style: italic; }
.attr-chain .sep { color: var(--text-3); margin: 0 5px; }
.attr-chain .manual { color: #7c5cff; font-weight: 600; font-size: 10.5px; margin-left: 6px; }
@keyframes attr-flash { from { background: color-mix(in srgb, var(--pos) 18%, transparent); } to { background: transparent; } }
.attr-table tr.flash td { animation: attr-flash 1.5s ease-out; }
.attr-toast { margin: 10px 12px 12px; padding: 8px 12px; border-radius: 8px; font-size: 12px; color: var(--pos); background: color-mix(in srgb, var(--pos) 12%, transparent); border: 1px solid color-mix(in srgb, var(--pos) 35%, transparent); }

/* ---------- ANALYTICS ---------- */
.an-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; }
.an-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--text-3); margin-bottom: 12px; }
.an-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.an-legend i.win, .an-bars i.win::after { background: var(--pos); }
.an-legend i.ok,  .an-bars i.ok::after  { background: var(--text-2); }
.an-legend i.bad, .an-bars i.bad::after { background: var(--neg); }
.an-bars { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.an-bars li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 50px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-2); }
.an-bars li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-bars li i { display: block; height: 9px; border-radius: 5px; background: var(--surface-hover); position: relative; overflow: hidden; }
.an-bars li i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 5px; transition: width .9s var(--ease); }
.js .rv:not(.in) .an-bars li i::after { width: 0; }
.an-bars li b { text-align: right; font-weight: 600; color: var(--text); }

.an-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.an-table th { padding: 7px 8px; text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--border); white-space: nowrap; }
.an-table td { padding: 8px 8px; border-bottom: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.an-table td:first-child { color: var(--text); overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.an-table td small { color: var(--text-3); font-size: 11px; margin-left: 4px; }
.an-table tr:last-child td { border-bottom: 0; }
.an-table .r { text-align: right; }
.an-table td.pos { color: var(--pos); font-weight: 600; }
.an-table tr.win td { background: color-mix(in srgb, var(--pos) 6%, transparent); }
.an-pill { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--border-strong); color: var(--text-2); }
.an-pill.win { color: var(--pos); border-color: var(--pos); background: color-mix(in srgb, var(--pos) 12%, transparent); }
.an-pill.bad { color: var(--neg); border-color: var(--neg); background: color-mix(in srgb, var(--neg) 12%, transparent); }
.an-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.an-badge { font-size: 11px; font-weight: 600; color: var(--brand); background: rgba(60,230,160,.12); border: 1px solid var(--brand); border-radius: 999px; padding: 2px 9px; }
.an-note { font-size: 12.5px; color: var(--text-2); margin-bottom: 12px; }
.an-note b { color: var(--brand); background: rgba(60,230,160,.18); border-radius: 3px; padding: 0 3px; }
.an-verdict { margin-top: 12px; font-size: 13px; color: var(--text); }
.an-clarity { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.an-clarity-map { font-size: 11.5px; color: var(--text-2); padding: 4px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-soft); }
.an-clarity-map em { font-style: normal; color: var(--text-3); margin-left: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- GERENCIADOR: Detalhar ---------- */
.bd { display: flex; flex-direction: column; min-height: 0; padding: 12px 14px 14px; border-left: 3px solid var(--brand); border-radius: var(--r-md); background: var(--bg-soft); border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.bd-row { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; }
.bd-btn { font-size: 11px; color: var(--text-3); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; line-height: 16px; white-space: nowrap; }
.bd-tabs { display: inline-flex; gap: 2px; padding: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; font-size: 11px; color: var(--text-3); }
.bd-tabs > * { padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.bd-tabs b { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: var(--shadow); }
.bd-kpis { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.bd-kpi { display: flex; flex-direction: column; gap: 2px; padding: 7px 11px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); min-width: 120px; font-size: 11px; color: var(--text-3); }
.bd-kpi b { font-size: 15px; color: var(--text); font-weight: 600; }
.bd-kpi.meta { border-color: color-mix(in srgb, #1877F2 40%, var(--border)); background: color-mix(in srgb, #1877F2 7%, var(--surface)); }
.bd-kpi .fb { width: 11px; height: 11px; margin-right: 4px; }
.bd-seg { margin-left: auto; align-self: center; display: inline-flex; gap: 2px; padding: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; font-size: 11px; color: var(--text-3); }
.bd-seg > * { padding: 3px 10px; border-radius: 999px; }
.bd-seg b { background: var(--surface); color: var(--text); font-weight: 500; }
.bd-chart { display: block; width: 100%; flex: 1 1 auto; height: auto; min-height: 170px; }
.bd-bars rect { fill: rgba(255,255,255,.07); rx: 4; }
.bd-avg { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 4 4; }
.bd-meta { fill: none; stroke: #1877F2; stroke-width: 1.5; stroke-dasharray: 2 4; opacity: .8; }
.bd-area { fill: url(#bdg); fill: rgba(60,230,160,.14); }
.bd-line { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.2s var(--ease); }
.rv.in .bd-line { stroke-dashoffset: 0; }
.bd-legend { display: flex; gap: 12px; margin-top: 8px; font-size: 11px; color: var(--text-3); }
.bd-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.bd-legend .l { background: var(--brand); } .bd-legend .d { background: var(--text-3); } .bd-legend .b { background: rgba(255,255,255,.2); height: 8px; width: 6px; } .bd-legend .m { background: #1877F2; }
.bd-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 12px; color: var(--text-2); }
.bd-pop-t b { color: var(--text); margin-left: 6px; }
.bd-pre { display: inline-grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.bd-pre b { padding: 0 10px; height: 28px; line-height: 26px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bd-pre b.on { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 45%, var(--border)); background: color-mix(in srgb, var(--pos) 10%, transparent); }
.bd-pre-msg { color: var(--text-3); font-size: 11.5px; }

/* ---------- GERENCIADOR: Alertas ---------- */
.al-msg { padding: 12px 13px; border-radius: 12px; background: #202C33; color: #E9EDEF; font-size: 12.5px; line-height: 1.45; display: grid; gap: 7px; border-top-left-radius: 3px; }
.al-from { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #8696A0; }
.al-from svg { width: 13px; height: 13px; color: #25D366; }
.al-from time { margin-left: auto; }
.al-msg b { font-weight: 600; }
.al-dim { color: rgba(233,237,239,.6); }
.al-cost { margin-top: 12px; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.al-cost b { color: var(--text); }

/* ---------- GERENCIADOR: Regras ---------- */
.rl { display: grid; gap: 8px; min-width: 0; }
.rl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 12.5px; }
.rl-name { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rl-name em { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); }
.rl-name em.neg { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 40%, var(--border)); }
.rl-name em.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); }
.rl-row small { font-size: 11px; color: var(--text-3); flex: 1 0 100%; padding-left: 40px; }
.rl-preview { min-width: 0; overflow-wrap: anywhere; padding: 8px 11px; border-radius: 8px; background: var(--bg-soft); border: 1px dashed var(--border-strong); font-size: 12px; color: var(--text-2); line-height: 1.5; }
.rl-preview b { color: var(--text); font-weight: 600; }
.rl-preview i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--brand); padding: 0 4px; }
.rl-guard { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }

/* ---------- GERENCIADOR: Pixel ---------- */
.px { display: grid; gap: 12px; }
.px-code { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: var(--text-2); overflow-x: auto; white-space: pre; }
.px-code b { color: var(--brand); font-weight: 500; }
.px-n { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 10px; border-radius: 50%; background: var(--surface-2); color: var(--text-3); font-size: 9.5px; }
.px-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.px-kpi { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); font-size: 11px; color: var(--text-3); min-width: 0; }
.px-kpi b { font-size: 19px; color: var(--text); font-weight: 600; letter-spacing: -.03em; }
.px-kpi .pos { color: var(--pos); }
.px-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.px-keys li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 12px; color: var(--text-2); }
.px-keys li i { display: block; height: 7px; border-radius: 4px; background: var(--surface-hover); position: relative; overflow: hidden; }
.px-keys li i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--pos); transition: width .8s var(--ease); }
.js .rv:not(.in) .px-keys li i::after { width: 0; }
.px-keys li b { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text); }

/* ---------- MCP ---------- */
.mcp-chat { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 340px; background: var(--bg-soft); }
.mcp-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.mcp-skills span { font-family: var(--mono); font-size: 11px; color: var(--brand); padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(60,230,160,.3); background: rgba(60,230,160,.08); }
.mcp-msg { max-width: 86%; padding: 10px 13px; border-radius: 12px; font-size: 13px; line-height: 1.5; opacity: 0; transform: translateY(8px); transition: opacity .34s var(--ease), transform .34s var(--ease); }
.mcp-msg.in { opacity: 1; transform: none; }
.mcp-msg.you { align-self: flex-end; background: var(--surface-hover); color: var(--text); border-bottom-right-radius: 3px; }
.mcp-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); border-bottom-left-radius: 3px; }
.mcp-msg.bot p + p { margin-top: 8px; }
.mcp-msg b { color: var(--text); font-weight: 600; }
.mcp-msg b.pos { color: var(--pos); }
.mcp-tool { display: inline-flex; margin-bottom: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); padding: 2px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); }
@media (prefers-reduced-motion: reduce) { .mcp-msg { opacity: 1; transform: none; } }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
    .wa-trio { grid-template-columns: minmax(0, 1fr); }
    .an-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .waf-canvas { height: 300px; }
    .waf-edges { display: none; }
    .waf-node { position: static; width: auto; margin: 10px 12px 0; }
    .waf-canvas { height: auto; padding-bottom: 12px; display: grid; }
    .waf-node .waf-port em { display: none; }
    .waf-hint, .waf-fab { display: none; }
    .lch-steps li { font-size: 0; gap: 0; padding: 6px; }
    .lch-steps li b { font-size: 10.5px; }
    .lch-cfg { grid-template-columns: minmax(0, 1fr); }
    .attr-table th:nth-child(3), .attr-table td:nth-child(3) { display: none; }
    .attr-select { max-width: 120px; }
    .bd-tabs { display: none; }
    .px-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .px-kpi b { font-size: 16px; }
}
@media (max-width: 620px) {
    .frag-body { padding: 13px; }
    .lch-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
    .lch-ratio { display: none; }
    .lch-thumb { width: 34px; height: 38px; }
    .t-v9 .lch-art { width: 21px; height: 38px; }
    .t-i1 .lch-art { width: 34px; height: 34px; }
    .t-i4 .lch-art { width: 30px; height: 38px; }
    .attr-table td small { white-space: normal; }
    .attr-table th:last-child, .attr-table td:last-child { display: none; }
    .an-bars li { grid-template-columns: 100px minmax(0, 1fr) 46px; }
    .an-table td:nth-child(3), .an-table th:nth-child(3) { display: none; }
    .an-table.ab td:nth-child(3), .an-table.ab th:nth-child(3) { display: table-cell; }
    .px-keys li { grid-template-columns: 100px minmax(0, 1fr) 40px; }
    .bd-kpi { min-width: 0; flex: 1 1 40%; }
    .bd-seg { display: none; }
    .wa-funil li { grid-template-columns: 96px minmax(0, 1fr) 36px; }
    .mcp-msg { max-width: 94%; }
}


/* ==========================================================================
   DOBRA 1 · duas telas empilhadas: Projeto atrás, Campanhas na frente
   ========================================================================== */
.stack { position: relative; }
.stack .app-proj { width: 90%; position: relative; z-index: 1; }
.stack .app-camp {
    width: 88%;
    margin: clamp(-170px, -12vw, -120px) 0 0 auto;
    position: relative; z-index: 2;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.055),
        0 -40px 120px -30px rgba(0,0,0,.9),
        0 70px 150px -60px rgba(0,0,0,1);
}
.stack .app-proj::after {
    /* a tela de trás escurece de leve onde a da frente encosta */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, transparent 62%, rgba(11,11,14,.6) 100%);
}
/* a linha do Detalhar dentro da tabela de Campanhas */
.app-bd-row td { padding: 0 !important; background: var(--bg-soft) !important; }
.app-bd-row .bd { border: 0; border-left: 3px solid var(--brand); border-radius: 0; }
.app-bd-row .bd-chart { min-height: 150px; height: 150px; flex: none; }
.bd-meta-t { font-size: 11px; color: var(--text-3); }
.app-ctx .bd-btn { margin-left: 8px; opacity: 1; font-size: 10.5px; }
table.app-table tbody tr.app-bd-row:hover td { background: var(--bg-soft) !important; }

/* ---------- a tela do projeto ---------- */
.pj { padding: 18px 22px 22px; }
.pj-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.pj-back { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.pj-h1 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.pj-sub { margin-top: 6px; font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.pj-chip { font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.pj-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; max-width: 520px; }
.pj-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--app-r9); font-size: 12.5px; color: var(--text-2); }
.pj-seg > * { padding: 6px 12px; border-radius: 7px; white-space: nowrap; }
.pj-seg b { background: var(--surface-hover); color: var(--text); font-weight: 500; }
.pj-btn { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--text); white-space: nowrap; }
.pj-btn.pri { background: var(--brand); border-color: var(--brand); color: #06130C; font-weight: 600; }
.pj-seg { flex: 1 0 100%; justify-content: flex-end; }

.pj-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--app-r14); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,.045), var(--sh); }
.pj-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13.5px; }
.pj-card-h b { display: block; font-weight: 600; }
.pj-card-h small { display: block; font-size: 11.5px; color: var(--text-3); }
.pj-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pj-kpi { padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--app-r12); background: var(--surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); min-width: 0; }
.pj-kpi span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); margin-bottom: 8px; white-space: nowrap; overflow: hidden; }
.pj-kpi span svg { width: 14px; height: 14px; color: var(--text-3); flex: 0 0 14px; }
.pj-kpi b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-kpi b.t2 { color: var(--text-2); }
.pj-kpi b.pos { color: var(--pos); }
.pj-kpi b i { font-style: normal; font-size: 12px; color: var(--text-3); margin-left: 2px; }

.pj-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 12px; border: 1px solid var(--border); border-radius: var(--app-r14); background: var(--surface); overflow: hidden; }
.pj-strip > div { padding: 12px 14px; border-right: 1px solid var(--border); min-width: 0; }
.pj-strip > div:last-child { border-right: 0; }
.pj-strip small { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 5px; white-space: nowrap; }
.pj-strip b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.pj-strip em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-left: 5px; white-space: nowrap; }

.pj-charts { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.pj-ch { padding: 14px 16px 12px; border: 1px solid var(--border); border-radius: var(--app-r14); background: var(--surface); min-width: 0; }
.pj-ch-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; }
.pj-ch-t b { color: var(--text); font-weight: 600; }
.pj-leg { margin-left: auto; display: inline-flex; gap: 12px; font-size: 11.5px; color: var(--text-2); }
.pj-leg i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.pj-ch-wrap { position: relative; padding-left: 44px; }
.pj-ch:last-child .pj-ch-wrap { padding-left: 0; }
.pj-chart { display: block; width: 100%; height: 190px; }
.pj-grid line { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.pj-l { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.pj-l2 { stroke-width: 2.6; }
.pj-y { position: absolute; left: 0; top: 0; height: 190px; width: 40px; }
.pj-y text, .pj-x text { font-size: 10.5px; fill: var(--text-3); }
.pj-y, .pj-x { font-size: 10.5px; color: var(--text-3); }
.pj-x { display: flex; justify-content: space-between; margin-top: 6px; }
.pj-x text { display: none; }
.pj-y text { display: none; }
.pj-x::before { content: '19/09'; } .pj-x::after { content: '25/09'; }
.pj-y::before { content: 'R$ 3.000'; position: absolute; top: 4px; }
.pj-y::after { content: 'R$ 0'; position: absolute; bottom: 16px; }

/* ---------- o gráfico por hora (mosaico) ---------- */
.hr { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-soft); }
.hr-t { font-size: 13px; color: var(--text-3); }
.hr-t b { color: var(--text); font-weight: 600; }
.hr-t em { display: block; font-style: normal; font-size: 11.5px; margin-top: 2px; }
.hr-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.hr-facts span { display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 60%, transparent); font-size: 12px; }
.hr-facts small { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.hr-facts b { font-size: 14px; font-weight: 600; color: var(--text); }
.hr-facts i { font-style: normal; color: var(--text-2); }
.hr-chart { display: block; width: 100%; height: 190px; }
.hr-now { fill: rgba(60,230,160,.08); }
.hr-line { fill: none; stroke: #8b5cf6; stroke-width: 2.2; stroke-linejoin: round; }
.hr-x text { font-size: 10.5px; fill: var(--text-3); text-anchor: middle; }
.hr-leg { display: flex; gap: 14px; margin-top: 8px; font-size: 11.5px; color: var(--text-2); }
.hr-leg i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #8b5cf6; margin-right: 6px; }
.hr-leg i.sq { border-radius: 2px; background: #3b82f6; }

@media (max-width: 1080px) {
    .pj-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pj-strip > div:nth-child(3n) { border-right: 0; }
    .pj-strip > div:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
    .pj-charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .stack .app-proj, .stack .app-camp { width: 100%; }
    .stack .app-camp { margin-top: 14px; }
    .stack .app-proj::after { display: none; }
    .pj { padding: 14px 14px 16px; }
    .pj-acts { display: none; }
    .pj-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pj-kpi b { font-size: 17px; }
    .bd-tabs { display: inline-flex; }
    .app-bd-row .bd-tabs { display: none; }
}
@media (max-width: 620px) {
    .pj-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pj-strip > div:nth-child(3n) { border-right: 1px solid var(--border); }
    .pj-strip > div:nth-child(2n) { border-right: 0; }
    .pj-strip > div:nth-child(-n+4) { border-bottom: 1px solid var(--border); }
    .pj-chart, .hr-chart { height: 150px; }
    .pj-y { height: 150px; }
}


/* ==========================================================================
   DOBRA 1 · o painel em vídeo. A janela entra deitada (rotateX) e menor, e
   se endireita até tomar a tela, como a referência. --p vem do hero.js.
   ========================================================================== */
.scrolly { height: 260vh; position: relative; padding: 0; margin-top: clamp(-210px, -14vw, -110px); }
.scrolly-sticky {
    position: sticky; top: 0; height: 100vh; height: 100svh;
    display: flex; align-items: center; justify-content: center;
    padding-top: 74px; box-sizing: border-box; overflow: hidden;
    perspective: 1600px; perspective-origin: 50% 0%;
}
.scrolly-frame {
    width: min(96vw, calc((100svh - 110px) * 16 / 9));
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 -30px 90px -46px rgba(60,230,160,.32), 0 70px 150px -60px rgba(0,0,0,1);
    transform:
        rotateX(calc((1 - var(--p, 0)) * 13deg))
        scale(calc(.91 + var(--p, 0) * .09))
        translateY(calc((1 - var(--p, 0)) * 30px));
    transform-origin: 50% 30%;
    will-change: transform;
}
.scrolly-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0B0B0E; }
@media (max-width: 900px) {
    /* no celular não tem cena presa: a janela entra no fluxo, largura toda */
    .scrolly { height: auto; padding: 8px 0 40px; margin-top: -30px; }
    .scrolly-sticky { position: static; height: auto; padding-top: 0; overflow: visible; }
    .scrolly-frame { width: 96vw; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .scrolly { height: auto; padding: 24px 0 48px; }
    .scrolly-sticky { position: static; height: auto; padding-top: 0; }
    .scrolly-frame { transform: none; }
}


/* ---------- a dobra do vídeo com áudio (motion graphics) ---------- */
.vid-wrap { max-width: 1120px; margin-inline: auto; }
.vid-frame {
    position: relative; border-radius: 18px; overflow: hidden;
    border: 1px solid var(--border); background: #000;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 -30px 90px -46px rgba(60,230,160,.32), 0 70px 150px -60px rgba(0,0,0,1);
}
.vid-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.vid-play {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: radial-gradient(60% 60% at 50% 50%, rgba(11,11,14,.15), rgba(11,11,14,.55));
    border: 0; cursor: pointer; padding: 0;
    transition: opacity .3s var(--ease);
}
.vid-play span {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 24px 14px 18px; border-radius: 999px;
    background: var(--brand); color: #06130C; font: 600 15.5px/1 var(--ui);
    box-shadow: 0 16px 40px -12px rgba(60,230,160,.7);
}
.vid-play svg { width: 18px; height: 18px; }
.vid-frame.on .vid-play { opacity: 0; pointer-events: none; }
.vid-caption { margin-top: 14px; text-align: center; }

/* ---------- barra de rolagem tematizada (é o jeito mais rápido de perceber
   que os blocos do painel não são print) ---------- */
.app-tablewrap, .px-code, .cmp-scroll, .attr-table-wrap, .frag-body, .waf-canvas {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}
.app-tablewrap::-webkit-scrollbar, .px-code::-webkit-scrollbar, .cmp-scroll::-webkit-scrollbar { height: 8px; width: 8px; }
.app-tablewrap::-webkit-scrollbar-thumb, .px-code::-webkit-scrollbar-thumb, .cmp-scroll::-webkit-scrollbar-thumb {
    background: var(--border-strong); border-radius: 999px; border: 2px solid var(--surface);
}
.app-tablewrap::-webkit-scrollbar-thumb:hover, .px-code::-webkit-scrollbar-thumb:hover, .cmp-scroll::-webkit-scrollbar-thumb:hover { background: #4A4A55; }
.app-tablewrap::-webkit-scrollbar-track, .px-code::-webkit-scrollbar-track, .cmp-scroll::-webkit-scrollbar-track { background: transparent; }

/* ---------- reveal ----------
   Só esconde quando o JS assumiu (html.js). Sem JS, a página inteira
   aparece normalmente: nenhuma dobra depende de script para existir. */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.rv-2 { transition-delay: .08s; }
.rv-3 { transition-delay: .16s; }

/* ==========================================================================
   Responsivo: desenhado do celular pra cima
   ========================================================================== */
@media (min-width: 620px) {
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr); }
    .hero-copy { padding-top: 4px; }
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .feat { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
    .feat.flip .feat-copy { order: 2; }
    .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .close-card { text-align: left; }
}

@media (max-width: 899px) {
    .hero-copy { max-width: none; }
    .feat-copy { max-width: none; }
    .wa { max-width: none; }
}

/* celular: some com a navegação secundária, CTA fica */
@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-cta { margin-left: auto; }
    .nav-in { height: 60px; }
    html { scroll-padding-top: 72px; }

    .wf-line { grid-template-columns: minmax(0, 1fr) auto; }
    .wf-line .wf-bar { grid-column: 1 / -1; order: 3; }
}

/* ----------------------------------------------------------------------
   Celular: as tabelas viram outra coisa, não uma tabela espremida.
   A comparação vira bloco por linha (cada item com os 3 valores rotulados)
   e as tabelas de demonstração escondem as colunas do meio, para o LUCRO
   nunca ficar atrás de um scroll lateral.
   ---------------------------------------------------------------------- */
@media (max-width: 700px) {
    .cmp-scroll { overflow: visible; }

    table.cmp { min-width: 0; display: block; font-size: 14px; }
    table.cmp thead { display: none; }
    table.cmp tbody, table.cmp tr, table.cmp td { display: block; width: 100%; }

    table.cmp tr {
        padding: 16px 18px;
        border-bottom: 1px solid var(--border);
    }
    table.cmp tbody tr:last-child { border-bottom: 0; }

    table.cmp td { border: 0; padding: 0; background: none; }
    table.cmp td:first-child {
        font-size: 15px;
        font-weight: 600;
        letter-spacing: -.02em;
        margin-bottom: 11px;
    }
    table.cmp tr.lose td:first-child { font-weight: 600; color: var(--text); }

    table.cmp td:not(:first-child) {
        display: flex;
        align-items: baseline;
        gap: 12px;
        padding: 5px 0;
        font-size: 13.5px;
    }
    table.cmp td:not(:first-child)::before {
        content: attr(data-label);
        flex: 0 0 86px;
        color: var(--text-3);
        font-size: 12px;
        font-weight: 500;
    }
    table.cmp td.us {
        color: var(--text);
        font-weight: 600;
        border-radius: 8px;
        padding: 6px 9px;
        margin: 2px -9px 4px;
        background: rgba(60,230,160,.07);
    }
    table.cmp td.us::before { color: var(--brand); }

    table.mini { min-width: 0; font-size: 12.5px; }
    table.mini th, table.mini td { padding: 10px 9px; }
    table.mini td.name { white-space: normal; line-height: 1.3; }
    table.mini.compact-4 th:nth-child(3), table.mini.compact-4 td:nth-child(3) { display: none; }
}

@media (max-width: 400px) {
    .seg button { font-size: 12px; padding: 9px 6px; }
    .stat-row { gap: 8px; }
    .btn { padding: 14px 18px; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .js .rv, .js .rv.in { opacity: 1; transform: none; }
    .js .bub, .js .bub.in { opacity: 1; transform: none; }
    .flag, .flag.show { transform: none; }
    /* o fundo da hero tambem: o JS desenha 1 quadro e para (ver app.js) */
    .menu-mob { transition: none; }
}
