/* SEL.IA Landing — public marketing page */
@import url("tokens.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Rolagem suave ao clicar em ancoras do nav/rodape */
html { scroll-behavior: smooth; }
/* Compensa o header fixo (64px) p/ a ancora parar abaixo da barra, com o titulo visivel */
#processos, #areas, #modulos, #cobertura, #seguranca { scroll-margin-top: 84px; }
body {
  font-family: var(--font-sans);
  color: var(--fg1);
  background: #fff;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* density modifier */
body[data-density="compact"] .section { padding: 72px 0; }
body[data-density="compact"] .hero    { padding: 96px 0 56px; }
body[data-density="open"]    .section { padding: 128px 0; }
body[data-density="open"]    .hero    { padding: 144px 0 96px; }

.section { padding: 104px 0; }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(16,43,78,0.06);
}
.topnav .inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 64px;
}
.topnav .brand {
  justify-self: start;
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  color: var(--stokhos-blue);
}
.topnav .brand .ia {
  background: var(--stokhos-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 800;
}
.topnav .links {
  justify-self: center;
  display: flex; gap: 36px; align-items: center;
}
.topnav .links a {
  font-size: 14px; font-weight: 500; color: var(--fg2);
  transition: color 160ms ease;
}
.topnav .links a:hover { color: var(--stokhos-blue); }
.topnav .right { justify-self: end; display: flex; align-items: center; gap: 12px; }
/* Botoes do nav: altura propria (desktop 36px). No mobile sobem p/ 44px (tap target). */
.topnav .right .nav-cta { height: 36px; padding: 0 14px; }
.topnav .right .btn-hero-primary.nav-cta { padding: 0 16px; }
/* Label curto do CTA so aparece em telas estreitas */
.cta-label-short { display: none; }
/* Hamburguer — escondido no desktop, aparece <=880px */
.nav-burger { display: none; background: none; border: 0; cursor: pointer; color: var(--stokhos-blue); }
.nav-burger-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 22px; }
.nav-burger-bars span { height: 2px; width: 100%; background: currentColor; border-radius: 2px; }
.nav-mobile { display: none; }
@media (max-width: 880px) {
  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
  }
  .topnav .right .nav-cta { height: 44px; }
  .nav-mobile.open {
    display: flex; flex-direction: column; padding: 6px 0;
    border-top: 1px solid rgba(16,43,78,0.06);
    background: rgba(255,255,255,0.97);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
  }
  .nav-mobile.open > a {
    display: flex; align-items: center; min-height: 44px;
    padding: 0 20px; font-size: 15px; font-weight: 500; color: var(--fg2);
  }
  .nav-mobile.open > a:active { background: rgba(16,43,78,0.04); }
}
@media (max-width: 520px) {
  .cta-label-full { display: none; }
  .cta-label-short { display: inline; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 40px; padding: 0 18px;
  font-size: 14px; font-weight: 600;
  border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 120ms ease, box-shadow 200ms ease, background 160ms ease, border-color 160ms ease;
}
.btn-primary {
  background: var(--stokhos-blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16,43,78,0.12);
}
.btn-primary:hover { background: #0a1f3a; box-shadow: 0 6px 18px rgba(16,43,78,0.20); }

.btn-gradient {
  background: var(--stokhos-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217,25,101,0.28);
}
.btn-gradient:hover { box-shadow: 0 8px 22px rgba(217,25,101,0.38); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--stokhos-blue);
  border-color: rgba(16,43,78,0.14);
}
.btn-ghost:hover { background: rgba(16,43,78,0.04); border-color: rgba(16,43,78,0.22); }

.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 10px; }

/* When hero accent = gradient, swap primary CTA */
body[data-accent="gradient"] .btn-hero-primary {
  background: var(--stokhos-gradient);
  color: #fff;
  box-shadow: 0 6px 20px rgba(217,25,101,0.32);
}
body[data-accent="gradient"] .btn-hero-primary:hover {
  box-shadow: 0 10px 28px rgba(217,25,101,0.42);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 80px;
  text-align: center;
  overflow: hidden;
}
/* Mobile: reduz o respiro vertical generoso de desktop p/ nao desperdicar viewport */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 48px; }
  /* watermarks decorativos grandes nao agregam no mobile e custam paint */
  .hero::before, .faq::before { display: none; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(217,25,101,0.08);
  border: 1px solid rgba(217,25,101,0.18);
  border-radius: 9999px;
  color: var(--stokhos-pink);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 24px 0 24px;
  color: var(--stokhos-blue);
  font-weight: 700;
}
.hero h1 .accent {
  color: var(--stokhos-pink);
}
body[data-accent="gradient"] .hero h1 .accent {
  background: var(--stokhos-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--fg2);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-meta {
  font-size: 13px; color: var(--fg3);
  margin-top: -52px; margin-bottom: 56px;
}

/* hero gradient backdrop (very subtle) */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(16,43,78,0.06), transparent 60%),
    radial-gradient(ellipse 30% 40% at 80% 30%, rgba(217,25,101,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

/* ---------- Laptop mockup (isometric, parallax) ---------- */
.laptop-stage {
  position: relative;
  margin: 32px auto 0;
  max-width: 980px;
  min-height: 540px;
}
.laptop-wrap {
  position: relative;
  width: min(680px, 88%);
  margin: 0 auto;
  zoom: 1.12;
  isolation: isolate;
}
.laptop {
  position: relative;
  background: linear-gradient(180deg, #d8dade 0%, #b9bcc2 100%);
  border-radius: 18px 18px 6px 6px;
  padding: 12px 12px 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 0 0 1px rgba(0,0,0,0.06);
}
.laptop-screen {
  background: #0a0d15;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
  padding: 16px 8px 8px;
}
.laptop-screen-inner {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  position: relative;
  text-align: left;
}
/* Diretoria is the densest screen — fit it so it doesn't look over-zoomed */
.dir-fit { zoom: 0.8; }
.sei-fit { zoom: 0.82; }

/* CTA Stokhos brand lockup */
.cta-stokhos { display: inline-flex; align-items: center; gap: 11px; margin-top: 26px; }
.cta-stokhos span { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.cta-stokhos img { height: 27px; width: auto; display: block; }

/* Soft brand blooms + Stokhos watermark to fill sparse light sections */
/* Stokhos icon watermarks placed in genuinely EMPTY areas (not behind cards) */
.hero, .faq { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: -80px; bottom: 4%;
  width: 360px; height: 360px; background: url("stokhos-icon-navy.png") center/contain no-repeat;
  opacity: 0.05; pointer-events: none; z-index: 0;
}
.faq::before {
  content: ""; position: absolute; right: -70px; top: 50%; transform: translateY(-50%);
  width: 380px; height: 380px; background: url("stokhos-icon-navy.png") center/contain no-repeat;
  opacity: 0.06; pointer-events: none; z-index: 0;
}
.hero .container, .faq .container { position: relative; z-index: 1; }
/* Stokhos lockup at the start of the hero */
.hero-stokhos { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 0 auto 22px; }
.hero-stokhos span { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg3); }
.hero-stokhos img { height: 40px; width: auto; display: block; }
/* Stokhos icon watermark to the lower-right of the hero notebook */
.hero-laptop-wrap { position: relative; }
.hero-laptop-wrap::after {
  content: ""; position: absolute; right: 4%; bottom: -2%;
  width: 300px; height: 300px; background: url("stokhos-icon-navy.png") center/contain no-repeat;
  opacity: 0.06; pointer-events: none; z-index: 0;
}
@media (max-width: 980px) { .hero-laptop-wrap::after { display: none; } }
/* Stokhos icon to the left of the "Acompanhe tudo" heading (processos section) */
#processos { position: relative; overflow: hidden; }
#processos::before {
  content: ""; position: absolute; left: -70px; top: 70px;
  width: 300px; height: 300px; background: url("stokhos-icon-navy.png") center/contain no-repeat;
  opacity: 0.06; pointer-events: none; z-index: 0;
}
#processos .container { position: relative; z-index: 1; }
@media (max-width: 1100px) { #processos::before { display: none; } }
#processos::after {
  content: ""; position: absolute; right: 2%; bottom: 4%;
  width: 300px; height: 300px; background: url("stokhos-icon-navy.png") center/contain no-repeat;
  opacity: 0.06; pointer-events: none; z-index: 0;
}
@media (max-width: 1100px) { #processos::after { display: none; } }

/* Decorative sinusoidal side waves (fixed, in the empty lateral gutters) */
/* Decorative animated sinusoidal side waves — always visible, auto-adapting color.
   Two stacked layers per side: a dark set (shows on light bg) + a light set (shows
   on dark bg), each drifting at a different speed/period → interleaved, in and out
   of sync. Above content but subtle + pointer-events:none. */
.wave-side {
  position: fixed; top: 0; bottom: 0; width: 84px; z-index: 0; pointer-events: none;
}
.wave-side::before, .wave-side::after {
  content: ""; position: absolute; left: 0; right: 0; top: -60px; bottom: -60px;
  background-repeat: repeat-y; background-position: center top;
}
.wave-side::before {
  /* dark layer — visible on light/white sections */
  background-size: 84px 300px; opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='300'%3E%3Cpath d='M50 0 C80 50 80 100 50 150 C20 200 20 250 50 300' fill='none' stroke='%23d91965' stroke-width='3'/%3E%3Cpath d='M86 0 C116 50 116 100 86 150 C56 200 56 250 86 300' fill='none' stroke='%23102b4e' stroke-width='2'/%3E%3C/svg%3E");
  animation: wave-drift-a 19s linear infinite;
}
.wave-side::after {
  /* light layer — visible on dark/navy sections */
  background-size: 84px 360px; opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='360'%3E%3Cpath d='M44 0 C78 60 78 120 44 180 C10 240 10 300 44 360' fill='none' stroke='%23ffffff' stroke-width='2.5'/%3E%3Cpath d='M94 0 C128 60 128 120 94 180 C60 240 60 300 94 360' fill='none' stroke='%23ff7aa8' stroke-width='2'/%3E%3C/svg%3E");
  animation: wave-drift-b 27s linear infinite reverse;
}
.wave-side.l { left: 0; }
.wave-side.r { right: 0; transform: scaleX(-1); }
@keyframes wave-drift-a { to { background-position-y: 300px; } }
@keyframes wave-drift-b { to { background-position-y: 360px; } }
@media (max-width: 760px) { .wave-side { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .wave-side::before, .wave-side::after { animation: none; }
}
/* page content sits above the waves → waves pass UNDER everything,
   showing only through transparent/empty areas, hidden behind cards & bands */
#root { position: relative; z-index: 1; }

/* Stokhos brand lockup in footer */
.footer-stokhos { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.footer-stokhos span { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.footer-stokhos img { height: 26px; width: auto; display: block; }
.laptop-camera {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 9999px;
  background: #1a1d22;
  box-shadow: 0 0 0 2px #0a0d15;
  z-index: 2;
}
.laptop-base {
  height: 18px;
  background: linear-gradient(180deg, #c5c8cd 0%, #9ea1a7 60%, #7e8187 100%);
  border-radius: 0 0 16px 16px;
  margin: 0 -28px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 8px 24px rgba(16,43,78,0.18);
}
.laptop-base::before {
  content: "";
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 140px; height: 8px;
  background: linear-gradient(180deg, #8a8d92, #6c6f74);
  border-radius: 0 0 10px 10px;
}
/* shadow puddle */
.laptop-shadow {
  position: absolute; left: 8%; right: 8%;
  bottom: 40px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(16,43,78,0.30), transparent 70%);
  filter: blur(28px);
  z-index: -1;
  transform: rotateX(80deg);
}

/* ---------- Floating AI annotation bubbles ---------- */
.feat-bubble {
  position: absolute;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  background: #0a0d15;
  color: #fff;
  border-radius: 9999px;
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  max-width: 64%;
  box-shadow:
    0 16px 40px rgba(10,13,21,0.30),
    0 4px 12px rgba(10,13,21,0.18),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  z-index: 30;
  transition: opacity 500ms ease, transform 520ms cubic-bezier(0.22,1,0.36,1);
}
.feat-bubble .feat-icon {
  width: 24px; height: 24px;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #d91965, #ef405b);
  color: #fff;
  flex-shrink: 0;
}
.feat-bubble .feat-icon svg { display: block; }
.feat-bubble .ai-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 4px;
}

/* Corner anchoring — hug the extreme corners (over the rounded bezel/edge,
   minimal overlap with the screen's text content). */
.feat-bubble.corner-tl { top: 5%;  left: 2%;  transform-origin: left top; }
.feat-bubble.corner-tr { top: 5%;  right: 2%; transform-origin: right top; }
.feat-bubble.corner-bl { bottom: 16%; left: 2%;  transform-origin: left bottom; }
.feat-bubble.corner-br { bottom: 16%; right: 2%; transform-origin: right bottom; }

/* Timed show / hide — transition-based (robust even when CSS animations are
   throttled/pending), so the resting visible state is always opacity:1. */
.feat-bubble.is-off {
  opacity: 0; pointer-events: none;
  transform: translateY(10px) scale(0.96);
}
.feat-bubble.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes float-bubble {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Bubble pop-in (re-runs when a callout switches on) */
@keyframes bubble-pop-in {
  0%   { opacity: 0; transform: translateY(8px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Screen content fade-in on each rotation — no fill mode, so the resting
   state is the visible end-state (opacity 1). This keeps the screen visible
   in screenshots / PDF / export even if the entrance animation is pending. */
.screen-fade {
  animation: screen-fade-in 440ms ease-out 20ms;
}
@keyframes screen-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Caret for SEI summary typing */
.caret-dark {
  display: inline-block;
  width: 1.5px; height: 9px;
  background: #102b4e;
  margin-left: 1px;
  vertical-align: middle;
  animation: caret-blink 0.9s steps(2) infinite;
}
@keyframes caret-blink {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* Laptop screen tabs (dots) */
.laptop-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.laptop-dots::before {
  content: "Clique para alternar as telas — ou veja-as girar sozinhas";
  display: block; width: 100%; text-align: center;
  font-size: 12.5px; font-weight: 600; color: var(--fg3);
  margin-bottom: 4px;
}
.laptop-dot {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.laptop-dot-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 15px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg2);
  background: #fff;
  border: 1.5px solid rgba(16,43,78,0.14);
  box-shadow: 0 2px 8px rgba(16,43,78,0.06);
  transition: all 220ms ease;
}
.laptop-dot:hover .laptop-dot-pill {
  background: #fff;
  color: var(--fg);
  border-color: rgba(217,25,101,0.4);
  transform: translateY(-1px);
}
.laptop-dot-bullet {
  width: 7px; height: 7px;
  border-radius: 9999px;
  background: rgba(16,43,78,0.25);
  transition: all 220ms ease;
}
.laptop-dot.is-active .laptop-dot-pill {
  background: linear-gradient(135deg, #d91965, #ef405b);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(217,25,101,0.32);
}
.laptop-dot.is-active .laptop-dot-bullet {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
}

@media (max-width: 900px) {
  .laptop-stage { min-height: 440px; }
  .feat-bubble  { font-size: 11px; padding: 8px 12px 8px 10px; max-width: 60%; }
  .feat-bubble .feat-icon { width: 18px; height: 18px; }
  .feat-bubble.corner-tl { top: 2%;  left: 1%; }
  .feat-bubble.corner-tr { top: 2%;  right: 1%; }
  .feat-bubble.corner-bl { bottom: 16%; left: 1%; }
  .feat-bubble.corner-br { bottom: 16%; right: 1%; }
}

/* ---------- Trust bar ---------- */
.trust {
  padding: 64px 0 56px;
  border-top: 1px solid rgba(16,43,78,0.06);
}
.trust-label {
  text-align: center;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 32px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 800px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
.trust-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  border: 1px solid rgba(16,43,78,0.08);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  transition: all 200ms ease;
}
.trust-item:hover {
  border-color: rgba(217,25,101,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,43,78,0.06);
}
.trust-name {
  font-weight: 700; font-size: 14px; color: var(--stokhos-blue);
  letter-spacing: -0.01em;
}
.trust-desc { font-size: 11px; color: var(--fg3); }
.trust-soon { opacity: 0.55; }
.trust-soon .trust-name::after {
  content: "em breve";
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(16,43,78,0.06);
  color: var(--fg3);
  border-radius: 9999px;
  vertical-align: middle;
}

/* ---------- Section header ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--stokhos-pink);
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--stokhos-blue);
  margin: 0 0 16px;
  font-weight: 700;
}
.section-header p {
  font-size: 18px;
  color: var(--fg2);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---------- Modules grid ---------- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .modules-grid { grid-template-columns: 1fr; }
}
.module-card {
  background: #fff;
  border: 1px solid rgba(16,43,78,0.08);
  border-radius: 14px;
  padding: 28px;
  display: flex; flex-direction: column;
  transition: all 200ms ease;
  position: relative;
  overflow: hidden;
}
.module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217,25,101,0.20);
  box-shadow: 0 16px 40px rgba(16,43,78,0.08);
}
.module-card.span-7 { grid-column: span 7; }
.module-card.span-5 { grid-column: span 5; }
.module-card.span-4 { grid-column: span 4; }
.module-card.span-6 { grid-column: span 6; }
.module-card.span-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .module-card[class*="span-"] { grid-column: span 1; }
}

.module-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(217,25,101,0.10);
  color: var(--stokhos-pink);
  margin-bottom: 20px;
}
.module-card h3 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--stokhos-blue);
  margin: 0 0 10px;
}
.module-card p {
  font-size: 15px; line-height: 1.55;
  color: var(--fg2);
  margin: 0 0 20px;
}
.module-card .preview {
  margin-top: auto;
  background: #fafbfc;
  border: 1px solid rgba(16,43,78,0.06);
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
}

/* ---------- Steps (Como funciona) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; } }
.step {
  display: flex; flex-direction: column; gap: 12px;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: var(--stokhos-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 4px 12px rgba(16,43,78,0.18);
}
body[data-accent="gradient"] .step-num {
  background: var(--stokhos-gradient);
  box-shadow: 0 4px 12px rgba(217,25,101,0.30);
}
.step h4 {
  font-size: 19px; font-weight: 700;
  color: var(--stokhos-blue);
  margin: 4px 0 0;
  letter-spacing: -0.01em;
}
.step p { font-size: 15px; color: var(--fg2); line-height: 1.55; margin: 0; }

/* ---------- Security ---------- */
.security {
  background: linear-gradient(180deg, #fafbfc 0%, #f6f8fa 100%);
}
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-card {
  background: #fff;
  border: 1px solid rgba(16,43,78,0.08);
  border-radius: 12px;
  padding: 28px;
}
.sec-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,43,78,0.06);
  color: var(--stokhos-blue);
  margin-bottom: 16px;
}
.sec-card h4 {
  font-size: 17px; font-weight: 700; color: var(--stokhos-blue);
  margin: 0 0 8px;
}
.sec-card p { font-size: 14px; color: var(--fg2); margin: 0; line-height: 1.55; }

/* ---------- CTA Final ---------- */
.cta-final {
  background: var(--stokhos-blue);
  background-image: linear-gradient(135deg, #102b4e 0%, #0a1f3a 50%, #00427a 100%);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute; right: -10%; top: -30%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(217,25,101,0.30), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-final .container {
  position: relative;
  text-align: center;
  padding-top: 24px; padding-bottom: 24px;
}
.cta-final h2 {
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  font-weight: 700;
}
.cta-final p {
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  margin: 0 0 32px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.cta-final .btn-primary { background: #fff; color: var(--stokhos-blue); }
.cta-final .btn-primary:hover { background: #fff; box-shadow: 0 8px 28px rgba(255,255,255,0.25); }
.cta-final .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.cta-final .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

/* ---------- Footer ---------- */
.footer {
  background: #fff;
  border-top: 1px solid rgba(16,43,78,0.08);
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  /* marca (esquerda, larga) + colunas Empresa e Plataforma a direita */
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
/* mobile: marca ocupa a linha inteira; Empresa e Plataforma lado a lado */
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col-brand { grid-column: 1 / -1; }
}
.footer h5 {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg3);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--fg2); }
.footer ul a:hover { color: var(--stokhos-blue); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: var(--stokhos-blue); margin-bottom: 12px; }
.footer-brand .ia {
  background: var(--stokhos-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 800;
}
.footer-tag { font-size: 14px; color: var(--fg2); max-width: 320px; line-height: 1.55; }
/* Logo da marca no footer — icone SEL.IA (badge autocontido) */
.footer-logo { width: 34px; height: 34px; display: block; }
/* Linha social — botao LinkedIn + pilula do site */
.footer-social { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.footer-social-btn,
.footer-site {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; border-radius: 10px;
  border: 1px solid rgba(16,43,78,0.12);
  color: var(--stokhos-blue); background: #fff;
  transition: border-color 160ms ease, background 160ms ease;
}
.footer-social-btn { width: 38px; }
.footer-site { gap: 6px; padding: 0 14px; font-size: 13px; font-weight: 600; }
.footer-social-btn:hover,
.footer-site:hover { border-color: rgba(16,43,78,0.22); background: rgba(16,43,78,0.03); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(16,43,78,0.06);
  font-size: 13px; color: var(--fg3);
}
.footer-legal { display: flex; gap: 18px; }
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; align-items: center; gap: 12px; }
}

/* ---------- Animations ---------- */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}
.pulse-dot { animation: pulse-dot 1.6s infinite ease-in-out; }

@keyframes blink-caret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.caret { animation: blink-caret 1s infinite; }

@keyframes count-shift {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);  opacity: 1; }
}
.count-shift { animation: count-shift 400ms ease-out; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeUpIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .fade-up {
    animation: fadeUpIn 600ms ease-out;
  }
}
.fade-up { opacity: 1; }

/* dots typing */
.typing { display: inline-flex; gap: 3px; align-items: center; }
.typing span {
  width: 6px; height: 6px; border-radius: 9999px;
  background: var(--stokhos-pink);
  animation: pulse-dot 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

/* tag chip */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 600;
  border-radius: 9999px;
  background: rgba(217,25,101,0.10);
  color: var(--stokhos-pink);
}
.tag.blue {
  background: rgba(16,43,78,0.08);
  color: var(--stokhos-blue);
}

/* phone for mobile mockup section */
.product-shown {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .product-shown { grid-template-columns: 1fr; } }

/* ============================================================================
   Chat — message action row + "Fontes e Referências" modal (in-laptop)
   ============================================================================ */

/* Action row under the final AI answer */
.msg-actions {
  display: flex; align-items: center; gap: 2px;
  margin-top: 9px; padding-top: 8px;
  border-top: 1px solid #eef0f2;
  opacity: 0; transform: translateY(4px);
  transition: opacity 320ms ease, transform 320ms ease;
}
.msg-actions.show { opacity: 1; transform: translateY(0); }
.msg-action-btn {
  width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #9aa0a6; background: transparent; border: 0; cursor: pointer;
  transition: all 180ms ease;
  position: relative;
}
.msg-action-btn:hover { background: #f1f3f5; color: #5a6068; }
/* the "ver fontes" book button — primary affordance */
.msg-action-btn.src-btn { color: var(--stokhos-pink); }
.msg-actions.spotlight .msg-action-btn:not(.src-btn) { opacity: 0.3; }
.msg-actions.spotlight .msg-action-label { opacity: 1 !important; transform: none !important; transition-delay: 0s; font-size: 9.5px; }
.msg-action-btn.src-btn.zoom {
  transform: scale(1.85);
  background: rgba(217,25,101,0.14);
  color: var(--stokhos-pink);
  box-shadow: 0 0 0 5px rgba(217,25,101,0.18), 0 6px 16px rgba(217,25,101,0.30);
  z-index: 6;
}
.msg-action-btn.src-btn.zoom::after {
  content: ""; position: absolute; inset: -7px; border-radius: 10px;
  border: 1.5px solid var(--stokhos-pink);
  animation: src-ring 1100ms ease-out infinite;
}
@keyframes src-ring {
  0%   { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}
.msg-action-sep { flex: 1; }
.msg-action-label {
  font-size: 8.5px; font-weight: 600; color: var(--stokhos-pink);
  white-space: nowrap; margin-left: 2px;
  opacity: 0; transform: translateX(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.msg-actions.show .msg-action-label { opacity: 1; transform: translateX(0); transition-delay: 360ms; }

/* Modal overlay confined to the laptop screen */
.src-modal-overlay {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(8,18,35,0.42);
  backdrop-filter: blur(1.5px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 260ms ease;
}
.src-modal-overlay.in { opacity: 1; }
.src-modal {
  width: 80%; height: 90%;
  max-width: 420px;
  background: #fff; border-radius: 10px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(8,18,35,0.45);
  transform: scale(0.7) translateY(24px); opacity: 0;
  transform-origin: 70% 100%;
  transition: transform 360ms cubic-bezier(0.34,1.56,0.64,1), opacity 280ms ease;
}
.src-modal-overlay.in .src-modal { transform: scale(1) translateY(0); opacity: 1; }

.src-modal-header {
  background: var(--stokhos-blue);
  color: #fff; padding: 12px 14px 13px;
  position: relative; flex-shrink: 0;
}
.src-modal-header .smh-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
}
.src-modal-header .smh-sub {
  font-size: 9px; color: rgba(255,255,255,0.72);
  margin-top: 3px; font-weight: 400;
}
.src-modal-header .smh-close {
  position: absolute; top: 11px; right: 11px;
  width: 18px; height: 18px; color: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.src-modal-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; border-bottom: 1px solid #eef0f2; flex-shrink: 0;
}
.src-modal-meta .smm-count {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; color: var(--stokhos-blue);
}
.src-modal-meta .smm-count svg { color: var(--stokhos-pink); }
.src-modal-meta .smm-expand { font-size: 9.5px; color: #5a6068; }

.src-modal-body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 9px;
  scroll-behavior: smooth;
  background: #fafbfc;
}
.src-modal-body::-webkit-scrollbar { width: 5px; }
.src-modal-body::-webkit-scrollbar-thumb { background: #cdd3da; border-radius: 9999px; }

.src-ref-card {
  background: #fff; border: 1px solid #eef0f2; border-radius: 8px;
  padding: 10px 11px; display: flex; gap: 9px; align-items: flex-start;
  transition: transform 280ms cubic-bezier(0.34,1.4,0.64,1), box-shadow 280ms ease, border-color 280ms ease;
}
.src-ref-card.hi {
  transform: scale(1.035);
  border-color: rgba(217,25,101,0.5);
  box-shadow: 0 8px 22px rgba(217,25,101,0.16);
  position: relative; z-index: 2;
}
.src-ref-card.expanded {
  transform: scale(1.02);
  border-color: rgba(217,25,101,0.6);
  box-shadow: 0 12px 30px rgba(217,25,101,0.20);
  position: relative; z-index: 3;
}

/* Final focus — the excerpt takes over the modal body and its text grows to a
   comfortable reading size, while the modal chrome (header/footer) stays. */
.src-modal-body.dive .src-ref-card:not(.expanded) {
  opacity: 0;
  max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0;
  border-color: transparent;
  pointer-events: none;
  transition: opacity 360ms ease, max-height 460ms ease, margin 460ms ease, padding 460ms ease;
}
.src-modal-body.dive .src-ref-card.expanded {
  transform: none;
  border-color: rgba(217,25,101,0.75);
  box-shadow: 0 10px 30px rgba(217,25,101,0.20);
  padding: 14px 15px;
  transition: padding 420ms ease, box-shadow 420ms ease, border-color 420ms ease;
}
.src-modal-body.dive .src-ref-ico { width: 32px; height: 32px; border-radius: 9px; }
.src-modal-body.dive .src-ref-title { font-size: 13px; transition: font-size 420ms ease; }
.src-modal-body.dive .src-ref-sec { font-size: 10px; }
.src-modal-body.dive .src-ref-full { font-size: 12.5px; line-height: 1.62; transition: font-size 420ms ease; }
.src-modal-body.dive .srf-art { font-size: 14px; transition: font-size 420ms ease; }
.src-modal-body.dive .srf-par { padding-left: 11px; }
.src-modal-body.dive .src-ref-more { font-size: 11px; }
.src-ref-ico {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: rgba(217,25,101,0.10); color: var(--stokhos-pink);
  display: flex; align-items: center; justify-content: center;
}
.src-ref-main { flex: 1; min-width: 0; }
.src-ref-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.src-ref-title { font-size: 10.5px; font-weight: 700; color: var(--stokhos-blue); line-height: 1.25; letter-spacing: -0.01em; }
.src-ref-sec { font-size: 8.5px; color: #9aa0a6; margin-top: 2px; }
.src-ref-chev { color: #aab0b6; flex-shrink: 0; margin-top: 1px; }
.src-ref-quote {
  font-size: 9px; line-height: 1.5; color: #5a6068; font-style: italic;
  margin: 6px 0 5px;
}
.src-ref-more { font-size: 8.5px; font-weight: 600; color: var(--stokhos-pink); }

/* Expanded full article — organized in items (caput + parágrafos), zooms in */
.src-ref-full { font-size: 9px; line-height: 1.55; color: #3a4048; margin: 8px 0 5px; }
.src-zoom-in { animation: srcZoomIn 560ms cubic-bezier(0.22,1,0.36,1) both; transform-origin: left top; }
@keyframes srcZoomIn {
  0%   { opacity: 0; transform: scale(0.78); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
.srf-art { font-size: 10px; font-weight: 800; color: var(--stokhos-blue); margin-bottom: 5px; }
.srf-caput { margin: 0 0 8px; }
.srf-par {
  margin: 0 0 8px; padding-left: 9px;
  border-left: 2px solid rgba(217,25,101,0.35);
}
.srf-par:last-child { margin-bottom: 2px; }
.srf-par b { color: var(--stokhos-pink); font-weight: 700; }

.src-modal-footer {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 9px 14px; border-top: 1px solid #eef0f2; flex-shrink: 0;
  background: #fff;
}
.src-modal-footer .smf-btn {
  background: var(--stokhos-blue); color: #fff;
  font-size: 10px; font-weight: 600; padding: 6px 16px; border-radius: 6px;
  cursor: pointer; transition: background 160ms ease, transform 120ms ease;
}
.src-modal-footer .smf-btn:hover { background: #0a3a6b; }
.src-modal-footer .smf-btn:active { transform: scale(0.96); }
.smh-close { cursor: pointer; transition: color 160ms ease; }
.smh-close:hover { color: #fff !important; }

/* Chat "thinking" dots (Diretores chat answer) */
.think-dot {
  width: 5px; height: 5px; border-radius: 9999px; background: var(--stokhos-pink);
  display: inline-block; animation: think-bounce 1000ms ease-in-out infinite;
}
.think-dot:nth-child(2) { animation-delay: 150ms; }
.think-dot:nth-child(3) { animation-delay: 300ms; }
@keyframes think-bounce { 0%,100%{opacity:0.25;transform:translateY(0);} 50%{opacity:1;transform:translateY(-3px);} }

/* Participação Social — "Analisar com a SELIA" + slide-in chat panel + contributions */
.cp-analisar {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 8px 13px; border-radius: 8px;
  background: linear-gradient(135deg,#d91965,#ef405b); color: #fff;
  font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer;
  box-shadow: 0 6px 16px rgba(217,25,101,0.28);
}
.cp-analisar.click { animation: cp-clickpulse 760ms ease-out; }
@keyframes cp-clickpulse {
  0% { box-shadow: 0 0 0 0 rgba(217,25,101,0.5), 0 6px 16px rgba(217,25,101,0.28); }
  100% { box-shadow: 0 0 0 13px rgba(217,25,101,0), 0 6px 16px rgba(217,25,101,0.28); }
}
.cp-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: 57%;
  background: #fff; border-left: 1px solid #eef0f2;
  box-shadow: -14px 0 36px rgba(8,18,35,0.14);
  display: flex; flex-direction: column; z-index: 6;
  transform: translateX(103%);
  transition: transform 540ms cubic-bezier(0.22,1,0.36,1);
}
.cp-panel.in { transform: translateX(0); }
.cp-contrib { animation: cp-pop 460ms cubic-bezier(0.34,1.56,0.64,1); }
@keyframes cp-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.cp-orgico.new { animation: cp-orgpulse 820ms ease-out; }
@keyframes cp-orgpulse {
  0% { box-shadow: 0 0 0 0 rgba(217,25,101,0.45); }
  100% { box-shadow: 0 0 0 10px rgba(217,25,101,0); }
}

/* "Escrevendo HTML draft" pill */
.cp-writing {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 9999px;
  background: #f1f3f5; color: #5a6068; font-size: 10.5px; font-weight: 600;
}
.cp-writing .spin {
  width: 11px; height: 11px; border-radius: 9999px;
  border: 2px solid rgba(217,25,101,0.3); border-top-color: #d91965;
  animation: cp-spin 700ms linear infinite;
}
@keyframes cp-spin { to { transform: rotate(360deg); } }

/* generated-report card */
.cp-repcard {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #eef0f2; border-radius: 10px; padding: 10px 12px;
  background: #fff; cursor: pointer;
  animation: cp-pop 460ms cubic-bezier(0.34,1.56,0.64,1);
}
.cp-repcard .rc-ico {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(217,25,101,0.10); color: #d91965;
  display: flex; align-items: center; justify-content: center;
}
.cp-repcard .rc-name { font-size: 11px; font-weight: 700; color: #102b4e; line-height: 1.2; }
.cp-repcard .rc-meta { font-size: 9px; color: #9aa0a6; margin-top: 2px; }
.cp-repcard .rc-arrow { color: #d91965; flex-shrink: 0; }

/* report modal (over the whole laptop screen) */
.cp-rep-overlay {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(8,18,35,0.42); backdrop-filter: blur(1.5px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 260ms ease;
}
.cp-rep-overlay.in { opacity: 1; }
.cp-rep-modal {
  width: 86%; height: 90%; max-width: 620px;
  background: #fff; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 70px rgba(8,18,35,0.5);
  transform: scale(0.86) translateY(16px); opacity: 0;
  transition: transform 380ms cubic-bezier(0.34,1.4,0.64,1), opacity 300ms ease;
}
.cp-rep-overlay.in .cp-rep-modal { transform: none; opacity: 1; }
.cp-rep-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid #eef0f2; flex-shrink: 0;
}
.cp-rep-head .t { font-size: 11.5px; font-weight: 700; color: #102b4e; }
.cp-rep-head .acts { display: flex; gap: 7px; }
.cp-rep-head .acts span {
  font-size: 9.5px; font-weight: 600; color: #5a6068;
  border: 1px solid #e6e7e8; border-radius: 7px; padding: 4px 9px;
  display: inline-flex; align-items: center; gap: 4px;
}
.cp-rep-body { flex: 1; min-height: 0; overflow: hidden; padding: 0; background: #fff; }
.cp-rep-inner { padding: 14px; }
.cp-rep-hero {
  background: linear-gradient(135deg,#d91965,#ef405b); color: #fff;
  border-radius: 10px; padding: 16px 18px; margin-bottom: 13px;
}
.cp-rep-hero .h { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.cp-rep-hero .s { font-size: 10px; opacity: 0.9; margin-top: 5px; }
.cp-rep-msg {
  background: #fff8ec; border-left: 3px solid #ef9b3f; border-radius: 8px;
  padding: 10px 12px; font-size: 10px; line-height: 1.5; color: #5a4a2e; margin-bottom: 13px;
}
.cp-rep-msg b { color: #102b4e; }
.cp-rep-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 15px; }
.cp-rep-stat { border: 1px solid #eef0f2; border-radius: 9px; padding: 10px 11px; border-top: 3px solid; }
.cp-rep-stat .lab { font-size: 7.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9aa0a6; }
.cp-rep-stat .num { font-size: 24px; font-weight: 800; color: #102b4e; line-height: 1.05; margin: 3px 0; }
.cp-rep-stat .sub { font-size: 8px; color: #5a6068; line-height: 1.3; }
.cp-rep-h { font-size: 12px; font-weight: 800; color: #102b4e; margin: 4px 0 9px; }
.cp-rep-bars { display: flex; align-items: flex-end; gap: 16px; height: 110px; padding: 0 8px 22px; border-bottom: 1px solid #eef0f2; position: relative; margin-bottom: 16px; }
.cp-rep-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.cp-rep-bar .bar { width: 70%; border-radius: 4px 4px 0 0; transition: height 700ms cubic-bezier(0.22,1,0.36,1); }
.cp-rep-bar .blab { position: absolute; bottom: 4px; font-size: 8px; color: #5a6068; text-align: center; }
.cp-rep-table { width: 100%; border-collapse: collapse; font-size: 9px; margin-bottom: 14px; }
.cp-rep-table th { text-align: left; font-size: 8px; font-weight: 700; color: #5a6068; text-transform: uppercase; letter-spacing: 0.04em; padding: 7px 8px; background: #f6f7f9; border-bottom: 1px solid #eef0f2; }
.cp-rep-table td { padding: 8px; border-bottom: 1px solid #eef0f2; vertical-align: top; line-height: 1.4; color: #3a4048; }
.cp-rep-table td.g { font-weight: 700; color: #102b4e; width: 28%; }
.cp-rep-table td.e { color: #1f6cd9; width: 34%; }
.cp-rep-concl {
  background: #eef5ff; border-left: 3px solid #1f6cd9; border-radius: 8px;
  padding: 11px 13px; font-size: 10px; line-height: 1.5; color: #2a3a52;
}
.cp-rep-concl b { color: #102b4e; }
.cp-rep-foot { display: flex; justify-content: flex-end; padding: 9px 14px; border-top: 1px solid #eef0f2; flex-shrink: 0; }
.cp-rep-foot span { font-size: 9.5px; font-weight: 700; color: #fff; background: var(--stokhos-blue,#102b4e); border-radius: 7px; padding: 6px 13px; display: inline-flex; align-items: center; gap: 5px; }

/* Diretores — emphasise the "click" that selects Agnes */
.dir-card-click {
  z-index: 5;
  animation: dir-click-pop 950ms cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: center left;
}
@keyframes dir-click-pop {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(217,25,101,0.0); }
  30%  { transform: scale(1.09); box-shadow: 0 0 0 6px rgba(217,25,101,0.22), 0 10px 24px rgba(217,25,101,0.22); }
  70%  { transform: scale(1.02); box-shadow: 0 0 0 3px rgba(217,25,101,0.16), 0 8px 18px rgba(217,25,101,0.16); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(217,25,101,0.0); }
}
.dir-tap-ring {
  position: absolute; left: 21px; top: 21px;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 9999px; border: 2px solid #d91965;
  transform: scale(0.4); opacity: 0.9; pointer-events: none; z-index: 6;
  animation: dir-tap-ring 720ms ease-out forwards;
}
@keyframes dir-tap-ring { to { transform: scale(3); opacity: 0; } }

/* ============================================================================
   SEI — document compilation → consolidated AI overview
   ============================================================================ */

/* Collapse the process-number card and the memória detail when synthesizing */
.sei-collapsible {
  overflow: hidden;
  transition: max-height 520ms cubic-bezier(0.65,0,0.35,1), opacity 360ms ease,
              margin 460ms ease, padding 460ms ease, transform 460ms ease;
}
.sei-collapsible.gone {
  max-height: 0 !important; opacity: 0; margin-top: 0; margin-bottom: 0;
  padding-top: 0; padding-bottom: 0; transform: translateY(-6px);
  pointer-events: none;
}

/* All timeline nodes glow during synthesis */
@keyframes sei-node-glow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(155,108,217,0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(217,25,101,0.22); }
}

/* Compile stage — chips converge into a central core */
.sei-compile {
  position: relative;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
}
/* document dots orbiting the IA wheel — the synthesis inputs */
.sei-orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: sei-orbit-spin 14s linear infinite; }
@keyframes sei-orbit-spin { to { transform: rotate(360deg); } }
.sei-orbdot {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 9999px; background: #fff; border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(var(--a)) translateX(108px) rotate(calc(-1 * var(--a)));
  box-shadow: 0 4px 10px rgba(8,18,35,0.12);
  animation: sei-orbdot-in 600ms cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes sei-orbdot-in { from { opacity: 0; transform: rotate(var(--a)) translateX(40px) rotate(calc(-1 * var(--a))) scale(0.4); } }

/* continuous synthesis: dots start in a row (where the timeline was) and fly to orbit */
.sei-synth { position: relative; height: 100%; }
.sei-core2 {
  opacity: 0; transform: scale(0.4);
  transition: opacity 500ms ease 250ms, transform 600ms cubic-bezier(0.34,1.56,0.64,1) 250ms;
}
.sei-core2.on { opacity: 1; transform: scale(1); }
.sei-fly {
  position: absolute; left: var(--rowx); top: 22px;
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-radius: 9999px; background: #fff; border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(8,18,35,0.12);
  transition: left 950ms cubic-bezier(0.6,0,0.2,1), top 950ms cubic-bezier(0.6,0,0.2,1), transform 950ms cubic-bezier(0.6,0,0.2,1);
}
.sei-fly.orbit {
  left: 50%; top: 50%; margin: 0;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-104px) rotate(calc(-1 * var(--a)));
}
.sei-flyring { position: absolute; inset: 0; }
.sei-synth.spinning .sei-flyring { animation: sei-orbit-spin 16s linear infinite; transform-origin: 50% 50%; }
/* core centred EXACTLY on the orbit centre (translate-based, no margin/pulse drift) */
.sei-synth .sei-core2 {
  left: 50%; top: 50%; margin: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: none;
  transition: opacity 500ms ease 250ms, transform 600ms cubic-bezier(0.34,1.56,0.64,1) 250ms;
}
.sei-synth .sei-core2.on { transform: translate(-50%, -50%) scale(1); }
.sei-core {
  position: absolute; left: 50%; top: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 13px;
  background: var(--stokhos-gradient, linear-gradient(135deg,#d91965,#ef405b));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(217,25,101,0.35);
  animation: sei-core-pulse 1100ms ease-in-out infinite;
  z-index: 3;
}
@keyframes sei-core-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(217,25,101,0.30); }
  50%      { transform: scale(1.08); box-shadow: 0 10px 30px rgba(217,25,101,0.45); }
}
.sei-core::after {
  content: ""; position: absolute; inset: -8px; border-radius: 17px;
  border: 1.5px solid rgba(217,25,101,0.45);
  animation: sei-core-ring 1400ms ease-out infinite;
}
@keyframes sei-core-ring {
  0%   { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}
.sei-chip {
  position: absolute; top: 50%; left: 50%;
  display: flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 6px;
  background: #fff; border: 1px solid #eef0f2;
  font-size: 7.5px; font-weight: 700; color: #5a6068;
  box-shadow: 0 4px 12px rgba(8,18,35,0.10);
  white-space: nowrap;
  /* start spread out (set via inline --tx/--ty), then converge to centre */
  transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1);
  opacity: 0;
  transition: transform 760ms cubic-bezier(0.7,0,0.2,1), opacity 520ms ease;
}
.sei-chip.in  { opacity: 1; }
.sei-chip.merge {
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  transition: transform 640ms cubic-bezier(0.7,0,0.2,1), opacity 520ms ease;
}
.sei-compile-caption {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-size: 9px; font-weight: 600; color: #9b6cd9;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.sei-compile-caption .dots { display: inline-flex; gap: 3px; }
.sei-compile-caption .dots i {
  width: 4px; height: 4px; border-radius: 9999px; background: #d91965;
  display: inline-block; animation: sei-dot 1000ms ease-in-out infinite;
}
.sei-compile-caption .dots i:nth-child(2) { animation-delay: 160ms; }
.sei-compile-caption .dots i:nth-child(3) { animation-delay: 320ms; }
@keyframes sei-dot { 0%,100%{opacity:0.25;transform:translateY(0);} 50%{opacity:1;transform:translateY(-2px);} }

/* Consolidated AI overview card */
.sei-overview {
  height: 100%;
  background: #fff; border: 1px solid #eef0f2; border-left: 3px solid var(--stokhos-pink);
  border-radius: 8px; padding: 12px 15px;
  display: flex; flex-direction: column;
  animation: srcZoomIn 560ms cubic-bezier(0.22,1,0.36,1) both;
  transform-origin: center center;
  overflow: hidden;
}
.sei-ov-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.sei-ov-icon {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--stokhos-gradient, linear-gradient(135deg,#d91965,#ef405b));
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.sei-ov-head .t1 { font-size: 11px; font-weight: 800; color: #102b4e; letter-spacing: -0.01em; }
.sei-ov-head .t2 { font-size: 8.5px; color: #9aa0a6; margin-top: 1px; }
.sei-ov-title { font-size: 13px; font-weight: 800; color: #102b4e; letter-spacing: 0.01em; }
.sei-ov-meta { font-size: 8.5px; color: #5a6068; margin-top: 3px; }
.sei-ov-meta b { color: #102b4e; }
.sei-ov-divider { height: 1px; background: #eef0f2; margin: 10px 0; }
.sei-ov-points { display: flex; flex-direction: column; gap: 7px; }
.sei-ov-tag { font-size: 8px; font-weight: 700; padding: 2px 8px; border-radius: 9999px; }
.sei-ov-subhead { font-size: 9px; font-weight: 700; color: #5a6068; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.sei-ov-tl { display: flex; flex-direction: column; gap: 5px; }
.sei-ov-tlrow { display: flex; align-items: center; gap: 8px; font-size: 9px; color: #1a1d22; opacity: 0; transform: translateY(5px); animation: sei-point-in 420ms ease forwards; }
.sei-ov-tlrow .d { font-weight: 700; color: #9b6cd9; width: 34px; flex-shrink: 0; }
.sei-ov-tlrow .dotc { width: 7px; height: 7px; border-radius: 9999px; flex-shrink: 0; }
.sei-ov-tlrow .tt { color: #3a4048; }
.sei-overview { overflow-y: auto; }
.sei-ov-point {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 9px; line-height: 1.4; color: #1a1d22;
  opacity: 0; transform: translateY(5px);
  animation: sei-point-in 420ms ease forwards;
}
@keyframes sei-point-in { to { opacity: 1; transform: translateY(0); } }
.sei-ov-point .k { font-weight: 700; color: #102b4e; }
.sei-ov-point .dot {
  width: 5px; height: 5px; border-radius: 9999px; background: var(--stokhos-pink);
  margin-top: 4px; flex-shrink: 0;
}
.sei-ov-foot {
  margin-top: 10px; padding-top: 8px; border-top: 1px solid #eef0f2;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 9px; font-weight: 700; color: var(--stokhos-pink); cursor: pointer;
}
