/* =====================================================================
   Selectus Performance - Folha de estilos unica
   Design system: dark premium, tecnico, editorial.
   Ordem: tokens, reset, base, utilitarios, componentes, secoes,
   paginas de prospect/case, responsivo, animacoes, acessibilidade.
   ===================================================================== */

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

/* ---------------------------------------------------------------------
   1. Tokens (CSS custom properties)
   --------------------------------------------------------------------- */
:root {
  /* Cores de fundo */
  --bg-primary:      #07090E;
  --bg-secondary:    #0D1B2A;
  --bg-card:         #101520;
  --bg-card-hover:   #161D2E;

  /* Acentos */
  --accent-cyan:     #00B4D8;
  --accent-amber:    #F5A623;
  --accent-green:    #22C55E;
  --accent-red:      #EF4444;

  /* Texto */
  --text-primary:    #FFFFFF;
  --text-secondary:  #AABBCC;
  --text-muted:      #8B98AB;

  /* Bordas */
  --border-subtle:   #1E2A3A;
  --border-strong:   #2D3B4E;

  /* Tipografia */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* Raios */
  --radius-chip: 8px;
  --radius-btn: 12px;
  --radius-card: 16px;
  --radius-lg: 24px;

  /* Sombras */
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-cyan: 0 8px 32px rgba(0, 180, 216, 0.18);

  /* Espacos (multiplos de 8) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-12: 96px;

  /* Layout */
  --container: 1200px;
  --header-h: 76px;

  /* Transicoes */
  --t-fast: 140ms ease;
  --t-med: 220ms ease;
}

/* ---------------------------------------------------------------------
   2. Reset
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
svg { height: auto; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, select, textarea { font-family: inherit; font-size: 1rem; color: inherit; }

ul { list-style: none; padding: 0; }

/* ---------------------------------------------------------------------
   3. Tipografia base
   --------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.5rem); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 600; }

/* ---------------------------------------------------------------------
   4. Utilitarios de layout
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}

.section { padding-block: var(--sp-12); }
.section--tight { padding-block: var(--sp-8); }
.bg-secondary { background: var(--bg-secondary); }

.section-head { max-width: 760px; margin-bottom: var(--sp-6); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: var(--sp-2);
}

.section-head p { margin-top: var(--sp-2); font-size: 1.06rem; }
.text-muted { color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--text-secondary); }

/* ---------------------------------------------------------------------
   5. Botoes
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t-med), color var(--t-med), box-shadow var(--t-med);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-amber);
  color: #101013;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 8px 30px rgba(245, 166, 35, 0.28); }

.btn-secondary {
  background: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}
.btn-secondary:hover { background: var(--accent-cyan); color: #05161c; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding-inline: 8px;
}
.btn-ghost:hover { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 4px; }

.btn-block { width: 100%; }

/* ---------------------------------------------------------------------
   6. Cards
   --------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--sp-4);
}

.card-clickable {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med), background var(--t-med);
}
.card-clickable:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lift);
}

/* ---------------------------------------------------------------------
   7. Tags
   --------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-chip);
  border: 1px solid transparent;
}
.tag-cyan  { color: var(--accent-cyan);  background: rgba(0, 180, 216, 0.1);  border-color: rgba(0, 180, 216, 0.3); }
.tag-amber { color: var(--accent-amber); background: rgba(245, 166, 35, 0.1); border-color: rgba(245, 166, 35, 0.3); }
.tag-green { color: var(--accent-green); background: rgba(34, 197, 94, 0.1);  border-color: rgba(34, 197, 94, 0.3); }

/* ---------------------------------------------------------------------
   8. Score badge
   --------------------------------------------------------------------- */
.score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 3px solid currentColor;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.06), transparent 70%);
}
.score-badge .score-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 1;
  color: currentColor;
}
.score-badge .score-max { font-size: 1rem; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.05em; }

.score-badge--sm { width: 72px; height: 72px; border-width: 2px; }
.score-badge--sm .score-num { font-size: 1.6rem; }

/* faixas de cor por nota */
.score-red         { color: var(--accent-red); }
.score-amber       { color: var(--accent-amber); }
.score-green-light { color: #7BD88F; }
.score-green       { color: var(--accent-green); }

/* ---------------------------------------------------------------------
   9. Metric block
   --------------------------------------------------------------------- */
.metric-block { display: flex; flex-direction: column; gap: 4px; }
.metric-block .metric-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.metric-block .metric-label { font-size: 0.92rem; color: var(--text-secondary); }
.metric-num--amber { color: var(--accent-amber); }
.metric-num--cyan { color: var(--accent-cyan); }

/* ---------------------------------------------------------------------
   10. Header
   --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t-med), border-color var(--t-med), backdrop-filter var(--t-med);
}
.site-header.is-scrolled {
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--sp-3);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand-note {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 3px 9px;
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: var(--radius-chip);
}

.nav-links { display: flex; align-items: center; gap: var(--sp-4); }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--text-primary); }

.header-actions { display: flex; align-items: center; gap: var(--sp-2); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-chip);
  border: 1px solid var(--border-subtle);
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--text-primary); }

/* Drawer mobile */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-3);
  background: var(--bg-primary);
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer .drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: var(--sp-2); }
.mobile-drawer nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-drawer .btn { margin-top: var(--sp-4); }
.drawer-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.drawer-close svg { width: 24px; height: 24px; stroke: var(--text-primary); }

body.no-scroll { overflow: hidden; }

/* ---------------------------------------------------------------------
   11. Hero (institucional)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%; right: -5%;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.08), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-8);
  align-items: center;
  width: 100%;
}
.hero-copy { max-width: 640px; }
.hero-copy h1 { margin-block: var(--sp-2) var(--sp-3); }
.hero-copy .subtitle { font-size: 1.25rem; color: var(--text-secondary); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(var(--shadow-lift)); }

/* ---------------------------------------------------------------------
   12. Barra de credibilidade
   --------------------------------------------------------------------- */
.cred { border-block: 1px solid var(--border-subtle); background: var(--bg-secondary); }
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cred-item {
  padding: var(--sp-6) var(--sp-3);
  text-align: center;
  border-left: 1px solid var(--border-subtle);
}
.cred-item:first-child { border-left: none; }
.cred-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--text-primary);
}
.cred-num .cred-unit { color: var(--accent-cyan); }
.cred-label { display: block; margin-top: var(--sp-1); font-size: 0.95rem; color: var(--text-secondary); }

/* ---------------------------------------------------------------------
   13. Servicos
   --------------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }

.service-card .svc-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-btn);
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.2);
  margin-bottom: var(--sp-3);
}
.service-card .svc-icon svg { width: 26px; height: 26px; stroke: var(--accent-cyan); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.98rem; }

/* ---------------------------------------------------------------------
   14. CRM proprietario
   --------------------------------------------------------------------- */
.crm-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.crm-shot {
  background: #0A0F18;
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--sp-3);
}
.crm-shot svg { width: 100%; height: auto; border-radius: 10px; }
.crm-body { padding: var(--sp-4); }
.crm-body .crm-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: 12px; }
.crm-body h3 { margin: 0; }
.crm-body p { font-size: 0.96rem; }
.crm-cta { margin-top: var(--sp-6); text-align: center; }

/* ---------------------------------------------------------------------
   15. Cases (cards clicaveis)
   --------------------------------------------------------------------- */
.case-card { padding: 0; overflow: hidden; }
.case-card .case-thumb { border-bottom: 1px solid var(--border-subtle); background: #0A0F18; }
.case-card .case-thumb svg { width: 100%; height: auto; }
.case-card .case-body { padding: var(--sp-3); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-card .case-name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--text-primary); }
.case-card .case-meta { font-size: 0.86rem; color: var(--text-muted); }
.case-card .case-metric { font-size: 0.98rem; color: var(--text-secondary); margin-top: 4px; }
.case-card .case-metric strong { color: var(--accent-amber); font-family: var(--font-head); }
.case-card .case-link { margin-top: auto; padding-top: var(--sp-2); font-size: 0.9rem; font-weight: 600; color: var(--accent-cyan); }

/* ---------------------------------------------------------------------
   16. Metodo (timeline)
   --------------------------------------------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 26px; left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan) 12%, var(--accent-cyan) 88%, transparent);
  opacity: 0.5;
}
.timeline-step { position: relative; }
.timeline-step .step-dot {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-cyan);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent-cyan);
  position: relative;
  z-index: 1;
  margin-bottom: var(--sp-3);
}
.timeline-step .step-when { color: var(--accent-cyan); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }
.timeline-step h3 { margin-block: 6px 8px; font-size: 1.2rem; }
.timeline-step p { font-size: 0.95rem; }

/* ---------------------------------------------------------------------
   17. Depoimentos (carrossel)
   --------------------------------------------------------------------- */
.testi-viewport { overflow: hidden; }
.testi-track { display: flex; gap: var(--sp-3); transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1); }
.testi-card {
  flex: 0 0 calc((100% - var(--sp-3) * 2) / 3);
  min-width: 0;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--sp-4);
  padding-top: var(--sp-6);
}
.testi-card .quote-mark {
  position: absolute;
  top: 18px; left: var(--sp-4);
  font-family: var(--font-head);
  font-size: 3.6rem;
  line-height: 0.6;
  color: var(--accent-cyan);
  opacity: 0.55;
}
.testi-card blockquote { color: var(--text-secondary); font-size: 0.98rem; line-height: 1.6; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: var(--sp-3); }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-head);
  font-weight: 700;
}
.testi-author .who { font-size: 0.9rem; }
.testi-author .who strong { display: block; color: var(--text-primary); }
.testi-author .who span { color: var(--text-muted); font-size: 0.82rem; }
.testi-controls { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: var(--sp-4); }
.testi-dot { width: 24px; height: 24px; padding: 0; border-radius: 50%; background: transparent; position: relative; }
.testi-dot::before { content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); transition: background var(--t-fast), transform var(--t-fast); }
.testi-dot.is-active::before { background: var(--accent-cyan); transform: scale(1.25); }
.testi-toggle { width: 32px; height: 32px; margin-right: 4px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-secondary); transition: color var(--t-fast), border-color var(--t-fast); }
.testi-toggle:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }
.testi-toggle svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------------------------------------------------------------------
   18. Sobre
   --------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.about-copy p + p { margin-top: var(--sp-2); }
.manifesto {
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  box-shadow: var(--shadow-cyan);
}
.manifesto p {
  font-family: var(--font-head);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.3;
  color: var(--text-primary);
}
.manifesto .manifesto-sign { display: block; margin-top: var(--sp-3); font-style: normal; font-size: 1rem; color: var(--accent-cyan); }

/* ---------------------------------------------------------------------
   19. CTA final + formulario
   --------------------------------------------------------------------- */
.cta { background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary)); text-align: center; }
.cta .section-head { margin-inline: auto; }
.contact-form {
  max-width: 480px;
  margin: var(--sp-6) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.field input, .field select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  padding: 13px 15px;
  color: var(--text-primary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667080' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 42px; }
.contact-form .btn { margin-top: var(--sp-2); }
.form-note { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-top: var(--sp-1); }

/* ---------------------------------------------------------------------
   20. Rodape
   --------------------------------------------------------------------- */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); padding-block: var(--sp-8) var(--sp-4); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); }
.footer-col h3 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-2); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { font-size: 0.95rem; color: var(--text-secondary); }
.footer-col a:hover { color: var(--accent-cyan); }
.footer-brand img { height: 30px; margin-bottom: var(--sp-2); }
.footer-brand p { font-size: 0.95rem; max-width: 280px; }
.footer-brand .cnpj { display: block; margin-top: var(--sp-2); font-size: 0.82rem; color: var(--text-muted); }
.footer-baseline { margin-top: var(--sp-8); padding-top: var(--sp-3); border-top: 1px solid var(--border-subtle); font-size: 0.85rem; color: var(--text-muted); text-align: center; }

/* =====================================================================
   PAGINAS DE PROSPECT / CASE
   ===================================================================== */

/* Barra de resultado real (topo das paginas de case) */
.result-bar {
  margin-top: var(--header-h);
  background: linear-gradient(90deg, rgba(0, 180, 216, 0.16), rgba(0, 180, 216, 0.06));
  border-bottom: 1px solid rgba(0, 180, 216, 0.35);
  text-align: center;
  padding: 14px var(--sp-3);
}
.result-bar p { color: var(--text-primary); font-size: 0.98rem; }
.result-bar strong { color: var(--accent-cyan); }

/* Hero da subpagina */
.px-hero { padding-top: calc(var(--header-h) + var(--sp-8)); padding-bottom: var(--sp-8); position: relative; overflow: hidden; }
.px-hero.has-bar { padding-top: var(--sp-8); }
.px-hero::before {
  content: "";
  position: absolute; top: -20%; right: -5%;
  width: 50vw; height: 50vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.08), transparent 62%);
  pointer-events: none;
}
.px-hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: var(--sp-8); align-items: center; }
.px-hero-copy h1 { margin-block: var(--sp-2) 10px; }
.px-hero-copy .px-sub { font-size: 1.1rem; color: var(--accent-cyan); font-weight: 500; }
.px-hero-copy .px-hook { margin-top: var(--sp-3); font-size: 1.1rem; color: var(--text-secondary); max-width: 620px; }
.px-score-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.px-score-wrap .px-score-label { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

/* Diagnostico (5 canais) */
.diag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.diag-card { display: flex; flex-direction: column; gap: var(--sp-2); }
.diag-card .diag-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.diag-card .diag-canal { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.diag-card .diag-leitura { font-size: 0.94rem; color: var(--text-secondary); }

/* Pontos fortes vs oportunidades */
.swot { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.swot-col { border-radius: var(--radius-card); border: 1px solid var(--border-subtle); background: var(--bg-card); padding: var(--sp-4); }
.swot-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-3); font-size: 1.2rem; }
.swot-col ul { display: flex; flex-direction: column; gap: 12px; }
.swot-col li { position: relative; padding-left: 28px; font-size: 0.98rem; color: var(--text-secondary); }
.swot-col li::before { position: absolute; left: 0; top: 1px; font-family: var(--font-head); font-weight: 700; }
.swot-col--fortes { border-left: 3px solid var(--accent-green); }
.swot-col--fortes h3 { color: var(--accent-green); }
.swot-col--fortes li::before { content: "+"; color: var(--accent-green); }
.swot-col--oport { border-left: 3px solid var(--accent-amber); }
.swot-col--oport h3 { color: var(--accent-amber); }
.swot-col--oport li::before { content: "!"; color: var(--accent-amber); }

/* Roadmap (3 fases) */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.roadmap-col { border-radius: var(--radius-card); background: var(--bg-card); border: 1px solid var(--border-subtle); padding: var(--sp-4); }
.roadmap-col .roadmap-when { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 4px; }
.roadmap-col .roadmap-tag { font-size: 0.82rem; color: var(--text-muted); margin-bottom: var(--sp-3); display: block; }
.roadmap-col ul { display: flex; flex-direction: column; gap: 12px; }
.roadmap-col li { position: relative; padding-left: 24px; font-size: 0.95rem; color: var(--text-secondary); }
.roadmap-col li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; }
.roadmap-col--now { border-top: 3px solid var(--accent-cyan); }
.roadmap-col--now .roadmap-when { color: var(--accent-cyan); }
.roadmap-col--now li::before { background: var(--accent-cyan); }
.roadmap-col--mid { border-top: 3px solid var(--accent-amber); }
.roadmap-col--mid .roadmap-when { color: var(--accent-amber); }
.roadmap-col--mid li::before { background: var(--accent-amber); }
.roadmap-col--long { border-top: 3px solid var(--accent-green); }
.roadmap-col--long .roadmap-when { color: var(--accent-green); }
.roadmap-col--long li::before { background: var(--accent-green); }

/* Tabela de impacto */
.impact-wrap { overflow-x: auto; border-radius: var(--radius-card); border: 1px solid var(--border-subtle); }
.impact-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.impact-table th, .impact-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.impact-table thead th { background: var(--bg-secondary); font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.impact-table tbody tr:last-child td { border-bottom: none; }
.impact-table td:first-child { color: var(--text-primary); font-weight: 500; }
.impact-table .col-atual { color: var(--text-secondary); }
.impact-table .col-proj { color: var(--accent-amber); font-family: var(--font-head); font-weight: 600; }
.impact-table .col-cresc { color: var(--accent-green); font-weight: 600; }

/* Blocos condensados fixos */
.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.mini-step { border-left: 2px solid var(--accent-cyan); padding-left: var(--sp-2); }
.mini-step strong { display: block; color: var(--text-primary); font-family: var(--font-head); margin-bottom: 4px; }
.mini-step span { font-size: 0.92rem; color: var(--text-secondary); }

/* ---------------------------------------------------------------------
   21. Animacoes
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   22. Acessibilidade
   --------------------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--accent-cyan);
  color: #05161c;
  padding: 10px 16px;
  border-radius: var(--radius-chip);
  font-weight: 600;
}
.skip-link:focus { left: 16px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------
   23. Responsivo
   --------------------------------------------------------------------- */
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .section { padding-block: var(--sp-8); }
  .nav-links, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: auto; padding-block: calc(var(--header-h) + var(--sp-8)) var(--sp-8); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .timeline { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .timeline::before { display: none; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .cred-item:nth-child(3) { border-left: none; }
  .cred-item:nth-child(1), .cred-item:nth-child(2) { border-bottom: 1px solid var(--border-subtle); }
  .px-hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .px-score-wrap { order: -1; align-items: flex-start; }
  .diag-grid { grid-template-columns: 1fr 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .mini-steps { grid-template-columns: 1fr 1fr; }
  .testi-card { flex-basis: calc((100% - var(--sp-3)) / 2); }
}

@media (max-width: 620px) {
  :root { --sp-12: 56px; --sp-8: 44px; }
  h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .swot { grid-template-columns: 1fr; }
  .diag-grid { grid-template-columns: 1fr; }
  .mini-steps { grid-template-columns: 1fr; }
  .testi-card { flex-basis: 100%; }
  .hero-actions .btn, .contact-form .btn { width: 100%; }
  .px-score-wrap .score-badge { width: 140px; height: 140px; }
  .px-score-wrap .score-badge .score-num { font-size: 3rem; }
}

/* ---------------------------------------------------------------------
   24. Preferencias de movimento reduzido
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
