/* Desktop spacing only. Keep the existing mobile layout, type and controls. */
@media (min-width: 761px) {
  /* Regular card grids share a 24px gutter. Raised feature numbers need clearance. */
  .landing-page #main #features .feature-grid { gap: 32px 24px; }
  .landing-page #main #features .feature-card { margin-top: 24px; }
  .landing-page #main #work .work-grid,
  .landing-page #main #outputs .sample-grid,
  .landing-page #main #companies .company-grid,
  .landing-page #main #environment .env-grid { gap: 24px; }

  /* Keep horizontal insets; standardize vertical breathing room by card type. */
  .landing-page #main #problem .problem-card,
  .landing-page #main #flow .step-content,
  .landing-page #main #environment .env-card,
  .landing-page #main #price .price-card,
  .landing-page #main #apply .apply-card { padding-block: 32px; }
  .landing-page #main #outputs .sample-copy,
  .landing-page #main #companies .company-card-copy { padding-block: 24px; }
  .landing-page #main #flow .flow-step:not(:last-child) { margin-bottom: 32px; }

  /* Notes have one consistent separation; retain the shared 88px section padding. */
  .landing-page #main #work .work-foot,
  .landing-page #main #outputs .gallery-note,
  .landing-page #main #companies .companies-action,
  .landing-page #main #environment .env-note { margin-top: 32px; }
  .landing-page #main #faq .faq-item:last-child { margin-bottom: 0; }
}

/* Shared content rows follow the tallest text in each row without fixed heights. */
@media (min-width: 1001px) {
  @supports (grid-template-rows: subgrid) {
    .landing-page #main #companies .company-card {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 5;
      row-gap: 0;
    }
    .landing-page #main #companies .company-card > a {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 5;
      row-gap: 0;
    }
    .landing-page #main #companies .company-card-copy {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 4;
      row-gap: 0;
    }
    .landing-page #main #environment .env-card {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      row-gap: 0;
    }
  }
}
