/* CredFácil × Qonto: só o que é NOSSO por cima da folha da captura (marca, fonte, mídia e os comportamentos que o
   JS da Qonto fazia). Medidas, grades e tipografia continuam as da Qonto (css/qonto.css). */
@font-face { font-family: "QontoSans"; src: url("../fonts/mona-sans.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
:root { --cf-azul: #2563EB; --cf-azul-escuro: #1D4ED8; }
html { scroll-behavior: smooth; overflow-wrap: break-word; }
body { font-family: "QontoSans", system-ui, -apple-system, "Segoe UI", sans-serif; font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; background: #fff; color: #050505; margin: 0; }
@layer base { img { max-width: 100%; height: auto; } }   /* na camada base: as utilitárias h-full/w-full da Qonto vencem */
h1, h2, h3 { font-variation-settings: "wdth" 100; letter-spacing: -0.01em; }
h1 { letter-spacing: -0.02em; }

/* botão de ação: azul do CredFácil com texto branco (4,5:1 ou mais), em toda instância; hover escurece */
:is(body, .darkmode, .black, .website-revamp) .btn.btn-primary, .btn.btn-primary { background-color: var(--cf-azul); border-color: var(--cf-azul); color: #fff; transition: background-color .2s ease, transform .15s ease; }
:is(body, .darkmode, .black, .website-revamp) .btn.btn-primary:hover { background-color: var(--cf-azul-escuro); border-color: var(--cf-azul-escuro); color: #fff; }
.btn.btn-primary:active { transform: scale(.98); }
.btn, .cf-entrar-topo, .cf-nav-link, .cf-menu-entrar { min-height: 44px; }
.btn.btn-primary, .btn.btn-secondary { display: inline-flex; align-items: center; justify-content: center; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cf-azul); outline-offset: 2px; }

/* cabeçalho: Entrar visível também no celular (44 px), ao lado do Criar conta e do menu */
.cf-entrar-topo { color: #fff; padding-inline: 10px; margin-right: 4px; display: inline-flex; }
.cf-criar-topo { min-height: 44px; display: inline-flex; align-items: center; }
.cf-logo-topo img { height: 24px; width: auto; display: block; }
.cf-nav-link { color: #050505; }
@media (min-width: 1024px) { .cf-nav-link { color: #fff; padding-block: 0; } .cf-nav-link:hover { color: #ccc; } .cf-entrar-topo { margin-right: 0; } }
.cf-menu { z-index: 20; }
.cf-menu.cf-aberto { translate: 0 0; transform: none; }   /* o Tailwind v4 move por `translate`, não por transform */
.cf-menu-pe .btn { margin-top: 16px; }
.cf-menu-pe .cf-menu-entrar { color: #050505; display: inline-flex; align-items: center; justify-content: center; }
.hamburger span::before, .hamburger span::after { content: ""; position: absolute; width: 27px; height: 2px; background: #fff; left: 0; transition: transform .25s ease, top .25s ease; }
.hamburger span::before { top: -8px; } .hamburger span::after { top: 8px; }
#nav-revamp.black .cf-hamburguer[aria-expanded="true"] span { background: transparent; }
#nav-revamp.black .cf-hamburguer[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); background: #050505; }
#nav-revamp.black .cf-hamburguer[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); background: #050505; }
body.cf-menu-aberto { overflow: hidden; }
body.cf-menu-aberto .cf-hamburguer { position: relative; z-index: 30; }
body.cf-menu-aberto .cf-logo-topo, body.cf-menu-aberto .cf-entrar-topo { position: relative; z-index: 30; }
body.cf-menu-aberto .cf-logo-topo img { filter: brightness(0); }
body.cf-menu-aberto .cf-entrar-topo { color: #050505; }

/* hero: cobre a tela inteira (100svh), a foto é a mesma da página de hoje com o print novo; o véu é degradê reto */
.cf-hero { min-height: 100svh; }
@media (max-width: 767.98px) { .cf-hero .main-hero-homepage { height: calc(100svh - 136px); } }
@media (min-width: 768px) and (max-width: 1023.98px) { .cf-hero .main-hero-homepage { height: calc(100svh - 168px); } }
.cf-hero-foto { object-position: 0% 40%; }
.cf-hero-foto--celular { object-position: 30% 50%; }
.cf-hero-veu { background: linear-gradient(180deg, rgba(5,5,5,.14) 0%, rgba(5,5,5,.14) 28%, rgba(5,5,5,.86) 56%, #050505 82%); }
@media (min-width: 1024px) { .cf-hero-veu { background: linear-gradient(180deg, rgba(5,5,5,.08) 0%, rgba(5,5,5,.08) 45%, rgba(5,5,5,.74) 78%, #050505 100%), linear-gradient(90deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,.25) 45%, rgba(5,5,5,0) 70%); } }
.cf-hero h1 { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
/* o h1 do hero da Qonto tem medida própria por largura (estava num <style> embutido na seção) */
@media (max-width: 767px) { .cf-hero h1 { font-size: 28px; line-height: 36px; } }
@media (min-width: 768px) and (max-width: 1023px) { .cf-hero h1 { font-size: 52px; line-height: 62px; } }

/* prints do painel dentro dos quadros cinza (seções 04 e 05), como os mocks da Qonto */
.cf-print-quadro { width: 86%; height: auto; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.08); display: block; }
.cf-bento-celular img { width: min(72%, 300px); height: auto; border-radius: 28px 28px 0 0; box-shadow: 0 -8px 40px rgba(0,0,0,.45); display: block; }
.cf-bento-celular { max-height: 100%; }
.cf-bento-celular--alto img { width: min(78%, 330px); }
.cf-bg-inicio-escuro { background-image: url("../midia/inicio-computador-escuro.webp"); background-position: 100% 100%; background-size: 150% auto; }
.cf-bg-relatorios { background-image: url("../midia/relatorios-computador.webp"); background-position: 100% 88%; background-size: 135% auto; }
/* véu de legibilidade sobre print claro: degradê reto, nunca forma */
.cf-veu-forte { background: linear-gradient(180deg, rgba(5,5,5,.82) 0%, rgba(5,5,5,.62) 34%, rgba(5,5,5,0) 62%); }
@media (min-width: 1024px) { .cf-veu-forte--largo { background: linear-gradient(90deg, rgba(5,5,5,.86) 0%, rgba(5,5,5,.7) 32%, rgba(5,5,5,0) 64%), linear-gradient(180deg, rgba(5,5,5,.5) 0%, rgba(5,5,5,0) 45%); } }
@media (max-width: 1023.98px) { .cf-bg-relatorios { background-size: cover; background-position: 50% 100%; } .cf-bg-inicio-escuro { background-size: cover; background-position: 50% 0; } }
.cf-bg-cta { background-image: url("../midia/hero-na-mao-l.webp"); background-size: cover; background-position: 42% 62%; }
@media (min-width: 1024px) { .cf-bg-cta { background-size: 150% auto; background-position: 9% 72%; } }

/* 04: abas (o stepper da Qonto); a barra à esquerda enche enquanto a aba está ativa e troca sozinha */
.cf-dobra { grid-template-rows: 0fr; transition: grid-template-rows .65s cubic-bezier(.32,.72,0,1); }
.cf-passo--ativo .cf-dobra { grid-template-rows: 1fr; }
.cf-passo .cf-aba { color: #8f8f8f; transition: color .3s; }
.cf-passo--ativo .cf-aba { color: #050505; }
.cf-barra { transform: scaleY(0); }
.cf-passo--ativo .cf-barra { transform: scaleY(1); }
.cf-passo--ativo .cf-barra--corpo { transform: scaleY(0); animation: cf-encher var(--cf-aba-tempo, 7s) linear forwards; }
@keyframes cf-encher { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.cf-painel { opacity: 0; transition: opacity .5s ease; }
.cf-painel--ativo { opacity: 1; }
.cf-passo [data-stepper-word] { opacity: 0; transition: opacity .6s ease; }
.cf-passo--ativo [data-stepper-word] { opacity: 1; }

/* carrossel próprio no lugar do Swiper: o trilho anda por transform, nada rola de lado */
.cf-carrossel { overflow: hidden; }
.cf-trilho { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); will-change: transform; touch-action: pan-y; }
.cf-trilho > * { flex: 0 0 auto; }
.wr-cards-section .cf-trilho > .swiper-slide { width: min(100%, 420px); margin-right: 16px; }
.wr-showreel .cf-trilho > .swiper-slide { width: min(1249px, 100%); }
.cf-anterior[disabled], .cf-proximo[disabled] { opacity: .35; pointer-events: none; }
.cf-ativo .wr-showreel-overlay, .cf-ativo .testimonial-content { opacity: 1; transform: none; pointer-events: auto; }
.wr-showreel .wr-showreel-slide { opacity: .5; } .wr-showreel .wr-showreel-slide.cf-ativo { opacity: 1; }

/* 09: a situação do dia a dia, com o print real do celular no lugar da foto de cliente */
.cf-situacao-midia { background: radial-gradient(120% 90% at 85% 10%, #3d3d3d 0%, #1a1a1a 55%, #0d0d0d 100%); }
.cf-situacao-print { position: absolute; right: 8%; bottom: -6%; height: 96%; width: auto; border-radius: 36px 36px 0 0; box-shadow: 0 -10px 60px rgba(0,0,0,.55); }
@media (max-width: 1023.98px) { .cf-situacao-print { right: 50%; transform: translateX(50%); height: 118%; bottom: -24%; } }

/* 06: órbitas com os módulos do sistema (no lugar dos logos de terceiros) */
.cf-orbitas { position: relative; width: 100%; height: 100%; container-type: size; }
.cf-anel { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(5,5,5,.14); }
.cf-anel--2 { inset: 18%; } .cf-anel--3 { inset: 36%; }
.cf-giro { position: absolute; inset: 0; animation: cf-girar 70s linear infinite; }
.cf-giro--2 { animation-duration: 48s; animation-direction: reverse; }
.cf-orbita-item { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--ang)) translateX(calc(var(--rf) * 50cqw)); }
.cf-orbita-item .cf-orbita-bola { transform: translate(-50%, -50%) rotate(calc(-1 * var(--ang))); animation: cf-desgirar 70s linear infinite; }
.cf-giro--2 .cf-orbita-bola { animation-duration: 48s; animation-direction: reverse; }
.cf-orbita-bola { width: 92px; height: 92px; border-radius: 50%; background: #fff; color: #050505; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.06); position: absolute; }
.cf-orbita-bola--azul { background: var(--cf-azul); color: #fff; }
.cf-orbita-bola--preta { background: #050505; color: #fff; }
.cf-orbita-centro { position: absolute; left: 50%; top: 50%; width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #050505; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.cf-orbita-centro img { width: 68%; height: auto; }
@keyframes cf-girar { to { transform: rotate(360deg); } }
@keyframes cf-desgirar { from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--ang))); } to { transform: translate(-50%, -50%) rotate(calc(-1 * var(--ang) - 360deg)); } }
@media (max-width: 1023.98px) { .cf-orbita-bola { width: 56px; height: 56px; } .cf-orbita-bola svg { width: 22px; height: 22px; } }

/* 08: foto larga com dois pedaços reais da tela do celular flutuando (como os cartões da Qonto) */
.cf-foto-larga { background: #0b0b0b; }
.cf-foto-larga-img { object-position: 50% 78%; }
.cf-peca { position: absolute; width: clamp(220px, 23%, 330px); height: auto; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.2); }
.cf-peca--1 { left: 3%; top: 14%; }
.cf-peca--2 { left: 8%; bottom: 10%; }

/* 10: proteção */
.cf-protecao-icone { width: 72px; height: 72px; border-radius: 50%; background: #2c2c2c; display: flex; align-items: center; justify-content: center; color: #fff; }
.cf-protecao-item { max-width: 200px; }
.cf-saiba { color: #fff; }

/* rodapé: linha do produto + assinatura da VisionX, sem CNPJ */
.cf-logo-rodape { height: auto; width: min(343px, 70vw); }
.cf-rodape-base { flex-wrap: wrap; gap: 8px 24px; }
.cf-assinatura { display: inline-flex; align-items: center; gap: 8px; color: #050505; white-space: nowrap; }
.cf-assinatura svg { flex: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cf-giro, .cf-orbita-bola, .cf-barra--corpo { animation: none !important; }
  .cf-trilho, .cf-dobra, .cf-painel, .cf-menu { transition: none !important; }
}
