/**
 * Voice Recorder Stylesheet
 * High-performance, responsive UI matching Submind and AudioTools design system.
 * Scoped specifically for Tool 9: Voice Recorder.
 */

/* ==========================================================================
   Tool Container & Hero Header
   ========================================================================== */

.voice-recorder-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem 1rem;
}

.recorder-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--accent-light, #EDE9FE);
  color: var(--accent, #7C3AED);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.recorder-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary, #0F172A);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  text-align: center;
}

.recorder-hero-desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary, #475569);
  max-width: 720px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

/* ==========================================================================
   Microphone Permission & Notice Banner
   ========================================================================== */

.mic-notice-banner {
  display: none; /* toggled via JS */
  align-items: flex-start;
  gap: 1rem;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-lg, 16px);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.mic-notice-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #FEF3C7;
  color: #D97706;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.mic-notice-content {
  flex: 1;
}

.mic-notice-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400E;
  margin: 0 0 0.25rem 0;
}

.mic-notice-message {
  font-size: 0.875rem;
  color: #78350F;
  line-height: 1.5;
  margin: 0;
}

.mic-notice-dismiss {
  flex-shrink: 0;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #B45309;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.mic-notice-dismiss:hover {
  background: rgba(180, 83, 9, 0.1);
}

/* ==========================================================================
   Microphone Hardware & DSP Settings Bar
   ========================================================================== */

.recorder-hardware-card {
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-lg, 16px);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
}

.hardware-device-col {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 260px;
}

.hardware-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary, #475569);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hardware-select-wrap {
  position: relative;
  flex: 1;
}

.hardware-select {
  width: 100%;
  padding: 0.55rem 2.25rem 0.55rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary, #0F172A);
  background: var(--bg-surface-secondary, #F1F5F9);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-md, 10px);
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hardware-select:focus {
  border-color: var(--accent, #7C3AED);
  background: #FFFFFF;
}

.hardware-select-arrow {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted, #64748B);
}

.hardware-btn-refresh {
  background: var(--bg-surface-secondary, #F1F5F9);
  border: 1px solid var(--border, #E2E8F0);
  color: var(--text-secondary, #475569);
  border-radius: var(--radius-md, 10px);
  padding: 0.55rem 0.75rem;
  font-size: 0.8125rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.hardware-btn-refresh:hover {
  background: var(--accent-light, #EDE9FE);
  color: var(--accent, #7C3AED);
  border-color: rgba(124, 58, 237, 0.3);
}

.hardware-dsp-toggles {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.dsp-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary, #475569);
  cursor: pointer;
  user-select: none;
}

.dsp-toggle-label input[type="checkbox"] {
  appearance: none;
  width: 32px;
  height: 18px;
  background: #CBD5E1;
  border-radius: 9999px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dsp-toggle-label input[type="checkbox"]::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
}

.dsp-toggle-label input[type="checkbox"]:checked {
  background: var(--accent, #7C3AED);
}

.dsp-toggle-label input[type="checkbox"]:checked::after {
  transform: translateX(14px);
}

/* ==========================================================================
   Active Recording Hub Card
   ========================================================================== */

.recorder-active-card {
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-2xl, 24px);
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.recorder-active-card.is-recording {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 12px 35px -5px rgba(239, 68, 68, 0.1), 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.recorder-active-card.is-paused {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 35px -5px rgba(245, 158, 11, 0.1);
}

/* Status Header */
.recorder-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.recorder-status-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.dot-idle {
  background: #94A3B8;
}

.dot-recording {
  background: #EF4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 1.6s infinite;
}

.dot-paused {
  background: #F59E0B;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.record-status-badge {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary, #475569);
}

.clip-warning-badge {
  display: none; /* toggled via JS */
  align-items: center;
  gap: 0.35rem;
  background: #FEE2E2;
  color: #DC2626;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Digital Timer Display */
.recorder-timer-wrap {
  text-align: center;
  margin: 0.75rem 0 1.5rem 0;
}

.record-timer-display {
  font-family: var(--font-mono, monospace);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary, #0F172A);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: color 0.2s ease;
}

.recorder-active-card.is-recording .record-timer-display {
  color: #DC2626;
}

.recorder-active-card.is-paused .record-timer-display {
  color: #D97706;
}

/* Waveform Canvas Container */
.live-waveform-container {
  width: 100%;
  height: 140px;
  background: #F8FAFC;
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-lg, 16px);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* VU Meter Level Bar */
.vu-meter-bar-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--bg-surface-secondary, #F1F5F9);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md, 10px);
}

.vu-meter-track {
  flex: 1;
  height: 8px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.vu-meter-fill {
  width: 0%;
  height: 100%;
  background: #10B981;
  border-radius: 9999px;
  transition: width 0.08s ease-out, background 0.15s ease;
}

.vu-meter-db-display {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, #64748B);
  width: 60px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Primary Recording Control Buttons
   ========================================================================== */

.recorder-controls-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Big Start Button */
.btn-record-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 10px 25px -4px rgba(124, 58, 237, 0.4), 0 4px 6px -2px rgba(124, 58, 237, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-record-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(124, 58, 237, 0.5), 0 6px 10px -2px rgba(124, 58, 237, 0.25);
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.btn-record-main:active {
  transform: translateY(1px);
}

.btn-record-main:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.5);
  outline-offset: 3px;
}

.btn-record-main svg {
  width: 22px;
  height: 22px;
}

/* Secondary Actions (Pause / Stop / Discard) */
.btn-action-pause {
  display: none; /* toggled via JS */
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  background: #F3F4F6;
  border: 1px solid #D1D5DB;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-pause:hover {
  background: #E5E7EB;
  color: #111827;
}

.btn-action-stop {
  display: none; /* toggled via JS */
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  background: #DC2626;
  border: 1px solid #B91C1C;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
  transition: all 0.15s ease;
}

.btn-action-stop:hover {
  background: #B91C1C;
  transform: translateY(-1px);
}

.btn-action-discard {
  display: none; /* toggled via JS */
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #9CA3AF;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-discard:hover {
  color: #EF4444;
  background: #FEE2E2;
}

/* Keyboard hint below buttons */
.keyboard-hint-row {
  margin-top: 1.5rem;
  text-align: center;
}

.keyboard-shortcut-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted, #64748B);
  background: var(--bg-surface-secondary, #F1F5F9);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border, #E2E8F0);
}

.kbd-badge {
  display: inline-block;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  color: #1E293B;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Post-Recording Review & Export Card
   ========================================================================== */

.record-results-card {
  display: none; /* toggled via JS */
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-2xl, 24px);
  padding: 2.25rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg, 0 10px 25px -3px rgba(0, 0, 0, 0.08));
  animation: slide-up-fade 0.3s ease-out;
}

@keyframes slide-up-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--separator, #F1F5F9);
  padding-bottom: 1rem;
}

.results-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.results-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #0F172A);
  margin: 0;
}

.results-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #D1FAE5;
  color: #065F46;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

/* Review Playback Bar */
.review-player-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #F8FAFC;
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-xl, 20px);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.review-btn-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent, #7C3AED);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
  transition: all 0.15s ease;
}

.review-btn-play:hover {
  background: var(--accent-hover, #6D28D9);
  transform: scale(1.05);
}

.review-scrubber-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.review-scrubber {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
  appearance: none;
}

.review-scrubber::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent, #7C3AED);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease;
}

.review-scrubber::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.review-time-display {
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary, #475569);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Metadata Chips */
.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.meta-chip {
  background: var(--bg-surface-secondary, #F1F5F9);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-md, 10px);
  padding: 0.75rem 1rem;
}

.meta-chip-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted, #64748B);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.meta-chip-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #0F172A);
  font-family: var(--font-mono, monospace);
}

/* Export Settings & Download Bar */
.export-panel-wrap {
  background: #FFFFFF;
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-xl, 20px);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.export-options-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .export-options-grid {
    grid-template-columns: 1fr;
  }
}

.export-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.export-field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary, #475569);
}

.export-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary, #0F172A);
  background: #F8FAFC;
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-md, 10px);
  outline: none;
  transition: all 0.15s ease;
}

.export-input:focus {
  border-color: var(--accent, #7C3AED);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.download-actions-cluster {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-download-mp3 {
  flex: 1;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  background: #7C3AED;
  border: none;
  border-radius: var(--radius-pill, 9999px);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  transition: all 0.15s ease;
}

.btn-download-mp3:hover {
  background: #6D28D9;
  transform: translateY(-1px);
}

.btn-download-mp3:disabled {
  background: #94A3B8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-download-wav {
  flex: 1;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E293B;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill, 9999px);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-download-wav:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: translateY(-1px);
}

.btn-record-another {
  background: transparent;
  color: var(--text-secondary, #475569);
  border: 1px dashed var(--border, #E2E8F0);
  border-radius: var(--radius-pill, 9999px);
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-record-another:hover {
  border-color: var(--accent, #7C3AED);
  color: var(--accent, #7C3AED);
  background: #F5F3FF;
}

/* ==========================================================================
   Content Sections: Steps, Features, Tech Specs, FAQ
   ========================================================================== */

.content-section {
  margin-top: 3.5rem;
}

.section-heading-cluster {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--accent-light, #EDE9FE);
  color: var(--accent, #7C3AED);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-primary, #0F172A);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary, #475569);
  line-height: 1.6;
}

/* Step cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.step-card {
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-xl, 20px);
  padding: 1.75rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.07));
}

.step-number-pill {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-light, #EDE9FE);
  color: var(--accent, #7C3AED);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary, #0F172A);
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.875rem;
  color: var(--text-secondary, #475569);
  line-height: 1.55;
  margin: 0;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.feature-box {
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-xl, 20px);
  padding: 1.75rem;
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #F1F5F9;
  color: var(--accent, #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-box-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary, #0F172A);
  margin-bottom: 0.5rem;
}

.feature-box-text {
  font-size: 0.875rem;
  color: var(--text-secondary, #475569);
  line-height: 1.6;
  margin: 0;
}

/* Tech specs table */
.specs-table-card {
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-xl, 20px);
  padding: 1.5rem;
  margin-bottom: 3.5rem;
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.specs-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  color: var(--text-secondary, #475569);
  font-weight: 700;
  border-bottom: 2px solid var(--border, #E2E8F0);
  background: var(--bg-surface-secondary, #F1F5F9);
}

.specs-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border, #E2E8F0);
  color: var(--text-primary, #0F172A);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
}

.faq-item {
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.open {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.05);
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #0F172A);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 1rem;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted, #64748B);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent, #7C3AED);
}

.faq-answer-pane {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary, #475569);
}

.faq-item.open .faq-answer-pane {
  display: block;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 768px) {
  .recorder-hero-title {
    font-size: 1.75rem;
  }
  .recorder-active-card {
    padding: 1.5rem 1.25rem;
  }
  .record-timer-display {
    font-size: 2.75rem;
  }
  .live-waveform-container {
    height: 110px;
  }
  .hardware-card {
    flex-direction: column;
    align-items: stretch;
  }
}
