:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #d8dee6;
  --navy: #0f2942;
  --navy-light: #1a3f63;
  --accent: #e06d06;
  --accent-hover: #c55d03;
  --primary: #145388;
  --primary-hover: #0e3d66;
  --text: #1c2530;
  --muted: #5f6f81;
  --success: #18794e;
  --success-bg: #e7f6ee;
  --warn: #ad5700;
  --warn-bg: #fff3e0;
  --danger: #b42318;
  --danger-bg: #fee4e2;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(15, 41, 66, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.45; }

.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0b1e31 0%, #163b5e 60%, #1e4d78 100%);
  padding: 20px;
}
.auth-card {
  width: 100%; max-width: 440px; background: var(--surface); border-radius: 12px;
  padding: 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.brand-badge {
  background: var(--accent); color: #fff; font-weight: 700; padding: 6px 10px;
  border-radius: 6px; letter-spacing: 0.4px; font-size: 12px;
}
.auth-card h1 { font-size: 19px; margin: 0; color: var(--navy); }
.auth-card p { margin: 6px 0 18px; color: var(--muted); }

.shell { display: grid; grid-template-columns: 230px 1fr; grid-template-rows: 54px 1fr; min-height: 100vh; }

.topbar {
  grid-column: 1 / -1; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; gap: 12px; border-bottom: 3px solid var(--accent);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-title { font-weight: 700; font-size: 14px; white-space: nowrap; }
.topbar-center { flex: 1; max-width: 420px; position: relative; }
.menu-search {
  width: 100%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; border-radius: 6px; padding: 6px 10px; font-size: 12px; outline: none;
}
.menu-search::placeholder { color: rgba(255,255,255,0.65); }
.search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50; margin-top: 4px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; box-shadow: 0 12px 28px rgba(0,0,0,0.18); max-height: 280px; overflow: auto;
}
.search-item { padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; border-bottom: 1px solid #f0f2f5; }
.search-item:hover { background: var(--surface-alt); }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.company-select, .comp-input {
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; border-radius: 6px; padding: 5px 8px; font-size: 12px;
}
.company-select option { color: var(--text); background: var(--surface); }

.sidebar {
  background: #142a40; color: #dbe5f0; padding: 10px 8px; overflow-y: auto;
  border-right: 1px solid #0e1e2e;
}
.nav-group { font-size: 10px; text-transform: uppercase; letter-spacing: 0.7px; color: #7e97b0; padding: 10px 10px 4px; font-weight: 700; }
.nav-btn {
  width: 100%; text-align: left; background: transparent; border: none; color: #dbe5f0;
  padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 12.5px;
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px;
}
.nav-btn:hover { background: rgba(255,255,255,0.08); }
.nav-btn.active { background: var(--accent); color: #fff; font-weight: 600; }

.main { padding: 18px 22px; overflow-y: auto; max-width: 1400px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.page-header h2 { margin: 0; font-size: 18px; color: var(--navy); }
.page-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: var(--shadow);
}
.kpi-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.kpi-val { font-size: 19px; font-weight: 700; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.card h3 { margin: 0 0 12px; font-size: 14px; color: var(--navy); border-bottom: 1px solid #edf0f5; padding-bottom: 8px; }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab-btn {
  background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 6px;
  cursor: pointer; font-size: 12px; color: var(--text); font-weight: 500;
}
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.field label { font-size: 11px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--border); border-radius: 6px; padding: 7px 9px; font-size: 12.5px;
  background: #fff; color: var(--text); font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(20,83,136,0.22); border-color: var(--primary); }

.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.btn {
  border: none; border-radius: 6px; padding: 7px 13px; cursor: pointer; font-size: 12px; font-weight: 600;
  background: var(--primary); color: #fff;
}
.btn:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface-alt); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 4px 8px; font-size: 11px; }

table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
th { background: var(--surface-alt); color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: #fafbfd; }

.badge { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; }
.badge-ok { background: var(--success-bg); color: var(--success); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: #e8f1fa; color: var(--primary); }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px;
  background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 6px; overflow: auto;
  max-height: 360px; white-space: pre-wrap;
}

.toast {
  position: fixed; bottom: 18px; right: 18px; z-index: 100; padding: 10px 14px;
  border-radius: 8px; color: #fff; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.toast-ok { background: var(--success); }
.toast-err { background: var(--danger); }

/* ---- Landing Page Corporativa Padrão Thomson Reuters / Soluções Domínio ---- */
.lp-page {
  min-height: 100vh;
  background: #f6f7f9;
  color: #12151a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.lp-topbar-utility {
  background: #0a0d12;
  color: #94a3b8;
  font-size: 11px;
  padding: 7px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.3px;
}
.lp-topbar-utility strong { color: #ff6100; font-weight: 700; }

.lp-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(18, 21, 26, 0.97);
  backdrop-filter: blur(12px);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 40px;
  border-bottom: 3px solid #ff6100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}
.lp-brand-wrap { display: flex; align-items: center; gap: 14px; }
.lp-tr-mark {
  background: #ff6100; color: #fff; font-weight: 800; font-size: 11.5px;
  padding: 6px 11px; border-radius: 4px; letter-spacing: 0.7px; text-transform: uppercase;
}
.lp-brand-title { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.lp-brand-sub { font-size: 11px; color: #94a3b8; display: block; font-weight: 400; }

.lp-nav-links { display: flex; gap: 22px; align-items: center; font-size: 13px; }
.lp-nav-links a { color: #e2e8f0; text-decoration: none; font-weight: 500; transition: color 0.15s; }
.lp-nav-links a:hover { color: #ff6100; }

.lp-hero {
  position: relative;
  background-color: #08101b;
  background-image:
    linear-gradient(90deg, rgba(7, 13, 22, 0.88) 0%, rgba(10, 21, 36, 0.62) 48%, rgba(10, 21, 36, 0.14) 100%),
    url('/hero-bg.jpg'),
    url('/hero-bg.png'),
    url('/hero-bg.svg');
  background-size: cover, cover, cover, cover;
  background-position: center, center right, center right, center right;
  background-repeat: no-repeat;
  color: #fff;
  padding: 86px 40px 92px;
  border-bottom: 1px solid #1e293b;
}
.lp-hero-inner {
  max-width: 1340px; margin: 0 auto;
  display: block;
}
.lp-hero-content {
  max-width: 720px;
}
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 97, 0, 0.16); border: 1px solid rgba(255, 97, 0, 0.55);
  color: #ffb080; padding: 6px 14px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
}
.lp-h1 {
  font-size: clamp(30px, 3.7vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin: 18px 0 16px;
  font-weight: 800;
  color: #ffffff;
}
.lp-h1 span { color: #ff7a29; }
.lp-lead {
  font-size: 16px;
  line-height: 1.62;
  color: #cbd5e1;
  max-width: 660px;
  margin: 0 0 26px;
}
.lp-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-top: 30px;
}
@media (max-width: 720px) {
  .lp-metrics { grid-template-columns: repeat(2, 1fr); }
}
.lp-metric-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 3px solid #ff6100;
  border-radius: 8px; padding: 12px 14px;
}
.lp-metric-num { font-size: 21px; font-weight: 800; color: #ffffff; font-variant-numeric: tabular-nums; }
.lp-metric-lbl { font-size: 11px; color: #94a3b8; margin-top: 3px; }

/* Interactive Showcase Window on Hero Right */
.lp-showcase-win {
  background: #ffffff;
  color: #12151a;
  border-radius: 14px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.lp-win-bar {
  background: #12151a;
  color: #e2e8f0;
  padding: 11px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid #ff6100;
}
.lp-win-dots { display: flex; gap: 6px; }
.lp-win-dot { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.lp-win-dot.orange { background: #ff6100; }
.lp-win-tabs {
  display: flex; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; padding: 6px 10px 0; gap: 6px; flex-wrap: wrap;
}
.lp-win-tab {
  border: none; background: transparent; padding: 8px 12px; font-size: 12px; font-weight: 700;
  color: #475569; cursor: pointer; border-bottom: 2.5px solid transparent;
}
.lp-win-tab.active {
  color: #12151a; border-bottom-color: #ff6100; background: #fff; border-radius: 6px 6px 0 0;
}
.lp-win-body { padding: 22px 24px; }

.lp-section { max-width: 1340px; margin: 0 auto; padding: 60px 40px; }
.lp-sec-head { text-align: center; max-width: 820px; margin: 0 auto 38px; }
.lp-sec-head h2 {
  font-size: clamp(24px, 2.7vw, 34px);
  color: #12151a; letter-spacing: -0.025em; margin: 10px 0 12px; font-weight: 800;
}
.lp-sec-head p { color: #526071; font-size: 15px; margin: 0; line-height: 1.6; }

/* Solution Explorer Switcher (One | Pro | Max | Empresarial) */
.lp-sol-switcher {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px;
}
.lp-sol-pill {
  background: #ffffff; border: 1.5px solid #d0d7e2; color: #1e293b;
  padding: 11px 22px; border-radius: 8px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: all 0.15s ease;
}
.lp-sol-pill:hover { border-color: #ff6100; color: #ff6100; }
.lp-sol-pill.active {
  background: #12151a; color: #ffffff; border-color: #12151a;
  box-shadow: 0 8px 20px rgba(18, 21, 26, 0.18);
}
.lp-sol-pill.active span { color: #ff6100; }

.lp-sol-spotlight {
  background: #ffffff;
  border: 1px solid #d8dee6;
  border-top: 4px solid #ff6100;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 14px 36px rgba(15, 41, 66, 0.07);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center;
}
@media (max-width: 920px) {
  .lp-sol-spotlight { grid-template-columns: 1fr; }
}

.lp-toggle-wrap {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 20px 0 32px;
}
.lp-Pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 22px; align-items: stretch;
}
.lp-plan-card {
  background: #ffffff;
  border: 1px solid #d8dee6;
  border-radius: 14px;
  padding: 26px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 6px 22px rgba(15, 41, 66, 0.06);
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.lp-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 41, 66, 0.12);
}
.lp-plan-card.featured {
  border: 2.5px solid #ff6100;
  background: linear-gradient(180deg, #fff8f3 0%, #ffffff 26%);
  box-shadow: 0 20px 44px rgba(255, 97, 0, 0.15);
}
.lp-plan-badge {
  position: absolute; top: -12px; left: 22px;
  background: #ff6100; color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px;
  padding: 4px 12px; border-radius: 999px; text-transform: uppercase;
}
.lp-plan-title { font-size: 22px; font-weight: 800; color: #12151a; margin: 6px 0 6px; letter-spacing: -0.02em; }
.lp-plan-sub { font-size: 13px; color: #526071; min-height: 40px; margin-bottom: 16px; line-height: 1.45; }
.lp-price-box {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 16px; margin-bottom: 16px;
}
.lp-price-old { font-size: 12px; color: #94a3b8; text-decoration: line-through; }
.lp-price-big {
  font-size: 36px; font-weight: 800; color: #12151a;
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1.1;
}
.lp-price-big small { font-size: 13px; font-weight: 500; color: #64748b; }
.lp-price-save {
  display: inline-block; margin-top: 8px;
  background: #e7f6ee; color: #18794e;
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 6px;
}
.lp-boletos-pill {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff3eb; border: 1px solid #ffd5b8; color: #b84500;
  padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; margin-bottom: 14px;
}
.lp-feat-list { list-style: none; padding: 0; margin: 0 0 22px; font-size: 12.5px; }
.lp-feat-list li {
  padding: 7px 0; border-bottom: 1px dashed #eef2f6;
  display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; color: #1e293b;
}
.lp-feat-list li::before {
  content: "✔"; color: #ff6100; font-weight: 800; flex-shrink: 0;
}
.lp-cta-btn {
  width: 100%; padding: 13px 16px; font-size: 13.5px; font-weight: 700;
  border-radius: 8px; cursor: pointer; border: none; transition: background 0.15s;
}
.lp-risk-micro {
  text-align: center; font-size: 11px; color: #64748b; margin-top: 8px;
}
.lp-steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}
.lp-step-card {
  background: #fff; border: 1px solid #d8dee6; border-radius: 12px; padding: 20px;
  box-shadow: 0 4px 12px rgba(15, 41, 66, 0.04);
}
.lp-step-num {
  display: inline-flex; width: 30px; height: 30px; border-radius: 6px;
  background: #ff6100; color: #ffffff; font-weight: 800; font-size: 13.5px;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.lp-matrix-table th {
  background: #12151a; color: #ffffff; padding: 12px 14px; font-size: 12px;
}
.lp-matrix-table td {
  padding: 10px 14px; font-size: 12.5px;
}
.lp-matrix-cat {
  background: #eef2f6; font-weight: 800; color: #0f2942; text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px;
}
.email-preview-box {
  background: #f1f5f9; border: 2px solid #18794e; border-radius: 10px; padding: 16px; margin-top: 14px;
}

.lp-login-modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 15, 26, 0.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.lp-footer {
  background: #0b1017;
  color: #cbd5e1;
  border-top: 3px solid #ff6100;
  padding: 44px 40px 28px;
  margin-top: 40px;
}
.lp-footer-inner {
  max-width: 1340px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lp-footer-bottom {
  max-width: 1340px; margin: 18px auto 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: #94a3b8;
}
.lp-footer-credit {
  color: #ffffff; font-weight: 700;
}
.lp-footer-credit span {
  color: #ff7a29;
}
