@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --ink: #221f1a;
  --ink-muted: #6b6358;
  --ink-faint: #9a927f;
  --border: #e2ddd2;
  --accent: #c1502e;
  --accent-dark: #8f3a20;
  --accent-tint: #f5e3da;
  --verified: #3b6d11;
  --verified-tint: #eaf3de;
  --radius: 10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.site-header {
  background-image:
    linear-gradient(135deg, rgba(193,80,46,0.06) 0%, rgba(193,80,46,0) 60%),
    repeating-linear-gradient(0deg, rgba(34,31,26,0.04) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(34,31,26,0.04) 0 1px, transparent 1px 28px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 3px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-sub {
  color: var(--accent-dark);
  font-weight: 500;
}

.header-tagline {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 46ch;
}

.header-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent-dark);
  text-decoration: none;
}

.header-link:hover { text-decoration: underline; }

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 10px;
}

.header-links .header-link {
  margin-top: 0;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 20px 60px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

select, input, button {
  font-family: inherit;
  font-size: 14px;
}

select, input[type="text"], input[type="tel"] {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.filter-bar select {
  flex: 1;
  min-width: 140px;
}

#search-btn {
  height: 42px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
}

#search-btn:hover { background: var(--accent-dark); }

.results-count {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

.results { display: flex; flex-direction: column; gap: 10px; }

.gang-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.gang-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.gang-info { flex: 1; min-width: 0; }

.gang-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.gang-name { font-weight: 500; font-size: 15px; }

.badge {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.badge.verified {
  background: var(--verified-tint);
  color: var(--verified);
  border-color: transparent;
}

.badge.new {
  background: var(--accent-tint);
  color: var(--accent-dark);
  border-color: transparent;
}

.gang-meta {
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gang-action { flex-shrink: 0; }

.call-btn, .reveal-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent-dark);
  font-weight: 500;
  cursor: pointer;
}

.call-btn:hover, .reveal-btn:hover { background: var(--accent-tint); }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-muted);
  font-size: 14px;
}

.lead-card {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.lead-card h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}

.lead-card p {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

#lead-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#lead-form input { flex: 1; min-width: 140px; }

#lead-form button {
  height: 42px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.lead-status {
  font-size: 13px;
  margin: 10px 0 0;
  color: var(--verified);
}

.footer-note {
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 30px;
}

/* signup page */

.signup-intro {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 22px;
  max-width: 56ch;
}

.signup-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.signup-step[hidden] {
  display: none;
}

.signup-step label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-top: 10px;
}

.signup-step label:first-of-type { margin-top: 0; }

.signup-step input,
.signup-step select {
  width: 100%;
  margin-bottom: 2px;
}

.signup-step button {
  margin-top: 16px;
  height: 44px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

.signup-step button:hover { background: var(--accent-dark); }

.done-step {
  text-align: center;
  gap: 16px;
}

.done-message {
  font-size: 15px;
  color: var(--ink);
  margin: 0;
}

.done-step .call-btn {
  text-decoration: none;
  display: inline-block;
  align-self: center;
  padding: 0 20px;
}

/* edit page — active/inactive checkbox row */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-row label {
  margin: 0;
  font-weight: 400;
}

/* inline reveal-gate modal */
.reveal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(34,31,26,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.reveal-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  max-width: 340px;
  width: 100%;
}

.reveal-modal h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}

.reveal-modal p {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

.reveal-modal input {
  width: 100%;
  margin-bottom: 12px;
}

.reveal-modal-actions {
  display: flex;
  gap: 10px;
}

.reveal-modal-actions button {
  flex: 1;
  height: 40px;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
}

.reveal-modal-actions .confirm {
  background: var(--accent);
  color: #fff;
  border: none;
}

.reveal-modal-actions .cancel {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

@media (max-width: 420px) {
  .gang-card { flex-wrap: wrap; }
  .gang-action { width: 100%; }
  .call-btn, .reveal-btn { width: 100%; }
}
