:root {
  --bg: #eef2f9;
  --surface: #ffffff;
  --text: #0f1b3d;
  --muted: #55627f;
  --line: #dbe3f1;
  --navy: #0b1533;
  --primary: #2563eb;
  --primary-ink: #ffffff;
  --accent-soft: #e5edff;
  --green: #12a150;
  --red: #d93f3f;
  --amber: #f59e0b;
  --shadow: 0 10px 30px rgba(15, 27, 61, 0.08);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1128;
    --surface: #121b3a;
    --text: #eaf0ff;
    --muted: #a3b0d0;
    --line: #243056;
    --navy: #060b1c;
    --primary: #5b8cff;
    --primary-ink: #07102a;
    --accent-soft: #1a2750;
    --green: #38d27a;
    --red: #ff6b6b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Cabeçalho */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #c9d4f0; text-decoration: none; font-size: 15px; }
.nav a:hover { color: #fff; }
.nav .btn { color: #fff; }

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-soft); }
.topbar .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.topbar .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, #12214a 100%);
  color: #fff;
  padding: 72px 0 96px;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: #9fb7ff; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { font-size: 44px; line-height: 1.12; margin: 12px 0 16px; }
.hero p.lead { font-size: 18px; color: #c9d4f0; margin: 0 0 28px; max-width: 520px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.hero .note { margin-top: 18px; font-size: 14px; color: #9fb0d9; }

/* Painel ilustrativo */
.mock {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: 18px;
}
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-weight: 700; }
.mock-tag { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border-radius: 12px; padding: 12px 14px; color: #fff; }
.kpi small { display: block; opacity: 0.85; font-size: 12px; }
.kpi strong { font-size: 20px; }
.k1 { background: linear-gradient(135deg, #6d4aff, #8f6bff); }
.k2 { background: linear-gradient(135deg, #12a150, #36c57a); }
.k3 { background: linear-gradient(135deg, #f08a1c, #ffb046); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin: 16px 0 8px; padding: 0 4px; }
.bar { flex: 1; border-radius: 6px 6px 0 0; background: var(--green); }
.bar.neg { background: var(--red); }
.h30 { height: 30%; } .h45 { height: 45%; } .h60 { height: 60%; } .h75 { height: 75%; } .h90 { height: 90%; } .h20 { height: 20%; } .h35 { height: 35%; }
.mock-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* Seções */
section { padding: 72px 0; }
.section-title { font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
.section-sub { color: var(--muted); max-width: 640px; margin: 0 0 36px; font-size: 17px; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 14px;
}

.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green);
}
.checks li::after {
  content: "";
  position: absolute; left: 6px; top: 9px;
  width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Planos */
.plan { text-align: center; }
.plan .price { font-size: 34px; font-weight: 800; margin: 8px 0 4px; }
.plan .per { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; color: var(--muted); }
.plan li { padding: 4px 0; }
.plan.featured { border-color: var(--primary); box-shadow: 0 14px 36px rgba(37, 99, 235, 0.22); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); margin-bottom: 8px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Rodapé */
footer { background: var(--navy); color: #b9c6e8; padding: 36px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer a { color: #d6e0ff; margin-right: 18px; }
footer small { color: #8c9bc4; }

/* Páginas legais */
.legal { padding: 48px 0 72px; }
.legal .doc { max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.legal h1 { margin-top: 0; font-size: 32px; }
.legal h2 { margin-top: 32px; font-size: 22px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--accent-soft); }
.draft-banner { background: #fff4d6; color: #5a4300; border: 1px solid #f2d27a; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-size: 15px; }
@media (prefers-color-scheme: dark) {
  .draft-banner { background: #3a2e0a; color: #ffe29a; border-color: #6b5413; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .nav a.link { display: none; }
  section { padding: 52px 0; }
  .legal .doc { padding: 22px; }
}
