/* FONTS & NORMALIZE */
@font-face {
  font-family: "Inter";
  src: url("/themes/fintok/fonts/index_v1/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-optical-sizing: auto;
  font-display: swap;
  font-style: normal;
}

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

html,
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-weight: 450;
  background-color: #fff;
  color: #020617;
  -webkit-text-size-adjust: none;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* REUSABLE */
.container {
  width: 100%;
  padding: 0 16px;
  margin-left: auto;
  margin-right: auto;
}

.primary_button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 56px;
  width: 100%;
  background-image: linear-gradient(
    to bottom,
    #2881e8,
    #257be3,
    #2375de,
    #2170d9,
    #1f6ad4
  );
  box-shadow: inset 0px 4px 9px rgba(255, 255, 255, 0.25),
    inset 0px 1px 1px rgba(255, 255, 255, 0.2), 0px 4px 4px rgba(8, 8, 8, 0.08),
    0px 1px 2px rgba(8, 8, 8, 0.2);
  color: #ffffff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 550;
  transition: background-color 0.3s ease;
}

.link {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: #60a5fa;
}

.link-dark {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: #94a3b8;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* HEADER */
header {
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  padding: 16px 0px;
  border-bottom: 1px solid #eceef2;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  height: 28px;
}

.header__buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header_button__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  background-image: linear-gradient(
    to bottom,
    #2881e8,
    #257be3,
    #2375de,
    #2170d9,
    #1f6ad4
  );
  box-shadow: inset 0px 4px 9px rgba(255, 255, 255, 0.25),
    inset 0px 1px 1px rgba(255, 255, 255, 0.2), 0px 4px 4px rgba(8, 8, 8, 0.08),
    0px 1px 2px rgba(8, 8, 8, 0.2);
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  transition: background-color 0.3s ease;
}

.header_button__profile {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: solid 1px #2563eb;
  border-radius: 8px;
}

/* FIRST SCREEN */
.firstscreen {
  background-color: #ffffff;
  padding-top: 32px;
  padding-bottom: 48px;
  border-radius: 0px 0px 12px 12px;
  overflow: hidden;
}

.firstscreen__heading {
  font-size: 26px;
  line-height: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 32px;
}

.heading__accent {
  color: #1f6ad4;
}

.firstscreen__subheading {
  display: none;
}

.firstscreen__list {
  display: none;
}

.firstscreen__illustration {
  display: none;
}

/* STEPS */
.steps {
  padding: 32px 0px 40px 0px;
  background-color: #eff8ff;
}

.section__h2 {
  text-align: center;
  font-size: 24px;
  line-height: 140%;
  font-weight: 600;
}

.steps__wrapper {
  padding: 24px 0px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps__card {
  padding: 16px;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #eceef2;
  text-align: center;
}

.steps__card_icon-wr {
  width: 48px;
  height: 48px;
  padding: 8px;
  margin: 0 auto;
  margin-bottom: 20px;
  border-radius: 9999px;
  box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05),
    0px 1px 4px rgba(12, 12, 13, 0.1);
}

.steps__card_heading {
  font-weight: 600;
  margin-bottom: 4px;
}

.steps__card_text {
  font-size: 14px;
  color: #64758b;
  font-weight: 450;
}

/* CONS */
.cons {
  padding: 40px 0px 32px 0px;
}
.cons__wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
}

.cons__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background-color: #f6f7f9;
  border: 1px solid #eceef2;
  text-align: center;
}

.cons__card_image {
  height: 98px;
  margin-bottom: 16px;
}

.cons__card_heading {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: #1f6ad4;
  margin-bottom: 8px;
}

.cons__card_text {
  font-weight: 450;
}

/* REVIEWS */
.reviews {
  margin-top: 12px;
  padding: 24px 0px;
  background-color: #eff8ff;
}

.reviews__wrapper {
  padding: 0px 16px;
}

.review__card-scroll {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 20px;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.review__card-scroll::-webkit-scrollbar {
  display: none;
}

.review__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 80vw;
  scroll-snap-align: start;
  background: #ffffff;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.03), 0px 2px 10px rgba(0, 0, 0, 0.06),
    0px 0px 1px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 16px;
}

.review_card__rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review_card__text {
  padding-top: 16px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 450;
}

.review_card__person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.review_card_person-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 18px;
  line-height: 18px;
  font-weight: 700;
  color: #ffffff;
  border-radius: 9999px;
}

.review_card_person__name {
  font-size: 14px;
  font-weight: 650;
}

.review_card_person__sum {
  font-size: 12px;
  font-weight: 450;
  color: #64748b;
}

/* FAQ */
.faq {
  padding: 36px 0px 36px 0px;
}

.faq__wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.03), 0px 2px 10px rgba(0, 0, 0, 0.06),
    0px 0px 1px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq__toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 8px 8px 8px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.faq__question {
  font-size: 16px;
  font-weight: 600;
  color: #020617;
}

.faq__icon-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #ffffff;
}

.faq__icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.faq__item--open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  position: relative;
  display: none;
  margin: 0px 8px 8px 8px;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 450;
  color: #334155;
  background-color: #ffffff;
}

.faq__item--open .faq__answer {
  display: block;
}

.faq__item--open {
  border-radius: 16px;
}

/* FOOTER */
footer {
  padding: 24px 0px 36px 0px;
  background-color: #eff8ff;
  border-top: 1px solid #e2e8f0;
}

.footer__logo {
  height: 28px;
  margin: 0 auto;
}

.footer__links {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.footer__copyright {
  text-align: center;
  padding: 20px 0px 24px 0px;
  font-size: 14px;
}

.footer__legaltext {
  font-size: 10px;
  color: #475569;
  text-align: center;
}

/* Tablet S */
@media (min-width: 576px) {
  .primary_button {
    width: fit-content;
    padding: 0px 32px 0px 40px;
    margin: 0 auto;
  }
  .calculator {
    max-width: 360px;
  }
  .review__item {
    max-width: 328px;
    margin: 0 auto;
  }
  .steps__wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
  .steps__link-item {
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
  }
  .steps_link__bottom {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .review__card {
    flex: 0 0 40vw;
  }
  .section__h3 {
    margin: 8px auto;
    max-width: 65%;
  }
  .hero__text {
    margin: 0 auto;
    max-width: 55%;
  }
  .footer__copyright {
    font-size: 14px;
  }
  .footer__legaltext {
    font-size: 10px;
  }
}

/* Tablet M */
@media (min-width: 640px) {
  .review__card {
    flex: 0 0 45vw;
  }
  .section__h3 {
    margin: 8px auto;
    max-width: 80%;
  }
  .hero__text {
    margin: 0 auto;
    max-width: 80%;
  }
}

/* Tablet L */
@media (min-width: 768px) {
  .cons__wrapper {
    flex-direction: row;
  }
  .review__card-scroll {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .review__card {
    flex: 0 0 45vw;
  }
  .section__h3 {
    margin: 8px auto;
    max-width: 70%;
  }
  .faq__wrapper {
    justify-content: center;
    align-items: center;
  }
  .faq__item {
    width: 100%;
    max-width: 65%;
  }
}

/* Laptop */
@media (min-width: 1024px) {
  .firstscreen {
    padding: 64px 0px;
  }
  .firstscreen__subheading {
    display: block;
    max-width: 80%;
    font-size: 16px;
    line-height: 28px;
  }
  .firstscreen__list {
    display: block;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin-top: 16px;
    list-style: none;
  }
  .firstscreen__wrapper {
    gap: 80px;
  }
  .firstscreen__content {
    height: fit-content;
    background-color: #F5F8FC;
    padding: 32px 32px 12px 32px;
    border-radius: 16px;
  }
  .firstscreen__list_item {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .firstscreen__illustration {
    display: block;
    height: 208px;
  }
  .calculator {
    flex-shrink: 0;
    min-width: 360px;
  }
  .firstscreen__heading {
    font-size: 36px;
    line-height: 42px;
    text-align: left;
    margin-bottom: 12px;
  }
  .firstscreen__wrapper {
    display: flex;
    justify-content: space-between;
  }
  .section__button {
    padding-top: 32px;
  }
  .cons__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .review__item {
    max-width: 360px;
  }
  .review_item__top {
    gap: 16px;
  }
  .review__card {
    flex: 0 0 30vw;
  }
  .review__card-mask {
    position: relative;
    overflow: hidden;
  }
  .review__card-mask::before,
  .review__card-mask::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
  }

  .review__card-mask::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
  }

  .review__card-mask::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
  }
  .review__card-scroll {
    position: relative;
    scroll-snap-type: none;
  }
  .hero__wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .section__h3 {
    min-width: 100%;
    text-align: left;
    margin-bottom: 8px;
  }
  .hero__content {
    max-width: 50%;
  }
  .hero__image {
    margin-bottom: 0px;
    max-height: 218px;
  }
  .hero__text {
    min-width: 100%;
    text-align: left;
    margin: 0;
  }
  .is--hero {
    width: fit-content;
    text-align: left;
    margin: 0;
  }
}

/* Desktop */
@media (min-width: 1280px) {
  .firstscreen {
    padding: 0px;
  }
  .firstscreen__wrapper {
    padding: 64px 0px;
  }
  .firstscreen__subheading {
    max-width: 70%;
  }
  .firstscreen__heading {
    margin-bottom: 20px;
  }
  .firstscreen__illustration {
    margin-top: 48px;
    height: 248px;
  }
  .container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .section__h2 {
    font-size: 30px;
  }
  .steps {
    padding: 56px 0px 56px 0px;
  }
  .steps__wrapper {
    padding-top: 56px;
  }
  .steps_link__top {
    height: 88px;
  }
  .steps_link__bottom {
    height: auto;
  }
  .cons {
    padding: 56px 0px 56px 0px;
  }
  .cons__grid {
    padding-top: 56px;
    gap: 16px;
  }
  .review_item_info-text {
    font-size: 14px;
  }
  .review_item_info-secondary {
    font-size: 14px;
  }
  .review_item_bottom-check {
    font-size: 14px;
  }
  .reviews {
    padding: 56px 0px 56px 0px;
  }
  .review__card-scroll {
    margin-top: 32px;
  }
  .hero {
    padding: 56px 0px 56px 0px;
  }
  .section__h3 {
    font-size: 24px;
    margin: 0px 0px 12px 0px;
  }
  .hero__text {
    font-size: 16px;
  }
  .hero__image {
    max-height: 238px;
  }
  .faq__toggle {
    padding: 16px 16px 16px 20px;
  }
  .faq__question {
    font-size: 20px;
  }
  .faq__answer {
    font-size: 16px;
  }
  footer {
    padding: 40px 0px;
  }
  .footer__logo {
    height: 32px;
  }
  .footer__links {
    margin-top: 32px;
  }
  .link-dark {
    font-size: 16px;
  }
  .footer__copyright {
    font-size: 14px;
    padding: 32px 0px;
  }
  .footer__legaltext {
    font-size: 12px;
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  .review__card {
    flex: 0 0 20vw;
  }
}

/* HOVER EFFECTS */
@media (hover: hover) and (pointer: fine) {
  .primary_button:hover {
    background-color: #3b82f6;
  }
  .primary_button img {
    transition: transform 0.3s ease;
  }
  .primary_button:hover img {
    transform: translateX(4px);
  }
  .header_button__cta:hover {
    background-color: #3b82f6;
  }
  .header_button__profile:hover {
    background-color: #f8fafc;
    box-shadow: none;
  }
  .steps__link-item:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
      0 4px 6px -4px rgb(0 0 0 / 0.1);
  }
  .faq__item:hover {
    box-shadow: 0px 4px 4px rgba(12, 12, 13, 0.05),
      0px 16px 32px rgba(12, 12, 13, 0.1);
  }
  .link-dark:hover {
    text-underline-offset: 4px;
    text-decoration-color: #3b82f6;
  }
}
