/* Solução para Empresas / Contact Centers: componentes próprios da página.
   Usa os componentes sp-* de softphone.css (seções, títulos, cartões,
   revelação) e os tokens de flux-ds.css, então segue o tema escuro (padrão)
   e o claro (data-theme="light"). */

@media (max-width: 640px) {
  .se-page .sp-sec {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.se-head {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.se-head .sp-lead {
  margin-top: 0.2rem;
}

/* Animações em CSS ficam paradas enquanto a seção está fora da tela */
.js .se-anim:not(.se-on) *,
.js .se-anim:not(.se-on) *::before,
.js .se-anim:not(.se-on) *::after {
  animation-play-state: paused !important;
}

.se-ill {
  color: hsl(var(--ink-muted));
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0.8rem 0 0;
  text-align: center;
}

/* ---------- Hero: fluxo de pedidos e webhooks ---------- */
.se-hero {
  display: flex;
  justify-content: center;
  margin: 2.75rem auto 0;
  position: relative;
  width: min(640px, 100%);
}

.se-hero::before {
  background: radial-gradient(circle, hsl(var(--primary) / 0.35), transparent 65%);
  content: "";
  filter: blur(30px);
  inset: -10% 10%;
  pointer-events: none;
  position: absolute;
}

.se-term {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  text-align: left;
  width: 100%;
}

.se-term-bar {
  align-items: center;
  border-bottom: 1px solid hsl(var(--ink-strong) / 0.08);
  display: flex;
  gap: 7px;
  padding: 0.75rem 1rem;
}

.se-term-bar i {
  background: hsl(var(--ink-strong) / 0.18);
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

.se-term-bar span {
  color: hsl(var(--ink-muted));
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-left: 0.6rem;
  text-transform: uppercase;
}

.se-feed {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 300px;
  padding: 1rem;
}

.se-ev {
  align-items: center;
  animation: se-ev 11s ease infinite both;
  animation-delay: calc(var(--i, 0) * 1.3s);
  background: hsl(var(--surface-soft));
  border: 1px solid hsl(var(--ink-strong) / 0.08);
  border-radius: 14px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0.6rem 0.8rem;
}

.se-ev-dir {
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.55rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.se-ev--out .se-ev-dir {
  background: hsl(var(--primary) / 0.16);
  color: hsl(var(--primary));
}

.se-ev--in .se-ev-dir {
  background: hsl(var(--tone-success) / 0.16);
  color: hsl(var(--tone-success-fg));
}

.se-ev b {
  color: hsl(var(--ink-strong));
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.se-ev small {
  color: hsl(var(--ink-muted));
  display: block;
  font-size: 0.75rem;
}

.se-ev em {
  color: hsl(var(--ink-muted));
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-style: normal;
}

@keyframes se-ev {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  5%,
  62% {
    opacity: 1;
    transform: none;
  }
  70%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (max-width: 480px) {
  .se-ev {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .se-ev em {
    display: none;
  }
}

/* ---------- O desafio: antes e depois ---------- */
.se-vs {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 900px) {
  .se-vs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.se-vcard {
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.4rem;
}

.se-vhd {
  align-items: center;
  color: hsl(var(--ink-strong));
  display: flex;
  font-size: 1rem;
  font-weight: 600;
  gap: 0.7rem;
}

.se-vhd i {
  background: rgba(225, 29, 72, 0.14);
  border-radius: 50%;
  color: #e11d48;
  display: grid;
  font-style: normal;
  height: 1.9rem;
  place-items: center;
  width: 1.9rem;
}

.se-vcard--good {
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 22px 50px hsl(var(--primary) / 0.14);
}

.se-vcard--good .se-vhd i {
  background: hsl(var(--primary));
  color: #fff;
}

.se-vcard ul {
  color: hsl(var(--ink-muted));
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.45rem;
  line-height: 1.45;
  list-style: none;
  margin: 0;
  padding: 0;
}

.se-vcard li {
  padding-left: 1.1rem;
  position: relative;
}

.se-vcard li::before {
  background: #e11d48;
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  top: 0.55em;
  width: 6px;
}

.se-vcard--good li::before {
  background: hsl(var(--primary));
}

.se-map {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: auto minmax(28px, 1fr) minmax(0, auto);
  min-height: 190px;
}

.se-me,
.se-hub {
  align-self: center;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.85rem 0.9rem;
  text-align: center;
}

.se-me {
  background: hsl(var(--surface-soft));
  border: 1px solid hsl(var(--ink-strong) / 0.14);
  color: hsl(var(--ink-strong));
  max-width: 7.5rem;
}

.se-me small,
.se-hub small {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
  opacity: 0.8;
}

.se-hub {
  background: linear-gradient(135deg, hsl(var(--primary)), #7c6cf0);
  box-shadow: 0 16px 36px hsl(var(--primary) / 0.32);
  color: #fff;
}

.se-lines {
  height: 100%;
  overflow: visible;
  width: 100%;
}

.se-lines path {
  fill: none;
  stroke: rgba(225, 29, 72, 0.6);
  stroke-dasharray: 5 6;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  animation: se-dash 1.4s linear infinite;
}

.se-lines--good path {
  stroke: hsl(var(--primary));
  stroke-width: 2;
}

@keyframes se-dash {
  to {
    stroke-dashoffset: -22;
  }
}

.se-vendors {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
}

.se-vendors span {
  background: hsl(var(--surface-soft));
  border: 1px dashed rgba(225, 29, 72, 0.45);
  border-radius: 12px;
  color: hsl(var(--ink-secondary));
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
}

.se-vendors small {
  color: hsl(var(--ink-muted));
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
}

/* ---------- Como funciona: fluxo animado ---------- */
.se-flow {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(28px, 4vw, 60px) minmax(0, 1fr) clamp(28px, 4vw, 60px) minmax(0, 1fr) clamp(28px, 4vw, 60px) minmax(0, 1fr);
  margin-top: 1rem;
  width: 100%;
}

.se-node {
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--ink-strong) / 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1rem;
  text-align: left;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}

.se-node .sp-ico {
  transition: background 0.4s, color 0.4s;
}

.se-node small {
  color: hsl(var(--primary));
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.se-node b {
  color: hsl(var(--ink-strong));
  font-size: 1.02rem;
  font-weight: 600;
}

.se-node p {
  color: hsl(var(--ink-muted));
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
}

.se-node.is-done {
  border-color: hsl(var(--primary) / 0.3);
}

.se-node.is-on {
  border-color: hsl(var(--primary) / 0.7);
  box-shadow: 0 18px 44px hsl(var(--primary) / 0.2);
  transform: translateY(-4px);
}

.se-node.is-on .sp-ico {
  background: hsl(var(--primary));
  color: #fff;
}

.se-node--core {
  background: linear-gradient(160deg, hsl(var(--primary) / 0.16), hsl(var(--surface)) 70%);
}

.se-wire {
  align-self: center;
  background: repeating-linear-gradient(90deg, hsl(var(--primary) / 0.55) 0 6px, transparent 6px 12px);
  height: 2px;
  position: relative;
}

.se-wire::after {
  background: hsl(var(--primary));
  border-radius: 4px;
  box-shadow: 0 0 0 5px hsl(var(--primary) / 0.2);
  content: "";
  height: 10px;
  left: 0;
  opacity: 0;
  position: absolute;
  top: -4px;
  width: 10px;
}

.se-wire.is-on::after {
  animation: se-pkt 1.1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes se-pkt {
  0% {
    left: 0;
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 10px);
    opacity: 0;
  }
}

.se-return {
  align-items: center;
  border: 1px dashed hsl(var(--tone-success) / 0.45);
  border-radius: 16px;
  color: hsl(var(--ink-secondary));
  display: flex;
  font-size: 0.88rem;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1rem;
  overflow: hidden;
  padding: 0.8rem 1rem;
  position: relative;
  text-align: center;
  transition: border-color 0.4s, background 0.4s;
}

.se-return b {
  color: hsl(var(--tone-success-fg));
}

.se-return svg {
  color: hsl(var(--tone-success-fg));
  flex: none;
  height: 20px;
  width: 20px;
}

.se-return::after {
  background: hsl(var(--tone-success));
  border-radius: 4px;
  box-shadow: 0 0 0 5px hsl(var(--tone-success) / 0.2);
  content: "";
  height: 8px;
  opacity: 0;
  position: absolute;
  right: 0;
  top: calc(50% - 4px);
  width: 8px;
}

.se-return.is-on {
  background: hsl(var(--tone-success) / 0.08);
  border-style: solid;
}

.se-return.is-on::after {
  animation: se-back 1.6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes se-back {
  0% {
    opacity: 0;
    right: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    right: calc(100% - 8px);
  }
}

@media (max-width: 899px) {
  .se-flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .se-wire {
    background: repeating-linear-gradient(180deg, hsl(var(--primary) / 0.55) 0 6px, transparent 6px 12px);
    height: 30px;
    justify-self: center;
    width: 2px;
  }
  .se-wire::after {
    left: -4px;
    top: 0;
  }
  .se-wire.is-on::after {
    animation-name: se-pkt-v;
  }
  .se-node {
    display: grid;
    gap: 0.2rem 0.9rem;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .se-node .sp-ico {
    grid-row: span 3;
  }
}

@keyframes se-pkt-v {
  0% {
    opacity: 0;
    top: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: calc(100% - 10px);
  }
}

/* Passos sincronizados (clicáveis) */
.se-steps {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .se-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .se-steps--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.se-st {
  align-items: flex-start;
  background: none;
  border: 1px solid transparent;
  border-radius: 18px;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  text-align: left;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.se-st b {
  color: hsl(var(--ink-strong));
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.se-st p {
  color: hsl(var(--ink-muted));
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0.2rem 0 0;
}

.se-n {
  align-items: center;
  background: hsl(var(--primary) / 0.14);
  border-radius: 50%;
  color: hsl(var(--primary));
  display: grid;
  flex: none;
  font-size: 0.82rem;
  font-weight: 600;
  height: 1.9rem;
  place-items: center;
  transition: background 0.35s, color 0.35s;
  width: 1.9rem;
}

.se-st.is-on {
  background: hsl(var(--surface-muted));
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 14px 34px hsl(var(--primary) / 0.14);
}

.se-st.is-on .se-n {
  background: hsl(var(--primary));
  color: #fff;
}

.se-st:focus-visible,
.se-tab:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

/* ---------- Integração e desenvolvimento ---------- */
.se-envs {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) clamp(24px, 4vw, 56px) minmax(0, 1fr) clamp(24px, 4vw, 56px) minmax(0, 1fr);
  margin-top: 0.5rem;
}

.se-env {
  border-radius: 18px;
  padding: 1rem 1.1rem;
  text-align: left;
}

.se-env small {
  color: hsl(var(--primary));
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.se-env b {
  color: hsl(var(--ink-strong));
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.se-env span {
  align-items: center;
  color: hsl(var(--ink-muted));
  display: flex;
  font-size: 0.8rem;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.se-env span svg {
  color: hsl(var(--primary));
  height: 14px;
  width: 14px;
}

.se-env--prod {
  border-color: hsl(var(--primary) / 0.5);
}

.se-envs .se-wire::after {
  animation: se-pkt 2.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.se-envs .se-wire.w2::after {
  animation-delay: 1.1s;
}

@media (max-width: 699px) {
  .se-envs {
    grid-template-columns: minmax(0, 1fr);
  }
  .se-envs .se-wire {
    background: repeating-linear-gradient(180deg, hsl(var(--primary) / 0.55) 0 6px, transparent 6px 12px);
    height: 24px;
    justify-self: center;
    width: 2px;
  }
  .se-envs .se-wire::after {
    animation-name: se-pkt-v;
    left: -4px;
  }
}

.se-devgrid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.25rem;
}

@media (min-width: 700px) {
  .se-devgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .se-devgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.se-evchips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.se-evchips span {
  background: hsl(var(--primary) / 0.1);
  border-radius: 99px;
  color: hsl(var(--primary));
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
}

/* ---------- Produtos envolvidos: camadas ---------- */
.se-layers {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.se-layer-hd {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.se-layer-n {
  color: hsl(var(--primary));
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.se-layer-hd b {
  color: hsl(var(--ink-strong));
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
}

.se-layer-hd small {
  color: hsl(var(--ink-muted));
  display: block;
  font-size: 0.85rem;
}

.se-layer-hd::after {
  background: linear-gradient(90deg, hsl(var(--primary) / 0.4), transparent);
  content: "";
  flex: 1;
  height: 1px;
  min-width: 2rem;
}

.se-prods {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.se-prod {
  align-items: flex-start;
  border-radius: 20px;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 1.1rem 1.15rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.se-prod:hover,
.se-prod:focus-visible {
  border-color: hsl(var(--primary) / 0.55);
  box-shadow: 0 16px 40px hsl(var(--primary) / 0.16);
  transform: translateY(-3px);
}

.se-prod b {
  color: hsl(var(--ink-strong));
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.se-prod p {
  color: hsl(var(--ink-muted));
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0.25rem 0 0;
}

.se-go {
  color: hsl(var(--primary));
  transition: transform 0.3s;
}

.se-go svg {
  height: 18px;
  width: 18px;
}

.se-prod:hover .se-go {
  transform: translateX(4px);
}

/* ---------- Exemplo prático: abas + celular + registro ---------- */
.se-tabs {
  background: hsl(var(--surface-soft));
  border: 1px solid hsl(var(--ink-strong) / 0.1);
  border-radius: 99px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1.75rem;
  max-width: 100%;
  padding: 0.3rem;
}

.se-tab {
  background: none;
  border: 0;
  border-radius: 99px;
  color: hsl(var(--ink-secondary));
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  transition: background 0.3s, color 0.3s;
}

.se-tab.is-on {
  background: hsl(var(--primary));
  box-shadow: 0 8px 20px hsl(var(--primary) / 0.3);
  color: #fff;
}

.se-case:not(.is-on) {
  display: none;
}

.se-case-in {
  align-items: center;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .se-case-in {
    gap: 3.5rem;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

@media (max-width: 899px) {
  .se-case-in .se-demo {
    order: -1;
  }
  .se-phone {
    width: 170px;
  }
}

.se-case-in .se-steps {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.se-case-intro {
  color: hsl(var(--ink-secondary));
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.se-demo {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.se-phone {
  aspect-ratio: 9 / 18;
  background: linear-gradient(145deg, #3a4357, #10141e 40%, #262d3d);
  border-radius: 34px;
  box-shadow: 0 0 0 1px #59647e, 0 30px 70px rgba(0, 0, 0, 0.3), 0 0 60px hsl(var(--primary) / 0.2);
  flex: none;
  padding: 8px;
  width: 200px;
}

.se-scrs {
  background: linear-gradient(180deg, #1b2440, #0a0f1f);
  border-radius: 27px;
  color: #fff;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.se-clock {
  font-size: 0.7rem;
  font-weight: 600;
  left: 0;
  opacity: 0.85;
  padding: 0.7rem 1rem;
  position: absolute;
  right: 0;
  top: 0;
}

.se-scr {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 2.4rem 0.8rem 1rem;
  position: absolute;
  text-align: center;
  transform: scale(1.03);
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.se-scr.is-on {
  opacity: 1;
  transform: none;
}

.se-scr-t {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  opacity: 0.7;
  text-transform: uppercase;
}

.se-scr-b {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.se-dots {
  display: flex;
  gap: 5px;
}

.se-dots i {
  animation: sp-blink 1.2s infinite;
  background: #9db1fa;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.se-dots i:nth-child(2) {
  animation-delay: 0.2s;
}

.se-dots i:nth-child(3) {
  animation-delay: 0.4s;
}

.se-banner {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  color: #0f172a;
  font-size: 0.74rem;
  line-height: 1.35;
  padding: 0.6rem 0.7rem;
  text-align: left;
  width: 100%;
}

.se-banner small {
  color: #64748b;
  display: flex;
  font-size: 0.6rem;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.se-avatar {
  align-items: center;
  background: linear-gradient(145deg, hsl(var(--primary)), #7c6cf0);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(94, 129, 244, 0.18), 0 0 0 16px rgba(94, 129, 244, 0.08);
  display: grid;
  font-size: 0.9rem;
  font-weight: 700;
  height: 3.4rem;
  place-items: center;
  width: 3.4rem;
}

.se-ver {
  background: rgba(16, 185, 129, 0.18);
  border-radius: 99px;
  color: #6ee7b7;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
}

.se-callbtns {
  display: flex;
  gap: 1.6rem;
  margin-top: 0.6rem;
}

.se-callbtns i {
  border-radius: 50%;
  height: 2.3rem;
  width: 2.3rem;
}

.se-callbtns .no {
  background: #e11d48;
}

.se-callbtns .ok {
  animation: se-ring 1.2s ease-in-out infinite;
  background: #10b981;
}

@keyframes se-ring {
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.25);
  }
}

.se-okmark {
  align-items: center;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  color: #6ee7b7;
  display: grid;
  height: 3.2rem;
  place-items: center;
  width: 3.2rem;
}

.se-okmark svg {
  height: 1.6rem;
  width: 1.6rem;
}

.se-log {
  border-radius: 18px;
  display: flex;
  flex: 1 1 210px;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 300px;
  min-width: 0;
  padding: 1rem;
}

.se-log-t {
  color: hsl(var(--ink-muted));
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.se-log-l {
  border-left: 2px solid hsl(var(--ink-strong) / 0.12);
  color: hsl(var(--ink-muted));
  font-size: 0.8rem;
  line-height: 1.35;
  opacity: 0.35;
  padding: 0.2rem 0 0.2rem 0.6rem;
  transition: opacity 0.4s, border-color 0.4s, color 0.4s;
}

.se-log-l b {
  color: hsl(var(--ink-strong));
  font-weight: 600;
}

.se-log-l.out b {
  color: hsl(var(--primary));
}

.se-log-l.in b {
  color: hsl(var(--tone-success-fg));
}

.se-log-l.is-done,
.se-log-l.is-on {
  opacity: 1;
}

.se-log-l.is-on {
  border-color: hsl(var(--primary));
  color: hsl(var(--ink-secondary));
}

/* ---------- Perguntas frequentes ---------- */
.se-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 auto;
  max-width: 820px;
  width: 100%;
}

.se-faq details {
  border-radius: 22px;
  padding: 1.1rem 1.25rem;
}

.se-faq summary {
  align-items: center;
  color: hsl(var(--ink-strong));
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  font-weight: 500;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
}

.se-faq summary::-webkit-details-marker {
  display: none;
}

.se-faq summary svg {
  color: hsl(var(--primary));
  flex: none;
  transition: transform 0.3s;
}

.se-faq details[open] summary svg {
  transform: rotate(180deg);
}

.se-faq p {
  color: hsl(var(--ink-muted));
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0.8rem 0 0;
}

/* ---------- Reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .se-ev {
    opacity: 1;
  }
  .se-node.is-on {
    transform: none;
  }
}

/* =========================================================
   Componentes exclusivos da página de Empresas
   ========================================================= */

/* ---------- Hero: painel com as três frentes da operação ---------- */
.se-board {
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  position: relative;
  text-align: left;
  width: 100%;
}

.se-lane {
  align-items: center;
  background: hsl(var(--surface-soft));
  border: 1px solid hsl(var(--ink-strong) / 0.08);
  border-radius: 16px;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  padding: 0.8rem 0.9rem;
}

.se-lane-lb {
  align-items: center;
  color: hsl(var(--ink-strong));
  display: flex;
  font-size: 0.86rem;
  font-weight: 600;
  gap: 0.55rem;
}

.se-lane-lb .sp-ico {
  border-radius: 0.6rem;
  height: 2rem;
  width: 2rem;
}

.se-lane-lb .sp-ico svg {
  height: 1rem;
  width: 1rem;
}

.se-track {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 2.2rem;
  position: relative;
}

.se-track::before {
  background: repeating-linear-gradient(90deg, hsl(var(--primary) / 0.45) 0 6px, transparent 6px 12px);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 50%;
}

.se-stop {
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--ink-strong) / 0.12);
  border-radius: 99px;
  color: hsl(var(--ink-secondary));
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  position: relative;
  white-space: nowrap;
  z-index: 1;
}

.se-stop--end {
  background: hsl(var(--tone-success) / 0.14);
  border-color: hsl(var(--tone-success) / 0.4);
  color: hsl(var(--tone-success-fg));
}

.se-dot {
  animation: se-run 4.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  animation-delay: var(--k, 0s);
  background: hsl(var(--primary));
  border-radius: 50%;
  box-shadow: 0 0 0 5px hsl(var(--primary) / 0.2);
  height: 10px;
  left: 0;
  opacity: 0;
  position: absolute;
  top: calc(50% - 5px);
  width: 10px;
  z-index: 2;
}

@keyframes se-run {
  0% {
    left: 0;
    opacity: 0;
  }
  10%,
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 10px);
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .se-lane {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }
  .se-stop {
    font-size: 0.64rem;
    padding: 0.28rem 0.45rem;
  }
}

/* ---------- O desafio: ilhas x operação conectada ---------- */
.se-isl {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 190px;
  position: relative;
}

.se-isl span {
  align-items: center;
  background: hsl(var(--surface-soft));
  border: 1px dashed rgba(225, 29, 72, 0.45);
  border-radius: 14px;
  color: hsl(var(--ink-secondary));
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  font-weight: 600;
  gap: 0.3rem;
  justify-content: center;
  padding: 0.7rem;
  text-align: center;
}

.se-isl span small {
  color: hsl(var(--ink-muted));
  font-size: 0.66rem;
  font-weight: 500;
}

.se-isl span i {
  animation: se-wobble 3.2s ease-in-out infinite;
  animation-delay: var(--k, 0s);
  display: flex;
  gap: 3px;
}

.se-isl span i b {
  background: rgba(225, 29, 72, 0.55);
  border-radius: 2px;
  height: 6px;
  width: 6px;
}

@keyframes se-wobble {
  50% {
    opacity: 0.35;
  }
}

.se-isl--good span {
  border: 1px solid hsl(var(--primary) / 0.4);
}

.se-isl--good::before {
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.6), transparent),
    linear-gradient(180deg, transparent, hsl(var(--primary) / 0.6), transparent);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 2px, 2px 100%;
  content: "";
  inset: 0;
  position: absolute;
}

.se-isl--good span {
  position: relative;
  z-index: 1;
}

.se-core {
  background: linear-gradient(135deg, hsl(var(--primary)), #7c6cf0);
  border-radius: 99px;
  box-shadow: 0 0 0 6px hsl(var(--primary) / 0.15), 0 14px 32px hsl(var(--primary) / 0.35);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  left: 50%;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.8rem;
  position: absolute;
  text-transform: uppercase;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 2;
  animation: se-glow 2.6s ease-in-out infinite;
}

@keyframes se-glow {
  50% {
    box-shadow: 0 0 0 12px hsl(var(--primary) / 0.08), 0 14px 32px hsl(var(--primary) / 0.35);
  }
}

/* ---------- Jornadas: fluxo de quatro etapas ---------- */
.se-journey .se-steps {
  margin-top: 1.25rem;
}

@media (min-width: 1000px) {
  .se-journey .se-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.se-tag {
  align-self: flex-start;
  background: hsl(var(--primary) / 0.12);
  border-radius: 99px;
  color: hsl(var(--primary));
  font-size: 0.66rem;
  font-weight: 600;
  margin-top: 0.15rem;
  padding: 0.2rem 0.55rem;
}

.se-tag:hover {
  background: hsl(var(--primary) / 0.22);
}

/* ---------- Casos de uso: antes e depois ---------- */
.se-cases .se-tabs {
  margin-bottom: 1.25rem;
}

.se-cs {
  border-radius: 24px;
  padding: 1.5rem;
}

.se-cs:not(.is-on) {
  display: none;
}

.se-cs.is-on {
  animation: se-in 0.6s ease both;
}

@keyframes se-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.se-cs-t {
  color: hsl(var(--ink-strong));
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 1.25rem;
}

.se-ba {
  align-items: stretch;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.se-ba > div {
  border-radius: 18px;
  padding: 1rem 1.1rem;
}

.se-ba small {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.se-ba p {
  color: hsl(var(--ink-secondary));
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

.se-b {
  background: rgba(225, 29, 72, 0.06);
  border: 1px dashed rgba(225, 29, 72, 0.4);
}

.se-b small {
  color: #e11d48;
}

.se-a {
  background: hsl(var(--primary) / 0.08);
  border: 1px solid hsl(var(--primary) / 0.45);
}

.se-a small {
  color: hsl(var(--primary));
}

.se-ba-arrow {
  align-self: center;
  animation: sp-nudge 1.6s ease-in-out infinite;
  color: hsl(var(--primary));
  height: 28px;
  width: 28px;
}

@media (max-width: 699px) {
  .se-ba {
    grid-template-columns: minmax(0, 1fr);
  }
  .se-ba-arrow {
    justify-self: center;
    transform: rotate(90deg);
    animation: none;
  }
}

.se-used {
  align-items: center;
  color: hsl(var(--ink-muted));
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.se-used a {
  background: hsl(var(--surface-soft));
  border: 1px solid hsl(var(--primary) / 0.35);
  border-radius: 99px;
  color: hsl(var(--ink-strong));
  font-weight: 600;
  padding: 0.3rem 0.7rem;
}

.se-used a:hover {
  border-color: hsl(var(--primary));
}

.se-bar {
  background: hsl(var(--ink-strong) / 0.08);
  border-radius: 99px;
  height: 3px;
  margin-top: 1.25rem;
  overflow: hidden;
}

.se-bar i {
  background: hsl(var(--primary));
  display: block;
  height: 100%;
  transform-origin: left;
  width: 100%;
}

.se-cs.is-on .se-bar i {
  animation: se-bar 7s linear both;
}

.se-cases:hover .se-bar i,
.se-cases:focus-within .se-bar i {
  animation-play-state: paused;
}

@keyframes se-bar {
  from {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .se-bar {
    display: none;
  }
}

@media (max-width: 899px) {
  .se-node > :not(.sp-ico) {
    grid-column: 2;
  }
  .se-node .sp-ico {
    grid-row: span 4;
  }
}

@media (max-width: 560px) {
  .se-tabs {
    border-radius: 18px;
  }
  .se-tab {
    font-size: 0.82rem;
    padding: 0.5rem 0.85rem;
  }
}

.se-node .se-tag {
  justify-self: start;
}
