/* ============ Portal Control - Site Publico ============ */
:root {
  --primary: #d62828;
  --primary-dark: #a71c1c;
  --primary-soft: #fdecec;
  --ink: #16202e;
  --muted: #5b6b7c;
  --line: #e8ecf1;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --whatsapp: #16a34a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 32, 46, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }

.container { width: min(1180px, 92%); margin: 0 auto; }
.container-narrow { width: min(820px, 92%); margin: 0 auto; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 4.4vw, 50px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 44px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; font-weight: 900; color: var(--primary); letter-spacing: 0.02em; }
.brand-text small { font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: 0.08em; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.site-nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--whatsapp); color: #fff !important; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(22,163,74,.28);
}
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 800; font-size: 14px; text-decoration: none; letter-spacing: 0.02em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(214,40,40,.3); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 8px 22px rgba(22,163,74,.3); }
.btn-whatsapp:hover { background: #12813b; }
.btn-outline { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--primary); }
.link-arrow::after { content: ' \2192'; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 320px at 85% -10%, rgba(214,40,40,.10), transparent 60%),
    radial-gradient(700px 300px at 0% 110%, rgba(214,40,40,.07), transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; padding: 64px 0 56px; }
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.badge-red { background: var(--primary-soft); color: var(--primary); }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 20px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.hero-trust li { font-size: 13.5px; font-weight: 600; color: var(--muted); position: relative; padding-left: 20px; }
.hero-trust li::before { content: '✔'; position: absolute; left: 0; color: var(--whatsapp); font-weight: 900; }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.hero-card-header {
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .12em;
  padding: 12px 18px; display: flex; align-items: center; gap: 10px;
}
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero-monitor { list-style: none; margin: 0; padding: 8px 0; }
.hero-monitor li {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px;
  border-bottom: 1px dashed var(--line); font-size: 13.5px; font-weight: 700;
}
.hero-monitor li:last-child { border-bottom: 0; }
.hero-monitor small { margin-left: auto; font-size: 10.5px; color: var(--muted); letter-spacing: .08em; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-ok { background: #22c55e; }
.hero-card-footer { background: var(--bg-alt); padding: 11px 18px; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .08em; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-head p { color: var(--muted); font-size: 16.5px; }
.eyebrow { display: block; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .14em; margin-bottom: 10px; }

.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: 14.5px; }
.card-highlight { border-top: 4px solid var(--primary); }
.icon-wrap {
  width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px;
}
.icon-wrap.small { width: 44px; height: 44px; font-size: 22px; }
.check-list { list-style: none; padding: 0; margin: 14px 0; }
.check-list li { padding-left: 24px; position: relative; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.check-list li::before { content: '✔'; position: absolute; left: 0; color: var(--whatsapp); font-weight: 900; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  background: var(--primary); color: #fff; font-weight: 900; border-radius: 50%; margin-bottom: 14px;
}
.steps p { color: var(--muted); font-size: 14.5px; }
.center-cta { text-align: center; margin-top: 38px; }

/* ---------- Planos ---------- */
.plans-grid { align-items: stretch; }
.plan-card { text-align: center; position: relative; display: flex; flex-direction: column; }
.plan-card .btn { margin-top: auto; }
.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 800;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .08em; white-space: nowrap;
}
.plan-featured { border-color: var(--primary); box-shadow: 0 12px 34px rgba(214,40,40,.14); }
.plan-price { font-size: 30px; font-weight: 900; color: var(--primary); margin: 12px 0 18px; }
.plan-price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan-cat-title { margin: 34px 0 18px; font-size: 20px; color: var(--ink); }
.plan-cat-title:first-of-type { margin-top: 0; }
.plans-note { text-align: center; margin-top: 28px; color: var(--muted); }

/* ---------- Areas ---------- */
.areas-list {
  list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.areas-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  font-size: 14.5px; color: var(--muted);
}
.areas-list strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; color: var(--primary); font-size: 22px; font-weight: 800; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { color: var(--muted); padding-bottom: 14px; }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; text-align: center; padding: 64px 0;
}
.cta-final h2 { color: #fff; }
.cta-final p { opacity: .92; margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 54px 0 40px; }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer img { height: 44px; width: auto; background: #fff; padding: 4px 8px; border-radius: 8px; }
.footer-about { font-size: 14px; margin-top: 14px; }
.footer-cnpj { font-size: 12.5px; opacity: .7; }
.footer-contact, .footer-links { list-style: none; padding: 0; margin: 0; }
.footer-contact li { font-size: 14px; margin-bottom: 10px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-legal { margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 12.5px; opacity: .75; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(22,163,74,.42); transition: transform .18s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Page hero (subpaginas) ---------- */
.page-hero { background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); padding: 54px 0; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 700px; margin: 0 auto; }

/* ---------- Prose ---------- */
.prose h2 { font-size: 20px; margin-top: 30px; color: var(--primary); }
.prose p { color: var(--muted); }

/* ---------- Contrato / Assinatura ---------- */
.sign-body { background: var(--bg-alt); }
.sign-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border-bottom: 1px solid var(--line); padding: 12px 5%;
}
.sign-header img { height: 42px; width: auto; }
.sign-header span { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.sign-wrap { width: min(880px, 94%); margin: 28px auto 60px; }
.sign-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sign-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px; background: var(--line); border-bottom: 1px solid var(--line); }
.sign-meta div { background: var(--bg-alt); padding: 14px 18px; }
.sign-meta span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.sign-meta strong { font-size: 14.5px; }
.contract-doc { padding: 34px 38px; }
.contract-doc h1 { font-size: 22px; text-align: center; margin-bottom: 24px; text-transform: uppercase; }
.contract-content { font-size: 14.5px; color: #243244; line-height: 1.75; text-align: justify; }
.sign-form { border-top: 1px solid var(--line); padding: 28px 38px 34px; background: var(--bg-alt); }
.sign-form h2 { font-size: 19px; }
.sign-help { color: var(--muted); font-size: 13.5px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14.5px; background: #fff;
}
.field input:focus { outline: 2px solid rgba(214,40,40,.25); border-color: var(--primary); }
.field small { color: var(--muted); font-size: 12px; display: block; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.check input { margin-top: 3px; }
.photo-preview img { max-height: 220px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 14px; }
.sign-legal { font-size: 11.5px; color: var(--muted); margin-top: 16px; text-align: center; }
.sign-evidence { margin-top: 30px; border-top: 2px dashed var(--line); padding-top: 22px; }
.sign-evidence h3 { font-size: 15px; }
.sign-evidence ul { list-style: none; padding: 0; font-size: 13.5px; color: var(--muted); }
.sign-evidence li { margin-bottom: 6px; }
.sign-evidence .hash { font-size: 11px; word-break: break-all; }
.sign-photo span { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.sign-photo img { max-height: 340px; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- Alerts ---------- */
.alert { padding: 13px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.alert-success { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.status { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; letter-spacing: .05em; }
.status-RASCUNHO, .status-ABERTA { background: #f1f5f9; color: #475569; }
.status-ENVIADO, .status-AGENDADA { background: #eff6ff; color: #1d4ed8; }
.status-ASSINADO, .status-PAGA, .status-GANHO { background: #ecfdf5; color: #15803d; }
.status-CANCELADO, .status-EXPIRADO, .status-VENCIDA, .status-PERDIDO { background: #fef2f2; color: #b91c1c; }

/* ---------- Print ---------- */
@media print {
  .no-print, .site-header, .whatsapp-float, .sign-header .btn { display: none !important; }
  .sign-card { box-shadow: none; border: 0; }
  .sign-body { background: #fff; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .areas-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: flex-start; padding: 16px 5%; gap: 14px; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .cards-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .contract-doc, .sign-form { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 560px) {
  .cards-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .areas-list { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
}
