* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: #fefefe; }a { color: #2563eb; text-decoration: none; }a:hover { text-decoration: underline; }
.container { max-width: 900px; margin: 0 auto; padding: 1rem; }
.site-header { background: #f8fafc; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-header h1 { font-size: 1.5rem; color: #1e293b; }
.site-nav a { margin-left: 1.5rem; font-weight: 500; }
.hero { text-align: center; padding: 2rem 0; border-bottom: 1px solid #e2e8f0; }
.hero h2 { font-size: 2rem; margin-bottom: 0.5rem; color: #1e293b; }
.hero p { color: #64748b; }
.analyzer-section { display: grid; gap: 1.5rem; padding: 2rem 0; }
.input-area h3, .analysis-result h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.upload-controls { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.upload-btn, .record-btn { padding: 0.75rem 1.5rem; border: 1px solid #cbd5e1; border-radius: 6px; background: white; cursor: pointer; transition: all 0.2s; }
.upload-btn:hover, .record-btn:hover { background: #f1f5f9; }
.record-btn.active { background: #2563eb; color: white; border-color: #2563eb; }
.audio-input { display: none; }
.sample-presets { padding: 1rem 0; border-top: 1px dashed #cbd5e1; }
.presets-label { margin-bottom: 0.75rem; font-weight: 500; color: #475569; }
.preset-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.preset-btn { padding: 0.5rem 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; cursor: pointer; font-size: 0.875rem; }
.preset-btn:hover { background: #e2f3ff; }
.waveform-display { background: #f8fafc; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
#waveform-svg { width: 100%; height: 80px; }
.pitch-pattern { background: #f8fafc; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.pitch-pattern p { margin: 0.5rem 0; }
.interpretation { background: #eff6ff; border-radius: 8px; padding: 1rem; }
.interpretation h4 { margin-bottom: 0.5rem; color: #1e40af; }
.confidence-bar { background: #e0e7ff; border-radius: 4px; height: 12px; overflow: hidden; margin: 0.5rem 0; }
.confidence-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #1d4ed8); transition: width 0.5s; }
.confidence-text { font-size: 0.875rem; color: #475569; }
.library-section, .help-section { padding: 1.5rem 0; }
.library-section h3, .help-section h3 { margin-bottom: 1rem; color: #1e293b; }
.bark-types { display: grid; gap: 1rem; }
.bark-type { background: #f8fafc; border-radius: 8px; padding: 1rem; }
.bark-type h4 { font-size: 1rem; margin-bottom: 0.5rem; color: #1e293b; }
.bark-desc { color: #64748b; font-size: 0.9rem; }
.help-section h4 { font-size: 1rem; margin: 1.5rem 0 0.5rem; color: #334155; }
.help-section ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.help-section li { margin-bottom: 0.5rem; }
.ad-reserve { text-align: center; padding: 1rem; margin: 2rem 0; }
.site-footer { background: #f8fafc; border-top: 1px solid #e2e8f0; padding: 1.5rem 0; font-size: 0.875rem; }
.site-footer a { color: #64748b; }
@media (max-width: 600px) { 
  .site-header .container { flex-direction: column; gap: 1rem; }
  .site-nav a { margin-left: 0; margin-right: 1rem; }
  .upload-controls { flex-direction: column; }
  .preset-grid { justify-content: center; }
  .bark-type { font-size: 0.9rem; }
}
@media (max-width: 400px) { 
  .hero h2 { font-size: 1.5rem; }
  .upload-btn, .record-btn { width: 100%; }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
