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

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

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

/* Número do passo no kicker (1 desafio, 2 solução, 3 produtos...) */
.sr-step {
  align-items: center;
  background: hsl(var(--primary));
  border-radius: 50%;
  color: #fff;
  display: inline-grid;
  font-size: 0.68rem;
  height: 1.5rem;
  letter-spacing: 0;
  margin-right: 0.6rem;
  place-items: center;
  vertical-align: middle;
  width: 1.5rem;
}

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

/* ---------- 3. Produtos ---------- */
.sr-prods {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1000px) {
  .sr-prods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sr-prod {
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem;
  transition: border-color 0.25s, transform 0.25s;
}

.js .sr-prod[data-rv].is-in:hover,
.sr-prod:hover,
.sr-prod:focus-visible {
  border-color: hsl(var(--primary) / 0.55);
  transform: translateY(-4px);
}

.sr-prod h3 {
  color: hsl(var(--ink-strong));
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0.45rem 0 0;
}

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

.sr-go {
  color: hsl(var(--primary));
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: auto;
  padding-top: 0.4rem;
}

.sr-go::after {
  content: " →";
  display: inline-block;
  transition: transform 0.25s;
}

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

/* ---------- 4. Exemplo prático: passos com cena sincronizada ---------- */
.sr-story {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .sr-story {
    align-items: center;
    gap: 3rem;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.sr-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr-st {
  align-items: flex-start;
  background: none;
  border: 1px solid transparent;
  border-radius: 18px;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 0.9rem;
  overflow: hidden;
  padding: 0.8rem 1rem;
  position: relative;
  text-align: left;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
  width: 100%;
}

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

.sr-st small {
  color: hsl(var(--ink-muted));
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
  margin-top: 0.15rem;
}

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

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

.sr-st[aria-pressed="true"] {
  background: hsl(var(--surface-muted));
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 14px 34px hsl(var(--primary) / 0.14);
}

.sr-st[aria-pressed="true"] .sr-n {
  background: hsl(var(--primary));
  color: #fff;
}

/* Barra de progresso do passo ativo (só no modo automático) */
.sr-st::after {
  background: linear-gradient(90deg, hsl(var(--primary)), #4ad6ee);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  width: 100%;
}

.sr-story.is-auto .sr-st[aria-pressed="true"]::after {
  animation: sr-prog var(--dur, 3600ms) linear forwards;
}

@keyframes sr-prog {
  to { transform: scaleX(1); }
}

.sr-scene {
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--ink-strong) / 0.08);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.25);
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

.sr-scene::before {
  background: radial-gradient(ellipse at 50% 40%, hsl(var(--primary) / 0.18), transparent 65%);
  content: "";
  inset: 0;
  position: absolute;
}

html[data-theme="light"] .sr-scene {
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}

.sr-sc {
  align-items: center;
  display: flex;
  inset: 0 0 2rem;
  justify-content: center;
  opacity: 0;
  padding: 1.5rem;
  position: absolute;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  visibility: hidden;
}

.sr-sc.is-on {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.sr-card {
  background: hsl(var(--surface-muted));
  border: 1px solid hsl(var(--ink-strong) / 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem;
  width: min(340px, 100%);
}

.sr-card-lb {
  color: hsl(var(--primary));
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.sr-row {
  align-items: center;
  border-radius: 12px;
  color: hsl(var(--ink-strong));
  display: flex;
  font-size: 0.9rem;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
}

.sr-row i {
  border-radius: 50%;
  display: grid;
  flex: none;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  height: 22px;
  place-items: center;
  width: 22px;
}

.sr-row.ok i {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
}

.sr-row.off {
  color: hsl(var(--ink-muted));
}

.sr-row.off i {
  background: hsl(var(--ink-muted) / 0.14);
  color: hsl(var(--ink-muted));
}

.sr-row.new {
  background: hsl(var(--primary) / 0.1);
}

.sr-row.new i {
  background: hsl(var(--primary));
  color: #fff;
}

.sr-sc.is-on .sr-row {
  animation: sr-rowin 0.5s ease both;
}

.sr-sc.is-on .sr-row:nth-child(3) { animation-delay: 0.12s; }
.sr-sc.is-on .sr-row:nth-child(4) { animation-delay: 0.24s; }
.sr-sc.is-on .sr-row:nth-child(5) { animation-delay: 0.36s; }

@keyframes sr-rowin {
  from { opacity: 0; transform: translateX(-10px); }
}

.sr-chip {
  align-self: flex-start;
  background: linear-gradient(135deg, hsl(var(--primary)), #7c6cf0);
  border-radius: 99px;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-top: 0.4rem;
  padding: 0.4rem 0.75rem;
  text-transform: uppercase;
}

/* Celular simplificado do passo 4 */
.sr-mini-phone {
  background: linear-gradient(145deg, #3a4357, #10141e 40%, #262d3d);
  border-radius: 30px;
  box-shadow: 0 0 0 1px #59647e, 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 50px hsl(var(--primary) / 0.22);
  padding: 7px;
  width: 170px;
}

.sr-mp-scr {
  align-items: center;
  background: linear-gradient(170deg, #1d2440, #0b0f1c);
  border-radius: 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 290px;
  justify-content: center;
  position: relative;
}

.sr-mp-logo {
  background: linear-gradient(135deg, hsl(var(--primary)), #7c6cf0);
  border-radius: 16px;
  display: grid;
  font-size: 1rem;
  font-weight: 700;
  height: 3.2rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  place-items: center;
  width: 3.2rem;
}

.sr-mp-scr b {
  font-size: 0.95rem;
  font-weight: 600;
}

.sr-mp-scr small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
}

.sr-mp-dot {
  animation: sr-pulse2 1.8s ease-in-out infinite;
  background: #10b981;
  border-radius: 50%;
  height: 8px;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 8px;
}

@keyframes sr-pulse2 {
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.25); }
}

.sr-mp-call {
  background: #10b981;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 1.2rem;
  padding: 0.5rem 1.4rem;
}

.sr-lm {
  bottom: 0.8rem;
  color: hsl(var(--ink-muted));
  font-size: 0.62rem;
  left: 0;
  letter-spacing: 0.16em;
  margin: 0;
  position: absolute;
  right: 0;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- FAQ ---------- */
.sr-faq {
  max-width: 900px;
}

/* ---------- Respeitar "reduzir movimento": estado final visível ---------- */
@media (prefers-reduced-motion: reduce) {
  .sr-sc {
    transition: none;
  }
}

.sr-head--c {
  align-items: center;
  text-align: center;
}

/* ---------- Hero: raio-x da marca (o cliente vê a sua marca, a Flux opera) ---------- */
.sr-hero {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 2.5rem auto 0;
  min-height: 320px;
  overflow: hidden;
  padding: 1.5rem 0;
  position: relative;
  width: min(1000px, 100%);
}

.sr-hero .sp-wave {
  height: 240px;
  width: 240px;
}

.sr-xray {
  height: 230px;
  position: relative;
  width: min(540px, 100%);
  z-index: 2;
}

.sr-layer {
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  inset: 0;
  justify-content: space-between;
  padding: 1.1rem;
  position: absolute;
  text-align: left;
}

.sr-layer--brand {
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--ink-strong) / 0.1);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35), 0 0 60px hsl(var(--primary) / 0.16);
}

html[data-theme="light"] .sr-layer--brand {
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12), 0 0 60px hsl(var(--primary) / 0.12);
}

.sr-layer--flux {
  animation: sr-reveal 7s ease-in-out infinite;
  background: linear-gradient(135deg, hsl(var(--primary)), #7c6cf0);
  clip-path: inset(0 50% 0 0 round 24px);
  color: #fff;
}

@keyframes sr-reveal {
  0%, 8% { clip-path: inset(0 94% 0 0 round 24px); }
  46%, 58% { clip-path: inset(0 6% 0 0 round 24px); }
  96%, 100% { clip-path: inset(0 94% 0 0 round 24px); }
}

.sr-scan {
  animation: sr-scan 7s ease-in-out infinite;
  background: linear-gradient(180deg, transparent, #4ad6ee, transparent);
  bottom: -10px;
  box-shadow: 0 0 18px #4ad6ee;
  left: 50%;
  position: absolute;
  top: -10px;
  width: 2px;
  z-index: 3;
}

@keyframes sr-scan {
  0%, 8% { left: 6%; }
  46%, 58% { left: 94%; }
  96%, 100% { left: 6%; }
}

.sr-lhd {
  align-items: center;
  display: flex;
  gap: 0.7rem;
}

.sr-lhd b {
  color: hsl(var(--ink-strong));
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.sr-layer--flux .sr-lhd b {
  color: #fff;
}

.sr-lb {
  color: hsl(var(--ink-muted));
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-left: auto;
  text-align: right;
  text-transform: uppercase;
}

.sr-layer--flux .sr-lb {
  color: rgba(255, 255, 255, 0.85);
}

.sr-logo {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 12px;
  color: #fff;
  display: grid;
  flex: none;
  font-size: 0.8rem;
  font-weight: 700;
  height: 2.4rem;
  letter-spacing: 0.06em;
  place-items: center;
  width: 2.4rem;
}

.sr-logo--flux {
  background: rgba(255, 255, 255, 0.2);
}

.sr-tiles {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sr-tile {
  align-items: center;
  background: hsl(var(--surface-muted));
  border: 1px solid hsl(var(--ink-strong) / 0.08);
  border-radius: 16px;
  color: hsl(var(--ink-strong));
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  font-weight: 500;
  gap: 0.5rem;
  line-height: 1.25;
  padding: 0.9rem 0.4rem;
  text-align: center;
}

.sr-tile svg {
  color: #f59e0b;
  height: 22px;
  width: 22px;
}

.sr-layer--flux .sr-tile {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.sr-layer--flux .sr-tile svg {
  color: #fff;
}

/* ---------- 1. Desafio: comparativo ---------- */
.sr-vs {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

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

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

.sr-vhd {
  align-items: center;
  color: hsl(var(--ink-muted));
  display: flex;
  font-size: 0.7rem;
  font-weight: 600;
  gap: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sr-vcard--good .sr-vhd {
  color: hsl(var(--primary));
}

.sr-vhd i {
  background: rgba(244, 63, 94, 0.14);
  border-radius: 50%;
  color: #f43f5e;
  display: grid;
  flex: none;
  font-size: 0.8rem;
  font-style: normal;
  height: 26px;
  place-items: center;
  width: 26px;
}

.sr-vcard--good .sr-vhd i {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
}

.sr-vcard ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr-vcard li {
  color: hsl(var(--ink-secondary));
  font-size: 0.92rem;
  line-height: 1.45;
  padding-left: 1.1rem;
  position: relative;
}

.sr-vcard li::before {
  background: hsl(var(--ink-muted) / 0.5);
  border-radius: 50%;
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  top: 0.55em;
  width: 7px;
}

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

/* Barreiras: o pacote bate na primeira e volta */
.sr-walls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 30px;
  padding-left: 1.6rem;
  position: relative;
}

.sr-walls::before {
  animation: sr-bounce 2.6s ease-in-out infinite;
  background: #f43f5e;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(244, 63, 94, 0.16);
  content: "";
  height: 10px;
  left: 0;
  margin-top: -5px;
  position: absolute;
  top: 50%;
  width: 10px;
}

@keyframes sr-bounce {
  0%, 100% { transform: translateX(0); }
  45% { transform: translateX(8px); }
  55% { transform: translateX(2px); }
}

.sr-walls span {
  background: rgba(244, 63, 94, 0.08);
  border: 1px dashed rgba(244, 63, 94, 0.45);
  border-radius: 10px;
  color: hsl(var(--ink-secondary));
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
}

/* Caminho livre: pacotes seguindo direto */
.sr-road {
  background: hsl(var(--primary) / 0.12);
  border-radius: 99px;
  height: 30px;
  overflow: hidden;
  position: relative;
}

.sr-road i {
  animation: sr-run 2.4s linear infinite;
  background: hsl(var(--primary));
  border-radius: 50%;
  box-shadow: 0 0 0 5px hsl(var(--primary) / 0.2);
  height: 10px;
  left: -12px;
  position: absolute;
  top: 10px;
  width: 10px;
}

.sr-road i:nth-child(2) { animation-delay: -0.8s; background: #4ad6ee; }
.sr-road i:nth-child(3) { animation-delay: -1.6s; background: #a37aff; }

@keyframes sr-run {
  to { left: 100%; }
}

/* ---------- 2. Como resolve: árvore multi-tenant ---------- */
.sr-tree {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
}

.sr-lane {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sr-lane-lb {
  color: hsl(var(--ink-muted));
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sr-root {
  align-items: center;
  background: hsl(var(--surface-muted));
  border: 1px solid hsl(var(--primary) / 0.45);
  border-radius: 20px;
  box-shadow: 0 20px 48px hsl(var(--primary) / 0.16);
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  text-align: left;
}

.sr-root b {
  color: hsl(var(--ink-strong));
  display: block;
  font-weight: 600;
}

.sr-root small {
  color: hsl(var(--ink-muted));
  display: block;
  font-size: 0.82rem;
}

.sr-branches {
  height: 56px;
  position: relative;
}

.sr-trunk,
.sr-drop {
  background: repeating-linear-gradient(180deg, hsl(var(--primary) / 0.6) 0 6px, transparent 6px 12px);
  height: 28px;
  position: absolute;
  width: 2px;
}

.sr-trunk {
  left: 50%;
  top: 0;
}

.sr-bar {
  background: hsl(var(--primary) / 0.45);
  height: 2px;
  left: calc(100% / 6);
  position: absolute;
  right: calc(100% / 6);
  top: 28px;
}

.sr-drop {
  top: 28px;
}

.sr-drop.d1 { left: calc(100% / 6); }
.sr-drop.d2 { left: 50%; }
.sr-drop.d3 { left: calc(500% / 6); }

.sr-trunk i,
.sr-drop i {
  animation: sr-down 2.2s linear infinite;
  background: hsl(var(--primary));
  border-radius: 50%;
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.2);
  height: 8px;
  left: -3px;
  position: absolute;
  top: 0;
  width: 8px;
}

.sr-drop i {
  animation-delay: 1.1s;
}

.sr-drop.d2 i { animation-delay: 1.3s; }
.sr-drop.d3 i { animation-delay: 1.5s; }

@keyframes sr-down {
  0% { opacity: 0; top: -4px; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; top: calc(100% - 4px); }
}

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

.sr-tenant {
  align-items: center;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--ink-strong) / 0.1);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 0.8rem;
  position: relative;
  text-align: center;
}

.sr-tenant::after {
  background: repeating-linear-gradient(180deg, hsl(var(--primary) / 0.45) 0 5px, transparent 5px 10px);
  bottom: -26px;
  content: "";
  height: 26px;
  left: 50%;
  position: absolute;
  width: 2px;
}

.sr-tn {
  color: hsl(var(--primary));
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sr-tenant b {
  color: hsl(var(--ink-strong));
  font-weight: 600;
}

.sr-tenant small {
  color: hsl(var(--ink-muted));
  font-size: 0.8rem;
  line-height: 1.4;
}

.sr-lock {
  align-items: center;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 99px;
  color: #10b981;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 600;
  gap: 0.3rem;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
  padding: 0.25rem 0.55rem;
  text-transform: uppercase;
}

html[data-theme="light"] .sr-lock {
  color: #047857;
}

.sr-lock svg {
  height: 12px;
  width: 12px;
}

.sr-lane--back {
  margin-top: 2.1rem;
}

.sr-lane--back .sr-lane-lb {
  order: 2;
}

.sr-base {
  background: linear-gradient(135deg, hsl(var(--primary)), #7c6cf0);
  border-radius: 20px;
  box-shadow: 0 20px 48px hsl(var(--primary) / 0.32);
  color: #fff;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1rem;
  width: 100%;
}

.sr-base span {
  align-items: center;
  display: flex;
  font-size: 0.88rem;
  font-weight: 600;
  gap: 0.55rem;
  justify-content: center;
  text-align: center;
}

.sr-base svg {
  flex: none;
  height: 20px;
  width: 20px;
}

@media (max-width: 699px) {
  .sr-branches {
    height: 34px;
  }
  .sr-bar,
  .sr-drop {
    display: none;
  }
  .sr-trunk {
    height: 34px;
  }
  .sr-tenants {
    gap: 0.6rem;
    grid-template-columns: 1fr;
  }
  .sr-tenant::after {
    display: none;
  }
  .sr-lane--back {
    margin-top: 1.25rem;
  }
  .sr-base {
    grid-template-columns: 1fr;
  }
  .sr-base span {
    justify-content: flex-start;
  }
}

/* Quem faz o quê */
.sr-roles {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 2.5rem auto 0;
  max-width: 900px;
}

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

.sr-role {
  border-radius: 20px;
  padding: 1.3rem;
}

.sr-role--flux {
  border-color: hsl(var(--primary) / 0.45);
}

.sr-role-hd {
  color: hsl(var(--ink-strong));
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.sr-role ol {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr-role li {
  align-items: center;
  color: hsl(var(--ink-secondary));
  display: flex;
  font-size: 0.92rem;
  gap: 0.7rem;
}

.sr-role li span {
  background: rgba(245, 158, 11, 0.16);
  border-radius: 50%;
  color: #d97706;
  display: grid;
  flex: none;
  font-size: 0.75rem;
  font-weight: 600;
  height: 1.6rem;
  place-items: center;
  width: 1.6rem;
}

.sr-role--flux li span {
  background: hsl(var(--primary) / 0.14);
  color: hsl(var(--primary));
}

/* ---------- Cenas próprias do exemplo ---------- */
.sr-box {
  align-items: center;
  border: 1px dashed hsl(var(--ink-strong) / 0.2);
  border-radius: 14px;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  padding: 0.75rem;
}

.sr-box svg {
  color: hsl(var(--ink-muted));
  flex: none;
  height: 28px;
  width: 28px;
}

.sr-box b {
  color: hsl(var(--ink-strong));
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.sr-box small {
  color: hsl(var(--ink-muted));
  display: block;
  font-size: 0.78rem;
}

.sr-row.off i {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.sr-port {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(320px, 100%);
}

.sr-num {
  background: hsl(var(--surface-muted));
  border: 1px solid hsl(var(--ink-strong) / 0.1);
  border-radius: 16px;
  color: hsl(var(--ink-secondary));
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.9rem 1.1rem;
  text-align: center;
  width: 100%;
}

.sr-num--new {
  background: linear-gradient(135deg, hsl(var(--primary)), #7c6cf0);
  border-color: transparent;
  box-shadow: 0 16px 36px hsl(var(--primary) / 0.3);
  color: #fff;
}

.sr-arrow {
  background: repeating-linear-gradient(180deg, hsl(var(--primary) / 0.6) 0 6px, transparent 6px 12px);
  height: 56px;
  position: relative;
  width: 2px;
}

.sr-arrow i {
  animation: sr-down 1.6s linear infinite;
  background: hsl(var(--primary));
  border-radius: 50%;
  box-shadow: 0 0 0 5px hsl(var(--primary) / 0.2);
  height: 10px;
  left: -4px;
  position: absolute;
  width: 10px;
}

.sr-bars {
  align-items: flex-end;
  display: flex;
  gap: 0.5rem;
  height: 70px;
  margin-bottom: 0.25rem;
}

.sr-bars i {
  background: linear-gradient(180deg, hsl(var(--primary)), #7c6cf0);
  border-radius: 8px 8px 3px 3px;
  flex: 1;
  height: var(--h, 70%);
  opacity: 0.85;
  transform-origin: bottom;
}

.sr-sc.is-on .sr-bars i {
  animation: sr-grow 0.5s ease both;
}

.sr-sc.is-on .sr-bars i:nth-child(2) { animation-delay: 0.1s; }
.sr-sc.is-on .sr-bars i:nth-child(3) { animation-delay: 0.2s; }
.sr-sc.is-on .sr-bars i:nth-child(4) { animation-delay: 0.3s; }
.sr-sc.is-on .sr-bars i:nth-child(5) { animation-delay: 0.4s; }

@keyframes sr-grow {
  from { transform: scaleY(0); }
}

/* ---------- Reduzir movimento: quadro estático e legível ---------- */
@media (prefers-reduced-motion: reduce) {
  .sr-layer--flux {
    clip-path: inset(0 50% 0 0 round 24px);
  }
  .sr-scan {
    left: 50%;
  }
  .sr-trunk i,
  .sr-drop i,
  .sr-arrow i,
  .sr-road i {
    display: none;
  }
}
