/* ==========================================================================
   Ê-Bot CRM — Upgrade de revisão (out/2026)
   Splash screen · Banner de cookies · Selos Meta TechProvider ·
   Quem somos · Bloco de CRM exclusivo · Card IA contextual ·
   Reveal em stagger · Coreografia pós-splash · Modo canvas da demo
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --meta-blue: #0866ff;
}

/* ==========================================================================
   1. SPLASH SCREEN — "Carregando experiência Ê-Sistemas"
   ========================================================================== */

.splash {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 18% 20%, rgba(136, 167, 47, 0.14), transparent 30rem),
    radial-gradient(circle at 82% 78%, rgba(136, 167, 47, 0.09), transparent 26rem),
    linear-gradient(165deg, #101715 0%, #0a0f0d 62%, #131a17 100%);
  color: #eef3e6;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

/* grade sutil de fundo */
.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 78%);
}

.splash-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
  transition: transform 0.55s var(--ease-out), opacity 0.4s ease;
}

.splash-logo {
  width: clamp(190px, 26vw, 250px);
  animation: splashBreathe 2.6s ease-in-out infinite;
  transform-origin: center;
}

.splash-logo svg { width: 100%; height: auto; display: block; }

@keyframes splashBreathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.4)); }
  50% { transform: scale(1.035); filter: drop-shadow(0 18px 40px rgba(136, 167, 47, 0.28)); }
}

.splash-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(238, 243, 230, 0.62);
}

.splash-bar {
  position: relative;
  width: min(260px, 62vw);
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.splash-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #d7ed95);
  box-shadow: 0 0 14px rgba(136, 167, 47, 0.55);
  transition: width 0.35s ease;
}

.splash-powered {
  font-size: 0.8rem;
  color: rgba(238, 243, 230, 0.5);
  letter-spacing: 0.02em;
}

.splash-powered b {
  color: #d7ed95;
  font-weight: 700;
}

/* o texto da logotipo do splash usa a mesma fonte do header (Cocogoose) */
.splash-logo svg text {
  font-family: "CocogooseProTrial-Bold", "CocogooseProTrial", "Trebuchet MS", sans-serif;
  font-weight: 700;
}

.splash-logo svg .wm-kern { letter-spacing: -0.08em; }

.splash-is-done .splash-inner {
  opacity: 0;
  transform: translateY(-18px) scale(0.97);
}

.splash-is-done.splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.splash-lock { overflow: hidden; }

/* ==========================================================================
   2. Coreografia do hero pós-splash
   ========================================================================== */

.s-hero-reveal .hero-kicker,
.s-hero-reveal .hero-title,
.s-hero-reveal .hero-copy,
.s-hero-reveal .hero-actions,
.s-hero-reveal .hero-proof {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.s-hero-reveal .hero-visual .iphone-stage {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
}

.s-hero-reveal.reveal-active .hero-kicker { opacity: 1; transform: none; transition-delay: 0.05s; }
.s-hero-reveal.reveal-active .hero-title  { opacity: 1; transform: none; transition-delay: 0.14s; }
.s-hero-reveal.reveal-active .hero-copy   { opacity: 1; transform: none; transition-delay: 0.24s; }
.s-hero-reveal.reveal-active .hero-actions { opacity: 1; transform: none; transition-delay: 0.36s; }
.s-hero-reveal.reveal-active .hero-proof  { opacity: 1; transform: none; transition-delay: 0.5s; }
.s-hero-reveal.reveal-active .iphone-stage { opacity: 1; transform: none; transition-delay: 0.42s; }

/* sem JS: nada pode ficar invisível */
.no-js .s-hero-reveal .hero-kicker,
.no-js .s-hero-reveal .hero-title,
.no-js .s-hero-reveal .hero-copy,
.no-js .s-hero-reveal .hero-actions,
.no-js .s-hero-reveal .hero-proof,
.no-js .s-hero-reveal .iphone-stage,
.splash-skip .s-hero-reveal .hero-kicker,
.splash-skip .s-hero-reveal .hero-title,
.splash-skip .s-hero-reveal .hero-copy,
.splash-skip .s-hero-reveal .hero-actions,
.splash-skip .s-hero-reveal .hero-proof,
.splash-skip .s-hero-reveal .iphone-stage {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ==========================================================================
   3. Reveal em stagger (grids) — aprimoramento do .reveal existente
   ========================================================================== */

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.reveal-active .reveal-stagger > * { opacity: 1; transform: none; }
.reveal.reveal-active .reveal-stagger > *:nth-child(2) { transition-delay: 0.07s; }
.reveal.reveal-active .reveal-stagger > *:nth-child(3) { transition-delay: 0.14s; }
.reveal.reveal-active .reveal-stagger > *:nth-child(4) { transition-delay: 0.21s; }
.reveal.reveal-active .reveal-stagger > *:nth-child(5) { transition-delay: 0.28s; }
.reveal.reveal-active .reveal-stagger > *:nth-child(6) { transition-delay: 0.35s; }
.reveal.reveal-active .reveal-stagger > *:nth-child(n+7) { transition-delay: 0.42s; }

.no-js .reveal-stagger > *,
.splash-skip .reveal-stagger > * {
  opacity: 1 !important;
  transform: none !important;
}

/* ==========================================================================
   4. Selo TechProvider Meta
   ========================================================================== */

.meta-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem 0.4rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(8, 102, 255, 0.22);
  box-shadow: 0 10px 26px rgba(8, 102, 255, 0.1);
  color: #24303d;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.meta-seal__logo {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 1.65rem;
  border-radius: 50%;
  background: var(--meta-blue);
  color: #fff;
  font-size: 0.95rem;
}

.meta-seal__logo iconify-icon { display: block; }

.meta-seal__check {
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: rgba(8, 102, 255, 0.14);
  color: var(--meta-blue);
  font-size: 0.62rem;
  font-weight: 900;
}

.meta-seal--nav { padding: 0.3rem 0.75rem 0.3rem 0.35rem; font-size: 0.74rem; }
.meta-seal--nav .meta-seal__logo { width: 1.45rem; height: 1.45rem; flex-basis: 1.45rem; }

.meta-seal--dark {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.88);
}

.meta-seal--dark .meta-seal__check { background: rgba(255, 255, 255, 0.12); color: #d7ed95; }

/* selo oficial na seção da API */
.cert-row.is-official {
  border: 1px solid rgba(8, 102, 255, 0.2);
}

.cert-row .meta-mark.is-official {
  background: var(--meta-blue);
  color: #fff;
}

/* rodapé */
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.25rem;
  margin-top: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.66);
}

.footer-trust strong { color: rgba(255, 255, 255, 0.88); font-weight: 800; }

.footer-trust .iso-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: help;
}

/* ==========================================================================
   5. Banner de cookies (LGPD)
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 2600;
  width: min(680px, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(251, 252, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(23, 33, 31, 0.22);
  opacity: 0;
  transform: translate(-50%, 24px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  pointer-events: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.cookie-banner__text {
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.cookie-banner__text strong { color: var(--dark); font-weight: 800; }

.cookie-banner__text button.pdf-open {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-banner__actions .btn { padding: 0.7rem 1.3rem; font-size: 0.88rem; white-space: nowrap; }

/* ==========================================================================
   6. Seção Quem somos / Nossa história
   ========================================================================== */

.historia-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.historia-copy p { color: var(--muted); line-height: 1.75; }
.historia-copy .section-lead { margin-top: 1.35rem; }

.historia-points {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.historia-point {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
}

.historia-point i {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border-radius: 0.85rem;
  background: var(--primary-light);
  color: var(--primary);
  font-style: normal;
}

.historia-point i iconify-icon { font-size: 1.2rem; }

.historia-point strong { display: block; color: var(--dark); margin-bottom: 0.2rem; }
.historia-point span { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.historia-badgeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(7.5rem, 14vw, 11.5rem);
  gap: 0.8rem;
}

.collage figure {
  position: relative;
  margin: 0;
  border-radius: 1.35rem;
  overflow: hidden;
  background: #dfe6d3;
  box-shadow: 0 18px 42px rgba(47, 56, 53, 0.14);
}

.collage figure.is-tall { grid-row: span 2; }
.collage figure.is-wide { grid-column: span 2; }

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}

.collage figure:hover img { transform: scale(1.055); }

/* rosto não cortado nas fotos de grupo: enquadra um pouco mais alto */
.collage .is-top img { object-position: center 18%; }
.collage figure { cursor: zoom-in; }

.collage figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 0.95rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(16, 23, 21, 0.78) 78%);
}

.collage .collage-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.05rem 1.15rem;
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 85% 12%, rgba(136, 167, 47, 0.28), transparent 60%),
    linear-gradient(150deg, #2f3835, #17211f);
  color: #f2f6e9;
  box-shadow: 0 18px 42px rgba(23, 33, 31, 0.2);
}

.collage .collage-tile strong {
  display: block;
  font-size: 1.06rem;
  line-height: 1.22;
  color: #f7faef;
  letter-spacing: -0.02em;
}

.collage .collage-tile span { color: rgba(247, 250, 239, 0.64); font-size: 0.8rem; line-height: 1.45; }

/* ==========================================================================
   Lightbox das fotos "Quem somos" — entrada e saída coreografadas
   ========================================================================== */

.collage-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 15, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}

.collage-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.collage-lightbox__card {
  position: relative;
  margin: 0;
  max-width: min(880px, 100%);
  max-height: 88dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #141b18;
  border: 1px solid rgba(215, 237, 149, 0.22);
  border-radius: 1.6rem;
  padding: 0.75rem;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(30px) scale(0.94);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.collage-lightbox.is-open .collage-lightbox__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.collage-lightbox__card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: min(70dvh, 100%);
  object-fit: contain;
  border-radius: 1.05rem;
}

.collage-lightbox figcaption {
  display: block;
  padding: 0.8rem 0.65rem 0.35rem;
  color: rgba(240, 246, 232, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
}

.collage-lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 3vw, 1.5rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(20, 27, 24, 0.8);
  color: #f2f6e9;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.collage-lightbox__close:hover {
  background: rgba(136, 167, 47, 0.65);
  transform: rotate(90deg);
}

/* imagens do dispatcher: dem perfis com foto real */
.dm-avatar--photo { padding: 0; background: none; overflow: hidden; }

.dm-avatar--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* logotipo Ê-Sistemas direto sobre o card escuro (letras brancas + "Ê" laranja
   da própria arte) — sem plaquinha atrás, com profundidade sutil */
.collage .collage-tile img.esi-mark {
  width: auto;
  height: 2.25rem;
  max-width: 100%;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: none;
  border: 0;
  filter: drop-shadow(0 3px 12px rgba(8, 12, 10, 0.45));
}

/* ==========================================================================
   7. Bloco exclusivo de CRM (Ê-Bot = CRM da operação)
   ========================================================================== */

#crm .section-lead { max-width: 760px; }

.crm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.crm-card {
  position: relative;
  overflow: hidden;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 1.55rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.crm-card h3 { margin-bottom: 0.55rem; font-size: 1.22rem; color: var(--dark); }
.crm-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

.crm-card .crm-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: 1rem;
  background: var(--primary-light);
  color: var(--primary);
}

.crm-card .crm-icon iconify-icon { font-size: 1.4rem; }

.crm-card--feature { grid-column: span 2; }

.crm-card--dark {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 88% 16%, rgba(136, 167, 47, 0.2), transparent 14rem),
    linear-gradient(150deg, #2f3835, #17211f);
  box-shadow: 0 30px 80px rgba(23, 33, 31, 0.22);
}

.crm-card--dark h3 { color: #f7faef; }
.crm-card--dark p { color: rgba(247, 250, 239, 0.72); }
.crm-card--dark .crm-icon { background: rgba(215, 237, 149, 0.14); color: #d7ed95; }

/* ---------- animações dos cards de CRM (mesma linguagem dos cards do CRM) ---------- */

.crm-card {
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.crm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 90px rgba(47, 56, 53, 0.18);
}

.crm-card--dark:hover { box-shadow: 0 34px 90px rgba(23, 33, 31, 0.32); }

.crm-card:hover .crm-icon {
  animation: crmIconPop 0.5s var(--ease-out);
}

@keyframes crmIconPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.12) rotate(-4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* pipeline: cada etapa "acende" em sequência, como um funil vivo */
.crm-pipeline .crm-step i { animation: crmStepGlow 2.6s infinite; }
.crm-pipeline .crm-step:nth-child(1) i { animation-delay: 0s; }
.crm-pipeline .crm-step:nth-child(3) i { animation-delay: 0.4s; }
.crm-pipeline .crm-step:nth-child(5) i { animation-delay: 0.8s; }
.crm-pipeline .crm-step:nth-child(7) i { animation-delay: 1.2s; }
.crm-pipeline .crm-step:nth-child(9) i { animation-delay: 1.6s; }

@keyframes crmStepGlow {
  0%, 55%, 100% { box-shadow: none; transform: scale(1); }
  12% { box-shadow: 0 0 0 5px rgba(136, 167, 47, 0.22); transform: scale(1.25); }
}

.crm-pipeline__note iconify-icon { animation: crmNoteDrift 3.2s ease-in-out infinite; }

@keyframes crmNoteDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* cadência: as etapas se acendem em rodízio, como mensagens disparando */
.crm-cadence span {
  animation: crmCadencePulse 3.6s infinite;
}

.crm-cadence span:nth-child(1) { animation-delay: 0s; }
.crm-cadence span:nth-child(2) { animation-delay: 1.2s; }
.crm-cadence span:nth-child(3) { animation-delay: 2.4s; }

@keyframes crmCadencePulse {
  0%, 20%, 100% {
    border-color: rgba(215, 237, 149, 0.16);
    background: rgba(255, 255, 255, 0.05);
  }
  6% {
    border-color: rgba(215, 237, 149, 0.55);
    background: rgba(215, 237, 149, 0.1);
  }
}

/* pipeline visual do card destaque */
.crm-pipeline {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.crm-pipeline__track {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.crm-step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(60, 72, 68, 0.14);
  background: #fff;
  color: var(--dark);
  font-size: 0.8rem;
  font-weight: 750;
  white-space: nowrap;
}

.crm-step i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--primary);
  flex: 0 0 0.55rem;
}

.crm-step.is-done { background: var(--primary-light); border-color: rgba(136, 167, 47, 0.3); }
.crm-step.is-done i { background: var(--primary); }

.crm-arrow {
  color: rgba(60, 72, 68, 0.4);
  font-size: 0.9rem;
  font-weight: 900;
}

.crm-pipeline__note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.95rem;
  border-radius: 1rem;
  background: var(--primary-light);
  color: var(--dark);
  font-size: 0.86rem;
  font-weight: 650;
}

.crm-pipeline__note iconify-icon { color: var(--primary); font-size: 1.05rem; flex-shrink: 0; }

/* linha de cadência animada dentro do card dark */
.crm-cadence {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.crm-cadence span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(215, 237, 149, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(247, 250, 239, 0.85);
  font-size: 0.82rem;
}

.crm-cadence span b { color: #d7ed95; font-weight: 800; white-space: nowrap; }

/* escada das etapas com margin (nunca transform): assim o card preserva
   a margem interna e nada escapa do overflow: hidden do .crm-card */
.crm-cadence span:nth-child(2) { margin-left: 0.75rem; }
.crm-cadence span:nth-child(3) { margin-left: 1.5rem; }

/* ==========================================================================
   8. Card "IA contextual" (substitui Tema e aparência)
   Rodapé IA: chip de vidro ancorado no fim do preview, brilho fluido que
   atravessa o chip e orbe com pulso suave. Nada fica cortado fora do card.
   ========================================================================== */

.fs-ctx { display: flex; flex-direction: column; gap: 0.4rem; }

.fs-ctx-summary {
  display: grid;
  gap: 0.24rem;
  padding: 0.52rem 0.6rem;
  border-radius: 0.8rem;
  background: rgba(var(--dt-primary), 0.08);
  border: 1px solid rgba(var(--dt-primary), 0.15);
}

.fs-ctx-summary b {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(var(--dt-primary-text));
}

.fs-ctx-summary b iconify-icon { font-size: 0.7rem; }

.fs-ctx-summary em {
  font-style: normal;
  font-size: 0.58rem;
  line-height: 1.45;
  color: rgba(var(--dt-slate), 1);
}

/* bolha de sugestão: vidro tonal com respiração, em vez de bloco verde sólido */
.fs-ctx .fs-msg--suggest {
  color: rgb(var(--dt-dark));
  background: linear-gradient(135deg, rgba(var(--dt-primary), 0.18), rgba(var(--dt-primary), 0.07));
  border-color: rgba(var(--dt-primary), 0.32);
  animation: fsCtxGlow 5.2s ease-in-out infinite;
}

.fs-ctx-hint {
  flex-shrink: 0;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.55rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(var(--dt-border), 0.2);
  background: rgba(var(--dt-surface), 0.85);
  font-size: 0.56rem;
  line-height: 1.4;
  color: rgba(var(--dt-muted), 1);
}
.fs-ctx-hint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 12%, rgba(var(--dt-primary), 0.22) 46%, rgba(var(--dt-primary), 0.04) 62%, transparent 76%);
  transform: translateX(-135%);
  animation: fsCtxSheen 4.6s cubic-bezier(0.42, 0, 0.3, 1) infinite;
}
.fs-ctx-hint i.fs-ctx-orb {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(var(--dt-primary), 0.22);
  color: rgb(var(--dt-primary-text));
  animation: fsCtxOrb 3.2s ease-in-out infinite;
}
.fs-ctx-orb iconify-icon { font-size: 0.72rem; }
.fs-ctx-hint > span { position: relative; z-index: 1; min-width: 0; }

@keyframes fsCtxSheen { 0% { transform: translateX(-135%); } 42%, 100% { transform: translateX(135%); } }
@keyframes fsCtxOrb {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--dt-primary), 0); transform: translateY(0); }
  50% { box-shadow: 0 0 0 3px rgba(var(--dt-primary), 0.14), 0 2px 10px rgba(var(--dt-primary), 0.18); transform: translateY(-1px); }
}
@keyframes fsCtxGlow {
  0%, 100% { box-shadow: 0 4px 12px rgba(var(--dt-primary), 0.1); }
  50% { box-shadow: 0 6px 18px rgba(var(--dt-primary), 0.28); }
}

/* ==========================================================================
   9. Ícone de card para Imobiliárias (casos de uso)
   ========================================================================== */

.case-real::before {
  left: 0.72rem;
  bottom: 0.72rem;
  width: 1.7rem;
  height: 1.3rem;
  border: 3px solid var(--primary);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.case-real::after {
  content: "";
  left: 0.62rem;
  bottom: 0.68rem;
  width: 1.9rem;
  height: 0.72rem;
  background: var(--primary);
  clip-path: polygon(50% 0, 100% 46%, 84% 46%, 84% 100%, 16% 100%, 16% 46%, 0 46%);
}

/* ==========================================================================
   10. Demo da tour — modo "só canvas" (oculta opções, mostra o fluxo)
   ========================================================================== */

.dm-editor.is-canvas-only .dm-flow-toolbar,
.dm-editor.is-canvas-only .dm-inspector { display: none; }

.dm-editor.is-canvas-only .dm-canvas {
  min-height: 100%;
}

#dmCanvasToggle .iconify-text { display: inline; }

/* ==========================================================================
   11. Refinos de interação
   ========================================================================== */

.btn:active { transform: translateY(1px) scale(0.98); }

.hero-actions .btn,
.hero-actions .text-link { white-space: nowrap; }

.timeline-item time { min-width: 4.6rem; text-align: right; }

/* ==========================================================================
   12. Responsividade dos novos blocos
   ========================================================================== */

@media (max-width: 1100px) {
  .historia-grid { grid-template-columns: 1fr; }
  /* entre 721px e 1100px o tile da Ê-Sistemas precisa de mais altura para o
     logotipo grande + texto respirarem dentro do carrossel de fotos */
  .collage { grid-auto-rows: clamp(9.5rem, 18vw, 11.5rem); }
  .crm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-card--feature { grid-column: span 2; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 0.9rem; }
  .cookie-banner__actions { justify-content: flex-end; }
}

@media (max-width: 720px) {
  .meta-seal--nav { display: none; }

  .collage { grid-template-columns: 1fr; grid-auto-rows: clamp(9rem, 24vw, 12rem); }
  .collage figure.is-tall { grid-row: span 1; min-height: 15rem; }
  .collage figure.is-wide { grid-column: span 1; }
  .collage .collage-tile { min-height: 11rem; }

  .collage-lightbox__card { border-radius: 1.15rem; padding: 0.55rem; }
  .collage-lightbox figcaption { padding: 0.6rem 0.45rem 0.2rem; font-size: 0.8rem; }
  .collage-lightbox__close { width: 2.2rem; height: 2.2rem; }

  .crm-grid { grid-template-columns: 1fr; }
  .crm-card--feature { grid-column: auto; }

  .crm-pipeline__track { flex-direction: column; align-items: flex-start; }
  .crm-arrow { display: none; }
  .crm-cadence span:nth-child(2),
  .crm-cadence span:nth-child(3) { margin-left: 0; }

  .footer-trust { flex-direction: column; align-items: flex-start; }

  .cookie-banner { left: 1rem; right: 1rem; width: auto; transform: translateY(24px); }
  .cookie-banner.is-visible { transform: translateY(0); }
}

/* ==========================================================================
   13. Movimento reduzido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .splash-inner,
  .splash-bar i,
  .splash-logo { animation: none !important; transition: none !important; }

  .s-hero-reveal .hero-kicker,
  .s-hero-reveal .hero-title,
  .s-hero-reveal .hero-copy,
  .s-hero-reveal .hero-actions,
  .s-hero-reveal .hero-proof,
  .s-hero-reveal .iphone-stage,
  .reveal-stagger > *,
  .cookie-banner,
  .collage img,
  .collage-lightbox,
  .collage-lightbox__card,
  .collage-lightbox__close,
  .crm-card,
  .crm-card .crm-icon,
  .crm-pipeline .crm-step i,
  .crm-pipeline__note iconify-icon,
  .crm-cadence span {
    transition: none !important;
    animation: none !important;
  }

  .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}
