/* WhyApp: MoodOS-aligned case study layout */
.hero-intro {
  max-width: 52ch;
}

.hero .meta-grid {
  margin-top: 2.5rem;
}

.media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.media-text.reverse {
  direction: rtl;
}

.media-text.reverse > * {
  direction: ltr;
}

.media-text img {
  width: 100%;
  height: auto;
  display: block;
}

.media-text img.asset-rounded {
  border-radius: 10px;
}

.media-text .caption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.process-rail-bar {
  margin-top: 2.5rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
  width: 100%;
}

.process-rail-bar .wrap {
  display: flex;
  justify-content: center;
}

.process-rail-bar .process-rail {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  margin: 0;
  padding: 0;
  border: none;
}

.process-rail span {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-dark);
  white-space: nowrap;
}

.process-rail span:not(:last-child)::after {
  content: "";
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 1px;
  background: var(--line);
  margin: 0 0.75rem;
}

.process-rail span::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-right: 0.5rem;
  text-align: center;
  line-height: 1.75rem;
  font-size: 0.75rem;
  vertical-align: middle;
  color: var(--teal-dark);
  background: var(--surface);
}

.process-rail span:nth-child(1)::before { content: "1"; }
.process-rail span:nth-child(2)::before { content: "2"; }
.process-rail span:nth-child(3)::before { content: "3"; }

.data-block {
  display: grid;
  gap: 1.75rem;
}

.survey-intro {
  max-width: none;
  margin-top: 0.5rem;
}

.survey-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: start;
}

.data-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.data-card h3,
.data-block h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.data-rows {
  display: grid;
  gap: 0;
  font-size: 0.9rem;
}

.data-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.data-row strong {
  color: var(--ink);
  font-weight: 600;
}

.sketch-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: start;
}

.sketch-gallery img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(15, 23, 42, 0.08));
}

.media-text .sketch-board img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(15, 23, 42, 0.08));
}

.prose ul {
  margin: 0.75rem 0 0 1.15rem;
  color: var(--muted);
}

.prose li + li {
  margin-top: 0.4rem;
}

@media (max-width: 800px) {
  .media-text,
  .sketch-gallery,
  .survey-data-grid {
    grid-template-columns: 1fr;
  }

  .media-text.reverse {
    direction: ltr;
  }

  .process-rail-bar .process-rail {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
  }

  .process-rail span {
    flex: 0 1 auto;
  }

  .process-rail span:not(:last-child)::after {
    display: none;
  }
}
