/* ---------- Case studies: shared by /case-studies/ and each case page ---------- */

/* Menu of all eight cases */
.cs-index {
  list-style: none; padding: 0; margin: 44px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.cs-index a {
  display: block; height: 100%;
  background: var(--waya-cream);
  border: 1px solid var(--border-1); border-radius: 14px;
  padding: 18px 18px 16px;
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.cs-index a:hover { border-color: var(--waya-rust); box-shadow: var(--shadow-1); }
.cs-index .k {
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2);
}
.cs-index .t {
  display: block; margin-top: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.3;
  color: var(--waya-charcoal); text-wrap: balance;
}
.cs-index a:hover .t { color: var(--waya-rust); }
/* The case you're reading, in the menu on a case page */
.cs-index a[aria-current="page"] { border-color: var(--waya-rust); box-shadow: inset 0 0 0 1px var(--waya-rust); }
.cs-index a[aria-current="page"] .k::after { content: " · Reading"; color: var(--waya-rust); }
.cs-index-note { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--fg-2); font-style: italic; }

/* One case study */
.case-crumb { margin-bottom: 28px; font-size: 14px; }
.case-crumb a { color: var(--fg-2); }
.case-crumb a:hover { color: var(--waya-rust); }
.case-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px;
  align-items: start;
}
.case-body h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--waya-charcoal); margin-top: 28px;
}
.case-body h3:first-child { margin-top: 0; }
.case-body p { margin-top: 8px; font-size: 15.5px; line-height: 1.65; color: var(--fg-1); }
.case-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.results {
  background: var(--waya-cream);
  border: 1px solid var(--border-1); border-radius: 18px;
  box-shadow: var(--shadow-1);
  padding: 24px 24px 10px;
}
.results h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-2); margin-bottom: 6px;
}
.results dl > div { padding: 12px 0; border-top: 1px solid var(--border-1); }
.results dl > div:first-child { border-top: 0; }
.results dt { font-size: 13.5px; color: var(--fg-2); }
.results dd {
  margin-top: 2px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.35;
  color: var(--waya-charcoal);
}
.lens {
  background: var(--waya-mint); border-radius: 18px; padding: 20px 22px;
  font-size: 14.5px; line-height: 1.6; color: #0f4f3f;
}
.lens strong {
  display: block; margin-bottom: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #085041;
}
.case-quote {
  margin-top: 28px; padding-left: 18px; border-left: 3px solid var(--waya-rust);
  font-size: 16.5px; line-height: 1.6; color: var(--waya-ink); font-style: italic;
}
.case-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 13.5px; color: var(--fg-2); }

@media (max-width: 960px) {
  .cs-index { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; gap: 32px; }
  .case-side { position: static; }
}
@media (max-width: 520px) {
  .cs-index { grid-template-columns: 1fr; }
}

/* Early access signup form (same card as the Lean AI page) */
.signup-form-card {
  max-width: 640px; margin: 40px auto 0;
  background: var(--waya-cream);
  border: 1px solid var(--border-1); border-radius: 18px;
  box-shadow: var(--shadow-1);
  padding: 12px;
}
.signup-form-card iframe { width: 100%; height: 469px; border: none; border-radius: 8px; display: block; }

/* Case video (self-hosted) */
.case-video { padding-bottom: 0; }
.video-wrap {
  margin: 0 auto; max-width: 900px;
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border-1); box-shadow: var(--shadow-3);
  background: var(--waya-paper);
}
.video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Portrait cut on phones held upright (set by the page script; .portrait is taken in styles.css) */
.video-wrap.vertical-cut { aspect-ratio: 9 / 16; max-width: 420px; }
