/* ===== LEAD RESPONSE PAGE ===== */
.lr-body { background: var(--bg); }

.lr-page {
  min-height: 100vh;
  padding-bottom: 4rem;
}

/* HEADER */
.lr-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.lr-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}
.lr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid var(--border-accent);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.lr-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.lr-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* LAYOUT */
.lr-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  align-items: start;
}

/* INPUT PANEL */
.lr-input-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.lr-input-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lr-textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  padding: 0.85rem 1rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  min-height: 220px;
}
.lr-textarea::placeholder { color: var(--text-dim); }
.lr-textarea:focus { border-color: var(--border-accent); }
.lr-textarea.error { border-color: #ef4444; }

.lr-char-count {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: right;
}

.generate-btn {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* OUTPUT PANEL */
.lr-output-panel { min-height: 500px; }

/* Empty state */
.lr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface);
  border: 1px dashed rgba(245,158,11,0.2);
  border-radius: var(--radius-lg);
  min-height: 420px;
}
.lr-empty-icon { margin-bottom: 1.5rem; opacity: 0.6; }
.lr-empty h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.lr-empty p { font-size: 0.875rem; color: var(--text-muted); max-width: 320px; line-height: 1.65; }

/* Results */
.lr-results { display: flex; flex-direction: column; gap: 1rem; }
.lr-results.lr-visible { animation: fadeIn 0.3s ease; }

/* Results meta bar */
.lr-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}
.lr-meta-left { display: flex; align-items: center; gap: 0.75rem; }
.lr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}
.lr-char-badge {
  font-size: 0.72rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.lr-results-actions { display: flex; gap: 0.5rem; }
.lr-results-actions .btn-secondary {
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
}
.btn-sm { font-size: 0.78rem; padding: 0.4rem 0.8rem; }

/* Reply cards */
.lr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}
.lr-card:hover { border-color: rgba(255,255,255,0.12); }
.lr-card.copied { border-color: var(--amber); }

.lr-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.lr-card-info { display: flex; flex-direction: column; gap: 0.25rem; }

.lr-type-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  width: fit-content;
}
.type-professional { background: rgba(59,130,246,0.12); color: #3b82f6; border: 1px solid rgba(59,130,246,0.25); }
.type-viewing    { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.type-qualify    { background: rgba(168,85,247,0.12); color: #a855f7; border: 1px solid rgba(168,85,247,0.25); }
.type-followup   { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }

.lr-card-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Copy button */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--amber-dim);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  color: var(--amber);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.copy-btn:hover { background: rgba(245,158,11,0.2); transform: translateY(-1px); }
.copy-btn.copied { background: #22c55e; color: #fff; border-color: #22c55e; }

/* Card body */
.lr-card-body { padding: 1.25rem 1.25rem 1rem; }

.lr-reply-greeting {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.lr-reply-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.lr-reply-body:last-child { margin-bottom: 0; }
.lr-reply-body p { margin-bottom: 0.6rem; }
.lr-reply-body p:last-child { margin-bottom: 0; }
.lr-reply-body strong { color: var(--text); font-weight: 600; }

.lr-reply-italic {
  font-style: italic;
  color: var(--text-dim);
}

.lr-reply-divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 1rem 0;
}

.lr-reply-signature {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.lr-slot {
  display: inline-block;
  background: var(--amber-dim);
  border: 1px dashed var(--border-accent);
  border-radius: 4px;
  color: var(--amber);
  font-size: 0.8rem;
  padding: 0 0.3rem;
  font-family: 'DM Sans', sans-serif;
}

/* Placeholder reply content (before generation) */
.lr-card-placeholder {
  font-size: 0.875rem;
  color: var(--text-dim);
  font-style: italic;
  padding: 0.5rem 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .lr-layout { grid-template-columns: 340px 1fr; }
}
@media (max-width: 900px) {
  .lr-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 0;
  }
  .lr-input-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 600px) {
  .lr-header { padding: 2rem 0 1.5rem; }
  .lr-layout { padding: 1rem 0.75rem 0; }
  .lr-card-body { padding: 1rem; }
}