#howWorks {
  display: flex;
  flex-direction: row;
}

#howWorksLeft {
  flex: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-image: url('../images/cw26-mancha3.png');
  background-position: 50%;
  background-size: cover;
  padding: 30px;
}

#howWorksLeft .title {
  font: normal normal normal 58px 'Bebas Neue', Inter, Arial, sans-serif;
  letter-spacing: 0px;
  color: #c8102e;
  line-height: 0.95;
  text-transform: uppercase;
}

#howWorksLeft .description {
  font: normal normal normal 16px/22px Inter;
  letter-spacing: 0px;
  color: #333333;
  margin-top: 20px;
}

#howWorksRight {
  flex: 6;
  display: flex;
  flex-direction: row;
  background: #e8e8e8 0% 0% no-repeat padding-box;
}

#howWorksTabs {
  flex: 3;
}

#howWorksTabs ul {
  list-style: none;
  display: flex;
  height: 100%;
  flex-direction: column;
}

#howWorksTabs ul li {
  position: relative;
  overflow: hidden;
  padding: 15% 0 15% 15%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #333333 0% 0% no-repeat padding-box;
  border-radius: 0px 8px 8px 0px;
  margin-bottom: 5px;
  flex: 1;
  cursor: pointer;
  transition: all ease-in 300ms;
}

#howWorksTabs ul li::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 36px;
  height: 24px;
  background: #c8102e;
  opacity: 0.72;
  clip-path: polygon(0 42%, 70% 42%, 70% 14%, 100% 50%, 70% 86%, 70% 58%, 0 58%);
  transform: rotate(-35deg);
  transition: all ease-in 300ms;
}

#howWorksTabs ul li:nth-child(even)::before {
  transform: rotate(35deg);
}

#howWorksTabs ul li.active::before {
  background: #ffffff;
  opacity: 1;
  box-shadow: 0 0 0 6px rgba(255, 88, 93, 0.24);
}

#howWorksTabs ul li .left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex: 1;
  justify-content: center;
  align-items: center;
}

#howWorksTabs ul li .number {
  font: normal normal bold 38px Inter;
  letter-spacing: 0px;
  color: #ffffff;
  /* flex: 1; */
  padding-right: 20px;
}

#howWorksTabs ul li .content {
  font: normal normal bold 16px Inter;
  letter-spacing: 0px;
  color: #f8f8f8;
  /* flex: 3; */
  flex-grow: 1;
  text-align: left;
}

#howWorksTabs ul li.active .number {
  font: normal normal bold 38px Inter;
}

#howWorksTabs ul li.active .content {
  font: normal normal bold 18px Inter;
}

#howWorksTabs ul li.active {
  background: #c8102e 0% 0% no-repeat padding-box;
  border-radius: 8px;
  margin-left: -20px;
  margin-bottom: 0px;
}

.howWorksContent {
  display: none;
  transition: all ease-in 300ms;
  opacity: 0;
}

.howWorksContent .howWorksImage {
  margin-top: 80px;
  text-align: center;
}

.howWorksContent .howWorksImage img {
  width: 85%;
}

.howWorksContent .howWorksTitle {
  font: normal normal normal 25px Inter;
  letter-spacing: 0px;
  color: #333333;
  text-align: center;
  margin-top: 50px;
}

.howWorksContent.active {
  flex: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  opacity: 1;
}

.howWorksIntroCard {
  width: 80%;
  max-width: 520px;
  padding: 40px;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.10);
  text-align: left;
}

.howWorksIntroCard .eyebrow {
  font: normal normal 800 12px Inter;
  letter-spacing: 0px;
  color: #c8102e;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.howWorksIntroCard .headline {
  font-family: 'Bebas Neue', Inter, Arial, sans-serif;
  font-size: 48px;
  line-height: 0.95;
  letter-spacing: 0px;
  color: #111111;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.howWorksIntroCard .calltoaction {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #c8102e;
  border-radius: 8px;
  padding: 14px 22px;
  font: normal normal 800 14px/18px Inter;
  letter-spacing: 0px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.howWorksIntroCard .calltoaction::after {
  content: "";
  width: 15px;
  height: 11px;
  background: currentColor;
  clip-path: polygon(0 42%, 70% 42%, 70% 14%, 100% 50%, 70% 86%, 70% 58%, 0 58%);
}

.howWorksStepCard {
  position: relative;
  width: 80%;
  max-width: 520px;
  padding: 38px;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.10);
  text-align: left;
  overflow: hidden;
}

.howWorksStepCard::before {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 40px;
  height: 26px;
  background: #c8102e;
  opacity: 0.16;
  clip-path: polygon(0 42%, 70% 42%, 70% 14%, 100% 50%, 70% 86%, 70% 58%, 0 58%);
  transform: rotate(-35deg);
}

.howWorksStepCard .eyebrow {
  font: normal normal 800 12px Inter;
  letter-spacing: 0px;
  color: #c8102e;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.howWorksStepCard .headline {
  max-width: 390px;
  font-family: 'Bebas Neue', Inter, Arial, sans-serif;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: 0px;
  color: #111111;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.howWorksStepCard .stepText {
  max-width: 430px;
  font: normal normal normal 15px/23px Inter;
  letter-spacing: 0px;
  color: #333333;
}

.howWorksCardList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 24px;
}

.howWorksCardList span {
  position: relative;
  padding: 10px 12px 10px 34px;
  background: #f8f8f8;
  border-radius: 8px;
  color: #333333;
  font: normal normal 800 12px/16px Inter;
  letter-spacing: 0px;
  text-transform: uppercase;
}

.howWorksCardList span::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 10px;
  background: #c8102e;
  clip-path: polygon(0 42%, 70% 42%, 70% 14%, 100% 50%, 70% 86%, 70% 58%, 0 58%);
  transform: translateY(-50%);
}

.legacy-plan-links {
  display: none;
}

.howWorksMiniCards {
  display: flex;
  width: 90%;
}

.howWorksMiniCards .minicard {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 8px;
  flex: 1;
  /* width: 50%; */
  /* width: 215px; */
}

.howWorksMiniCards .minicard .description {
  font: normal normal normal 20px Inter;
  letter-spacing: 0px;
  color: #ffffff;
  text-transform: lowercase;
  text-align: center;
  margin-bottom: 10px;
}

.howWorksMiniCards .minicard .plan {
  font: normal normal bold 32px Inter;
  letter-spacing: 3.2px;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
}

.howWorksMiniCards .minicard .calltoaction {
  background-color: #fff;
  border-radius: 8px;
  padding: 12px 24px;
  font: normal normal bold 16px/22px Inter;
  letter-spacing: 0px;
  color: #c8102e;
  text-align: center;
  cursor: pointer;
}

.howWorksMiniCards .minicard.purple {
  background: transparent linear-gradient(231deg, #c8102e 0%, #76232f 100%) 0%
    0% no-repeat padding-box;
  box-shadow: 0px 3px 36px #c8102e40;
  margin-bottom: 40px;
}

.howWorksMiniCards .minicard.yellow {
  background: transparent linear-gradient(233deg, #76232f 0%, #c8102e 100%) 0%
    0% no-repeat padding-box;
  box-shadow: 0px 3px 36px #c8102e40;
  margin-top: 40px;
  margin-left: -20px;
}

.howWorksDescription {
  font: normal normal normal 16px Inter;
  letter-spacing: 0px;
  color: #333333;
  text-align: center;
  margin-top: 50px;
  width: 80%;
}

.logoConcept {
  width: min(680px, 86%);
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 38px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.10);
}

.logoConceptTop {
  display: flex;
  align-items: center;
  gap: 28px;
  text-align: left;
}

.logoConceptTop img {
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
  object-fit: contain;
}

.logoConcept .howWorksTitle {
  margin-top: 0;
  text-align: left;
  font: normal normal 800 24px/30px Inter;
  color: #111111;
}

.logoConcept .howWorksDescription {
  width: auto;
  margin-top: 12px;
  text-align: left;
  line-height: 1.55;
}

.logoConceptGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.logoConceptGrid div {
  border-left: 3px solid #c8102e;
  padding: 4px 0 4px 14px;
  text-align: left;
}

.logoConceptGrid strong {
  display: block;
  color: #111111;
  font: normal normal 800 13px/18px Inter;
  text-transform: uppercase;
}

.logoConceptGrid span {
  display: block;
  margin-top: 6px;
  color: #333333;
  font: normal normal normal 14px/20px Inter;
}

.logoConceptGrid .symbolIcon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 50%;
}

.logoConceptGrid .symbolIcon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #c8102e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logoConceptGrid .symbolIcon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logoConceptSection {
  padding: 76px 30px;
  background: #111111;
}

.logoConcept.logoConceptWide {
  width: min(980px, 100%);
  margin: 0 auto;
}

.logoConcept .eyebrow {
  font: normal normal 800 12px Inter;
  letter-spacing: 0px;
  color: #c8102e;
  text-transform: uppercase;
  margin-bottom: 10px;
}

@media screen and (max-width: 1000px) {
  .howWorksMiniCards .minicard {
    padding: 20px;
  }

  .howWorksMiniCards .minicard.yellow {
    margin-left: -15px;
  }
}

@media screen and (max-width: 950px) {
  #howWorksTabs ul li {
    padding: 10% 0 10% 10%;
  }

  #howWorksTabs ul li .number {
    padding-right: 10px;
  }
}

@media screen and (max-width: 900px) {
  #howWorks {
    flex-direction: column;
  }

  #howWorksLeft {
    padding: 100px;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .howWorksMiniCards .minicard {
    padding: 30px;
  }

  .howWorksMiniCards .minicard.yellow {
    margin-left: -20px;
  }

  #howWorksTabs ul li {
    padding: 15% 0 15% 15%;
  }

  #howWorksTabs ul li .number {
    padding-right: 20px;
  }

  #howWorksTabs ul li.active {
    margin-left: 0;
  }
}

@media screen and (max-width: 800px) {
  #howWorksRight {
    flex-direction: column;
  }

  #howWorksTabs {
    flex-direction: row;
    flex: 0;
    height: auto;
    width: 100%;
  }

  #howWorksTabs ul {
    overflow: visible;
    white-space: nowrap;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    box-sizing: border-box;
    scroll-snap-type: none;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }

  #howWorksTabs ul::-webkit-scrollbar {
    display: none;
  }

  #howWorksTabs ul li.active {
    margin: 0;
  }

  #howWorksTabs ul li {
    display: flex;
    flex: none;
    min-height: 88px;
    padding: 16px 38px 16px 14px;
    width: auto !important;
    margin: 0;
    vertical-align: top;
    white-space: normal;
    border-radius: 8px;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  #howWorksTabs ul li::before {
    right: 14px;
    bottom: 14px;
    width: 28px;
    height: 18px;
  }

  .howWorksContent {
    padding: 50px 0;
  }

  #howWorksTabs ul li.active {
    padding: 16px 38px 16px 14px;
    margin: 0;
  }

  #howWorksTabs ul li .left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  #howWorksTabs ul li .number {
    font-size: 24px;
    padding-right: 10px;
  }

  #howWorksTabs ul li .content,
  #howWorksTabs ul li.active .content {
    font-size: 13px;
    line-height: 1.2;
  }
  .logoConceptTop,
  .logoConceptGrid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .logoConcept,
  .logoConcept .howWorksTitle,
  .logoConcept .howWorksDescription {
    text-align: center;
  }

  .logoConceptSection {
    padding: 60px 24px;
  }

  .logoConceptGrid div {
    border-left: 0;
    border-top: 3px solid #c8102e;
    padding: 12px 0 0;
    text-align: center;
  }

  .logoConceptGrid .symbolIcon {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 450px) {
  #howWorksTabs ul li {
    min-height: 96px;
  }

  #howWorksTabs ul li .content,
  #howWorksTabs ul li.active .content {
    font-size: 12px;
  }

  .howWorksIntroCard {
    width: 84%;
    padding: 28px;
  }

  .howWorksIntroCard .headline {
    font-size: 38px;
  }

  .howWorksStepCard {
    width: 84%;
    padding: 28px;
  }

  .howWorksStepCard::before {
    right: 18px;
    top: 18px;
  }

  .howWorksStepCard .headline {
    font-size: 36px;
  }

  .howWorksStepCard .stepText {
    font-size: 14px;
    line-height: 22px;
  }

  .howWorksMiniCards {
    flex-direction: column;
    width: 80%;
  }
  .howWorksMiniCards .minicard.yellow {
    margin: 0;
  }
}
