/* Ensephra — unified wellbeing toolkit launcher */

.toolkit-wrap {
  position: fixed;
  right: 1.75rem;
  bottom: 6.25rem;
  z-index: 500;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.65rem;
}
@media (max-width: 640px) {
  .toolkit-wrap { right: 1rem; bottom: 5.5rem; }
}

.toolkit-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink, #1E2820);
  color: #F5F7F5;
  border: none;
  border-radius: 100px;
  padding: 0.75rem 1.3rem 0.75rem 1.05rem;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(20,30,24,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease;
}
.toolkit-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(20,30,24,0.34); }
.toolkit-fab svg { width: 17px; height: 17px; transition: transform 0.3s ease; }
.toolkit-wrap.open .toolkit-fab svg { transform: rotate(135deg); }
.toolkit-fab .toolkit-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage, #7A9E87);
  box-shadow: 0 0 0 0 rgba(122,158,135,0.6);
  animation: toolkitPulse 2.4s ease-out infinite;
}
.toolkit-wrap.open .toolkit-fab .toolkit-dot { animation: none; opacity: 0; }
@keyframes toolkitPulse {
  0%   { box-shadow: 0 0 0 0 rgba(122,158,135,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(122,158,135,0); }
  100% { box-shadow: 0 0 0 0 rgba(122,158,135,0); }
}

.toolkit-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toolkit-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  color: var(--ink, #1E2820);
  border: 1px solid rgba(122,158,135,0.3);
  border-radius: 100px;
  padding: 0.62rem 1.1rem 0.62rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20,30,24,0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
              opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
}
.toolkit-wrap.open .toolkit-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.toolkit-wrap.open .toolkit-item:nth-child(1) { transition-delay: .20s; }
.toolkit-wrap.open .toolkit-item:nth-child(2) { transition-delay: .16s; }
.toolkit-wrap.open .toolkit-item:nth-child(3) { transition-delay: .12s; }
.toolkit-wrap.open .toolkit-item:nth-child(4) { transition-delay: .08s; }
.toolkit-wrap.open .toolkit-item:nth-child(5) { transition-delay: .04s; }
.toolkit-wrap.open .toolkit-item:nth-child(6) { transition-delay: 0s; }
.toolkit-item:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(20,30,24,0.2); border-color: rgba(122,158,135,0.6); }
.toolkit-item svg { width: 15px; height: 15px; stroke: var(--sage, #7A9E87); fill: none; stroke-width: 1.6; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .toolkit-item { transition: opacity 0.15s ease; transform: none !important; }
  .toolkit-fab .toolkit-dot { animation: none; }
}
