/* TCM Soluções — site 2026
   Layout: ficha técnica industrial. Conteúdo alinhado à esquerda numa grade de 12 colunas;
   cada frente carrega a sua TAG de equipamento (PRJ, ORC, MNT, TRN, FNC). A foto da planta
   à noite abre a página e é o único momento ousado; o resto é disciplinado como um datasheet. */
:root {
  --ink: #14171A;
  --steel-950: #131B20;
  --steel-900: #1E2930;
  --steel-700: #2C3A44;
  --sheet: #F4F6F4;
  --paper: #FFFFFF;
  --rule: #D5DAD6;
  --rule-soft: #E7EAE7;
  --muted: #5B6670;
  --on-dark: #F2F4F3;
  --on-dark-muted: #AEB8BF;
  --rule-dark: rgba(255, 255, 255, .14);
  --signal: #F5B60D;
  --signal-strong: #FFC529;
  --signal-ink: #6B4E00;
  --ok: #2E8B57;

  --display: 'IBM Plex Sans Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --max: 1200px;
  --gutter-x: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }

/* ---------- estrutura ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter-x));
  margin-inline: auto;
  padding-left: max(var(--gutter-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter-x), env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(64px, 8vw, 112px); }
.band--sheet { background: var(--sheet); }
.band--dark { background: var(--steel-900); color: var(--on-dark); }
.band--tight { padding-block: clamp(40px, 5vw, 64px); }

/* ---------- tipografia ---------- */
.h1, .h2, .h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
.h1 { font-size: clamp(2.4rem, 1.3rem + 3.9vw, 4.25rem); line-height: 1.03; }
.h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.06; }
.h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); line-height: 1.12; font-weight: 600; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.55; max-width: 60ch; margin: 0; }
.muted { color: var(--muted); }
.band--dark .muted { color: var(--on-dark-muted); }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { color: var(--muted); }
.band--dark .section-head .lead { color: var(--on-dark-muted); }
.kicker { font: 600 15px/1.3 var(--sans); color: var(--signal-ink); margin: 0; }
.band--dark .kicker, .hero .kicker { color: var(--signal); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--radius);
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  background: transparent; border: 2px solid transparent; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--signal-strong); }
.btn--line-light { border-color: rgba(255, 255, 255, .5); color: var(--on-dark); }
.btn--line-light:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--signal); }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- cabeçalho ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-solid { background: rgba(255, 255, 255, .97); border-bottom-color: var(--rule); backdrop-filter: saturate(1.4) blur(8px); }
.site-header__bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.brand .logo-dark { display: none; }
.site-header.is-solid .brand .logo-dark { display: block; }
.site-header.is-solid .brand .logo-light { display: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px;
  font: 500 15.5px/1 var(--sans); text-decoration: none; color: var(--on-dark);
  background: none; border: 0; border-radius: var(--radius); cursor: pointer;
}
.site-header.is-solid .nav__link, .site-header.is-solid .nav__trigger { color: var(--ink); }
.nav__link:hover, .nav__trigger:hover { background: rgba(255, 255, 255, .1); }
.site-header.is-solid .nav__link:hover, .site-header.is-solid .nav__trigger:hover { background: var(--sheet); }
.nav__trigger svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav__item { position: relative; }
.nav__item.is-open .nav__trigger svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(720px, calc(100vw - 32px)); background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(19, 27, 32, .18);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px;
}
.mega[hidden] { display: none; }
.mega__link { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px; border-radius: var(--radius); text-decoration: none; }
.mega__link:hover { background: var(--sheet); }
.mega__link strong { font: 600 16px/1.3 var(--sans); }
.mega__link span:last-child { grid-column: 2; font-size: 14px; line-height: 1.45; color: var(--muted); }
.mega__link--wide { grid-column: 1 / -1; }
.header-cta { margin-left: 8px; min-height: 44px; padding: 0 16px; font-size: 15px; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; color: var(--on-dark); cursor: pointer; border-radius: var(--radius); }
.site-header.is-solid .menu-btn { color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }
.mobile-nav {
  position: fixed; inset: 0; z-index: 70; background: var(--steel-950); color: var(--on-dark);
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(20px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; height: 60px; margin-bottom: 8px; }
.mobile-nav__top img { height: 42px; width: auto; }
.mobile-nav a.mobile-nav__link { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--rule-dark); text-decoration: none; font: 500 18px/1.3 var(--sans); }
.mobile-nav .btn { margin-top: 18px; }

/* ---------- tags de frente (estilo TAG de equipamento) ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; align-self: start; justify-self: start;
  font: 600 12.5px/1 var(--mono); letter-spacing: .04em;
  padding: 6px 8px; border-radius: 2px; background: var(--signal); color: var(--ink);
}
.tag--ghost { background: transparent; color: var(--muted); border: 1px solid var(--rule); }
.band--dark .tag--ghost { color: var(--on-dark-muted); border-color: var(--rule-dark); }

/* ---------- hero da página inicial ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--steel-950); color: var(--on-dark); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(19, 27, 32, .96) 0%, rgba(19, 27, 32, .86) 36%, rgba(19, 27, 32, .45) 68%, rgba(19, 27, 32, .25) 100%),
    linear-gradient(0deg, rgba(19, 27, 32, .85) 0%, rgba(19, 27, 32, 0) 38%);
}
.hero__inner { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero__copy { display: grid; gap: 22px; min-width: 0; }
.hero__copy .h1 { max-width: 21ch; }
.hero__copy .lead { color: rgba(242, 244, 243, .86); }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--on-dark-muted); }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 16px; height: 16px; color: var(--signal); flex: none; }

.datasheet {
  min-width: 0; background: rgba(19, 27, 32, .74); border: 1px solid var(--rule-dark); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.datasheet__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule-dark); }
.datasheet__title { font: 600 15px/1.3 var(--sans); margin: 0; }
.datasheet__id { font: 500 12.5px/1 var(--mono); color: var(--on-dark-muted); }
.datasheet dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.datasheet dt, .datasheet dd { padding: 11px 18px; border-bottom: 1px solid var(--rule-dark); margin: 0; }
.datasheet dt { font-size: 14px; color: var(--on-dark-muted); }
.datasheet dd { font: 500 14px/1.45 var(--mono); color: var(--on-dark); padding-left: 0; }
.datasheet dl > :nth-last-child(-n + 2) { border-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: plant-drift 22s var(--ease) both; }
  .hero__copy > * { animation: rise .7s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .12s; }
  .hero__copy > :nth-child(4) { animation-delay: .18s; }
  .hero__copy > :nth-child(5) { animation-delay: .24s; }
  .datasheet { animation: rise .8s .25s var(--ease) both; }
}
@keyframes plant-drift { from { transform: scale(1.08) translateX(1.5%); } to { transform: scale(1) translateX(0); } }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

/* ---------- clientes ---------- */
.clients { display: grid; gap: 20px; }
.clients__title { font: 600 15px/1.4 var(--sans); color: var(--muted); margin: 0; }
.clients__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.clients__grid li { background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--radius); display: grid; place-items: center; aspect-ratio: 5 / 2; padding: 8px 12px; }
.clients__grid img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .9; transition: filter .25s, opacity .25s; }
.clients__grid li:hover img { filter: none; opacity: 1; }

/* ---------- frentes / pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.pillar {
  grid-column: span 6; min-width: 0; display: grid; grid-template-rows: auto 1fr;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; transition: border-color .2s var(--ease);
}
.pillar:hover { border-color: var(--ink); }
.pillar__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--steel-700); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pillar:hover .pillar__media img { transform: scale(1.035); }
.pillar__media .tag { position: absolute; left: 16px; top: 16px; }
.pillar__body { display: grid; gap: 14px; align-content: start; padding: clamp(20px, 2.4vw, 28px); }
.pillar__pain { margin: 0; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; line-height: 1.45; }
.checks li::before { content: ""; width: 14px; height: 14px; margin-top: 4px; border: 2px solid var(--ink); border-radius: 2px; background: linear-gradient(var(--signal), var(--signal)) center / 6px 6px no-repeat; }
.band--dark .checks li::before { border-color: var(--on-dark); }
.pillar__more { margin-top: 4px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--signal); }
.pillar--feature { grid-column: 1 / -1; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-rows: auto; }
.pillar--feature .pillar__media { aspect-ratio: auto; min-height: 100%; }
.pillar--feature .pillar__body { padding: clamp(24px, 3.4vw, 44px); gap: 16px; }
.pillar__badge { font: 600 14px/1.3 var(--sans); color: var(--signal-ink); margin: 0; }
.checks--two { grid-template-columns: 1fr 1fr; column-gap: 24px; }

.ai-strip { margin-top: 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.ai-strip__intro { display: grid; gap: 10px; }
.ai-strip__intro p { margin: 0; color: var(--muted); }
.ai-uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-uses li { background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; }
.ai-uses strong { font-weight: 600; }
.ai-uses span { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* ---------- resultados ---------- */
.results { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
.result { border: 1px solid var(--rule-dark); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 10px; align-content: start; min-width: 0; }
.result__value { font: 600 clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1 var(--mono); color: var(--on-dark); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.result__value small { font-size: .5em; color: var(--on-dark-muted); letter-spacing: 0; }
.result__label { font-weight: 600; margin: 0; }
.result__ctx { margin: 0; font-size: 15px; color: var(--on-dark-muted); line-height: 1.5; }
.result--lead { background: rgba(245, 182, 13, .08); border-color: rgba(245, 182, 13, .45); }
.result--lead .result__value { font-size: clamp(3rem, 2rem + 4vw, 5.2rem); color: var(--signal); }
.result--lead .meter { margin-top: 8px; }
.results__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.meter { display: grid; gap: 8px; }
.meter__row { display: grid; grid-template-columns: 56px 1fr 44px; gap: 10px; align-items: center; font: 500 13px/1 var(--mono); color: var(--on-dark-muted); }
.meter__track { height: 10px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.meter__fill { height: 100%; background: var(--on-dark-muted); border-radius: 2px; }
.meter__fill--after { background: var(--signal); }
.results__note { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; font-size: 15px; color: var(--on-dark-muted); }
.award { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; font-weight: 600; }
.award svg { width: 32px; height: 32px; color: var(--signal); flex: none; }
.award:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- método ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.step { padding: 22px 22px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 600 14px/1 var(--mono); color: var(--muted); }
.step::after { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--signal); border: 2px solid var(--ink); border-radius: 50%; }
.step h3 { font: 600 1.3rem/1.2 var(--display); margin: 0; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- material gratuito (planilha) ---------- */
.magnet { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.sheet-mock { min-width: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(19, 27, 32, .12); overflow: hidden; }
.sheet-mock__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #1D6F42; color: #fff; font: 500 13px/1 var(--sans); }
.sheet-mock__bar span { opacity: .85; }
.sheet-mock__tabs { display: flex; gap: 2px; padding: 0 10px; background: var(--sheet); border-top: 1px solid var(--rule); font: 500 12px/1 var(--sans); }
.sheet-mock__tabs span { padding: 8px 12px; color: var(--muted); }
.sheet-mock__tabs span[aria-current] { background: var(--paper); color: #1D6F42; border-bottom: 2px solid #1D6F42; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sheet-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.sheet-table td:nth-child(2), .sheet-table td:nth-child(3) { white-space: normal; }
.sheet-table th, .sheet-table td { border: 1px solid var(--rule-soft); padding: 8px 10px; text-align: left; white-space: nowrap; }
.sheet-table th { background: var(--steel-700); color: #fff; font-weight: 600; font-size: 12.5px; }
.sheet-table td:first-child { font-family: var(--mono); font-size: 12.5px; color: var(--steel-700); }
.sheet-table td.num { text-align: right; }
.sheet-table tr:nth-child(even) td { background: #FAFBFA; }
.magnet__copy { display: grid; gap: 18px; }

/* ---------- formulários ---------- */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font: 600 14px/1.3 var(--sans); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #B9C1BC; border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245, 182, 13, .55); }
.form__fine { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.form__ok { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--ok); border-radius: var(--radius); background: #EEF7F1; color: #1E5C3A; }
.form__ok[hidden], .form[hidden] { display: none; }
.form__ok strong { font-size: 17px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- quem responde ---------- */
.lead-person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.person-card { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.person-card__top { display: flex; gap: 18px; align-items: center; padding: 22px; border-bottom: 1px solid var(--rule); }
.person-card__top img { width: 96px; height: 96px; border-radius: var(--radius); object-fit: cover; flex: none; }
.person-card__top strong { display: block; font: 700 1.35rem/1.15 var(--display); }
.person-card__top span { color: var(--muted); font-size: 15px; }
.person-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.person-card dt, .person-card dd { margin: 0; padding: 11px 22px; border-bottom: 1px solid var(--rule-soft); }
.person-card dt { font-size: 14px; color: var(--muted); }
.person-card dd { font: 500 14px/1.45 var(--mono); padding-left: 0; }
.person-card dl > :nth-last-child(-n + 2) { border-bottom: 0; }
.quote { margin: 0; padding-left: 20px; border-left: 3px solid var(--signal); font: 500 clamp(1.25rem, 1.1rem + .6vw, 1.6rem)/1.35 var(--display); }
.links-inline { display: flex; flex-wrap: wrap; gap: 10px 24px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: center; padding: 22px 0; font: 600 1.15rem/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 22px; height: 22px; justify-self: end; background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 44px 24px 0; color: var(--muted); max-width: 72ch; }
.faq details > div p { margin: 0 0 .8em; }

/* ---------- chamada final ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--steel-950); color: var(--on-dark); }
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(19, 27, 32, .96) 0%, rgba(19, 27, 32, .86) 48%, rgba(19, 27, 32, .58) 100%); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cta__copy { display: grid; gap: 20px; }
.cta__copy .lead { color: rgba(242, 244, 243, .86); }
.contact-lines { display: grid; gap: 6px; margin: 4px 0 0; font-size: 15.5px; color: var(--on-dark-muted); }
.contact-lines b { color: var(--on-dark); font: 500 15.5px/1.4 var(--mono); user-select: all; }
.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); display: grid; gap: 16px; }
.form-card h3 { font: 700 1.5rem/1.15 var(--display); margin: 0; }

/* ---------- rodapé ---------- */
.site-footer { background: var(--steel-950); color: var(--on-dark-muted); font-size: 15px; padding-block: 56px 32px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 32px; }
.site-footer img { height: 54px; width: auto; }
.site-footer h4 { color: var(--on-dark); font: 600 15px/1.3 var(--sans); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__about { display: grid; gap: 14px; align-content: start; }
.site-footer__about p { margin: 0; max-width: 40ch; }
.site-footer__base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; }

/* ---------- WhatsApp flutuante e barra móvel ---------- */
.wa-float {
  position: fixed; z-index: 55; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; padding: 0 18px 0 14px; height: 54px; border-radius: 27px;
  background: #1FAF54; color: #fff; font: 600 15px/1 var(--sans); text-decoration: none; box-shadow: 0 10px 28px rgba(19, 27, 32, .28);
  transition: transform .2s var(--ease), background-color .2s;
}
.wa-float:hover { background: #18994A; transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }
.mobile-cta { display: none; }

/* ---------- página de frente (pilar) ---------- */
.page-top { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.p-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.p-hero__copy { display: grid; gap: 20px; }
.p-hero__copy .h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); max-width: 18ch; }
.p-hero__copy .lead { color: var(--muted); }
.p-hero__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--steel-700); }
.p-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.chip-float { position: absolute; display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--radius); background: rgba(255, 255, 255, .95); box-shadow: 0 10px 30px rgba(19, 27, 32, .2); font-size: 13.5px; color: var(--muted); }
.chip-float b { font: 600 15px/1.2 var(--mono); color: var(--ink); }
.chip-float--a { left: 16px; bottom: 16px; }
.chip-float--b { right: 16px; top: 16px; }
.summary-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.summary-strip > div { padding: 18px 20px; border-right: 1px solid var(--rule); display: grid; gap: 6px; align-content: start; min-width: 0; }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip dt { font-size: 13.5px; color: var(--muted); }
.summary-strip dd { margin: 0; font-weight: 600; line-height: 1.4; font-size: 15.5px; }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.symptoms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.symptoms li { border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; display: grid; gap: 6px; background: var(--paper); }
.symptoms strong { font-weight: 600; }
.symptoms span { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* processo de implantação + árvore de ativos */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.process__steps { list-style: none; margin: 0; padding: 0; counter-reset: pstep; display: grid; }
.process__steps li { position: relative; display: grid; gap: 6px; padding: 0 0 26px 52px; }
.process__steps li::before { counter-increment: pstep; content: counter(pstep); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--signal); border-radius: 50%; font: 600 15px/1 var(--mono); color: var(--signal); }
.process__steps li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; background: var(--rule-dark); }
.process__steps li:last-child::after { display: none; }
.process__steps h3 { margin: 4px 0 0; font: 600 1.2rem/1.25 var(--display); color: var(--on-dark); }
.process__steps p { margin: 0; color: var(--on-dark-muted); font-size: 16px; }

.tree-card { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 20px); background: var(--steel-950); border: 1px solid var(--rule-dark); border-radius: var(--radius); overflow: hidden; }
.tree-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--rule-dark); }
.tree-card__head strong { font: 600 15px/1.3 var(--sans); }
.tree-card__head span { font: 500 12.5px/1 var(--mono); color: var(--on-dark-muted); }
.tree-card__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.tree { list-style: none; margin: 0; padding: 14px 10px 14px 14px; font-size: 14.5px; }
.tree ul { list-style: none; margin: 0 0 0 14px; padding: 0 0 0 12px; border-left: 1px dashed rgba(255, 255, 255, .22); }
.tree li { margin: 2px 0; }
.tree button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 8px; border: 1px solid transparent; border-radius: 3px;
  background: none; color: var(--on-dark); cursor: pointer; line-height: 1.3;
}
.tree button:hover { background: rgba(255, 255, 255, .06); }
.tree button[aria-current="true"] { background: rgba(245, 182, 13, .14); border-color: rgba(245, 182, 13, .55); }
.tree .twisty { width: 12px; height: 12px; flex: none; color: var(--on-dark-muted); transition: transform .2s var(--ease); }
.tree li[data-open="false"] > button .twisty { transform: rotate(-90deg); }
.tree li[data-open="false"] > ul { display: none; }
.tree .leaf .twisty { visibility: hidden; }
.tree .lvl { margin-left: auto; font: 500 11.5px/1 var(--mono); color: var(--on-dark-muted); white-space: nowrap; }
.tree-detail { border-left: 1px solid var(--rule-dark); padding: 16px 18px; display: grid; gap: 12px; align-content: start; font-size: 14.5px; }
.tree-detail h4 { margin: 0; font: 600 1.1rem/1.25 var(--display); }
.tree-detail dl { margin: 0; display: grid; gap: 10px; }
.tree-detail dt { font-size: 12.5px; color: var(--on-dark-muted); }
.tree-detail dd { margin: 2px 0 0; font: 500 13.5px/1.45 var(--mono); }
.crit { display: inline-block; min-width: 22px; text-align: center; padding: 2px 6px; border-radius: 2px; font: 600 12.5px/1.2 var(--mono); }
.crit--A { background: #E5484D; color: #fff; }
.crit--B { background: var(--signal); color: var(--ink); }
.crit--C { background: #5B6670; color: #fff; }
.tree-card__foot { padding: 12px 18px; border-top: 1px solid var(--rule-dark); font-size: 13.5px; color: var(--on-dark-muted); }

/* indicadores */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; background: var(--paper); }
.kpi__name { font: 700 1.5rem/1 var(--display); margin: 0; }
.kpi__full { font-size: 14px; color: var(--muted); margin: 0; }
.kpi__formula { font: 500 13.5px/1.5 var(--mono); background: var(--sheet); border-radius: 3px; padding: 10px 12px; margin: 4px 0 0; }
.kpi p:last-child { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.calc { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc__box { border: 1px solid var(--ink); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; background: var(--paper); }
.calc__box h3 { font: 600 1.25rem/1.2 var(--display); margin: 0; }
.calc__inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calc__inputs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc__out { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--rule); }
.calc__out output { font: 600 2rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.calc__out span { color: var(--muted); font-size: 15px; }

/* IA na manutenção */
.io-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.io { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: stretch; gap: 0; }
.io > div { border: 1px solid var(--rule); background: var(--paper); padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.io > div:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.io > div:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-color: var(--ink); }
.io small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.io__arrow { display: grid; place-items: center; background: var(--signal); }
.io__arrow svg { width: 20px; height: 20px; }

/* caso */
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.case__body { padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
.case__body p { margin: 0; }
.case__stats { background: var(--steel-900); color: var(--on-dark); padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; align-content: center; }
.case__stats .meter__row { grid-template-columns: 64px 1fr 48px; }
.case__stat { display: grid; gap: 4px; }
.case__stat b { font: 600 2.4rem/1 var(--mono); color: var(--signal); }
.case__stat span { color: var(--on-dark-muted); font-size: 15px; }
.recog { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.recog a { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; background: var(--paper); }
.recog a:hover { border-color: var(--ink); }
.recog svg { width: 40px; height: 40px; color: var(--signal-ink); }
.recog strong { display: block; font-weight: 600; margin-bottom: 2px; }
.recog span { font-size: 15px; color: var(--muted); }

.deliver { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.mini-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mini-pillar { display: grid; gap: 10px; align-content: start; padding: 18px; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; background: var(--paper); }
.mini-pillar:hover { border-color: var(--ink); }
.mini-pillar strong { font: 600 1.15rem/1.25 var(--display); }
.mini-pillar span:last-child { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* ---------- páginas de frente: peças comuns ---------- */
.p-hero__tag { display: flex; gap: 12px; align-items: center; }
.summary-strip--hero { margin: 0 0 clamp(40px, 6vw, 72px); }
.form-card--line { border: 1px solid var(--rule); }
.form-card .muted { color: var(--muted); }
.note { margin: 0; padding: 12px 16px; border-left: 3px solid var(--signal); background: var(--sheet); font-size: 15.5px; line-height: 1.5; }
.band--sheet .note { background: var(--paper); }

/* cartão de ferramenta no fundo escuro (mesmo desenho do cartão da árvore de ativos) */
.tool-card { min-width: 0; background: var(--steel-950); border: 1px solid var(--rule-dark); border-radius: var(--radius); overflow: hidden; }
.tool-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--rule-dark); }
.tool-card__head strong { font: 600 15px/1.3 var(--sans); }
.tool-card__head span { font: 500 12.5px/1 var(--mono); color: var(--on-dark-muted); white-space: nowrap; }
.tool-card__body { min-width: 0; padding: 18px; display: grid; gap: 16px; align-content: start; }
.tool-card__body--viz { container-type: inline-size; }
.tool-card__foot { padding: 12px 18px; border-top: 1px solid var(--rule-dark); font-size: 14px; line-height: 1.5; color: var(--on-dark-muted); }

/* curva S: cores validadas para o fundo #131B20 (azul planejado, âmbar realizado) */
:root { --viz-plan: #3987E5; --viz-real: #C98500; }
.viz-caption { margin: 0; font-size: 14px; color: var(--on-dark-muted); }
.viz-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.viz-legend li { display: inline-flex; align-items: center; gap: 8px; }
.key { display: inline-block; flex: none; width: 20px; height: 2px; border-radius: 1px; vertical-align: middle; }
.key--plan { background: var(--viz-plan); }
.key--real { background: var(--viz-real); }
.key--trend { background: repeating-linear-gradient(90deg, var(--viz-real) 0 5px, transparent 5px 9px); }
.scurve { position: relative; height: 280px; height: clamp(220px, 56cqw, 320px); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.scurve svg { display: block; overflow: visible; }
.scurve .grid line { stroke: rgba(255, 255, 255, .1); stroke-width: 1; shape-rendering: crispEdges; }
.scurve .tick { fill: var(--on-dark-muted); font: 500 12px var(--mono); font-variant-numeric: tabular-nums; }
.scurve .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.scurve .line--plan { stroke: var(--viz-plan); }
.scurve .line--real { stroke: var(--viz-real); }
.scurve .line--trend { stroke: var(--viz-real); stroke-dasharray: 6 5; stroke-linecap: butt; }
.scurve .dot { stroke: var(--steel-950); stroke-width: 2; }
.scurve .dot--plan { fill: var(--viz-plan); }
.scurve .dot--real, .scurve .dot--trend { fill: var(--viz-real); }
.scurve .today line { stroke: rgba(255, 255, 255, .32); stroke-width: 1; shape-rendering: crispEdges; }
.scurve .today text, .scurve .lbl { fill: var(--on-dark); font: 500 12.5px var(--sans); }
.scurve .today text { fill: var(--on-dark-muted); }
.scurve .cursor line { stroke: var(--on-dark); stroke-width: 1; opacity: .55; shape-rendering: crispEdges; }
.scurve .hit { fill: transparent; cursor: crosshair; }
.scurve__readout { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--rule-dark); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.scurve__week { margin: 0; font-size: 14px; color: var(--on-dark-muted); }
.scurve__week b { color: var(--on-dark); font: 600 15px/1 var(--mono); }
.scurve__week span:not(:empty) { margin-left: 4px; padding: 3px 6px; border: 1px solid var(--rule-dark); border-radius: 2px; font: 500 12px/1 var(--mono); }
.scurve__readout dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.scurve__readout dt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--on-dark-muted); }
.scurve__readout dt .key { width: 14px; }
.scurve__readout dd { margin: 4px 0 0; font: 600 1.3rem/1 var(--mono); color: var(--on-dark); }
.scurve__range { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; font-size: 14px; color: var(--on-dark-muted); }
.scurve__range input { width: 100%; height: 28px; margin: 0; accent-color: var(--signal); cursor: pointer; }
.data-table summary { cursor: pointer; width: max-content; font-size: 14px; color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 3px; }
.data-table summary:hover { color: var(--on-dark); }
.data-table table { width: 100%; min-width: 320px; margin-top: 10px; border-collapse: collapse; font: 500 13px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 6px 8px; border-bottom: 1px solid var(--rule-dark); text-align: right; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table th { font: 600 12.5px/1.3 var(--sans); color: var(--on-dark-muted); }

/* calculadoras de uma caixa só (valor agregado, BDI) */
.calc--one { grid-template-columns: minmax(0, 1fr); }
.calc__inputs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.calc__inputs--4 .field { align-content: end; }
.calc__hint { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.calc__results { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.calc__results--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc__results > div { padding: 14px 16px 0 0; display: grid; gap: 6px; align-content: start; min-width: 0; }
.calc__results > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.calc__results dt { font-size: 14px; color: var(--muted); line-height: 1.35; }
.calc__results dd { margin: 0; }
.calc__results output { font: 600 clamp(1.45rem, 1.15rem + 1vw, 2rem)/1.1 var(--mono); }
.calc__read { margin: 0; padding: 12px 16px; background: var(--sheet); border-left: 3px solid var(--signal); font-size: 15.5px; line-height: 1.5; }
.formula { margin: 0; padding: 12px 14px; background: var(--sheet); border-radius: 3px; font: 500 clamp(12.5px, 11.5px + .35vw, 15.5px)/1.5 var(--mono); overflow-x: auto; white-space: nowrap; }

/* formação do preço (orçamentos) */
.build { list-style: none; margin: 0; padding: 0 0 0 6px; display: grid; }
.build li { position: relative; display: grid; gap: 4px; padding: 10px 0 14px 20px; border-left: 2px solid var(--rule-dark); }
.build li::before { content: ""; position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--steel-950); border: 2px solid var(--on-dark-muted); }
.build__expr { font-size: 14.5px; line-height: 1.45; color: var(--on-dark-muted); }
.build__expr i { font: normal 600 14px/1 var(--mono); color: var(--signal); margin: 0 3px; }
.build__res { font: 600 15px/1.3 var(--mono); color: var(--on-dark); }
.build__res::before { content: "= "; color: var(--signal); }
.build li.build__final { border-left-color: var(--signal); }
.build li.build__final::before { border-color: var(--signal); background: var(--signal); }
.build__final .build__res { font-size: 17px; color: var(--signal); }
.build__keep { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--rule-dark); }
.build__keep p { margin: 0; font-size: 14px; color: var(--on-dark-muted); }
.build__keep ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.build__keep li { font: 500 13px/1 var(--mono); padding: 8px 10px; border: 1px solid var(--rule-dark); border-radius: 2px; }

/* dois jeitos de contratar */
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.option { display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: clamp(22px, 3vw, 32px); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.option h3 { margin: 0; font: 700 1.6rem/1.15 var(--display); }
.option p { margin: 0; color: var(--muted); }
.option .btn { justify-self: start; margin-top: 6px; }
.option--accent { border: 2px solid var(--ink); }

/* cartões simples */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards li { display: grid; gap: 6px; align-content: start; padding: 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.cards strong { font: 600 1.15rem/1.25 var(--display); }
.cards span { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* provas complementares */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.fact { display: grid; gap: 4px; align-content: start; padding: 18px 20px; border: 1px solid var(--rule); border-left: 3px solid var(--signal); border-radius: var(--radius); }
.fact b { font: 600 1.9rem/1.1 var(--mono); }
.fact strong { font-weight: 600; }
.fact span { font-size: 15px; color: var(--muted); line-height: 1.5; }
.case__scope { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case__scope li { padding: 8px 10px; border: 1px solid var(--rule-dark); border-radius: 2px; font: 500 13px/1 var(--mono); }

/* montador de treinamento */
.builder { gap: 20px; }
.builder__set { min-width: 0; margin: 0; padding: 0; border: 0; }
.builder__set legend { padding: 0; margin-bottom: 10px; font: 600 14.5px/1.3 var(--sans); color: var(--on-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius); font-size: 14.5px; line-height: 1.25; color: var(--on-dark); transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.chip:hover span { border-color: var(--on-dark); }
.chip input:checked + span { background: var(--signal); border-color: var(--signal); color: var(--ink); font-weight: 600; }
.chip input[type="checkbox"]:checked + span::before { content: ""; width: 9px; height: 5px; margin: -3px 0 0 1px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.field--dark label { color: var(--on-dark); }
.field--dark .opt { color: var(--on-dark-muted); font-weight: 400; }
.field--dark input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); color: var(--on-dark); }
.field--dark input::placeholder { color: var(--on-dark-muted); opacity: 1; }
.field--dark input:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(245, 182, 13, .35); }
.builder__out { padding: 12px 14px; border: 1px solid var(--rule-dark); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.builder__label { margin: 0 0 4px; font-size: 13px; color: var(--on-dark-muted); }
.builder__out p:last-child { margin: 0; font-size: 15px; line-height: 1.5; }

/* temas e formatos (treinamentos) */
.topic-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.topic { display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: clamp(20px, 2.4vw, 28px); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.topic h3 { margin: 0; font: 700 1.5rem/1.15 var(--display); }
.topic .text-link { justify-self: start; }
.formats { margin: 0; display: grid; }
.formats > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.formats > div:first-child { padding-top: 0; }
.formats dt { font-weight: 600; }
.formats dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }

/* pedido de cotação item a item (fornecimento) */
.rfq-card { min-width: 0; }
.rfq { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.rfq legend { padding: 0; margin-bottom: 8px; font: 600 14px/1.3 var(--sans); }
.rfq__head, .rfq__row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 76px minmax(0, .75fr) 40px; gap: 8px; align-items: end; }
.rfq__head { font-size: 13px; font-weight: 600; color: var(--muted); }
.rfq__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rfq__row .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rfq__row .field input, .rfq__row .field select { min-height: 44px; padding: 9px 10px; font-size: 15px; }
.rfq__del { width: 40px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--muted); cursor: pointer; }
.rfq__del:hover { color: var(--ink); border-color: var(--ink); }
.rfq__del svg { width: 16px; height: 16px; }
.rfq__del[hidden] { display: grid; visibility: hidden; }
.rfq__add { justify-self: start; min-height: 40px; padding: 0 14px; font-size: 15px; }

/* ---------- páginas institucionais e de apoio ---------- */
.h1--page { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); max-width: 22ch; }
.mini-pillars--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.timeline li { position: relative; display: grid; gap: 6px; align-content: start; padding: 22px 18px 0 0; }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--signal); border: 2px solid var(--ink); border-radius: 50%; }
.timeline b { font: 600 1.5rem/1 var(--mono); }
.timeline strong { font: 600 1.1rem/1.25 var(--display); }
.timeline span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.legal { max-width: 72ch; }
.legal h2 { margin: 2em 0 .5em; font: 700 1.5rem/1.2 var(--display); }
.legal p { margin: 0 0 1em; }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; display: grid; gap: 8px; }
.legal a { text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.thanks { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.thanks__copy { display: grid; gap: 20px; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; row-gap: 2px; }
.next-steps li::before { counter-increment: ns; content: counter(ns); grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font: 600 14px/1 var(--mono); }
.next-steps strong { font-weight: 600; }
.next-steps span { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* aviso de cookies (só no site publicado) */
.linklike { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--on-dark); }
.consent {
  position: fixed; z-index: 65; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100% - 32px)); display: grid; gap: 14px; padding: 18px 20px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(19, 27, 32, .22);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 15px; line-height: 1.5; }
.consent a { font-weight: 600; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__actions .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .hero__grid, .cta__grid, .lead-person, .magnet, .process, .split, .deliver, .p-hero, .case { grid-template-columns: minmax(0, 1fr); }
  .results { grid-template-columns: minmax(0, 1fr); }
  .ai-strip { grid-template-columns: minmax(0, 1fr); }
  .clients__grid { grid-template-columns: repeat(7, 150px); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .clients__grid li { scroll-snap-align: start; }
  .clients__scroll { overflow-x: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .summary-strip > div { border-bottom: 1px solid var(--rule); }
  .summary-strip > div:nth-child(2n) { border-right: 0; }
  .summary-strip > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .tree-card { position: static; }
  .mini-pillars { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .pillar, .pillar--feature { grid-column: 1 / -1; }
  .pillar--feature { grid-template-columns: minmax(0, 1fr); }
  .pillar--feature .pillar__media { aspect-ratio: 16 / 9; }
  .checks--two { grid-template-columns: 1fr; }
  .ai-uses { grid-template-columns: 1fr; }
  .results__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); padding-left: 22px; }
  .step { padding: 0 0 6px; }
  .step::after { left: -30px; top: 2px; }
  .form__row { grid-template-columns: 1fr; }
  .symptoms { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc__inputs { grid-template-columns: 1fr 1fr; }
  .tree-card__body { grid-template-columns: minmax(0, 1fr); }
  .tree-detail { border-left: 0; border-top: 1px solid var(--rule-dark); }
  .io { grid-template-columns: minmax(0, 1fr); }
  .io > div:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .io > div:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .io__arrow { height: 34px; }
  .io__arrow svg { transform: rotate(90deg); }
  .recog { grid-template-columns: 1fr; }
  .summary-strip { grid-template-columns: 1fr; }
  .summary-strip > div { border-right: 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rule); backdrop-filter: blur(8px);
  }
  .mobile-cta .btn { min-height: 48px; padding: 0 12px; font-size: 15px; }
  .mobile-cta .btn--wa { background: #1FAF54; color: #fff; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .faq details > div { padding-right: 0; }
  .person-card dt, .person-card dd { padding-left: 16px; padding-right: 16px; }
  .person-card dd { padding-left: 0; }
}
@media (max-width: 420px) {
  .btn-row .btn { width: 100%; }
  .datasheet dl { grid-template-columns: 1fr; }
  .datasheet dt { padding-bottom: 0; border-bottom: 0; }
  .datasheet dd { padding-left: 18px; padding-top: 4px; }
  .calc__inputs { grid-template-columns: 1fr; }
}

/* ---------- responsivo das páginas de frente ---------- */
@media (max-width: 1080px) {
  .calc__inputs--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--4, .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .calc__inputs--4 { grid-template-columns: 1fr 1fr; }
  .calc__results, .calc__results--3 { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .calc__results > div, .calc__results > div + div { padding: 12px 0 2px; border-left: 0; }
  .options, .cards--4, .cards--3, .cards--2, .facts, .topic-groups { grid-template-columns: minmax(0, 1fr); }
  .tool-card__body { padding: 16px 14px; }
  .scurve__readout dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rfq__head { display: none; }
  .rfq__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; padding: 12px; background: var(--sheet); border: 1px solid var(--rule-soft); border-radius: var(--radius); }
  .rfq__desc, .rfq__cod { grid-column: 1 / -1; }
  .rfq__row .field label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: 13.5px; }
  .rfq__del { grid-column: 3; grid-row: 2; width: 44px; }
}
@media (max-width: 420px) {
  .calc__inputs--4 { grid-template-columns: 1fr; }
  .calc__results, .calc__results--3 { grid-template-columns: 1fr; }
  .chip span { font-size: 14px; }
}
@media (max-width: 760px) {
  .formula { white-space: normal; }
}

/* ---------- responsivo das páginas institucionais ---------- */
@media (max-width: 1080px) {
  .thanks { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--ink); padding-left: 24px; row-gap: 22px; }
  .timeline li { padding: 0; }
  .timeline li::before { left: -32px; top: 4px; }
}
@media (max-width: 760px) {
  .consent { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; border-width: 1px 0 0; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .consent__actions .btn { flex: 1; }
}
