/* Case study pages (/case-studies/*). Rebuilt 2026-11-04 on the homepage's own pieces:
   the dark results card (ledger), the product window frame (wf-vis), Geist + Geist Mono. */

.cs-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.cs-read { max-width: 680px; }

/* Hero: claim on the left, receipt on the right */
.cs-top { padding: 112px 0 64px; border-bottom: 1px solid var(--divider); }
.cs-back { display: inline-block; font-size: 14px; color: var(--fg-3); margin-bottom: 48px; }
.cs-back:hover { color: var(--accent-hover); }
.cs-top-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.cs-logo { height: 34px; width: auto; display: block; margin-bottom: 20px; }
.cs-what { font-size: 17px; line-height: 1.5; color: var(--fg-3); margin: 0 0 40px; max-width: 460px; }
.cs-big {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(72px, 10vw, 128px);
  line-height: 0.9; letter-spacing: -0.04em; color: var(--fg-1); font-variant-numeric: tabular-nums;
}
.cs-big-l { font-size: 22px; line-height: 1.3; font-weight: 500; color: var(--fg-1); margin: 14px 0 20px; max-width: 460px; }
.cs-sub { font-size: 17px; line-height: 1.6; color: var(--fg-2); margin: 0; max-width: 520px; }

/* The receipt */
.cs-receipt {
  background: var(--sl-ink-900); color: var(--sl-ink-0); border-radius: var(--radius-lg);
  padding: 28px 28px 22px; font-family: var(--font-mono); font-size: 13px;
}
.cs-receipt-h { display: flex; justify-content: space-between; color: #8B8F86; font-size: 12px; padding-bottom: 14px; border-bottom: 1px dashed #3A3D37; margin-bottom: 8px; }
.cs-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.cs-row span:first-child { color: #C9CCC4; white-space: nowrap; }
.cs-row i { flex: 1; border-bottom: 1px dotted #4A4E46; transform: translateY(-4px); min-width: 16px; }
.cs-row b { font-weight: 500; color: #FFFFFF; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cs-row.total { border-top: 1px dashed #3A3D37; margin-top: 8px; padding-top: 16px; }
.cs-row.total b { color: var(--sl-green-300); font-size: 18px; }
.cs-receipt-f { color: #8B8F86; font-size: 11px; margin-top: 14px; line-height: 1.5; }

/* Facts line */
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--divider); }
.cs-facts dt { font-size: 13px; color: var(--fg-3); margin-bottom: 6px; }
.cs-facts dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg-1); }

/* Story */
.cs-story { padding: 80px 0 24px; }
.cs-story h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--fg-1); margin: 72px 0 18px;
}
.cs-story h2:first-child { margin-top: 0; }
.cs-story p { font-size: 18px; line-height: 1.65; color: var(--fg-2); margin: 0 0 20px; }
.cs-story ul { margin: 0 0 20px; padding-left: 20px; }
.cs-story li { font-size: 18px; line-height: 1.65; color: var(--fg-2); margin-bottom: 12px; }
.cs-story li::marker { color: var(--accent); }

/* Window frame (same idea as the homepage's product panels) */
.cs-window {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin: 32px 0 12px; overflow: hidden;
}
.cs-window.wide { margin-left: -40px; margin-right: -40px; }
.cs-window-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--divider);
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); background: var(--bg-panel);
}
.cs-window-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cs-window-bar .chip { margin-left: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px 8px; font-size: 11px; }
.cs-window img { display: block; width: 100%; height: auto; }
.cs-note { font-size: 14px !important; line-height: 1.5 !important; color: var(--fg-3) !important; margin: 0 0 32px !important; }

/* Email / message card */
.cs-mail { padding: 20px 24px 24px; font-size: 16px; line-height: 1.6; color: var(--fg-1); }
.cs-mail-meta { font-size: 13px; color: var(--fg-3); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--divider); }
.cs-mail-meta b { color: var(--fg-1); font-weight: 500; }
.cs-mail p { font-size: 16px !important; margin: 0 0 12px !important; color: var(--fg-1) !important; }
.cs-mail p:last-child { margin-bottom: 0 !important; }
.cs-mail .v { color: var(--accent-hover); background: var(--accent-soft); border-radius: 3px; padding: 0 3px; }

/* Bars */
.cs-bars { margin: 28px 0 12px; }
.cs-bar { display: grid; grid-template-columns: 180px 1fr 140px; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.cs-bar:last-child { border-bottom: 0; }
.cs-bar-n { font-size: 15px; color: var(--fg-1); }
.cs-bar-t { height: 10px; background: var(--sl-ink-100); border-radius: 2px; overflow: hidden; }
.cs-bar-t span { display: block; height: 100%; background: var(--accent); }
.cs-bar-v { font-size: 14px; color: var(--fg-3); font-variant-numeric: tabular-nums; text-align: right; }
.cs-bar-v b { color: var(--fg-1); font-weight: 600; }

/* Quote */
.cs-quote { margin: 40px 0; }
.cs-quote blockquote { margin: 0 0 14px; font-family: var(--font-serif); font-size: 26px; line-height: 1.4; color: var(--fg-1); }
.cs-quote figcaption { font-size: 14px; color: var(--fg-3); }

/* Next + CTA */
.cs-next { border-top: 1px solid var(--divider); padding: 40px 0; }
.cs-next a { font-size: 20px; font-weight: 500; color: var(--fg-1); }
.cs-next a:hover { color: var(--accent-hover); }
.cs-cta { background: var(--sl-ink-900); color: var(--sl-ink-0); padding: 88px 0; }
.cs-cta h2 { font-family: var(--font-display); font-weight: 600; font-size: 36px; letter-spacing: -0.02em; margin: 0 0 12px; color: #fff; }
.cs-cta p { font-size: 17px; line-height: 1.55; color: #A9ADA4; margin: 0 0 28px; max-width: 520px; }

/* Index */
.ci-top { padding: 112px 0 56px; border-bottom: 1px solid var(--divider); }
.ci-top h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(48px, 7vw, 80px); letter-spacing: -0.035em; line-height: 1; margin: 0 0 20px; color: var(--fg-1); }
.ci-top p { font-size: 18px; line-height: 1.6; color: var(--fg-2); max-width: 560px; margin: 0; }
.ci-item { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; padding: 64px 0; border-bottom: 1px solid var(--divider); align-items: start; }
.ci-item h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.25; letter-spacing: -0.02em; color: var(--fg-1); margin: 0 0 14px; }
.ci-item p { font-size: 17px; line-height: 1.6; color: var(--fg-2); margin: 0 0 22px; }
.ci-item .cs-big { font-size: clamp(56px, 7vw, 88px); }
.ci-link { font-size: 15px; font-weight: 500; color: var(--accent-hover); }
.ci-link:hover { color: var(--accent); }

@media (max-width: 900px) {
  .cs-top-grid, .ci-item { grid-template-columns: 1fr; gap: 40px; }
  .cs-facts { grid-template-columns: 1fr 1fr; }
  .cs-window.wide { margin-left: 0; margin-right: 0; }
  .cs-top, .ci-top { padding-top: 80px; }
}
@media (max-width: 560px) {
  .cs-bar { grid-template-columns: 1fr; gap: 6px; }
  .cs-bar-v { text-align: left; }
  .cs-receipt { padding: 22px 18px 18px; font-size: 12px; }
  .cs-row span:first-child { white-space: normal; }
}
