:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f7fb;
  --card: #ffffff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #0f766e;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.portal {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.topbar .wrap, .nav .wrap, .footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar .wrap { min-height: 36px; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.brand small { display: block; font-size: 10px; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.menu { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 650; color: #334155; }
.menu a:hover { color: var(--blue); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 750;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, .22); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(37, 99, 235, .28); }
.btn-ghost { background: #fff; border-color: #cbd5e1; color: var(--ink); }
.btn-ghost:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 23, 42, .08); }
.btn-nav { background: var(--blue); color: #fff; border-radius: 999px; padding: 10px 16px; }
.btn-nav:hover { transform: translateY(-2px); }
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.kicker { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
h1 { font-size: 46px; line-height: 1.05; letter-spacing: -.03em; margin: 0; }
h1 span { color: var(--green); }
.lead { color: #475569; font-size: 16px; line-height: 1.55; max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.pills { display: flex; flex-wrap: wrap; gap: 14px; color: #475569; font-size: 13px; font-weight: 650; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}
.sample { padding: 18px; }
.sample-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.badge { font-size: 11px; font-weight: 750; border-radius: 999px; padding: 4px 8px; background: #ecfdf5; color: #047857; }
.person { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid #f1f5f9; font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 999px; display: inline-grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; margin-right: 8px; }
.av-a { background: #2563eb; }
.av-b { background: #d97706; }
.av-c { background: #0f766e; }
.gap-top { margin-top: 16px; }
.full { width: 100%; margin-top: 12px; }
.lead.auto { margin-left: auto; margin-right: auto; }
.seal { margin-top: 8px; background: #f0fdf4; border-radius: 14px; padding: 12px; font-size: 13px; }
.note { display: inline-block; margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.1fr .9fr; }
.mini, .price, .sec-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; transition: transform .18s ease, box-shadow .18s ease; }
.mini:hover, .price:hover, .sec-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(15, 23, 42, .08); }
.mini strong, .sec-card strong { display: block; margin-bottom: 4px; }
.mini p, .sec-card p, .price p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
section { padding: 28px 0; }
.section-title { font-size: 32px; letter-spacing: -.03em; margin: 8px 0; }
.center { text-align: center; }
.pill { display: inline-block; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; background: #eff6ff; color: var(--blue); }
.price { position: relative; padding: 22px; }
.price.featured { border-color: #bfdbfe; box-shadow: 0 18px 40px rgba(37, 99, 235, .12); }
.ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 4px 10px; }
.amount { font-size: 42px; font-weight: 800; letter-spacing: -.04em; margin: 14px 0 0; }
.amount span { font-size: 16px; color: var(--muted); font-weight: 700; }
.year { color: var(--muted); font-size: 13px; min-height: 18px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14px; }
.ticks li { margin: 8px 0; }
.toggle { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 16px 0; font-size: 14px; font-weight: 700; }
.switch { width: 42px; height: 24px; border-radius: 999px; border: 0; background: #cbd5e1; position: relative; cursor: pointer; }
.switch.on { background: var(--blue); }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.switch.on i { left: 21px; }
.footer { background: #fff; border-top: 1px solid var(--line); padding: 18px 0; color: var(--muted); font-size: 13px; }
.footer strong { color: #334155; letter-spacing: .04em; }
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; }
.side nav { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.side a, .side button.linkish { text-align: left; background: transparent; border: 0; border-radius: 12px; padding: 10px 12px; color: #334155; font-weight: 650; cursor: pointer; }
.side a.on, .side a:hover { background: #eff6ff; color: var(--blue); }
.side .back { margin-top: auto; }
.main { padding: 22px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stat b { display: block; font-size: 28px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .04em; color: var(--muted); padding: 8px; }
.table td { padding: 10px 8px; border-top: 1px solid #f1f5f9; }
.tag { border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 750; background: #f1f5f9; }
.tag.em_dia, .tag.ok { background: #ecfdf5; color: #047857; }
.tag.atrasado { background: #fff1f2; color: #be123c; }
.tag.aguardando { background: #fffbeb; color: #b45309; }
.hidden { display: none !important; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.field input, .field select { border: 1px solid #cbd5e1; border-radius: 12px; padding: 10px 12px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid input, .form-grid select, #filtro, #owner-confirm-phrase {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
}
button:disabled { opacity: .45; cursor: default; }
.alert { font-size: 14px; color: #334155; }
.menu-btn { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.texto-legal {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 36px 44px;
}
.texto-legal h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 8px; }
.texto-legal h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.texto-legal p, .texto-legal li { font-size: 0.95rem; line-height: 1.6; }
.texto-legal ul { margin: 6px 0 14px; padding-left: 1.2rem; }
.texto-legal .quando { color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; }
.texto-legal .empresa { font-weight: 700; margin: 0; }
@media (max-width: 900px) {
  .hero-grid, .grid-4, .grid-3, .grid-2, .stats, .shell, .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  .menu { display: none; }
  .menu.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; right: 16px; top: 72px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
  .menu-btn { display: inline-flex; }
  .texto-legal { padding: 22px 18px 32px; }
  .shell { display: block; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
}
