/* =========================================================================
   RBytes Comercial - página inicial (site público)
   ========================================================================= */
.publico { background: var(--rb-bg); }

/* ---------- Navbar ---------- */
.nav-publica { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; padding: 1.1rem 0; transition: all .25s ease; }
.nav-publica.rolada { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); box-shadow: var(--rb-shadow-sm); padding: .6rem 0; }
.nav-publica .nav-link { color: var(--rb-navy); font-weight: 600; padding: .5rem .9rem; border-radius: 8px; }
.nav-publica .nav-link:hover { background: rgba(47, 111, 237, .08); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 9.5rem 0 5rem; overflow: hidden; background: radial-gradient(900px 520px at 85% -5%, rgba(47, 111, 237, .22), transparent 60%), radial-gradient(640px 420px at -5% 85%, rgba(245, 165, 36, .18), transparent 60%), var(--rb-bg); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.07; letter-spacing: -.03em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--rb-blue), #7e3af2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--rb-muted); font-size: 1.15rem; max-width: 560px; }
.hero-pill { display: inline-flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--rb-border); padding: .35rem .95rem .35rem .4rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--rb-navy); box-shadow: var(--rb-shadow-sm); }
.hero-pill span { background: var(--rb-amber); color: var(--rb-navy); border-radius: 999px; padding: .2rem .65rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.hero-prova { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2rem; color: var(--rb-muted); font-size: .9rem; }
.hero-prova i { color: var(--rb-green); margin-right: .35rem; }

/* Mock de dashboard ilustrativo */
.hero-mock { background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(27, 42, 74, .2); border: 1px solid var(--rb-border); overflow: hidden; transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); transition: transform .5s ease; }
.hero-mock:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.mock-top { background: var(--rb-navy); padding: .8rem 1.1rem; display: flex; gap: .4rem; align-items: center; }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: inline-block; }
.mock-top span { margin-left: .6rem; color: rgba(255, 255, 255, .7); font-size: .75rem; font-weight: 600; }
.mock-corpo { padding: 1.1rem; display: grid; gap: .8rem; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mock-kpi { background: var(--rb-bg); border-radius: 12px; padding: .7rem .8rem; }
.mock-kpi small { display: block; color: var(--rb-muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.mock-kpi strong { color: var(--rb-navy); font-size: 1rem; }
.mock-kpi em { font-style: normal; font-size: .65rem; color: var(--rb-green); font-weight: 700; }
.mock-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; background: var(--rb-bg); border-radius: 12px; padding: .8rem; }
.mock-bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--rb-blue), #6f9cff); }
.mock-bars span:last-child { background: linear-gradient(180deg, var(--rb-amber), #ffc96b); }
.mock-linhas { display: grid; gap: .45rem; }
.mock-linha { display: flex; justify-content: space-between; align-items: center; background: var(--rb-bg); border-radius: 10px; padding: .55rem .8rem; font-size: .75rem; color: var(--rb-navy); font-weight: 600; }
.hero-flutuante { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--rb-shadow); padding: .75rem 1rem; display: flex; gap: .7rem; align-items: center; font-size: .82rem; font-weight: 600; color: var(--rb-navy); border: 1px solid var(--rb-border); animation: flutuar 5s ease-in-out infinite; }
.hero-flutuante i { font-size: 1.3rem; }
.hero-flutuante.um { right: -10px; top: 18%; animation-delay: .5s; }
.hero-flutuante.dois { left: -20px; bottom: 14%; }
@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Seções ---------- */
.secao { padding: 5rem 0; }
.secao-titulo { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.secao-titulo .rotulo { color: var(--rb-blue); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; display: block; margin-bottom: .6rem; }
.secao-titulo h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.02em; }
.secao-titulo p { color: var(--rb-muted); font-size: 1.05rem; margin: 0; }

.recurso { background: #fff; border: 1px solid var(--rb-border); border-radius: 18px; padding: 1.75rem; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.recurso:hover { transform: translateY(-4px); box-shadow: var(--rb-shadow); }
.recurso .icone { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.1rem; background: var(--rb-blue-100); color: var(--rb-blue); }
.recurso .icone.amber { background: var(--rb-amber-100); color: #b7791f; }
.recurso .icone.green { background: var(--rb-green-100); color: #1f8a5f; }
.recurso .icone.purple { background: var(--rb-purple-100); color: var(--rb-purple); }
.recurso h4, .recurso h3 { font-size: 1.1rem; }
.recurso p { color: var(--rb-muted); margin: 0; font-size: .95rem; }
.recurso ul { color: var(--rb-muted); font-size: .9rem; padding-left: 0; list-style: none; margin: .9rem 0 0; display: grid; gap: .35rem; }
.recurso ul li::before { content: '\2713'; color: var(--rb-green); font-weight: 700; margin-right: .5rem; }

.secao-escura { background: radial-gradient(800px 400px at 90% 10%, rgba(47, 111, 237, .35), transparent 60%), linear-gradient(160deg, var(--rb-navy-900), var(--rb-navy)); color: #fff; }
.secao-escura h2, .secao-escura h3, .secao-escura h4 { color: #fff; }
.secao-escura .secao-titulo p { color: rgba(255, 255, 255, .72); }
.secao-escura .secao-titulo .rotulo { color: var(--rb-amber); }
.diferencial { display: flex; gap: 1.1rem; padding: 1.6rem; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); height: 100%; transition: background .2s ease; }
.diferencial:hover { background: rgba(255, 255, 255, .09); }
.diferencial i { font-size: 1.7rem; color: var(--rb-amber); flex: none; }
.diferencial h4, .diferencial h3 { font-size: 1.05rem; }
.diferencial p { color: rgba(255, 255, 255, .72); margin: 0; font-size: .95rem; }

.passo { text-align: center; padding: 1.5rem 1rem; position: relative; }
.passo .num { width: 56px; height: 56px; border-radius: 50%; background: var(--rb-navy); color: #fff; font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; box-shadow: 0 10px 25px rgba(27, 42, 74, .25); }
.passo h5, .passo h3 { font-size: 1.05rem; }
.passo p { color: var(--rb-muted); margin: 0; font-size: .93rem; }

.plano { background: #fff; border: 1px solid var(--rb-border); border-radius: 20px; padding: 2rem; height: 100%; position: relative; display: flex; flex-direction: column; }
.plano.destaque { border-color: var(--rb-blue); box-shadow: 0 20px 50px rgba(47, 111, 237, .18); }
.plano .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--rb-blue); color: #fff; font-size: .7rem; font-weight: 700; padding: .3rem .85rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.plano h3 { font-size: 1.3rem; }
.plano .para { color: var(--rb-muted); font-size: .9rem; min-height: 2.6em; }
.plano .preco { font-size: 1.9rem; font-weight: 800; color: var(--rb-navy); letter-spacing: -.02em; margin-top: .25rem; }
.plano .preco small { font-size: .85rem; font-weight: 600; color: var(--rb-muted); letter-spacing: 0; }
.plano .preco { font-size: 1.9rem; font-weight: 800; color: var(--rb-navy); letter-spacing: -.02em; margin-top: .25rem; }
.plano .preco small { font-size: .85rem; font-weight: 600; color: var(--rb-muted); letter-spacing: 0; }
.plano ul { list-style: none; padding: 0; margin: 1.25rem 0; flex: 1; display: grid; gap: .5rem; }
.plano li { color: var(--rb-ink); display: flex; gap: .6rem; font-size: .93rem; }
.plano li i { color: var(--rb-green); }

.accordion-item { border: 1px solid var(--rb-border); border-radius: 14px !important; margin-bottom: .75rem; overflow: hidden; }
.accordion-button { font-weight: 600; color: var(--rb-navy); background: #fff; }
.accordion-button:not(.collapsed) { background: var(--rb-blue-100); color: var(--rb-blue-600); box-shadow: none; }
.accordion-body { color: var(--rb-muted); }

.cta-final { border-radius: 26px; background: linear-gradient(135deg, var(--rb-blue), #7e3af2); color: #fff; padding: 3.5rem 2rem; text-align: center; position: relative; overflow: hidden; }
.cta-final::before { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -120px; top: -160px; }
.cta-final h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-final p { color: rgba(255, 255, 255, .85); }

/* ---------- Rodapé ---------- */
.rodape { background: var(--rb-navy-900); color: rgba(255, 255, 255, .7); padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.rodape a { color: rgba(255, 255, 255, .75); }
.rodape a:hover { color: #fff; }
.rodape h6, .rodape .h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: 1rem; }

/* ---------- Páginas de conteúdo (soluções) ---------- */
.pular-conteudo { position: absolute; top: .5rem; left: .5rem; z-index: 2100; background: var(--rb-navy); color: #fff; padding: .6rem 1rem; border-radius: 10px; }
.pagina-topo { padding: 8.5rem 0 2.5rem; background: radial-gradient(900px 480px at 90% -10%, rgba(47, 111, 237, .18), transparent 60%), radial-gradient(600px 380px at -5% 90%, rgba(245, 165, 36, .14), transparent 60%); }
.pagina-topo h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -.03em; max-width: 900px; }
.pagina-topo .lead { color: var(--rb-muted); font-size: 1.12rem; max-width: 760px; margin-top: 1rem; }
.rotulo-pagina { display: inline-flex; align-items: center; color: var(--rb-blue); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: .75rem; }
.trilha { font-size: .85rem; margin-bottom: 1.25rem; --bs-breadcrumb-divider-color: var(--rb-muted); }
.trilha a { color: var(--rb-muted); }
.trilha .active { color: var(--rb-navy); font-weight: 600; }
.recurso .h4 { font-size: 1.1rem; }
.solucao-cartao { position: relative; display: flex; flex-direction: column; }
.solucao-cartao .h4 a { color: var(--rb-navy); }
.solucao-cartao .h4 a:hover { text-decoration: none; color: var(--rb-blue); }
.rotulo-cartao { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--rb-muted); margin-bottom: .35rem; }
.saiba-mais { margin-top: auto; padding-top: 1rem; color: var(--rb-blue); font-weight: 700; font-size: .9rem; }
.solucao-link { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--rb-border); border-radius: 14px; padding: 1rem 1.1rem; color: var(--rb-navy); height: 100%; transition: border-color .15s ease, box-shadow .15s ease; }
.solucao-link:hover { text-decoration: none; border-color: var(--rb-blue); box-shadow: var(--rb-shadow-sm); }
.solucao-link i { font-size: 1.4rem; color: var(--rb-blue); flex: none; }
.solucao-link strong { display: block; }
.solucao-link small { display: block; color: var(--rb-muted); font-size: .82rem; line-height: 1.3; }
.novidade { background: #fff; border: 1px solid var(--rb-border); border-radius: 18px; padding: 1.5rem; height: 100%; display: flex; flex-direction: column; gap: .5rem; transition: transform .2s ease, box-shadow .2s ease; position: relative; }
.novidade:hover { transform: translateY(-3px); box-shadow: var(--rb-shadow); }
.novidade i { font-size: 1.6rem; color: var(--rb-blue); }
.novidade h3 { font-size: 1.05rem; margin: 0; }
.novidade h3 a { color: var(--rb-navy); }
.novidade h3 a:hover { text-decoration: none; color: var(--rb-blue); }
.novidade p { color: var(--rb-muted); font-size: .92rem; margin: 0; }
.hero-pill:hover { text-decoration: none; border-color: var(--rb-blue); color: var(--rb-navy); }
