/* Soluções (hub "Todas as soluções"): 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"). */

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

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

.sh-step {
  background: hsl(var(--primary) / 0.14);
  border-radius: 99px;
  display: inline-block;
  letter-spacing: 0.08em;
  margin-right: 0.7rem;
  padding: 0.2rem 0.55rem;
}

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

/* ---------- Hero: seis segmentos, uma plataforma ---------- */
.sh-conv {
  margin: 3rem auto 0;
  max-width: 900px;
  width: 100%;
}

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

@media (min-width: 760px) {
  .sh-segs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.sh-seg {
  align-items: center;
  animation: sh-seg 9s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1.5s);
  background: hsl(var(--surface-soft));
  border: 1px solid hsl(var(--ink-strong) / 0.12);
  border-radius: 16px;
  color: hsl(var(--ink-strong));
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 0.45rem;
  line-height: 1.25;
  padding: 0.8rem 0.4rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}

.sh-seg:hover,
.sh-seg:focus-visible {
  border-color: hsl(var(--primary) / 0.6);
  transform: translateY(-2px);
}

.sh-seg svg {
  color: hsl(var(--primary));
  height: 22px;
  width: 22px;
}

@keyframes sh-seg {
  0%, 14%, 100% { border-color: hsl(var(--ink-strong) / 0.12); box-shadow: none; }
  5%, 10% { border-color: hsl(var(--primary) / 0.7); box-shadow: 0 10px 26px hsl(var(--primary) / 0.25); }
}

.sh-lines {
  display: block;
  height: 70px;
  width: 100%;
}

.sh-lines path {
  animation: sh-flow 2.4s linear infinite;
  fill: none;
  stroke: hsl(var(--primary) / 0.55);
  stroke-dasharray: 4 7;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

@keyframes sh-flow {
  to { stroke-dashoffset: -44; }
}

.sh-plat {
  align-items: center;
  background: linear-gradient(135deg, hsl(var(--primary)), #7c6cf0);
  border-radius: 20px;
  box-shadow: 0 20px 48px hsl(var(--primary) / 0.32);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
  margin: 0 auto;
  padding: 0.9rem 1.2rem;
  width: min(560px, 100%);
}

.sh-plat-lb {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sh-plat-ls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.sh-plat-ls span {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
}

/* ---------- 01 Mapa de soluções ---------- */
.sh-map {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .sh-map {
    align-items: start;
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
  }
}

.sh-tabs {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 960px) {
  .sh-tabs { grid-template-columns: 1fr; }
}

.sh-tab {
  align-items: center;
  background: hsl(var(--surface-soft));
  border: 1px solid hsl(var(--ink-strong) / 0.1);
  border-radius: 16px;
  color: hsl(var(--ink-secondary));
  display: flex;
  font-size: 0.88rem;
  font-weight: 600;
  gap: 0.7rem;
  line-height: 1.25;
  padding: 0.8rem 0.9rem;
  text-align: left;
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.sh-tab svg {
  color: hsl(var(--primary));
  flex: none;
  height: 20px;
  transition: color 0.3s;
  width: 20px;
}

.sh-tab:hover {
  border-color: hsl(var(--primary) / 0.45);
  color: hsl(var(--ink-strong));
}

.sh-tab.is-on {
  background: linear-gradient(135deg, hsl(var(--primary)), #7c6cf0);
  border-color: transparent;
  box-shadow: 0 14px 30px hsl(var(--primary) / 0.3);
  color: #fff;
}

.sh-tab.is-on svg {
  color: #fff;
}

.sh-board {
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
  padding: 1.4rem;
}

.sh-sum {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  min-height: 7.5rem;
}

.sh-sum-tx {
  flex: 1 1 280px;
  min-width: 0;
}

.sh-sum small {
  color: hsl(var(--primary));
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sh-sum b {
  color: hsl(var(--ink-strong));
  display: block;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}

.sh-sum p {
  color: hsl(var(--ink-muted));
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0.4rem 0 0;
}

.sh-sum-go {
  background: hsl(var(--primary));
  border-radius: 99px;
  color: #fff;
  flex: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  transition: filter 0.25s, transform 0.25s;
  white-space: nowrap;
}

.sh-sum-go:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.sh-swap {
  animation: sh-swap 0.5s ease;
}

@keyframes sh-swap {
  from { opacity: 0; transform: translateY(8px); }
}

.sh-progress {
  background: hsl(var(--primary) / 0.12);
  border-radius: 99px;
  height: 3px;
  overflow: hidden;
}

.sh-progress i {
  background: hsl(var(--primary));
  border-radius: 99px;
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  width: 100%;
}

.sh-map.is-auto .sh-progress i {
  animation: sh-prog var(--dur, 4200ms) linear;
}

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

.sh-layer {
  border: 1px dashed hsl(var(--ink-strong) / 0.14);
  border-radius: 18px;
  padding: 0.9rem 1rem 1rem;
}

.sh-layer-lb {
  align-items: center;
  color: hsl(var(--ink-secondary));
  display: flex;
  font-size: 0.66rem;
  font-weight: 600;
  gap: 0.55rem;
  letter-spacing: 0.2em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.sh-layer-lb i {
  background: linear-gradient(135deg, hsl(var(--primary)), #7c6cf0);
  border-radius: 4px;
  height: 10px;
  width: 10px;
}

.sh-layer-lb--net i {
  background: transparent;
  border: 2px solid hsl(var(--primary));
}

.sh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sh-chip {
  background: hsl(var(--surface-soft));
  border: 1px solid hsl(var(--ink-strong) / 0.12);
  border-radius: 99px;
  color: hsl(var(--ink-strong));
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  transition: opacity 0.4s, background 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s, transform 0.4s;
}

.sh-chip:hover {
  border-color: hsl(var(--primary) / 0.6);
}

.js .sh-map .sh-chip {
  opacity: 0.38;
}

.js .sh-map .sh-chip.is-in {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  box-shadow: 0 8px 20px hsl(var(--primary) / 0.3);
  color: #fff;
  opacity: 1;
  transform: translateY(-1px);
}

.sh-flow {
  display: flex;
  gap: 18%;
  height: 26px;
  justify-content: center;
  margin: -0.4rem 0;
}

.sh-flow i {
  background: repeating-linear-gradient(hsl(var(--primary) / 0.55) 0 4px, transparent 4px 8px);
  height: 100%;
  position: relative;
  width: 2px;
}

.sh-flow i::after {
  animation: sh-drop 1.6s linear infinite;
  background: hsl(var(--primary));
  border-radius: 50%;
  content: "";
  height: 8px;
  left: -3px;
  position: absolute;
  top: 0;
  width: 8px;
}

.sh-flow i:nth-child(2)::after { animation-delay: 0.5s; }
.sh-flow i:nth-child(3)::after { animation-delay: 1s; }

@keyframes sh-drop {
  from { opacity: 0; top: -4px; }
  25% { opacity: 1; }
  to { opacity: 0; top: 100%; }
}

.sh-count {
  color: hsl(var(--ink-muted));
  font-size: 0.85rem;
  margin: 0;
}

.sh-count b {
  color: hsl(var(--primary));
  font-size: 1.1rem;
}

/* ---------- 02 Como escolher ---------- */
.sh-pick {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

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

.sh-pk {
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.35rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

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

.sh-pk-n {
  align-items: center;
  background: hsl(var(--primary) / 0.14);
  border-radius: 50%;
  color: hsl(var(--primary));
  display: grid;
  font-size: 0.85rem;
  font-weight: 600;
  height: 2rem;
  place-items: center;
  width: 2rem;
}

.sh-pk-q {
  color: hsl(var(--ink-strong));
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
}

.sh-pk-a {
  color: hsl(var(--ink-muted));
  font-size: 0.88rem;
  line-height: 1.5;
}

.sh-pk-go {
  color: hsl(var(--primary));
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: auto;
  padding-top: 0.3rem;
}

.sh-pk--cta {
  background: linear-gradient(135deg, hsl(var(--primary)), #7c6cf0);
  border: 1px solid transparent;
  box-shadow: 0 20px 48px hsl(var(--primary) / 0.28);
}

.sh-pk--cta .sh-pk-n {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.sh-pk--cta .sh-pk-q,
.sh-pk--cta .sh-pk-go {
  color: #fff;
}

.sh-pk--cta .sh-pk-a {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- 04 Todas as soluções ---------- */
.sh-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

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

.sh-card {
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

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

.sh-card h3 {
  color: hsl(var(--ink-strong));
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
}

.sh-card p {
  color: hsl(var(--ink-muted));
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

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

/* ---------- Respeitar "reduzir movimento": estado final visível ---------- */
@media (prefers-reduced-motion: reduce) {
  .sh-flow i::after,
  .sh-progress {
    display: none;
  }
}
