/* ============================================================
   PLANO MACRO — PAULO MOURÃO · SENADO/TO 2026
   Sistema visual: tema escuro, acentos verde-esmeralda + violeta
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* superfícies — base azul-marinho (bandeira do Tocantins) */
  --bg:        oklch(0.175 0.03 245);
  --bg-2:      oklch(0.205 0.034 245);
  --surface:   oklch(0.235 0.036 245);
  --surface-2: oklch(0.275 0.038 245);
  --line:      oklch(0.40 0.04 245 / 0.6);
  --line-soft: oklch(0.40 0.04 245 / 0.32);

  /* texto */
  --ink:       oklch(0.96 0.004 248);
  --ink-2:     oklch(0.80 0.008 248);
  --ink-3:     oklch(0.64 0.012 248);
  --ink-4:     oklch(0.50 0.013 248);

  /* acentos — cores da bandeira do Tocantins: azul + amarelo-ouro + branco */
  --green:     oklch(0.635 0.17 250);          /* AZUL-BANDEIRA (acento principal) */
  --green-dim: oklch(0.635 0.17 250 / 0.18);
  --violet:    oklch(0.865 0.175 95);          /* AMARELO-OURO (acento 2) */
  --violet-dim:oklch(0.865 0.175 95 / 0.20);
  --amber:     oklch(0.80 0.135 70);           /* destaque/atenção */
  --amber-dim: oklch(0.80 0.135 70 / 0.18);
  --red:       oklch(0.66 0.19 25);

  /* cores chapadas da bandeira (uso decorativo) */
  --flag-blue:   #1a64c4;
  --flag-yellow: #f4c500;
  --flag-white:  #ffffff;

  --r:   14px;
  --r-sm: 9px;
  --shadow: 0 2px 4px rgb(0 0 0 / 0.3), 0 12px 32px -8px rgb(0 0 0 / 0.55);

  --sans:  'IBM Plex Sans', system-ui, sans-serif;
  --disp:  'Space Grotesk', system-ui, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 860px;
  --navw: 290px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle grid texture on the page bg */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 18% 12%, oklch(0.685 0.14 242 / 0.07), transparent 42%),
    radial-gradient(circle at 86% 78%, oklch(0.855 0.155 96 / 0.06), transparent 46%);
  pointer-events: none; z-index: 0;
}

/* ============================ LAYOUT ============================ */
.shell { display: flex; position: relative; z-index: 1; }

/* ----- sidebar nav ----- */
.nav {
  width: var(--navw);
  flex: 0 0 var(--navw);
  height: 100vh;
  position: sticky; top: 0;
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  display: flex; flex-direction: column;
  padding: 30px 0 22px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 0 26px 24px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
}
.brand .mark {
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--green), oklch(0.74 0.13 222));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -4px oklch(0.685 0.14 242 / 0.55);
}
.brand .mark svg { width: 22px; height: 22px; display: block; }
.brand .who { line-height: 1.25; }
.brand .who b {
  font-family: var(--disp); font-weight: 700; font-size: 17px;
  color: var(--ink); letter-spacing: 0.01em; display: block;
}
.brand .who span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green);
}
.flagbar {
  height: 4px; margin: -8px 26px 18px; border-radius: 3px;
  background: linear-gradient(90deg,
    var(--flag-yellow) 0 38%,
    var(--flag-white)  38% 50%,
    var(--flag-blue)   50% 100%);
}

.nav-scroll { overflow-y: auto; flex: 1; padding: 0 14px; }
.nav-scroll::-webkit-scrollbar { width: 8px; }
.nav-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.nav-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-4);
  padding: 16px 12px 7px;
}
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 12px; border-radius: var(--r-sm);
  color: var(--ink-3); text-decoration: none;
  font-size: 13.7px; font-weight: 500;
  transition: background .16s, color .16s;
  position: relative;
}
.nav a .num {
  font-family: var(--mono); font-size: 11px; color: var(--ink-4);
  width: 20px; flex: 0 0 20px; transition: color .16s;
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.active { background: var(--green-dim); color: var(--ink); }
.nav a.active .num { color: var(--green); }
.nav a.active::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px;
  width: 3px; border-radius: 3px; background: var(--green);
}
.nav-foot {
  padding: 14px 26px 0; margin-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 10px; color: var(--ink-4);
  line-height: 1.7;
}

/* ----- progress bar (top of content) ----- */
.progress {
  position: fixed; top: 0; left: var(--navw); right: 0; height: 3px;
  background: transparent; z-index: 40;
}
.progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green), var(--violet));
}

/* ----- main column ----- */
.main { flex: 1; min-width: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 56px; }

/* ============================ SECTIONS ============================ */
section { padding: 72px 0 8px; scroll-margin-top: 20px; }
section + section { border-top: 1px solid var(--line-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--green); margin-bottom: 16px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.eyebrow.v { color: var(--violet); } .eyebrow.v .dot { background: var(--violet); }
.eyebrow .ix { color: var(--ink-4); font-weight: 500; }

h2.sec {
  font-family: var(--disp); font-weight: 700; color: var(--ink);
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08;
  letter-spacing: -0.02em; margin-bottom: 18px; text-wrap: balance;
}
.lead {
  font-size: 19px; line-height: 1.62; color: var(--ink-2);
  max-width: 64ch; margin-bottom: 30px; text-wrap: pretty;
}
h3 {
  font-family: var(--disp); font-weight: 600; color: var(--ink);
  font-size: 21px; letter-spacing: -0.01em;
  margin: 38px 0 12px;
}
h4 {
  font-family: var(--disp); font-weight: 600; color: var(--ink);
  font-size: 16px; margin: 0 0 6px;
}
p { margin-bottom: 16px; max-width: 68ch; text-wrap: pretty; }
p strong, li strong { color: var(--ink); font-weight: 600; }
a.inline { color: var(--green); text-decoration: none; border-bottom: 1px solid var(--green-dim); }

ul.clean { list-style: none; margin: 0 0 20px; max-width: 68ch; }
ul.clean li {
  position: relative; padding-left: 26px; margin-bottom: 11px; line-height: 1.6;
}
ul.clean li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--green); transform: rotate(45deg);
}
ul.clean.v li::before { background: var(--violet); }

.placeholder {
  font-family: var(--mono); font-size: 0.86em; color: var(--amber);
  background: var(--amber-dim); padding: 1px 7px; border-radius: 5px;
  border: 1px dashed oklch(0.78 0.13 62 / 0.45);
}

/* ============================ COMPONENTS ============================ */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 24px;
}

/* stat grid */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 26px; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 18px 16px; position: relative; overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 3px; height: 100%;
  background: var(--green);
}
.stat.v::after { background: var(--violet); }
.stat.a::after { background: var(--amber); }
.stat .ico {
  width: 34px; height: 34px; border-radius: 9px; background: var(--green-dim);
  display: grid; place-items: center; margin-bottom: 14px;
}
.stat.v .ico { background: var(--violet-dim); }
.stat.a .ico { background: var(--amber-dim); }
.stat .ico svg { width: 17px; height: 17px; }
.stat .big {
  font-family: var(--disp); font-weight: 700; font-size: 30px;
  color: var(--ink); line-height: 1; letter-spacing: -0.02em;
}
.stat .lab { font-size: 12.5px; color: var(--ink-3); margin-top: 7px; line-height: 1.35; }
.stat .sub { font-family: var(--mono); font-size: 10px; color: var(--ink-4); margin-top: 4px; }

/* two/three column blocks */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 24px; }

.tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px 22px;
}
.tile .tn {
  font-family: var(--mono); font-size: 11px; color: var(--green);
  letter-spacing: 0.08em; margin-bottom: 9px;
}
.tile.v .tn { color: var(--violet); }
.tile p { font-size: 14.5px; margin: 0; color: var(--ink-2); }

/* SWOT */
.swot { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 24px; }
.swot .q { border-radius: var(--r); padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); }
.swot .q h4 { display: flex; align-items: center; gap: 9px; font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.swot .q .tag { width: 9px; height: 9px; border-radius: 3px; }
.swot .q ul { list-style: none; }
.swot .q li { font-size: 13.5px; padding: 4px 0 4px 16px; position: relative; line-height: 1.45; color: var(--ink-2); }
.swot .q li::before { content: "—"; position: absolute; left: 0; color: var(--ink-4); }
.swot .s .tag { background: var(--green); }
.swot .w .tag { background: var(--red); }
.swot .o .tag { background: var(--violet); }
.swot .t .tag { background: var(--amber); }

/* message house */
.house { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 12px 0 26px; }
.house .roof {
  text-align: center; font-family: var(--disp); font-weight: 700; color: var(--ink);
  font-size: 22px; padding: 16px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--green-dim), var(--violet-dim));
  border: 1px solid var(--line); margin-bottom: 14px; letter-spacing: -0.01em;
}
.house .pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.house .pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.house .pillar b { font-family: var(--disp); color: var(--green); font-size: 15px; display: block; margin-bottom: 6px; }
.house .pillar:nth-child(2) b { color: var(--violet); }
.house .pillar:nth-child(3) b { color: var(--amber); }
.house .pillar p { font-size: 13px; margin: 0; color: var(--ink-3); }

/* persona cards */
.persona { display: flex; gap: 16px; align-items: flex-start; }
.persona .av {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--disp); font-weight: 700;
  color: var(--bg); font-size: 18px;
}

/* bars (charts) */
.barchart { margin: 14px 0 8px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 56px; align-items: center; gap: 14px; margin-bottom: 13px; }
.bar-row .bl { font-size: 13.5px; color: var(--ink-2); }
.bar-track { height: 13px; border-radius: 7px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line-soft); }
.bar-fill { height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--green), oklch(0.78 0.12 220)); }
.bar-fill.v { background: linear-gradient(90deg, var(--violet), oklch(0.90 0.14 102)); }
.bar-fill.a { background: linear-gradient(90deg, var(--amber), oklch(0.82 0.13 48)); }
.bar-row .bv { font-family: var(--mono); font-size: 12.5px; color: var(--ink); text-align: right; }

/* timeline */
.timeline { position: relative; margin: 18px 0 10px; padding-left: 6px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.phase { position: relative; padding: 0 0 26px 36px; }
.phase::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--green);
}
.phase:nth-child(2)::before { border-color: var(--violet); }
.phase:nth-child(3)::before { border-color: var(--amber); }
.phase:nth-child(4)::before { border-color: var(--green); }
.phase .pt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--green); text-transform: uppercase; }
.phase:nth-child(2) .pt { color: var(--violet); }
.phase:nth-child(3) .pt { color: var(--amber); }
.phase h4 { margin: 5px 0 6px; font-size: 18px; }
.phase p { font-size: 14px; margin: 0; max-width: 60ch; color: var(--ink-2); }

/* org chart */
.org { display: grid; gap: 14px; margin: 12px 0 24px; }
.org .lvl { display: grid; gap: 12px; }
.org .l2 { grid-template-columns: repeat(2, 1fr); }
.org .l3 { grid-template-columns: repeat(4, 1fr); }
.orgbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; text-align: center; }
.orgbox.top { background: linear-gradient(135deg, var(--green-dim), transparent); border-color: oklch(0.685 0.14 242 / 0.45); }
.orgbox b { font-family: var(--disp); color: var(--ink); font-size: 15px; display: block; }
.orgbox span { font-size: 12px; color: var(--ink-3); }

/* KPI table */
.kpi-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 14px; }
.kpi-table th {
  text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-4); padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.kpi-table td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); vertical-align: top; }
.kpi-table td:first-child { color: var(--ink); font-weight: 500; }
.kpi-table .meta { font-family: var(--mono); color: var(--green); }
.kpi-table tr:hover td { background: var(--surface); }

/* callout */
.callout {
  border-left: 3px solid var(--violet); background: var(--violet-dim);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 16px 20px; margin: 18px 0 24px;
}
.callout p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.callout p strong { color: var(--violet); }
.callout.g { border-color: var(--green); background: var(--green-dim); }
.callout.g p strong { color: var(--green); }

/* identity swatches */
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 12px 0 22px; }
.sw { border-radius: var(--r-sm); border: 1px solid var(--line); overflow: hidden; }
.sw .chip { height: 64px; }
.sw .meta { padding: 9px 11px; background: var(--surface); }
.sw .meta b { font-family: var(--disp); font-size: 12.5px; color: var(--ink); display: block; }
.sw .meta span { font-family: var(--mono); font-size: 10px; color: var(--ink-4); }

.logo-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 22px; }
.logo-demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 30px; display: flex; align-items: center; gap: 14px; flex: 1; min-width: 240px;
}
.logo-demo.dark { background: var(--ink); }
.logo-demo.green { background: linear-gradient(135deg, var(--green), oklch(0.74 0.13 222)); }
.logo-mark { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 44px; }
.logo-word { font-family: var(--disp); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.logo-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; }

/* ============================ COVER ============================ */
.cover {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 60px 0; border-top: none !important;
  position: relative; overflow: hidden;
}
/* motivo da bandeira do Tocantins: tricolor diagonal amarelo / branco / azul */
.cover::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 46%;
  background:
    linear-gradient(122deg,
      var(--flag-yellow) 0 46%,
      var(--flag-white)  46% 53%,
      var(--flag-blue)   53% 100%);
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
          mask-image: linear-gradient(90deg, transparent, #000 30%);
  pointer-events: none; z-index: 0;
}
/* fina faixa tricolor cravada na borda direita */
.cover::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 10px;
  background: linear-gradient(180deg,
      var(--flag-yellow) 0 38%,
      var(--flag-white)  38% 50%,
      var(--flag-blue)   50% 100%);
  z-index: 1;
}
.cover .wrap { position: relative; z-index: 2; }
.cover .kick {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green); margin-bottom: 26px; display: flex; align-items: center; gap: 12px;
}
.cover .kick .line { height: 1px; width: 48px; background: var(--green); }
.cover h1 {
  font-family: var(--disp); font-weight: 700; color: var(--ink);
  font-size: clamp(48px, 8vw, 96px); line-height: 0.94; letter-spacing: -0.035em;
  margin-bottom: 8px; text-wrap: balance;
}
.cover h1 em { font-style: normal; color: var(--green); }
.cover .tagline {
  font-family: var(--disp); font-size: clamp(20px, 2.6vw, 30px); color: var(--ink-2);
  font-weight: 500; margin-bottom: 40px; letter-spacing: -0.01em;
}
.cover .meta-row { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid var(--line); }
.cover .meta-row .mi .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 5px; }
.cover .meta-row .mi .vv { font-family: var(--disp); font-size: 16px; color: var(--ink); font-weight: 500; }
.confid {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 38px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--amber);
  background: var(--amber-dim); padding: 7px 14px; border-radius: 20px; align-self: flex-start;
  border: 1px solid oklch(0.78 0.13 62 / 0.32);
}

/* footer */
.docfoot { padding: 60px 0 90px; color: var(--ink-4); font-family: var(--mono); font-size: 11px; line-height: 1.8; }
.docfoot b { color: var(--ink-3); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .progress { left: 0; }
  .wrap { padding: 0 26px; }
  .grid-2, .grid-3, .swot, .house .pillars, .org .l3 { grid-template-columns: 1fr; }
  .org .l2 { grid-template-columns: 1fr; }
}

/* ============================ PRINT ============================ */
@media print {
  body { background: #fff; color: #111; font-size: 11pt; }
  body::before, .nav, .progress { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  section { padding: 18pt 0; page-break-inside: avoid; border-color: #ddd; }
  .cover { min-height: auto; page-break-after: always; }
  .card, .stat, .tile, .orgbox, .swot .q, .house, .house .pillar { background: #fff !important; border-color: #ccc !important; }
  h1, h2.sec, h3, h4, .stat .big, p strong { color: #111 !important; }
  p, li, .lead { color: #222 !important; }
}
