/* ============================================================
   How It Works — page wrapper
   (resolved from HowItWorks.module.scss)
   ============================================================ */

.how-it-works-redesign {
  background-color: #ffffff;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: column nowrap;
  gap: 0;
}

/* ============================================================
   Hero Section
   (resolved from HeroSection.module.scss)
   ============================================================ */

.how-it-works-hero {
  padding: 53px 16px 64px;
  width: 100%;
  max-width: 1200px;
}

.how-it-works-hero__content {
  max-width: 792px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 40px;
}

.how-it-works-hero__heading {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -1px;
}

.how-it-works-hero__heading-highlight {
  color: #e40148;
  font-family: 'Parkinsans', Helvetica Neue, Arial;
}

.how-it-works-hero__description {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.4px;
  font-weight: 300;
}

@media only screen and (max-width: 991px) {
  .how-it-works-hero {
    padding: 32px 16px;
  }

  .how-it-works-hero__content {
    gap: 24px;
  }

  .how-it-works-hero__heading {
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 33.6px;
    letter-spacing: 0;
  }

  .how-it-works-hero__description {
    font-size: 16px;
  }
}

/* ============================================================
   Steps Section
   (resolved from StepsSection.module.scss)
   ============================================================ */

.how-it-works-steps {
  margin: 0 16px 116px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column nowrap;
  gap: 0;
}

.how-it-works-steps__inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-flow: row nowrap;
  gap: 40px;
}

.how-it-works-steps__step {
  flex: 1;
  max-width: 330px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: column nowrap;
  gap: 20px;
}

.how-it-works-steps__step-number {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 33.6px;
}

.how-it-works-steps__step-text {
  font-family: 'DMSans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
  text-align: center;
}

@media only screen and (max-width: 991px) {
  .how-it-works-steps {
    margin: 0 16px 64px;
  }

  .how-it-works-steps__inner {
    justify-content: center;
    align-items: center;
    flex-flow: column nowrap;
    gap: 32px;
  }
}

/* ============================================================
   Tools Section
   (resolved from ToolsSection.module.scss)
   ============================================================ */

.how-it-works-tools {
  margin: 0 16px 64px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 40px;
}

.how-it-works-tools__heading {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 70px;
  font-style: normal;
  font-weight: 400;
  line-height: 84px;
  max-width: 1028px;
}

.how-it-works-tools__nav {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: row nowrap;
  gap: 16px;
}

/* ── Cards container ── */

.how-it-works-tools__cards {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-flow: column nowrap;
  gap: 24px;
}

/* ── Single card ── */

.how-it-works-tools__card {
  border: 8px solid #f8f9fb;
  border-radius: 20px;
  overflow: hidden;
  padding: 16px;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-flow: row nowrap;
  gap: 40px;
}

/* Mobile card order */
.how-it-works-tools__card--order-first  { }
.how-it-works-tools__card--order-second { }
.how-it-works-tools__card--order-last   { }

/* ── Screenshots wrapper (extension card) ── */

.how-it-works-tools__screenshots-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: space-between;
  flex-flow: column nowrap;
  gap: 24px;
}

/* ── Base screenshot block ── */

.how-it-works-tools__screenshot {
  width: 540px;
  min-height: 323px;
  background-color: #eee5e9;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

/* ── Browser screenshots (appScreen6 bg + screenOffers2 overlay) ── */

.how-it-works-tools__screenshot--browser {
  height: 479px;
  padding: 36px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row nowrap;
  gap: 24px;
}

.how-it-works-tools__screenshot--browser img:first-child {
  width: 519px;
  height: 392px;
  aspect-ratio: 184 / 139;
  object-fit: contain;
}

.how-it-works-tools__screenshot--browser img:last-child {
  width: 151px;
  height: 225px;
  position: absolute;
  bottom: 36px;
  right: 36px;
  background-color: #ffffff;
  aspect-ratio: 51 / 76;
  box-shadow: 3px 5px 19px 0 rgba(0, 0, 0, 0.25);
}

/* ── Extension modal (appScreen3 bg + appScreen1 overlay) ── */

.how-it-works-tools__screenshot--extension img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.how-it-works-tools__screenshot--extension img:last-child {
  width: 457px;
  height: 228px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

/* ── Phone screenshots (appScreen4 + appScreen5) ── */

.how-it-works-tools__screenshot--phone {
  min-height: 436px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row nowrap;
  gap: 42px;
}

.how-it-works-tools__screenshot--phone img {
  width: auto;
  height: 85%;
}

/* ── Safari iPhone screenshot (appScreen2) ── */

.how-it-works-tools__screenshot--safari img:first-child {
  width: 135.69%;
  height: 106.62%;
  object-fit: cover;
  border-radius: 20px;
}

/* ── Card content area ── */

.how-it-works-tools__card-content {
  flex: 1;
  padding: 0 40px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 24px;
}

.how-it-works-tools__card-header {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 8px;
}

.how-it-works-tools__card-label {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.how-it-works-tools__card-title {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -1px;
}

.how-it-works-tools__card-description {
  font-family: 'DMSans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.how-it-works-tools__features-heading {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.how-it-works-tools__features-list {
  font-family: 'DMSans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
  padding-left: 24px;
  list-style: disc;
}

.how-it-works-tools__features-list li {
  margin-bottom: 12px;
}

.how-it-works-tools__features-list li:last-child {
  margin-bottom: 0;
}

.how-it-works-tools__browsers-heading {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 33.6px;
}

.how-it-works-tools__browser-icons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: row nowrap;
  gap: 12px;
}

.how-it-works-tools__store-buttons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: row nowrap;
  gap: 16px;
}

/* ── Alternative section ── */

.how-it-works-tools__alternative {
  max-width: 1200px;
  width: 100%;
  padding-top: 40px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 16px;
}

.how-it-works-tools__alt-heading {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 33.6px;
}

.how-it-works-tools__alt-description {
  font-family: 'DMSans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

/* ── Responsive ── */

@media only screen and (max-width: 991px) {
  .how-it-works-tools {
    gap: 32px;
  }

  .how-it-works-tools__heading {
    max-width: 327px;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 33.6px;
  }

  .how-it-works-tools__card {
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
  }

  .how-it-works-tools__card--order-first  { order: 1; }
  .how-it-works-tools__card--order-second { order: 2; }
  .how-it-works-tools__card--order-last   { order: 3; }

  .how-it-works-tools__screenshots-wrapper {
    width: 100%;
  }

  .how-it-works-tools__screenshot {
    width: 100%;
    min-height: auto;
  }

  .how-it-works-tools__screenshot--browser {
    height: auto;
  }

  .how-it-works-tools__screenshot--browser img:first-child {
    width: 100%;
    height: auto;
  }

  .how-it-works-tools__screenshot--browser img:last-child {
    width: 30%;
    height: auto;
    bottom: 16px;
    right: 16px;
  }

  .how-it-works-tools__screenshot--extension {
    aspect-ratio: 540 / 375;
    min-height: auto;
  }

  .how-it-works-tools__screenshot--extension img:last-child {
    width: 85%;
    height: auto;
  }

  .how-it-works-tools__screenshot--phone {
    min-height: auto;
    aspect-ratio: 280 / 254;
    gap: 23px;
  }

  .how-it-works-tools__screenshot--safari {
    aspect-ratio: 540 / 292;
    min-height: auto;
  }

  .how-it-works-tools__screenshot--safari img:first-child {
    width: 135.69%;
    height: 117.94%;
  }

  .how-it-works-tools__card-content {
    padding: 0;
  }

  .how-it-works-tools__card-label {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 19.6px;
  }

  .how-it-works-tools__card-title {
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 33.6px;
    letter-spacing: 0;
  }

  .how-it-works-tools__browsers-heading {
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 28.8px;
  }

  .how-it-works-tools__store-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .how-it-works-tools__alt-heading {
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 28.8px;
  }
}

/* ============================================================
   FAQ Section
   (resolved from FaqSection.module.scss)
   ============================================================ */

.how-it-works-faq {
  padding: 0 0 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 32px;
}

.how-it-works-faq__heading {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 33.6px;
}

/* ============================================================
   Accordion
   (resolved from Accordion.module.scss)
   ============================================================ */

.accordion {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-flow: column nowrap;
  gap: 0;
}

.accordion__item {
  width: 100%;
  border-bottom: 1px solid #dfe1e6;
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__header {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: row nowrap;
  gap: 16px;
}

.accordion__header:hover {
  opacity: 0.8;
}

.accordion__title {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.accordion__icon {
  flex-shrink: 0;
}

.accordion__icon--minus {
  display: none;
}

.accordion__header[aria-expanded="true"] .accordion__icon--plus {
  display: none;
}

.accordion__header[aria-expanded="true"] .accordion__icon--minus {
  display: block;
}

.accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-in-out;
}

.accordion__header[aria-expanded="true"] + .accordion__body {
  grid-template-rows: 1fr;
}

.accordion__body-inner {
  overflow: hidden;
}

.accordion__body-inner p {
  font-family: 'DMSans', Helvetica Neue, Arial;
  color: #22252a;
  max-width: 995px;
  padding-bottom: 24px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.6px;
}

@media only screen and (max-width: 991px) {
  .how-it-works-faq {
    padding: 0 16px 48px;
  }

  .how-it-works-faq__heading {
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 28.8px;
  }

  .accordion__title {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 19.6px;
  }
}
