@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
}

.font-display {
  font-family: 'Fraunces', serif;
}

.fade-in {
  animation: fadeIn 0.35s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.row-highlight {
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* Nora avatar — restrained pulse while a call is active */
.nora-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a9c9c4, #8fae9c);
  color: #fff;
  flex-shrink: 0;
}

.nora-avatar.is-active::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid #8fae9c;
  animation: noraPulse 1.8s ease-out infinite;
}

@keyframes noraPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}

.waveform {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.waveform span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  animation: waveBar 1s ease-in-out infinite;
}

.waveform span:nth-child(1) { height: 40%; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 100%; animation-delay: 0.12s; }
.waveform span:nth-child(3) { height: 65%; animation-delay: 0.24s; }
.waveform span:nth-child(4) { height: 90%; animation-delay: 0.36s; }
.waveform span:nth-child(5) { height: 50%; animation-delay: 0.48s; }

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.scrollbar-thin::-webkit-scrollbar { width: 6px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: #e3ddcf; border-radius: 999px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
