/* VoiceBar — floating widget + showcase page */

/* Page layout — neutral cream to match the marketing site */
.vb-page {
  min-height: 100vh;
  padding: 64px 56px 80px;
  position: relative;
  background: #f7f4ee;
}
.vb-page .vb-desktop {
  position: absolute; inset: 0;
  background: none;
  pointer-events: none;
  z-index: 0;
}

.vb-page > * { position: relative; z-index: 1; }

/* Hero */
.vb-hero {
  max-width: 920px;
  margin: 0 auto 80px;
  text-align: center;
}
.vb-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 14px;
}
.vb-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 64px; line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink-1);
  margin: 0 0 16px;
}
.vb-title em { font-style: italic; color: var(--ink-2); }
.vb-sub {
  font-size: 16px; line-height: 1.55;
  color: var(--ink-2);
  max-width: 600px; margin: 0 auto 48px;
}
.vb-h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 36px; line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin: 6px 0 0;
}

.vb-stage {
  display: flex; justify-content: center;
  padding: 32px 0;
  position: relative;
}
/* Soft halo under hero bar — color shifts by state */
.vb-stage::before {
  content: ''; position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -45%);
  width: 600px; height: 200px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  background: var(--accent);
  transition: background .3s, opacity .3s;
  z-index: 0;
}
.vb-stage[data-state="listening"]::before { background: #ff6b5e; opacity: 0.35; }
.vb-stage[data-state="processing"]::before { background: var(--accent); opacity: 0.45; }
.vb-stage[data-state="result"]::before { background: var(--accent); opacity: 0.55; }

.vb-hint {
  margin-top: 24px;
  font-size: 13px; color: var(--ink-3);
  text-align: center;
}

/* ─── The VoiceBar itself ─────────────────────────────────── */

.vb {
  position: relative;
  display: flex; align-items: center;
  gap: 14px;
  height: 64px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: oklch(20% 0.005 60);
  color: oklch(96% 0.005 85);
  box-shadow:
    inset 0 0.5px 0 rgba(255,255,255,0.08),
    inset 0 -0.5px 0 rgba(0,0,0,0.4),
    0 1px 0 rgba(0,0,0,0.1),
    0 18px 40px -10px rgba(0,0,0,0.4),
    0 6px 16px -8px rgba(0,0,0,0.3);
  min-width: 520px; max-width: 720px;
  transition: min-width .25s cubic-bezier(.2,.7,.3,1), background .2s, box-shadow .2s;
  z-index: 1;
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
}
.vb.vb-result { min-width: 680px; }

/* ─── Left mic button ─── */
.vb-left { flex-shrink: 0; }
.vb-mic {
  width: 48px; height: 48px; border-radius: 50%;
  border: 0;
  background: oklch(28% 0.005 60);
  color: oklch(96% 0.005 85);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  position: relative;
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.1);
}
.vb-mic:hover { background: oklch(34% 0.005 60); }
.vb-mic:active { transform: scale(0.96); }
.vb-mic-rec {
  background: oklch(60% 0.20 25);
  color: white;
  box-shadow:
    inset 0 0.5px 0 rgba(255,255,255,0.18),
    0 0 0 4px oklch(60% 0.20 25 / 0.18);
}
.vb-mic-rec:hover { background: oklch(65% 0.20 25); }
.vb-mic-done {
  background: var(--accent);
  color: var(--accent-ink);
}
.vb-mic-done:hover { filter: brightness(0.95); }
.vb-mic-busy {
  background: oklch(24% 0.005 60);
}
.vb-stop {
  width: 14px; height: 14px; border-radius: 3px;
  background: white;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.18);
}
.vb-pulse {
  position: absolute; inset: -6px; border-radius: 50%;
  background: oklch(60% 0.20 25);
  opacity: 0.55;
  animation: vbPulse 1.4s ease-out infinite;
  pointer-events: none;
}
@keyframes vbPulse {
  0%   { transform: scale(0.8); opacity: 0.55; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ─── Middle: state content ─── */
.vb-mid {
  flex: 1; min-width: 0;
  display: flex; align-items: center;
  height: 100%;
  padding: 0 6px;
}

.vb-stack {
  display: flex; flex-direction: column; gap: 2px;
}
.vb-line-1 {
  font-size: 14px; font-weight: 600;
  color: oklch(96% 0.005 85);
  display: flex; align-items: center;
}
.vb-line-2 {
  font-size: 11.5px; color: oklch(65% 0.008 85);
  display: flex; align-items: center; gap: 4px;
}
.vb-line-2 kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: oklch(28% 0.005 60);
  border-radius: 4px;
  font-family: inherit; font-size: 10.5px; font-weight: 500;
  color: oklch(90% 0.005 85);
  border: 0.5px solid oklch(36% 0.005 60);
}

.vb-dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.vb-dots i {
  width: 4px; height: 4px; border-radius: 50%;
  background: oklch(70% 0.008 85);
  animation: vbDot 1.2s ease-in-out infinite;
}
.vb-dots i:nth-child(2) { animation-delay: 0.15s; }
.vb-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes vbDot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

/* Waveform */
.vb-wave {
  display: flex; align-items: center;
  gap: 2.5px; height: 32px; width: 100%;
}
.vb-wave span {
  flex: 1; min-height: 4px;
  background: linear-gradient(180deg, var(--accent), color-mix(in oklch, var(--accent) 70%, black));
  border-radius: 999px;
  transition: height .08s ease-out;
}

/* Result text */
.vb-result-text {
  display: flex; align-items: center;
  height: 100%;
}
.vb-result-line {
  font-size: 13.5px; line-height: 1.4;
  color: oklch(94% 0.005 85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 320px;
}

/* ─── Right cluster ─── */
.vb-right {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  padding-right: 4px;
}
.vb-meta { font-size: 11.5px; color: oklch(65% 0.008 85); }
.vb-timer { font-size: 14px; font-weight: 500; color: oklch(96% 0.005 85); }

.vb-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px;
  border-radius: 999px;
  font-size: 11px; font-weight: 500;
  background: oklch(28% 0.005 60);
  color: oklch(88% 0.005 85);
  border: 0.5px solid oklch(34% 0.005 60);
  white-space: nowrap;
}
.vb-chip-mute { background: oklch(24% 0.005 60); }
.vb-chip-rec {
  background: oklch(60% 0.20 25);
  color: white;
  border-color: transparent;
}
.vb-chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: white;
  animation: vbBlink 1.2s ease-in-out infinite;
}
@keyframes vbBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.vb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: 999px; border: 0;
  background: oklch(28% 0.005 60);
  color: oklch(95% 0.005 85);
  font: inherit; font-size: 12px; font-weight: 500;
  cursor: pointer;
  transition: background .12s;
}
.vb-btn:hover { background: oklch(34% 0.005 60); }
.vb-btn-ghost { background: transparent; }
.vb-btn-ghost:hover { background: oklch(28% 0.005 60); }
.vb-btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.vb-btn-accent:hover { filter: brightness(0.95); background: var(--accent); }

/* ─── Gallery sections ─── */
.vb-gallery {
  max-width: 1100px;
  margin: 0 auto 80px;
}
.vb-gallery-head {
  margin-bottom: 36px;
}
.vb-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.vb-row:first-of-type { border-top: 0; }
.vb-row-meta { padding-right: 20px; }
.vb-row-label {
  font-size: 17px; font-weight: 600;
  color: var(--ink-1);
  margin-bottom: 6px;
}
.vb-row-caption {
  font-size: 13px; line-height: 1.55;
  color: var(--ink-3);
}
.vb-row-bar {
  display: flex; justify-content: flex-start;
  position: relative;
}
/* slight glow under bars in gallery */
.vb-row-bar::before {
  content: ''; position: absolute;
  left: 0; right: 30%; top: 50%;
  height: 30px; transform: translateY(-50%);
  filter: blur(28px);
  background: rgba(0,0,0,0.15);
  border-radius: 50%;
  z-index: 0;
}
.vb-row-bar .vb { position: relative; z-index: 1; }

/* Anatomy */
.vb-anatomy {
  position: relative;
  padding: 100px 80px 140px;
  display: flex; justify-content: center;
}
.vb-anno {
  position: absolute;
  font-size: 11.5px;
  color: var(--ink-3);
  display: flex; align-items: flex-end; gap: 8px;
  max-width: 220px;
  line-height: 1.45;
}
.vb-anno > span {
  background: var(--bg-card);
  padding: 8px 12px;
  border-radius: 10px;
  border: 0.5px solid var(--line);
  box-shadow: var(--shadow-card);
}
.vb-anno::after {
  content: ''; display: block;
  width: 1px; background: var(--ink-3);
  position: absolute;
  opacity: 0.3;
}
.vb-anno-1 {
  left: 50px; top: 30px;
}
.vb-anno-1::after { left: 50%; top: 100%; height: 56px; }
.vb-anno-2 {
  left: 50%; top: 28px; transform: translateX(-50%);
  text-align: center;
}
.vb-anno-2::after { left: 50%; top: 100%; height: 60px; }
.vb-anno-3 {
  right: 50px; top: 28px;
  text-align: right;
}
.vb-anno-3::after { right: 30px; top: 100%; height: 58px; }

/* Footer */
.vb-foot {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 22px;
  border: 0.5px solid var(--line);
  padding: 24px 32px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: var(--shadow-card);
}
.vb-foot-text { flex: 1; }
.vb-foot .btn { text-decoration: none; }
