/* ==========================================================
   Bpeople — folha de estilos principal
   ========================================================== */
:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #06b6d4;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --success: #059669;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(79, 70, 229, .4); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { color: var(--primary-dark); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .5em .9em; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: .95rem;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--primary); }
.nav-links a.active { color: var(--primary); background: #eef2ff; }
.nav-links .btn { padding: .6em 1.2em; color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 88px;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(6, 182, 212, .14), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(79, 70, 229, .12), transparent 60%),
    var(--bg-soft);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); background: #eef2ff; padding: .4em 1em; border-radius: 999px; margin-bottom: 18px;
}
.hero-card {
  background: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero-card .row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.hero-card .row:last-child { border-bottom: 0; }
.hero-card .ico { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eef2ff; color: var(--primary); }
.hero-card strong { color: var(--ink); display: block; }
.hero-card small { color: var(--muted); }

.page-hero { padding: 72px 0 56px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 720px; }

/* ---------- Secções ---------- */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gradient); color: #fff; margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ERP badges */
.erp-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.erp-badge {
  padding: .55em 1.2em; border-radius: 12px; font-weight: 700; color: var(--ink);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
}

/* Etapas */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 30px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; }

/* Faixa CTA */
.cta-band {
  background: var(--gradient); color: #fff; border-radius: 24px; padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .92; }

/* ---------- Página licenças ---------- */
.question-hero {
  padding: 96px 0; text-align: center; color: #fff;
  background: radial-gradient(900px 500px at 50% 0%, rgba(6, 182, 212, .35), transparent 60%), #0f172a;
}
.question-hero h1 { color: #fff; max-width: 900px; margin: 0 auto .5em; }
.question-hero p { color: #cbd5e1; font-size: 1.15rem; max-width: 720px; margin: 0 auto 1.8em; }
.pain-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.pain-tags span {
  padding: .55em 1.2em; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  color: #e2e8f0; font-weight: 500;
}

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare .card { padding: 36px; }
.compare .bad { border-top: 5px solid #f43f5e; }
.compare .good { border-top: 5px solid var(--success); }
.compare .bad h3 { color: #be123c; }
.compare .good h3 { color: var(--success); }

.equation {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; text-align: center;
  font-size: 1.15rem; font-weight: 600; color: var(--ink);
}
.equation .box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 26px; box-shadow: var(--shadow); }
.equation .op { font-size: 2rem; color: var(--primary); }

.calc { background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.calc-result {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center;
}
.calc-result div { background: var(--bg-soft); border-radius: 16px; padding: 22px 12px; }
.calc-result small { display: block; color: var(--muted); font-size: .85rem; }
.calc-result strong { font-size: 1.7rem; color: var(--ink); }
.calc-result .highlight { background: #ecfdf5; }
.calc-result .highlight strong { color: var(--success); }
.calc-note { font-size: .85rem; color: var(--muted); margin-top: 16px; text-align: center; }

/* ---------- Apps ---------- */
.phone {
  width: 250px; height: 500px; margin: 0 auto; border-radius: 40px; background: #0f172a; padding: 14px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, .25); position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 20px; border-radius: 20px; background: #0f172a; z-index: 2;
}
.phone-screen {
  height: 100%; border-radius: 28px; background: var(--gradient); padding: 56px 18px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.phone-screen .bar { height: 54px; border-radius: 14px; background: rgba(255, 255, 255, .22); }
.phone-screen .bar.big { height: 120px; background: rgba(255, 255, 255, .9); }
.phone-screen .bar.short { width: 60%; height: 18px; border-radius: 8px; background: rgba(255, 255, 255, .6); }
.platforms { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.platform {
  display: inline-flex; align-items: center; gap: 10px; padding: .7em 1.2em; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 600;
}
.platform svg { width: 22px; height: 22px; }

/* ---------- Formulário ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-info .item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-info .ico {
  flex: 0 0 50px; height: 50px; border-radius: 14px; background: var(--gradient); color: #fff; display: grid; place-items: center;
}
.contact-info .ico svg { width: 22px; height: 22px; }
.contact-info strong { display: block; color: var(--ink); }
.contact-info a { font-size: 1.1rem; font-weight: 600; }

.form { background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: .85em 1em; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.consent input { width: auto; margin-top: 4px; }
.form-msg { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.form-msg.ok { display: block; background: #ecfdf5; color: var(--success); }
.form-msg.err { display: block; background: #fff1f2; color: #be123c; }

/* ---------- Rodapé ---------- */
.site-footer { background: #0f172a; color: #94a3b8; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo img { width: 44px; height: 44px; }
.footer-logo span { color: #fff; font-size: 1.6rem; font-weight: 700; }
.footer-logo span em { font-style: normal; font-weight: 500; color: #a5b4fc; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 22px; font-size: .88rem; text-align: center; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 20px; gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8em 1em; }
  .nav-links .btn { margin-top: 8px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .compare, .form-row, .calc-result, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; }
  .cta-band, .calc, .form { padding: 28px 22px; }
  .logo img { height: 36px; }
}

/* ---------- Área de cliente ---------- */
.nav-links a.nav-client { display: inline-flex; align-items: center; gap: 6px; }

.auth { min-height: calc(100vh - 77px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; overflow: hidden; color: #fff; padding: 64px;
  display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(700px 400px at 20% 0%, rgba(6, 182, 212, .35), transparent 60%), #0f172a;
}
.auth-side h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.auth-side p { color: #cbd5e1; max-width: 440px; }
.auth-side .check-list li { color: #e2e8f0; }
.auth-side .check-list li::before { background-color: rgba(16, 185, 129, .2); }
.auth-side img { width: 64px; height: 64px; margin-bottom: 28px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 20px; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.auth-card h2 { margin-bottom: .2em; }
.auth-card > p { color: var(--muted); margin-bottom: 28px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: var(--muted); padding: 8px; border-radius: 8px;
}
.pw-toggle:hover { color: var(--primary); }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; font-size: .9rem; }
.auth-row label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; color: var(--text); }
.auth-row input { width: auto; }
.auth-card .btn { width: 100%; }
.auth-help { text-align: center; font-size: .9rem; color: var(--muted); margin: 22px 0 0; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-side { padding: 48px 20px; }
}
@media (max-width: 640px) {
  .auth-card { padding: 28px 22px; }
}

/* ---------- Logótipo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: 40px; }
.logo span, .footer-logo span {
  font-size: 1.75rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--ink);
}
.footer-logo span { color: #fff; }
@media (max-width: 640px) {
  .logo img { height: 34px; width: 34px; }
  .logo span { font-size: 1.5rem; }
}

/* ---------- Redes sociais ---------- */
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: #1e293b; color: #cbd5e1; transition: background .15s, color .15s, transform .15s;
}
.social a:hover { background: var(--gradient); color: #fff; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.contact-info .social { margin-top: 10px; }
.contact-info .social a { background: #eef2ff; color: var(--primary); }
.contact-info .social a:hover { color: #fff; }
.follow { margin-top: 8px; }
.follow strong { color: var(--ink); }
