@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&display=swap');

:root {
  /* PALETTE */
  --color-blue-1: #598ffa;
  --color-blue-2: #3c61fa;
  --color-blue-3: #4d6fff;
  --color-grey-1: #262626;
  --color-grey-2: #939393;
  --color-grey-3: #d9d9d9;

  /* Slider styles */
  --swiper-pagination-bullet-inactive-color: var(--color-grey-3);
  --swiper-pagination-bullet-inactive-opacity: 0.9;
  --swiper-pagination-bullet-horizontal-gap: 3px;
  --swiper-pagination-bullet-size: 7px;

  /* Other */
  overflow-x: hidden;
}

* {
  font-family: 'Inter', sans-serif;
  /* AVOID TOUCH HIGHLIGHT */
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

body {
  overflow-x: clip;
  display: flow-root;
}

/* GENERAL PADDING */
main > *, footer {
  padding: 70px 30px;
}

/* CONTENT MAX-WIDTH */
.presentation-container, .benefits, .pricing, .about {
  max-width: 1200px;
  margin: auto;
}
.how-works-container, .faqs-container {
  max-width: 1140px;
  margin: auto;
}

/* NAV */
nav {
  border-bottom: 2px solid var(--color-blue-1);
  position: sticky;
  top: 0;
  z-index: 3;
  background-color: white;
}

.nav-container {
  max-width: 1440px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 40px;
  height: 50px;
  position: relative;
}

#desktop-nav {
  display: flex;
  align-items: center;
  color: #000000;
  gap: clamp(20px, 2.5vw, 30px);
}

#desktop-nav li {
  font-size: clamp(16px, 2vw, 18px);
}

#logo, .language {
  width: 100px;
  cursor: pointer;
}

#menu-hamburger {
  display: none;
  height: 30px;
  width: 30px;
}

.nav-mobile-container {
  background-color: var(--color-blue-2);
  width: 100%;
  position: absolute;
  top: 52px;
  left: 0;
  will-change: transform;
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
  display: none;
  visibility: hidden;
}

.show-nav-mobile {
  transform: translateX(0%);
  /* visibility: visible; */
}

.nav-mobile-container li {
  font-size: 18px;
  color: white;
}

@media only screen and (max-width: 768px) {
  .nav-container {
    padding: 5px 20px;
  }
  #desktop-nav, .language {
    display: none;
  }
  #menu-hamburger, .nav-mobile-container {
    display: block;
  }
  .nav-mobile-container ul {
    display: flex;
    flex-direction: column;
  }
  .nav-mobile-container li {
    padding: 10px 0;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid white;
  }
  .nav-mobile-container li:last-child {
    border-bottom: none;
  }
}
/* END NAV */

/* PRESENTATION */
.presentation-container {
  display: flex;
  justify-content: space-between;
  padding-top: clamp(40px, 6vw, 90px);
  padding-bottom: clamp(40px, 6vw, 90px);
  gap: calc(25px + 2vw);
}

.presentation-text {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex-basis: 55%;
}

.world {
  flex-basis: 35%;
}

.presentation-text h1 {
  line-height: 1.2;
  color: var(--color-grey-1);
  font-weight: 500;
  font-size: clamp(28px, 20px + 2vw, 48px);
}

.presentation-text p {
  font-size: clamp(14.5px, 8px + 1vw, 20px);
  color: #000000;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
}

/* GENERAL BUTTON STYLES */
.button {
  width: fit-content;
  background-color: var(--color-grey-1);
  color: white;
  z-index: 1;
  border-radius: 25px;
  padding: 10px 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.button:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.world img {
  width: clamp(260px, 200px + 10vw, 345px);
}

@media only screen and (max-width: 970px) {
  .presentation-text h1, .presentation-text p {
    white-space: wrap;
    hyphens: none;
  }
}

@media only screen and (max-width: 900px) {
  .presentation-text {
    flex-basis: 55%;
  }
  .world {
    flex-basis: 40%;
  }
  .presentation-text h1 br, .presentation-text p br {
    display: none;
  }
}

@media only screen and (max-width: 768px) {
  .presentation-container {
    flex-direction: column-reverse;
    align-items: center;
  }
  .presentation-text {
    align-items: center;
    margin-bottom: 20px;
  }
  .world {
    margin-bottom: 10px;
  }
}
/* END PRESENTATION */

/* BLUE BLOCK */
.block {
  background-color: var(--color-blue-2);
  padding: 60px 24px 60px 24px;
}

.block p {
  text-align: center;
  color: white;
  font-size: calc(14px + 0.5vw);
  line-height: 1.3;
}

@media only screen and (max-width: 510px) {
  .block p {
    font-size: clamp(12px, 3vw, 15px);
  }
}
/* END BLUE BLOCK */

/* PRODUCT */
.product {
  padding-bottom: 7px;
  background-color: var(--color-grey-1);
  color: var(--color-grey-3);
  position: relative;
}

.product h2 {
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 40px;
  font-size: 29px;
  font-weight: 600;
  font-family: 'Fira Sans', sans-serif;
  line-height: 1.4;
}

.swiper {
  margin-bottom: 50px;
}

.slider {
  max-width: 1000px;
  margin: auto;
}

.white-text {
  font-weight: 500;
}

.country {
  text-align: center;
  font-family: 'Fira Sans', sans-serif;
  font-size: clamp(24px, 17px + 1vw, 28px);
  font-weight: 600;
  color: var(--color-grey-3);
  margin-bottom: 90px;
}

/* SLIDER WHITE LINE */
.white-line {
  border-bottom: 1px solid var(--color-grey-3);
  width: 300px;
  position: absolute;
  top: 260px;
  left: 50%;
  transform: translateX(-50%);
}

@media only screen and (max-width: 768px) {
  .product {
    padding-top: 60px;
  }
  .white-line {
    top: 230px;
  }
}

@media only screen and (max-width: 476px) {
  .white-line {
    top: 255px;
    width: 280px;
  }
}
/* END SLIDER WHITE LINE */

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  row-gap: 30px;
  column-gap: 50px;
  margin-bottom: 70px;
}

.logos img {
  width: fit-content;
  max-height: 32px;
}

.logos .logo-cofidis {
  max-height: 40px;
}

.product p {
  text-align: center;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  margin: auto;
  line-height: 1.6;
}

#product-footer {
  padding-top: 50px;
  font-size: clamp(10px, 8px + 0.45vw, 13px);
}

@media only screen and (max-width: 768px) {
  .product p br {
    display: none;
  }
  .product h2 {
    font-size: clamp(21px, 18px + 0.6vw, 22px);
  }
  .logos img {
    max-height: 26px;
  }
}

@media only screen and (max-width: 460px) {
  .logos img {
    max-height: 23px;
    max-width: 180px;
  }
}
/* END PRODUCT */

/* BENEFITS */
.title {
  font-family: 'Fira sans', sans-serif;
  font-size: clamp(36px, 3vw, 40px);
  font-weight: 700;
  color: var(--color-grey-1);
}

.benefits-title {
  align-self: start;
}

.benefits-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  column-gap: 20px;
}

.benefits-content {
  display: flex;
  justify-content: space-between;
  color: #000;
  gap: 120px;
}

.benefits-2, .benefits-container > *:nth-child(2) {
  margin-bottom: 40px;
}

.benefits-2 .benefits-text {
  align-self: center;
}

.benefits-text h3 {
  font-weight: 600;
  font-size: 24px;
}

.benefits-subtitle {
  margin-top: 25px;
}

.benefits-text p {
  margin-top: 10px;
  font-weight: 300;
  font-size: 18px;
}

.benefits-img-container {
  display: flex;
  justify-content: center;
  min-width: 300px;
}

.benefits-text, .benefits-img-container {
  flex-basis: 40%;
}

.horses {
  width: clamp(300px, 30vw, 340px);
  object-fit: contain;
}

.rocket {
  width: clamp(210px, 22vw, 230px);
}

.dashboard {
  width: clamp(240px, 25vw, 260px);
  object-fit: contain;
}

@media only screen and (max-width: 950px) {
  .benefits-text, .benefits-img-container {
    flex-basis: unset;
  }
}

@media only screen and (max-width: 800px) {
  .benefits-content {
    gap: 40px;
  }
}

@media only screen and (max-width: 650px) {
  .benefits {
    padding-top: 60px;
  }
  .benefits-title {
    align-self: center;
  }
  .benefits-img-container {
    min-width: 200px;
  }
  .benefits-1 {
    margin-top: 50px;
  }
  .benefits-1, .benefits-3 {
    flex-direction: column-reverse;
    gap: 20px;
  }
  .benefits-2 {
    flex-direction: column;
    gap: 20px;
  }
  .benefits-2 h3 {
    margin-top: 25px;
  }
}
/* END BENEFITS */

/* HOW WORKS */
.how-works {
  background-color: var(--color-blue-2);
  color: white;
}

.how-works-container {
  display: flex;
  justify-content: space-between;
}

.how-works-text {
  display: flex;
  flex-direction: column;
  height: 350px;
  justify-content: space-between;
  font-weight: 200;
}

.how-works-title {
  color: white;
}

.how-works-text p {
  font-size: 20px;
  max-width: 420px;
}

.api-link {
  position: relative;
  width: fit-content;
  padding-right: 15px;
  font-size: 13px;
  padding-bottom: 1px;
}

.api-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% - 15px); /* Subtract 15px from the total width */
  border-bottom: 1px solid white;
}

.api-link img {
  width: 10px;
  position: absolute;
  right: 0;
  top: 70%;
  transform: translateY(-70%);
}

.api-img img {
  max-width: 320px;
  height: fit-content;
  box-shadow: 0 8px 4px rgba(0, 0, 0, 0.2);
  margin: auto;
}

.api-img p {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 300;
}

@media only screen and (max-width: 860px) {
  .how-works-container {
    gap: 40px;
  }
}

@media only screen and (max-width: 700px) {
  .how-works {
    padding-top: 60px;
  }
  .how-works-container {
    flex-direction: column;
  }
  .how-works-text p {
    max-width: fit-content;
  }
  .api-img {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .api-img p {
    width: 320px;
  }
}

@media only screen and (max-width: 397px) {
  .api-img p {
    width: 100%;
  }
}
/* END HOW WORKS */

/* PRICING */
.pricing-title {
  margin-bottom: 20px;
}

.pricing p {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 20px;
}

.pricing-text {
  color: var(--color-grey-1);
}

.pricing-span {
  color: black;
  font-weight: 500;
}

.form-container {
  position: relative;
  padding: 20px;
}

.form {
  padding-top: 20px;
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-top: 50px;
}

.first-column {
  height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form input {
  width: 330px;
  border: none;
  border-bottom: 1px solid var(--color-grey-2);
  outline: none;
  transition: border-color 0.3s;
  padding-bottom: 5px;
  color: var(--color-grey-2);
}

.form textarea {
  height: 159px;
  width: 330px;
  margin-top: 45px;
  border-bottom: 1px solid var(--color-grey-2);
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

input::placeholder, textarea::placeholder {
  color: var(--color-grey-2);
}

input:focus, textarea:focus {
  border-bottom-color: #000;
}

.submit-button {
  margin-top: 20px;
  background-color: var(--color-blue-3);
  margin-left: auto;
  color: white;
}

#form-submit-message {
  font-weight: 600;
}

.overlay {
  position: absolute; /* Change this line to make the overlay position absolute */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: none;
  justify-content: center;
  align-items: center;
}

.overlay-content {
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}

@media only screen and (max-width: 860px) {
  .form input, .form textarea {
    width: calc(210px + 7vw);
  }
}

@media only screen and (max-width: 700px) {
  .form {
    flex-direction: column;
  }
  .pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
  }
  .form input, .form textarea {
    width: calc(220px + 11vw);
  }
}

@media screen and (max-width: 470px) {
  .first-column {
    height: 210px;
  }
  .form {
    gap: 40px;
  }
}
/* END PRICING */

/* FAQS */
.faqs {
  background-color: var(--color-grey-1);
  color: white;
}

.faqs h2 {
  font-size: clamp(40px, 3.2vw, 46px);
  color: white;
}

.faq {
  margin-top: 25px;
}

.question {
  margin-bottom: 10px;
  font-weight: 500;
  display: flex;
  width: fit-content;
  cursor: pointer;
}

.answer {
  display: none;
  padding-left: 24px;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.9);
}

.answer li {
  margin: 10px 0;
}

.underline {
  text-decoration: underline;
}

.active .answer {
  display: block;
}

.faqs-button {
  background-color: var(--color-blue-2);
  margin: auto;
  margin-top: 100px;
}

.expand-more {
  width: 19px;
  height: 19px;
  margin-right: 5px;
}
/* END FAQS */

/* ABOUT */
.about {
  display: flex;
  flex-direction: column;
}

.about-container {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.about-container img {
  background-color: white;
  width: clamp(260px, 30vw, 300px);
  object-fit: contain;
}

.about-text {
  max-width: 500px;
  font-size: 18px;
  color: var(--color-grey-1);
}

.about-text p {
  margin-top: 30px;
  font-weight: 300;
}

@media only screen and (max-width: 700px) {
  .about-container {
    flex-direction: column;
    align-items: center;
  }
  .about {
    padding-bottom: 60px;
    padding-top: 60px;
  }
  .about-text {
    max-width: fit-content;
  }
}
/* END ABOUT */

/* FOOTER */
footer {
  background-color: var(--color-blue-2);
  padding-top: 40px;
  padding-bottom: 10px;
  color: white;
}

.footer-container {
  max-width: 1360px;
  margin: auto;
  font-weight: 400;
}

.footer-api {
  margin-top: 15px;
}

.footer-container img {
  width: 100px;
  align-self: flex-end;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

.developer {
  padding-top: 10px;
  text-align: end;
  max-width: 1360px;
  margin: auto;
  font-size: 13px;
  font-weight: 100;
}

.correu {
  font-weight: 300;
}

.footer-button {
  margin-top: 25px;
  background-color: white;
  color: var(--color-blue-2);
}

@media only screen and (max-width: 500px) {
  .developer {
    margin-top: 10px;
    text-align: center;
  }
  .footer-text p br {
    display: none;
  }
  .footer-api {
    margin-top: 7px;
  }
}
/* END FOOTER */