/* ZeroFee Tools - Live Transcription */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.6; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

.site-header { background: linear-gradient(135deg, #1d4ed8, #7c3aed); color: #fff; padding: 40px 0 32px; }
.crumb { color: #dbeafe; text-decoration: none; font-size: .9rem; }
.crumb:hover { text-decoration: underline; }
.site-header h1 { font-size: 2rem; margin: 8px 0 4px; }
.site-header .sub { opacity: .92; }
.badges { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.badge { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; }

main.wrap { padding-top: 28px; padding-bottom: 40px; }
.card { background: #fff; border-radius: 14px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 16px rgba(15,23,42,.06); }
.card h2 { font-size: 1.2rem; margin-bottom: 14px; }
.small-note { font-size: .8rem; color: #64748b; font-weight: 400; }
.note { margin-top: 12px; font-size: .88rem; color: #64748b; }

.warn-card { border: 2px solid #f59e0b; background: #fffbeb; }
.warn-card h2 { color: #92400e; }
.warn-card p { margin-bottom: 10px; color: #78350f; }

/* Recorder */
.rec-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.mic-btn { width: 84px; height: 84px; border-radius: 50%; border: none; font-size: 2.2rem; cursor: pointer; background: #eff6ff; box-shadow: 0 4px 14px rgba(29,78,216,.25); transition: transform .15s, background .15s; flex-shrink: 0; }
.mic-btn:hover { transform: scale(1.05); }
.mic-btn.live { background: #dc2626; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.5); } 70% { box-shadow: 0 0 0 16px rgba(220,38,38,0); } 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); } }
.rec-meta { flex: 1; min-width: 240px; }
.status { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 12px; }
.status .dot { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; }
.status.on .dot { background: #dc2626; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.lang-label { font-size: .88rem; color: #64748b; font-weight: 600; }
.lang-label select { display: block; margin-top: 6px; padding: 10px 12px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: .95rem; background: #fff; color: #1e293b; max-width: 100%; }
.error { margin-top: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: 10px 14px; border-radius: 10px; font-size: .9rem; }

/* Transcript */
.transcript { min-height: 180px; border: 2px solid #e2e8f0; border-radius: 12px; padding: 16px; font-size: 1.05rem; line-height: 1.7; outline: none; background: #fbfdff; }
.transcript:focus { border-color: #1d4ed8; }
.transcript:empty::before { content: attr(data-placeholder); color: #94a3b8; }
.transcript p { margin-bottom: 8px; }
.interim-line { min-height: 28px; margin-top: 8px; font-size: .95rem; }
.listening { color: #dc2626; font-weight: 700; }
.interim { color: #64748b; font-style: italic; }
.transcript-meta { margin-top: 8px; font-size: .82rem; color: #94a3b8; }

/* Buttons */
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { border: 2px solid #e2e8f0; background: #fff; border-radius: 10px; padding: 12px 18px; font-size: .95rem; font-weight: 700; cursor: pointer; color: #334155; }
.btn:hover { border-color: #1d4ed8; color: #1d4ed8; }
.btn.primary { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.btn.primary:hover { background: #1e40af; color: #fff; }
.btn.danger:hover { border-color: #dc2626; color: #dc2626; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* How it works */
.how ul { list-style: none; }
.how li { margin-bottom: 10px; padding-left: 4px; }

/* FAQ */
.faq { border-bottom: 1px solid #f1f5f9; padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: 8px; color: #475569; font-size: .94rem; }
.faq a { color: #1d4ed8; }

.site-footer { text-align: center; padding: 24px 0 36px; color: #94a3b8; font-size: .85rem; }

@media (max-width: 640px) {
  .site-header h1 { font-size: 1.5rem; }
  .rec-row { gap: 14px; }
  .mic-btn { width: 72px; height: 72px; font-size: 1.9rem; }
}
