/* =========================================================
   Argos — landing waitlist
   Tokens espelham os do app principal (frontend/index.css).
   ========================================================= */

:root {
  /* Brand */
  --brand-50:  hsl(175, 80%, 97%);
  --brand-100: hsl(175, 80%, 92%);
  --brand-200: hsl(175, 80%, 82%);
  --brand-300: hsl(175, 80%, 68%);
  --brand-400: hsl(175, 80%, 52%);
  --brand-500: hsl(175, 80%, 40%); /* #108074 — principal */
  --brand-600: hsl(175, 80%, 35%);
  --brand-700: hsl(175, 80%, 30%);
  --brand-800: hsl(175, 80%, 22%);
  --brand-900: hsl(175, 80%, 15%);

  /* Slate */
  --slate-50:  hsl(240, 5%, 98%);
  --slate-100: hsl(240, 5%, 96%);
  --slate-200: hsl(240, 5%, 90%);
  --slate-300: hsl(240, 5%, 84%);
  --slate-400: hsl(240, 5%, 65%);
  --slate-500: hsl(240, 5%, 46%);
  --slate-600: hsl(240, 5%, 34%);
  --slate-700: hsl(240, 5%, 27%);
  --slate-800: hsl(240, 5%, 15%);
  --slate-900: hsl(240, 5%, 10%);

  --ink: #111827;

  /* Tipografia */
  --font-sans: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", "Plus Jakarta Sans", ui-serif, Georgia, serif;

  /* Layout */
  --container-max: 1180px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Sombras tintadas (teal-ink, nunca preto puro) */
  --shadow-sm:
    0 1px 2px hsl(175 35% 12% / 0.06),
    0 1px 1px hsl(175 35% 12% / 0.04);
  --shadow-md:
    0 1px 2px hsl(175 35% 14% / 0.06),
    0 8px 24px -8px hsl(175 35% 14% / 0.12),
    0 3px 8px -3px hsl(175 35% 14% / 0.08);
  --shadow-lg:
    0 1px 2px hsl(175 35% 14% / 0.06),
    0 32px 80px -24px hsl(175 40% 16% / 0.22),
    0 12px 32px -12px hsl(175 40% 16% / 0.14);
  --shadow-glow:
    0 0 0 1px hsl(175 80% 50% / 0.08),
    0 32px 80px -24px hsl(175 60% 30% / 0.28),
    0 12px 32px -12px hsl(175 60% 30% / 0.18);
  --inset-light: inset 0 1px 0 hsl(0 0% 100% / 0.7);

  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset ligeiro ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate-900);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "kern";
  letter-spacing: -0.005em;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* ----- Util ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 1024px) {
  .container { padding-inline: 40px; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-700);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ----- Tipografia ----- */
.display {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw + 0.5rem, 4.2rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--slate-900);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.display em {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 800;
  color: var(--brand-700);
  letter-spacing: -0.04em;
}
.display-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 2.6vw + 0.8rem, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin: 0 0 0.9rem;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.2rem);
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0 0 2rem;
  max-width: 52ch;
  text-wrap: pretty;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--slate-600);
  max-width: 56ch;
  margin: 0 auto;
  text-wrap: pretty;
}
.kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 0.85rem;
}

.section-head {
  text-align: center;
  margin: 0 auto 3.5rem;
  max-width: 720px;
}

/* ----- Botões ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease-out), background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  text-align: center;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-200), 0 0 0 5px var(--brand-500);
}
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.875rem; }
.btn-lg { padding: 0.95rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-md), inset 0 1px 0 hsl(175 80% 60% / 0.4);
}
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--slate-900);
  border-color: var(--slate-200);
}
.btn-ghost:hover { background: var(--slate-50); border-color: var(--slate-300); }

.link-ghost {
  color: var(--slate-600);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-md);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.link-ghost:hover { color: var(--slate-900); background: var(--slate-50); }

/* ----- Header — Floating Island pattern -----
   .site-header é o wrapper full-width fixo. Sem background — só posicionamento.
   .header-inner é o "pill" visual que se descola das bordas quando scrolled.
*/
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  padding: 0;
  pointer-events: none;
  transition: padding 0.45s var(--ease-spring);
}
.site-header > * { pointer-events: auto; }
.site-header.is-scrolled { padding: 14px 0 0; }

/* Barra externa (glass full-width edge-to-edge) — vira pill quando scrolled */
.header-inner {
  height: 64px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin-inline: auto;
  background: hsl(0 0% 100% / 0.55);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border: 1px solid transparent;
  border-radius: 0;
  transition:
    max-width 0.5s var(--ease-spring),
    border-radius 0.5s var(--ease-spring),
    height 0.45s var(--ease-spring),
    background-color 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.5s var(--ease-spring);
}
/* Conteúdo (logo + CTA) — alinhado com o .container do resto da página */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .header-content { padding-inline: 40px; }
}

/* Pill mode quando scrolled — descolado das bordas, mesmo alinhamento do .container */
.site-header.is-scrolled .header-inner {
  height: 54px;
  max-width: var(--container-max);
  background: hsl(0 0% 100% / 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-color: hsl(175 20% 86% / 0.6);
  border-radius: 999px;
  box-shadow:
    0 1px 0 hsl(0 0% 100% / 0.7) inset,
    0 8px 24px -8px hsl(175 35% 14% / 0.12),
    0 2px 6px -2px hsl(175 35% 14% / 0.06);
}

/* Barra de progresso do scroll — agora dentro do pill, segue sua curvatura */
.header-inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform-origin: 0 0;
  transform: scaleX(var(--scroll-progress, 0));
  background: linear-gradient(90deg,
    var(--brand-500) 0%,
    var(--brand-400) 50%,
    var(--brand-500) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
.site-header.is-scrolled .header-inner::after { opacity: 1; }

/* Tick marks dentro do pill */
.scroll-ticks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.site-header.is-scrolled .scroll-ticks { opacity: 1; }
.scroll-tick {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 6px;
  background: var(--slate-300);
  border-radius: 1.5px;
  transform: translateX(-50%);
  transition: background-color 0.35s ease, transform 0.35s var(--ease-spring);
}
.scroll-tick.is-passed {
  background: var(--brand-700);
  transform: translateX(-50%) scale(1, 1.1);
}

.brand-mark {
  transition: transform 0.35s var(--ease-spring);
}
.site-header.is-scrolled .brand-mark { transform: scale(0.92); }

/* Brand group — agrupa logo + section beacon à esquerda */
.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 0 1 auto;
}

/* Section beacon — texto editorial mostrando a seção atual */
.section-beacon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.45s var(--ease-spring),
    transform 0.45s var(--ease-spring);
  pointer-events: none;
  min-width: 0;
  overflow: hidden;
}
.site-header.is-scrolled .section-beacon.has-section {
  opacity: 1;
  transform: translateX(0);
}
.beacon-sep {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--slate-300);
  user-select: none;
}
.beacon-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--slate-700);
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    opacity 0.22s ease,
    transform 0.22s var(--ease-spring),
    filter 0.22s ease;
}
.beacon-name.is-changing {
  opacity: 0;
  transform: translateY(-4px);
  filter: blur(2px);
}

/* C: CTA brightness/glow proportional to scroll progress */
.header-nav .btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      var(--brand-600),
      hsl(175 80% calc(40% + var(--scroll-progress, 0) * 9%))
    );
  transition: background 0.5s ease, transform 0.18s var(--ease-spring), box-shadow 0.3s ease;
}
.header-nav .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at 50% 120%,
    hsl(175 80% 75% / 0.6),
    transparent 60%
  );
  opacity: calc(var(--scroll-progress, 0) * 1.4);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Mobile: section beacon sai (header tight) */
@media (max-width: 640px) {
  .section-beacon { display: none; }
  .site-header.is-scrolled .header-inner {
    max-width: calc(100% - 24px);
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding: 6px 4px;
  border-radius: var(--radius-md);
}
.brand:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-200);
}
.brand-mark {
  display: inline-flex;
  color: var(--ink);
}
.brand-word { font-family: var(--font-sans); }
.header-nav { display: flex; align-items: center; gap: 0.8rem; }

/* Link discreto pra usuário já cadastrado fazer login */
.header-login {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--slate-500);
  font-weight: 400;
  padding: 0.35rem 0.2rem;
  border-radius: var(--radius-md);
  transition: color 0.18s ease;
  white-space: nowrap;
}
.header-login:hover { color: var(--slate-900); }
.header-login:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-200);
}
.header-login-prefix { color: var(--slate-500); }
.header-login-cta {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand-200);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.header-login:hover .header-login-cta {
  text-decoration-color: var(--brand-500);
}
@media (max-width: 640px) {
  /* Em mobile, esconde o prefixo pra economizar espaço — só "Entrar" */
  .header-login-prefix { display: none; }
  .header-login { font-size: 0.86rem; }
}

@media (max-width: 480px) {
  .header-nav .link-ghost { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: calc(64px + 5.5rem) 0 5.5rem;
  background: linear-gradient(180deg, var(--brand-50) 0%, #ffffff 78%);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero { padding: calc(64px + 7rem) 0 7rem; }
}

.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.orb-a {
  width: 520px; height: 520px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, var(--brand-300), transparent 65%);
  animation: drift-a 22s var(--ease-out) infinite alternate;
}
.orb-b {
  width: 460px; height: 460px;
  bottom: -180px; right: -100px;
  background: radial-gradient(circle, var(--brand-500), transparent 60%);
  opacity: 0.32;
  animation: drift-b 26s var(--ease-out) infinite alternate;
}
.orb-c {
  width: 600px; height: 600px;
  top: -120px; right: -180px;
  background: radial-gradient(circle, var(--brand-200), transparent 60%);
  opacity: 0.5;
  filter: blur(100px);
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, 30px, 0) scale(1.08); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-30px, -40px, 0) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand-800);
  background: hsl(0 0% 100% / 0.6);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px hsl(175 80% 40% / 0.18);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--slate-700);
  background: hsl(0 0% 100% / 0.7);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-chips li svg { color: var(--brand-600); flex-shrink: 0; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--slate-600);
  margin: 0;
}
.hero-proof strong { color: var(--slate-900); font-weight: 600; }

/* Microline abaixo dos CTAs: info contextual sem peso visual */
.hero-microline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: -0.6rem 0 1.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate-500);
}
.hero-microline .micro-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px hsl(175 80% 40% / 0.18);
}
.avatars { display: inline-flex; }
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-right: -8px;
  background-size: cover;
}
.avatar.a1 { background: linear-gradient(135deg, var(--brand-400), var(--brand-700)); }
.avatar.a2 { background: linear-gradient(135deg, hsl(200 70% 60%), hsl(220 60% 38%)); }
.avatar.a3 { background: linear-gradient(135deg, hsl(30 60% 70%), hsl(20 50% 45%)); }

/* ----- Mock-up do produto ----- */
.hero-mock {
  position: relative;
}
/* Wrapper que isola o mock-window + suas floating-pills, pra que os pips
   fiquem fora desse contexto de posicionamento — assim a pill não invade
   o espaço dos pips. */
.mock-window-wrap {
  position: relative;
  perspective: 1600px;
}
.mock-window {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(3deg) translateZ(0);
  transform-origin: center center;
  animation: mock-float 9s var(--ease-out) infinite alternate;
}
@media (min-width: 1024px) {
  .mock-window {
    transform: rotateY(-8deg) rotateX(4deg);
  }
}
@keyframes mock-float {
  from { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
  to   { transform: rotateY(-6deg) rotateX(3deg) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .mock-window { animation: none !important; transform: none; }
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.65rem 0.9rem;
}
.mock-chrome .dot-r,
.mock-chrome .dot-y,
.mock-chrome .dot-g {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--slate-300);
  border: 1px solid var(--slate-200);
}
.mock-url {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--slate-500);
  background: #fff;
  border: 1px solid var(--slate-200);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}

.mock-body { padding: 1.25rem 1.25rem 1.4rem; }

/* Stack de mocks (intimações ⇄ financeiro ⇄ etc) — empilhados em grid */
.mock-stack {
  display: grid;
}
.mock-stack > .mock-body {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  transition:
    opacity 850ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 850ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 600ms ease-out;
  transform-origin: center 30%;
}
/* Tab-content visível estica pra preencher a altura disponível do mock-body.
   Exclui .mock-kanban porque ele JÁ é display:grid e não pode virar flex-column. */
.mock-stack > .mock-body > [data-tab-content]:not([hidden]):not(.mock-kanban) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* mock-kanban se estica via grid item (align-self:stretch é default) — não precisa virar flex. */
.mock-stack > .mock-body > .mock-kanban:not([hidden]) {
  align-self: stretch;
}
.mock-stack > .mock-body:not(.is-active) {
  opacity: 0;
  transform: translateY(26px) scale(0.93);
  filter: blur(14px);
  pointer-events: none;
  /* permitem o item ativo dominar a altura */
  visibility: hidden;
}
.mock-stack > .mock-body.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  visibility: visible;
}

/* Stagger interno: filhos do mock ativo aparecem em waterfall a cada ativação */
.mock-stack > .mock-body.is-active .mock-top,
.mock-stack > .mock-body.is-active [data-tab-content]:not([hidden]) > *,
.mock-stack > .mock-body.is-active .feed-item,
.mock-stack > .mock-body.is-active .kpi,
.mock-stack > .mock-body.is-active .week-col,
.mock-stack > .mock-body.is-active .cal-event,
.mock-stack > .mock-body.is-active .dash-event,
.mock-stack > .mock-body.is-active .kanban-col,
.mock-stack > .mock-body.is-active .tasklist-row,
.mock-stack > .mock-body.is-active .timeline-item,
.mock-stack > .mock-body.is-active .month-day {
  animation: mock-child-in 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mock-stack > .mock-body.is-active .mock-top { animation-delay: 60ms; }

/* Cascata por nth-child nos containers comuns */
.mock-stack > .mock-body.is-active .mock-feed .feed-item:nth-child(1),
.mock-stack > .mock-body.is-active .mock-kpis .kpi:nth-child(1),
.mock-stack > .mock-body.is-active .mock-week .week-col:nth-child(1),
.mock-stack > .mock-body.is-active .dash-agenda .dash-event:nth-child(1),
.mock-stack > .mock-body.is-active .kanban-col:nth-child(1),
.mock-stack > .mock-body.is-active .mock-tasklist .tasklist-row:nth-child(1),
.mock-stack > .mock-body.is-active .timeline-item:nth-child(1) { animation-delay: 160ms; }

.mock-stack > .mock-body.is-active .mock-feed .feed-item:nth-child(2),
.mock-stack > .mock-body.is-active .mock-kpis .kpi:nth-child(2),
.mock-stack > .mock-body.is-active .dash-agenda .dash-event:nth-child(2),
.mock-stack > .mock-body.is-active .kanban-col:nth-child(2),
.mock-stack > .mock-body.is-active .mock-tasklist .tasklist-row:nth-child(2),
.mock-stack > .mock-body.is-active .timeline-item:nth-child(2) { animation-delay: 240ms; }

.mock-stack > .mock-body.is-active .mock-feed .feed-item:nth-child(3),
.mock-stack > .mock-body.is-active .mock-kpis .kpi:nth-child(3),
.mock-stack > .mock-body.is-active .dash-agenda .dash-event:nth-child(3),
.mock-stack > .mock-body.is-active .kanban-col:nth-child(3),
.mock-stack > .mock-body.is-active .mock-tasklist .tasklist-row:nth-child(3),
.mock-stack > .mock-body.is-active .timeline-item:nth-child(3) { animation-delay: 320ms; }

.mock-stack > .mock-body.is-active .mock-feed .feed-item:nth-child(4),
.mock-stack > .mock-body.is-active .mock-kpis .kpi:nth-child(4),
.mock-stack > .mock-body.is-active .mock-tasklist .tasklist-row:nth-child(4),
.mock-stack > .mock-body.is-active .timeline-item:nth-child(4) { animation-delay: 400ms; }

@keyframes mock-child-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sem stagger quando o mock está inativo — reseta pra próxima ativação */
.mock-stack > .mock-body:not(.is-active) .mock-top,
.mock-stack > .mock-body:not(.is-active) .feed-item,
.mock-stack > .mock-body:not(.is-active) .kpi,
.mock-stack > .mock-body:not(.is-active) .cal-event,
.mock-stack > .mock-body:not(.is-active) .week-col,
.mock-stack > .mock-body:not(.is-active) .dash-event,
.mock-stack > .mock-body:not(.is-active) .kanban-col,
.mock-stack > .mock-body:not(.is-active) .tasklist-row,
.mock-stack > .mock-body:not(.is-active) .timeline-item,
.mock-stack > .mock-body:not(.is-active) .month-day {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .mock-stack > .mock-body {
    transition: opacity 0.25s ease;
    transform: none;
    filter: none;
  }
  .mock-stack > .mock-body.is-active * { animation: none !important; }
}
.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.mock-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--brand-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mock-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--slate-900);
  margin-top: 0.2rem;
  letter-spacing: -0.015em;
}
/* Tabs (não-lidas / todas) */
.mock-tabs {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 3px;
  border-radius: var(--radius-pill);
}
.mock-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--slate-600);
  padding: 0.28rem 0.6rem;
  border: 0;
  background: transparent;
  font-family: inherit;
  border-radius: var(--radius-pill);
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
button.mock-tab { cursor: pointer; }
button.mock-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand-200);
}
.mock-tab.is-active {
  background: #fff;
  color: var(--slate-900);
  font-weight: 600;
  box-shadow:
    0 1px 2px hsl(175 30% 14% / 0.06),
    var(--inset-light);
}
.tab-count {
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--brand-500);
  color: #fff;
  padding: 0.05rem 0.35rem;
  border-radius: var(--radius-pill);
  min-width: 16px;
  text-align: center;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* Feed de intimações */
.mock-feed {
  margin-top: 0.25rem;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--slate-100);
  position: relative;
  transition: background-color 0.2s ease;
  opacity: 0;
  transform: translateY(8px);
  animation: feed-in 700ms var(--ease-spring) forwards;
}
.feed-item:nth-child(1) { animation-delay: 200ms; }
.feed-item:nth-child(2) { animation-delay: 320ms; }
.feed-item:nth-child(3) { animation-delay: 440ms; }
.feed-item:last-child { border-bottom: none; }

.feed-item.is-unread {
  background: hsl(175 80% 97% / 0.4);
}
.feed-item.is-unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand-500);
}
.feed-item:not(.is-unread) .feed-body { opacity: 0.62; }

@keyframes feed-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .feed-item { opacity: 1; transform: none; animation: none; }
}

.feed-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px hsl(175 80% 40% / 0.15);
  animation: feed-pulse 2.2s ease-out infinite;
}
@keyframes feed-pulse {
  0%, 100% { box-shadow: 0 0 0 4px hsl(175 80% 40% / 0.15); }
  50%      { box-shadow: 0 0 0 6px hsl(175 80% 40% / 0.06); }
}
@media (prefers-reduced-motion: reduce) {
  .feed-dot { animation: none; }
}

.feed-body { flex: 1; min-width: 0; }

.feed-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.32rem;
  font-size: 0.7rem;
  flex-wrap: wrap;
}
.feed-tag {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-size: 0.62rem;
}
.feed-process {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--slate-700);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.feed-date {
  margin-left: auto;
  color: var(--slate-500);
  font-size: 0.68rem;
}
.feed-text {
  font-size: 0.78rem;
  color: var(--slate-700);
  margin: 0 0 0.5rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  flex-wrap: wrap;
}
.feed-client {
  color: var(--slate-800);
  font-weight: 500;
}
.feed-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--slate-600);
  background: var(--slate-100);
  padding: 0.18rem 0.45rem;
  border-radius: var(--radius-pill);
}
.feed-badge.urgent {
  color: hsl(0 70% 40%);
  background: hsl(0 90% 97%);
  border: 1px solid hsl(0 80% 92%);
  font-weight: 600;
}
.feed-badge.urgent svg {
  animation: badge-pulse 2s ease-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .feed-badge.urgent svg { animation: none; }
}

/* ---------- Mock Financeiro: KPIs + transações ---------- */
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.15rem;
  margin-bottom: 0.85rem;
}
.kpi {
  padding: 0.7rem 0.75rem;
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  box-shadow: var(--shadow-sm);
}
.kpi.is-alert {
  border-color: hsl(0 80% 92%);
  background: hsl(0 90% 99%);
}
.kpi-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}
.kpi-value {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.kpi.is-alert .kpi-value { color: hsl(0 70% 38%); }
.kpi-trend {
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--slate-500);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.kpi-trend.up { color: hsl(160 65% 32%); }
.kpi-trend.down {
  color: hsl(0 70% 42%);
}
.kpi-trend.down svg { transform: rotate(180deg); }

/* Mini chart inline em KPIs */
.kpi-chart {
  display: block;
  margin-top: 0.45rem;
  height: 24px;
  width: 100%;
}
.kpi-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* Animação de "desenho" quando o mock financeiro fica ativo */
.kpi-chart svg path[fill="none"] {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
[data-mock-view="financeiro"].is-active .kpi-chart svg path[fill="none"] {
  animation: chart-draw 1.4s var(--ease-spring) 250ms forwards;
}
[data-mock-view="financeiro"].is-active .kpi-chart svg circle,
[data-mock-view="financeiro"].is-active .kpi-chart svg rect {
  opacity: 0;
  animation: chart-fade 0.5s var(--ease-spring) 1.4s forwards;
}
[data-mock-view="financeiro"].is-active .kpi-chart svg rect:nth-child(1) { animation-delay: 0.2s; }
[data-mock-view="financeiro"].is-active .kpi-chart svg rect:nth-child(2) { animation-delay: 0.3s; }
[data-mock-view="financeiro"].is-active .kpi-chart svg rect:nth-child(3) { animation-delay: 0.4s; }
[data-mock-view="financeiro"].is-active .kpi-chart svg rect:nth-child(4) { animation-delay: 0.5s; }
[data-mock-view="financeiro"].is-active .kpi-chart svg rect:nth-child(5) { animation-delay: 0.6s; }
[data-mock-view="financeiro"].is-active .kpi-chart svg rect:nth-child(6) { animation-delay: 0.7s; }
@keyframes chart-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes chart-fade {
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .kpi-chart svg path[fill="none"] { stroke-dashoffset: 0; }
  .kpi-chart svg circle,
  .kpi-chart svg rect { opacity: 1; animation: none; }
}

/* Status icons (paid/pending/overdue) */
.feed-status {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feed-status.paid {
  background: hsl(160 55% 92%);
  color: hsl(160 65% 28%);
  border: 1px solid hsl(160 50% 82%);
}
.feed-status.pending {
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
}
.feed-status.overdue {
  background: hsl(0 90% 96%);
  color: hsl(0 70% 42%);
  border: 1px solid hsl(0 80% 90%);
  animation: feed-pulse 2.2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .feed-status.overdue { animation: none; }
}

/* Variações do feed-head pro financeiro */
.feed-tag-soft {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-600);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
}
.feed-desc {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate-800);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-amount {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}
.feed-amount.paid { color: hsl(160 65% 28%); }
.feed-amount.overdue { color: hsl(0 70% 42%); }

.feed-date-soft {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--slate-500);
}
.feed-date-soft.overdue { color: hsl(0 70% 42%); font-weight: 500; }
.feed-item.is-overdue { background: hsl(0 90% 99%); }
.feed-item.is-overdue::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: hsl(0 70% 55%);
}

/* ---------- Mock Agenda: semana + grid de eventos ---------- */
.mock-week {
  display: grid;
  grid-template-columns: 36px repeat(5, 1fr);
  gap: 2px;
  margin-bottom: 0.55rem;
}
.mock-week::before {
  /* spacer alinhado com a coluna de horas */
  content: "";
}
.week-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.32rem 0;
  border-radius: 6px;
}
.week-col.is-today {
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
}
.week-day {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--slate-500);
}
.week-col.is-today .week-day { color: var(--brand-700); }
.week-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.week-col.is-today .week-num { color: var(--brand-700); }

.mock-cal {
  display: grid;
  grid-template-columns: 36px 1fr;
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cal-hours {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  border-right: 1px solid var(--slate-100);
  padding: 6px 0;
}
.cal-hours span {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--slate-400);
  text-align: center;
  letter-spacing: 0.02em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
}
.cal-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 56px);
  padding: 4px;
  background-image:
    repeating-linear-gradient(to right,
      transparent 0,
      transparent calc((100% - 8px) / 5 - 1px),
      var(--slate-100) calc((100% - 8px) / 5 - 1px),
      var(--slate-100) calc((100% - 8px) / 5));
  background-position: 4px 0;
  background-size: calc(100% - 8px) 100%;
  background-repeat: no-repeat;
}
.cal-grid::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(to bottom,
    transparent 0,
    transparent calc((100% / 4) - 1px),
    var(--slate-100) calc((100% / 4) - 1px),
    var(--slate-100) calc(100% / 4));
  pointer-events: none;
}

.cal-event {
  grid-column: var(--col);
  grid-row: var(--row) / span var(--span, 1);
  margin: 3px;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.62rem;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  border: 1px solid;
  z-index: 1;
}
.cal-event.audiencia {
  background: var(--brand-50);
  border-color: var(--brand-200);
}
.cal-event.prazo {
  background: hsl(0 90% 97%);
  border-color: hsl(0 80% 90%);
}
.cal-event.reuniao {
  background: var(--slate-100);
  border-color: var(--slate-200);
}
.event-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-600);
}
.cal-event.audiencia .event-label { color: var(--brand-700); }
.cal-event.prazo .event-label { color: hsl(0 70% 42%); }
.event-google {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  color: var(--slate-700);
  font-size: 0.55rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  font-family: var(--font-sans);
}
.event-title {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.005em;
}
.cal-event.audiencia .event-title { color: var(--brand-900); }
.cal-event.prazo .event-title { color: hsl(0 70% 28%); }
.event-meta {
  font-size: 0.55rem;
  color: var(--slate-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-cal-footer {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.7rem;
  color: var(--slate-600);
}
.mock-cal-footer strong {
  color: var(--slate-900);
  font-weight: 600;
}

/* Mês view (calendar grid 7×5) */
.mock-month {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-sm);
}
.month-grid-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.35rem;
  padding: 0 2px;
}
.month-grid-head span {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  text-align: center;
  text-transform: uppercase;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.month-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--slate-700);
  border-radius: 5px;
  background: hsl(175 20% 98%);
  font-variant-numeric: tabular-nums;
  gap: 2px;
  padding: 2px 0;
}
.month-day.muted { color: var(--slate-300); background: transparent; }
.month-day.today {
  background: var(--brand-500);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--inset-light);
}
.month-day.has-events {
  background: #fff;
  border: 1px solid var(--slate-200);
  font-weight: 600;
}
.month-day.today.has-events { border-color: var(--brand-600); }
.day-num { line-height: 1; }
.day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  display: inline-block;
}
.day-dot.brand { background: var(--brand-500); }
.day-dot.rose { background: hsl(0 70% 55%); }
.month-day .day-dot + .day-dot { margin-left: -1px; }
.month-day.today .day-dot.brand { background: #fff; }
.month-day.today .day-dot.rose { background: hsl(0 80% 88%); }

.month-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.6rem;
  font-size: 0.65rem;
  color: var(--slate-600);
}

/* Timeline cheia (Movimentações view) — mais densa, sem o painel IA */
.proc-timeline-full {
  max-height: none;
}
.proc-timeline-full .timeline-item {
  padding-bottom: 0.45rem;
}
.proc-timeline-full .timeline-item:not(:last-child) {
  margin-bottom: 0.45rem;
}

/* Mobile: agenda fica apertada — simplifica */
@media (max-width: 480px) {
  .cal-grid { grid-template-rows: repeat(4, 48px); }
  .event-meta { display: none; }
}

/* ---------- Mock Processo + IA ---------- */
.proc-cnj {
  font-family: var(--font-sans) !important;
  font-size: 1.02rem !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em !important;
}
.proc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.7rem;
  color: var(--slate-700);
  padding: 0.55rem 0.7rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
}
.proc-meta-item strong {
  display: inline-block;
  color: var(--slate-500);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 0.35rem;
}

.mock-process-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0.65rem;
}
@media (max-width: 520px) {
  .mock-process-grid { grid-template-columns: 1fr; }
}

.proc-timeline {
  padding: 0.65rem 0.7rem;
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
}
.proc-section-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: 0 0 0.65rem;
}
.timeline-item {
  display: flex;
  gap: 0.55rem;
  padding-bottom: 0.55rem;
  position: relative;
}
.timeline-item:not(:last-child) {
  border-bottom: 1px dashed var(--slate-100);
  margin-bottom: 0.55rem;
}
.timeline-item.is-muted { opacity: 0.5; }
.timeline-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px hsl(175 80% 40% / 0.14);
}
.timeline-item.is-muted .timeline-dot {
  background: var(--slate-300);
  box-shadow: none;
}
.timeline-content { flex: 1; min-width: 0; }
.timeline-date {
  font-size: 0.62rem;
  color: var(--slate-500);
  display: block;
  margin-bottom: 0.18rem;
}
.timeline-text {
  font-size: 0.72rem;
  color: var(--slate-800);
  line-height: 1.4;
  margin: 0;
}

.proc-ai {
  padding: 0.8rem 0.85rem;
  background: linear-gradient(135deg, hsl(175 30% 96%), hsl(175 35% 92%));
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm), var(--inset-light);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.proc-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 110% -10%, hsl(175 80% 60% / 0.22), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.proc-ai > * { position: relative; z-index: 1; }
.ai-header {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-700);
  margin-bottom: 0.5rem;
}
.ai-header svg {
  animation: ai-sparkle 2.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes ai-sparkle {
  0%, 100% { transform: rotate(0) scale(1); opacity: 1; }
  50%      { transform: rotate(14deg) scale(1.1); opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-header svg { animation: none; }
}
.ai-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ai-suggestion-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--slate-900);
  margin: 0 0 0.35rem;
}
.ai-text {
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--slate-700);
  margin: 0 0 0.7rem;
}
.ai-actions {
  display: flex;
  gap: 0.4rem;
}
.ai-btn {
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.34rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ai-btn.primary {
  background: var(--brand-600);
  color: #fff;
  border: 1px solid var(--brand-700);
  box-shadow: inset 0 1px 0 hsl(175 80% 60% / 0.4);
}
.ai-btn.primary:hover { background: var(--brand-700); }
.ai-btn.ghost {
  background: #fff;
  color: var(--brand-700);
  border: 1px solid var(--brand-200);
}
.ai-btn.ghost:hover { background: var(--brand-50); }

/* ---------- Mock Dashboard: greeting editorial + KPIs + Publicações ---------- */
.dash-top {
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.dash-greeting-block {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.dash-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.dash-greeting {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.2rem, 1.4vw + 0.9rem, 1.7rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--slate-900);
  margin: 0.1rem 0 0.22rem;
  font-variation-settings: "opsz" 144;
}
.dash-greeting em {
  font-style: italic;
  color: var(--brand-700);
}
.dash-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.dash-rule {
  width: 18px;
  height: 1px;
  background: var(--brand-500);
}

.dash-kpis {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}
.dash-kpis .kpi {
  padding: 0.55rem 0.6rem;
  gap: 0.12rem;
}
.dash-kpis .kpi-value {
  font-size: 1rem;
}
.dash-kpis .kpi-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.dash-kpis .kpi-trend {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kpi-value.emphasis { color: var(--brand-700); }

/* KPI dashboard: head com label + ícone, foot com valor + trend */
.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}
.kpi-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-icon.icon-warning {
  background: hsl(38 90% 96%);
  color: hsl(38 70% 35%);
  border-color: hsl(38 80% 88%);
}
.kpi-foot {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.kpi-trend.alert {
  color: hsl(0 70% 45%) !important;
  font-weight: 700 !important;
}
.kpi-trend.warning {
  color: hsl(38 75% 38%) !important;
  font-weight: 700 !important;
}

/* Card de Publicação (replaces "Hoje na agenda") */
.dash-pub-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}
.dash-pub-section-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-pub-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-900);
  margin: 0;
  letter-spacing: -0.005em;
}
.dash-pub-sub {
  font-size: 0.65rem;
  color: var(--slate-500);
  margin: 0;
}

.dash-pub {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  background: hsl(175 25% 98%);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  border-left: 2px solid var(--brand-500);
}
.dash-pub-bell {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.dash-pub-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.dash-pub-case {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--slate-900);
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.dash-pub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  color: var(--slate-600);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.dash-pub-process {
  color: var(--slate-700);
  font-weight: 500;
}
.dash-pub-sep { color: var(--slate-400); }
.dash-pub-court {
  color: var(--slate-700);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.dash-pub-vinculo {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: hsl(160 65% 32%);
  font-weight: 600;
}
.dash-pub-vinculo::before {
  content: "•";
  color: var(--slate-400);
  margin-right: 0.15rem;
}
.dash-pub-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}
.dash-pub-date {
  font-size: 0.6rem;
  color: var(--slate-500);
  font-variant-numeric: tabular-nums;
}
.dash-pub-pill {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(0 70% 38%);
  background: hsl(0 90% 97%);
  border: 1px solid hsl(0 75% 90%);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-pill);
}

/* Fluxo de Caixa — mini chart com área + linha sólida + linha tracejada (projeção) */
.dash-cashflow {
  margin-top: 0.55rem;
}
.dash-cashflow-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.dash-cashflow-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-900);
  margin: 0;
  letter-spacing: -0.005em;
}
.dash-cashflow-sub {
  font-size: 0.62rem;
  color: var(--slate-500);
  margin: 0;
}
.dash-cashflow-period {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-700);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 0.22rem 0.5rem 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
}
.dash-cashflow-period svg { color: var(--slate-500); }
.dash-cashflow-body {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.dash-cashflow-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--slate-400);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-align: right;
  width: 22px;
  flex-shrink: 0;
  padding: 2px 0;
}
.dash-cashflow-chart {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.dash-cashflow-chart svg {
  display: block;
  width: 100%;
  height: 56px;
  overflow: visible;
}
.dash-cashflow-legend {
  display: flex;
  gap: 0.8rem;
  font-size: 0.6rem;
  color: var(--slate-600);
}
.dash-cashflow-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 0;
  border-top: 1.5px solid var(--brand-500);
}
.legend-swatch.dashed {
  border-top-style: dashed;
  opacity: 0.6;
}

/* Anima o desenho da linha quando dashboard fica ativo */
[data-mock-view="dashboard"].is-active .dash-cashflow-chart svg path[fill="none"] {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: cf-draw 1.4s var(--ease-spring) 350ms forwards;
}
[data-mock-view="dashboard"].is-active .dash-cashflow-chart svg path[fill="none"]:nth-of-type(2) {
  animation-delay: 950ms;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
[data-mock-view="dashboard"].is-active .dash-cashflow-chart svg circle {
  opacity: 0;
  animation: cf-dot-in 0.4s ease-out 1.3s forwards;
}
@keyframes cf-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes cf-dot-in {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  [data-mock-view="dashboard"].is-active .dash-cashflow-chart svg path[fill="none"] {
    stroke-dashoffset: 0;
    animation: none;
  }
  [data-mock-view="dashboard"].is-active .dash-cashflow-chart svg circle {
    opacity: 1;
    animation: none;
  }
}

.dash-section {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow-sm);
}
.dash-agenda {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.dash-event {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.event-time {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-600);
  font-variant-numeric: tabular-nums;
  width: 38px;
  flex-shrink: 0;
}
.event-color {
  width: 3px;
  height: 26px;
  border-radius: 2px;
  flex-shrink: 0;
}
.event-color.audiencia { background: var(--brand-500); }
.event-color.prazo { background: hsl(0 70% 55%); }
.dash-event-body { flex: 1; min-width: 0; line-height: 1.3; }
.event-name {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--slate-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-loc {
  font-size: 0.66rem;
  color: var(--slate-600);
}

@media (max-width: 480px) {
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* O atributo [hidden] tem que vencer qualquer display: grid/flex/etc
   declarado pelas classes dos blocos togglados via tabs. */
[hidden] { display: none !important; }

/* ---------- Mock Tarefas: quadro sóbrio (não-startup) ---------- */
.mock-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.35rem;
  flex: 1;
  min-height: 0;
}
.kanban-col {
  background: hsl(175 20% 97%);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.5rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  padding: 0 0.15rem;
}
.kanban-col-title {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-600);
}
.kanban-col-count {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--slate-500);
  background: #fff;
  border: 1px solid var(--slate-200);
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-pill);
  min-width: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
/* Frame: estica via flex pra preencher o col, define o "viewport"
   da área scrollable sem que o conteúdo dos cards conte pra altura
   natural do col (que entraria no cálculo da grid row do mock-stack). */
.kanban-cards-frame {
  position: relative;
  flex: 1;
  min-height: 0;
}
.kanban-cards {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-300) transparent;
  scroll-behavior: smooth;
}
.kanban-cards::-webkit-scrollbar { width: 4px; }
.kanban-cards::-webkit-scrollbar-track { background: transparent; }
.kanban-cards::-webkit-scrollbar-thumb {
  background: var(--brand-300);
  border-radius: 2px;
}
.kanban-cards::-webkit-scrollbar-thumb:hover {
  background: var(--brand-500);
}
.kanban-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s var(--ease-spring),
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    border-color 0.18s ease;
}
.kanban-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.kanban-card.is-urgent { border-color: hsl(0 75% 90%); }
.kanban-card.is-done { opacity: 0.65; }

/* Cursor de arrastar */
.kanban-card[draggable="true"] { cursor: grab; }
.kanban-card[draggable="true"]:active { cursor: grabbing; }

/* Estado durante drag */
.kanban-card.is-dragging {
  opacity: 0.45;
  transform: scale(0.96);
  cursor: grabbing;
  box-shadow: 0 24px 60px -20px hsl(175 30% 12% / 0.35);
}

/* Coluna recebendo drop */
.kanban-col.is-drop-target {
  background: hsl(175 40% 95%);
  border-color: var(--brand-400);
  box-shadow: 0 0 0 2px var(--brand-200) inset;
}
.kanban-col.is-drop-target .kanban-col-title { color: var(--brand-700); }
.kanban-col {
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.kanban-card.is-done .kanban-card-title {
  text-decoration: line-through;
  color: var(--slate-500);
}
.kanban-card-prio {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate-300);
}
.kanban-card-prio.urgent { background: hsl(0 75% 55%); }
.kanban-card-prio.medium { background: hsl(35 85% 55%); }
.kanban-card-prio.low { background: hsl(220 12% 70%); }
.kanban-card-prio.active { background: var(--brand-500); }
.kanban-card-prio.done {
  background: hsl(160 50% 90%);
  color: hsl(160 65% 28%);
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: 7px;
  right: 7px;
}
.kanban-card-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-900);
  letter-spacing: -0.005em;
  padding-right: 16px;
  line-height: 1.3;
}
.kanban-card-meta {
  font-size: 0.62rem;
  color: var(--slate-600);
}
.kanban-card-due {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 0.22rem;
  display: inline-block;
  padding: 0.12rem 0.42rem;
  border-radius: var(--radius-pill);
  background: var(--slate-100);
  color: var(--slate-700);
  width: fit-content;
}
.kanban-card-due.urgent {
  background: hsl(0 90% 96%);
  color: hsl(0 70% 38%);
}
.kanban-card-due.brand {
  background: var(--brand-50);
  color: var(--brand-700);
}

/* Mobile: kanban mantém 3 colunas mas vira scroll horizontal com snap
   (em vez de empilhar vertical, que descaracteriza o kanban) */
@media (max-width: 520px) {
  .mock-kanban {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .mock-kanban::-webkit-scrollbar { display: none; }
  .kanban-col {
    min-width: 140px;
    min-height: auto;
    scroll-snap-align: start;
  }
}

/* ---------- Mock Tarefas: visão Lista ---------- */
.mock-tasklist {
  margin-top: 0.35rem;
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tasklist-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--slate-100);
  transition: background-color 0.18s ease;
}
.tasklist-row:last-child { border-bottom: none; }
.tasklist-row:hover { background: var(--slate-50); }
.tasklist-row.is-done { opacity: 0.62; }
.tasklist-row.is-done .tasklist-title {
  text-decoration: line-through;
  color: var(--slate-500);
}

.tasklist-prio {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate-300);
}
.tasklist-prio.urgent { background: hsl(0 75% 55%); }
.tasklist-prio.medium { background: hsl(35 85% 55%); }
.tasklist-prio.active { background: var(--brand-500); }
.tasklist-prio.done {
  background: hsl(160 50% 90%);
  color: hsl(160 65% 28%);
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tasklist-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.3;
}
.tasklist-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-900);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tasklist-meta {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tasklist-status {
  flex-shrink: 0;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}
.tasklist-status.afazer {
  background: var(--slate-100);
  color: var(--slate-700);
  border-color: var(--slate-200);
}
.tasklist-status.andamento {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: var(--brand-200);
}
.tasklist-status.concluido {
  background: hsl(160 60% 95%);
  color: hsl(160 65% 28%);
  border-color: hsl(160 50% 86%);
}

.tasklist-due {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--slate-500);
  font-variant-numeric: tabular-nums;
  min-width: 56px;
  text-align: right;
}
.tasklist-due.urgent { color: hsl(0 70% 42%); }
.tasklist-due.brand { color: var(--brand-700); }

@media (max-width: 480px) {
  /* Em mobile, esconde o status pill (informação já está no dot de prio) */
  .tasklist-status { display: none; }
  .tasklist-row { gap: 0.55rem; padding: 0.55rem 0.7rem; }
  .tasklist-title { font-size: 0.74rem; }
}

.floating-pill {
  position: absolute;
  bottom: -18px;
  left: -18px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-800);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-12px, 12px) scale(0.92);
  transition:
    opacity 600ms var(--ease-spring),
    transform 600ms var(--ease-spring);
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
}
.floating-pill.is-active {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  animation: float-pill 6s ease-in-out infinite 500ms;
}
.floating-pill svg { color: var(--brand-600); }

/* Posições alternativas — origem direcional muda conforme o canto */
.floating-pill.pos-tl {
  bottom: auto;
  right: auto;
  top: -16px;
  left: -16px;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  transform: translate(-12px, -12px) scale(0.92);
}
.floating-pill.pos-tl.is-active { transform: translate(0, 0) scale(1); }

.floating-pill.pos-tr {
  bottom: auto;
  left: auto;
  top: -16px;
  right: -16px;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  transform: translate(12px, -12px) scale(0.92);
}
.floating-pill.pos-tr.is-active { transform: translate(0, 0) scale(1); }

.floating-pill.pos-br {
  bottom: -18px;
  left: auto;
  right: -16px;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  transform: translate(12px, 12px) scale(0.92);
}
.floating-pill.pos-br.is-active { transform: translate(0, 0) scale(1); }

/* Variantes de cor */
.floating-pill.is-success {
  border-color: hsl(160 45% 80%);
  color: hsl(160 60% 22%);
  background: hsl(160 60% 99%);
}
.floating-pill.is-success svg { color: hsl(160 65% 32%); }

.floating-pill.is-urgent {
  border-color: hsl(0 75% 88%);
  color: hsl(0 70% 32%);
  background: hsl(0 90% 99%);
}
.floating-pill.is-urgent svg { color: hsl(0 70% 45%); }

.floating-pill.is-counter {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-700);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 hsl(175 80% 60% / 0.4);
}
.floating-pill.is-counter svg,
.floating-pill.is-counter .pill-dot { color: #fff; }

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}
.pill-dot.pulse {
  animation: pill-dot-pulse 1.7s ease-out infinite;
}
@keyframes pill-dot-pulse {
  0%   { box-shadow: 0 0 0 0   currentColor; }
  70%  { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0   transparent; }
}

@keyframes float-pill {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(0, -6px) scale(1); }
}
@keyframes float-pill-up {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(0, 4px) scale(1); }
}

/* Stagger das float animations para evitar sincronia */
.floating-pill.is-active.pos-tl {
  animation: float-pill-up 6s ease-in-out infinite 900ms;
}
.floating-pill.is-active.pos-tr {
  animation: float-pill-up 6s ease-in-out infinite 1700ms;
}
.floating-pill.is-active.pos-br {
  animation: float-pill 6s ease-in-out infinite 3100ms;
}

@media (prefers-reduced-motion: reduce) {
  .floating-pill.is-active,
  .floating-pill.is-active.pos-tr,
  .floating-pill.is-active.pos-br { animation: none; }
  .pill-dot.pulse { animation: none; }
}

/* Mobile: mantém só a pill principal pra não poluir */
@media (max-width: 640px) {
  .floating-pill { left: 50%; transform: translate(-50%, 8px); bottom: -22px; right: auto; top: auto; }
  .floating-pill.is-active { transform: translate(-50%, 0); }
  .floating-pill.pos-tr,
  .floating-pill.pos-br { display: none; }
}

/* Pips de troca entre mocks — quebra em múltiplas linhas em telas estreitas */
.mock-pips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 0.35rem;
  column-gap: 0.3rem;
  margin: 3rem auto 0;  /* clearance pra pill flutuante não bater nos pips */
  padding: 0.4rem 0.5rem;
  background: hsl(175 25% 96% / 0.6);
  border: 1px solid hsl(175 22% 90% / 0.8);
  border-radius: var(--radius-lg);
  width: fit-content;
  max-width: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
}
.mock-pip {
  white-space: nowrap;
}
/* Em viewport amplo, mantém todos os pips numa linha só com pill perfeito */
@media (min-width: 768px) {
  .mock-pips {
    flex-wrap: nowrap;
    border-radius: var(--radius-pill);
    padding: 0.35rem;
    column-gap: 0.3rem;
  }
}
.mock-pip {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate-600);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}
.mock-pip:hover { color: var(--slate-900); }
.mock-pip.is-active {
  background: #fff;
  color: var(--slate-900);
  font-weight: 600;
  box-shadow:
    0 1px 2px hsl(175 30% 14% / 0.08),
    var(--inset-light);
}
.mock-pip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-200);
}

/* ============================================================
   TRUST
   ============================================================ */
.trust {
  padding: 3rem 0 3.5rem;
  background: #fff;
  border-bottom: 1px solid var(--slate-100);
}
.trust-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate-500);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.chip svg { color: var(--brand-600); }
.chip:hover {
  background: #fff;
  border-color: var(--brand-200);
  color: var(--slate-900);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 6rem 0;
  background: #fff;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.feature {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.6rem;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  border: 1px solid var(--brand-100);
}
.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--slate-900);
}
.feature p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* ============================================================
   LOSS AVERSION ("Pare de…")
   ============================================================ */
.loss-aversion {
  padding: 6rem 0;
  background: var(--brand-50);
  position: relative;
  overflow: hidden;
}
.loss-aversion::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(hsl(175 50% 40% / 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  pointer-events: none;
}

/* Editorial-magazine layout: numeral massivo em Fraunces + row horizontal */
.loss-list {
  display: flex;
  flex-direction: column;
  max-width: 880px;
  margin: 0 auto;
}
.loss-row {
  display: grid;
  grid-template-columns: minmax(72px, 110px) 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid var(--brand-200);
}
.loss-row:last-child {
  border-bottom: 1px solid var(--brand-200);
}
.loss-bignum {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.6rem, 4vw + 1rem, 4rem);
  line-height: 0.85;
  letter-spacing: -0.035em;
  color: var(--brand-500);
  font-variation-settings: "opsz" 144;
  font-variant-numeric: lining-nums;
}
.loss-row-body h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.18rem, 0.6vw + 1rem, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--slate-900);
  text-wrap: balance;
}
.loss-row-body p {
  margin: 0;
  color: var(--slate-600);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 60ch;
}
.loss-row:hover .loss-bignum {
  color: var(--brand-700);
  transition: color 0.3s ease;
}

@media (max-width: 640px) {
  .loss-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1.4rem 0;
  }
  .loss-bignum {
    line-height: 1;
  }
}

/* ============================================================
   FOUNDER BLOCK
   ============================================================ */
.founder {
  padding: 5rem 0;
  background: #fff;
}
.founder-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}
.founder-card .kicker { display: block; margin-bottom: 1.2rem; }
.founder-quote {
  margin: 0 0 1.5rem;
}
.founder-quote p {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 1.6vw + 0.8rem, 1.7rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--slate-900);
  margin: 0;
  text-wrap: balance;
}
.founder-quote p::before { content: "“"; color: var(--brand-400); margin-right: 0.05em; }
.founder-quote p::after  { content: "”"; color: var(--brand-400); margin-left: 0.05em; }

.founder-cite {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}
.founder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.founder-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.founder-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-900);
}
.founder-role {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-top: 2px;
}

/* ============================================================
   WAITLIST
   ============================================================ */
.waitlist {
  position: relative;
  padding: 6rem 0 7rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-50) 100%);
  overflow: hidden;
}
.waitlist-orbs { position: absolute; inset: 0; pointer-events: none; }

.waitlist-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .waitlist-wrap {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 2.5rem;
    /* Perks centralizadas verticalmente em relação ao card do form/sucesso */
    align-items: center;
  }
}

.waitlist-perks {
  padding: 0.4rem 0.25rem 0;
}
.perks-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-900);
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}
.perks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.perks-list li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--slate-700);
}
.perks-list strong { color: var(--slate-900); font-weight: 600; }
.perk-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.waitlist-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.2rem;
}
@media (max-width: 640px) {
  .waitlist-card { padding: 1.6rem; }
}
.waitlist-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, hsl(175 80% 60% / 0.4), transparent 50%);
  z-index: -1;
  filter: blur(14px);
  opacity: 0.6;
}

.trust-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1.2rem;
  margin: 2.5rem auto 0;
  max-width: 880px;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--slate-200);
}
.trust-band li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-600);
}
.trust-band li svg { color: var(--brand-600); flex-shrink: 0; }

.waitlist-form { display: flex; flex-direction: column; gap: 1.1rem; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-700);
  letter-spacing: -0.005em;
}
.field label .opt {
  color: var(--slate-400);
  font-weight: 400;
}
.field input,
.field select {
  font: inherit;
  font-size: 0.98rem;
  color: var(--slate-900);
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2364748b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 7.5 10 12.5 15 7.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 16px;
  padding-right: 2.4rem;
}
.field input::placeholder { color: var(--slate-400); }
.field input:hover,
.field select:hover { border-color: var(--slate-300); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px hsl(175 80% 52% / 0.18);
}
.field.has-error input,
.field.has-error select {
  border-color: hsl(0 70% 55%);
  box-shadow: 0 0 0 4px hsl(0 70% 55% / 0.15);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field-error {
  font-size: 0.8rem;
  color: hsl(0 70% 45%);
  min-height: 1em;
}

.form-fine {
  font-size: 0.82rem;
  color: var(--slate-500);
  text-align: center;
  margin: 0.4rem 0 0;
}

.btn-spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid hsl(0 0% 100% / 0.4);
  border-top-color: #fff;
  display: none;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading .btn-label { opacity: 0.7; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; }

.waitlist-success {
  text-align: center;
  padding: 0.5rem 0.25rem 0.25rem;
}
.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid var(--brand-100);
  animation: pop 0.5s var(--ease-out);
}
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.waitlist-success h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  color: var(--slate-900);
}
.waitlist-success p {
  margin: 0 0 0.6rem;
  color: var(--slate-600);
  font-size: 0.98rem;
}
.waitlist-success strong { color: var(--brand-700); font-weight: 600; }

.success-share {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--slate-100);
}
.success-share-title {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--slate-700) !important;
  margin: 0 0 0.9rem !important;
  line-height: 1.5 !important;
}
.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}
.success-actions .btn { flex: 0 1 auto; }

.success-fine {
  margin-top: 1.1rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
  font-size: 0.85rem !important;
  color: var(--slate-500) !important;
}

/* ============================================================
   STICKY CTA (mobile)
   ============================================================ */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  background: var(--brand-600);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 36px -10px hsl(175 60% 18% / 0.45), 0 4px 14px -6px hsl(175 60% 18% / 0.25);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out), background-color 0.18s ease;
}
.sticky-cta svg { stroke: currentColor; }
.sticky-cta:hover,
.sticky-cta:focus-visible { background: var(--brand-700); }
.sticky-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-200), 0 14px 36px -10px hsl(175 60% 18% / 0.45);
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
@media (max-width: 768px) {
  .sticky-cta { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: opacity 0.2s ease; transform: translate(-50%, 0); }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 6rem 0;
  background: #fff;
}
.faq-inner { max-width: 760px; }
.section-head + .faq-list { margin-top: 1rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }

.faq-item {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.faq-item:hover { border-color: var(--slate-300); }
.faq-item[open] {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--slate-900);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev {
  display: inline-flex;
  color: var(--slate-500);
  transition: transform 0.25s var(--ease-out), color 0.2s ease;
}
.faq-item[open] .faq-chev {
  transform: rotate(180deg);
  color: var(--brand-700);
}
.faq-body {
  padding: 0 1.3rem 1.2rem;
  color: var(--slate-600);
  font-size: 0.96rem;
  line-height: 1.6;
}
.faq-body p { margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--slate-200);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
}
.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate-500);
}
.footer-nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.88rem;
}
.footer-nav a {
  color: var(--slate-600);
  transition: color 0.15s ease;
}
.footer-nav a:hover { color: var(--brand-700); }

/* ============================================================
   REVEAL ON SCROLL — blur + spring + subtle scale (Linear-style)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 900ms var(--ease-spring),
    transform 900ms var(--ease-spring),
    filter 900ms var(--ease-spring);
  will-change: transform, opacity, filter;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Waterfall stagger por nth-child em grids comuns (features, loss, perks) */
.feature-grid .feature.reveal:nth-child(1) { transition-delay: 0ms; }
.feature-grid .feature.reveal:nth-child(2) { transition-delay: 70ms; }
.feature-grid .feature.reveal:nth-child(3) { transition-delay: 140ms; }
.feature-grid .feature.reveal:nth-child(4) { transition-delay: 210ms; }
.feature-grid .feature.reveal:nth-child(5) { transition-delay: 280ms; }
.feature-grid .feature.reveal:nth-child(6) { transition-delay: 350ms; }

.loss-grid .loss-item.reveal:nth-child(1) { transition-delay: 0ms; }
.loss-grid .loss-item.reveal:nth-child(2) { transition-delay: 90ms; }
.loss-grid .loss-item.reveal:nth-child(3) { transition-delay: 180ms; }
.loss-grid .loss-item.reveal:nth-child(4) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    transition-delay: 0ms !important;
  }
}

/* ============================================================
   VISUAL UPGRADES — depth, texture, micro-interactions
   ============================================================ */

/* --- Double-bezel: waitlist card (substitui o glow antigo) --- */
.waitlist-card {
  border-color: hsl(175 22% 88%);
  box-shadow: var(--shadow-lg), var(--inset-light);
  isolation: isolate;
}
.waitlist-card::before {
  /* halo difuso atrás do card */
  content: "";
  position: absolute;
  inset: -50px -30px -30px -30px;
  background: radial-gradient(ellipse at 30% 0%, hsl(175 80% 60% / 0.22), transparent 55%);
  filter: blur(28px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.85;
}
.waitlist-card::after {
  /* "bandeja" externa onde a placa de vidro repousa */
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--radius-xl) + 10px);
  background: linear-gradient(180deg, hsl(175 30% 96% / 0.55), hsl(175 30% 93% / 0.25));
  border: 1px solid hsl(175 25% 85% / 0.5);
  box-shadow: var(--inset-light);
  z-index: -1;
  pointer-events: none;
}

/* --- Double-bezel: mock window --- */
.mock-window {
  border-color: hsl(175 22% 90%);
  box-shadow: var(--shadow-lg), var(--inset-light);
  isolation: isolate;
}
.mock-window::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-xl) + 8px);
  background: linear-gradient(180deg, hsl(175 30% 96% / 0.5), hsl(175 25% 92% / 0.2));
  border: 1px solid hsl(175 25% 85% / 0.4);
  z-index: -1;
  pointer-events: none;
}

/* --- Founder card: refinamento sutil sem virar caixa pesada --- */
.founder-card {
  padding: 3.25rem 2.25rem 2.75rem;
  background: linear-gradient(180deg, #ffffff, hsl(175 25% 98%));
  border: 1px solid hsl(175 22% 92%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm), var(--inset-light);
  position: relative;
  overflow: hidden;
}
.founder-card::before {
  /* hairline editorial no topo */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-400), transparent);
  opacity: 0.7;
}

/* --- Spotlight cursor-aware em cards (só desktop com mouse) --- */
@media (hover: hover) and (pointer: fine) {
  .feature,
  .loss-item {
    position: relative;
    isolation: isolate;
  }
  .feature::after,
  .loss-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
      300px circle at var(--mx, 50%) var(--my, 50%),
      hsl(175 80% 50% / 0.10),
      transparent 45%
    );
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease-spring);
    z-index: 0;
  }
  .feature:hover::after,
  .loss-item:hover::after {
    opacity: 1;
  }
  .feature > *,
  .loss-item > * {
    position: relative;
    z-index: 1;
  }
}

/* --- Noise overlay (textura editorial sutil) --- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.04;
  mix-blend-mode: multiply;
}

/* --- CTA com ilha (button-in-island) --- */
.btn-magnetic {
  position: relative;
  padding-right: 0.55rem;
  gap: 0.6rem;
}
.btn-magnetic .btn-label {
  position: relative;
  z-index: 1;
}
.btn-island {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: hsl(0 0% 100% / 0.18);
  flex-shrink: 0;
  transition:
    transform 0.45s var(--ease-spring),
    background-color 0.18s ease;
}
.btn-magnetic:hover .btn-island {
  background: hsl(0 0% 100% / 0.28);
  transform: translateX(3px) scale(1.06);
}
.btn-magnetic:active {
  transform: scale(0.98);
}
.btn-magnetic.is-loading .btn-island { display: none; }
.sticky-cta.btn-magnetic { padding-right: 0.45rem; }
.sticky-cta.btn-magnetic .btn-island {
  width: 26px;
  height: 26px;
}
@media (prefers-reduced-motion: reduce) {
  .btn-magnetic:hover .btn-island { transform: none; }
}

/* --- Ajuste de contraste no shadow do feature/perks card --- */
.feature:hover {
  box-shadow: var(--shadow-md), var(--inset-light);
}
.loss-item:hover {
  box-shadow: var(--shadow-md), var(--inset-light);
}

/* ============================================================
   MID-PAGE CTA — captura leitores quentes antes do bloco do founder
   ============================================================ */
.mid-cta {
  padding: 1rem 0 1.5rem;
  background: #fff;
}
.mid-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--brand-50), hsl(175 35% 96%));
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm), var(--inset-light);
  position: relative;
  overflow: hidden;
}
.mid-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 100%, hsl(175 80% 60% / 0.18), transparent 55%);
  pointer-events: none;
}
.mid-cta-text { position: relative; z-index: 1; }
.mid-cta-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin: 0 0 0.25rem;
}
.mid-cta-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.4rem, 1.4vw + 0.8rem, 1.7rem);
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin: 0;
}
.mid-cta-inner .btn { position: relative; z-index: 1; flex-shrink: 0; }
@media (max-width: 640px) {
  .mid-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.25rem 1.4rem;
  }
}

/* ============================================================
   FOOTER INSTITUCIONAL
   ============================================================ */
.site-footer {
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--slate-200);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand-block { max-width: 320px; }
.footer-tagline {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.55;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 640px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: 0 0 0.4rem;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--slate-700);
  transition: color 0.15s ease;
  text-decoration: none;
}
.footer-col a:hover { color: var(--brand-700); }
.footer-col a.link-muted { color: var(--slate-500); }
.footer-meta {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin: 0.3rem 0 0;
  line-height: 1.5;
}
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem 1.5rem;
}
.footer-legal {
  margin: 0;
  font-size: 0.78rem;
  color: var(--slate-500);
}
.footer-legal strong { color: var(--slate-700); font-weight: 600; }
.footer-lgpd {
  margin: 0;
  font-size: 0.72rem;
  color: var(--slate-400);
  max-width: 480px;
  text-align: right;
}
@media (max-width: 640px) {
  .footer-lgpd { text-align: left; }
}

/* ============================================================
   FOUNDER AVATAR refinado — maior, com ring brand
   ============================================================ */
.founder-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, hsl(175 70% 55% / 0.9), hsl(175 80% 25%) 75%),
    linear-gradient(135deg, var(--brand-400), var(--brand-800));
  box-shadow:
    0 0 0 1px hsl(175 35% 80% / 0.6),
    0 0 0 4px #fff,
    0 4px 14px -4px hsl(175 35% 14% / 0.25),
    inset 0 1px 0 hsl(0 0% 100% / 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.founder-avatar-initials {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 2px hsl(175 80% 20% / 0.4);
  position: relative;
  z-index: 1;
}

/* Mobile: também esconde pos-tl (não só pos-tr/pos-br) */
@media (max-width: 640px) {
  .floating-pill.pos-tl {
    display: none;
  }
}

/* ============================================================
   MOBILE FIXES (overflow on narrow viewports)
   ============================================================ */
/* Mock: desliga rotação 3D em mobile pra não estourar a coluna */
@media (max-width: 768px) {
  .mock-window {
    transform: translateZ(0) !important;
    animation: none !important;
  }
}

/* Eyebrow e chips: reduz em telas estreitas pra não overflowar */
@media (max-width: 480px) {
  .eyebrow {
    font-size: 0.74rem;
    padding: 0.32rem 0.7rem;
    max-width: 100%;
  }
  .hero-chips li {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
    max-width: 100%;
  }
  .hero-chips li svg { width: 12px; height: 12px; }
}

/* Grid items podem encolher conforme o viewport (sem min-content forçando) */
@media (max-width: 768px) {
  .hero-grid > * { min-width: 0; }
  .hero-copy, .hero-mock { min-width: 0; max-width: 100%; }
  /* Hero text: garante que palavras quebrem se forem maiores que o container */
  .display, .lede {
    overflow-wrap: anywhere;
    word-break: normal;
    max-width: 100%;
  }
}

/* H1 mais compacto em mobile pra não estourar o container */
@media (max-width: 480px) {
  .display {
    font-size: clamp(1.85rem, 8.5vw, 2.4rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    /* desliga 'balance' que tenta encaixar palavras grandes em poucas linhas */
    text-wrap: pretty;
  }
  .lede {
    font-size: clamp(0.95rem, 3.6vw, 1.1rem);
  }
}

/* ============================================================
   MOBILE PERFORMANCE — aliviar GPU em telas pequenas
   - backdrop-filter, mix-blend-mode, filter:blur são CAROS em mobile
   - animations infinitas drenam bateria + GPU continuamente
   ============================================================ */
@media (max-width: 768px) {

  /* P0.1 — substitui backdrop-filter por background sólido */
  .header-inner,
  .site-header.is-scrolled .header-inner {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: hsl(0 0% 100% / 0.96);
  }
  .hero-chips li {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: hsl(0 0% 100% / 0.95);
  }
  .eyebrow {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: hsl(0 0% 100% / 0.9);
  }
  .mock-pips {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: hsl(175 25% 95%);
  }

  /* P0.2 — remove o noise overlay (mix-blend-mode é caro) */
  body::after {
    display: none;
  }

  /* P0.3 — remove filter:blur dos reveals (mantém só translate+opacity) */
  .reveal {
    filter: none;
    will-change: auto;
    transform: translateY(20px);
    transition:
      opacity 700ms var(--ease-spring),
      transform 700ms var(--ease-spring);
  }
  .reveal.is-visible {
    filter: none;
    transform: translateY(0);
  }

  /* Mock crossfade entre views: sem filter:blur (caríssimo) */
  .mock-stack > .mock-body {
    filter: none !important;
    transition:
      opacity 500ms var(--ease-spring),
      transform 500ms var(--ease-spring);
  }
  .mock-stack > .mock-body:not(.is-active) {
    filter: none !important;
  }

  /* P1.4 — pausa só animações INFINITAS (não as de mount/entrance) */
  .orb,
  .floating-pill.is-active,
  .floating-pill.is-active.pos-tl,
  .floating-pill.is-active.pos-tr,
  .floating-pill.is-active.pos-br,
  .feed-dot,
  .feed-badge.urgent svg,
  .ai-header svg,
  .pill-dot.pulse,
  .feed-status.overdue {
    animation: none !important;
  }
  /* IMPORTANTE: .feed-item NÃO entra aqui — sua animação 'feed-in' é
     responsável por levar opacity 0→1. Sem ela, os items ficam invisíveis. */
}

/* ============================================================
   MOCK RESPONSIVIDADE — adequar layout interno dos mocks em mobile
   A) mock-top stack vertical (toggle visível)
   B) reduzir paddings/sizing geral
   C) ajustes por mock (financeiro, processo+IA, dashboard)
   ============================================================ */
@media (max-width: 480px) {
  /* A — Mock-top empilha vertical (eyebrow+title em cima, tabs embaixo) */
  .mock-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
  }
  .mock-tabs {
    align-self: flex-start;
  }
  /* Dash-top também — pra o "Boa noite, Fernando" não competir com tabs */
  .dash-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  /* B — Mock geral mais compacto */
  .mock-body { padding: 0.85rem 0.7rem 0.95rem; }
  .mock-window { border-radius: 14px; }
  .mock-chrome { padding: 0.5rem 0.7rem; }
  .mock-chrome .dot-r,
  .mock-chrome .dot-y,
  .mock-chrome .dot-g { display: none; }
  .mock-url {
    font-size: 0.66rem;
    padding: 0.18rem 0.55rem;
    margin-left: 0;
  }

  /* Reduzir alguns sizing internos */
  .mock-eyebrow { font-size: 0.62rem; }
  .mock-title { font-size: 1rem; }

  /* C1 — Financeiro: KPIs 3-col → 2-col */
  .mock-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi { padding: 0.5rem 0.55rem; }
  .kpi-value { font-size: 0.88rem; }

  /* C2 — Processo+IA: timeline + IA panel stacked (já tem rule em 520px,
     reforço com gap menor e ai-text com line-clamp pra não esticar muito) */
  .mock-process-grid { gap: 0.6rem; }
  .ai-text { -webkit-line-clamp: 3; }
  .proc-meta { gap: 0.3rem 0.7rem; padding: 0.45rem 0.6rem; }

  /* C3 — Dashboard greeting menor (Fraunces 800 italic 1.7rem é demais em 320px) */
  .dash-greeting {
    font-size: clamp(1.05rem, 5.5vw, 1.4rem);
    line-height: 1.05;
  }
  .dash-eyebrow {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }
  .dash-subtitle {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }
  .dash-rule { width: 12px; }
  .dash-kpis .kpi-value { font-size: 0.92rem; }
  .kpi-icon { width: 18px; height: 18px; }
  .kpi-icon svg { width: 9px; height: 9px; }
  .dash-pub-case { font-size: 0.68rem; line-height: 1.25; }

  /* C4 — Agenda Mês: dots menores, tirar legenda inline (some pra economizar) */
  .month-day { font-size: 0.62rem; }
  .day-dot { width: 3px; height: 3px; }
  .month-legend { font-size: 0.55rem; }

  /* C5 — Tarefas (kanban): col-title menor */
  .kanban-col-title { font-size: 0.55rem; }
  .kanban-card-title { font-size: 0.68rem; }
  .kanban-card-meta { font-size: 0.58rem; }
}

/* ============================================================
   COOKIE NOTICE (transparência LGPD — discreto)
   ============================================================ */
.cookie-notice {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 60;
  max-width: 480px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s var(--ease-spring), opacity 0.4s ease;
  pointer-events: none;
}
.cookie-notice.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-notice-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}
@media (max-width: 480px) {
  .cookie-notice-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.85rem 0.95rem;
  }
}
.cookie-notice-text {
  margin: 0;
  font-size: 0.78rem;
  color: var(--slate-700);
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}
.cookie-notice-text strong {
  color: var(--slate-900);
  font-weight: 600;
}
.cookie-notice-text a {
  color: var(--brand-700);
  text-decoration: underline;
  text-decoration-color: var(--brand-200);
  text-underline-offset: 2px;
}
.cookie-notice-text a:hover { text-decoration-color: var(--brand-500); }
.cookie-notice-btn {
  flex-shrink: 0;
  background: var(--brand-600);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.2rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s var(--ease-spring);
}
.cookie-notice-btn:hover { background: var(--brand-700); }
.cookie-notice-btn:active { transform: scale(0.97); }
.cookie-notice-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-200);
}
@media (prefers-reduced-motion: reduce) {
  .cookie-notice { transition: opacity 0.3s ease; transform: translateY(0); }
}

/* ============================================================
   SMALL POLISH
   ============================================================ */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
