.profitable-profitable {
  background-color: #F0F0F0;
  min-height: 50px;
  padding: 80px 60px;
}

.profitable-heading {
  font-size: 36px;
  font-weight: 700;
  color: #14101e;
  margin-bottom: 32px;
}

.profitable-highlight {
  color: #701AB5;
}

.profitable-cardsRow {
  display: flex;
  align-items: stretch;
  gap: 24px;
  max-width: 1300px;
}

.profitable-card {
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

/* ---------- CARD 1 ---------- */
.profitable-cardWhite {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(20, 16, 30, 0.06);
  padding: 32px;
  flex: 1;

}

/* .profitable-pillsRow {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
} */

.profitable-pill {
  flex: 1;
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 999px;
}

.profitable-pill--bad {
  background: #fde4e4;
  color: #D93535;
}

.profitable-pill--good {
  background: #dff5e6;
  color: #259a55;
}

/* .profitable-listsRow {
  display: flex;
  gap: 16px;
  flex: 1;
} */

.profitable-subCardsRow {
  display: flex;
  gap: 16px;
}

.profitable-subCard {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profitable-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 23px;
  list-style: none;
}

.profitable-listItem {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #3a3447;
}

.profitable-listItem--bad svg {
  color: #ff5b5b;
  background: rgba(255, 91, 91, 0.12);
  border-radius: 50%;
  padding: 3px;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.profitable-listItem--good svg {
  color: #2bb673;
  background: rgba(43, 182, 115, 0.12);
  border-radius: 50%;
  padding: 3px;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* ---------- CARD 2 ---------- */
.profitable-cardPurple {
  background: #F3F0FA;
  box-shadow: 0 10px 30px rgba(20, 16, 30, 0.06);
  border-radius: 32px;
  width: 543px;
  height: 400px;
  flex-shrink: 0;
}

.profitable-cardPurpleHeader {
  width: 100%;
  padding: 28px 32px 0;
}

.profitable-cardPurpleTitle {
  font-size: 24px;
  font-weight: 500;
  color: #14101e;
}

.profitable-cardPurpleBody {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  padding: 20px 32px 32px;
}

.profitable-cardPurpleImageCol {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
}

.profitable-graphImage {
  width: 100%;
  max-width: 220px;
  /* height: auto; */
  object-fit: contain;
}

.profitable-cardPurpleTextCol {
  flex: 1;
}

.profitable-saveLabel {
  font-size: 16px;
  color: #3a3447;
  margin-bottom: 4px;
}

.profitable-savePercent {
  font-size: 72px;
  font-weight: 500;
  color: #701AB5;
  line-height: 1;
  margin-bottom: 8px;
}

.profitable-saveSubtitle {
  font-size: 22px;
  font-weight: 500;
  color: #14101e;
  margin-bottom: 14px;
}

.profitable-saveDescription {
  font-size: 13px;
  color: #6b6478;
  line-height: 1.5;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .profitable-cardsRow {
    flex-direction: column;
  }

  .profitable-cardPurple {
    width: 100%;
    max-width: 543px;
    height: auto;
  }

  .profitable-listsRow {
    flex-direction: column;
    gap: 24px;
  }

  .profitable-pillsRow {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .profitable-profitable {
    padding: 50px 20px;
  }

  .profitable-heading {
    font-size: 22px;
  }

  .profitable-cardPurpleBody {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 14px;
    column-gap: 16px;
  }

  /* flattens the text column so its children become direct flex
     items of cardPurpleBody, letting each one be ordered individually */
  .profitable-cardPurpleTextCol {
    display: contents;
  }

  .profitable-cardPurpleTopGroup {
    order: 1;
    flex: 1 1 auto;
  }

  .profitable-cardPurpleImageCol {
    order: 2;
    flex: 0 0 auto;
    align-self: flex-start;
  }

  .profitable-saveSubtitle {
    order: 3;
    flex: 0 0 100%; /* forces this onto its own full-width line */
    margin-bottom: 4px;
  }

  .profitable-saveDescription {
    order: 4;
    flex: 0 0 100%; /* same — full-width line below the subtitle */
  }
}

@media (max-width: 600px) {
  .profitable-cardWhite {
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .profitable-subCardsRow {
    flex-direction: column;
    gap: 20px;
  }

  .profitable-subCard {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(20, 16, 30, 0.06);
    padding: 24px;
    gap: 20px;
  }

  .profitable-pill {
    align-self: flex-start;
    font-size: 20px;
  }


  .profitable-cardPurpleBody {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 14px;
    column-gap: 16px;
  }

  .profitable-cardPurpleTextCol {
    display: contents;
  }

  .profitable-cardPurpleTopGroup {
    order: 1;
    flex: 1 1 auto;
    min-width: 110px; /* keeps "Save up to / 70%" from getting squeezed too thin */
  }

  .profitable-cardPurpleImageCol {
    order: 2;
    flex: 0 0 auto;
    align-self: flex-start;
  }

  .profitable-graphImage {
    max-width: 130px; /* was inheriting 220px from desktop — too wide to fit beside the text */
    /* height: auto; */
    max-height: 100px;
  }

  .profitable-savePercent {
    font-size: 56px; /* slightly smaller so the row has enough combined room */
  }

  .profitable-saveSubtitle {
    order: 3;
    flex: 0 0 100%;
    margin-bottom: 4px;
  }

  .profitable-saveDescription {
    order: 4;
    flex: 0 0 100%;
  }
}