/* ====================================
   LEADLOOP — CUSTOM STYLESHEET
   ==================================== */

:root {
  --bg: #FAFAF7;
  --bg-alt: #F3F2EE;
  --fg: #1A1A1A;
  --fg-muted: #6B6B6B;
  --accent: #0D9488;
  --accent-light: #CCFBF1;
  --accent-dark: #0F766E;
  --border: #E5E4DF;
  --chat-bg: #F8F7F4;
  --chat-in: #E8E8E4;
  --chat-out-bg: #0D9488;
  --chat-out-text: #ffffff;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.nav-tag {
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: var(--fg-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
}

/* === HERO === */
.hero {
  padding: 160px 40px 120px;
  position: relative;
  overflow: hidden;
}
.hero-bg-texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(13, 148, 136, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-text { position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 40px;
}

/* === CHAT WIDGET === */
.hero-visual { display: flex; justify-content: center; }
.chat-window {
  background: var(--chat-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 1px 0 rgba(0,0,0,0.04);
}
.chat-header {
  background: #fff;
  padding: 12px 16px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.chat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.chat-body { padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg {
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 82%;
}
.msg-in {
  background: var(--chat-in);
  color: var(--fg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg-out {
  background: var(--chat-out-bg);
  color: var(--chat-out-text);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg-out.confirmed {
  background: #059669;
}
.chat-cursor {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--accent);
  padding: 4px 16px 16px;
  opacity: 0.7;
}

/* === STATS === */
.stats {
  background: var(--fg);
  color: #fff;
  padding: 64px 40px;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.stat { padding: 0 48px; }
.stat:first-child { padding-left: 0; }
.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 14px;
  color: #A3A3A3;
  line-height: 1.5;
  max-width: 200px;
  display: block;
}
.stat-divider {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* === SHARED SECTION STYLES === */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.section-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin-bottom: 56px;
}

/* === PROCESS === */
.process { padding: 100px 40px; background: var(--bg); }
.process-inner { max-width: 1200px; margin: 0 auto; }
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.step { flex: 1; }
.step-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.step p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 24px;
  flex-shrink: 0;
}

/* === FEATURES === */
.features { padding: 100px 40px; background: var(--bg-alt); }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === OUTCOMES === */
.outcomes { padding: 100px 40px; background: var(--bg); }
.outcomes-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.outcomes-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.outcomes-card {
  background: var(--fg);
  border-radius: 20px;
  padding: 48px;
  position: relative;
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 24px;
  opacity: 0.6;
}
.outcomes-card blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 24px;
  font-style: italic;
}
.outcomes-card cite {
  font-size: 13px;
  color: #888;
  font-family: 'DM Mono', monospace;
  font-style: normal;
}
.outcome-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.pill {
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  color: var(--accent-dark);
  background: var(--accent-light);
  border: 1px solid rgba(13, 148, 136, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
}

/* === CLOSING === */
.closing { padding: 120px 40px; background: var(--bg-alt); }
.closing-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.closing-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  color: var(--fg);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 48px;
}
.closing-statement {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.closing-statement p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer { background: var(--fg); color: #fff; padding: 40px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
}
.footer-tagline {
  font-size: 13px;
  color: #666;
  flex: 1;
}
.footer-copy {
  font-size: 12px;
  color: #444;
  font-family: 'DM Mono', monospace;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .outcomes-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 14px 24px; }
  .hero { padding: 120px 24px 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-headline { font-size: 38px; }
  .stats { padding: 48px 24px; }
  .stats-inner { flex-direction: column; gap: 32px; }
  .stat { padding: 0; }
  .stat-divider { display: none; }
  .process { padding: 72px 24px; }
  .process-steps { flex-direction: column; gap: 40px; }
  .step-arrow { display: none; }
  .features { padding: 72px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .outcomes { padding: 72px 24px; }
  .closing { padding: 80px 24px; }
  .footer { padding: 32px 24px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-tagline { order: 3; flex-basis: 100%; }
}
