@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/public/fonts/inter/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/public/fonts/inter/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/public/fonts/inter/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/public/fonts/inter/inter-700.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/public/fonts/inter/inter-800.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/public/fonts/inter/inter-900.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
}

[x-cloak] {
  display: none !important;
}

.brand-mark {
  display: inline-flex;
  width: 184px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-brand {
  width: 152px;
  align-items: flex-start;
}

.course-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 14px 22px rgba(15, 23, 42, 0.12);
}

.course-card > div:first-child {
  aspect-ratio: 1 / 0.995;
}

.badge {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  min-width: 152px;
  height: 21px;
  padding: 4px 14px 0;
  text-align: center;
  color: #4c5c13;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.badge.green {
  background: #a7d626;
}

.badge.gold {
  background: #f1bf6b;
  color: #5a3a12;
}

.star {
  display: inline-block;
  width: 16px;
  color: #ffb800;
  font-size: 21px;
  line-height: 1;
}

.star.is-empty {
  color: #e6e8ea;
}

.star-rating {
  display: inline-block;
  color: #e6e8ea;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(90deg, #ffb800 var(--rating), #e6e8ea var(--rating));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.buy-button {
  display: inline-flex;
  min-height: 45px;
  width: min(225px, 100%);
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  background: #25aa45;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.buy-button svg {
  width: 17px;
  height: 17px;
}

.buy-button:hover,
.buy-button.is-hovered {
  background: #1f963c;
  box-shadow: 0 8px 14px rgba(37, 170, 69, 0.24);
  transform: translateY(-1px);
}

.payment-chip {
  display: inline-flex;
  min-width: 42px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
  color: #263241;
  font-size: 10px;
  font-weight: 900;
}

.payment-chip:nth-child(1) {
  background: linear-gradient(90deg, #eb001b 0 50%, #f79e1b 50% 100%);
  color: #ffffff;
}

.payment-chip:nth-child(2) {
  color: #164fa3;
}

.payment-chip:nth-child(3) {
  background: #1677bd;
  color: #ffffff;
}

.payment-chip:nth-child(4) {
  color: #111827;
}

.payment-chip:nth-child(5) {
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
}

.payment-chip:nth-child(6) {
  color: #0f766e;
}

.payment-chip:nth-child(7) {
  color: #1ba39c;
}

@media (max-width: 640px) {
  .brand-mark {
    width: 156px;
  }
}
