/* ============================================================
   PitchList — AI Agent for Real Estate
   Design: Editorial luxury real estate. Dark charcoal, warm off-white,
   copper gold accents. Cormorant Garamond + DM Sans.
   ============================================================ */

:root {
  --bg: #F9F7F4;
  --bg-warm: #F3EFE8;
  --dark: #1C1C1E;
  --ink: #2A2A28;
  --muted: #6B6B67;
  --accent: #C9A96E;
  --accent-light: #E8D5B0;
  --accent-dark: #A8875A;
  --surface: #FFFFFF;
  --border: #E2DDD6;
  --hero-ring: rgba(201, 169, 110, 0.08);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 4px rgba(28, 28, 30, 0.06);
  --shadow-md: 0 4px 20px rgba(28, 28, 30, 0.08);
  --shadow-lg: 0 12px 48px rgba(28, 28, 30, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-light);
  color: var(--dark);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(249, 247, 244, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 140px 24px 100px;
  overflow: hidden;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 28px;
}

.hero-lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  box-shadow: var(--shadow-md);
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  padding: 0 8px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
  margin: 0 24px;
}

.cta-block {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: inline-block;
  background: var(--surface);
}

.cta-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.cta-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Ambient rings */
.hero-ambient {
  position: absolute;
  top: 80px;
  right: -120px;
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 1;
}

.ambient-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--hero-ring);
}

.ring-1 { width: 300px; height: 300px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ring-2 { width: 450px; height: 450px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ring-3 { width: 600px; height: 600px; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* ---- SECTION SHARED ---- */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

/* ---- PROBLEM ---- */
.problem {
  background: var(--dark);
  color: var(--bg);
  padding: 100px 24px;
}

.problem-inner {
  max-width: 960px;
  margin: 0 auto;
}

.problem-header {
  margin-bottom: 64px;
}

.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--bg);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.problem-item {
  display: flex;
  gap: 16px;
}

.problem-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(201, 169, 110, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--bg);
  margin-bottom: 8px;
}

.problem-desc {
  font-size: 0.875rem;
  color: rgba(249, 247, 244, 0.55);
  line-height: 1.65;
}

/* ---- FEATURES ---- */
.features {
  padding: 100px 24px;
  background: var(--bg);
}

.features-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.features-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--dark);
  margin-bottom: 72px;
  max-width: 600px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row--reverse .feature-content { order: 2; }
.feature-row--reverse .feature-visual { order: 1; }

.feature-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(201, 169, 110, 0.12);
  padding: 4px 10px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 16px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-size: 0.875rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--accent-light);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l4 4 6-6' stroke='%23A8875A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Mock cards */
.mock-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.mock-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mock-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(249, 247, 244, 0.4);
}

.mock-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(201, 169, 110, 0.15);
  padding: 3px 8px;
  border-radius: 3px;
}

/* Lead pipeline mock */
.mock-lead-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  background: rgba(255,255,255,0.04);
}

.mock-lead--hot { border-left: 3px solid #4ade80; }
.mock-lead--warm { border-left: 3px solid var(--accent); }
.mock-lead--cold { border-left: 3px solid rgba(255,255,255,0.15); opacity: 0.5; }

.mock-lead-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg);
  flex: 1;
}

.mock-lead-meta {
  font-size: 0.7rem;
  color: rgba(249, 247, 244, 0.4);
  margin-top: 2px;
}

.mock-lead-score {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bg);
  min-width: 32px;
  text-align: right;
}

/* Sequence mock */
.mock-sequence-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mock-sequence-item:last-child { border-bottom: none; }

.seq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seq-icon--done { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.seq-icon--active { background: rgba(201, 169, 110, 0.2); position: relative; }
.seq-icon--pending { background: rgba(255,255,255,0.08); }

.seq-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.seq-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bg);
}

.seq-time {
  font-size: 0.7rem;
  color: rgba(249, 247, 244, 0.35);
  margin-top: 2px;
}

/* CMA mock */
.cma-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.cma-stat { text-align: center; }

.cma-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: -0.03em;
}

.cma-label {
  font-size: 0.7rem;
  color: rgba(249, 247, 244, 0.4);
  margin-top: 2px;
}

.cma-trend {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 4px;
}

.cma-up { color: #4ade80; }
.cma-down { color: #f87171; }

.cma-chart { margin-top: 8px; }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 50px;
  margin-bottom: 6px;
}

.chart-bar {
  flex: 1;
  background: rgba(201, 169, 110, 0.2);
  border-radius: 2px 2px 0 0;
}

.chart-bar.chart-active { background: var(--accent); }

.chart-label {
  font-size: 0.65rem;
  color: rgba(249, 247, 244, 0.3);
  text-align: center;
}

/* ---- HOW IT WORKS ---- */
.howitworks {
  padding: 100px 24px;
  background: var(--bg-warm);
}

.howitworks-inner {
  max-width: 960px;
  margin: 0 auto;
}

.howitworks-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--dark);
  margin-bottom: 72px;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

.step-connector {
  width: 60px;
  flex-shrink: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent-light));
  margin: 40px 24px 0;
}

/* ---- PRICING ---- */
.pricing {
  padding: 100px 24px;
  background: var(--bg);
}

.pricing-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.pricing-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--dark);
  margin-bottom: 56px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 4px 32px rgba(201, 169, 110, 0.15);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--dark);
  padding: 4px 14px;
  border-radius: 20px;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: rgba(201, 169, 110, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l4 4 6-6' stroke='%23A8875A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-cta { }

.pricing-cta-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: rgba(201, 169, 110, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  letter-spacing: 0.05em;
}

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- CLOSING ---- */
.closing {
  background: var(--dark);
  padding: 120px 24px;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--bg);
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 1rem;
  color: rgba(249, 247, 244, 0.55);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 48px;
}

.closing-cta {
  display: inline-block;
  padding: 24px 36px;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(201, 169, 110, 0.05);
}

.closing-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.closing-note {
  font-size: 0.8rem;
  color: rgba(249, 247, 244, 0.4);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--ink);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent-dark); }

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--ink); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row--reverse .feature-content { order: 1; }
  .feature-row--reverse .feature-visual { order: 2; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto 32px; }
  .steps { flex-direction: column; gap: 40px; }
  .step-connector { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 110px 20px 80px; }
  .hero-headline { font-size: 2.4rem; }
  .hero-stats { flex-direction: column; gap: 20px; padding: 24px; }
  .stat-divider { width: 100%; height: 1px; margin: 0; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}

/* ============================================================
   App — Inbox + Lead Management
   ============================================================ */

.app-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  min-height: 100vh;
}

/* Page header */
.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}

.app-header-left h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 4px;
}

.app-header-left p {
  font-size: 0.875rem;
  color: var(--muted);
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tier filter tabs */
.tier-filters {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  width: fit-content;
}

.tier-filter {
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  background: none;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.tier-filter:hover { color: var(--ink); }

.tier-filter.active {
  background: var(--dark);
  color: var(--bg);
}

/* Lead table */
.lead-table {
  width: 100%;
  border-collapse: collapse;
}

.lead-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.lead-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--ink);
  vertical-align: middle;
}

.lead-row {
  transition: background 0.15s;
  cursor: pointer;
}

.lead-row:hover { background: var(--bg-warm); }

/* Score badge */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.score-badge--hot {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.score-badge--warm {
  background: rgba(201, 169, 110, 0.15);
  color: var(--accent-dark);
}

.score-badge--cold {
  background: var(--bg-warm);
  color: var(--muted);
}

/* Tier badge */
.tier-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier-badge--hot {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.tier-badge--warm {
  background: rgba(251, 191, 36, 0.12);
  color: #d97706;
}

.tier-badge--cold {
  background: var(--bg-warm);
  color: var(--muted);
}

/* Lead name + meta */
.lead-name-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lead-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.lead-company {
  font-size: 0.78rem;
  color: var(--muted);
}

.lead-meta {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-date {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Action buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--dark);
  color: var(--bg);
}

.btn-primary:hover { background: var(--ink); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--muted); }

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.btn-danger:hover { background: rgba(239, 68, 68, 0.15); }

.btn-icon {
  padding: 7px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-icon:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Score slider */
.score-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-input {
  width: 52px;
  text-align: center;
  padding: 5px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--surface);
}

.score-input:focus {
  outline: none;
  border-color: var(--accent);
}

.score-slider {
  width: 80px;
  accent-color: var(--accent);
}

/* Add lead modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 30, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--dark);
  background: var(--surface);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 72px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Sequence editor */
.sequence-editor {
  margin-top: 40px;
}

.sequence-editor h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 24px;
}

.seq-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}

.seq-step:hover { border-color: var(--accent-light); }

.seq-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.seq-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.seq-step-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark);
  flex: 1;
}

.seq-delay {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.seq-delay input {
  width: 48px;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  text-align: center;
  color: var(--ink);
}

.seq-delay input:focus {
  outline: none;
  border-color: var(--accent);
}

.seq-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seq-fields label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  display: block;
}

.seq-fields input,
.seq-fields textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--dark);
  background: var(--bg);
  transition: border-color 0.15s;
}

.seq-fields input:focus,
.seq-fields textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.seq-fields textarea { resize: vertical; min-height: 100px; }

/* AI score button */
.ai-score-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(201, 169, 110, 0.12);
  color: var(--accent-dark);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
}

.ai-score-btn:hover {
  background: rgba(201, 169, 110, 0.2);
}

.ai-score-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(201, 169, 110, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* AI notes */
.ai-notes {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(201, 169, 110, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.6;
}

/* Sequence dots */
.seq-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.seq-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.seq-dot--empty {
  background: var(--border);
}

.seq-dot--sent {
  background: #22c55e;
}

.seq-dot--pending {
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

.seq-dot--skipped {
  background: var(--muted);
  opacity: 0.5;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  animation: slideUp 0.2s ease;
}

/* ---- Dashboard ---- */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.dashboard-card-source {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.dashboard-card-count {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 6px;
}

.dashboard-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.conversion-badge {
  display: none;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(74, 222, 128, 0.1);
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.convert-btn {
  padding: 6px 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
}

.convert-btn:hover {
  border-color: #22c55e;
  color: #16a34a;
}

@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Lead detail layout */
.lead-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.lead-detail-score-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lead-detail-score-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--dark);
}

.lead-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.lead-back:hover { color: var(--ink); }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .lead-table th:nth-child(3),
  .lead-table td:nth-child(3),
  .lead-table th:nth-child(5),
  .lead-table td:nth-child(5) { display: none; }
  .app-header { flex-direction: column; align-items: flex-start; }
}

/* ---- Activation milestone panel ---- */
.activation-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.activation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.activation-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.activation-progress {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.activation-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activation-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.activation-row--done {
  background: rgba(74, 222, 128, 0.06);
  border-color: rgba(74, 222, 128, 0.25);
}

.activation-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.activation-row--done .activation-icon {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.activation-row-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activation-row-title {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
}

.activation-row--done .activation-row-title {
  color: var(--muted);
  text-decoration: line-through;
}

.activation-when {
  font-size: 0.74rem;
  color: var(--muted);
}

.activation-cta {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.activation-next-cta {
  display: inline-block;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.activation-next-cta:hover { background: var(--accent-dark); color: #fff; }

.activation-next-cta--static {
  background: var(--bg-warm);
  color: var(--muted);
  cursor: default;
}

.activation-next-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}