/* ==========================================================================
   Screenshots & Donate Section Styles
   ========================================================================== */

.screenshots-section {
  background: #e8f5f4;
  padding: 7rem 0;
}

.screenshots-heading {
  align-items: flex-end;
  display: flex;
  gap: 4rem;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.screenshots-heading h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin: 0.75rem 0 0;
}

.screenshots-heading h2 em {
  color: #258fa0;
  font-style: italic;
}

.screenshots-heading > p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 385px;
  margin: 0;
}

/* Screenshots Horizontal Rail with Smooth Touch Scrolling */
.screenshots-rail {
  display: grid;
  gap: 1.25rem;
  grid-auto-columns: minmax(220px, 270px);
  grid-auto-flow: column;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.screenshots-rail figure {
  background: var(--ink);
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(21, 49, 71, 0.18);
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.screenshots-rail img {
  display: block;
  height: auto;
  width: 100%;
}

.screenshots-rail figcaption {
  color: #e9fbfb;
  font-size: 0.8rem;
  font-weight: 750;
  padding: 0.85rem 1rem 1.1rem;
  text-align: center;
}

/* Donate Section */
.donate-section {
  background: #102a3d;
  color: var(--white);
  padding: 5.5rem 0;
}

.donate-layout {
  align-items: center;
  display: grid;
  gap: 5rem;
  grid-template-columns: 1fr 1fr;
}

.donate-section h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin: 0.75rem 0;
}

.donate-section h2 em {
  color: var(--lime);
  font-style: italic;
}

.donate-layout > div:last-child > p {
  color: #c4d4df;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 440px;
  margin-top: 0;
}

.donate-layout small {
  color: #90aabb;
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
  margin-top: 1rem;
}

.donate-section .button {
  margin-top: 0.5rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 850px) {
  .screenshots-heading,
  .donate-layout {
    align-items: flex-start;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .screenshots-heading {
    display: flex;
  }

  .screenshots-heading > p {
    margin: 0;
  }

  .donate-layout {
    gap: 2rem;
  }
}

@media (max-width: 580px) {
  .screenshots-section {
    padding: 3.5rem 0;
  }

  .screenshots-heading h2,
  .donate-section h2 {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .screenshots-rail {
    grid-auto-columns: clamp(230px, 78vw, 290px);
    gap: 1rem;
    padding-bottom: 1.2rem;
  }

  .donate-section {
    padding: 3.5rem 0;
  }

  .donate-section .button {
    width: 100%;
    justify-content: space-between;
  }
}
