/* Bancada — design tokens (ver bancada-brief-design/project/Home.dc.html para origem) */
:root {
  --bg: #F5F4F0;
  --ink: #1C1E21;
  --ink-soft: #3A3D42;
  --border: #C9C8C2;
  --border-soft: #E3E1DA;
  --muted: #8A8D91;
  --card-bg: #FBFAF7;
  --accent: #E8641B;
  --accent-hover: #CE5410;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
  box-sizing: border-box;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--accent);
  color: var(--bg);
  border-radius: 2px;
}

.btn:hover {
  background: var(--accent-hover);
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 64px;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  font-size: 14px;
  font-weight: 500;
}

.nav__links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav__links a:not(.btn):hover,
.nav__links a.is-active {
  color: var(--accent);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav__toggle {
    display: flex;
    margin-left: auto;
  }

  .nav__links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex-basis: 100%;
    gap: 2px;
    padding-top: 12px;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a:not(.btn) {
    padding: 12px 4px;
    border-top: 1px solid var(--border-soft);
  }

  .nav__cta {
    margin-top: 10px;
    text-align: center;
  }
}

.nav__cta {
  font-size: 12px;
  padding: 10px 18px;
  white-space: nowrap;
}

/* HERO */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#8A8D91 1px, transparent 1px),
    linear-gradient(90deg, #8A8D91 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.08;
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 880px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

.hero p {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  margin: 0;
  max-width: 640px;
  color: var(--ink-soft);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.hero__cta .btn {
  font-size: 15px;
  padding: 16px 28px;
}

.hero__cta-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* BARRA DE PROVAS */
.provas {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(40px, 6vw, 64px) 0;
}

.provas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.provas__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--ink-soft);
  padding-left: 20px;
}

.provas__numero {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 48px);
  color: var(--accent);
  line-height: 1;
}

.provas__label {
  font-size: 15px;
  line-height: 1.4;
  color: var(--bg);
}

.provas__fonte {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* SECTION HEADER (numbered) */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section--tight-top {
  padding-top: 0;
}

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section__eyebrow span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.section__eyebrow-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* O PROBLEMA */
.problema__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(32px, 4vw, 56px);
}

.problema__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problema__item h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.problema__item p {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  color: var(--ink-soft);
}

.problema__conclusao {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  margin: 64px 0 0;
  max-width: 760px;
}

/* PRODUTOS */
.produtos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.produto-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 28px;
  text-decoration: none;
  color: var(--ink);
}

.produto-card:hover {
  border-color: var(--ink);
}

.produto-card__status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 5px 12px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.produto-card__status .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.7;
}

.produto-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}

.produto-card p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink-soft);
  flex: 1;
}

.produto-card__prova {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}

.produto-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* MÉTODO */
.metodo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(32px, 4vw, 56px);
}

.metodo__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.metodo__passo {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.metodo__item h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  margin: 0;
}

.metodo__item p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  color: var(--ink-soft);
}

/* ENDOSSO */
.endosso__box {
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--card-bg);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.endosso__box p {
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.5;
  margin: 0;
  max-width: 900px;
}

.endosso__box span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* CTA FINAL */
.cta-final {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(64px, 9vw, 112px) 0;
}

.cta-final__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  text-transform: uppercase;
  margin: 0;
}

.cta-final p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
  color: var(--border);
}

.cta-final .btn {
  font-size: 15px;
  padding: 16px 28px;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px clamp(20px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: baseline;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.footer__brand {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer__brand a {
  color: var(--ink);
}

.footer__local {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ===== Páginas internas (Produtos, Produto, Casos, Método, Quem) ===== */

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
  box-sizing: border-box;
}

.content--narrow {
  max-width: 920px;
}

/* Cabeçalho de página */
.page-header {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-header--tight {
  padding-bottom: clamp(40px, 5vw, 64px);
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
}

.page-header p {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 680px;
  color: var(--ink-soft);
}

.back-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

/* Filtro (Produtos) */
.filtro {
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filtro__btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
}

.filtro__btn.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

/* Grade de produtos (reaproveita .produtos__grid / .produto-card da Home) */
.produtos-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: clamp(64px, 9vw, 112px);
}

/* Caixa CTA reutilizável dentro de conteúdo (Produto, Casos, Método, Quem) */
.cta-box {
  background: var(--ink);
  color: var(--bg);
  border-radius: 2px;
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 40px);
  text-transform: uppercase;
  margin: 0;
}

.cta-box p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
  color: var(--border);
}

.cta-box .btn {
  font-size: 15px;
  padding: 16px 28px;
}

/* Página de Produto (detalhe) */
.pd-main {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(64px, 9vw, 112px);
}

.pd-header {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.pd-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
}

.pd-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.pd-status .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.7;
}

.pd-dor {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

.pd-passos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.pd-passo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.pd-passo__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.pd-passo p {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  color: var(--ink-soft);
}

.pd-nota {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--card-bg);
  padding: 20px 24px;
  max-width: 760px;
}

.pd-prova {
  background: var(--ink);
  color: var(--bg);
  border-radius: 2px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pd-prova__metrica {
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  color: var(--accent);
}

.pd-prova__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  border-top: 1px solid var(--ink-soft);
  padding-top: 18px;
}

.pd-prova__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pd-prova__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.pd-prova__value {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--bg);
}

.pd-prova__fonte {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--ink-soft);
  padding-top: 14px;
}

.pd-formato {
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--card-bg);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-formato p {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

.pd-formato p.faixa {
  font-weight: 600;
}

.pd-formato span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.pd-governanca {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.pd-governanca__item {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Lista dividida (contexto de Casos, itens de Governança em Método) */
.info-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--card-bg);
}

.info-list__item {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-list__item:last-child {
  border-bottom: none;
}

.info-list__item h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  margin: 0;
}

.info-list__item p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: var(--ink-soft);
}

/* Casos */
.caso {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.caso h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.15;
  margin: 0;
  max-width: 800px;
}

.caso__contexto {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
  color: var(--ink-soft);
}

.caso__contexto strong {
  color: var(--ink);
}

.caso .info-list__item {
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.caso__stat-bar {
  background: var(--ink);
  color: var(--bg);
  border-radius: 2px;
  padding: clamp(20px, 3vw, 32px);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.8;
}

.caso__stat-bar .hl {
  color: var(--accent);
}

/* Método */
.metodo-page__passo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}

.metodo-page__passo h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0;
}

.metodo-page__passo p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: var(--ink-soft);
  max-width: 760px;
}

.metodo-page__passo .recebe {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* Quem */
.quem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.quem-photo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quem-photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-sizing: border-box;
}

.quem-photo span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.quem-bio {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quem-bio h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
}

.quem-bio p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.quem-bio p.destaque {
  font-weight: 500;
  color: var(--ink);
}

.quem-bio .assinatura {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ===== Ajustes mobile — grids com minmax largo estouram em telas < ~480px ===== */
@media (max-width: 480px) {
  .produtos__grid,
  .produtos-page__grid,
  .problema__grid,
  .quem-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Micro-interações (hover/transição) ===== */
.produto-card {
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.btn {
  transition: background 0.15s ease;
}

.back-link {
  transition: color 0.15s ease;
}

.filtro__btn {
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* ===== "Site vivo" — indicador sutil de dado em tempo real ===== */
.provas__numero {
  display: inline-block;
  animation: bancada-breathe 3.6s ease-in-out infinite;
}

.provas__fonte {
  display: flex;
  align-items: center;
  gap: 6px;
}

.provas__fonte::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: bancada-blink 1.8s ease-in-out infinite;
}

@keyframes bancada-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.78; }
}

@keyframes bancada-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ===== Reveal on scroll (aplicado via site.js) ===== */
.reveal-init {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-init.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
