/* Mamba Chatting — /chatting
   Layer on top of site.css. Same v7 PLATINUM language: dark navy, one platinum accent,
   sharp 2px edges, Bebas + Space Grotesk + Inter + JetBrains Mono.
   Everything here is prefixed .ch-* so it can never collide with the main marketing page. */

.ch-body {
  --sec-y: clamp(64px, 8vw, 104px);   /* one vertical rhythm for every section */
  --gap: clamp(20px, 2.4vw, 34px);
}

.ch-brand-thin { font-weight: 400; opacity: 0.55; margin-left: 6px; }
.ch-plat {
  background: var(--plat); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ch-eyebrow-light { color: rgba(255,255,255,0.88) !important; }
.ch-h2-light { color: #fff; }
.ch-sub-light { color: rgba(255,255,255,0.66) !important; }

.ch-nav-cross { color: var(--acc) !important; }

/* shared level bar, used in the hero panel and the traffic tabs */
.ch-bar {
  display: block; width: 100%; max-width: 120px; height: 6px;
  background: rgba(255,255,255,0.09); border-radius: var(--radius); overflow: hidden;
}
.ch-bar i { display: block; height: 100%; background: var(--plat); }

.ch-btn-ic { width: 17px; height: 17px; }

/* ================= HERO ================= */
.ch-hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 7vw, 92px) 0 var(--sec-y);
  border-bottom: 1px solid var(--line);
}
.ch-hero-mamba {
  position: absolute; top: 50%; right: -12%; width: min(760px, 62vw); max-width: none;
  transform: translateY(-50%); opacity: 0.10; pointer-events: none; z-index: 0;
}
.ch-hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
}

.ch-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc);
  background: rgba(201,213,234,0.06); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 7px 13px; margin-bottom: 22px;
}
.ch-chip-dot {
  width: 6px; height: 6px; background: #4ADE80; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.18);
}

.ch-hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02; letter-spacing: 0.01em; text-transform: uppercase;
  margin-bottom: 20px; color: #fff;
}
.ch-hero-sub {
  color: var(--text-dim); font-size: clamp(15px, 1.2vw, 17px);
  max-width: 560px; line-height: 1.65;
}
.ch-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.ch-hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin-top: 44px;
}
.ch-stat {
  background: var(--bg); padding: 18px 16px;
  display: flex; flex-direction: column; gap: 7px; min-width: 0;
}
.ch-stat-num {
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; color: var(--text); line-height: 1;
  white-space: nowrap;
}
.ch-stat-num i { font-style: normal; font-size: 0.6em; color: var(--text-dim); margin-left: 1px; }
.ch-stat-label { font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }

/* hero side panel — a fan card, the product of the system */
.ch-hero-panel {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.8), 0 0 60px -20px rgba(201,213,234,0.14);
  position: relative; overflow: hidden;
}
.ch-hero-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--plat);
}
.ch-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.ch-panel-title { font-size: 11.5px; letter-spacing: 0.08em; color: var(--text-dim); }
.ch-panel-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: #4ADE80; border: 1px solid rgba(74,222,128,0.35); border-radius: var(--radius); padding: 4px 8px;
}
.ch-panel-live i { width: 5px; height: 5px; background: #4ADE80; border-radius: 50%; }

.ch-panel-rows { padding: 6px 18px; }
.ch-prow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid rgba(27,36,56,0.7);
}
.ch-prow:last-child { border-bottom: none; }
.ch-prow span {
  font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim); flex-shrink: 0;
}
.ch-prow b { font-family: var(--font-ui); font-size: 13px; font-weight: 600; text-align: right; }
.ch-prow b.ch-bar { max-width: 110px; }

.ch-panel-foot {
  padding: 16px 18px; border-top: 1px solid var(--line); background: var(--surface-2);
  display: flex; flex-direction: column; gap: 12px;
}
.ch-panel-spend { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ch-panel-spend span {
  font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim);
}
.ch-panel-spend b { font-size: 22px; color: #4ADE80; }
.ch-panel-next {
  font-size: 10.5px; letter-spacing: 0.08em; color: var(--text-on-plat);
  background: var(--plat); padding: 8px 10px; border-radius: var(--radius); text-align: center; font-weight: 700;
}

/* ================= APPROACH — fit / not fit ================= */
.ch-approach { padding: var(--sec-y) 0; }
.ch-fit {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px; background: var(--line); border: 1px solid var(--line);
}
.ch-fit-col { background: var(--surface); padding: clamp(24px, 2.6vw, 34px); position: relative; }
.ch-fit-col::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
}
.ch-fit-yes::before { background: var(--plat); }
.ch-fit-no::before { background: linear-gradient(90deg, #E85C5C, rgba(232,92,92,0.15)); }
.ch-fit-col h3 {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.ch-fit-col h3 .ic { width: 18px; height: 18px; }
.ch-fit-no h3 { color: #E8A0A0; }
.ch-fit-no h3 .ic { filter: brightness(0) saturate(100%) invert(72%) sepia(24%) saturate(900%) hue-rotate(313deg) brightness(95%); }
.ch-fit-col ul { display: flex; flex-direction: column; gap: 13px; }
.ch-fit-col li {
  position: relative; padding-left: 24px; font-size: 14px; line-height: 1.55; color: var(--text-dim);
}
.ch-fit-col li b { color: var(--text); font-weight: 600; }
.ch-fit-yes li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--acc); font-weight: 700; }
.ch-fit-no li::before { content: "✕"; position: absolute; left: 0; top: 0; color: #E85C5C; font-weight: 700; font-size: 12px; }
.ch-fit-note {
  text-align: center; margin: 28px auto 0; max-width: 620px;
  font-size: 13.5px; color: var(--text-dim); line-height: 1.6;
}

/* ================= SYSTEM — the ladder ================= */
.ch-system { padding: var(--sec-y) 0; position: relative; }
.ch-system-star {
  position: absolute; top: -38px; right: 7%; width: 120px; height: 120px;
  transform: rotate(18deg); pointer-events: none; z-index: 1;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.5));
}
.ch-ladder {
  position: relative; z-index: 2; list-style: none; margin: 0; padding: 0;
  max-width: 880px; margin-inline: auto;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.ch-step {
  display: flex; align-items: flex-start; gap: clamp(18px, 2.4vw, 30px);
  padding: clamp(22px, 2.4vw, 30px) 6px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  position: relative; transition: background 0.2s ease, padding-left 0.2s ease;
}
.ch-step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 0;
  background: var(--plat); transition: height 0.25s ease;
}
.ch-step:hover { background: rgba(255,255,255,0.04); padding-left: 20px; }
.ch-step:hover::before { height: 100%; }
.ch-step-num {
  font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 400;
  line-height: 1; color: rgba(255,255,255,0.28); flex-shrink: 0; min-width: 56px;
  transition: color 0.2s ease;
}
.ch-step:hover .ch-step-num { color: var(--acc); }
.ch-step-body h3 {
  font-family: var(--font-ui); font-size: 16px; font-weight: 700; color: #fff;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px;
}
.ch-step-body p { margin: 0; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.68); max-width: 640px; }

/* ================= PLAYBOOK ================= */
.ch-playbook { padding: var(--sec-y) 0; }
.ch-play-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px; background: var(--line); border: 1px solid var(--line);
}
.ch-play-card {
  background: var(--surface); position: relative; overflow: hidden; min-width: 0;
  transition: background 0.2s ease;
}
.ch-play-card:hover, .ch-play-card[open] { background: var(--surface-2); }
.ch-play-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 2px;
  background: var(--plat); transition: width 0.3s ease; z-index: 1;
}
.ch-play-card:hover::before, .ch-play-card[open]::before { width: 100%; }
.ch-play-card summary {
  list-style: none; cursor: pointer; padding: 20px;
  display: flex; align-items: center; gap: 11px; min-height: 68px;
}
.ch-play-card summary::-webkit-details-marker { display: none; }
.ch-play-card .ic { width: 21px; height: 21px; flex-shrink: 0; }
.ch-play-card h3 {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; line-height: 1.35;
  color: var(--text); margin: 0;
}
.ch-play-toggle {
  margin-left: auto; font-family: var(--font-mono); font-size: 15px; color: var(--text-dim);
  flex-shrink: 0; transition: transform 0.2s ease;
}
.ch-play-card[open] .ch-play-toggle { transform: rotate(45deg); color: var(--acc); }
.ch-play-card ul { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 22px; }
.ch-play-card li {
  font-size: 13px; line-height: 1.5; color: var(--text-dim);
  position: relative; padding-left: 16px;
}
.ch-play-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--acc); opacity: 0.75; font-weight: 700; }
.ch-play-wide { grid-column: span 2; }
.ch-play-wide h3 { font-size: 16px; }
.ch-play-full { grid-column: 1 / -1; }
.ch-play-full h3 { font-size: 16px; }

/* ================= TRAFFIC TABS ================= */
.ch-traffic { padding: var(--sec-y) 0; }
.ch-tabs {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); max-width: 1080px; margin: 0 auto;
}
.ch-tab-menu {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface-2); border-right: 1px solid var(--line); padding: 12px;
}
.ch-tab {
  text-align: left; padding: 13px 15px; min-height: 44px;
  border: none; border-radius: var(--radius); background: transparent; color: var(--text-dim);
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ch-tab:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.ch-tab.is-active { background: var(--plat); color: var(--text-on-plat); }

/* fixed floor so switching sources never jumps the page height */
.ch-tab-display { padding: clamp(26px, 3vw, 38px); min-width: 0; min-height: 380px; }
.ch-tab-panel { display: none; }
.ch-tab-panel.is-active { display: block; }
.ch-tab-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.ch-tab-meta > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ch-tab-meta span {
  font-family: var(--font-ui); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim);
}
.ch-tab-meta .ch-bar { max-width: none; }
.ch-tab-panel h3 {
  font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px);
  text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 12px; color: #fff;
}
.ch-tab-panel > p { font-size: 14.5px; line-height: 1.7; color: var(--text-dim); margin: 0 0 20px; max-width: 620px; }
.ch-tab-list { display: flex; flex-direction: column; gap: 9px; }
.ch-tab-list li {
  position: relative; padding-left: 18px; font-family: var(--font-ui);
  font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.5;
}
.ch-tab-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 2px; background: var(--plat);
}

/* ================= SOFTWARE ================= */
.ch-software { padding: var(--sec-y) 0; position: relative; }
.ch-soft-star {
  position: absolute; top: -40px; left: 5%; width: 120px; height: 120px;
  transform: rotate(-14deg); pointer-events: none; z-index: 1;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45));
}
.ch-soft-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 60px); align-items: center;
}
.ch-soft-text h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 42px);
  text-transform: uppercase; letter-spacing: 0.01em; color: #fff; margin-bottom: 14px; line-height: 1.08;
}
.ch-soft-text > p { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.85); margin: 0; max-width: 480px; }
.ch-soft-text > p b { color: #fff; font-weight: 700; }
.ch-soft-kill { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.ch-kill {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.72); background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius); padding: 6px 11px;
}
.ch-kill s { text-decoration-color: rgba(255,255,255,0.8); }
.ch-kill-zero {
  background: #fff; color: #0B0E16; border-color: #fff; font-weight: 800;
  font-family: var(--font-mono); box-shadow: 3px 3px 0 rgba(0,0,0,0.35);
}
.ch-soft-link {
  display: inline-block; margin-top: 22px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: #fff; border-bottom: 2px solid rgba(255,255,255,0.5); padding-bottom: 3px;
  transition: border-color 0.2s ease;
}
.ch-soft-link:hover { border-color: #fff; }

.ch-soft-cards { display: flex; flex-direction: column; gap: 12px; }
.ch-soft-card {
  background: rgba(7,11,20,0.72); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 20px 22px;
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px 14px; align-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ch-soft-card:hover { background: rgba(7,11,20,0.9); transform: translateX(3px); }
.ch-soft-ic { width: 22px; height: 22px; grid-row: 1; }
.ch-soft-card h3 {
  grid-row: 1; font-family: var(--font-ui); font-size: 14.5px; font-weight: 700; color: #fff; margin: 0;
}
.ch-soft-card p {
  grid-column: 2; margin: 0; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.72);
}

/* ================= TERMS ================= */
.ch-terms { padding: var(--sec-y) 0; }
.ch-term-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px); align-items: stretch; max-width: 1000px; margin: 8px auto 0;
}
.ch-term-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 32px) clamp(20px, 2vw, 26px); position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ch-term-card:hover { transform: translateY(-3px); border-color: var(--acc); }
.ch-term-plan {
  font-family: var(--font-display); font-size: 24px; letter-spacing: 0.04em; color: var(--text);
}
.ch-term-price { font-family: var(--font-mono); font-weight: 700; font-size: 34px; color: var(--text); line-height: 1; }
.ch-term-price span { font-size: 20px; color: var(--text-dim); }
.ch-term-feats { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ch-term-feats li {
  font-size: 13px; line-height: 1.5; color: var(--text-dim); padding-left: 20px; position: relative;
}
.ch-term-feats li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--acc); font-weight: 700; }
.ch-term-feats li b { color: var(--text); font-weight: 700; }
.ch-term-featured {
  background: rgba(201,213,234,0.06); border: 2px solid var(--acc);
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.6), 0 0 40px -12px rgba(201,213,234,0.28);
}
.ch-term-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--plat); color: var(--text-on-plat);
  font-family: var(--font-ui); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius); white-space: nowrap;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.6);
}
.ch-term-cta { width: 100%; justify-content: center; margin-top: 2px; }

/* ================= AUDIT ================= */
.ch-audit {
  padding: var(--sec-y) 0; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(201,213,234,0.03), transparent 60%);
}
.ch-audit-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px); align-items: start;
}
.ch-audit-h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 42px);
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.08; margin: 4px 0 14px;
}
.ch-audit-text > p { font-size: 15px; line-height: 1.7; color: var(--text-dim); margin: 0; max-width: 480px; }
.ch-audit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.ch-audit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ch-audit-list li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
}
.ch-audit-list li > span {
  font-size: 12px; font-weight: 700; color: var(--acc); flex-shrink: 0;
  min-width: 26px; padding-top: 2px;
}
.ch-audit-list b {
  display: block; font-family: var(--font-ui); font-size: 14px; font-weight: 700; margin-bottom: 5px;
}
.ch-audit-list p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-dim); }

.ch-faq { padding: var(--sec-y) 0; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .ch-play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-play-wide, .ch-play-full { grid-column: span 2; }
}

@media (max-width: 900px) {
  .ch-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .ch-hero-title { font-size: clamp(34px, 8vw, 46px); }
  .ch-hero-sub { max-width: none; }
  .ch-hero-mamba { right: -28%; opacity: 0.07; }
  .ch-hero-panel { max-width: 420px; width: 100%; }
  .ch-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 34px; }

  .ch-fit { grid-template-columns: minmax(0, 1fr); }

  .ch-tabs { grid-template-columns: minmax(0, 1fr); }
  .ch-tab-menu {
    flex-direction: row; flex-wrap: wrap; border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .ch-tab { flex: 1 1 auto; text-align: center; padding: 11px 13px; font-size: 13px; }

  .ch-soft-inner { grid-template-columns: minmax(0, 1fr); }
  .ch-soft-text > p { max-width: none; }
  .ch-soft-star { width: 90px; height: 90px; top: -28px; }

  .ch-term-cards { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .ch-term-featured { order: -1; }

  .ch-audit-inner { grid-template-columns: minmax(0, 1fr); }
  .ch-audit-text > p { max-width: none; }
}

@media (max-width: 640px) {
  .ch-hero { padding-top: 40px; }
  .ch-hero-stats { grid-template-columns: minmax(0, 1fr); }
  .ch-hero-actions .tm-btn-primary,
  .ch-hero-actions .tm-btn-ghost,
  .ch-audit-actions .tm-btn-primary,
  .ch-audit-actions .tm-btn-ghost { width: 100%; justify-content: center; }

  .ch-play-grid { grid-template-columns: minmax(0, 1fr); }
  .ch-play-wide, .ch-play-full { grid-column: 1 / -1; }

  .ch-step { gap: 14px; padding: 20px 4px; }
  .ch-step-num { min-width: 42px; }
  .ch-step:hover { padding-left: 12px; }

  .ch-tab-meta { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ch-system-star { width: 84px; height: 84px; top: -26px; right: 4%; }
}

/* Users who prefer less motion get no transforms at all. */
@media (prefers-reduced-motion: reduce) {
  .ch-step, .ch-soft-card, .ch-term-card, .ch-play-card { transition: none; }
  .ch-step:hover, .ch-term-card:hover, .ch-soft-card:hover { transform: none; padding-left: 6px; }
}
