/* The case-study page. Loaded after landing.css, which owns the tokens, the
   header, .wrap, .section-head, .eyebrow, .lede, .btn and the mono register —
   this sheet adds only what the two-column before/after needs. */

.cs-main { padding-bottom: 96px; }

.cs-hero { padding: 74px 0 40px; }
.cs-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1.06;
}
.cs-hero .lede { max-width: 68ch; margin: 18px 0 0; color: var(--muted); font-size: 1.03rem; }
.cs-hero .lede strong { color: var(--ink); }

.cs-headline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}
.cs-headline > div { padding: 22px; background: var(--surface); }

.cs-figure {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 820;
  letter-spacing: -.045em;
  line-height: 1;
}
.cs-figure.is-now { color: var(--green); }
.cs-figure small { font-size: .48em; font-weight: 760; letter-spacing: -.02em; }
.cs-figure-label { display: block; margin-top: 10px; color: var(--muted); font-size: .78rem; line-height: 1.45; }

.cs-verify { margin-top: 22px; color: var(--muted); font-size: .86rem; }

.cs-section { padding: 46px 0 0; }
.cs-section .lede { color: var(--muted); }

/* Before / after. One row per check, two columns inside it: the verdicts are
   long sentences, so this is a pair of cards rather than a table — a table
   cell holding three lines of prose stops being a table. */
.cs-checks { margin: 26px 0 0; padding: 0; list-style: none; }
.cs-check + .cs-check { margin-top: 12px; }

.cs-check-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 8px;
  flex-wrap: wrap;
}
.cs-check-head .check-id {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--canvas);
  color: var(--quiet);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.cs-check-name { font-size: .93rem; font-weight: 700; }

.cs-check-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.cs-col {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.cs-col.is-pass { border-left-color: var(--green); }
.cs-col.is-fail { border-left-color: var(--rust); }
.cs-col.is-na { border-left-color: #B39A5E; }
.cs-col.is-unmeasured { border-left-color: var(--line-strong); background: var(--canvas); }

.cs-col-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 7px;
}
.cs-col-when { color: var(--quiet); font-size: .7rem; font-weight: 820; letter-spacing: .07em; text-transform: uppercase; }
.cs-glyph { font-size: .74rem; font-weight: 700; white-space: nowrap; }
.cs-col.is-pass .cs-glyph { color: var(--green); }
.cs-col.is-fail .cs-glyph { color: var(--rust); }
.cs-col.is-na .cs-glyph { color: #7A6733; }
.cs-col.is-unmeasured .cs-glyph { color: var(--quiet); }

.cs-verdict { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }

.cs-note {
  max-width: 76ch;
  margin: 20px 0 0;
  padding: 15px 18px;
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  color: var(--ink);
  font-size: .85rem;
}

.cs-work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }

.cs-work-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.cs-work-card h3 { margin: 12px 0 0; font-size: 1rem; letter-spacing: -.015em; }
.cs-work-card p { margin: 10px 0 0; color: var(--muted); font-size: .87rem; }

/* The limits section is not a disclaimer in fine print: a reader who finds
   the caveat themselves trusts the rest less than one who was handed it. */
.cs-honest {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.cs-honest h2 { margin: 12px 0 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 620; letter-spacing: -.03em; line-height: 1.12; }
.cs-limits { margin: 0; padding: 0; list-style: none; }
.cs-limits li + li { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.cs-limits li { color: var(--muted); font-size: .9rem; }
.cs-limits b { color: var(--ink); }

.cs-cta-section { padding-top: 46px; }
.cs-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%);
}
.cs-cta h2 { margin: 0; font-family: var(--font-display); font-size: 1.7rem; font-weight: 620; letter-spacing: -.03em; }
.cs-cta p { margin: 10px 0 0; max-width: 58ch; color: var(--muted); font-size: .9rem; }
.cs-cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cs-cta-second { font-size: .84rem; font-weight: 760; }

@media (max-width: 960px) {
  .cs-headline { grid-template-columns: 1fr 1fr; }
  .cs-work { grid-template-columns: 1fr; }
  .cs-honest { grid-template-columns: 1fr; gap: 22px; }
  .cs-cta { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .cs-hero { padding-top: 52px; }
  .cs-headline { grid-template-columns: 1fr; }
  /* Stacked, the two verdicts stop being a comparison and become a sequence —
     which is what "before, then now" reads as on a phone anyway. */
  .cs-check-cols { grid-template-columns: 1fr; }
  .cs-honest, .cs-cta { padding: 24px; }
}
