/* ============================================================
   Vibrato — folha de estilo compartilhada
   Usada por: / , /desenvolvimento/ , /portal/ , /portfolio/
   Editar aqui reflete em todas as paginas.
   ============================================================ */

/* ============================================
   :root — Tokens Vibrato v2.0 (Petróleo Calibrado)
   ============================================ */
:root {
  /* Núcleo Light (canônico) */
  --paper:           #F4F1EA;
  --paper-elevated:  #FCFAF5;
  --paper-sunken:    #EBE7DD;

  /* Núcleo Dark (auxiliar) */
  --ink-deep:        #0F2024;
  --ink-elevated:    #152830;
  --ink-surface:     #1D343C;

  /* Cor de marca */
  --brand:           #1A4D55;
  --brand-soft:      #3A6E77;
  --brand-light:     #96C9D0;

  /* Tipografia */
  --text:            #1A1A1F;
  --text-soft:       #E8E5DE;
  --text-muted:      #57545E;
  --text-faint:      #6B675F;
  --text-line:       #D8D2C6;
  --text-line-dark:  #2F4047;

  /* Utilitário */
  --error:           #A03A2A;

  /* Bordas */
  --border:          rgba(26, 26, 31, 0.08);
  --border-strong:   rgba(26, 26, 31, 0.16);

  /* Sombras (sutis, pose editorial) */
  --shadow-sm:       0 1px 3px rgba(26, 26, 31, 0.04);
  --shadow-md:       0 4px 12px rgba(26, 26, 31, 0.06);
  --shadow-lg:       0 12px 32px rgba(26, 26, 31, 0.08);

  /* Tipografia */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Geometria */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Layout */
  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 32px);

  /* Spacing system fluido */
  --space-xs: clamp(8px, 1.5vw, 12px);
  --space-sm: clamp(12px, 2vw, 16px);
  --space-md: clamp(16px, 2.5vw, 24px);
  --space-lg: clamp(24px, 4vw, 40px);
  --space-xl: clamp(32px, 6vw, 64px);
  --space-2xl: clamp(48px, 8vw, 96px);
  --space-3xl: clamp(64px, 10vw, 128px);
  --section-py: clamp(64px, 10vw, 120px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

::selection {
  background: var(--brand);
  color: var(--paper);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  font-weight: 400;
  line-height: 1.6;
  font-size: clamp(16px, 1.6vw, 18px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, a.btn, a[role="button"], .nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

main, header, footer { position: relative; z-index: 1; }

/* ============================================
   Floating Lines — background animado (WebGL)
   ============================================ */
.floating-lines-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}
.floating-lines-bg canvas { display: block; width: 100%; height: 100%; }

/* ============================================
   Wordmark Vibrato (CSS-rendered)
   ============================================ */
.vbt {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  white-space: nowrap;
}
.vbt .ia { color: var(--brand); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: clamp(12px, 1.8vw, 16px) 0;
  background: rgba(244, 241, 234, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--text-line);
  transition: padding 0.3s, background 0.3s;
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.5vw, 22px);
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo .ia { color: var(--brand); }

.nav-links {
  display: none;
  list-style: none;
  position: fixed;
  top: 0; right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background: var(--paper-elevated);
  padding: calc(env(safe-area-inset-top, 0px) + 80px) var(--gutter) var(--gutter);
  border-left: 1px solid var(--text-line);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  z-index: 95;
  margin: 0;
}
.nav-links.open {
  display: block;
  transform: translateX(0);
}
.nav-links li {
  display: block;
  list-style: none;
  border-top: 1px solid var(--text-line);
}
.nav-links li:first-child {
  border-top: 0;
}
.nav-links li:last-child {
  margin-top: 20px;
  border-top: 0;
}
.nav-links a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--brand); }
.nav-links li:last-child a {
  min-height: 48px;
  padding: 14px 18px;
  background: var(--brand);
  color: var(--paper);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
}
.nav-links li:last-child a:hover {
  background: var(--brand-soft);
  color: var(--paper);
}

.nav-cta {
  background: var(--brand);
  color: var(--paper) !important;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brand-soft); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
  position: relative;
}
.menu-toggle.open {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: var(--gutter);
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 32, 36, 0.4);
  z-index: 90;
  backdrop-filter: blur(4px);
}
.menu-overlay.open { display: block; }

@media (min-width: 968px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: auto;
    height: auto;
    background: transparent;
    padding: clamp(12px, 1.8vw, 16px) var(--gutter);
    border: none;
    transform: none;
    box-shadow: none;
    overflow: visible;
    gap: var(--space-lg);
    align-items: center;
    z-index: 101;
  }
  .nav-links li {
    border-top: 0 !important;
    margin-top: 0 !important;
  }
  .nav-links a {
    min-height: auto;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
  }
  .nav-links li:last-child a {
    background: var(--brand);
    color: var(--paper);
    padding: 10px 18px;
    font-family: var(--font-display);
    font-size: 15.5px;
    border-radius: var(--radius-sm);
    min-height: 44px;
  }
  .menu-toggle, .menu-overlay { display: none !important; }
}

/* ============================================
   COMMON UTILITIES
   ============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 12px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
}
h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 24px;
  line-height: 1.05;
}
h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
p {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-muted);
  max-width: 56ch;
}
.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.55;
  max-width: 60ch;
}

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-soft); }

/* CTAs */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--brand);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15.5px, 1.5vw, 16px);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s;
}
.cta-primary:hover { background: var(--brand-soft); color: var(--paper); }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15.5px, 1.5vw, 16px);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.cta-secondary:hover {
  background: var(--paper-sunken);
  border-color: var(--text);
  color: var(--text);
}

/* ============================================
   HERO (sem canvas — pose editorial)
   ============================================ */
.hero {
  padding: clamp(140px, 20vw, 200px) 0 clamp(80px, 14vw, 140px);
  position: relative;
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.25rem, 9vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: clamp(24px, 4vw, 40px);
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand);
  font-weight: 700;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.55;
  margin: 0 auto clamp(32px, 5vw, 48px);
  max-width: 56ch;
}
.hero-cta-row {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3.5vw, 32px);
}
.hero-metadata {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 12px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero-metadata-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-metadata-item::before {
  content: "◆";
  color: var(--brand);
  font-size: 8px;
}

/* ============================================
   SECTIONS COMUNS
   ============================================ */
section {
  padding: var(--section-py) 0;
}

.section-header {
  margin-bottom: clamp(48px, 8vw, 80px);
  max-width: 800px;
  /* o auto centra a caixa; sem ele o max-width prenderia o bloco a esquerda */
  margin-inline: auto;
  text-align: center;
}
.section-header h2 em {
  font-style: italic;
  color: var(--brand);
  font-weight: 700;
}
/* O max-width do .lead e menor que o do cabecalho: sem o auto a caixa fica
   a esquerda e o texto centraliza dentro dela, 70px fora do eixo do titulo. */
.section-header .lead { margin-top: 16px; margin-inline: auto; }

/* ============================================
   O QUE ENTREGAMOS (3 cards)
   ============================================ */
.classes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .classes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.class-card {
  background: var(--paper-elevated);
  border: 1px solid var(--text-line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.class-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.class-meta {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.class-card h3 {
  text-align: center;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text);
}
.class-card p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.class-card .footer-note {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--text-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.5;
}

/* ============================================
   MARCADOR DE BLOCO (divisor entre os 2 serviços)
   ============================================ */
.bloco-marca {
  background: var(--ink-deep);
  color: var(--text-soft);
  padding: clamp(52px, 8vw, 88px) 0;
}
.bloco-marca-num {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 12px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-light);
  display: block;
  margin-bottom: var(--space-md);
}
.bloco-marca h2 {
  color: var(--text-soft);
  font-size: clamp(1.875rem, 5.2vw, 3.25rem);
  margin-bottom: 20px;
}
.bloco-marca h2 em {
  font-style: italic;
  color: var(--brand-light);
  font-weight: 700;
}
.bloco-marca p {
  color: var(--text-soft);
  opacity: 0.75;
  max-width: 62ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
}
.bloco-marca-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.5vw, 32px);
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--text-line-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.5;
}
.bloco-marca-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bloco-marca-meta span::before {
  content: "◆";
  color: var(--brand-light);
  font-size: 8px;
  flex-shrink: 0;
}

/* ============================================
   DUAS PORTAS (desenvolvimento × plataforma por demanda)
   ============================================ */
.portas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 900px) {
  .portas-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}
.porta-card {
  background: var(--paper-elevated);
  border: 1px solid var(--text-line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.porta-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.porta-card h3 {
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0;
}
.porta-card > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}
.porta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 0;
}
.porta-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-muted);
}
.porta-list li::before {
  content: "◆";
  color: var(--brand);
  font-size: 8px;
  line-height: 1.9;
  flex-shrink: 0;
}
.porta-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--text-line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.porta-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.6;
}
.porta-meta strong { color: var(--text); font-weight: 500; }
.porta-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--brand);
  align-self: flex-start;
}
.porta-link:hover { color: var(--brand-soft); }
.porta-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: rgba(26, 77, 85, 0.06);
}
.porta-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* Chamada compacta no hero */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(32px, 5vw, 48px);
  padding: 9px 18px 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--paper-elevated);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.3vw, 15px);
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
  transition: border-color 0.2s, background 0.2s;
}
.hero-pill:hover {
  border-color: var(--brand);
  background: var(--paper);
  color: var(--text-muted);
}
.hero-pill .tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brand);
  border-right: 1px solid var(--text-line);
  padding-right: 10px;
  flex-shrink: 0;
}
.hero-pill strong { color: var(--text); font-weight: 500; }
.hero-pill .arrow { color: var(--brand); flex-shrink: 0; }
@media (max-width: 520px) {
  .hero-pill { padding: 10px 16px; }
  .hero-pill .tag { display: none; }
}

/* ============================================
   CRÉDITOS (pacotes + tabela de taxas)
   ============================================ */
.creditos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: clamp(48px, 7vw, 80px);
}
@media (min-width: 768px) {
  .creditos-grid { grid-template-columns: repeat(3, 1fr); }
}
.credito-card {
  background: var(--paper-elevated);
  border: 1px solid var(--text-line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.credito-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.credito-meta {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.credito-preco {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}
.credito-qtd {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.credito-card > p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.credito-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--text-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.5;
}

/* Tabela de taxas por produto */
.taxas-wrap {
  border: 1px solid var(--text-line);
  border-radius: var(--radius);
  background: var(--paper-elevated);
  overflow-x: auto;
}
.taxas {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
.taxas caption {
  text-align: left;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px) 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.taxas th, .taxas td {
  text-align: left;
  padding: 16px clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--text-line);
}
.taxas thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  padding-top: 20px;
}
.taxas tbody tr:last-child th,
.taxas tbody tr:last-child td { border-bottom: 0; }
.taxas tbody th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.taxas tbody th small {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14.5px;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-top: 3px;
}
.taxas td {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
}
.taxas .em-breve {
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.creditos-notas {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: clamp(32px, 5vw, 48px);
}
@media (min-width: 768px) {
  .creditos-notas { grid-template-columns: repeat(3, 1fr); }
}
.credito-nota {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.credito-nota::before {
  content: "◆";
  color: var(--brand);
  font-size: 8px;
  line-height: 2.1;
  flex-shrink: 0;
}
.credito-nota strong { color: var(--text); font-weight: 500; }

/* ============================================
   PORTFÓLIO (teaser → /portfolio/)
   ============================================ */
.portfolio-teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 900px) {
  .portfolio-teaser { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
}
.portfolio-showcase {
  background: var(--paper-elevated);
  border: 1px solid var(--text-line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.portfolio-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: rgba(26, 77, 85, 0.06);
}
.portfolio-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.portfolio-showcase h3 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 0;
}
.portfolio-showcase p { font-size: 16px; line-height: 1.65; }
.portfolio-showcase-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--text-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.5;
}

/* ============================================
   O QUE NÃO FAZEMOS (4 cards)
   ============================================ */
.naofazemos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .naofazemos-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .naofazemos-grid { grid-template-columns: repeat(4, 1fr); }
}
.naofazemos-card {
  background: transparent;
  border: 1px dashed var(--text-line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.naofazemos-x {
  text-align: center;
  font-size: 24px;
  color: var(--error);
  line-height: 1;
  margin-bottom: 4px;
}
.naofazemos-card h3 {
  text-align: center;
  font-size: 17px;
  margin-bottom: 4px;
}
.naofazemos-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ============================================
   COMO FUNCIONA (timeline)
   ============================================ */
.como-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .como-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .como-grid { grid-template-columns: repeat(4, 1fr); }
}
.como-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.como-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
  border-top: 2px solid var(--brand);
  padding-top: 12px;
  margin-bottom: 4px;
}
.como-step h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.como-step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.como-step-saida {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.55;
}
.como-step-saida strong {
  color: var(--text);
  font-weight: 500;
}

/* ============================================
   POR QUE VIBRATO (3 cards)
   ============================================ */
.diferenciais-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .diferenciais-grid { grid-template-columns: repeat(3, 1fr); }
}
.diferencial-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 4vw, 36px) 0;
}
.diferencial-num {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.04em;
  line-height: 1;
}
.diferencial-card h3 {
  text-align: center;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}
.diferencial-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--text-line);
  padding: clamp(20px, 3vw, 32px) 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.35;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 20px;
  color: var(--brand);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 70ch;
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
  background: var(--paper-sunken);
  text-align: center;
  padding: var(--section-py) var(--gutter);
}
.cta-final-content {
  max-width: 720px;
  margin: 0 auto;
}
.cta-final h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 24px;
}
.cta-final .lead {
  margin: 0 auto 40px;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.6;
}
.cta-final-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink-deep);
  color: var(--text-soft);
  padding: var(--section-py) 0 var(--space-2xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand .vbt {
  color: var(--text-soft);
  font-size: clamp(28px, 4vw, 36px);
  display: block;
  margin-bottom: 16px;
}
.footer-brand .vbt .ia { color: var(--brand-light); }
.footer-brand p {
  font-size: 15.5px;
  color: var(--text-soft);
  opacity: 0.7;
  line-height: 1.55;
  max-width: 32ch;
}
.footer-section h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand-light);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-section a {
  color: var(--text-soft);
  font-size: 15.5px;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer-section a:hover { opacity: 1; color: var(--brand-light); }
.footer-bottom {
  border-top: 1px solid var(--text-line-dark);
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0.5;
  text-align: center;
}


/* ============================================
   PAGINAS INTERNAS — nav com contexto e portfolio
   ============================================ */
.nav-logo .sep {
  color: var(--text-faint);
  font-weight: 400;
  margin: 0 2px;
}
.nav-logo .ctx {
  font-family: var(--font-mono);
  font-size: 0.62em;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-back {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--brand); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
@media (max-width: 640px) {
  .nav-back { display: none; }
  .nav-logo .ctx { display: none; }
  .nav-logo .sep { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.pf-hero {
  padding: clamp(140px, 20vw, 190px) 0 clamp(48px, 8vw, 80px);
  position: relative;
  text-align: center;
}
.pf-hero h1 {
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  line-height: 1;
  margin-bottom: clamp(20px, 3vw, 32px);
  letter-spacing: -0.03em;
}
.pf-hero h1 em {
  font-style: italic;
  color: var(--brand);
  font-weight: 700;
}
/* O limite de medida continua valendo; o auto e que centraliza a caixa,
   nao o texto — sem ele o paragrafo ficaria colado a esquerda. */
.pf-hero .lead { max-width: 62ch; margin-inline: auto; }

.pf-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: clamp(24px, 4vw, 32px);
  border-top: 1px solid var(--text-line);
}
.pf-hero-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pf-hero-meta-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1;
}
.pf-hero-meta-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   PROJETO EM DESTAQUE
   ============================================ */
.pf-projects { padding-top: 0; }

.pf-card {
  background: var(--paper-elevated);
  border: 1px solid var(--text-line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  margin-bottom: var(--space-lg);
}

.pf-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: clamp(20px, 3vw, 28px);
}
.pf-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: rgba(26, 77, 85, 0.06);
}
.pf-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.pf-status.is-live { border-color: var(--brand); }
.pf-category {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.pf-card h2 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.pf-card h2 em { font-style: italic; color: var(--brand); }

.pf-tagline {
  font-size: clamp(1.0625rem, 1.8vw, 1.375rem);
  line-height: 1.5;
  color: var(--text);
  font-weight: 300;
  max-width: 58ch;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.pf-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-top: clamp(24px, 4vw, 32px);
  border-top: 1px solid var(--text-line);
}
@media (min-width: 768px) {
  .pf-detail-grid { grid-template-columns: repeat(3, 1fr); }
}
.pf-detail h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
  line-height: 1.5;
}
.pf-detail p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(28px, 4vw, 36px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--text-line);
}
.pf-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--text-line);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  background: var(--paper);
}

.pf-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: clamp(28px, 4vw, 36px);
}

/* ============================================
   PRÓXIMOS / EM CONSTRUÇÃO
   ============================================ */
.pf-next {
  border: 1px dashed var(--text-line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  background: transparent;
  text-align: center;
}
.pf-next .eyebrow { color: var(--text-faint); }
.pf-next h3 {
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  margin-bottom: 12px;
}
.pf-next p {
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.65;
}

/* ============================================
   COMO NASCE UM PROJETO
   ============================================ */
.pf-method { background: var(--paper-elevated); }
.pf-method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 640px) { .pf-method-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pf-method-grid { grid-template-columns: repeat(4, 1fr); } }
.pf-method-step { display: flex; flex-direction: column; gap: 12px; }
.pf-method-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
  border-top: 2px solid var(--brand);
  padding-top: 12px;
}
.pf-method-step h3 { font-size: 17px; margin-bottom: 0; }
.pf-method-step p { font-size: 15px; line-height: 1.6; }

/* ============================================
   HOME — hero curto + escolha entre os 2 serviços
   ============================================ */
.home-hero {
  padding: clamp(130px, 18vw, 180px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
}
.home-hero h1 {
  font-size: clamp(2.25rem, 7.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 auto clamp(20px, 3vw, 28px);
  max-width: 16ch;
}
.home-hero h1 em { font-style: italic; color: var(--brand); font-weight: 700; }
.home-hero .lead {
  margin: 0 auto;
  max-width: 54ch;
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
}
.home-hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(12px, 2.5vw, 28px);
  margin-top: clamp(28px, 4vw, 40px);
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.1vw, 11.5px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.home-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.home-hero-meta span::before { content: "\25C6"; color: var(--brand); font-size: 7px; }

/* Escolha entre os dois serviços */
.escolha { padding-top: clamp(20px, 3vw, 32px); }
.escolha-intro {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.escolha-intro .eyebrow { margin-bottom: 12px; }
.escolha-intro p { margin: 0 auto; font-size: 16px; }

.escolha-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: stretch;
}
@media (min-width: 900px) {
  .escolha-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

.escolha-card {
  background: var(--paper-elevated);
  border: 1px solid var(--text-line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.escolha-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: inherit;
}
.escolha-num {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.escolha-card h2 {
  text-align: center;
  font-size: clamp(1.625rem, 3.4vw, 2.375rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0;
}
.escolha-card h2 em { font-style: italic; color: var(--brand); font-weight: 700; }
.escolha-desc {
  font-size: clamp(16px, 1.4vw, 16.5px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: none;
}
.escolha-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.escolha-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-muted);
}
.escolha-list li::before {
  content: "\25C6";
  color: var(--brand);
  font-size: 8px;
  line-height: 1.9;
  flex-shrink: 0;
}
.escolha-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--text-line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.escolha-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.6;
}
.escolha-meta strong { color: var(--text); font-weight: 500; }
.escolha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  background: var(--brand);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15.5px, 1.5vw, 16px);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
}
.escolha-card:hover .escolha-btn { background: var(--brand-soft); }
.escolha-btn .arrow { font-family: var(--font-mono); font-size: 17px; font-weight: 400; }

.escolha-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: rgba(26, 77, 85, 0.06);
}
.escolha-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* Faixa de fechamento da home */
.home-fecho {
  background: var(--ink-deep);
  color: var(--text-soft);
  text-align: center;
  padding: clamp(48px, 7vw, 80px) var(--gutter);
}
.home-fecho h2 {
  color: var(--text-soft);
  font-size: clamp(1.5rem, 3.6vw, 2.25rem);
  margin-bottom: 16px;
}
.home-fecho h2 em { font-style: italic; color: var(--brand-light); font-weight: 700; }
.home-fecho p {
  color: var(--text-soft);
  opacity: 0.75;
  margin: 0 auto clamp(28px, 4vw, 36px);
  max-width: 52ch;
  font-size: clamp(16px, 1.5vw, 17px);
}
.home-fecho .cta-primary { background: var(--brand-light); color: var(--ink-deep); }
.home-fecho .cta-primary:hover { background: var(--text-soft); color: var(--ink-deep); }

/* ============================================
   PORTAL — 2 niveis independentes de preco
   Nivel 1: quanto custa o credito (pacotes)
   Nivel 2: quanto cada acao consome
   ============================================ */
.nivel-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--paper);
  margin-bottom: var(--space-md);
}
.nivel-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-light);
  flex-shrink: 0;
}

/* Nivel 1 — valor por credito dentro do card de pacote */
.credito-unitario {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: none;
}
.credito-unitario strong { color: var(--brand); font-weight: 500; }
.credito-economia {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(26, 77, 85, 0.09);
  color: var(--brand);
}

/* Nivel 2 — card do servico */
.servico-card {
  background: var(--paper-elevated);
  border: 1px solid var(--text-line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4.5vw, 48px);
  margin-bottom: var(--space-lg);
}
.servico-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 18px;
}
.servico-card h3 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.servico-tagline {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: clamp(24px, 3.5vw, 32px);
}

/* Passo gratuito — o CNPJ publico */
.acao-livre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  border: 1px dashed var(--brand);
  border-radius: var(--radius);
  background: rgba(26, 77, 85, 0.05);
  padding: 18px clamp(16px, 2.5vw, 24px);
  margin-bottom: 14px;
}
.acao-livre-texto {
  flex: 1 1 260px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-muted);
}
.acao-livre-texto strong { color: var(--text); font-weight: 600; }
.acao-livre-preco {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brand);
  white-space: nowrap;
}

/* Grade das acoes pagas */
.acao-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px)  { .acao-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .acao-grid { grid-template-columns: repeat(4, 1fr); } }

.acao-card {
  background: var(--paper);
  border: 1px solid var(--text-line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s;
}
.acao-card:hover { border-color: var(--brand); }
.acao-nome {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
}
.acao-preco {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.acao-preco .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand);
}
.acao-preco .un {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Card "Tudo" — o pacote fechado da acao */
.acao-tudo {
  margin-top: 14px;
  background: var(--brand);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.acao-tudo-info { flex: 1 1 240px; }
.acao-tudo-nome {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2.2vw, 21px);
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 5px;
}
.acao-tudo-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.acao-tudo-preco {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.acao-tudo-preco .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--paper);
}
.acao-tudo-preco .un {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-light);
}

.servico-nota {
  margin-top: clamp(20px, 3vw, 26px);
  padding-top: 18px;
  border-top: 1px solid var(--text-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.6;
}

/* Chamada do teste gratuito */
.teste-gratis {
  background: var(--ink-deep);
  color: var(--text-soft);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
}
.teste-gratis .eyebrow { color: var(--brand-light); }
.teste-gratis h3 {
  color: var(--text-soft);
  font-size: clamp(1.5rem, 3.6vw, 2.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.teste-gratis h3 em { font-style: italic; color: var(--brand-light); font-weight: 700; }
.teste-gratis p {
  color: var(--text-soft);
  opacity: 0.78;
  margin: 0 auto clamp(24px, 3.5vw, 32px);
  max-width: 54ch;
  font-size: clamp(16px, 1.5vw, 17px);
  line-height: 1.6;
}
.teste-gratis .cta-primary { background: var(--brand-light); color: var(--ink-deep); }
.teste-gratis .cta-primary:hover { background: var(--text-soft); color: var(--ink-deep); }
/* Nota abaixo do botao: anula a margem inferior herdada de .teste-gratis p,
   que existe para separar o paragrafo do botao — aqui a ordem e inversa. */
.teste-gratis .teste-nota {
  margin: 18px auto 0;
  font-size: clamp(14px, 1.25vw, 15px);
  opacity: 0.7;
}

/* Selo do teste gratis no hero */
.hero-selo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(24px, 3.5vw, 32px);
  padding: 10px 18px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: rgba(26, 77, 85, 0.06);
  font-size: clamp(14.5px, 1.4vw, 15.5px);
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.2s;
}
.hero-selo:hover { background: rgba(26, 77, 85, 0.12); color: var(--text-muted); }
.hero-selo strong { color: var(--text); font-weight: 600; }
.hero-selo .marca {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brand);
  border-right: 1px solid var(--text-line);
  padding-right: 10px;
  flex-shrink: 0;
}

/* ============================================
   PRE-REQUISITOS das operacoes do portal
   ============================================ */
.acao-req {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.acao-req strong { color: var(--text); font-weight: 500; }
.acao-req.livre { color: var(--brand); font-weight: 500; }

.req-bloco {
  margin-top: clamp(24px, 3.5vw, 32px);
  padding-top: clamp(20px, 3vw, 26px);
  border-top: 1px solid var(--text-line);
}
.req-bloco h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
  margin-bottom: 10px;
}
.req-bloco > p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 68ch;
}
.req-bloco > p strong { color: var(--text); font-weight: 500; }

/* tabela reaproveita .taxas, so troca o fundo por estar dentro do card */
.taxas-wrap.on-card { background: var(--paper); }
.taxas .req-nada { color: var(--text-faint); }

.req-notas {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 768px) { .req-notas { grid-template-columns: 1fr 1fr; } }
.req-nota {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.req-nota::before {
  content: "\25C6";
  color: var(--brand);
  font-size: 7px;
  line-height: 2.2;
  flex-shrink: 0;
}
.req-nota strong { color: var(--text); font-weight: 500; }

.req-garantia {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: rgba(26, 77, 85, 0.05);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.req-garantia strong { color: var(--text); font-weight: 600; }

/* Tabela de pre-requisitos: texto longo precisa quebrar (a regra base
   usa nowrap por causa dos valores curtos da tabela de consumo). */
.taxas-wrap.on-card td { white-space: normal; }
.taxas-wrap.on-card .taxas { min-width: 0; }
.taxas-wrap.on-card td:first-of-type { min-width: 190px; }

/* ============================================
   MASONRY — grade de produtos do portfolio
   Sem JS os cartoes ficam empilhados no fluxo;
   .is-ativo e adicionada pelo script.
   ============================================ */
.masonry {
  position: relative;
  width: 100%;
}
.masonry.is-ativo .masonry-item {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform, opacity;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s,
              box-shadow 0.3s;
}
/* estado inicial e revelacao sao aplicados por assets/masonry.js,
   via estilo inline — assim, sem JS, os cartoes aparecem normalmente. */
/* fallback sem JS: empilha com espaco */
.masonry:not(.is-ativo) .masonry-item + .masonry-item { margin-top: 20px; }

.masonry-item {
  background: var(--paper-elevated);
  border: 1px solid var(--text-line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.masonry-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

/* Cartao de produto real */
.prod-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.prod-selo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: rgba(26, 77, 85, 0.06);
}
.prod-selo::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.prod-categoria {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.masonry-item h3 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0;
  text-align: center;
}
.prod-desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: none;
  text-align: justify;
  /* Coluna estreita justificada abre buracos entre palavras; a hifenizacao
     do pt-BR (o lang esta no <html>) fecha a maior parte deles. */
  -webkit-hyphens: auto;
  hyphens: auto;
}
.prod-consumo {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--text-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.6;
}
.prod-consumo strong { color: var(--brand); font-weight: 500; }

/* Cartao de exemplo — visualmente inconfundivel */
.masonry-item.is-exemplo {
  background: transparent;
  border-style: dashed;
  border-color: var(--text-line);
}
.masonry-item.is-exemplo:hover {
  border-color: var(--text-faint);
  box-shadow: none;
}
.masonry-item.is-exemplo h3 { color: var(--text-muted); }
.prod-selo.exemplo {
  border-color: var(--text-faint);
  color: var(--text-faint);
  background: transparent;
}
.prod-selo.exemplo::before { background: var(--text-faint); }

/* Aviso acima da grade enquanto houver exemplos */
.masonry-aviso {
  border: 1px dashed var(--text-faint);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: var(--space-lg);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.masonry-aviso strong { color: var(--text); font-weight: 600; }

/* ============================================
   LOGIN DO PORTAL — /portal/entrar/
   Interface pronta; a autenticacao ainda nao existe.
   ============================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(90px, 14vw, 130px) var(--gutter) clamp(48px, 8vw, 80px);
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--paper-elevated);
  border: 1px solid var(--text-line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--shadow-lg);
}
.login-marca {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 6px;
}
.login-marca .ia { color: var(--brand); }
.login-contexto {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: clamp(24px, 4vw, 32px);
}
.login-aviso {
  border: 1px dashed var(--brand);
  border-radius: var(--radius-sm);
  background: rgba(26, 77, 85, 0.05);
  padding: 14px 16px;
  margin-bottom: clamp(22px, 3.5vw, 28px);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.login-aviso strong { color: var(--text); font-weight: 600; }
.login-card h1 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 6px;
}
.login-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: clamp(22px, 3.5vw, 28px);
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-campo { display: flex; flex-direction: column; gap: 7px; }
.login-campo label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.login-campo input {
  background: var(--paper);
  border: 1px solid var(--text-line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  outline: 0;
  width: 100%;
  transition: border-color 0.2s;
}
.login-campo input:focus { border-color: var(--brand); }
.login-campo input::placeholder { color: var(--text-faint); }
.login-btn {
  min-height: 52px;
  margin-top: 6px;
  background: var(--brand);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.login-btn:hover { background: var(--brand-soft); }
.login-estado {
  display: none;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--paper-sunken);
  border: 1px solid var(--text-line);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.login-estado.visivel { display: block; }
.login-estado strong { color: var(--text); font-weight: 600; }
.login-rodape {
  margin-top: clamp(22px, 3.5vw, 28px);
  padding-top: 18px;
  border-top: 1px solid var(--text-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}
.login-voltar {
  display: block;
  text-align: center;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
}
.login-voltar:hover { color: var(--brand); }

/* ============================================
   HOME — alinhamento entre os 2 cartoes de escolha
   O selo "Novo" existe so num deles; sem uma linha de topo com altura
   reservada, ele empurrava todo o conteudo do 2o cartao 48px pra baixo.
   ============================================ */
.escolha-topo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
/* O cartao sem selo carrega um selo invisivel (.is-fantasma), entao a linha
   do topo tem a mesma altura nos dois sem depender de numero cravado.
   Com a linha centralizada ele nao pode mais ocupar largura, senao empurra
   o rotulo pra esquerda: zera a caixa e desconta o gap, sobrando so a altura.
   O seletor comeca em .escolha-topo pra vencer o margin:0 declarado adiante. */
.escolha-topo .escolha-badge.is-fantasma {
  visibility: hidden;
  width: 0;
  padding-inline: 0;
  margin-inline-start: -12px;
  overflow: hidden;
}
/* Empilhados, os cartoes nao precisam alinhar entre si — e o fantasma
   quebraria linha no cartao de titulo mais longo, abrindo um vao. */
@media (max-width: 899px) {
  .escolha-topo .escolha-badge.is-fantasma { display: none; }
}
.escolha-topo .escolha-badge {
  align-self: center;
  margin: 0;
}
/* A linha de meta dos dois cartoes precisa caber em UMA linha: e ela que
   define onde a divisoria do rodape cai. Se um dos textos crescer e
   quebrar, os cartoes voltam a desalinhar — encurte o texto em vez de
   reservar altura, que so criaria um vao vazio nos dois. */

/* ============================================
   LISTA DE SERVICOS EM ACORDEAO
   Cada servico traz tabela de acoes, combo e pre-requisitos. Aberto tudo
   de uma vez, tres servicos ja tornariam a pagina impraticavel — entao o
   resumo fica sempre visivel e o detalhe abre sob demanda. <details>
   nativo: funciona sem JS e ja e acessivel por teclado.
   ============================================ */
.servicos-lista {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: var(--space-lg);
}
.servico-item {
  background: var(--paper-elevated);
  border: 1px solid var(--text-line);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.servico-item[open] { border-color: var(--brand); box-shadow: var(--shadow-md); }
.servico-item.is-exemplo { background: transparent; border-style: dashed; }
.servico-item.is-exemplo[open] { border-color: var(--text-faint); box-shadow: none; }

.servico-resumo {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding: clamp(20px, 3vw, 28px) clamp(22px, 3vw, 32px);
}
.servico-resumo::-webkit-details-marker { display: none; }
.servico-resumo:hover .servico-nome { color: var(--brand); }

.servico-id { flex: 1 1 240px; display: flex; flex-direction: column; gap: 9px; }
.servico-id-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.servico-nome {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  transition: color 0.2s;
}
.servico-item.is-exemplo .servico-nome { color: var(--text-muted); }

.servico-custo {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.servico-custo .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand);
}
.servico-custo .un {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.servico-item.is-exemplo .servico-custo .num { color: var(--text-faint); }

.servico-abrir {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--brand);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.servico-item[open] .servico-abrir { transform: rotate(45deg); }
.servico-item.is-exemplo .servico-abrir { color: var(--text-faint); }

.servico-corpo {
  padding: 0 clamp(22px, 3vw, 32px) clamp(24px, 3.5vw, 32px);
}
.servico-corpo > .servico-tagline { margin-top: 0; }

/* ============================================
   TELAS DE ACESSO DO PORTAL
   /portal/entrar/ · /portal/criar-conta/
   Autenticacao real via Auth0: ver assets/auth0.js. Recuperacao de
   senha e confirmacao de e-mail ficam na pagina do Auth0, nao aqui.
   ============================================ */
.login-campo-topo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.login-campo-topo a {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brand);
}

.login-divisor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0;
}
.login-divisor::before,
.login-divisor::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--text-line);
}
.login-divisor span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.login-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 52px;
  padding: 13px 20px;
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.login-social:hover { background: var(--paper-sunken); border-color: var(--text); }
.login-social svg { width: 19px; height: 19px; flex-shrink: 0; }

.login-troca {
  margin-top: clamp(20px, 3vw, 26px);
  padding-top: 18px;
  border-top: 1px solid var(--text-line);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.login-troca a { font-weight: 500; }

.login-ajuda {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Estado de confirmacao (verificar e-mail) */
.login-icone {
  display: block;
  text-align: center;
  font-size: 34px;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 16px;
}
.login-centro { text-align: center; }
.login-centro .login-sub { margin-left: auto; margin-right: auto; max-width: 42ch; }

/* ============================================
   TELAS DE ACESSO — VARIANTE ESCURA
   O site inteiro e papel claro; a entrada do portal e escura de
   proposito, pra atravessar o login parecer mudar de ambiente.
   Nao e outro design: sao os mesmos tokens, familia tipografica e
   geometria, so que na face escura da paleta.

   Cartao SOLIDO, nao translucido: o fundo atras e animado, e
   transparencia deixaria o contraste do texto imprevisivel.
   ============================================ */
.auth-dark {
  background: var(--ink-deep);
  --auth-texto: #E8E5DE;
  /* Clareado de #A7B5B8 ao abrir o cartao: com o fundo transparente o
     ponto mais claro atras sobe pra rgb(45,79,86), e o tom antigo caia
     pra 4.21 de contraste. Este da 5.18. */
  --auth-muted: #BCC8CA;
  --auth-linha: rgba(150, 201, 208, 0.18);
  --auth-campo: #1D343C;
}
.auth-dark .strands-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.auth-dark .strands-bg canvas { display: block; width: 100%; height: 100%; }

.auth-dark .login-page { position: relative; z-index: 1; }

.auth-dark .login-card {
  background: var(--ink-elevated);
  border: 1px solid var(--auth-linha);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.auth-dark .login-marca { color: var(--auth-texto); }
.auth-dark .login-marca .ia { color: var(--brand-light); }
.auth-dark .login-contexto { color: var(--brand-light); }

.auth-dark .login-card h1 { color: var(--auth-texto); }
.auth-dark .login-sub { color: var(--auth-muted); }

.auth-dark .login-aviso {
  border-color: var(--brand-light);
  background: rgba(150, 201, 208, 0.08);
  color: var(--auth-muted);
}
.auth-dark .login-aviso strong { color: var(--auth-texto); }

.auth-dark .login-campo label { color: var(--auth-muted); }
.auth-dark .login-campo-topo a { color: var(--brand-light); }
.auth-dark .login-campo input {
  background: var(--auth-campo);
  border-color: var(--auth-linha);
  color: var(--auth-texto);
}
.auth-dark .login-campo input::placeholder { color: #7E8E92; }
.auth-dark .login-campo input:focus { border-color: var(--brand-light); }

/* Acao principal: claro sobre escuro, pra ser o ponto mais brilhante da tela */
.auth-dark .login-btn {
  background: var(--brand-light);
  color: var(--ink-deep);
}
.auth-dark .login-btn:hover { background: var(--auth-texto); color: var(--ink-deep); }

.auth-dark .login-divisor::before,
.auth-dark .login-divisor::after { background: var(--auth-linha); }
.auth-dark .login-divisor span { color: var(--auth-muted); }

/* Google mantem fundo claro: e assim que a marca deles e reconhecida */
.auth-dark .login-social {
  background: var(--paper-elevated);
  color: var(--text);
  border-color: transparent;
}
.auth-dark .login-social:hover { background: #FFFFFF; border-color: transparent; }

.auth-dark .login-estado {
  background: rgba(15, 32, 36, 0.75);
  border-color: var(--auth-linha);
  color: var(--auth-muted);
}
.auth-dark .login-estado strong { color: var(--auth-texto); }
.auth-dark .login-estado a { color: var(--brand-light); }

.auth-dark .login-troca {
  border-top-color: var(--auth-linha);
  color: var(--auth-muted);
}
.auth-dark .login-troca a { color: var(--brand-light); }
.auth-dark .login-ajuda { color: var(--auth-muted); }
.auth-dark .login-icone { color: var(--brand-light); }

.auth-dark .login-voltar { color: var(--auth-muted); }
.auth-dark .login-voltar:hover { color: var(--brand-light); }

/* Entrada do cartao: sobe e revela, reforcando a passagem de ambiente */
@media (prefers-reduced-motion: no-preference) {
  .auth-dark .login-card {
    animation: auth-entrada 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
@keyframes auth-entrada {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================
   CAIXA DE ACESSO — versao compacta e com rotulo flutuante
   O cartao tinha 1336px numa janela de 900: nao cabia na tela, e era
   isso que pesava mais que qualquer detalhe de estilo. Aqui o rotulo
   entra dentro do campo e sobe ao focar, o aviso vira uma faixa fina e
   os espacamentos apertam.
   ============================================ */
.auth-dark .login-card {
  max-width: 420px;
  padding: clamp(24px, 3.5vw, 34px);
  border-radius: 24px;
  /* Leve translucidez + desfoque: deixa os filamentos existirem atras do
     vidro sem comprometer o contraste, porque a base segue quase opaca. */
  background: rgba(21, 40, 48, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.auth-dark .login-marca { font-size: 23px; margin-bottom: 4px; }
.auth-dark .login-contexto { margin-bottom: 18px; }
.auth-dark .login-card h1 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
.auth-dark .login-sub { margin-bottom: 20px; }
.auth-dark .login-form { gap: 13px; }

/* Aviso compacto: uma linha, nao um bloco */
.auth-dark .login-aviso {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 13px;
  margin-bottom: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  border-radius: 10px;
}
.auth-dark .login-aviso::before {
  content: "\25C6";
  color: var(--brand-light);
  font-size: 8px;
  line-height: 1.9;
  flex-shrink: 0;
}

/* ---- Rotulo flutuante ---- */
.login-campo.flutuante { position: relative; gap: 0; }
.login-campo.flutuante input {
  height: 56px;
  padding: 22px 15px 7px;
  font-size: 15.5px;
}
.login-campo.flutuante label {
  position: absolute;
  left: 15px;
  top: 18px;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--auth-muted, var(--text-muted));
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.18s;
}
/* Sobe quando tem foco ou conteudo. :placeholder-shown so vale com
   placeholder=" " no input — por isso todos levam um espaco. */
.login-campo.flutuante input:focus + label,
.login-campo.flutuante input:not(:placeholder-shown) + label {
  transform: translateY(-11px) scale(0.72);
}
.login-campo.flutuante input:focus + label { color: var(--brand-light); }

.auth-dark .login-campo.flutuante input:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(150, 201, 208, 0.15);
}

/* Link de senha esquecida sai de cima do campo e vira rodape do campo */
.login-campo-links {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
}
.login-campo-links a { font-size: 12.5px; }

.auth-dark .login-btn { min-height: 50px; border-radius: 10px; }
.auth-dark .login-social { min-height: 50px; border-radius: 10px; font-size: 16px; }
.auth-dark .login-divisor { margin: 2px 0; }
.auth-dark .login-troca { margin-top: 18px; padding-top: 15px; font-size: 15px; }
.auth-dark .login-ajuda { font-size: 12.5px; }
.auth-dark .login-voltar { margin-top: 16px; }

/* ============================================
   CAIXA DE ACESSO — vidro mais transparente + cabecalho centrado
   Transparencia calculada: com desfoque de 48px, o ponto mais claro do
   fundo sob o cartao (percentil 95, varrendo 8 instantes da animacao)
   fica em rgb(123,164,169). A 0.78 de opacidade o texto secundario
   mantem 4.94 de contraste. Abaixo de 0.75 quebra — por isso nao da pra
   ir a "quase transparente": e o desfoque, nao a opacidade, que compra
   margem aqui.
   ============================================ */
.auth-dark .login-card {
  background: rgba(21, 40, 48, 0.78);
  -webkit-backdrop-filter: blur(48px) saturate(120%);
  backdrop-filter: blur(48px) saturate(120%);
  border-color: rgba(150, 201, 208, 0.26);
}

/* Cabecalho centrado: marca, titulo e apoio formam um bloco so.
   Os CAMPOS seguem alinhados a esquerda de proposito — texto centrado
   em campo de formulario desloca conforme se digita e tira o ponto de
   partida fixo que o olho usa pra varrer a lista. */
.auth-dark .login-card h1,
.auth-dark .login-sub {
  text-align: center;
}
.auth-dark .login-sub { margin-left: auto; margin-right: auto; max-width: 34ch; }
.auth-dark .login-aviso { text-align: left; }

/* ============================================
   CAIXA TRANSPARENTE DE VERDADE
   O que impedia nao era o cartao, era a luz atras dele. Em vez de
   encher o cartao, escurece-se a REGIAO onde ele fica: um halo radial
   suave sobre os filamentos. Assim o cartao fica praticamente sem
   preenchimento, a luz passa por tras dele, e o texto continua legivel
   porque o fundo local ficou escuro.
   ============================================ */
.auth-dark .strands-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 42% 55% at 50% 50%,
              rgba(15, 32, 36, 0.94) 0%,
              rgba(15, 32, 36, 0.90) 40%,
              rgba(15, 32, 36, 0.55) 68%,
              rgba(15, 32, 36, 0.00) 100%);
}

.auth-dark .login-card {
  /* praticamente sem preenchimento: so um veu pra assentar a borda */
  background: rgba(21, 40, 48, 0.16);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
  border-color: rgba(150, 201, 208, 0.30);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* O link de senha esquecida saiu de .login-campo-topo ao virar rodape do
   campo, e com isso perdeu a cor do tema escuro — caiu pra 1.76 de
   contraste. Cobrindo o seletor novo. */
.auth-dark .login-campo-links a { color: var(--brand-light); }
.auth-dark .login-campo-links a:hover { color: var(--auth-texto); }

/* O botao principal ficava com o texto encostado a esquerda: a regra
   global "button { display: inline-flex }" (que garante altura minima de
   toque) transforma o rotulo em item flex, e ai text-align nao vale —
   quem manda e justify-content. O botao do Google ja declarava center,
   por isso so este estava torto. */
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   PAGINAS LEGAIS — privacidade e termos
   ============================================ */
.legal { padding: clamp(120px, 16vw, 170px) 0 clamp(64px, 10vw, 110px); }
.legal .container { max-width: 760px; }
.legal h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.legal-data {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: clamp(36px, 6vw, 56px);
}
.legal-bloco {
  padding-top: clamp(26px, 4vw, 34px);
  margin-top: clamp(26px, 4vw, 34px);
  border-top: 1px solid var(--text-line);
}
.legal-bloco:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.legal-bloco h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.legal-bloco p { margin-bottom: 14px; max-width: none; }
.legal-bloco p:last-child { margin-bottom: 0; }
.legal-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 14px;
}
.legal-lista li {
  display: flex;
  gap: 11px;
  font-size: clamp(15.5px, 1.5vw, 16.5px);
  line-height: 1.65;
  color: var(--text-muted);
}
.legal-lista li::before {
  content: "C6";
  color: var(--brand);
  font-size: 8px;
  line-height: 2.2;
  flex-shrink: 0;
}
.legal-lista strong { color: var(--text); font-weight: 500; }
.legal-nota {
  border-left: 2px solid var(--brand);
  background: var(--paper-elevated);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
}
/* Campo que ainda precisa ser preenchido antes de publicar */
.legal-falta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(160, 58, 42, 0.10);
  border: 1px dashed var(--error);
  color: var(--error);
  white-space: nowrap;
}
.legal + .site-footer .footer-bottom a { color: var(--brand-light); }
.site-footer .footer-bottom a { color: var(--brand-light); text-transform: none; letter-spacing: 0; }

/* ============================================
   BANNER DE CONSENTIMENTO DE COOKIES
   So aparece quando ha medicao configurada e ainda nao houve escolha.
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 3vw, 28px);
  transform: translate(-50%, 20px);
  z-index: 200;
  width: min(760px, calc(100vw - 2 * var(--gutter)));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2.5vw, 26px);
  padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 26px);
  background: var(--ink-deep);
  border: 1px solid var(--text-line-dark);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s var(--ease-default, cubic-bezier(0.4,0,0.2,1)),
              transform 0.3s var(--ease-default, cubic-bezier(0.4,0,0.2,1));
}
.cookie-banner.visivel { opacity: 1; transform: translate(-50%, 0); }

.cookie-texto {
  flex: 1 1 340px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-soft);
  opacity: 0.85;
}
.cookie-texto strong { opacity: 1; font-weight: 600; }
.cookie-texto a { color: var(--brand-light); }

.cookie-acoes { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-btn {
  min-height: 44px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.cookie-recusar {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--text-line-dark);
}
.cookie-recusar:hover { border-color: var(--text-soft); }
.cookie-aceitar { background: var(--brand-light); color: var(--ink-deep); }
.cookie-aceitar:hover { background: var(--text-soft); }

@media (max-width: 560px) {
  .cookie-acoes { width: 100%; }
  .cookie-btn { flex: 1; }
}
