@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0 auto;
  font-family: "Roboto", sans-serif;
  background-color: #faf8f6;
}

header,
.top,
.testimonial,
.footer-wrap,
.best-features-section,
.faq-section {
  max-width: 1180px;
  padding: 0 40px 0 40px;
}

header {
  margin: 50px auto 69px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-header {
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 32px;
  color: #172339;
  border: 1px solid #172339;
  border-radius: 36px;
  padding: 12px 24px;
}

.btn-header:hover {
  color: #faf8f6;
  background-color: #172339;
}

main {
  max-width: 1440px;
  margin: 0 auto;
}

.best-features-section,
.faq-section {
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.best-features-section {
  margin-bottom: 40px;
}

.faq-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.best-features-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.best-feature-img-container {
  position: relative;
  width: fit-content;
}

.best-feature-label {
  position: absolute;
  top: -8px;
  right: -24px;
}

.best-feature-label-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 90px;
  position: absolute;
  bottom: 20px;
  left: 15px;
  transform: rotate(-12deg);
  color: #172339;
  font-weight: bold;
}

.best-feature-label-text p {
  font-size: 24px;
}

.best-feature-label-text span {
  font-size: 14px;
  text-align: center;
}

.welcome-back-text {
  width: 144px;
  height: 80px;
  padding: 12px;
  position: absolute;
  left: 50%;
  top: 64%; 
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}


.faq-title,
.best-features-title {
  font-size: 40px;
  text-align: center;
  font-weight: 600;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 450px;
  align-self: start;
}

.best-feature {
  display: flex;
  gap: 24px;
  max-width: 542px;
  align-items: center;
  padding: 40px;
  background-color: #172339;
  border-radius: 16px;
  color: #FAF8F6;
}

.best-feature-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.best-feature-img {
  width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.top {
  position: relative;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 33% 30% 20%;
  gap: 9%;
}

.top-txt {
  padding-top: 156px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
}

h1 {
  top: 82px;
  max-width: 600px;
  position: absolute;
  font-size: 3.5rem;
  line-height: 78px;
  font-weight: 400;
  letter-spacing: 1px;
}

h2 {
  max-width: 600px;
  position: relative;
  font-size: 3.5rem;
  line-height: 78px;
  font-weight: 400;
  letter-spacing: 1px;
}

.solution-txt {
  position: relative;
  font-weight: 700;
  padding-top: 50px;
}

.solution-txt::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 32px;
  top: 0;
  background-image: url(../img/pattern-curved-line-1.svg);
  background-position: top right;
  background-repeat: no-repeat;
  background-size: 55% 100%;
}

.top-txt p {
  color: #49566d;
  line-height: 32px;
  margin-bottom: 52px;
  letter-spacing: 0.1px;
}

.top-txt a {
  text-decoration: none;
  font-weight: 700;
  line-height: 32px;
  border: 1px solid #172339;
  border-radius: 36px;
  background-color: #e84b4bee;
  color: #172339;
  width: fit-content;
  padding: 15px 32px;
  letter-spacing: -0.18px;
}

.top-txt a:hover {
  color: #faf8f6;
  background-color: #172339;
}

.top-img img {
  height: 600px;
}

.qr-code {
  position: relative;
  width: fit-content;
}

.scan-for-demo {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 80%;
  color: #FFF;
  font-size: 24px;
  font-weight: 600;
}


.top-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 63px;
}

.data-text {
  display: block;
  font-size: 48px;
  line-height: 56px;
  color: #172339;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.data-subtext {
  display: block;
  font-size: 16px;
  line-height: 26px;
  text-transform: uppercase;
  color: #49566d;
  letter-spacing: 2.5px;
}

.testimonial {
  margin: 0 auto;
}

.testimonial-wrap {
  display: grid;
  grid-template-columns: 53% 40%;
  gap: 7%;
  background-color: #172339;
  border-radius: 15px;
  min-height: 544px;
  height: fit-content;
  padding: 0 10%;
}

.testimonial-img {
  position: relative;
}

.jeremy {
  display: block;
  position: absolute;
  top: -55px;
  left: 0;
}

.jeremy img {
  max-height: 600px;
}

.line {
  text-align: right;
  position: absolute;
  right: 0;
  top: 160px;
}

.testimonial-text {
  padding: 88px 0;
}

.testimonial-title {
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.5px;
  color: #faf8f6;
}

.quote {
  font-size: 20px;
  line-height: 35px;
  letter-spacing: 0.1px;
  color: #f3ede7;
  margin: 40px 0;
}

.quote-name {
  text-transform: uppercase;
  color: #faf8f6;
  font-size: 18px;
  line-height: 32px;
  letter-spacing: -0.18px;
  font-weight: 700;
  display: block;
}

.quote-function {
  font-size: 16px;
  line-height: 26px;
  color: #f3ede7;
  letter-spacing: 2.5px;
}

footer {
  position: absolute;
  background-color: #f3ede7;
  padding: 360px 0 72px 0;
  z-index: -1;
  width: 100%;
  margin-top: -265px;
}

.footer-wrap {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-txt {
  font-size: 15px;
  line-height: 32px;
  color: black;
  letter-spacing: 0.08px;
}

.social-media {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
}

.social-media a:hover {
  opacity: 0.5;
}

@media screen and (max-width: 1200px) {
  .testimonial-wrap {
    grid-template-columns: 52% 45%;
    gap: 3%;
    padding: 0 2%;
  }
}

@media screen and (max-width: 1000px) {
  .top {
    grid-template-columns: 29% 27% 20%;
    gap: 16%;
  }

  .top-txt a {
    padding: 15px 22px;
  }

  .faq-title {
    font-size: 40px;
  }
}

@media screen and (max-width: 900px) {
  html {
    font-size: 16px;
  }

  header {
    margin: 40px auto 100px auto;
  }

  .top {
    grid-template-columns: repeat(2, auto);
    justify-content: space-between;
    align-content: space-around;
    margin-bottom: 160px;
  }

  .top-txt {
    justify-content: flex-end;
    padding-bottom: 40px;
  }

  .scan-for-demo {
    bottom: 46px;
    font-size: 18px;
  }

  .best-features-section {
    margin-bottom: 152px;
  }

  h1 {
    top: 32px;
    max-width: 540px;
    line-height: 64px;
    letter-spacing: -0.78px;
  }

  .top-txt p {
    line-height: 28px;
    margin-bottom: 40px;
    letter-spacing: 0.09px;
  }

  .top-img img {
    height: 482px;
  }

  .top-stats {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;
  }

  .data-text,
  .data-subtext {
    text-align: center;
  }

  .testimonial-wrap {
    display: block;
    padding: 0 58px;
  }

  .testimonial-img {
    transform: translateY(-181px);
  }

  .jeremy {
    position: relative;
    display: block;
    top: 0;
    height: fit-content;
    margin-bottom: 40px;
  }

  .jeremy img {
    display: block;
    margin: 0 auto;
    max-height: 402px;
  }

  .line {
    display: block;
    position: relative;
    margin: 0 auto;
    top: 0;
  }

  .testimonial-text {
    margin-top: -181px;
    text-align: center;
    padding: 37px 0 64px 0;
  }

  footer {
    padding: 608px 0 72px 0;
    margin-top: -536px;
  }
}

@media screen and (max-width: 680px) {
  html {
    font-size: 14px;
  }

  header,
  .top,
  .testimonial,
  .footer-wrap,
  .best-features-section,
  .faq-section {
    padding: 0 16px 0 16px;
  }

  header {
    margin: 24px auto 56px auto;
  }

  .btn-header {
    font-size: 14px;
    line-height: 24px;
    color: #172339;
    padding: 12px 16px;
  }

  .top {
    display: block;
    margin-bottom: 60px;
  }

  .top-txt {
    padding: 0;
    display: block;
    margin: 0;
  }

  .faq-title {
    font-size: 32px;
  }

  .qr-code {
    margin: 0 auto;
  }

  h1 {
    font-size: 38px;
    line-height: 44px;
    padding-top: 0;
    position: relative;
    letter-spacing: -0.53px;
  }

  .solution-txt {
    padding-top: 36px;
  }

  .solution-txt::before {
    height: 20px;
  }

  .top-txt p {
    line-height: 28px;
    font-size: 16px;
    margin: 0;
    letter-spacing: 0.09px;
    margin: 64px 0 32px 0;
  }

  .top-txt a {
    display: block;
    font-size: 18px;
    padding: 15px 32px;
  }

  .scan-for-demo {
    bottom: 28px;
    font-size: 16px;
  }

  .top-img {
    display: block;
    margin: 56px 0;
  }

  .top-img img {
    width: 100%;
    height: auto;
  }
}

.custom-logo {
  color: black;
  text-align: left;
  padding: 5px;
  display: inline-block;
}

.custom-logo .main-text {
  font-size: 1.5em;
  font-weight: bold;
}

.custom-logo .sub-text {
  font-size: 0.6em;
  text-transform: uppercase;
  display: block;
  width: 100%;
}

.footer-links a {
  margin-right: 20px;
  text-decoration: none;
}

.footer-links a:last-child {
  margin-right: 0;
}

@media screen and (max-width: 580px) {
  .top-stats {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }

  .best-feature {
    padding: 20px;
    gap: 12px;
  }

  .testimonial {
    padding: 0;
  }

  .testimonial-wrap {
    padding: 0 16px;
  }

  .jeremy img {
    max-height: 395px;
  }

  footer {
    padding: 570px 0 52px 0;
  }

  .footer-wrap {
    display: block;
    margin: 0 auto;
  }

  .footer-txt {
    display: block;
    text-align: center;
    padding: 10px 0;
  }

  .footer-links a {
    margin-right: 0px;
    text-decoration: none;
  }
  
  .footer-links a:last-child {
    margin-right: 0;
  }

}

