:root {
  --primary-color: #e02a33;
  --secondary-color: #707071;
  --text-color: #4d4d4d;
  --background-color: #f4f4f4;
  --base-font-size: 16px;
  --max-width: 1300px;
}

@font-face {
  font-family: Changa;
  src: url("./assets/fonts/Changa-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Changa;
  src: url("./assets/fonts/Changa-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: Changa, sans-serif;
  color: var(--text-color);
  background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='20' height='20' patternTransform='scale(4) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%23f4f4f4ff'/><path d='M 10,-2.55e-7 V 20 Z M -1.1677362e-8,10 H 20 Z'  stroke-width='0.1' stroke='%23ffffffff' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,0)' fill='url(%23a)'/></svg>");
  background-color: var(--background-color);
}

html {
  --width: min(0.3906vw, 7.5px);

  font-size: calc(var(--base-font-size) + var(--width));
}

main {
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
}

section {
  padding: 0 1rem;
  text-align: center;
}

.fade-scroll {
  opacity: 0;
}

.button {
  display: inline-block;
  -webkit-text-decoration: none;
  text-decoration: none;
  -webkit-user-select: none;
          user-select: none;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  border-radius: 16px;
  padding: 0.5rem 2rem;
  margin: auto;
}

.separator {
  display: grid;
  place-items: center center;
  margin-top: 4rem;
  margin-bottom: 0.5rem;
}

.separator .icon {
  grid-area: 1 / 1;
  scale: 0;
  rotate: 90deg;
  animation: scale-rotate 1s ease forwards;
}

@keyframes scale-rotate {
  from {
    scale: 0;
    rotate: 90deg;
  }

  to {
    scale: 1;
    rotate: 0deg;
  }
}

.separator .bg {
  grid-area: 1/1;
  border: solid 5px var(--primary-color);
  border-radius: 54px;
  height: 2rem;
  width: 0;
  animation: expand 1s ease forwards;
}

@keyframes expand {
  from {
    width: 0;
  }

  to {
    width: 90%;
  }
}

.header {
  position: relative;
  color: var(--background-color);
  background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='20' height='20' patternTransform='scale(4) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%23707071ff'/><path d='M 10,-2.55e-7 V 20 Z M -1.1677362e-8,10 H 20 Z'  stroke-width='0.2' stroke='%23787878ff' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,0)' fill='url(%23a)'/></svg>");
  background-color: var(--secondary-color);
  background-size: 3rem 3rem;
  border-bottom-right-radius: 200px;
  border-bottom-left-radius: 200px;
  padding: 100px;
  margin-bottom: 6rem;
}

.header .content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  margin: 0;
  padding: 0.5rem;
  border: solid 1px var(--background-color);
  border-radius: 25px 25px 95px 95px;
  padding-bottom: 6rem;
  padding-top: 2rem;
}

.header .content .title {
  order: 1;
  margin: 0;
}

.header .content .subtitle {
  order: 2;
  font-weight: normal;
  font-size: 2rem;
  margin: 0;
}

.header .content .description {
  order: 3;
}

.header .content .button {
  order: 4;
  -webkit-text-decoration: none;
  text-decoration: none;
  -webkit-user-select: none;
          user-select: none;
  background-color: #fff;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.6rem;
  border-radius: 16px;
  padding: 0.5rem 3rem;
}

.header .stickers {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 30%);
  max-width: calc(100% - 125px);
}

.header .stickers.red {
  display: none;
}

@media screen and (width <= 900px) {
  .header {
    padding: 25px;
    border-bottom-right-radius: 120px;
    border-bottom-left-radius: 120px;
  }

  .header .content {
    padding-bottom: 8rem;
  }

  .header .content .button {
    flex: 1;
    display: block;
    order: 2;
  }

  .header .stickers {
    display: none;
  }

  .header .stickers.red {
    display: block;
  }
}

.first .title {
  max-width: 550px;
  margin: auto;
  text-align: center;
  font-size: 1.6rem;
}

.first .cards {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 2rem;
  margin: 2rem 0;
}

.first .card {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  border-radius: 16px;
  background-color: #fff;
  padding: 0.5rem;
}

.first .card img {
  width: 4rem;
  height: 4rem;
  border: solid 1px var(--background-color);
  padding: 0.2rem;
  border-radius: 8px;
}

.first .card .title-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 0 1rem;
}

.first .card .title {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
}

@media screen and (width <= 900px) {
  .first .cards {
    flex-direction: column;
    gap: 1rem;
  }
}

.second .title {
  margin: auto;
  text-align: center;
  font-size: 1.6rem;
}

.second .title span {
  color: var(--primary-color);
}

.second .cards {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  margin: 2rem 0;
  gap: 1.6rem;
}

.second .card {
  flex: 1;
  flex-shrink: 0;
  min-width: fit-content;
  background-color: #fff;
  padding: 0.5rem;
  border-radius: 16px;
}

.second .card .top {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.second .card .left {
  flex: 1;
  min-width: 100px;
  background-color: var(--background-color);
  border-radius: 8px 24px 24px 8px;
}

.second .card .center {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  aspect-ratio: 1;
  padding: 0.5rem;
  background-color: var(--primary-color);
}

.second .card .center svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.second .card .right {
  flex: 1;
  min-width: 100px;
  background-color: var(--background-color);
  border-radius: 24px 8px 8px 24px;
}

.second .card .card-title {
  text-align: center;
  margin-bottom: 0;
  font-size: 0.8rem;
}

@media screen and (width <= 600px) {
  .second .cards {
    flex-direction: column;
    gap: 1rem;
  }
}

.third .cards {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.third .card {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-width: 240px;
  background-color: #fff;
  border-radius: 16px;
  padding: 0.5rem;
}

.third .card .card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  padding: 0.5rem;
  border-radius: 8px;
}

.third .card .card-icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.third .card .card-title {
  flex: 1;
  display: flex;
  align-items: center;
  text-align: right;
  margin: 0;
  font-size: 0.8rem;
}

@media screen and (width <= 600px) {
  .third .cards {
    flex-direction: column;
    gap: 1rem;
  }
}

.fourth .cards {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 2rem;
  margin: 6rem 0;
}

.fourth .card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  border-radius: 16px;
  border: solid 1px var(--primary-color);
  padding: 1rem;
  padding-top: 0;
  text-align: center;
}

.fourth .card .top {
  display: inline-block;
  border-bottom: solid 1px var(--primary-color);
  border-left: solid 1px var(--primary-color);
  border-right: solid 1px var(--primary-color);
  border-bottom-left-radius: 46px;
  border-bottom-right-radius: 46px;
  padding: 0 0.5rem;
  height: 6rem;
}

.fourth .card .top img {
  max-width: 8rem;
  height: auto;
  transform: translateY(-41%);
  filter: drop-shadow(0 0 10px #0006) brightness(1.2) saturate(1.2);
}

.fourth .card .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.fourth .card .text {
  margin: 0;
}

.fourth .card .text span {
  color: var(--primary-color);
  font-weight: bold;
}

.fourth .card .button {
  border-radius: 8px;
}

.fourth .socials {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

.fourth .socials svg {
  width: 40px;
  height: 40px;
  fill: var(--primary-color);
}

@media screen and (width <= 900px) {
  .fourth .cards {
    flex-direction: column;
    gap: 5rem;
    margin-bottom: 0;
  }
}

.fifth .title {
  text-align: center;
  color: var(--primary-color);
}

.fifth .cards {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin: 3rem 0;
}

.fifth .column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fifth .card .question {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background-color: #fff;
  border-radius: 16px;
  border: solid 1px var(--primary-color);
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text-color);
  padding: 1rem;
  cursor: pointer;
}

.fifth .card .question p {
  margin: 0;
}

.fifth .card .question svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
  transition: transform 0.3s ease-in-out;
}

.fifth .card .answer {
  border-radius: 16px;
  background-color: #fff;
  overflow: hidden;
  overflow: clip;
  height: 0;
  opacity: 0;
  transition:
    height 0.3s ease-in-out,
    opacity 0.3s ease-in-out,
    margin 0.3s ease-in-out;
}

.fifth .card .answer p {
  margin: 0;
  padding: 1rem;
  font-size: 0.8rem;
  text-align: right;
}

@media screen and (width <= 900px) {
  .fifth .cards {
    flex-direction: column;
    gap: 1rem;
  }
}

footer {
  position: relative;
  color: var(--background-color);
  background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='20' height='20' patternTransform='scale(4) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%23707071ff'/><path d='M 10,-2.55e-7 V 20 Z M -1.1677362e-8,10 H 20 Z'  stroke-width='0.2' stroke='%23787878ff' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,0)' fill='url(%23a)'/></svg>");
  background-color: var(--secondary-color);
  background-size: 3rem 3rem;
  border-top-right-radius: 120px;
  border-top-left-radius: 120px;
  padding: 30px;
  margin-top: 6rem;
}

footer .content {
  text-align: center;
  margin: 0;
  padding: 0.5rem;
  border: solid 1px var(--background-color);
  border-radius: 95px 95px 25px 25px;
}

@media screen and (width <= 900px) {
  footer {
    padding: 20px;
  }

  footer .content {
    padding-bottom: 4rem;
    border-top-right-radius: 100px;
    border-top-left-radius: 100px;
  }
}
