/* LEADLOOP THEME */
:root {
  --bg: #F8F6F3;
  --bg-alt: #F0EDE8;
  --fg: #1A1A1A;
  --fg-light: #5A5A5A;
  --fg-muted: #9A9A9A;
  --accent: #C8452A;
  --accent-dark: #A83820;
  --panel-bg: #FFFFFF;
  --border: #E0DCD6;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

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

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

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

/* === HERO === */
.hero {
  position: relative;
  padding: 80px 32px 96px;
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,69,42,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-light);
  margin-bottom: 28px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--fg);
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--fg-light);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  max-width: 120px;
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === UI PANEL (Hero) === */
.ui-panel {
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(26,26,26,0.1), 0 2px 8px rgba(26,26,26,0.04);
  overflow: hidden;
  border: 1px solid var(--border);
}

.panel-header {
  background: var(--fg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-dots {
  display: flex;
  gap: 6px;
}

.panel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.panel-dots span:first-child { background: #ff5f57; }
.panel-dots span:nth-child(2) { background: #febc2e; }
.panel-dots span:last-child { background: #28c840; }

.panel-title {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
}

.panel-body { padding: 20px; }

.lead-feed { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.lead-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  animation: slideIn 0.4s ease-out backwards;
}

.lead-item:nth-child(1) { animation-delay: 0.1s; }
.lead-item:nth-child(2) { animation-delay: 0.25s; }
.lead-item:nth-child(3) { animation-delay: 0.4s; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.lead-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lead-icon.missed-call { background: rgba(200,69,42,0.1); color: var(--accent); }
.lead-icon.chat { background: rgba(26,160,100,0.1); color: #1AA064; }
.lead-icon.review { background: rgba(26,26,26,0.06); color: var(--fg-light); }

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

.lead-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-meta {
  font-size: 0.6875rem;
  color: var(--fg-muted);
  margin-top: 2px;
}

.lead-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.lead-badge.new { background: rgba(200,69,42,0.1); color: var(--accent); }
.lead-badge.responded { background: rgba(26,160,100,0.1); color: #1AA064; }
.lead-badge.pending { background: rgba(26,26,26,0.06); color: var(--fg-light); }

.panel-stat-row {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}

.pstat {
  flex: 1;
  text-align: center;
  padding: 0 12px;
}

.pstat:first-child { border-right: 1px solid var(--border); }

.pstat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 2px;
}

.pstat-lab {
  font-size: 0.625rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === PROBLEM === */
.problem {
  background: var(--fg);
  padding: 96px 32px;
}

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

.problem-label, .solution-label, .how-label, .pricing-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.problem-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 56px;
  max-width: 640px;
}

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

.problem-card {
  padding: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}

.problem-icon { margin-bottom: 20px; }

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.problem-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* === SOLUTION === */
.solution {
  padding: 96px 32px;
  background: var(--bg-alt);
}

.solution-inner { max-width: 1200px; margin: 0 auto; }

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

.solution-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  color: var(--fg);
  line-height: 1.2;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.solution-card {
  background: var(--panel-bg);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(26,26,26,0.04);
}

.sc-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.solution-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.3;
}

.solution-card > p {
  font-size: 0.875rem;
  color: var(--fg-light);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Chat bubbles */
.sc-visual { margin-top: 0; }

.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.chat-bubble.bot {
  background: var(--fg);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background: var(--bg-alt);
  color: var(--fg);
  border-bottom-right-radius: 4px;
  margin-left: 32px;
}

/* SMS thread */
.sms-thread { display: flex; flex-direction: column; gap: 8px; }

.sms {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

.sms.missed {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  color: var(--fg-muted);
}

.sms-label { font-size: 0.6875rem; display: block; margin-bottom: 2px; }
.sms-num { font-weight: 500; font-size: 0.8125rem; color: var(--fg); }

.sms.auto {
  background: rgba(200,69,42,0.08);
  border: 1px solid rgba(200,69,42,0.2);
  color: var(--fg);
}

.sms-tag { font-size: 0.6875rem; color: var(--accent); display: block; margin-bottom: 4px; font-weight: 600; }
.sms-link { color: var(--accent); font-weight: 600; }

.sms.reply {
  background: rgba(26,160,100,0.08);
  border: 1px solid rgba(26,160,100,0.2);
  color: var(--fg);
  border-bottom-right-radius: 4px;
  margin-left: 24px;
}

/* Pipeline board */
.pipeline-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pipe-col {}

.pipe-head {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  padding: 6px 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  margin-bottom: 8px;
  text-align: center;
}

.pipe-col.done .pipe-head { color: #1AA064; }

.pipe-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.6875rem;
  color: var(--fg-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.pipe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Review stack */
.review-stack { display: flex; flex-direction: column; gap: 10px; }

.review-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.stars { color: #F5A623; font-size: 0.75rem; margin-bottom: 6px; letter-spacing: 1px; }
.review-card p { font-size: 0.8125rem; color: var(--fg); line-height: 1.5; margin-bottom: 8px; }
.review-card span { font-size: 0.6875rem; color: var(--fg-muted); }

/* === HOW === */
.how {
  padding: 96px 32px;
  background: var(--bg);
}

.how-inner { max-width: 800px; margin: 0 auto; }

.how-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 56px;
}

.how-steps { display: flex; flex-direction: column; }

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  align-items: flex-start;
}

.step-marker { display: flex; flex-direction: column; align-items: center; }

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fg);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-line {
  flex: 1;
  width: 2px;
  background: var(--border);
  min-height: 48px;
}

.step:last-child .step-line { display: none; }

.step-content { padding-bottom: 40px; }

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.9375rem;
  color: var(--fg-light);
  line-height: 1.7;
}

.how-tagline {
  margin-top: 48px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
  text-align: center;
}

.how-tagline em { color: var(--accent); font-style: italic; }

/* === PRICING === */
.pricing {
  padding: 96px 32px;
  background: var(--bg-alt);
}

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

.pricing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 48px;
}

.pricing-card {
  background: var(--panel-bg);
  border-radius: var(--radius);
  border: 2px solid var(--fg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,26,26,0.1);
}

.pricing-header {
  background: var(--fg);
  padding: 40px 40px 32px;
  color: #fff;
}

.pricing-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.pricing-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 20px;
}

.pricing-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }

.price {
  font-family: var(--font-display);
  font-size: 3rem;
  color: #fff;
  line-height: 1;
}

.per {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
}

.pricing-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0;
}

.pricing-features {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--fg);
}

.pf-item svg { flex-shrink: 0; }

.pricing-footnote {
  padding: 16px 40px;
  background: var(--bg-alt);
  font-size: 0.8125rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}

.pricing-proof {
  margin-top: 40px;
  text-align: center;
}

.pricing-proof p {
  font-size: 1rem;
  color: var(--fg-light);
}

.pricing-proof p:first-child {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--fg);
  margin-bottom: 4px;
}

/* === CLOSING === */
.closing {
  padding: 112px 32px;
  background: var(--fg);
  text-align: center;
}

.closing-inner { max-width: 640px; margin: 0 auto; }

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 48px;
}

.closing-cta {}

.cta-line {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: #fff;
  margin-bottom: 12px;
  font-style: italic;
}

.cta-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

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

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--fg);
}

.footer-tagline {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual { order: -1; }

  .hero-headline { font-size: 2.25rem; }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-header, .pricing-features {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .step {
    grid-template-columns: 32px 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero { padding: 60px 20px 72px; }
  .problem, .solution, .how, .pricing, .closing { padding: 72px 20px; }
  .hero-headline { font-size: 1.875rem; }
  .price { font-size: 2.5rem; }
}