/* Script-aware typography. Fonts are served locally and fetched only when used. */
:root {
  --script-font: Arial;
  --font: Manrope, var(--script-font), Arial, sans-serif;
  --mono: "Courier New", var(--script-font), monospace;
}
html:lang(ar),
html:lang(ur) {
  --script-font: "Noto Sans Arabic";
}
html:lang(hi) {
  --script-font: "Noto Sans Devanagari";
}
html:lang(bn) {
  --script-font: "Noto Sans Bengali";
}
html:lang(th) {
  --script-font: "Noto Sans Thai";
}
html:lang(am) {
  --script-font: "Noto Sans Ethiopic";
}
html:lang(ja) {
  --script-font: "Noto Sans JP";
}
html:lang(ko) {
  --script-font: "Noto Sans KR";
}
html:lang(zh) {
  --script-font: "Noto Sans SC";
}
.language-option span:lang(ar),
.language-option span:lang(ur) {
  font-family: "Noto Sans Arabic", sans-serif;
}
.language-option span:lang(hi) {
  font-family: "Noto Sans Devanagari", sans-serif;
}
.language-option span:lang(bn) {
  font-family: "Noto Sans Bengali", sans-serif;
}
.language-option span:lang(th) {
  font-family: "Noto Sans Thai", sans-serif;
}
.language-option span:lang(am) {
  font-family: "Noto Sans Ethiopic", sans-serif;
}
.language-option span:lang(ja) {
  font-family: "Noto Sans JP", sans-serif;
}
.language-option span:lang(ko) {
  font-family: "Noto Sans KR", sans-serif;
}
.language-option span:lang(zh) {
  font-family: "Noto Sans SC", sans-serif;
}
.language-option {
  min-height: 44px;
}
.language-code {
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--font);
}
.hero h1 .hero-script,
.download-script,
.hero-annotation > span {
  font-family: Caveat, var(--script-font), cursive;
}
.hero-impact {
  white-space: normal;
  overflow-wrap: anywhere;
}
.hero-word,
.hero-script {
  overflow-wrap: anywhere;
}
.brand,
.brand-wordmark,
.footer-wordmark,
.ticker-window,
.chart-stage,
.market-name,
.chart-toolbar {
  direction: ltr;
  unicode-bidi: isolate;
}
.hero-copy,
.section-heading,
.plan-card,
.account-main,
.auth-panel,
.auth-story {
  min-width: 0;
}
.plan-card .button,
.platform-download,
.portal-button,
.download-cta-label {
  text-align: center;
  overflow-wrap: anywhere;
}
.plan-card h3,
.plan-price,
.portal-key code,
code,
input[type="email"],
input[type="url"],
input[autocomplete="one-time-code"] {
  direction: ltr;
  unicode-bidi: isolate;
}
.header-login,
.header-download {
  text-align: center;
}
.site-footer nav {
  flex-wrap: wrap;
}
.auth-footer {
  gap: 20px;
  flex-wrap: wrap;
}
.field input,
.field textarea,
.field select,
.portal-button,
.google-button {
  font-family: var(--font);
}
html:is(
    :lang(ar),
    :lang(ur),
    :lang(hi),
    :lang(bn),
    :lang(th),
    :lang(am),
    :lang(ja),
    :lang(ko),
    :lang(zh)
  )
  :is(
    h1,
    h2,
    h3,
    .eyebrow,
    .portal-eyebrow,
    .side-label,
    .hero-impact,
    .hero-word,
    .hero-script,
    .download-cta-label
  ) {
  letter-spacing: normal;
}
html:is(:lang(ar), :lang(ur), :lang(hi), :lang(bn), :lang(th), :lang(am))
  :is(h1, h2, .hero-impact, .hero-word) {
  line-height: 1.3;
}
html:is(:lang(ar), :lang(ur), :lang(hi), :lang(bn), :lang(th), :lang(am))
  .hero
  h1
  .hero-script {
  line-height: 1.5;
  font-size: clamp(32px, 4.1vw, 62px);
}
html:is(:lang(ja), :lang(ko), :lang(zh)) .hero h1 .hero-script {
  font-size: clamp(30px, 4vw, 60px);
  line-height: 1.4;
}
html:is(:lang(ja), :lang(ko), :lang(zh)) .hero-impact {
  font-size: clamp(38px, 5.4vw, 82px);
  line-height: 1.25;
}
html:lang(ko) :is(h1, h2, h3, p) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html:lang(th) :is(h1, h2) {
  overflow-wrap: anywhere;
}
[dir="rtl"] .hero-copy {
  margin-inline-start: 0;
  margin-inline-end: auto;
}
[dir="rtl"] .hero-visual {
  left: auto;
  right: 65%;
  transform-origin: right center;
}
[dir="rtl"] .hero-annotation {
  left: auto;
  right: 66%;
}
[dir="rtl"] .hero h1 .hero-script {
  transform-origin: right center;
  transform: rotate(3deg);
}
[dir="rtl"] .account-sidebar {
  border-right: 0;
  border-left: 1px solid #ffffff09;
}
[dir="rtl"] .password-field input {
  padding-right: 14px;
  padding-left: 50px;
}
[dir="rtl"] .password-field button {
  right: auto;
  left: 7px;
}
[dir="rtl"] .auth-switch a {
  margin-left: 0;
  margin-right: 5px;
}
[dir="rtl"] .download-cta {
  padding: 10px 24px 10px 10px;
}
[dir="rtl"] .terminal-console {
  text-align: right;
}
[dir="rtl"] th,
[dir="rtl"] td {
  text-align: start;
}

@media (max-width: 800px) {
  [dir="rtl"] .hero-visual {
    right: auto;
    left: auto;
    margin-inline: 30px 0;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1 .hero-word {
    font-size: clamp(45px, 10vw, 76px);
  }
  .hero h1 .hero-impact {
    font-size: clamp(32px, 7.4vw, 56px);
  }
  .hero h1 .hero-script {
    font-size: clamp(32px, 7.5vw, 54px);
  }
  .header-actions {
    gap: 14px;
  }
}
@media (max-width: 800px) {
  [dir="rtl"] .account-sidebar {
    left: auto;
    right: 0;
    transform: translateX(100%);
  }
  [dir="rtl"] .account-page.menu-open .account-sidebar {
    transform: translateX(0);
  }
}
@media (max-width: 420px) {
  .site-header {
    padding-inline: 18px;
  }
  .site-header .brand-wordmark {
    font-size: 23px;
  }
  .site-header .brand > img:first-child {
    height: 19px;
    width: 15.5px;
  }
  .header-download {
    padding-inline: 10px;
    max-width: 135px;
  }
  .header-actions {
    gap: 10px;
  }
  .header-login {
    max-width: 90px;
  }
  .download-cta {
    max-width: 100%;
    gap: 16px;
  }
}
