/* ==========================================================================
   FRACTAL DESIGN SYSTEM: BILINGUAL TYPOGRAPHY & ESTEDAD GEOMETRIC FONT
   Copyright (c) 2026 FRACTAL LABS LLC. All rights reserved.
   ========================================================================== */

:root {
  --font-en-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', "SFMono-Regular", Menlo, Monaco, Consolas, monospace; /* taste-skill-ignore */
  --font-fa-display: 'Estedad', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-fa-sans: 'Estedad', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Single Authoritative Technical Persian Font: Estedad Geo */
[data-fa-font="estedad-geo"],
[data-fa-font="kufic-brutal"],
[data-fa-font="plex-quant"] {
  --font-fa-display: 'Estedad', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-fa-sans: 'Estedad', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Language-Specific Font Routing & Tracking Physics */
html[lang="en"] body {
  font-family: var(--font-en-sans);
}

html[lang="fa"] body {
  font-family: var(--font-fa-sans);
  letter-spacing: 0px !important; /* Prevent cursive glyph detachment in Persian */
}

html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3,
html[lang="fa"] h4,
html[lang="fa"] .brand-wordmark,
html[lang="fa"] .cell-title,
html[lang="fa"] .tier-name,
html[lang="fa"] .nav-cta,
html[lang="fa"] .stepper-label,
html[lang="fa"] .hero-headline,
html[lang="fa"] .section-title,
html[lang="fa"] .workflow-step-title,
html[lang="fa"] .faq-trigger,
html[lang="fa"] button,
html[lang="fa"] .tier-btn,
html[lang="fa"] .replay-btn,
html[lang="fa"] .hero-cta-primary,
html[lang="fa"] .hero-cta-secondary {
  font-family: var(--font-fa-display) !important;
  letter-spacing: 0px !important;
}

.hero-headline {
  text-wrap: balance;
  max-width: 28ch;
}


/* BiDi Isolation for Quantitative Tickers, Latency, & Code Tags */
.ltr-token {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
