/* === B2C CRM page === */

/* Hero */
.b2c-hero { padding: 48px 0 72px; position: relative; overflow: hidden; }
.b2c-hero::before {
  content: "";
  position: absolute; inset: -10% -20% auto -20%; height: 680px;
  background:
    radial-gradient(50% 60% at 60% 20%, rgba(245,158,11,0.08), transparent 60%),
    radial-gradient(40% 50% at 12% 55%, rgba(64,204,191,0.07), transparent 60%);
  pointer-events: none; z-index: 0;
}
.b2c-hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 64px; align-items: center;
}
.b2c-hero-content { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.b2c-hero h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.03em; margin: 16px 0 20px; text-wrap: balance; }
.b2c-hero h1 .accent { color: var(--teal-600); }
.b2c-hero .lede { font-size: 17px; color: var(--muted); line-height: 1.65; max-width: 48ch; margin-bottom: 32px; text-wrap: pretty; }
.b2c-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.b2c-hero .benefits-row { justify-content: flex-start; }

/* Hero mock */
.b2c-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,0.7);
}
.b2c-mock-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.b2c-mock-title { font-size: 12px; font-weight: 700; color: var(--ink); }
.b2c-mock-meta { font-size: 11px; color: var(--muted); }
.b2c-mock-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto auto;
  align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.b2c-mock-row:last-of-type { border-bottom: none; }
.b2c-mock-row:hover { background: var(--bg); }
.b2c-mock-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: #FEF3C7; color: #D97706;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 800; letter-spacing: 0.02em; flex-shrink: 0;
}
.b2c-mock-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.b2c-mock-info b { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2c-mock-info span { font-size: 10px; color: var(--muted); white-space: nowrap; }
.b2c-mock-src {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; color: white;
  white-space: nowrap; flex-shrink: 0;
}
.b2c-mock-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--ink-2);
  white-space: nowrap; flex-shrink: 0;
}
.b2c-mock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #ccc); flex-shrink: 0; }
.b2c-mock-rep { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.b2c-mock-foot { padding: 10px 16px; background: var(--teal-50); border-top: 1px solid var(--teal-100); }
.b2c-mock-notify { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--teal-700); }

/* Pain points */
.b2c-pains { background: var(--surface); }
.b2c-pains-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.b2c-pain-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px 24px; transition: box-shadow .2s;
}
.b2c-pain-card:hover { box-shadow: var(--shadow-md); }
.b2c-pain-emoji { font-size: 28px; margin-bottom: 12px; line-height: 1; }
.b2c-pain-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.35; }
.b2c-pain-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Channel mock */
.b2c-ch-mock {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,0.7);
}
.b2c-ch-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.b2c-ch-title { font-size: 12px; font-weight: 700; color: var(--ink); }
.b2c-ch-meta { font-size: 11px; color: var(--muted); }
.b2c-ch-list { display: flex; flex-direction: column; gap: 0; padding: 8px 0; }
.b2c-ch-row {
  display: grid; grid-template-columns: 28px 1fr 1fr auto;
  align-items: center; gap: 10px;
  padding: 8px 16px;
}
.b2c-ch-dot {
  width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: white; flex-shrink: 0;
}
.b2c-ch-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.b2c-ch-bar-wrap { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.b2c-ch-bar { height: 100%; border-radius: 999px; transition: width .4s; }
.b2c-ch-count { font-size: 11px; font-weight: 700; color: var(--muted); text-align: right; white-space: nowrap; }
.b2c-ch-foot {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; color: var(--teal-700);
  background: var(--teal-50); border-top: 1px solid var(--teal-100);
  padding: 10px 16px;
}

/* Pipeline mock */
.b2c-pipe-mock {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,0.7);
}
.b2c-pipe-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--bg); font-size: 12px; font-weight: 700; color: var(--ink);
}
.b2c-pipe-sub { font-size: 11px; color: var(--muted); font-weight: 500; }
.b2c-pipe-stages { display: flex; overflow-x: auto; padding: 12px; gap: 8px; }
.b2c-pipe-col { display: flex; flex-direction: column; gap: 6px; min-width: 100px; flex: 1; }
.b2c-pipe-col-head {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 3px solid; padding: 8px 8px 6px; background: var(--bg);
  border-radius: 8px; border-top-left-radius: 0; border-top-right-radius: 0;
}
.b2c-pipe-col-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.b2c-pipe-col-count { font-size: 13px; font-weight: 800; }
.b2c-pipe-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px;
  display: flex; align-items: center; gap: 8px;
}
.b2c-pipe-card-av {
  width: 26px; height: 26px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 8px; font-weight: 800; flex-shrink: 0;
}
.b2c-pipe-card-name { font-size: 11px; font-weight: 700; color: var(--ink); }
.b2c-pipe-card-detail { font-size: 10px; color: var(--muted); margin-top: 1px; }
.b2c-pipe-more { font-size: 10px; color: var(--muted); text-align: center; padding: 4px; }

/* Assignment rules */
.b2c-rule-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 10px 14px;
}
.b2c-rule-badge { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.b2c-rule-text { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.85); }
.b2c-assign-note { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #40CCBF; margin-top: 4px; }

/* Stats */
.b2c-stats { background: var(--ink); padding: 56px 0; }
.b2c-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.b2c-stat { padding: 24px 32px; border-right: 1px solid rgba(255,255,255,0.08); text-align: center; }
.b2c-stat:last-child { border-right: none; }
.b2c-stat-n { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--teal-400); letter-spacing: -0.03em; margin-bottom: 8px; }
.b2c-stat-l { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* Feature cards */
.b2c-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.b2c-feat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px; transition: box-shadow .2s, transform .15s;
}
.b2c-feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.b2c-feat-ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; }
.b2c-feat-ic.teal    { background: var(--teal-50);  color: var(--teal-600); }
.b2c-feat-ic.indigo  { background: #EEF2FF;          color: #4F46E5; }
.b2c-feat-ic.emerald { background: #ECFDF5;          color: #059669; }
.b2c-feat-ic.amber   { background: #FEF3C7;          color: #D97706; }
.b2c-feat-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.b2c-feat-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Use-cases grid */
.b2c-usecases { background: var(--surface); }
.b2c-use-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-top: 40px;
}
.b2c-use-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px;
  cursor: default;
  transition: box-shadow .2s, transform .15s, border-color .2s;
}
.b2c-use-chip:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.b2c-use-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 18px; flex-shrink: 0;
}
.b2c-use-name {
  font-size: 13px; font-weight: 700; color: var(--ink);
  flex: 1; line-height: 1.3;
}
.b2c-use-arrow {
  color: var(--muted); flex-shrink: 0; opacity: 0;
  transition: opacity .2s, transform .2s;
}
.b2c-use-chip:hover .b2c-use-arrow { opacity: 1; transform: translateX(2px); }

/* Responsive */
@media (max-width: 980px) {
  .b2c-hero .container { grid-template-columns: 1fr; gap: 40px; }
  .b2c-pains-grid { grid-template-columns: 1fr; }
  .b2c-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .b2c-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .b2c-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .b2c-use-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 600px) {
  .b2c-feat-grid { grid-template-columns: 1fr; }
  .b2c-stats-grid { grid-template-columns: 1fr; }
  .b2c-use-grid { grid-template-columns: 1fr; }
}
