/* ==========================================================================
   INARI · Caso prático · BRUMA RASA
   Sistema visual da página: bruma, taipa, sombra, candeia.
   ========================================================================== */

:root {
  /* atmosfera */
  --bruma:      #E9E5DE;
  --bruma-2:    #DFDACF;
  --bruma-3:    #D3CCBF;
  --taipa:      #C2AF93;
  --pinheiro:   #4B5648;
  --candeia:    #A8712F;   /* preenchimentos, linhas, barras */
  --candeia-txt:#8A5A1F;   /* o mesmo ocre, escurecido para atingir 4,5:1 em texto */
  --sombra:     #171512;
  --sombra-2:   #2A2723;

  /* interface (paleta separada da atmosfera, para garantir contraste) */
  --ink:        #14120F;
  --ink-2:      #3D3931;
  --muted:      #6B655B;
  --line:       rgba(20, 18, 15, .16);
  --line-soft:  rgba(20, 18, 15, .08);
  --paper:      #E9E5DE;
  --paper-2:    #F2EFE9;
  --paper-3:    #DED8CC;

  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", "Hoefler Text", Georgia, serif;
  --font-body: "Segoe UI", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Consolas", "SF Mono", Menlo, monospace;

  --gut: clamp(20px, 5vw, 72px);
  --max: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.skip-link {
  position: fixed; z-index: 999; left: 14px; top: 10px; transform: translateY(-160%);
  background: #F4F1EB; color: #171512; padding: 10px 14px; font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- estrutura editorial ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: 860px; }

#caso {
  position: relative;
  z-index: 200;
  background: var(--paper);
}

section.blk {
  padding: clamp(48px, 8vh, 104px) 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 70px;
}
section.blk:first-child { border-top: 0; }
.blk--tint { background: var(--paper-2); }

/* Bloco escuro: em vez de corrigir componente a componente, invertemos os
   tokens. Tudo o que estiver lá dentro passa a ler o contraste certo, incluindo
   h4, etiquetas e linhas de grelha, que antes desapareciam sobre o fundo. */
.blk--dark {
  --ink:       #F4F1EB;
  --ink-2:     rgba(244, 241, 235, .84);
  --muted:     rgba(244, 241, 235, .60);
  --line:      rgba(244, 241, 235, .20);
  --line-soft: rgba(244, 241, 235, .11);
  --paper:     #171512;
  --paper-2:   #201D19;
  --paper-3:   #2C2925;
  --candeia:   #D69A50;
  --candeia-txt:#D69A50;
  background: var(--paper);
  color: var(--ink);
  border-top-color: var(--line-soft);
}
.blk--dark .card { background: var(--paper-2); }
.blk--dark .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.blk--dark .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.blk--dark .pull { border-left-color: var(--candeia); }
.blk--dark .tag { border-color: var(--line); color: var(--muted); }
.blk--dark tr.hi td { background: rgba(214, 154, 80, .16); }
.blk--dark ::selection { background: var(--candeia); color: var(--paper); }

.num {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .24em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 18px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.012em;
  margin: 0 0 20px;
  max-width: 22ch;
}
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.25;
  margin: 0 0 10px;
}
h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.9vw, 1.42rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 44ch;
}

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.two--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .two, .two--even { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.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)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--paper); padding: clamp(20px, 2.4vw, 30px); }
.card p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.card .num { margin-bottom: 12px; }
.blk--tint .card { background: var(--paper-2); }

.stack > * + * { margin-top: 26px; }

/* equipa: nove especialidades apresentadas como um único sistema */
.team-intro {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px); align-items: start; margin-bottom: 38px;
}
.team-intro p { color: var(--ink-2); }
.team-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line); background: var(--line); gap: 1px;
}
.team-card {
  position: relative; min-height: 300px; padding: clamp(22px, 3vw, 32px);
  background: var(--paper-2); text-decoration: none; overflow: hidden;
  display: flex; flex-direction: column; transition: background .22s ease, color .22s ease;
}
.team-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0;
  background: var(--candeia); transition: height .28s ease;
}
.team-card:hover { background: #171512; color: #F4F1EB; }
.team-card:hover::before { height: 100%; }
.team-card__num {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em;
  color: var(--candeia-txt); margin-bottom: auto;
}
.team-card h3 { margin-top: 34px; font-size: clamp(1.32rem, 2vw, 1.72rem); }
.team-card h4 { min-height: 2.4em; margin: 0 0 14px; }
.team-card p { font-size: .88rem; color: var(--ink-2); }
.team-card:hover h4, .team-card:hover p { color: rgba(244,241,235,.72); }
.team-card em {
  margin-top: 18px; font-family: var(--font-mono); font-size: .59rem; font-style: normal;
  letter-spacing: .14em; text-transform: uppercase; color: var(--candeia-txt);
}
.team-cta { margin-top: 24px; font-size: .9rem; }
@media (max-width: 900px) {
  .team-intro { grid-template-columns: minmax(0, 1fr); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .team-card { min-height: 250px; }
}

/* mapa de leitura: reduz a carga de uma página longa sem esconder detalhe */
.casehead__actions { margin-top: 30px; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 26px;
  font-family: var(--font-mono); font-size: .61rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.breadcrumbs a { text-underline-offset: 4px; }
.breadcrumbs span[aria-hidden] { opacity: .4; }
.case-proof {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(38px, 6vw, 70px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.case-proof a {
  display: block; padding: 20px 22px; text-decoration: none; border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-2) 40%, transparent); transition: background .2s ease;
}
.case-proof a:last-child { border-right: 0; }
.case-proof a:hover { background: var(--paper-2); }
.case-proof span, .case-proof strong { display: block; }
.case-proof span {
  margin-bottom: 7px; font-family: var(--font-mono); font-size: .59rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
}
.case-proof strong { font-family: var(--font-display); font-size: clamp(1rem, 1.7vw, 1.26rem); font-weight: 400; }
@media (max-width: 820px) {
  .case-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-proof a:nth-child(2) { border-right: 0; }
  .case-proof a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .case-proof { grid-template-columns: minmax(0, 1fr); }
  .case-proof a, .case-proof a:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-proof a:last-child { border-bottom: 0; }
}
.case-map { margin-top: clamp(42px, 7vw, 76px); }
.case-map__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: 28px 64px; align-items: end; margin-bottom: 22px;
}
.case-map__head h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); max-width: 24ch; }
.case-map__head p { color: var(--ink-2); margin: 0; }
.case-map__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.case-map__grid a {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 22px;
  text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-2) 56%, transparent);
  transition: background .2s;
}
.case-map__grid a:nth-child(3n) { border-right: 0; }
.case-map__grid a:nth-last-child(-n+3) { border-bottom: 0; }
.case-map__grid a:hover { background: var(--paper-2); }
.case-map__grid a b {
  font-family: var(--font-mono); font-size: .65rem; font-weight: 400;
  letter-spacing: .14em; color: var(--candeia-txt); padding-top: 3px;
}
.case-map__grid span, .case-map__grid strong, .case-map__grid em { display: block; }
.case-map__grid strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 400; line-height: 1.25; }
.case-map__grid em { margin-top: 6px; color: var(--muted); font-size: .82rem; font-style: normal; line-height: 1.45; }
@media (max-width: 900px) {
  .case-map__head { grid-template-columns: minmax(0, 1fr); }
  .case-map__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-map__grid a, .case-map__grid a:nth-child(3n), .case-map__grid a:nth-last-child(-n+3) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .case-map__grid a:nth-child(2n) { border-right: 0; }
  .case-map__grid a:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 580px) {
  .case-map__grid { grid-template-columns: minmax(0, 1fr); }
  .case-map__grid a, .case-map__grid a:nth-child(2n), .case-map__grid a:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-map__grid a:last-child { border-bottom: 0; }
}

/* pares chave/valor */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px 32px; margin: 0; }
.kv dt { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.kv dd { margin: 0; font-size: 1rem; line-height: 1.4; }

/* listas */
ul.marks { list-style: none; padding: 0; margin: 0; }
ul.marks li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: .96rem; color: var(--ink-2); }
ul.marks li::before { content: ""; position: absolute; left: 0; top: .68em; width: 10px; height: 1px; background: var(--candeia); }

ul.nots li::before { background: var(--muted); opacity: .5; }

/* tabelas */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 4px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom-color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
td.n, th.n { font-family: var(--font-mono); font-size: .86rem; white-space: nowrap; }
tr.hi td { background: rgba(168, 113, 47, .09); font-weight: 600; }

/* imagens */
figure { margin: 0; }
figure img { width: 100%; height: auto; }
figcaption { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.full { width: 100%; }
.full img { width: 100%; height: clamp(280px, 62vh, 720px); object-fit: cover; }
.full figcaption { padding-bottom: 4px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.duo img { height: clamp(200px, 40vh, 460px); object-fit: cover; }
@media (max-width: 620px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* citação / tese */
.thesis {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.24;
  letter-spacing: -.01em;
  max-width: 20ch;
  margin: 0;
  font-weight: 400;
}
.pull {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.32;
  border-left: 1px solid var(--candeia);
  padding-left: clamp(18px, 2.4vw, 30px);
  margin: 0;
  max-width: 30ch;
}

/* headlines de copy */
.headlines { list-style: none; padding: 0; margin: 0; }
.headlines li {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  line-height: 1.3;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  max-width: 32ch;
}
.headlines li:last-child { border-bottom: 0; }
.headlines li span { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* fluxos e diagramas */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.flow__node {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 11px 15px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.flow__node.is-key { border-color: var(--candeia); color: var(--candeia-txt); }
.flow__arrow { color: var(--muted); font-size: .8rem; }

/* arquitetura de sistemas */
.arq { display: grid; gap: 0; }
.arq__fila {
  border: 1px solid var(--line); background: var(--paper-2);
  padding: clamp(16px, 2.2vw, 24px);
}
.arq__fila--nucleo { border-color: var(--candeia); background: color-mix(in srgb, var(--candeia) 7%, var(--paper-2)); }
.arq__eti {
  display: block; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.arq__fila--nucleo .arq__eti { color: var(--candeia-txt); }
.arq__liga {
  display: grid; place-items: center; padding: 14px 0; position: relative;
}
.arq__liga::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--line);
}
.arq__liga span {
  position: relative; background: var(--paper); padding: 0 14px;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); text-align: center;
}
.blk--tint .arq__liga span { background: var(--paper-2); }
.arq__fila--nucleo .flow__node { border-color: var(--candeia); color: var(--candeia-txt); font-size: .74rem; }

.vflow { list-style: none; margin: 0; padding: 0; }
.vflow li {
  position: relative;
  padding: 0 0 26px 30px;
  border-left: 1px solid var(--line);
  margin-left: 5px;
}
.vflow li:last-child { border-left-color: transparent; padding-bottom: 0; }
.vflow li::before {
  content: ""; position: absolute; left: -4px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink);
}
.vflow li strong { display: block; font-weight: 500; font-size: .98rem; }
.vflow li em { font-style: normal; font-size: .88rem; color: var(--muted); }

/* sitemap */
pre.tree {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.85;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.6vw, 30px);
  overflow-x: auto;
  margin: 0;
  color: var(--ink-2);
}

/* wireframes */
.wire { border: 1px solid var(--line); background: var(--paper-2); padding: 14px; }
.wire__bar { height: 10px; background: var(--line); margin-bottom: 8px; }
.wire__hero { height: 96px; background: var(--paper-3); margin-bottom: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; color: var(--ink-2); text-transform: uppercase; }
.wire__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.wire__row > i { display: block; height: 46px; background: var(--paper-3); }
.wire__cta { height: 26px; background: var(--candeia); opacity: .8; }
.wire__label { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 12px; display: block; }
.wire--m { max-width: 190px; }
.wire--m .wire__hero { height: 150px; }
.wire--m .wire__row { grid-template-columns: 1fr; }

/* dashboard modelo */
.dash { border: 1px solid var(--line); background: var(--paper-2); padding: clamp(16px, 2.2vw, 26px); }
.dash__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; }
.dash__head span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dash__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dash__tile { background: var(--paper-2); padding: 16px; }
.dash__tile b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--ink); }
.dash__tile small { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dash__bars { display: grid; gap: 10px; margin-top: 20px; }
.dash__bar { display: grid; grid-template-columns: 120px 1fr 46px; gap: 12px; align-items: center; font-size: .82rem; }
.dash__bar i { display: block; height: 7px; background: var(--line); position: relative; }
.dash__bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 40%); background: var(--candeia); opacity: .75; }
.dash__bar span { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); text-align: right; }
@media (max-width: 620px) { .dash__bar { grid-template-columns: 90px 1fr 40px; font-size: .76rem; } }

/* etiquetas */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 6px 11px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.tag--warn { border-color: var(--candeia); color: var(--candeia-txt); }

.note {
  font-size: .84rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  margin-top: 26px;
  max-width: 74ch;
}

/* botões */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  transition: opacity .2s;
}
.btn:hover { opacity: .82; }
.btn--ghost { background: transparent; color: var(--ink); }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

a.link { color: var(--candeia-txt); text-underline-offset: 4px; }

/* faq */
details.faq { border-bottom: 1px solid var(--line-soft); padding: 18px 0; }
details.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--candeia-txt); font-size: 1rem; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin-top: 14px; font-size: .95rem; color: var(--ink-2); }

/* paleta */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 2px; }
.swatch { display: flex; flex-direction: column; }
.swatch i { display: block; aspect-ratio: 3 / 4; background: var(--c); }
.swatch b, .swatch small { color: var(--ink); padding: 0 2px; }
.swatch b { margin-top: 10px; }
.swatch b { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; display: block; }
.swatch small { font-family: var(--font-mono); font-size: .58rem; opacity: .7; letter-spacing: .08em; }

/* marca */
.logolock {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(30px, 6vw, 68px);
  display: grid;
  place-items: center;
  text-align: center;
}
.logolock__mark { display: block; margin: 0 auto 26px; }
.logolock__word { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2.1rem); letter-spacing: .42em; text-indent: .42em; line-height: 1.5; }
.logolock__sub { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .32em; text-indent: .32em; color: var(--muted); margin-top: 14px; text-transform: uppercase; }

/* ---------- barra de navegação permanente ---------- */

.navbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 400;
  background: color-mix(in srgb, #11100E 94%, transparent);
  color: #F4F1EB;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244,241,235,.14);
  transform: translateY(0);
  box-shadow: 0 10px 32px rgba(20,18,15,.12);
}
.navbar.is-on { transform: translateY(0); }
.navbar__prog { position: absolute; bottom: -1px; left: 0; height: 2px; background: #D69A50; width: 0; }
.navbar__in {
  max-width: 1500px; margin: 0 auto; min-height: 46px; padding: 0 clamp(12px, 3vw, 24px);
  display: grid; grid-template-columns: 220px auto minmax(180px, 1fr) auto;
  align-items: center; gap: 14px;
}
.navbar__marca {
  display: flex; align-items: baseline; gap: 9px; min-width: 0; text-decoration: none;
  font-family: var(--font-mono); text-transform: uppercase; white-space: nowrap;
}
.navbar__marca b { font-size: .68rem; font-weight: 600; letter-spacing: .22em; }
.navbar__marca span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .55rem;
  letter-spacing: .1em; color: rgba(244,241,235,.46);
}

.navbar__sel { display: flex; border: 1px solid rgba(244,241,235,.24); }
.navbar__sel a {
  padding: 7px 14px; text-decoration: none; font-family: var(--font-mono);
  font-size: .61rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(244,241,235,.64); white-space: nowrap;
}
.navbar__sel a:hover { color: #F4F1EB; }
.navbar__sel a[aria-current="page"] { background: #F4F1EB; color: #171512; }

.navbar__idx {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  background: none; border: 0; border-left: 1px solid rgba(244,241,235,.14); cursor: pointer;
  padding: 4px 0 4px clamp(10px, 2vw, 22px); font: inherit; color: inherit; text-align: left;
}
.navbar__label {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  color: #D69A50; white-space: nowrap;
}
.navbar__now {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244,241,235,.76); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.navbar__idx i { flex: none; width: 9px; height: 9px; border-right: 1px solid rgba(244,241,235,.46); border-bottom: 1px solid rgba(244,241,235,.46); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s; }
.navbar__idx[aria-expanded="true"] i { transform: rotate(-135deg) translate(-3px, -3px); }

.navbar__cta {
  text-decoration: none; font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px;
  border: 1px solid rgba(244,241,235,.28); color: #F4F1EB; white-space: nowrap;
}
.navbar__cta:hover { background: rgba(244,241,235,.1); }
@media (max-width: 1080px) {
  .navbar__in { grid-template-columns: auto auto minmax(140px, 1fr) auto; }
  .navbar__marca span { display: none; }
}
@media (max-width: 820px) {
  .navbar__in { grid-template-columns: auto minmax(100px, 1fr) auto; gap: 8px; }
  .navbar__marca { display: none; }
  .navbar__cta { display: none; }
}
@media (max-width: 620px) {
  .navbar__in { grid-template-columns: auto minmax(0, 1fr); padding-inline: 8px; }
  .navbar__sel a { padding-inline: 9px; font-size: .56rem; }
  .navbar__label { display: none; }
  .navbar__now { font-size: .53rem; letter-spacing: .1em; }
  .navbar__idx { padding-left: 9px; }
}

/* painel do índice */
.indice {
  position: fixed; left: 0; right: 0; top: 0; z-index: 399;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
  padding: 62px var(--gut) 34px;
  max-height: 88vh; overflow-y: auto;
  transform: translateY(-101%); transition: transform .34s ease;
  box-shadow: 0 20px 50px rgba(20, 18, 15, .12);
}
.indice.is-on { transform: translateY(0); }
.indice__in { max-width: var(--max); margin: 0 auto; }
.indice__cab {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 24px 48px; align-items: end; padding: 16px 0 26px; border-bottom: 1px solid var(--line);
}
.indice__cab .num { margin-bottom: 8px; color: var(--candeia-txt); }
.indice__cab h3 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); max-width: 24ch; }
.indice__atalhos { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.indice__atalhos a {
  border: 1px solid var(--line); padding: 9px 12px; font-family: var(--font-mono);
  font-size: .61rem; letter-spacing: .1em; text-transform: uppercase;
}
.indice__grupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px 34px; padding-top: 26px; }
.indice h4 { margin-bottom: 10px; color: var(--candeia-txt); }
.indice ol { list-style: none; margin: 0; padding: 0; }
.indice a {
  display: block; text-decoration: none; padding: 5px 0; font-size: .86rem;
  color: var(--ink-2); border-bottom: 1px solid transparent;
}
.indice a:hover { color: var(--ink); border-bottom-color: var(--line); }
.indice a b { font-family: var(--font-mono); font-size: .66rem; color: var(--muted); margin-right: 8px; font-weight: 400; }
@media (max-width: 760px) {
  .indice__cab { grid-template-columns: minmax(0, 1fr); }
  .indice__atalhos { justify-content: flex-start; }
}
.indice__veu { position: fixed; inset: 0; z-index: 398; background: rgba(20,18,15,.28); border: 0; opacity: 0; pointer-events: none; transition: opacity .3s; }
.indice__veu.is-on { opacity: 1; pointer-events: auto; }

/* ---------- convite para a demonstração ---------- */

.demo-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 34px; }
@media (max-width: 760px) { .demo-cta { grid-template-columns: minmax(0, 1fr); } }
.demo-cta a {
  display: block; text-decoration: none; padding: clamp(22px, 3vw, 34px);
  background: var(--paper-2); border: 1px solid var(--line); transition: background .2s;
}
.demo-cta a:hover { background: var(--paper-3); }
.blk--dark .demo-cta a { background: var(--paper-2); border-color: var(--line); }
.blk--dark .demo-cta a:hover { background: var(--paper-3); }
.demo-cta h3 { margin-bottom: 8px; }
.demo-cta p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.demo-cta .seta { display: block; margin-top: 18px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--candeia-txt); }

/* cabeçalho do caso */
.casehead { padding-top: clamp(88px, 13vh, 142px); }
.casehead__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.casehead__sub {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  line-height: 1.2;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 26ch;
}

/* rodapé */
footer.foot { background: var(--sombra); color: rgba(233,229,222,.7); padding: clamp(40px, 7vh, 84px) 0 40px; font-size: .86rem; }
footer.foot a { color: rgba(233,229,222,.9); }
footer.foot .wrap > div { display: flex; flex-wrap: wrap; gap: 20px 46px; justify-content: space-between; align-items: baseline; }

@media (max-width: 760px) {
  :root { --gut: 18px; }
  body { font-size: 16px; line-height: 1.58; }
  section.blk { padding: 52px 0; scroll-margin-top: 58px; }
  h2 { font-size: clamp(1.8rem, 8vw, 2.25rem); margin-bottom: 16px; }
  h3 { line-height: 1.28; }
  .lede { font-size: 1.12rem; line-height: 1.48; }
  .two, .two--even { gap: 32px; }
  .stack > * + * { margin-top: 22px; }
  .card { padding: 21px 19px; }
  .btnrow { margin-top: 24px; gap: 10px; }
  .btn { padding: 13px 18px; }

  .casehead { padding-top: 92px; }
  .casehead__title { font-size: clamp(2.7rem, 14vw, 4.4rem); }
  .casehead__sub { margin-bottom: 28px; }
  .casehead__actions { margin-top: 24px; }
  .breadcrumbs { margin-bottom: 20px; line-height: 1.5; }
  .case-proof { margin-top: 36px; }
  .case-proof a { padding: 17px 15px; }

  .team-intro { gap: 22px; margin-bottom: 28px; }
  .team-card { min-height: 250px; padding: 22px 20px; }
  .team-card h3 { margin-top: 28px; }

  .indice { padding: 58px var(--gut) 28px; }
  .indice__cab { gap: 18px; padding-bottom: 20px; }
  .indice__grupos { gap: 20px; padding-top: 22px; }
  .indice a { padding: 7px 0; }
  .demo-cta { margin-top: 26px; gap: 10px; }
  .demo-cta a { padding: 22px 19px; }
  .dash { padding: 19px 17px; }
  .dash__head { margin-bottom: 15px; }
  .logolock { padding: 38px 20px; }
  footer.foot { padding: 48px 0 72px; }
}

@media (max-width: 480px) {
  .case-proof { grid-template-columns: minmax(0, 1fr); }
  .case-proof a, .case-proof a:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-proof a:last-child { border-bottom: 0; }
  .btnrow .btn { width: 100%; text-align: center; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print { .navbar, .indice, .indice__veu { display: none; } }
