/* feature-sections.css: as seções do meio da home: a Vena com as pílulas de
 * vidro sobre a caixa apagada, a faixa escura de voz com grade, a grade de
 * recursos da Inbox e o copiloto de reunião.
 */
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.mode-switch {
  display: inline-flex;
  width: fit-content;
  padding: 4px;
  gap: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font-size: 13px;
  font-weight: 500;
}
.mode-switch > span { padding: 6px 12px; border-radius: 8px; color: var(--text-subtle); }
.mode-switch .is-active { background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow-soft); }

/* As pílulas de vidro flutuam sobre uma caixa apagada: a conversa é uma entre
   muitas, e o vidro mostra isso sem dizer. */
.pill-stage {
  position: relative;
  min-height: 440px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  overflow: hidden;
}
.faded-inbox {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 95%); /* fq-ignore: mask alpha, not a visible color */
  mask-image: linear-gradient(180deg, #000 10%, transparent 95%); /* fq-ignore: mask alpha, not a visible color */
}
.faded-inbox li { display: flex; align-items: center; gap: 12px; }
.faded-inbox i { width: 32px; height: 32px; border-radius: 50%; background: var(--border-strong); flex: none; }
.faded-inbox b { height: 10px; border-radius: 999px; background: var(--border-strong); width: 70%; }
.faded-inbox li:nth-child(even) b { width: 52%; }

.glass-pill {
  position: absolute;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 400px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  box-shadow: var(--shadow-window);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.glass-pill > span:last-child { display: grid; gap: 4px; }
.glass-pill strong { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.glass-pill strong .network-logo { width: 14px; height: 14px; }
.glass-pill .file-chip { margin-top: 6px; }
.pill-contact { top: 56px; left: 24px; }
.pill-vena { right: 24px; bottom: 48px; border-color: var(--accent-border); }

/* A faixa escura, com a grade fina por trás: existe nos dois temas. */
main > section.voice-band {
  max-width: none;
  margin-top: var(--section-space);
  padding: var(--section-space) 28px;
  background-color: var(--band);
  background-image:
    linear-gradient(var(--band-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--band-border) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  color: var(--band-text);
}
.voice-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.voice-band .section-copy > p:not(.eyebrow), .voice-band .check-list li { color: var(--band-text-muted); }
.voice-band .eyebrow, .voice-band .highlight { color: var(--band-accent); }
.features > .showcase-window { margin-top: -8px; }

/* As marcas acesas giram em órbita (section-motion.css) em volta da pílula da Vena falando. */
.glow-field { position: relative; }
.speaking-pill {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--band-border);
  background: var(--band-raised);
  font-size: 13px;
  white-space: nowrap;
  color: var(--band-text-muted);
}
.speaking-pill .orb { width: 28px; height: 28px; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.wave i { width: 2px; height: 40%; border-radius: 2px; background: var(--band-text-muted); animation: wave-bar 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: 0.15s; }
.wave i:nth-child(3) { animation-delay: 0.3s; }
.wave i:nth-child(4) { animation-delay: 0.45s; }
.wave i:nth-child(5) { animation-delay: 0.6s; }
@keyframes wave-bar { 50% { height: 100%; } }

.features { display: grid; gap: 56px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}
.feature-card p { font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.feature-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 96px;
  margin-bottom: 12px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  overflow: hidden;
}
.feature-visual svg { width: 16px; height: 16px; flex: none; }
.glyph-cluster { justify-content: center; gap: 12px; }
.glyph-cluster .logo-tile { width: 44px; height: 44px; }
.merge-visual { justify-content: center; }
.merge-visual i { width: 32px; height: 1px; background: var(--border-strong); }
.merge-visual .logo-tile { width: 40px; height: 40px; }
.merge-visual .logo-tile .network-logo { width: 20px; height: 20px; }
.stat-visual { justify-content: center; }
.stat-visual > span { display: grid; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-raised); }
.stat-visual b { font-size: 18px; color: var(--text); }
.stat-visual em { font-style: normal; font-size: 11px; color: var(--text-subtle); }
.reason-chip, .label-chip, .followup-visual > span, .brief-visual > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reason-chip { border-color: var(--accent-border); color: var(--accent); background: var(--accent-soft); }
.label-chip svg { width: 13px; height: 13px; }
.tone-visual { flex-wrap: wrap; align-content: center; }
.tone-line { flex: 1 1 70%; height: 8px; border-radius: 999px; background: var(--border-strong); }
.tone-line.is-short { flex: 0 1 45%; margin-left: 28px; }
.key-visual { justify-content: center; }
.key-visual kbd { font-size: 14px; padding: 6px 12px; }

/* As peças da reunião passavam 1px da borda no iPhone: o corte segura. */
.meetings-section { align-items: start; overflow-x: clip; }
.meeting-stage { display: grid; gap: 12px; }
.meeting-stage > :last-child { margin-left: clamp(0px, 6vw, 48px); }

@media (max-width: 960px) {
  .split-section, .voice-inner { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  main > section.voice-band { padding: 72px 16px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .pill-stage { min-height: 420px; padding: 16px; }
  .glass-pill { left: 12px; right: 12px; max-width: none; font-size: 13px; }
  .pill-contact { top: 32px; }
  .pill-vena { bottom: 24px; }
  .meeting-stage > :last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wave i { animation: none; height: 60%; }
}

/* Every demo follows the selected theme, including the voice band. */
:root[data-theme="light"] .voice-band {
  --band: var(--surface-muted);
  --band-raised: var(--surface-raised);
  --band-text: var(--text);
  --band-text-muted: var(--text-muted);
  --band-border: var(--border);
  --band-accent: var(--accent);
}
:root[data-theme="light"] .glow-mark { filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--brand) 18%, transparent)); }

.demo-motion.is-demo-visible .feature-visual > *,
.demo-motion.is-demo-visible .glow-tile,
.demo-motion.is-demo-visible .fala,
.demo-motion.is-demo-visible .painel-carta {
  animation: demo-arrive .8s cubic-bezier(.16,1,.3,1) both;
  animation-delay: var(--demo-delay, 0s);
}
.demo-motion.is-demo-visible .glow-tile .network-logo { animation: demo-logo-drift 3.5s ease-in-out infinite; animation-delay: var(--demo-delay, 0s); }
.demo-motion:not(.is-demo-visible) .wave i { animation-play-state: paused; }
@keyframes demo-arrive { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes demo-logo-drift { 50% { translate: 0 -5px; } }
@media (prefers-reduced-motion: reduce) {
  .demo-motion.is-demo-visible .feature-visual > *,
  .demo-motion.is-demo-visible .glow-tile,
  .demo-motion.is-demo-visible .glow-tile .network-logo,
  .demo-motion.is-demo-visible .fala,
  .demo-motion.is-demo-visible .painel-carta,
  .wave i { animation: none; }
}
