/* /examples only: "Hoe het er in de praktijk uitziet".
   On desktop the four app screens sat in a grid at ~380px wide each, so the
   13px app text became ~3px. Now one screen at a time fills the row, with
   chips to switch (radio + label, no JS, the same pattern as the trade picker
   in the hero). The app sidebar (first 280 of the 1728 screenshot pixels) and
   the bottom rows are cropped off so the screen renders near its real size;
   the lightbox still opens the whole screenshot. On phones the page gets the
   phone screenshots, which read fine in the grid, so nothing changes there. */
.exs-chips {
  display: none;
}

/* Below 769px the picker is off, so its radios must not be tab stops. */
@media (max-width: 768px) {
  .exs-radio {
    display: none;
  }
}

.exs-crop {
  display: block;
}

@media (min-width: 769px) {
  .exs-chips {
    display: flex;
    justify-content: center;
    margin: 0 0 20px;
  }

  .ex-screens .landing-screenshot-grid {
    display: block;
    max-width: 1100px;
    margin: 0 auto;
  }

  .exs-fig {
    display: none;
  }

  .exs-fig:hover {
    transform: none;
  }

  .exs-fig .landing-screenshot-caption {
    display: none;
  }

  #exs-r-dashboard:checked ~ .landing-screenshot-grid .exs-fig--dashboard,
  #exs-r-factuur:checked ~ .landing-screenshot-grid .exs-fig--factuur,
  #exs-r-uitgaven:checked ~ .landing-screenshot-grid .exs-fig--uitgaven,
  #exs-r-cijfers:checked ~ .landing-screenshot-grid .exs-fig--cijfers {
    display: block;
  }

  #exs-r-dashboard:checked ~ .exs-chips [for="exs-r-dashboard"],
  #exs-r-factuur:checked ~ .exs-chips [for="exs-r-factuur"],
  #exs-r-uitgaven:checked ~ .exs-chips [for="exs-r-uitgaven"],
  #exs-r-cijfers:checked ~ .exs-chips [for="exs-r-cijfers"] {
    background: var(--lp-ink, #0b1b33);
    border-color: var(--lp-ink, #0b1b33);
    color: #ffffff;
  }

  #exs-r-dashboard:focus-visible ~ .exs-chips [for="exs-r-dashboard"],
  #exs-r-factuur:focus-visible ~ .exs-chips [for="exs-r-factuur"],
  #exs-r-uitgaven:focus-visible ~ .exs-chips [for="exs-r-uitgaven"],
  #exs-r-cijfers:focus-visible ~ .exs-chips [for="exs-r-cijfers"] {
    outline: 2px solid var(--landing-accent, #1565c0);
    outline-offset: 2px;
  }

  .exs-crop {
    overflow: hidden;
    aspect-ratio: 1448 / 800;
    border-radius: 12px;
    border: 1px solid var(--landing-screenshot-border);
  }

  .exs-crop .landing-screenshot-image {
    width: calc(100% * 1728 / 1448);
    max-width: none;
    margin-left: calc(-100% * 280 / 1448);
    aspect-ratio: 1728 / 1080;
    border: 0;
    border-radius: 0;
  }
}
