/* Case studies: the index and a single story. Tokens and shared components live in landing.css. */

/* Index */

.lp .w-cases-hero { padding-bottom: 80px; }

.lp .w-case-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }

.lp .w-case-filter button {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--rule);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.lp .w-case-filter button.is-on { background: var(--magenta); box-shadow: none; color: #fff; }

.lp .w-cases { display: grid; gap: 24px; }
.lp .w-case[hidden] { display: none; }

.lp .w-case > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 48px;
  padding: 36px 40px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.lp .w-case > a:hover { box-shadow: inset 0 0 0 2px var(--magenta); color: var(--ink); }

.lp .w-case-meta { font-size: 0.85rem; font-weight: 700; color: var(--magenta); }

.lp .w-case-meta span {
  margin-inline-start: 8px;
  padding-inline-start: 10px;
  border-inline-start: 1px solid var(--rule);
  font-weight: 600;
  color: var(--mute);
}

.lp .w-case h2 {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
}

.lp .w-case-text > p:not(.w-case-meta) { max-width: 36em; margin-top: 12px; color: var(--mute); }

.lp .w-case-more {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: var(--magenta);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Two numbers from the story, side by side on a blush card */
.lp .w-case-stats { padding: 22px 24px; border-radius: 16px; background: var(--blush); }

.lp .w-case-stats > div + div,
.lp .w-story-stats > div + div {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px dashed var(--rule);
}

.lp .w-case-stats dd,
.lp .w-story-stats dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.8rem;
  line-height: 0.9;
  color: var(--magenta);
  text-align: right;
}

.lp .w-case-stats dt,
.lp .w-story-stats dt { font-size: 0.88rem; font-weight: 700; color: var(--mute); }

/* A single story */

.lp .w-back {
  display: inline-block;
  margin-bottom: 18px;
  font-weight: 700;
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lp .w-back:hover { color: #fff; }

.lp .w-story-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.lp .w-story-meta span {
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
}

.lp .w-story-title {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.95;
  color: #fff;
}

.lp .w-story-stats-wrap { margin-top: 12px; }
.lp .w-story-stats { padding: 26px 26px calc(24px + var(--zz)); }

.lp .w-story { width: min(760px, calc(100% - 32px)); }

.lp .w-story h2 {
  margin-top: 48px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
}

.lp .w-story > h2:first-child { margin-top: 0; }
.lp .w-story h3 { margin-top: 28px; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.lp .w-story p { margin-top: 12px; line-height: 1.85; color: #3f2c43; }
.lp .w-story strong { color: var(--ink); }
.lp .w-story ul { margin-top: 12px; }

.lp .w-story ul > li {
  position: relative;
  margin-top: 8px;
  padding-inline-start: 22px;
  line-height: 1.7;
  color: #3f2c43;
}

.lp .w-story ul > li::before {
  content: '';
  position: absolute;
  top: 0.7em;
  inset-inline-start: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
}

.lp .w-story hr { margin: 48px 0; border: 0; border-top: 2px dashed var(--rule); opacity: 1; }

.lp .w-story .quote-dark,
.lp .w-story .case-quote {
  margin: 28px 0;
  padding: 24px 26px;
  border-radius: 16px;
  background: var(--plum);
  font-size: 1.08rem;
  line-height: 1.75;
  color: #fff;
}

.lp .w-story .quote-dark strong,
.lp .w-story .case-quote strong { color: var(--rose); }
.lp .w-story .case-quote p { margin: 0; color: #fff; }

.lp .w-story .w-table { margin-top: 18px; overflow-x: auto; }
.lp .w-story table { width: 100%; border-collapse: collapse; }

.lp .w-story th {
  padding: 10px 12px;
  border-bottom: 2px solid var(--ink);
  font-size: 0.85rem;
  color: var(--mute);
  text-align: right;
  white-space: nowrap;
}

.lp .w-story td { padding: 12px; border-bottom: 1px dashed var(--rule); font-size: 0.95rem; }

@media (max-width: 900px) {
  .lp .w-case > a { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 24px; }
}

@media (max-width: 560px) {
  .lp .w-case h2 { font-size: 2.2rem; }
  .lp .w-case-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lp .w-case-stats > div + div { margin-top: 0; padding-top: 0; padding-inline-start: 12px; border-top: 0; border-inline-start: 2px dashed var(--rule); }
  .lp .w-case-stats dd { font-size: 3rem; }
  .lp .w-story h2 { font-size: 2.2rem; }
}
