:root {
  --font-latin: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-latin);
}

html[lang="ar"] body,
html[dir="rtl"] body,
.rtl,
.rtl button,
.rtl input,
.rtl select,
.rtl textarea {
  font-family: var(--font-arabic);
}

h1,
h2,
h3,
h4,
.brand,
.inner-brand,
.pay-brand,
.account-brand {
  font-family: inherit;
  font-weight: 750;
  text-wrap: balance;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
.rtl h1,
.rtl h2,
.rtl h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

p,
li {
  text-wrap: pretty;
}

.field,
.fields label,
.assistant-form label,
.lead-box label {
  font-size: 0.875rem;
}

.top nav a,
.inner-links a,
.links a,
.pay-nav a {
  font-size: 0.9rem;
}

.site-logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: min(250px, 48vw);
  object-fit: contain;
}

.fine,
.why span,
.fit small,
.hub-card b,
.score-label,
.payment-mark,
.card-brands {
  font-size: 0.75rem;
}

@media (max-width: 600px) {
  body {
    font-size: 1rem;
    line-height: 1.7;
  }

  button,
  input,
  select,
  textarea {
    font-size: 1rem;
  }

  .site-logo {
    height: 40px;
    max-width: 46vw;
  }
}
