/* ============================================================
   CASE STUDY PAGE — Conversion Works
   Subscription & Purchase Growth via A/B Testing
   Reuses brand tokens from colors_and_type.css / styles.css.
   All page-specific classes are csx-* prefixed.
   ============================================================ */

.csx-page { padding-top: 74px; }

/* ---- shared inner width (slightly wider than landing wrap) ---- */
.csx-wrap { max-width: 1216px; margin: 0 auto; padding: 0 32px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.csx-crumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  color: var(--fg3); padding: 26px 0 22px;
}
.csx-crumb a { color: var(--fg3); text-decoration: none; transition: color .15s; }
.csx-crumb a:hover { color: var(--magenta-300); }
.csx-crumb i { font-size: 15px; opacity: 0.6; }
.csx-crumb .csx-crumb-cur { color: var(--fg1); }

/* ============================================================
   HERO
   ============================================================ */
.csx-hero { position: relative; padding: 30px 0 56px; overflow: hidden; }
.csx-hero .haze-bloom { opacity: 0.5; }
/* faint brand wordmark ghost behind the title */
.csx-hero-ghost {
  position: absolute; top: -8px; left: -6px; z-index: 0; pointer-events: none;
  font-family: var(--font-display); font-weight: 800; font-size: 120px; line-height: 1;
  letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  opacity: 0.6;
}
.csx-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; column-gap: 56px; align-items: start;
  grid-template-rows: min-content min-content 1fr;
  grid-template-areas: "text image" "metrics image" ". image";
}
.csx-hero-text { grid-area: text; position: relative; }
.csx-hero-media { grid-area: image; align-self: start; }
  margin-top: 22px;
}
.csx-hero-eyebrow { margin-bottom: 18px; }
.csx-hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 52px; line-height: 1.05; letter-spacing: -0.02em;
  color: var(--fg1); margin: 0; text-wrap: balance;
}
.csx-hero-sub {
  font-family: var(--font-body); font-weight: 300; font-size: 17px; line-height: 1.6;
  color: var(--fg2); margin: 20px 0 0; max-width: 520px;
}

/* tabbed metrics */
.csx-hero-metrics { grid-area: metrics; margin-top: 14px; align-self: start; }
.csx-tabs {
  display: inline-flex; gap: 3px; margin: 0 0 16px; padding: 3px;
  background: rgba(11,16,32,0.6); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}
.csx-tab {
  font-family: var(--font-ui); font-weight: 600; font-size: 12px; letter-spacing: 0.01em;
  color: var(--fg3); background: transparent; border: 0; cursor: pointer; white-space: nowrap;
  padding: 7px 14px; border-radius: var(--radius-pill); transition: color .2s, background .2s;
}
.csx-tab:hover { color: var(--fg2); }
.csx-tab.is-active {
  color: #fff;
  background: linear-gradient(100deg, #C4002D 0%, #F22248 50%, #C4002D 100%);
  box-shadow: 0 6px 20px rgba(242,34,72, calc(0.36 * var(--glow-mult)));
}

.csx-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 520px;
}
.csx-stat {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 18px 18px 16px;
}
.csx-stat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-halo); opacity: 0.9;
}
.csx-stat-num {
  display: flex; align-items: baseline; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1;
  letter-spacing: -0.02em; color: var(--fg1);
}
.csx-stat-num .csx-up { color: var(--success); font-size: 18px; transform: translateY(-2px); }
.csx-stat-label {
  font-family: var(--font-ui); font-weight: 500; font-size: 12.5px; line-height: 1.4;
  color: var(--fg3); margin-top: 9px;
}

/* hero featured media */
.csx-hero-media {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(242,34,72, calc(0.14 * var(--glow-mult)));
}
.csx-hero-media image-slot { width: 100%; height: 100%; }

/* ============================================================
   META BAND — summary / services / facts
   ============================================================ */
.csx-meta { margin: 6px 0 8px; }
.csx-meta-card { padding: 30px 32px; border-radius: var(--radius-lg); }
.csx-meta-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: start;
}
.csx-meta-sub { padding-left: 44px; border-left: 1px solid var(--border-subtle); }
.csx-label {
  font-family: var(--font-ui); font-weight: 600; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--violet-400); margin: 0 0 12px;
}
.csx-summary-text {
  font-family: var(--font-body); font-weight: 300; font-size: 15.5px; line-height: 1.65;
  color: var(--fg2); margin: 0 0 22px;
}
.csx-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.csx-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-ui); font-weight: 600; font-size: 12.5px;
  color: var(--magenta-200); background: rgba(242,34,72,0.1);
  border: 1px solid var(--border-brand); border-radius: var(--radius-pill);
  padding: 7px 14px;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.csx-chip:hover {
  background: rgba(242,34,72,0.2); border-color: var(--border-emphasis);
  color: var(--magenta-100); transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(242,34,72, calc(0.22 * var(--glow-mult)));
}
.csx-chip i { font-size: 14px; }
.csx-facts { display: flex; flex-direction: column; gap: 18px; }
.csx-fact { display: flex; gap: 14px; align-items: flex-start; }
.csx-fact-ic {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: rgba(140,107,240,0.12); border: 1px solid rgba(140,107,240,0.28);
  color: var(--violet-400);
}
.csx-fact-t {
  font-family: var(--font-ui); font-weight: 600; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg3); margin: 0 0 4px;
}
.csx-fact-v {
  font-family: var(--font-body); font-weight: 500; font-size: 14.5px; line-height: 1.4;
  color: var(--fg1); margin: 0;
}

/* ============================================================
   TWO-COLUMN LAYOUT (sticky rail + article)
   ============================================================ */
.csx-layout {
  display: grid; grid-template-columns: 288px 1fr; gap: 56px;
  padding: 52px 0 90px; align-items: start;
}
.csx-rail { position: sticky; top: 98px; display: flex; flex-direction: column; gap: 22px; }

/* table of contents */
.csx-toc-title {
  font-family: var(--font-ui); font-weight: 600; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg3); margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.csx-toc-title i { color: var(--violet-400); font-size: 15px; }
.csx-toc { display: flex; flex-direction: column; gap: 2px; }
.csx-toc-link {
  position: relative; display: block; text-decoration: none;
  font-family: var(--font-ui); font-weight: 500; font-size: 13.5px; line-height: 1.4;
  color: var(--fg3); padding: 9px 0 9px 18px; border-left: 2px solid var(--border-subtle);
  transition: color .18s, border-color .18s;
}
.csx-toc-link:hover { color: var(--fg2); }
.csx-toc-link.is-active {
  color: var(--fg1); border-left-color: var(--magenta-500);
}
.csx-toc-link.is-active::before {
  content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px;
  background: var(--magenta-500); box-shadow: 0 0 10px rgba(242,34,72,0.7);
}

/* "need quick wins" card */
.csx-wins { padding: 22px; border-radius: var(--radius-lg); }
.csx-wins-h {
  font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.25;
  color: var(--fg1); margin: 0 0 8px;
}
.csx-wins-p {
  font-family: var(--font-body); font-weight: 300; font-size: 13.5px; line-height: 1.55;
  color: var(--fg2); margin: 0 0 16px;
}
.csx-wins-badges { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.csx-wins-badge { display: flex; flex-direction: column; gap: 5px; }
.csx-wins-stars { display: flex; gap: 2px; color: var(--magenta-500); font-size: 12px; }
.csx-wins-stars--tp { color: #00b67a; }
.csx-wins-badge img { height: 15px; width: auto; opacity: 0.92; }
.csx-wins .btn { width: 100%; justify-content: center; }
.csx-wins-micro {
  font-family: var(--font-ui); font-weight: 400; font-size: 11.5px; line-height: 1.45;
  color: var(--fg3); margin: 11px 0 0; text-align: center;
}
.csx-wins-proof {
  display: flex; justify-content: center; gap: 30px;
  margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--border-subtle);
}
.csx-wins-proof .csx-wins-badge { align-items: center; gap: 6px; }
.csx-wins-proof .csx-wins-stars { font-size: 13px; }
.csx-wins-proof img { height: 17px; }

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.csx-article { min-width: 0; max-width: 760px; }
.csx-sec { scroll-margin-top: 100px; padding-top: 8px; }
.csx-sec + .csx-sec { margin-top: 52px; }
.csx-h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--fg1); margin: 0 0 8px;
  display: flex; align-items: center; gap: 14px;
}
.csx-h2-num {
  font-family: var(--font-ui); font-weight: 600; font-size: 13px;
  color: var(--magenta-400); background: rgba(242,34,72,0.1);
  border: 1px solid var(--border-brand); border-radius: var(--radius-pill);
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.csx-h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3;
  color: var(--fg1); margin: 0 0 12px;
}
.csx-p {
  font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: 1.7;
  color: #fafafa; margin: 14px 0 0;
}
.csx-p strong { font-weight: 600; color: var(--fg1); }
.csx-p .csx-hl { font-weight: 600; color: var(--fg1); }
.csx-list { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.csx-list li {
  position: relative; padding-left: 28px;
  font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: 1.6;
  color: #fafafa;
}
.csx-list li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--grad-halo);
}
.csx-list li strong { font-weight: 600; color: var(--fg1); }

/* two-column sub-grid (Challenges / Goals) */
.csx-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; }
.csx-subcard {
  background: var(--bg-card-translucent); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 22px;
}
.csx-subcard .csx-list { margin-top: 14px; }
.csx-subcard-h {
  font-family: var(--font-ui); font-weight: 600; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; margin: 0; display: flex; align-items: center; gap: 8px;
}
.csx-subcard--neg .csx-subcard-h { color: var(--magenta-300); }
.csx-subcard--pos .csx-subcard-h { color: var(--violet-400); }

/* figure */
.csx-figure { margin: 26px 0 0; }
.csx-figure image-slot { width: 100%; height: auto; aspect-ratio: 1901 / 1642; display: block; border-radius: var(--radius-md); }
.csx-figcap {
  font-family: var(--font-ui); font-weight: 400; font-size: 12.5px; font-style: italic;
  color: var(--fg3); margin: 11px 0 0; text-align: center;
}

/* test blocks */
.csx-test { margin-top: 34px; }
.csx-test-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.csx-test-badge {
  flex-shrink: 0; font-family: var(--font-ui); font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
  background: linear-gradient(100deg, #C4002D, #F22248); border-radius: var(--radius-pill);
  padding: 6px 13px; margin-top: 2px;
}
.csx-test-title {
  font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.25;
  color: var(--fg1); margin: 0;
}
.csx-spec {
  display: grid; grid-template-columns: 132px 1fr; gap: 4px 18px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  background: rgba(11,16,32,0.4); padding: 18px 20px; margin-top: 4px;
}
.csx-spec-k {
  font-family: var(--font-ui); font-weight: 600; font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg3); padding: 7px 0;
}
.csx-spec-v {
  font-family: var(--font-body); font-weight: 300; font-size: 14.5px; line-height: 1.55;
  color: var(--fg2); padding: 7px 0; border-top: 1px solid rgba(255,255,255,0.04);
}
.csx-spec-k:first-child, .csx-spec-k + .csx-spec-v { border-top: 0; }
.csx-spec-row:first-child .csx-spec-v { border-top: 0; }

/* result callout */
.csx-result {
  display: flex; align-items: center; gap: 14px; margin-top: 18px;
  background: linear-gradient(100deg, rgba(41,214,163,0.12), rgba(41,214,163,0.04));
  border: 1px solid rgba(41,214,163,0.34); border-radius: var(--radius-md);
  padding: 16px 20px;
}
.csx-result-ic {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: rgba(41,214,163,0.16); color: var(--success);
}
.csx-result-txt {
  font-family: var(--font-body); font-weight: 400; font-size: 15px; line-height: 1.5;
  color: var(--fg1);
}
.csx-result-txt strong { font-weight: 700; color: #6FE9C5; }

/* before / after media */
.csx-ba {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px;
  padding: 20px; border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border-subtle);
}
.csx-ba-col { display: flex; flex-direction: column; gap: 10px; }
.csx-ba-tag {
  font-family: var(--font-ui); font-weight: 600; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; text-align: center;
}
.csx-ba-col--before .csx-ba-tag { color: var(--fg3); }
.csx-ba-col--after .csx-ba-tag { color: var(--magenta-300); }
.csx-ba image-slot { width: 100%; height: auto; aspect-ratio: 541 / 1180; display: block; }

/* notes line */
.csx-note {
  font-family: var(--font-body); font-weight: 300; font-size: 13.5px; line-height: 1.55;
  color: var(--fg3); margin: 12px 0 0; padding-left: 14px;
  border-left: 2px solid var(--border-default);
}

/* highlighted wins box */
.csx-winbox {
  margin-top: 22px; padding: 22px 24px; border-radius: var(--radius-md);
}
.csx-winbox-h {
  font-family: var(--font-ui); font-weight: 600; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--magenta-300); margin: 0 0 14px;
}
.csx-winrow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--border-subtle);
}
.csx-winrow:first-of-type { border-top: 0; }
.csx-winrow-l {
  font-family: var(--font-body); font-weight: 400; font-size: 14.5px; color: var(--fg2);
}
.csx-winrow-v {
  font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em;
  color: var(--success); white-space: nowrap;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.csx-quote {
  position: relative; margin-top: 52px; padding: 38px 40px; border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 96px 1fr; gap: 28px; align-items: start;
}
.csx-quote-photo {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--border-default);
}
.csx-quote-photo image-slot { width: 100%; height: 100%; }
.csx-quote-stars { display: flex; gap: 3px; color: var(--magenta-500); font-size: 15px; margin-bottom: 14px; }
.csx-quote-txt {
  font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.5;
  letter-spacing: -0.01em; color: var(--fg1); margin: 0; text-wrap: pretty;
}
.csx-quote-by { margin-top: 18px; }
.csx-quote-name {
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--fg1); margin: 0;
}
.csx-quote-role {
  font-family: var(--font-ui); font-weight: 500; font-size: 13px; color: var(--fg3); margin: 3px 0 0;
}
.csx-quote-logo {
  position: absolute; right: 40px; bottom: 34px; height: 34px; width: auto;
  opacity: 0.85; pointer-events: none;
}

/* ============================================================
   FINAL CTA CARD (Ready to start...)
   ============================================================ */
.csx-cta { margin-top: 52px; position: relative; overflow: hidden; padding: 40px 44px; border-radius: var(--radius-lg); }
.csx-cta .haze-bloom { opacity: 0.5; }
.csx-cta-inner { position: relative; z-index: 1; }
.csx-cta-h {
  font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--fg1); margin: 0 0 22px; text-wrap: balance;
}
.csx-cta-checks { display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.csx-cta-check {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-weight: 400; font-size: 15.5px; color: var(--fg1);
}
.csx-cta-check i {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  background: rgba(41,214,163,0.16); color: var(--success);
}
.csx-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   OTHER CASE STUDIES
   ============================================================ */
.csx-other { padding: 80px 0; border-top: 1px solid var(--border-subtle); }
.csx-other-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.csx-other-title {
  font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em;
  color: var(--fg1); margin: 0;
}
.csx-other-nav { display: flex; gap: 10px; }
.csx-arrow {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-default);
  color: var(--fg1); transition: background .2s, border-color .2s;
}
.csx-arrow:hover { background: rgba(242,34,72,0.12); border-color: var(--border-brand); }
.csx-other-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr);
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 8px;
  scrollbar-width: none;
}
.csx-other-track::-webkit-scrollbar { display: none; }
.csx-other-card {
  scroll-snap-align: start; display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card-translucent); border: 1px solid var(--border-subtle);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.csx-other-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.csx-other-media { width: 100%; aspect-ratio: 16 / 10; position: relative; }
.csx-other-media image-slot { width: 100%; height: 100%; }
.csx-other-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csx-other-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.csx-other-desc {
  font-family: var(--font-body); font-weight: 300; font-size: 14px; line-height: 1.55;
  color: var(--fg2); margin: 0;
}
.csx-other-metrics { display: flex; flex-direction: column; gap: 9px; }
.csx-other-metric { display: flex; align-items: center; gap: 9px; }
.csx-other-metric i { color: var(--success); font-size: 16px; }
.csx-other-metric span {
  font-family: var(--font-ui); font-weight: 500; font-size: 13px; color: var(--fg1);
}
.csx-other-link {
  font-family: var(--font-ui); font-weight: 600; font-size: 13.5px; color: var(--magenta-300);
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px; margin-top: auto;
  transition: gap .2s;
}
.csx-other-link:hover { gap: 11px; }
.csx-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.csx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); border: 0; cursor: pointer; padding: 0; transition: background .2s, width .2s; }
.csx-dot.is-active { width: 22px; border-radius: 4px; background: var(--magenta-500); }

/* ============================================================
   MOBILE TOC DROPDOWN  (hidden on desktop)
   ============================================================ */
.csx-toc-mob { display: none; }

/* ============================================================
   MOBILE STICKY CTA DROPDOWN  (hidden on desktop)
   ============================================================ */
.csx-mobcta { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .csx-hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 30px; grid-template-areas: "text" "image" "metrics"; }
  .csx-hero-media { aspect-ratio: 1 / 1; max-height: none; }
  .csx-hero-metrics { margin-top: 0; }
  .csx-hero-ghost { font-size: 84px; }
}

@media (max-width: 920px) {
  .csx-layout { grid-template-columns: 1fr; gap: 0; padding-top: 36px; }
  /* desktop rail hidden; mobile TOC + meta cards used instead */
  .csx-rail { display: none; }
  .csx-meta-grid { grid-template-columns: 1fr; gap: 28px; }
  .csx-meta-sub { padding-left: 0; border-left: 0; border-top: 1px solid var(--border-subtle); padding-top: 26px; }

  /* mobile TOC dropdown — sticky under the nav */
  .csx-toc-mob {
    display: block; position: sticky; top: 70px; z-index: 30; margin: 0 -20px 24px;
    padding: 12px 20px; background: rgba(2,3,13,0.86); backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .csx-toc-mob-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    background: rgba(11,16,32,0.7); border: 1px solid var(--border-default); border-radius: 12px;
    cursor: pointer; padding: 13px 15px;
    font-family: var(--font-ui); font-weight: 600; font-size: 14px; color: var(--fg1);
    transition: border-color .2s, background .2s;
  }
  .csx-toc-mob.is-open .csx-toc-mob-btn { border-color: var(--border-brand); background: rgba(11,16,32,0.95); }
  .csx-toc-mob-btn .csx-toc-mob-cur { display: flex; align-items: center; gap: 10px; }
  .csx-toc-mob-btn .csx-toc-mob-cur i { color: var(--violet-400); font-size: 16px; }
  .csx-toc-mob-chev { transition: transform .25s var(--ease); color: var(--fg2); font-size: 20px; }
  .csx-toc-mob.is-open .csx-toc-mob-chev { transform: rotate(180deg); }
  .csx-toc-mob-panel {
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease);
  }
  .csx-toc-mob.is-open .csx-toc-mob-panel { grid-template-rows: 1fr; }
  .csx-toc-mob-list { overflow: hidden; }
  .csx-toc-mob-list-inner {
    display: flex; flex-direction: column; gap: 1px;
    margin: 8px 0 4px; padding: 7px; border-radius: 12px;
    background: rgba(11,16,32,0.96); border: 1px solid var(--border-default);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  }
  .csx-toc-mob-list a {
    font-family: var(--font-ui); font-weight: 500; font-size: 14px; color: var(--fg3);
    text-decoration: none; padding: 11px 12px; border-radius: 8px; transition: background .15s, color .15s;
  }
  .csx-toc-mob-list a.is-active { color: var(--fg1); background: rgba(242,34,72,0.12); }
}

@media (max-width: 720px) {
  .csx-wrap { padding: 0 20px; }
  .csx-hero-title { font-size: 36px; }
  .csx-hero-metrics { margin-top: 0; }
  .csx-tabs { display: flex; width: 100%; }
  .csx-tab { flex: 1; text-align: center; padding: 8px 6px; font-size: 12px; }
  .csx-stats { max-width: none; }
  .csx-meta-card { padding: 24px 22px; }
  .csx-h2 { font-size: 25px; }
  .csx-cols2 { grid-template-columns: 1fr; gap: 16px; }
  .csx-spec { grid-template-columns: 1fr; gap: 0; }
  .csx-spec-v { border-top: 0; padding-top: 2px; padding-bottom: 12px; }
  .csx-spec-k { padding-bottom: 2px; }
  .csx-spec-k:not(:first-child) { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 12px; }
  .csx-quote { grid-template-columns: 1fr; gap: 18px; padding: 28px 24px; }
  .csx-quote-logo { right: 24px; bottom: 24px; height: 26px; }
  .csx-quote-photo { width: 72px; height: 72px; }
  .csx-quote-txt { font-size: 18px; }
  .csx-cta { padding: 30px 24px; }
  .csx-cta-actions .btn { width: 100%; justify-content: center; }
  .csx-toc-mob { margin: 0 -20px 24px; padding: 0 20px; }

  /* sticky mobile CTA dropdown */
  .csx-mobcta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: linear-gradient(180deg, rgba(242,34,72,0.16), rgba(242,34,72,0.06)), rgba(7,10,20,0.94);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-brand);
    box-shadow: 0 -12px 40px rgba(0,0,0,0.5), 0 -2px 30px rgba(242,34,72, calc(0.2 * var(--glow-mult)));
    transform: translateY(110%); transition: transform .34s var(--ease);
  }
  .csx-mobcta.is-visible { transform: translateY(0); }
  .csx-mobcta-bar {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: transparent; border: 0; cursor: pointer; padding: 19px 20px;
    font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--fg1);
  }
  .csx-mobcta-bar .csx-mobcta-lead { display: flex; align-items: center; gap: 11px; }
  .csx-mobcta-bar .csx-mobcta-dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--magenta-500);
    box-shadow: 0 0 10px rgba(242,34,72,0.8); flex-shrink: 0;
    animation: breathe 2.4s var(--ease) infinite;
  }
  .csx-mobcta-chev { color: var(--fg3); transition: transform .25s var(--ease); }
  .csx-mobcta.is-open .csx-mobcta-chev { transform: rotate(180deg); }
  .csx-mobcta-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
  .csx-mobcta.is-open .csx-mobcta-panel { grid-template-rows: 1fr; }
  .csx-mobcta-inner { overflow: hidden; }
  .csx-mobcta-content { padding: 0 20px 24px; }
  .csx-mobcta-h {
    font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25;
    color: var(--fg1); margin: 4px 0 8px;
  }
  .csx-mobcta-p {
    font-family: var(--font-body); font-weight: 300; font-size: 14px; line-height: 1.55;
    color: var(--fg2); margin: 0 0 16px;
  }
  .csx-mobcta-content .btn { width: 100%; justify-content: center; }
  .csx-mobcta-proof { margin-top: 16px; }
  /* lift the Lens orb above the docked CTA bar so the two never clash */
  body.csx-cta-on .lens-launcher { bottom: 94px; }
  /* keep content clear of the docked bar */
  .csx-other { padding-bottom: 120px; }
}
