/* Fixes for visual issues after CSS purging */

/* 2. Fix hero section image size */
.c-hero__image img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

/* 3. Fix first CTA section height and spacing */
.c-cta {
  min-height: 400px;
  display: flex;
  align-items: center;
}

.c-cta .container {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* 4. Fix text alignment in CTA sections */
.c-cta__desc {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Center text on mobile, left-align on desktop */
@media (min-width: 1024px) {
  .c-cta__desc {
    margin-left: 0;
    margin-right: 0;
  }
}

/* 5. Fix How It Works section overflow */
.c-how-it-works {
  overflow-x: hidden;
}

.c-how-it-works__header {
  /* flex flex-col items-center text-center mb-[60px] lg:mb-[94px] px-6 lg:px-0 */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
}

@media (min-width: 1024px) {
  .c-how-it-works__header {
    margin-bottom: 132px;
  }
}

.c-how-it-works__items {
  max-width: 100%;
}

/* 6. Fix massive images in How It Works section */
.c-how-it-works__item img {
  margin: 0 auto;
  width: 280px;
  height: auto;
  display: block;
  flex-shrink: 0; /* Prevents scaling to fit container */
}

.c-how-it-works__item-image {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* This aligns to the top */
}

@media (min-width: 1024px) {
  .c-how-it-works__item-image {
    max-height: 400px;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .c-how-it-works__item figure img {
    max-width: 200px;
  }
}

/* 7. Fix QR code image sizing */
.c-cta__image img {
  max-width: 200px;
  width: 100%;
  height: auto;
}

/* 8. Ensure proper container width */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* 9. Fix navigation menu styling */
.c-main-menu__list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.c-main-menu__list li {
  margin: 0;
}

.c-main-menu__list a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.2s;
}

.c-main-menu__list a:hover {
  opacity: 0.7;
}

/* Navigation spacing from logo */
.c-main-menu {
  margin-left: 3rem;
  display: none;
}

/* Show navigation on desktop */
@media (min-width: 1024px) {
  .c-main-menu {
    display: block;
  }
}

/* 10. Ensure footer spacing */
.c-footer {
  padding-top: 5rem;
  padding-bottom: 100px;
  background: linear-gradient(180deg, #15151b, #16151d);
}

.c-footer__container {
  /* flex flex-col lg:flex-row justify-between gap-y-[50px] */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 50px;
  color: white;
  padding-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  /* Responsive adjustments for footer */
  .c-footer__container {
    flex-direction: row;
    padding-bottom: 7rem;
  }
}

.c-footer__brand {
  /* flex flex-col items-center lg:items-start */
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1024px) {
  .c-footer__brand {
    align-items: flex-start;
  }
}

.c-footer__brand-logo {
  display: block;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .c-footer__brand-logo {
    margin-bottom: 2.5rem;
  }
}

.c-footer__brand-image {
  width: 148px;
}

@media (min-width: 1024px) {
  .c-footer__brand-image {
    width: 200px;
  }
}

.c-footer__social {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .c-footer__social {
    justify-content: flex-start;
  }
}

.c-footer__social-link {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  color: white !important;
  transition: color 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.c-footer__social-link:hover {
  color: #00d973 !important;
}

.c-footer__social-icon {
  fill: currentColor;
  width: 100%;
  height: 100%;
}

.c-footer__download {
  /**flex flex-col lg:flex-row gap-20**/
  display: flex;
  flex-direction: column;
  gap: 80px;
}

@media (min-width: 1024px) {
  .c-footer__download {
    flex-direction: row;
  }
}

.c-footer__download--header {
  /* flex flex-row lg:flex-col gap-y-10 gap-x-20 */
  display: flex;
  flex-direction: row;
  column-gap: 20px;
  row-gap: 10px;
}

@media (min-width: 1024px) {
  .c-footer__download--header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.c-footer__download-wrapper {
  width: 100%;
}

.c-footer__download-title {
  display: none;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 14px;
}

@media (min-width: 1024px) {
  .c-footer__download-title {
    display: block;
    margin-bottom: 1rem;
  }
}

.c-footer__download-buttons {
  display: flex;
  flex-direction: row;
  gap: 1.5rem 1rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .c-footer__download-buttons {
    flex-direction: column;
  }
}

.c-footer__download-button {
  border: 1px solid white;
  border-radius: 0.5rem;
}

.c-footer__menu {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .c-footer__menu {
    flex-direction: row;
  }
}
.c-footer__menu {
  -moz-column-gap: 5rem;
  column-gap: 5rem;
  row-gap: 2.5rem;
}
.c-footer__menu > .menu-item > a {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  margin-bottom: 14px;
}
@media (min-width: 1024px) {
  .c-footer__menu > .menu-item > a {
    margin-bottom: 1rem;
  }
}
.c-footer__menu .sub-menu .menu-item {
  margin-bottom: 10px;
}
.c-footer__menu .sub-menu .menu-item:last-of-type {
  margin-bottom: 0;
}
.c-footer__menu .sub-menu a {
  --tw-text-opacity: 1;
  color: rgb(205 205 206 / var(--tw-text-opacity));
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  transition-duration: 0.7s;
  transition-property: color, background-color, border-color, outline-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}
.c-footer__menu .sub-menu a:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  text-decoration-line: underline;
}

.c-footer__copyright-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem 2rem;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .c-footer__copyright-wrapper {
    flex-direction: row;
    align-items: center;
  }
}

.c-footer__copyright-text {
  color: #9ca3af;
  font-size: 0.75rem;
}

.c-footer__copyright-link {
  color: #9ca3af !important;
  transition: color 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.c-footer__copyright-link:hover {
  color: white !important;
  text-decoration: underline;
}

.c-footer__logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  order: -1;
}

@media (min-width: 1024px) {
  .c-footer__logos {
    gap: 3rem;
    order: 0;
  }
}

/* 11. Fix green triangle decoration positioning */
.c-cta--green::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 200px 200px 0;
  border-color: transparent #00ff00 transparent transparent;
  opacity: 0.1;
}

/* 12. Ensure sections have proper spacing */
section {
  position: relative;
}

/* 13. Fix hero section decorative SVGs positioning */
.c-hero {
  position: relative;
  overflow: hidden;
}

.c-hero > img {
  position: absolute;
  pointer-events: none;
}

/* Top-left decoration */
.c-hero > img:nth-of-type(1) {
  top: 0;
  left: 0;
  max-width: 150px;
}

/* Top-right decoration */
.c-hero > img:nth-of-type(2) {
  top: 0;
  right: 0;
  max-width: 150px;
}

/* Gradient blur decoration */
.c-hero > img:nth-of-type(3) {
  bottom: -50px;
  right: -50px;
  max-width: 300px;
  opacity: 0.5;
}

figure.flex-row {
  max-width: 420px;
}

.hero-content {
  padding-top: 70px;
  padding-bottom: 270px;
}

.hero-content > h1 {
  padding-top: 33px;
  font-size: 3.5em;
}

.hero-content > p {
  max-width: 490px;
}

.barcode-inner {
  transform: translateY(-180px); /* Adjust this value */
  position: relative;
  z-index: 10; /* Ensure it's above both sections */
}

/* Reduce the container height to compensate for the translateY */
.c-cta--blue.c-cta--image-center.c-cta--image-right {
  margin-bottom: -180px; /* Pull up by exactly the translate amount */
}

.c-cta--blue.c-cta--image-center.c-cta--image-right .container {
  padding-bottom: 0; /* Remove container bottom padding too */
}

.c-how-it-works {
  padding-top: 92px;
  /* padding-bottom: 99px; */
}

/* Override blue background bleeding from negative margin */
.c-how-it-works {
  background: linear-gradient(to bottom, white 180px, transparent 180px);
}

.c-how-it-works__items {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 60px;
  padding-bottom: 60px;
}

@media (min-width: 1024px) {
  .c-how-it-works__items {
    grid-template-columns: 1fr 1fr 1fr;
    padding-bottom: 0px;
  }
}

.c-how-it-works__item-content {
  position: relative;
}

@media (min-width: 1024px) {
  .c-how-it-works__item-content {
    height: 247px;
  }
}

.green-triangle-hero {
  /* flex flex-col lg:flex-row gap-y-[52px] gap-x-8 items-center justify-between */
  display: flex;
  flex-direction: column;
  column-gap: 52px;
  row-gap: 8px;
  padding-bottom: 52px;
  padding-top: 32px;
}

.green-triangle-hero__svg {
  display: none;
}

@media (min-width: 1024px) {
  .green-triangle-hero {
    padding-top: 100px;
  }

  .green-triangle-hero__svg {
    display: block;
  }
}

.green-triangle-hero__title-image {
  margin-bottom: 60px;
}

.green-triangle-hero__text-content {
  flex-direction: column;
  display: flex;
  row-gap: 20px;
  align-items: center;
}

@media (min-width: 1024px) {
  .green-triangle-hero__text-content {
    align-items: flex-start;
  }
}

.green-triangle-hero__title {
  font-weight: 800;
  color: #00d973;
  line-height: 48px;
  font-size: 44px;
}

.green-triangle-hero__desc {
  font-weight: 400;
  font-size: 22px;
  line-height: 28px;
  max-width: 600px;
}

.green-triangle-hero__content {
  display: flex;
  flex-direction: column;
  row-gap: 40px;
}

@media (min-width: 1024px) {
  .green-triangle-hero__content {
    border-bottom: 1px solid #36353a;
    flex-direction: row;
    column-gap: 110px;
  }
}

.green-triangle-hero__image {
  padding-top: 40px;
  display: flex;
  justify-content: center;
  clip-path: inset(0 -200px 0 -200px); /* extends 100px left and right */
}

.green-triangle-hero__image img {
  max-width: 200px;
  width: 100%;
  height: auto;
  /* right, down, spread, blur   */
  box-shadow: 50px 250px 150px -58px #00d973, -50px 250px 150px -58px #00d973;
}

@media (min-width: 1024px) {
  .green-triangle-hero__image img {
    max-width: 350px;
  }
}

.c-button {
  font-family: Archivo;
  font-weight: 400;
  font-style: Regular;
  font-size: 10px;
  line-height: 120%;
  letter-spacing: 0%;
  text-align: center;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 0%;
  color: white;
}

.c-refer-banner {
  background-color: #00d973;
  transition: background-color 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  color: black;
  font-weight: bold;
  height: 2rem;
  font-size: 12px;
}

@media (min-width: 1024px) {
  .c-refer-banner {
    font-size: 0.75rem;
  }
}

.c-refer-banner:hover {
  background-color: #00bf65;
}

.c-refer-banner__icon {
  width: 1.5rem;
}

.c-app-badges {
  width: 70px;
  height: 30px;
  align-self: center;
}

.c-cta__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* .c-cta__content .c-cta__title {
  margin: 0;
  padding: 0;
}

.c-cta__content .c-cta__desc {
  margin: 0;
  padding: 0;
}

.c-cta__content .c-button {
  margin: 0;
  padding: 0;
} */
