/*
 * Layout-only styles for /use-case/ pages.
 * Loaded ONLY on use-case pages, after /styles.css. The global stylesheet is
 * never touched. Every value reuses an existing :root design token, so colors,
 * borders, and type match the rest of the site automatically.
 *
 * The reused primitives (section-title, step-card, stat, qa, cta-pill) carry
 * their own styling from styles.css. This file only supplies the section
 * rhythm and the two card grids (features, related) that the design system
 * has no generic equivalent for.
 */

.usecase-hero {
  padding-top: 72px;
  padding-bottom: 24px;
}

.usecase-hero .section-subtitle {
  max-width: 720px;
  margin-top: 20px;
}

.usecase-hero .cta-pill {
  margin-top: 32px;
}

/* Vertical rhythm between the composed sections */
.usecase-steps,
.usecase-features,
.usecase-faq,
.usecase-related {
  padding-top: 64px;
  padding-bottom: 8px;
}

.usecase-shot {
  padding-top: 48px;
  padding-bottom: 16px;
}

.usecase-shot__img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

/* Portrait phone captures: constrained, centered, phone-rounded */
.usecase-shot--phone .usecase-shot__img,
.usecase-shot--phone .usecase-shot__placeholder {
  max-width: 320px;
  border-radius: 28px;
}

/* Wide web/desktop captures: roomier, gentler rounding */
.usecase-shot--wide .usecase-shot__img,
.usecase-shot--wide .usecase-shot__placeholder {
  max-width: 720px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px var(--shadow-lg);
}

/* Graceful placeholder shown until a real screenshot is dropped in */
.usecase-shot__placeholder {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 40px 24px;
  min-height: 260px;
  border: 1px dashed var(--line);
  background: var(--surface-glass);
}

.usecase-shot--phone .usecase-shot__placeholder {
  aspect-ratio: 9 / 16;
}

.usecase-shot__placeholder-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}

.usecase-shot__placeholder-sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 240px;
}

/* Feature detail grid */
.usecase-features__grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.usecase-feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-glass);
}

.usecase-feature__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.usecase-feature__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

/* FAQ list spacing (items themselves are styled by .qa in styles.css) */
.qa-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Related use-case cards */
.usecase-related__grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.usecase-related__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-glass);
  text-decoration: none;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.usecase-related__card:hover {
  background: var(--hover-fill);
  border-color: var(--border-soft);
}

.usecase-related__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.usecase-related__blurb {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

@media (max-width: 860px) {
  .usecase-features__grid,
  .usecase-related__grid {
    grid-template-columns: 1fr;
  }
  .usecase-hero {
    padding-top: 48px;
  }
}
