/* ════════════════════════════════════════════
   sections.css — Voice Flow e Órbita de Integrações
   ════════════════════════════════════════════ */

/* ── Voice Flow ── */
.vf-section  { background: var(--cloud); }
.vf-track    { position: relative; height: 330vh; }
.vf-pin      { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vf-wrap     { max-width: 660px; margin: 0 auto; padding: 48px 24px; width: 100%; text-align: center; }
.vf-flow     { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: clamp(28px, 4vh, 48px); }

.vf-step {
  opacity: 0;
  transform: translateY(22px) scale(.97);
  transition: opacity .6s cubic-bezier(.16, .84, .44, 1), transform .6s cubic-bezier(.16, .84, .44, 1);
  margin: 5px 0;
}
.vf-step.vf-in { opacity: 1; transform: translateY(0) scale(1); }

.vf-line {
  width: 2px;
  height: 26px;
  margin: 0 auto;
  background: linear-gradient(to bottom, var(--cl-orange), rgba(217, 119, 87, .18));
  opacity: 0;
  transform: scaleY(.2);
  transform-origin: top;
  transition: opacity .35s ease, transform .45s ease;
}
.vf-line.vf-in { opacity: 1; transform: scaleY(1); }

/* Microfone */
.vf-mic-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vf-mic {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cl-orange) 0%, #C4603A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 28px var(--cl-orange-glow), 0 2px 6px rgba(0, 0, 0, .1);
}
.vf-mic-svg { position: relative; z-index: 1; width: 28px; height: 28px; color: #fff; }
.vf-pulse, .vf-pulse2 {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--cl-orange);
  animation: vfPulse 1.8s ease-out infinite;
}
.vf-pulse2   { inset: -11px; border-color: var(--cl-orange-lt); animation-delay: .4s; }
@keyframes vfPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
.vf-mic-label { font-size: .82rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; }

/* Ondas */
.vf-waves {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 44px;
  padding: 0 16px;
  background: var(--cl-orange-bg);
  border: 1px solid rgba(217, 119, 87, .2);
  border-radius: 12px;
}
.vf-bar { width: 3px; border-radius: 2px; background: var(--cl-orange); animation: vfWave .9s ease-in-out infinite alternate; }
.vf-bar:nth-child(1)  { height: 10px; animation-delay: 0s   }
.vf-bar:nth-child(2)  { height: 22px; animation-delay: .08s }
.vf-bar:nth-child(3)  { height: 34px; animation-delay: .16s }
.vf-bar:nth-child(4)  { height: 26px; animation-delay: .24s }
.vf-bar:nth-child(5)  { height: 40px; animation-delay: .1s  }
.vf-bar:nth-child(6)  { height: 18px; animation-delay: .2s  }
.vf-bar:nth-child(7)  { height: 30px; animation-delay: .28s }
.vf-bar:nth-child(8)  { height: 14px; animation-delay: .04s }
.vf-bar:nth-child(9)  { height: 24px; animation-delay: .18s }
.vf-bar:nth-child(10) { height: 10px; animation-delay: .26s }
.vf-bar:nth-child(11) { height: 28px; animation-delay: .12s }
.vf-bar:nth-child(12) { height: 16px; animation-delay: .22s }
@keyframes vfWave { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1); } }

/* Texto digitado */
.vf-text {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 22px;
  font-size: .98rem;
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 4px 18px rgba(16, 24, 40, .07);
  max-width: 440px;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.vf-cursor {
  display: inline-block;
  width: 2px;
  height: 17px;
  background: var(--cl-orange);
  vertical-align: middle;
  margin-left: 2px;
  animation: vfBlink .8s step-end infinite;
}
@keyframes vfBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Card de resposta */
.vf-response {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  text-align: left;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(16, 24, 40, .09);
  position: relative;
}
.vf-response::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--cl-orange), var(--cl-orange-lt));
}
.vf-resp-head     { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border-lt); }
.vf-avatar        { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vf-avatar img    { width: 30px; height: 30px; object-fit: contain; }
.vf-resp-name     { font-size: .88rem; font-weight: 700; color: var(--ink); }
.vf-resp-tag      { font-size: .68rem; font-weight: 600; color: var(--cl-orange); background: var(--cl-orange-bg); padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(217, 119, 87, .25); }
.vf-resp-body     { font-size: .88rem; color: var(--ink-2); line-height: 1.7; }
.vf-resp-body strong { color: var(--ink); font-weight: 600; }
.vf-resp-body .hl    { color: var(--cl-orange); font-weight: 600; }

/* Mobile: vf vira estático */
@media (max-width: 680px) {
  .vf-track  { height: auto; }
  .vf-pin    { position: static; height: auto; padding: 80px 0 60px; }
  .vf-step   { opacity: 1 !important; transform: none !important; }
  .vf-line   { opacity: 1 !important; transform: scaleY(1) !important; }
  .vf-wrap   { padding: 0 20px; }
}
@media (max-height: 740px) and (min-width: 681px) { .vf-wrap { transform: scale(.82); } }

/* ── Integrações — Órbita ── */
.intg-orbit-wrap {
  position: relative;
  width: 520px;
  height: 520px;
  margin: clamp(50px, 7vh, 80px) auto 0;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(16, 24, 40, .1);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit-ring-1 { width: 210px; height: 210px; }
.orbit-ring-2 { width: 340px; height: 340px; }
.orbit-ring-3 { width: 480px; height: 480px; }
.orbit-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  z-index: 4;
}
.orbit-hub img { height: 44px; width: auto; }
.orbit-logo {
  position: absolute;
  z-index: 3;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .1);
  transition: box-shadow .2s, transform .2s;
}
.orbit-logo:hover { box-shadow: 0 8px 24px rgba(16, 24, 40, .18); transform: scale(1.08); }
.orbit-logo img   { object-fit: contain; display: block; }

/* Mobile: esconde órbita, mostra grid */
.orbit-grid-mobile {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
  max-width: 380px;
  margin-inline: auto;
}
.orbit-grid-mobile-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .07);
}
.orbit-grid-mobile-item img  { width: 40px; height: 40px; object-fit: contain; }
.orbit-grid-mobile-item span { font-size: .72rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.3; }
@media (max-width: 680px) {
  .intg-orbit-wrap  { display: none; }
  .orbit-grid-mobile{ display: grid; }
}
