/* NEX-1016: the suppliers page Features section as a list of stories. Each
   feature is a header, a short narrative and a real screenshot of the app.
   Desktop alternates the screenshot right and left; phones stack header, text,
   then screenshot. Kept out of landing.css so a change here re-versions only
   the page that uses it. */

.feature-stories { max-width: 1080px; margin: 0 auto; padding: 0; list-style: none; }

.feature-story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}
.feature-story:first-child { border-top: 0; padding-top: 8px; }

/* Every other story puts the screenshot on the left. */
.feature-story:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-story:nth-child(even) .feature-story-text { order: 2; }
.feature-story:nth-child(even) .feature-story-shot { order: 1; }

.feature-story-text h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0 0 14px;
}
.feature-story-text p {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--color-muted);
  margin: 0 0 12px;
}
.feature-story-text p:last-child { margin-bottom: 0; }
.feature-story-text .feature-story-plan {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin: 0 0 10px;
}

.feature-story-shot { margin: 0; }
/* Each screenshot links to its full-size file, so a phone reader can open
   and zoom what is too small to read at phone width. */
.feature-story-shot a { display: block; border-radius: 10px; }
.feature-story-shot a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.feature-story-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  background: var(--color-bg);
}
.feature-story-shot figcaption {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 10px;
  text-align: center;
}

.feature-stories-note {
  max-width: 1080px;
  margin: 8px auto 0;
  font-size: 12px;
  color: var(--color-muted);
  text-align: center;
}

@media (max-width: 860px) {
  .feature-story,
  .feature-story:nth-child(even) { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .feature-story:nth-child(even) .feature-story-text,
  .feature-story:nth-child(even) .feature-story-shot { order: 0; }
  .feature-story-text h3 { font-size: 20px; }
}
