/* ============================================================
   ENTRELAÇOS — Base · Light Edition v1
   Adaptação dos componentes nucleares para fundo claro.
   Importar APÓS tokens-light.css
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  background: var(--e-bg);
  color: var(--e-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

::selection { background: var(--e-purple-200); color: var(--e-purple-900); }

/* === LAYOUT === */
.container        { max-width: var(--e-maxw);        margin: 0 auto; padding: 0 var(--e-s-6); }
.container-narrow { max-width: var(--e-maxw-narrow); margin: 0 auto; padding: 0 var(--e-s-6); }
.container-text   { max-width: var(--e-maxw-text);   margin: 0 auto; padding: 0 var(--e-s-6); }
section { position: relative; }
.section { padding: var(--e-section-y) 0; position: relative; }
.section-sm { padding: var(--e-section-y-sm) 0; }
.section-lg { padding: var(--e-section-y-lg) 0; }
.section-app { background: var(--e-bg-app); }
.section-deep { background: var(--e-dark-zone); color: var(--e-text-on-dark); }
.section-deep .lead, .section-deep p { color: var(--e-text-on-dark-secondary); }
.section-title-block { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--e-s-4); margin-bottom: var(--e-s-12); }

/* === TIPOGRAFIA === */
.h-display { font-family: var(--ff-sans); font-weight: 500; font-size: clamp(3rem, 7vw, 6.2rem); line-height: 0.98; letter-spacing: -0.045em; color: var(--e-text); text-wrap: balance; }
.h-display em { font-family: var(--ff-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; color: var(--e-purple-700); }
.h-display em.protagonist { color: var(--e-orange); text-shadow: none; }

/* === DESTAQUES EM LARANJA — uso pontual, regra de 3 por dobra ===
   .t-orange  : destaca uma palavra ou frase-âncora em terracota.
                Funciona em qualquer texto (italic, sans, parágrafo).
   .t-orange-name : aplica em sobrenomes/segundos-nomes em depoimentos.
   .t-orange-italic : força italic-serif terracota (sobrescreve --e-purple-700). */
.t-orange         { color: var(--e-orange); }
.t-orange-italic  { font-family: var(--ff-serif); font-style: italic; font-weight: 400; color: var(--e-orange); letter-spacing: -0.01em; }
.t-orange-name    { color: var(--e-orange); font-weight: 500; }

/* Quando o destaque acontece dentro de italic-serif já existente */
em .t-orange,
.t-orange em       { color: var(--e-orange); }

.h-section { font-family: var(--ff-sans); font-weight: 500; font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.035em; color: var(--e-text); text-wrap: balance; }
.h-section em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; color: var(--e-purple-700); }

.h-card { font-family: var(--ff-sans); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--e-text); }
.h-card em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; color: var(--e-purple-700); }

.lead { font-family: var(--ff-sans); font-weight: 400; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--e-text-secondary); max-width: 640px; }
.body-default { font-family: var(--ff-sans); font-weight: 400; font-size: 1rem; line-height: 1.6; color: var(--e-text-secondary); }

.stat-num { font-family: var(--ff-mono); font-weight: 500; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.02em; color: var(--e-text); display: block; line-height: 1; }
.stat-num-text { font-family: var(--ff-serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--e-purple-700); display: block; line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-family: var(--ff-mono); font-weight: 400; font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--e-text-muted); margin-top: 8px; }

/* On-dark variants (para inversões dentro do light) */
.on-dark { color: var(--e-text-on-dark); }
.on-dark .lead, .on-dark p { color: var(--e-text-on-dark-secondary); }
.on-dark .h-section, .on-dark .h-card, .on-dark .h-display { color: var(--e-text-on-dark); }
.on-dark .h-display em, .on-dark .h-section em, .on-dark .h-card em { color: var(--e-purple-300); }
.on-dark .stat-num-text { color: var(--e-purple-300); }

/* === EYEBROWS === */
.e-eyebrow-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--e-r-pill);
  border: 1px solid var(--e-border);
  background: rgba(255,255,255,0.6);
  font-family: var(--ff-mono); font-size: 0.7rem;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--e-text-secondary);
}
.e-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--e-purple-600); box-shadow: 0 0 8px rgba(116,39,212,0.5); }
.e-eyebrow-dash { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.20em; text-transform: uppercase; color: var(--e-text-muted); }
.e-dash-line { width: 24px; height: 1px; background: currentColor; opacity: 0.5; }
.e-eyebrow-separator { display: inline-flex; align-items: center; gap: 16px; font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--e-text-muted); }
.e-sep-line { width: 80px; height: 1px; background: linear-gradient(90deg, transparent, rgba(74,32,138,0.30), transparent); }

.on-dark .e-eyebrow-chip { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: var(--e-text-on-dark-secondary); }
.on-dark .e-eyebrow-dot { background: var(--e-purple-300); box-shadow: 0 0 10px rgba(168,120,236,0.6); }

/* === BOTÕES === */
.e-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: var(--e-r-pill);
  font-family: var(--ff-mono); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--e-dur-base) var(--e-ease);
  border: 1px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.e-btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.e-btn-lg { padding: 16px 28px; font-size: 0.95rem; }

.e-btn-primary { background: var(--e-purple-600); color: #fff; box-shadow: var(--e-sh-cta); }
.e-btn-primary:hover { background: var(--e-purple-500); transform: translateY(-2px); box-shadow: var(--e-sh-cta-hover); }

.e-btn-ghost {
  background: rgba(255,255,255,0.6);
  color: var(--e-text);
  border-color: var(--e-border-strong);
}
.e-btn-ghost:hover {
  background: #fff;
  border-color: var(--e-purple-400);
  transform: translateY(-1px);
  box-shadow: var(--e-sh-md);
}

.e-btn-link { background: transparent; color: var(--e-text-secondary); padding: 8px 0; }
.e-btn-link:hover { color: var(--e-purple-700); }

/* No-fundo-dark (inversão dentro do light) */
.e-btn-on-dark { background: #fff; color: var(--e-purple-900); }
.e-btn-on-dark:hover { background: var(--e-purple-50); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.e-btn-on-dark-ghost { background: transparent; color: var(--e-text-on-dark); border-color: rgba(255,255,255,0.20); }
.e-btn-on-dark-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.40); }

/* === BADGES === */
.e-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--e-r-pill);
  font-family: var(--ff-mono); font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.e-badge-orange {
  background: var(--e-orange-bg);
  color: var(--e-orange);
  border: 1px solid rgba(199,83,23,0.20);
}
.e-badge-orange::before { content:''; width: 6px; height: 6px; border-radius: 50%; background: var(--e-orange); animation: e-pulse 1.6s ease-in-out infinite; }
.e-badge-purple { background: rgba(116,39,212,0.08); color: var(--e-purple-700); border: 1px solid rgba(116,39,212,0.18); }
.e-badge-success { background: rgba(4,120,87,0.08); color: var(--e-success); border: 1px solid rgba(4,120,87,0.18); }
.e-badge-warning { background: rgba(180,83,9,0.08); color: var(--e-warning); border: 1px solid rgba(180,83,9,0.18); }
.e-badge-error   { background: rgba(185,28,28,0.08); color: var(--e-error);   border: 1px solid rgba(185,28,28,0.18); }
@keyframes e-pulse { 50% { opacity: 0.4; } }

/* === CARDS === */
.e-card {
  position: relative;
  padding: 32px;
  border-radius: var(--e-r-xl);
  background: var(--e-bg-card);
  border: 1px solid var(--e-border);
  overflow: hidden;
  transition: all var(--e-dur-base) var(--e-ease);
  box-shadow: var(--e-sh-card);
}
.e-card:hover {
  border-color: var(--e-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--e-sh-card-hover);
}
.e-card-spot { position: absolute; inset: 0; background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(116,39,212,0.06) 0%, transparent 40%); opacity: 0; transition: opacity var(--e-dur-base); pointer-events: none; }
.e-card:hover .e-card-spot { opacity: 1; }
.e-card-idx { font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--e-purple-700); }
.e-card-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.e-card p { color: var(--e-text-secondary); }

/* App-flat card (para dashboards/SaaS — sem hover-lift, mais funcional) */
.e-card-flat {
  padding: 24px;
  border-radius: var(--e-r-lg);
  background: #fff;
  border: 1px solid var(--e-border);
  transition: border-color var(--e-dur-fast);
}
.e-card-flat:hover { border-color: var(--e-border-strong); }

/* === INPUTS === */
.e-input {
  padding: 12px 14px;
  border: 1px solid var(--e-border-input);
  border-radius: var(--e-r-md);
  background: #fff;
  color: var(--e-text);
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  transition: all var(--e-dur-fast);
  width: 100%;
}
.e-input::placeholder { color: var(--e-text-faint); }
.e-input:focus {
  outline: none;
  border-color: var(--e-purple-500);
  box-shadow: var(--e-sh-focus);
}
.e-input.is-error { border-color: var(--e-error); }
.e-input.is-error:focus { box-shadow: 0 0 0 3px rgba(185,28,28,0.18); }
.e-textarea { min-height: 120px; resize: vertical; }

/* Underline input (estilo editorial — usar em LPs) */
.e-input-underline {
  border: 0;
  border-bottom: 1px solid var(--e-border-strong);
  border-radius: 0;
  padding: 12px 0;
  background: transparent;
}
.e-input-underline:focus { box-shadow: none; border-bottom-color: var(--e-purple-600); }

/* === STATS GRID === */
.e-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 32px 0; }
.e-stat { text-align: center; }
@media (max-width: 720px) { .e-stats { grid-template-columns: repeat(2, 1fr); } }

/* === HEADER PILL (light) === */
.e-header { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; pointer-events: none; }
.e-header-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 12px 10px 24px;
  border-radius: var(--e-r-pill);
  background: var(--e-glass-bg);
  border: 1px solid var(--e-glass-border);
  backdrop-filter: var(--e-glass-blur);
  -webkit-backdrop-filter: var(--e-glass-blur);
  box-shadow: var(--e-sh-nav);
  max-width: calc(100% - 32px);
  transition: all var(--e-dur-base) var(--e-ease);
}
.e-header-pill.is-scrolled { padding: 8px 10px 8px 18px; gap: 18px; }
.e-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-sans); font-weight: 500; color: var(--e-text); }
.e-brand em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; color: var(--e-purple-700); margin-left: 2px; }
.e-nav { display: flex; gap: 22px; }
.e-nav a { font-family: var(--ff-mono); font-size: 0.78rem; color: var(--e-text-secondary); transition: color var(--e-dur-fast); }
.e-nav a:hover { color: var(--e-purple-700); }
.e-header-cta { display: flex; align-items: center; gap: 12px; }
@media (max-width: 880px) { .e-nav { display: none; } }

/* === REVEAL ON SCROLL === */
.e-reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--e-ease), transform 800ms var(--e-ease); }
.e-reveal.is-visible { opacity: 1; transform: none; }
.e-delay-1 { transition-delay: 100ms; }
.e-delay-2 { transition-delay: 200ms; }
.e-delay-3 { transition-delay: 300ms; }
.e-delay-4 { transition-delay: 400ms; }

/* === MARQUEE === */
.e-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.e-marquee-track { display: inline-flex; gap: 64px; animation: e-marquee 40s linear infinite; white-space: nowrap; }
@keyframes e-marquee { to { transform: translateX(-50%); } }

/* === SCROLL INDICATOR === */
.e-scroll-indicator { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.6; animation: e-bob 2.4s ease-in-out infinite; font-family: var(--ff-mono); font-size: 0.65rem; letter-spacing: 0.25em; color: var(--e-text-muted); }
.e-scroll-line { width: 1px; height: 32px; background: var(--e-text-muted); }
@keyframes e-bob { 50% { transform: translateY(8px); opacity: 0.3; } }

/* === DIVIDER === */
.e-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--e-border-strong), transparent); margin: var(--e-s-12) 0; }

/* === LOGO IMG === */
.e-logo-img { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.e-header-pill.is-scrolled .e-logo-img { width: 24px; height: 24px; }
.e-lockup-img { display: block; height: 56px; width: auto; }
.e-lockup-img.lg { height: 88px; }
.e-lockup-img.xl { height: 120px; }

/* === LIGHT-MODE LINK STYLE (para textos de corpo) === */
.body-default a, .lead a, .bs-body p a {
  color: var(--e-purple-700);
  border-bottom: 1px solid rgba(116,39,212,0.30);
  transition: border-color 200ms;
}
.body-default a:hover, .lead a:hover, .bs-body p a:hover {
  border-bottom-color: var(--e-purple-700);
}

/* === SELO DE VERSÃO DA MARCA (header) === */
.e-ver {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--e-orange);
  background: var(--e-orange-bg);
  border: 1px solid rgba(199,83,23,0.25);
  border-radius: var(--e-r-pill);
  padding: 3px 8px;
  margin-left: 10px;
  line-height: 1;
  white-space: nowrap;
}
