:root {
  --light-grey: rgb(242, 242, 242);
  /* --light-grey: #ccc; */
  --text-color: #5f6062;
}

html {
  font-size: 100%;
}

body {
  font-family: "Manrope";
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-color);
  background-color: var(--light-grey);
}

a {
  color: var(--text-color);
  text-decoration: underline;

  &:hover {
    color: var(--text-color);
    text-decoration: none;
  }
}

strong {
  font-weight: 500;
}

h1 {
  font-size: clamp(2rem, 1.108vw + 1.669rem, 2.5rem);
  font-style: normal;
  font-weight: 300;
  margin: 1.5rem 0 1.25rem;
  line-height: 1.2em;
}

.text-large {
  font-size: clamp(1.25rem, 0.554vw + 1.0845rem, 1.35rem);
  line-height: 2rem;
  margin: 1.25rem 0;
}

.text-medium {
  font-size: clamp(1.15rem, 0.2216vw + 1.0838rem, 1.20rem);
  line-height: 1.6rem;
}

ol li {
  margin: 0.7rem 0;

  &:first-child {
    margin-top: 0;
  }

  &:last-child {
    margin-bottom: 0;
  }
}

.no-margins {
  > *:first-child {
    margin-top: 0;
  }
  > *:last-child {
    margin-bottom: 0;
  }
}

/* QR size */
img.qr-code {
  height: 5.25rem;
}

/* (Removed :has() rule so footer spacing is normal) */
/* .section-phone:has(.qr-code) { margin-bottom: 6rem; } */

/* Each section is wrapped in this. */
.section {
  padding: 0 1.5rem;

  @media (min-width: 48rem) {
    padding: 0 4rem;
  }
}

/* Container within each section. */
.container {
  width: 100%;
  max-width: 81rem;
  margin: 0 auto;
}

img {
  margin: 0;
  max-width: 100%;
  height: auto;
}

.section-mobile-logo {
  padding-top: 3rem;

  @media (min-width: 48rem) {
    display: none;
  }
}

.section-phone {
  overflow-x: hidden;

  @media (min-width: 48rem) {
    padding-top: 3.75rem;
  }

  .container {
    display: flex;
    flex-flow: column-reverse nowrap;
    align-items: center;

    @media (min-width: 48rem) {
      flex-flow: row nowrap;
      align-items: center;
    }
  }

  .content {
    margin-bottom: 2rem;
  }

  .heading {
    margin: 0 0 1.25rem;
  }

  .currency {
    font-size: 0.85rem;
  }

  .img-link {
    display: block;
    max-width: 100%;
    font-size: 0.1px;
    line-height: 0.1px;
  }

  .client-logo {
    display: none;
    max-width: 100%;
    margin: 0 0 4rem;

    @media (min-width: 48rem) {
      display: block;
    }
  }

  /* NEW: QR + buttons wrapper */
  .qr-and-buttons {
    margin: 2.5rem 0 0;
    display: flex;
    flex-direction: column;     /* mobile: stack QR above buttons */
    align-items: flex-start;    /* left-align on mobile */
    gap: 1rem;

    @media (min-width: 48rem) {
      margin-top: 3.5rem;
      flex-direction: row;      /* desktop: QR | Apple | Google */
      align-items: center;
      gap: 1.5rem;
    }
  }

  .qr-and-buttons .qr-code {
    height: 5.25rem;
  }

  .qr-and-buttons .app-buttons {
    display: flex;
    flex-direction: row;        /* Apple + Google side-by-side */
    gap: 1rem;
  }

  .apple-button {
    width: auto;
    height: 57px;
  }

  .google-button {
    width: auto;
    height: 57px;
  }

  .powered-by {
    margin: 2.5rem 0 0;
  }

  .phone-screens {
    position: relative;
    z-index: -1;
    margin: 0 -6rem 0 -4rem;
    overflow: hidden;
    max-width: 75rem;

    img {
      margin: 0;
      display: block;
      width: 95%;
      max-width: 75rem;
      height: auto;
    }
  }
}

.section-footer {
  .wrapper {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-end;
    column-gap: 3rem;
    row-gap: 0.5rem;
    padding-bottom: 6rem;

    font-family: Manrope;
    font-style: normal;
    font-weight: 400;
    line-height: 1;

    @media (min-width: 48rem) {
      flex-flow: row nowrap;
      justify-content: space-between;
      align-items: flex-end;
      padding-bottom: 3rem;
    }
  }

  p {
    font-family: Manrope;
    font-size: 0.7rem;
    line-height: 1rem;
    margin: 0.5rem 0;
  }

  .privacy-link {
    white-space: nowrap;
    font-size: 0.75rem;

    @media (min-width: 48rem) {
      font-size: 0.675rem;
    }
  }
}
