/* ==========================================================================
   KognoVIA — Folha de estilo compartilhada do site institucional
   Tokens de marca: squads/design-system/_memory/design-tokens.md
   ========================================================================== */

/* Fonte Panton (Fontfabric) — arquivos em assets/fonts/ */
@font-face { font-family: 'Panton'; src: url('../fonts/Panton-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Panton'; src: url('../fonts/Panton-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Panton'; src: url('../fonts/Panton-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Panton'; src: url('../fonts/Panton-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Panton'; src: url('../fonts/Panton-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* Cores de marca — Manual_KognoVIA.pdf */
  --color-base: #002D38;      /* Força e Segurança */
  --color-pink: #E6007E;      /* Eixo Humano */
  --color-orange: #F39200;    /* Eixo Humano */
  --color-green: #00A75D;     /* Eixo Tecnológico */
  --color-blue: #0086CD;      /* Eixo Tecnológico */
  --color-white: #FFFFFF;

  /* Cor de link/texto derivada do azul de marca, escurecida para
     passar em contraste de corpo de texto sobre branco (~4.5:1+) */
  --color-link: #006AA3;

  --color-text: var(--color-base);
  --color-text-muted: #4A6068;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4F7F8;
  --color-border: #DCE3E5;

  --font-title: 'Panton', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Panton', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-title-weight: 700;
  --font-body-weight: 400; /* 300 (Light) é fraco em corpo pequeno — usar 400 como padrão seguro */

  --max-width: 1120px;
  --radius: 8px;
  --gap: 28px;
  --section-pad: 72px;
  --section-pad-mobile: 40px;
  --transition: 0.2s ease;
}

/* ---- Reset básico ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: var(--font-body-weight);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: var(--font-title-weight);
  line-height: 1.25;
  color: var(--color-base);
}
h1 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 20px; }
h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 16px; }
h3 { font-size: clamp(19px, 2.4vw, 22px); margin-bottom: 12px; }
p { margin-bottom: 20px; max-width: 70ch; }
ul, ol { margin: 0 0 20px 22px; }
li { margin-bottom: 8px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-lockup img { height: 36px; width: auto; aspect-ratio: 858 / 784; }
.logo-lockup__text {
  font-family: var(--font-title);
  font-weight: var(--font-title-weight);
  font-size: 20px;
  color: var(--color-base);
  white-space: nowrap;
}
.logo-lockup--dark .logo-lockup__text { color: var(--color-white); }

.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav a {
  color: var(--color-base);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.main-nav a:hover { color: var(--color-pink); text-decoration: none; }
.main-nav__cta {
  background: var(--color-pink);
  color: var(--color-white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700 !important;
}
.main-nav__cta:hover { background: #c40069; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: none;
    cursor: pointer;
  }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-white);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--color-border);
  }
}

/* ---- Hero (fundo escuro) ---- */
.hero {
  background: var(--color-base);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  padding: 88px 0 80px;
}
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url('../logo/brain-white.svg');
  background-repeat: no-repeat;
  background-position: right -70px top -70px;
  background-size: 400px;
  opacity: 0.06;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 760px; }
.hero h1, .hero p { color: var(--color-white); }
.hero p { color: rgba(255,255,255,0.86); font-size: 18px; max-width: 60ch; }

.hero--compact { padding: 56px 0 52px; }
.hero--compact .container { max-width: 900px; }

/* ---- Botões ---- */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-pink);
  color: var(--color-white) !important;
}
.btn-primary:hover { background: #c40069; text-decoration: none; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white) !important;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

.btn-outline-dark {
  background: transparent;
  border-color: var(--color-base);
  color: var(--color-base) !important;
}
.btn-outline-dark:hover { background: rgba(0,45,56,0.06); text-decoration: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---- Seções ---- */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-base); color: var(--color-white); }
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-dark p { color: rgba(255,255,255,0.85); }

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-pink);
  margin-bottom: 10px;
}
.section-dark .section-eyebrow { color: var(--color-orange); }

/* Faixa de gradiente — assinatura visual */
.brand-rule {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-pink), var(--color-orange));
}
.brand-rule--tech {
  background: linear-gradient(90deg, var(--color-green), var(--color-blue));
}

/* ---- Grid de cards ---- */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: 0 8px 24px rgba(0,45,56,0.08); transform: translateY(-2px); }
.card--gradient-humano { border-top: 4px solid var(--color-pink); }
.card--gradient-tech { border-top: 4px solid var(--color-blue); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link { font-weight: 700; }

/* Cards em fundo escuro */
.section-dark .card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}

/* ---- Números / stats ---- */
.stats-row {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}
.stat__value {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--color-pink);
  display: block;
  margin-bottom: 6px;
}
.stat__label { color: var(--color-text-muted); font-size: 14px; }

/* ---- Logos de clientes ---- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}
.logo-strip span {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-muted);
}

/* ---- Badge "hoje" / "visão" (página de IA) ---- */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.badge--hoje { background: rgba(0,167,93,0.14); color: #00723f; }
.badge--visao { background: rgba(243,146,0,0.16); color: #8a5400; }
.section-dark .badge--hoje { background: rgba(0,167,93,0.22); color: #baf2d3; }
.section-dark .badge--visao { background: rgba(243,146,0,0.22); color: #ffd9a0; }

/* ---- Tabelas (FAQ acordeão simples / tabelas de conteúdo) ---- */
table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); font-size: 15px; }
th { font-family: var(--font-title); font-weight: 700; }

/* ---- FAQ (details/summary nativo) ---- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}
.faq-item summary {
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--color-pink); }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin-top: 14px; margin-bottom: 0; }

/* ---- Formulário ---- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--color-white);
  color: var(--color-text);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-pink);
  box-shadow: 0 0 0 3px rgba(230,0,126,0.14);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-base);
  color: rgba(255,255,255,0.82);
  padding: 56px 0 28px;
}
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: var(--color-white); }
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--color-white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}


@media (max-width: 640px) {
  :root { --section-pad: var(--section-pad-mobile); }
  .hero { padding: 56px 0 48px; }
}

/* ---- Página de caso (vídeo + resumo) ---- */
.case-grid { display: grid; gap: 40px; grid-template-columns: minmax(240px, 340px) 1fr; align-items: start; }
.case-video video { width: 100%; height: auto; border-radius: var(--radius); background: var(--color-base); display: block; }
.case-video figcaption { font-size: 14px; color: var(--color-text-muted); margin-top: 10px; line-height: 1.5; }
.case-quote { margin: 28px 0 0; padding: 20px 24px; border-left: 4px solid var(--color-pink); background: var(--color-white); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-title); font-weight: 700; font-size: clamp(19px, 2.4vw, 22px); line-height: 1.35; }
.case-quote cite { display: block; margin-top: 10px; font-family: var(--font-body); font-weight: 400; font-size: 14px; font-style: normal; color: var(--color-text-muted); }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } .case-video { max-width: 340px; } }
.hero .section-eyebrow { color: var(--color-orange); }
