/* ============================================================
   Bombou — página inicial: logos flutuando no topo, novos visuais
   do "como funciona" e os tons de fundo que quebram o branco.
   Vem depois de site.css e motion.css.
   ============================================================ */

/* ---------- tons de seção ---------- */
/* O fundo de cada tom fica num ::before com máscara: ele aparece e some aos poucos nas bordas,
   sem corte seco entre uma seção e outra. */
.tom-quente, .tom-suave, .tom-escuro { position: relative; isolation: isolate; border-top: 0 !important; }
/* A seção escura corta seco (a pedido): sem máscara nas bordas. */
.tom-escuro::before { -webkit-mask-image: none !important; mask-image: none !important; }
.tom-quente + .section, .tom-suave + .section, .tom-escuro + .section { border-top: 0; }
.tom-quente::before, .tom-suave::before, .tom-escuro::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 var(--fade, 140px), #000 calc(100% - var(--fade, 140px)), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 var(--fade, 140px), #000 calc(100% - var(--fade, 140px)), transparent 100%);
}

/* Quente: degradê pêssego claro. */
.tom-quente::before {
  background:
    radial-gradient(70% 90% at 0% 10%, #FFDCC8 0%, transparent 62%),
    radial-gradient(60% 80% at 100% 90%, #FFEAC9 0%, transparent 62%),
    #FFF5EF;
}
.tom-quente .card { box-shadow: 0 16px 36px -24px rgba(201,57,11,.35), var(--shadow-soft); }

/* Suave: o bege do --surface2. */
.tom-suave::before { background: var(--surface2); }

/* Escuro: reaproveita os tokens do tema escuro só dentro da seção. A borda esmaece numa
   faixa curta e o respiro interno é maior, para o texto claro ficar sempre no fundo escuro. */
.tom-escuro {
  --bg: #120D0B; --surface: #1C1613; --surface2: #261E1A; --hover: #211A16;
  --border: #33291F; --border-strong: #4A3D35;
  --ink: #FFF8F3; --on-ink: #120D0B; --body: #C9BDB5; --muted: #A2958D;
  --accent: #FF7A45; --accent-soft: #3A1709; --accent-strong: #FF9A6E;
  --shadow-soft: 0 1px 2px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.4);
  --shadow-soft-lg: 0 18px 40px -16px rgba(0,0,0,.7), 0 2px 6px -2px rgba(0,0,0,.5);
  color: var(--body);
}
.section.tom-escuro { padding: 112px 0; }
.tom-escuro::before {
  background:
    radial-gradient(60% 60% at 85% 30%, rgba(255,90,31,.22), transparent 62%),
    radial-gradient(50% 55% at 5% 75%, rgba(255,170,60,.10), transparent 62%),
    #120D0B;
}
.tom-escuro h2, .tom-escuro h3, .tom-escuro h4 { color: var(--ink); }
@media (max-width: 760px) { .section.tom-escuro { padding: 88px 0; } }

/* ---------- logos das redes flutuando no topo ---------- */
.hero .container { position: relative; }
.redes-voando { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero .hero-kicker, .hero h1, .hero .sub, .hero .hero-ctas, .hero .hero-note { position: relative; z-index: 1; }
.rede {
  position: absolute; width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 18px 34px -18px rgba(26,18,16,.45), 0 2px 6px rgba(26,18,16,.06);
  transform: rotate(var(--r, 0deg));
  animation: redeFlutua var(--t, 7s) ease-in-out var(--atraso, 0s) infinite;
}
.rede svg { width: 34px; height: 34px; display: block; }
.rede.r-ig { left: 2%;  top: 60px;  --r: -10deg; --t: 7.5s; }
.rede.r-ma { left: 12%; top: 190px; --r: -4deg;  --t: 9s;   --atraso: -4s; width: 50px; height: 50px; border-radius: 15px; }
.rede.r-tt { left: 3%;  top: 320px; --r: 8deg;   --t: 8.5s; --atraso: -2s; width: 54px; height: 54px; border-radius: 16px; }
.rede.r-yt { right: 2%; top: 70px;  --r: 9deg;   --t: 8s;   --atraso: -1s; }
.rede.r-fb { right: 10%; top: 250px; --r: -7deg;  --t: 7s;   --atraso: -3s; width: 54px; height: 54px; border-radius: 16px; }
.rede.r-ma svg { width: 30px; height: 30px; }
@keyframes redeFlutua {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) * -0.6)); }
}
@media (max-width: 1180px) {
  .rede.r-ig { left: -1%; top: 30px; } .rede.r-yt { right: -1%; top: 30px; }
  .rede.r-ma { left: 0; top: 200px; } .rede.r-tt { left: 1%; top: 330px; } .rede.r-fb { right: 0; top: 260px; }
}
@media (max-width: 900px) {
  .rede { width: 44px; height: 44px; border-radius: 13px; }
  .rede svg { width: 24px; height: 24px; }
  .rede.r-ig { left: 0; top: -6px; } .rede.r-yt { right: 0; top: -6px; }
  .rede.r-tt { left: 4px; top: auto; bottom: 120px; width: 40px; height: 40px; }
  .rede.r-fb { right: 4px; top: auto; bottom: 120px; width: 40px; height: 40px; }
}
@media (max-width: 900px) { .rede.r-ma { display: none; } }
@media (max-width: 560px) {
  .rede.r-tt, .rede.r-fb { display: none; }
  .rede { width: 36px; height: 36px; border-radius: 11px; }
  .rede svg { width: 20px; height: 20px; }
  .rede.r-ig { left: 10%; top: -40px; } .rede.r-yt { right: 10%; top: -40px; }
}
@media (prefers-reduced-motion: reduce) { .rede { animation: none; } }

/* ---------- como funciona: transcrição e ideia de post ---------- */
.mini-fala { width: 100%; display: grid; gap: 7px; font-size: 12px; line-height: 1.45; }
.mini-fala .linha { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: start; }
.mini-fala .tag { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 2px; }
.mini-fala .linha.gancho .tag { color: var(--accent); }
.mini-fala .linha.gancho span:last-child { color: var(--ink); font-weight: 600; background: var(--accent-soft); border-radius: 6px; padding: 2px 6px; margin: -2px -6px; }
.mini-fala span:last-child { color: var(--body); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.mini-ideia { width: 100%; display: grid; gap: 8px; }
.mini-ideia .topo { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.mini-ideia .topo .chip { font-size: 10.5px; padding: 2px 8px; }
.mini-ideia .t { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mini-ideia .gancho { font-size: 12px; color: var(--ink); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 8px; padding: 6px 9px; }
.mini-ideia .fim { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-ideia .fim span { font-family: var(--font-mono); font-size: 10px; color: var(--muted); border: 1px solid var(--border); border-radius: 99px; padding: 2px 8px; background: var(--surface); }
.js-motion .mini-ideia .gancho { animation: ideiaPisca 6s ease-in-out infinite; }
@keyframes ideiaPisca { 0%, 70%, 100% { border-color: var(--border-strong); } 80%, 90% { border-color: var(--brand); } }

/* ---------- busca por nicho: capas reais nos resultados ---------- */
.rrow .th img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- análises com IA: relatório branco que alterna entre os dois tipos ---------- */
/* Dentro da seção escura, o relatório volta para os tokens claros: é o que dá destaque. */
.tom-escuro .report-stack {
  --bg: #FAF8F6; --surface: #FFFFFF; --surface2: #F4F0EC; --hover: #FCFAF8;
  --border: #ECE6E1; --border-strong: #D9D0C9;
  --ink: #1A1210; --on-ink: #FFFFFF; --body: #57504B; --muted: #756C66;
  --accent: #C9390B; --accent-soft: #FFF0E8; --accent-strong: #A52E08;
  --shadow-soft: 0 1px 2px rgba(16,17,20,.04), 0 1px 3px rgba(16,17,20,.03);
  color: var(--body);
}
.report-stack { padding: 0 0 34px; }
.report-palco { position: relative; cursor: pointer; padding-top: 38px; margin-top: 8px; }
.report-palco .report {
  position: absolute; left: 0; right: 18px; top: 38px; margin: 0;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.65), 0 2px 8px rgba(0,0,0,.25); border-color: transparent;
  transform-origin: 85% 0;
  transition: transform .65s cubic-bezier(.3,.7,.2,1), filter .65s ease, opacity .65s ease, z-index 0s linear .32s;
}
/* o da frente */
.report-stack[data-kind="perfil"] .report[data-kind="perfil"],
.report-stack[data-kind="concorrentes"] .report[data-kind="concorrentes"] { z-index: 2; transform: none; filter: none; opacity: 1; }
/* o de trás: menor, deslocado para cima e para a direita, apagado */
.report-stack[data-kind="perfil"] .report[data-kind="concorrentes"],
.report-stack[data-kind="concorrentes"] .report[data-kind="perfil"] {
  z-index: 1; transform: translate(34px, -38px) scale(.9) rotate(1.5deg); filter: saturate(.6) brightness(.82); opacity: .9;
}
.report-stack[data-kind="perfil"] .report[data-kind="concorrentes"] .tip,
.report-stack[data-kind="concorrentes"] .report[data-kind="perfil"] .tip { opacity: 0; }
.report-palco .report .tip { transition: opacity .4s ease; }
@media (max-width: 900px) {
  .report-palco .report { right: 0; }
  .report-stack[data-kind="perfil"] .report[data-kind="concorrentes"],
  .report-stack[data-kind="concorrentes"] .report[data-kind="perfil"] { transform: translate(14px, -26px) scale(.94); }
}
.report-dica { margin: 14px 0 0; font-size: 12.5px; color: #A2958D; }

/* tabela do relatório de concorrentes */
.cmp { display: grid; gap: 6px; }
.cmp-head, .cmp-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 64px minmax(0, 1fr) 54px; gap: 10px; align-items: center; }
.cmp-head span { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cmp-head span:last-child, .cmp-row .x { text-align: right; }
.cmp-row { font-size: 12.5px; color: var(--body); padding: 6px 8px; margin: 0 -8px; border-radius: 8px; }
.cmp-row b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-row small { display: none; }
.cmp-row.voce { background: var(--accent-soft); }
.cmp-row.voce b::after { content: " (você)"; font-weight: 400; color: var(--muted); }
.cmp-row .mono { font-family: var(--font-mono); font-size: 11.5px; }
.cmp-row i { height: 6px; border-radius: 99px; background: var(--surface2); position: relative; overflow: hidden; }
.cmp-row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--accent); transition: width 1s cubic-bezier(.2,.7,.2,1) .2s; }
.cmp-row.voce i::after { background: #E9A07F; }
.report-stack[data-kind="concorrentes"] .cmp-row i::after, html:not(.js-motion) .cmp-row i::after { width: var(--w); }
.cmp-row .x { color: var(--ink); font-weight: 500; }

/* cartões da direita: são os botões que trocam o exemplo */
button.kind { text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.kind[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 40px -24px rgba(255,90,31,.6); }
.kind[aria-pressed="true"] .cost::after { content: " · no exemplo ao lado"; color: var(--muted); }
@media (max-width: 900px) { .report-dica { display: none; } }

/* ---------- bloco do teste grátis (leva à landing /testegratis) ---------- */
.teste-bloco { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: center; padding: 32px 36px; background: var(--accent-soft); border-color: transparent; box-shadow: none; }
.teste-bloco h2 { margin: 14px 0 0; font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.teste-bloco p { margin: 10px 0 0; color: var(--body); max-width: 560px; }
.teste-lista { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.teste-lista li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.teste-lista .ico { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.teste-acao { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.teste-nota { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
@media (max-width: 820px) {
  .teste-bloco { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .teste-acao { align-items: stretch; }
  .teste-acao .btn { width: 100%; }
}
