/* Case study /social — same tokens as the homepage, denser and more demonstrative. */
.case-social {
  --cs-cyan: #63d7e8;
  --cs-yellow: #f2d34d;
  --cs-pink: #f27aa8;
  --cs-purple: #b99cff;
}
.cs-hero {
  padding: 70px 40px 0;
  position: relative;
  isolation: isolate;
}
.cs-hero-grid {
  position: absolute;
  inset: 0 0 auto;
  height: 560px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse at 50% 35%, transparent 30%, #000 85%);
  z-index: -1;
  pointer-events: none;
}
.cs-hero-copy {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.cs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--green-line);
  border-radius: 30px;
  padding: 7px 12px;
  background: var(--green-surface);
  font: 9px var(--font-mono);
  letter-spacing: 0.7px;
  color: var(--green-muted);
  text-transform: uppercase;
}
.cs-kicker .status-dot {
  background: var(--accent-text);
}
.cs-hero h1 {
  font-size: clamp(40px, 5.2vw, 70px);
  line-height: 1.03;
  letter-spacing: -3.6px;
  font-weight: 550;
  margin: 26px 0 22px;
  text-wrap: balance;
}
.cs-hero h1 > span {
  color: var(--accent-text);
}
.cs-hero-lead {
  color: var(--soft);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 auto;
  max-width: 690px;
}
.cs-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 27px;
}
.cs-hero-note {
  color: var(--muted);
  font-size: 11px;
  margin: 15px 0 34px;
}
.cs-hero-price {
  color: var(--accent-text);
  font: 10px/1.5 var(--font-mono);
  margin: -2px 0 30px;
}
.cs-hero-note code {
  font: 10px var(--font-mono);
  color: var(--soft);
}

/* Demo window */
.cs-demo {
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  overflow: hidden;
  box-shadow:
    0 12px 34px #00000042,
    0 1px 3px #00000028;
  text-align: left;
}
.cs-demo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  background: #0d100b;
  font: 9px var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.6px;
}
.cs-dots {
  display: flex;
  gap: 5px;
}
.cs-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30362b;
  display: block;
}
.cs-dots i:first-child {
  background: #4a5540;
}
.cs-demo-bar > span:nth-child(2) {
  color: var(--soft);
}
.cs-demo-tag {
  margin-left: auto;
  border: 1px solid var(--green-line);
  background: var(--green-surface);
  color: var(--green-muted);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 8px;
}
.cs-demo-body {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
}
.cs-terminal {
  padding: 25px 26px;
  border-right: 1px solid var(--line);
}
.cs-prompt {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
}
.cs-prompt b {
  color: var(--accent-text);
  font: 18px var(--font-mono);
  line-height: 1.2;
}
.cs-prompt span {
  color: var(--ink);
}
.cs-caret {
  display: inline-block;
  width: 7px;
  height: 16px;
  margin-left: 4px;
  vertical-align: -3px;
  background: var(--accent-text);
  animation: cs-blink 0.9s steps(1) infinite;
}
@keyframes cs-blink {
  50% {
    opacity: 0;
  }
}
.cs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 16px 28px;
}
.cs-chips span {
  border: 1px solid var(--line);
  background: #151914;
  border-radius: 4px;
  padding: 5px 7px;
  font: 8px var(--font-mono);
  color: var(--soft);
}
.cs-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 28px;
  font: 9px var(--font-mono);
  color: var(--muted);
}
.cs-spinner {
  width: 9px;
  height: 9px;
  border: 1px solid var(--green-line);
  border-top-color: var(--accent-text);
  border-radius: 50%;
  animation: cs-spin 1s linear infinite;
}
.cs-spinner.done {
  display: none;
}
.cs-check {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex: none;
}
@keyframes cs-spin {
  to {
    transform: rotate(360deg);
  }
}
.cs-run {
  list-style: none;
  margin: 21px 0 0;
  padding: 0 0 0 28px;
  display: grid;
  gap: 10px;
}
.cs-run li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: var(--soft);
}
.cs-run li > span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--green-line);
  background: var(--green-surface);
  color: var(--accent-text);
  font: 9px var(--font-mono);
  flex: none;
}
.cs-run li.done {
  color: var(--ink);
}
.cs-run li.done > span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.cs-terminal-card {
  margin: 22px 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0d100b;
  padding: 11px 12px;
}
.cs-terminal-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 7px var(--font-mono);
  letter-spacing: 0.7px;
  color: var(--muted);
  margin-bottom: 7px;
}
.cs-terminal-card-head span:last-child {
  color: var(--accent-text);
}
.cs-terminal-card p {
  margin: 0 0 6px;
  font: 9px var(--font-mono);
  color: var(--soft);
}
.cs-terminal-card p b {
  color: var(--ink);
  font-weight: 500;
}
.cs-terminal-card q {
  display: block;
  font-size: 10px;
  line-height: 1.55;
  color: var(--ink);
  quotes: '«' '»';
}
.cs-terminal-card q:before,
.cs-terminal-card q:after {
  color: var(--accent-text);
}
.cs-terminal-card small {
  display: block;
  margin-top: 7px;
  font: 8px var(--font-mono);
  color: var(--green-muted);
}
.cs-demo.cs-animating .cs-chips,
.cs-demo.cs-animating .cs-status,
.cs-demo.cs-animating .cs-run li,
.cs-demo.cs-animating .cs-terminal-card,
.cs-demo.cs-animating .cs-results-head,
.cs-demo.cs-animating .cs-post {
  opacity: 0;
  transform: translateY(5px);
}
.cs-demo.cs-revealed .cs-chips {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cs-demo.cs-revealed .cs-status {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s;
}
.cs-demo.cs-revealed .cs-run li {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  /* One step every 0.08s from 0.25s; the first line serves browsers without
     sibling-index() (social.js sets --sibling-index there). */
  transition-delay: calc(0.17s + var(--sibling-index) * 0.08s);
  transition-delay: calc(0.17s + sibling-index() * 0.08s);
}
.cs-demo.cs-revealed .cs-results-head {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease 0.45s, transform 0.35s ease 0.45s;
}
.cs-demo.cs-revealed .cs-post {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  /* One tile every 0.06s from 0.52s (same fallback as the steps). */
  transition-delay: calc(0.46s + var(--sibling-index) * 0.06s);
  transition-delay: calc(0.46s + sibling-index() * 0.06s);
}
.cs-demo.cs-revealed .cs-terminal-card {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease 0.95s, transform 0.4s ease 0.95s;
}
.cs-insights {
  margin: 14px 0 0 28px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.cs-insights > span {
  font: 7px var(--font-mono);
  letter-spacing: 0.7px;
  color: var(--muted);
}
.cs-insights ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.cs-insights li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--soft);
}
.cs-insights li b {
  color: var(--accent-text);
  font: 11px var(--font-mono);
  font-weight: 500;
  flex: none;
}
.cs-demo.cs-animating .cs-insights {
  opacity: 0;
  transform: translateY(5px);
}
.cs-demo.cs-revealed .cs-insights {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease 1.05s, transform 0.4s ease 1.05s;
}
.cs-results {
  padding: 18px 20px 20px;
  background: linear-gradient(150deg, #13170f, #0f130c);
}
.cs-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font: 9px var(--font-mono);
  color: var(--muted);
  margin-bottom: 12px;
}
.cs-results-head b {
  color: var(--accent-text);
  font-weight: 500;
}
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.cs-post {
  position: relative;
  display: block;
  aspect-ratio: 9 / 11.5;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #12160f;
}
.cs-post-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.cs-post:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #00000012 30%, #000000e6 100%);
}
.cs-post > span {
  position: absolute;
  z-index: 1;
  font: 8px var(--font-mono);
}
.cs-post-views {
  left: 7px;
  bottom: 6px;
  color: #f3f7ec;
  font-weight: 600;
  text-shadow: 0 1px 4px #000;
}
.cs-post-author {
  left: 7px;
  bottom: 21px;
  max-width: calc(100% - 14px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dfe9d4;
  text-shadow: 0 1px 4px #000;
}
.cs-post-net {
  right: 6px;
  top: 6px;
  border: 1px solid #ffffff26;
  background: #0a0c08b8;
  border-radius: 3px;
  padding: 2px 4px;
  color: #dbe7cf;
  letter-spacing: 0.4px;
}
.cs-post-play {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 1;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  background: #0a0c0866;
  backdrop-filter: blur(2px);
}
.cs-post-play:after {
  content: '';
  position: absolute;
  left: 8px;
  top: 5px;
  border-left: 7px solid #fff;
  border-block: 5px solid transparent;
}
.cs-post.crown {
  border-color: #5f7c2f;
}
.cs-post.crown .cs-post-views {
  color: var(--accent-text);
}
.cs-note {
  color: var(--muted);
  font-size: 10px;
  margin: 13px 0 0;
  line-height: 1.6;
}
.cs-hero-bottom {
  padding: 28px 0 22px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 8px var(--font-mono);
  letter-spacing: 1px;
}

/* Step rail */
.cs-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  background: #0b0e09;
  font: 9px var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
}
.cs-rail::-webkit-scrollbar {
  display: none;
}
.cs-rail-label {
  letter-spacing: 0.8px;
  color: var(--accent-text);
  margin-right: 8px;
}
.cs-rail a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #12160f;
  color: var(--soft);
}
.cs-rail a:hover {
  border-color: var(--green-line);
  color: var(--ink);
}
.cs-rail a b {
  color: var(--accent-text);
  font-weight: 400;
}
.cs-rail-arrow {
  color: #3f4a36;
}
@media (max-width: 700px) {
  .cs-rail {
    padding: 11px 16px;
    gap: 7px;
  }
  .cs-rail-label {
    display: none;
  }
  .cs-rail a {
    padding: 6px 7px;
  }
  .cs-rail-arrow {
    font-size: 8px;
  }
}

/* Sections */
.cs-section {
  border-bottom: 1px solid var(--line);
}
.cs-intro {
  padding: 62px 40px 38px;
  text-align: center;
  background-image: radial-gradient(#293222 1px, transparent 1px);
  background-size: 9px 9px;
  background-position: center 18px;
  background-repeat: no-repeat;
}
.cs-intro > * {
  background: var(--ground);
  width: fit-content;
  margin-inline: auto;
}
.cs-intro h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -1.9px;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.cs-intro h2 > span {
  color: var(--accent-text);
}
.cs-intro > p:last-child {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.8;
  margin: 17px auto 0;
  max-width: 660px;
}
.cs-body {
  padding: 0 40px 56px;
}
.cs-pricebar {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #14190f, var(--panel));
  border-radius: 10px;
  padding: 18px 22px;
  margin: 0 auto 20px;
  max-width: 980px;
}
.cs-price {
  font: 500 clamp(30px, 4vw, 46px) / 1 var(--font-mono);
  letter-spacing: -2px;
  color: var(--ink);
  white-space: nowrap;
}
.cs-price small {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 8px;
}
.cs-pricebar p {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.7;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.cs-pricebar p b {
  color: var(--accent-text);
  font-weight: 500;
}
.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto 30px;
  background: var(--panel);
}
.cs-stat {
  padding: 18px 18px 20px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.cs-stat:last-child {
  border-right: 0;
}
.cs-stat b {
  display: block;
  font: 500 17px/1.3 var(--font-mono);
  color: var(--accent-text);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.cs-stat span {
  font-size: 10px;
  color: var(--soft);
  line-height: 1.55;
  display: block;
}
.cs-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  max-width: 980px;
  margin: 0 auto;
}
.cs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
.cs-table th {
  font: 8px var(--font-mono);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  background: #0d100b;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  white-space: nowrap;
}
.cs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  vertical-align: top;
  line-height: 1.55;
}
.cs-table tr:last-child td {
  border-bottom: 0;
}
.cs-table td:first-child {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.cs-table code {
  font: 9px/1.6 var(--font-mono);
  color: var(--green-muted);
  overflow-wrap: anywhere;
}
.cs-table .cs-price-cell {
  color: var(--accent-text);
  white-space: nowrap;
  font: 10px var(--font-mono);
}
.cs-table-note {
  max-width: 980px;
  margin: 12px auto 0;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.cs-table-note a {
  color: var(--accent-text);
}

/* Steps */
.cs-step {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 46px;
  align-items: center;
  padding: 58px 40px;
  border-bottom: 1px solid var(--line);
}
.cs-step:last-child {
  border-bottom: 0;
}
.cs-step.flip .cs-step-copy {
  order: 2;
}
.cs-step-copy {
  max-width: 470px;
}
.cs-step-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 9px var(--font-mono);
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 15px;
}
.cs-step-num b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--green-line);
  background: var(--green-surface);
  color: var(--accent-text);
  border-radius: 50%;
  font-weight: 500;
  font-size: 9px;
}
.cs-step h2 {
  font-size: clamp(26px, 2.8vw, 37px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  font-weight: 500;
  margin: 0 0 15px;
  text-wrap: balance;
}
.cs-step p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 16px;
}
.cs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}
.cs-actions code {
  font: 9px var(--font-mono);
  color: var(--green-muted);
  border: 1px solid var(--line);
  background: #12160f;
  border-radius: 4px;
  padding: 5px 7px;
}
.cs-visual {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 8px 22px #00000038;
}
.cs-visual-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  background: #0d100b;
  font: 8px var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.5px;
}
.cs-visual-bar .cs-dots i {
  width: 6px;
  height: 6px;
}
.cs-visual-body {
  padding: 16px;
}
.cs-query {
  font: 10px/1.7 var(--font-mono);
  color: var(--soft);
  background: #0d100b;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  margin-bottom: 12px;
}
.cs-query b {
  color: var(--accent-text);
}
.cs-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.cs-filter-row span {
  font: 8px var(--font-mono);
  color: var(--green-muted);
  border: 1px solid var(--green-line);
  background: var(--green-surface);
  border-radius: 3px;
  padding: 4px 6px;
}
.cs-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.cs-mini {
  position: relative;
  display: block;
  aspect-ratio: 9 / 11.5;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #12160f;
  overflow: hidden;
}
.cs-mini img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.cs-mini:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0000 38%, #000000e6 100%);
}
.cs-mini span {
  position: absolute;
  left: 6px;
  bottom: 5px;
  font: 7px var(--font-mono);
  color: #eef4e6;
  z-index: 1;
  text-shadow: 0 1px 4px #000;
}
.cs-mini em {
  position: absolute;
  right: 5px;
  top: 5px;
  font: 6px var(--font-mono);
  font-style: normal;
  color: #dbe7cf;
  z-index: 1;
  opacity: 0.75;
}
.cs-mini.hot {
  border-color: #5f7c2f;
}
.cs-mini.hot span {
  color: var(--accent-text);
}

/* Decode cards */
.cs-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.cs-seg {
  border: 1px solid var(--line);
  background: #10140d;
  border-radius: 7px;
  padding: 9px;
}
.cs-seg h4 {
  margin: 0 0 8px;
  font: 8px var(--font-mono);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.cs-seg .cs-clip {
  height: 120px;
  border-radius: 4px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
  position: relative;
  background: #12170e;
  overflow: hidden;
}
.cs-seg .cs-clip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.cs-seg .cs-clip:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0000 55%, #000000a8 100%);
}
.cs-clip span {
  position: absolute;
  left: 6px;
  bottom: 5px;
  font: 7px var(--font-mono);
  color: #dbe7cf;
  background: #0a0c08a8;
  border-radius: 2px;
  padding: 2px 4px;
}
.cs-seg q {
  display: block;
  font-size: 10px;
  line-height: 1.55;
  color: var(--ink);
  quotes: '«' '»';
}
.cs-seg q:before,
.cs-seg q:after {
  color: var(--accent-text);
}

/* Creator table */
.cs-creators {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.cs-creators th {
  font: 7px var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: left;
  font-weight: 400;
  padding: 0 7px 8px;
  border-bottom: 1px solid var(--line);
}
.cs-creators td {
  padding: 8px 7px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  white-space: nowrap;
}
.cs-creators tr:last-child td {
  border-bottom: 0;
}
.cs-creators .who {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}
.cs-avatar-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--green-line);
  flex: none;
}
.cs-creators .ratio {
  color: var(--accent-text);
  font: 9px var(--font-mono);
}
.cs-creators tr.hot .ratio {
  color: var(--accent);
  text-shadow: 0 0 12px #c4f04238;
}

/* Comments */
.cs-comments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.cs-comment-col {
  border: 1px solid var(--line);
  background: #10140d;
  border-radius: 7px;
  padding: 12px;
}
.cs-comment-col h4 {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 550;
  color: var(--ink);
}
.cs-comment-col > small {
  display: block;
  font: 7px var(--font-mono);
  color: var(--muted);
  margin-bottom: 10px;
}
.cs-bars {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.cs-bar {
  display: grid;
  grid-template-columns: 16px minmax(40px, 1fr) auto;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  color: var(--soft);
}
.cs-bar span {
  font: 7px var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
}
.cs-bar b {
  width: 16px;
  text-align: right;
  color: var(--ink);
  font: 8px var(--font-mono);
  flex: none;
}
.cs-bar i {
  height: 4px;
  width: 100%;
  border-radius: 2px;
  background: var(--cs-cyan);
  transform-origin: left;
  opacity: 0.65;
}
.cs-comment-col:nth-child(2) .cs-bar i {
  background: var(--cs-yellow);
}
.cs-comment-col:nth-child(3) .cs-bar i {
  background: var(--cs-pink);
}
.cs-comment-col:nth-child(4) .cs-bar i {
  background: var(--accent);
}
.cs-quote {
  border-left: 2px solid var(--line);
  padding-left: 8px;
  font-size: 9px;
  line-height: 1.55;
  color: var(--soft);
}
.cs-quote b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 8px;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

/* Publish */
.cs-publish-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}
.cs-publish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #0d100b;
  font: 9px var(--font-mono);
  color: var(--muted);
}
.cs-publish-head b {
  color: var(--accent-text);
  font-weight: 500;
}
.cs-networks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  background: var(--panel);
}
.cs-networks span {
  border: 1px solid var(--line);
  background: #12160f;
  border-radius: 4px;
  padding: 6px 8px;
  font: 9px var(--font-mono);
  color: var(--soft);
}
.cs-callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--green-line);
  background: var(--green-surface);
  border-radius: 7px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.65;
  color: var(--green-muted);
}
.cs-callout b {
  color: var(--accent-text);
  font-weight: 500;
}
.cs-callout .icon {
  width: 15px;
  height: 15px;
  color: var(--accent-text);
  flex: none;
  margin-top: 1px;
}

/* Recipe / CTA */
.cs-recipe {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--panel);
}
.cs-recipe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  background: #0d100b;
  font: 10px var(--font-mono);
  color: var(--soft);
}
.cs-recipe pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font: 10px/2 var(--font-mono);
  color: var(--muted);
}
.cs-recipe pre b {
  color: var(--accent-text);
  font-weight: 400;
}
.cs-recipe-foot {
  padding: 0 22px 18px;
  font-size: 10px;
  color: var(--muted);
}
.cs-cta {
  text-align: center;
  padding: 64px 40px;
  background:
    radial-gradient(ellipse at 50% 0, #c4f0420b, transparent 60%),
    var(--ground);
}
.cs-cta h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -2px;
  font-weight: 500;
  margin: 0 auto 14px;
  max-width: 740px;
  text-wrap: balance;
}
.cs-cta > p {
  color: var(--soft);
  font-size: 14px;
  margin: 0 0 24px;
}
.cs-copybox {
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  overflow: hidden;
  text-align: left;
}
.cs-copybox > div:first-child {
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  font: 8px var(--font-mono);
  letter-spacing: 0.7px;
  color: var(--muted);
  text-transform: uppercase;
}
.cs-copyline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
}
.cs-copyline code {
  flex: 1;
  font: 10px/1.5 var(--font-mono);
  color: var(--green-muted);
  overflow-wrap: anywhere;
}
.cs-copyline button {
  border: 1px solid var(--green-line);
  background: var(--green-surface);
  color: var(--accent-text);
  border-radius: 4px;
  padding: 6px 9px;
  font: 9px var(--font-mono);
  cursor: pointer;
  flex: none;
}
.cs-copyline button:hover {
  background: var(--surface-raised);
}
.cs-cta-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.cs-cta > small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 14px;
}

@media (max-width: 1000px) {
  .cs-hero {
    padding: 60px 25px 0;
  }
  .cs-demo-body {
    grid-template-columns: 1fr;
  }
  .cs-terminal {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .cs-intro {
    padding: 50px 28px 34px;
  }
  .cs-body {
    padding: 0 28px 46px;
  }
  .cs-step {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 46px 28px;
  }
  .cs-step.flip .cs-step-copy {
    order: 0;
  }
  .cs-step-copy {
    max-width: none;
  }
  .cs-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cs-stat:nth-child(2) {
    border-right: 0;
  }
  .cs-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .cs-pricebar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cs-pricebar p {
    border-left: 0;
    padding-left: 0;
  }
  .cs-cta {
    padding: 50px 28px;
  }
}
@media (max-width: 700px) {
  .cs-hero {
    padding: 40px 16px 0;
  }
  .cs-hero h1 {
    font-size: clamp(31px, 8.5vw, 44px);
    letter-spacing: -1.7px;
    margin: 22px 0 17px;
  }
  .cs-hero-lead {
    font-size: 13px;
    line-height: 1.75;
  }
  .cs-hero-actions {
    gap: 8px;
  }
  .cs-hero-actions .ss-button {
    min-height: 42px;
    font-size: 11px;
    padding: 10px 13px;
    gap: 10px;
  }
  .cs-hero-note {
    font-size: 9px;
    line-height: 1.7;
    margin: 13px 0 25px;
  }
  .cs-hero-grid {
    background-size: 70px 70px;
  }
  .cs-demo-bar {
    height: 36px;
    padding: 0 10px;
    font-size: 7px;
  }
  .cs-terminal,
  .cs-results {
    padding: 17px 15px;
  }
  .cs-prompt {
    font-size: 11px;
  }
  .cs-chips {
    margin-left: 22px;
  }
  .cs-status {
    margin-left: 22px;
    font-size: 7px;
  }
  .cs-run {
    padding-left: 22px;
    gap: 8px;
  }
  .cs-run li {
    font-size: 9px;
  }
  .cs-post-play {
    display: none;
  }
  .cs-hero-bottom {
    padding: 20px 0 15px;
    font-size: 7px;
  }
  .cs-intro {
    padding: 40px 18px 28px;
  }
  .cs-intro h2 {
    font-size: 29px;
    letter-spacing: -1.2px;
  }
  .cs-intro > p:last-child {
    font-size: 12px;
    line-height: 1.75;
  }
  .cs-body {
    padding: 0 18px 38px;
  }
  .cs-pricebar {
    padding: 15px 16px;
  }
  .cs-price {
    font-size: 32px;
  }
  .cs-stats {
    grid-template-columns: 1fr;
  }
  .cs-stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .cs-stat:last-child {
    border-bottom: 0;
  }
  .cs-table {
    font-size: 10px;
  }
  .cs-table th,
  .cs-table td {
    padding: 10px 11px;
  }
  .cs-data-table thead {
    display: none;
  }
  .cs-data-table,
  .cs-data-table tbody,
  .cs-data-table tr,
  .cs-data-table td {
    display: block;
    width: 100%;
  }
  .cs-data-table tr {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
  }
  .cs-data-table tr:last-child {
    border-bottom: 0;
  }
  .cs-data-table td {
    border: 0;
    padding: 2px 0;
  }
  .cs-data-table td:first-child {
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 3px;
  }
  .cs-data-table td:nth-child(2) {
    padding-bottom: 8px;
  }
  .cs-data-table td:nth-child(3) code {
    display: block;
    margin-top: 2px;
  }
  .cs-data-table td:nth-child(3)::before,
  .cs-data-table td:nth-child(4)::before {
    display: block;
    font: 7px var(--font-mono);
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 7px 0 3px;
  }
  .cs-data-table td:nth-child(3)::before {
    content: 'ACTIONS';
  }
  .cs-data-table td:nth-child(4)::before {
    content: 'PRIX';
  }
  html[lang='en'] .cs-data-table td:nth-child(4)::before {
    content: 'PRICE';
  }
  .cs-step {
    padding: 36px 18px;
  }
  .cs-step h2 {
    font-size: 25px;
  }
  .cs-step p {
    font-size: 12px;
  }
  .cs-trio {
    grid-template-columns: 1fr;
  }
  .cs-comments {
    grid-template-columns: 1fr;
  }
  .cs-creators .hide-m {
    display: none;
  }
  .cs-cta {
    padding: 42px 18px;
  }
  .cs-cta h2 {
    font-size: 29px;
    letter-spacing: -1.2px;
  }
  .cs-cta > p {
    font-size: 12px;
  }
  .cs-copyline {
    align-items: flex-start;
    flex-direction: column;
  }
  .cs-copyline code {
    font-size: 9px;
  }
  .cs-copyline button {
    width: 100%;
  }
  .cs-recipe pre {
    font-size: 9px;
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .case-social * {
    animation: none !important;
    transition: none !important;
  }
}

/* The best post plays in TikTok's own player, loaded on click only. */
.cs-embed-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  border: 1px solid var(--green-line);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--accent-text);
  font: 600 11px var(--font-mono);
  text-decoration: none;
}
.cs-embed-open:hover {
  background: #c4f04214;
}
.cs-embed iframe {
  display: block;
  width: 100%;
  max-width: 325px;
  aspect-ratio: 9 / 16;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: #000;
}
