:root {
  --bg: #f3f6f2;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #14231f;
  --text: #273a34;
  --muted: #66776f;
  --faint: #92a099;
  --line: #d9e3dc;
  --line-strong: #c3d2c8;
  --green-950: #0d332c;
  --green-900: #123f35;
  --green-800: #195646;
  --green-700: #287158;
  --green-100: #e4f0e5;
  --navy-950: #0d1f36;
  --navy-900: #122b49;
  --navy-800: #173e66;
  --blue-100: #e8f0f6;
  --teal: #67a8a1;
  --teal-100: #dcefeb;
  --sand: #e9d8aa;
  --sand-100: #fff3d1;
  --orange: #bd6b2b;
  --orange-100: #fae3cd;
  --red: #a1433b;
  --red-100: #f5dedb;
  --slate: #617080;
  --slate-100: #e7edf1;
  --shadow: 0 20px 70px rgba(15, 46, 37, 0.11);
  --shadow-soft: 0 10px 28px rgba(15, 46, 37, 0.07);
  --radius-xs: 4px;
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 16px;
  --sidebar: 304px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family:
    Aptos,
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  letter-spacing: -0.006em;
  background:
    radial-gradient(
      circle at 8% -12%,
      rgba(103, 168, 161, 0.18),
      transparent 34rem
    ),
    radial-gradient(
      circle at 96% 0%,
      rgba(233, 216, 170, 0.36),
      transparent 30rem
    ),
    linear-gradient(180deg, #f8faf6, #eef4ef 64%, #f6f8f5);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(18, 63, 53, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 63, 53, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, black, transparent 86%);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid rgba(40, 113, 88, 0.24);
  outline-offset: 2px;
}
::selection {
  background: rgba(103, 168, 161, 0.34);
}

.container {
  width: min(1200px, calc(100% - 44px));
  margin-inline: auto;
}
.page {
  position: relative;
  z-index: 1;
}
.display,
.hero h1,
.section-title h2,
.score-big {
  font-family: Georgia, "Times New Roman", serif;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  color: var(--green-950);
}
.logo-mark {
  width: 36px;
  height: 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 63, 53, 0.2);
  border-radius: 9px;
  background: linear-gradient(135deg, #d4e4ce, #4e9474 58%, var(--green-950));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.6),
    0 10px 22px rgba(18, 63, 53, 0.16);
}
.logo-mark::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 18px;
  height: 24px;
  border-radius: 14px 3px 14px 3px;
  background: rgba(255, 253, 248, 0.9);
  transform: rotate(38deg);
}
.logo-mark::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 21px;
  width: 22px;
  height: 2px;
  border-radius: 8px;
  background: rgba(13, 51, 44, 0.58);
  transform: rotate(-35deg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 227, 220, 0.86);
  background: rgba(248, 250, 246, 0.88);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.site-nav a:hover {
  color: var(--green-800);
}
.header-actions,
.actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 46, 37, 0.04);
  transition: 0.18s ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 113, 88, 0.28);
  box-shadow: 0 10px 24px rgba(15, 46, 37, 0.08);
}
.btn.primary {
  border-color: var(--green-800);
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fffdf8;
  box-shadow: 0 16px 34px rgba(18, 63, 53, 0.22);
}
.btn.dark {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: white;
}
.btn.ghost {
  background: transparent;
  box-shadow: none;
}
.btn.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 2px solid var(--green-700);
  color: var(--green-800);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  padding: 78px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
  gap: 46px;
  align-items: center;
}
.hero h1 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}
.hero p {
  margin: 22px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.64;
}
.hero .actions {
  margin-top: 30px;
}
.compliance-note {
  margin-top: 18px;
  max-width: 620px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

.browser {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}
.browser-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf8, #f1f6f1);
}
.dots {
  display: flex;
  gap: 7px;
}
.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d98671;
}
.dots i:nth-child(2) {
  background: #e5c15e;
}
.dots i:nth-child(3) {
  background: #72b77d;
}
.browser-url {
  flex: 1;
  max-width: 360px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  background: white;
  font-size: 12px;
}
.product-ui {
  padding: 18px;
  background: #f7faf6;
}
.mini-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.mini-tab {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.mini-tab.active {
  background: var(--green-900);
  border-color: var(--green-900);
  color: white;
}
.hero-product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}
.hero-score {
  min-height: 214px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, var(--green-950), var(--navy-950));
  color: white;
}
.hero-score small,
.hero-score p {
  color: rgba(255, 255, 255, 0.72);
}
.hero-score strong {
  display: block;
  margin: 14px 0 4px;
  font:
    700 76px / 0.85 Georgia,
    serif;
  letter-spacing: -0.06em;
}
.hero-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.kpi-mini {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.kpi-mini small {
  color: var(--muted);
  font-size: 12px;
}
.kpi-mini strong {
  display: block;
  margin-top: 6px;
  color: var(--green-950);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.product-flow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.flow-chip {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}
.flow-chip strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.section {
  padding: 78px 0;
}
.section.alt {
  background: rgba(255, 255, 255, 0.44);
  border-block: 1px solid rgba(217, 227, 220, 0.72);
}
.section-title {
  max-width: 850px;
  margin-bottom: 28px;
}
.section-title.center {
  margin-inline: auto;
  text-align: center;
}
.section-title h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.section-title p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card,
.panel,
.app-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.card {
  padding: 22px;
}
.card h3 {
  margin: 12px 0 8px;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.card p,
.card li {
  color: var(--muted);
  line-height: 1.58;
}
.icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(40, 113, 88, 0.18);
  border-radius: 7px;
  background: linear-gradient(135deg, #eef7ef, #fffdf8);
  color: var(--green-800);
  font-weight: 900;
  font-size: 13px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.process-step {
  position: relative;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow-soft);
}
.process-step::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 14px;
  border-top: 2px solid var(--line-strong);
}
.process-step:nth-child(4)::after,
.process-step:last-child::after {
  display: none;
}
.process-step h3 {
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 16px;
}
.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow-soft);
}
table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}
th,
td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
th {
  color: var(--green-800);
  background: #f2f7f1;
  font-size: 11px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
tr:last-child td {
  border-bottom: 0;
}
tr.selectable:hover {
  background: #f8fbf7;
  cursor: pointer;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  width: max-content;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.badge.conforme,
.badge.baixo {
  color: #287158;
  background: #dff0e4;
  border-color: #b9d9c4;
}
.badge.atencao,
.badge.medio,
.badge.vencendo {
  color: #9a6b13;
  background: #fff0c9;
  border-color: #ead28d;
}
.badge.critico,
.badge.alto,
.badge.atrasado {
  color: #9f443c;
  background: #f6ddd9;
  border-color: #e4b7ae;
}
.badge.pendente,
.badge.na,
.badge.arquivado {
  color: var(--slate);
  background: var(--slate-100);
  border-color: #ccd8df;
}
.badge.demo,
.badge.navy {
  color: var(--navy-800);
  background: var(--blue-100);
  border-color: #c3d5e2;
}

.compare-card {
  padding: 26px;
}
.compare-card.highlight {
  border-color: rgba(40, 113, 88, 0.28);
  background: linear-gradient(180deg, #f0f8f1, #fffdf8);
}
.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check-list li::before {
  content: "✓";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 12px;
  font-weight: 900;
}
.callout {
  margin-top: 18px;
  padding: 16px;
  border-left: 4px solid var(--green-700);
  background: #f3f8f2;
  color: var(--green-900);
  font-weight: 800;
}
.demo-cards {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}
.demo-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow-soft);
}
.demo-preview {
  height: 92px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(135deg, #f5faf4, #e9f1ed);
  display: grid;
  gap: 6px;
  padding: 9px;
  margin-bottom: 12px;
}
.demo-preview i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--line-strong);
}
.demo-preview i:nth-child(2) {
  width: 72%;
  background: var(--teal);
}
.demo-preview i:nth-child(3) {
  width: 48%;
  background: var(--sand);
}
.demo-card h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 15px;
}
.demo-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* App */
.app-body {
  background: linear-gradient(180deg, #f4f7f4, #eef4ef);
}
.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 12px 0 34px rgba(15, 46, 37, 0.06);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.sidebar-brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.nav-section {
  margin-top: 22px;
}
.nav-label {
  margin: 0 9px 9px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.side-nav {
  display: grid;
  gap: 3px;
}
.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  border-left: 3px solid transparent;
  color: var(--muted);
  font-size: 14px;
}
.side-nav a:hover,
.side-nav a.active {
  color: var(--green-950);
  background: rgba(40, 113, 88, 0.055);
  border-left-color: var(--green-700);
}
.side-nav a.active {
  font-weight: 800;
}
.sidebar-card {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(40, 113, 88, 0.18);
  border-radius: 10px;
  background: linear-gradient(180deg, #edf8ef, #fff8e5);
}
.sidebar-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.app-main {
  min-width: 0;
  padding: 22px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.search,
.select,
.input,
.chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}
.search {
  min-width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}
.kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f3f7f1;
  color: var(--muted);
  font-size: 11px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 13px;
}
.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.app-header h1 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1;
}
.app-header p {
  max-width: 780px;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.58;
}
.app-grid {
  display: grid;
  gap: 16px;
}
.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.layout-detail {
  grid-template-columns: minmax(0, 1fr) 400px;
}
.layout-main-side {
  grid-template-columns: minmax(0, 1.32fr) 410px;
}
.panel,
.app-card {
  padding: 18px;
}
.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}
.panel-title h2,
.panel-title h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.panel-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.metric-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.metric-value {
  margin-top: 2px;
  color: var(--green-950);
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.metric-value.score {
  font:
    700 52px / 0.9 Georgia,
    serif;
  letter-spacing: -0.06em;
}
.metric-foot {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}
.next-action {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(40, 113, 88, 0.25);
  border-left: 5px solid var(--green-700);
  border-radius: 10px;
  background: linear-gradient(180deg, #f5fbf5, #fffdf8);
  box-shadow: var(--shadow-soft);
}
.next-action h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}
.next-action p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.list {
  display: grid;
  gap: 10px;
}
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}
.list-item h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}
.list-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.info-box {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf7;
}
.info-box small {
  display: block;
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 12px;
}
.info-box strong {
  color: var(--ink);
}
.detail-panel {
  position: sticky;
  top: 22px;
  align-self: start;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tab {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.tab.active {
  color: white;
  background: var(--green-900);
  border-color: var(--green-900);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}
.select,
.input {
  padding: 9px 11px;
  outline: 0;
}
.timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.timeline-row::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--green-700);
  box-shadow: 0 0 0 4px var(--green-100);
}
.chart-bars {
  display: grid;
  gap: 13px;
}
.chart-line {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.track {
  height: 11px;
  border-radius: 8px;
  background: #edf2ee;
  overflow: hidden;
}
.track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green-700), var(--teal));
}
.track.warn span {
  background: linear-gradient(90deg, #d9ae54, var(--orange));
}
.track.crit span {
  background: linear-gradient(90deg, #d98272, var(--red));
}
.track.na span {
  background: linear-gradient(90deg, #aab6bf, var(--slate));
}

/* map */
.map-layout {
  display: grid;
  grid-template-columns: minmax(640px, 1fr) 380px;
  gap: 16px;
}
.plant-map {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    linear-gradient(rgba(18, 63, 53, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 63, 53, 0.055) 1px, transparent 1px),
    #fffaf0;
  background-size: 42px 42px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    var(--shadow-soft);
}
.plant-map::after {
  content: "Croqui operacional · Indústria Modelo Campinas";
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: rgba(18, 63, 53, 0.42);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.zone {
  position: absolute;
  padding: 11px;
  border: 1px dashed rgba(18, 63, 53, 0.28);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.48);
}
.zone-prod {
  background: rgba(228, 238, 246, 0.46);
}
.zone-ete {
  background: rgba(103, 168, 161, 0.2);
}
.zone-res {
  background: rgba(233, 216, 170, 0.28);
}
.zone-chem {
  background: rgba(189, 107, 43, 0.14);
}
.zone-admin {
  background: rgba(228, 240, 229, 0.42);
}
.zone-util {
  background: rgba(215, 226, 236, 0.48);
}
.marker {
  position: absolute;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 3px solid #fffdf8;
  border-radius: 50%;
  color: white;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 0 0 7px rgba(18, 63, 53, 0.08),
    0 12px 22px rgba(15, 46, 37, 0.18);
  transition: 0.16s ease;
}
.marker:hover,
.marker.active {
  transform: scale(1.12);
  box-shadow:
    0 0 0 9px rgba(18, 63, 53, 0.1),
    0 14px 28px rgba(15, 46, 37, 0.22);
}
.mk-ok {
  background: #287158;
}
.mk-warn {
  background: #c48a24;
}
.mk-crit {
  background: #a1433b;
}
.mk-na {
  background: #788690;
}

.checklist {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
}
.question {
  padding: 15px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green-700);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}
.question h4 {
  margin: 0 0 10px;
  color: var(--ink);
}
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.segmented button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}
.segmented button.active {
  color: var(--green-900);
  background: var(--green-100);
  border-color: #b9d9c4;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}
.textarea {
  width: 100%;
  min-height: 78px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  resize: vertical;
}
.evidence-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.evidence-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow-soft);
}
.evidence-thumb {
  height: 116px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #edf7ef, #f9efd8);
  color: var(--green-800);
  font-weight: 900;
}
.evidence-tile div:last-child {
  padding: 12px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.kanban-col {
  min-height: 620px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(237, 244, 238, 0.78);
}
.kanban-col h3 {
  margin: 0 0 12px;
  color: var(--green-950);
  font-size: 14px;
}
.action-card {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sand);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 24px rgba(15, 46, 37, 0.07);
}
.action-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.report-cover {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 16px;
}
.score-panel {
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--green-950), var(--navy-950));
  color: white;
  box-shadow: var(--shadow);
}
.score-panel p {
  color: rgba(255, 255, 255, 0.72);
}
.score-big {
  font-size: 86px;
  line-height: 0.86;
  letter-spacing: -0.06em;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(13, 31, 54, 0.42);
  backdrop-filter: blur(10px);
}
.modal-backdrop.open {
  display: grid;
}
.modal {
  width: min(860px, 100%);
  max-height: min(860px, 90vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(13, 31, 54, 0.28);
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.modal-content {
  padding: 20px;
}
.modal-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: white;
  color: var(--muted);
  cursor: pointer;
}

.triage-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 360px;
  gap: 16px;
}
.triage-questions {
  display: grid;
  gap: 10px;
}
.qrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.footer {
  padding: 30px 0 44px;
  color: var(--muted);
  font-size: 13px;
}
.mobile-menu-note {
  display: none;
}

@media (max-width: 1220px) {
  .hero-grid,
  .map-layout,
  .layout-detail,
  .layout-main-side,
  .report-cover,
  .triage-layout,
  .checklist {
    grid-template-columns: 1fr;
  }
  .demo-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4,
  .cols-6,
  .cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process-step::after {
    display: none;
  }
  .detail-panel {
    position: relative;
    top: auto;
  }
  .kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .site-nav,
  .header-actions {
    display: none;
  }
  .mobile-menu-note {
    display: inline-flex;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
  }
  .topbar,
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .search {
    min-width: min(100%, 420px);
  }
  .evidence-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1200px);
  }
  .hero {
    padding-top: 48px;
  }
  .hero-grid,
  .hero-product-grid,
  .product-flow,
  .grid-2,
  .grid-3,
  .grid-4,
  .process,
  .demo-cards,
  .cols-2,
  .cols-3,
  .cols-4,
  .cols-5,
  .cols-6,
  .kanban,
  .evidence-gallery,
  .field-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
  .app-main {
    padding: 16px;
  }
  .top-left,
  .top-right,
  .actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .btn,
  .search,
  .chip {
    width: 100%;
  }
  .plant-map {
    min-height: 640px;
  }
}

tr.active-row {
  background: #f2f8f3;
  box-shadow: inset 3px 0 0 var(--green-700);
}
