/* Lead collector — dark redesign sheet (mobile bottom-sheet, desktop centered card) */

.hidden { display: none !important; }
.no-scroll { overflow: hidden; }

/* legacy hidden proxy trigger — old audit pages call .click() on it */
#show-popup-btn { display: none; }

@keyframes lc-up {
  from { transform: translateY(48px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes lc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes lc-spin { to { transform: rotate(360deg); } }

.lc-pulse { animation: lc-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.lc-spin {
  width: 16px; height: 16px; flex: none;
  border: 2px solid rgba(10, 10, 10, 0.25);
  border-top-color: var(--ink, #0A0A0A);
  border-radius: 50%;
  animation: lc-spin 0.8s linear infinite;
}

.lc-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lc-sheet {
  width: 100%; max-width: 520px;
  background: var(--smoke, #1A1A1A);
  color: var(--bone, #F5F2EB);
  border-radius: 24px 24px 0 0;
  position: relative; overflow: hidden;
  animation: lc-up 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  font-family: var(--f-body, 'Inter', -apple-system, system-ui, sans-serif);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}

.lc-handle {
  width: 48px; height: 4px; border-radius: 999px;
  background: rgba(245, 242, 235, 0.25);
  margin: 10px auto 0;
}

.lc-progress {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(245, 242, 235, 0.10);
}
.lc-progress-fill {
  height: 100%;
  background: var(--bone, #F5F2EB);
  transition: width 0.5s ease-out;
}

.lc-close {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(245, 242, 235, 0.28);
  color: var(--bone, #F5F2EB);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lc-close:hover { background: rgba(245, 242, 235, 0.12); }
.lc-close svg { width: 18px; height: 18px; }

.lc-header {
  padding: 22px 24px 20px;
  border-bottom: 1px solid rgba(245, 242, 235, 0.14);
}
.lc-tile {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--bone, #F5F2EB);
  color: var(--ink, #0A0A0A);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.lc-eyebrow {
  margin: 0 0 10px;
  font-family: var(--f-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245, 242, 235, 0.6);
  display: flex; align-items: center; gap: 8px;
}
.lc-eyedot { width: 6px; height: 6px; border-radius: 50%; background: var(--bone, #F5F2EB); flex: none; }
.lc-title {
  margin: 0 0 10px;
  font-family: var(--f-display, 'Geist', -apple-system, system-ui, sans-serif);
  font-weight: 700; font-size: 32px;
  letter-spacing: -0.02em; line-height: 1.05;
  color: var(--bone, #F5F2EB);
}
.lc-title em {
  font-family: var(--f-serif, 'Instrument Serif', 'Times New Roman', serif);
  font-style: italic; font-weight: 400;
}
.lc-sub { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(245, 242, 235, 0.65); }

.lc-body { padding: 20px 24px 4px; }
.lc-step-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 12px; letter-spacing: 0.04em;
  color: rgba(245, 242, 235, 0.7);
  margin-bottom: 10px;
}
.lc-step-meta svg { width: 15px; height: 15px; flex: none; }
.lc-step-meta b { color: var(--bone, #F5F2EB); font-weight: 600; }
.lc-question {
  margin: 0 0 4px;
  font-family: var(--f-display, 'Geist', -apple-system, system-ui, sans-serif);
  font-weight: 600; font-size: 24px; letter-spacing: -0.01em;
  color: var(--bone, #F5F2EB);
}
.lc-sub-q { margin: 0; font-size: 14px; color: rgba(245, 242, 235, 0.6); }

.lc-input {
  width: 100%; height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(245, 242, 235, 0.18);
  background: rgba(245, 242, 235, 0.06);
  color: var(--bone, #F5F2EB);
  font-size: 16px; font-family: inherit;
  padding: 0 16px; margin-top: 14px;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none; appearance: none;
}
.lc-input::placeholder { color: rgba(245, 242, 235, 0.38); }
.lc-input:focus { border-color: rgba(245, 242, 235, 0.5); }

.lc-error { color: #ff8a80; font-size: 13px; margin: 8px 0 0; }

.lc-policy {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 14px;
  font-size: 13px; color: rgba(245, 242, 235, 0.65);
}
.lc-policy input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--bone, #F5F2EB); }
.lc-policy a { color: var(--bone, #F5F2EB); text-decoration: underline; }

.lc-actions { display: flex; gap: 10px; margin-top: 18px; }
.lc-btn {
  height: 52px; border-radius: 999px; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.lc-btn-next {
  flex: 1;
  background: var(--bone, #F5F2EB);
  color: var(--ink, #0A0A0A);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.lc-btn-next:hover { background: #ffffff; }
.lc-btn-next:disabled { opacity: 0.45; cursor: not-allowed; }
.lc-arr {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--ink, #0A0A0A);
  color: var(--bone, #F5F2EB);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.lc-btn-back { background: transparent; color: rgba(245, 242, 235, 0.6); padding: 0 16px; }
.lc-btn-back:hover { color: var(--bone, #F5F2EB); }

.lc-footer { padding: 16px 24px 22px; }
.lc-dots { display: flex; justify-content: center; gap: 8px; }
.lc-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(245, 242, 235, 0.25);
  transition: all 0.3s ease;
}
.lc-dot.active { width: 28px; background: var(--bone, #F5F2EB); }
.lc-proof {
  margin: 14px auto 0; max-width: 320px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; line-height: 1.4; text-align: center;
  color: rgba(245, 242, 235, 0.55);
}
.lc-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; }

.lc-success { padding: 36px 24px 8px; text-align: center; }
.lc-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(34, 197, 94, 0.15); color: #22c55e;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.lc-success-title {
  font-family: var(--f-display, 'Geist', -apple-system, system-ui, sans-serif);
  font-weight: 700; font-size: 24px;
  color: var(--bone, #F5F2EB);
  margin: 0 0 6px;
}
.lc-success-text { font-size: 15px; color: rgba(245, 242, 235, 0.65); margin: 0 0 24px; }

@media (min-width: 768px) {
  .lc-overlay { align-items: center; padding: 24px; }
  .lc-sheet { max-width: 440px; border-radius: 24px; padding-bottom: 0; max-height: calc(100dvh - 48px); }
  .lc-handle { display: none; }
  .lc-header { padding-top: 28px; }
}
