/* Shahdad AI mobile typography — self-hosted Vazirmatn + Estedad, OFL-1.1. */
@font-face {
  font-family: "Shahdad Vazirmatn";
  src: url("./assets/fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

@font-face {
  font-family: "Shahdad Vazirmatn";
  src: url("./assets/fonts/vazirmatn-latin-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Shahdad Estedad";
  src: url("./assets/fonts/estedad-arabic-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

@font-face {
  font-family: "Shahdad Estedad";
  src: url("./assets/fonts/estedad-latin-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --mobile-font-body: "Shahdad Vazirmatn", Tahoma, Arial, sans-serif;
  --mobile-font-display: "Shahdad Estedad", "Shahdad Vazirmatn", Tahoma, Arial, sans-serif;
  --mobile-type-label: 13px;
  --mobile-type-body-sm: 14px;
  --mobile-type-body: 16px;
}

html,
body {
  font-family: var(--mobile-font-body);
  font-size: var(--mobile-type-body);
  font-weight: 400;
  line-height: 1.7;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.phone {
  font-family: var(--mobile-font-body);
  font-size: var(--mobile-type-body);
  font-synthesis: none;
}

.phone :where(button, input, select, textarea) {
  font-family: var(--mobile-font-body);
  font-synthesis: none;
}

.phone :where(button, [role="button"]) {
  font-size: var(--mobile-type-body-sm) !important;
  font-weight: 600;
  line-height: 1.6;
}

.phone #main :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--mobile-font-display);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.phone #main :where(h1) { font-size: clamp(1.45rem, 6.2vw, 1.75rem); }
.phone #main :where(h2) { font-size: clamp(1.25rem, 5.5vw, 1.5rem); }
.phone #main :where(h3) { font-size: clamp(1.0625rem, 4.7vw, 1.25rem); }
.phone #main :where(h4, h5, h6) { font-size: 1rem; }

.phone #main :where(strong, b) {
  font-weight: 600;
}

.phone #main :where(p, li, dd, dt) {
  font-size: var(--mobile-type-body-sm) !important;
  font-weight: 400;
  line-height: 1.75;
}

.phone #main :where(small) {
  font-size: var(--mobile-type-label) !important;
  font-weight: 400;
  line-height: 1.65;
}

.phone #main :where(label, button, [role="button"], .nav-item) {
  font-size: var(--mobile-type-body-sm) !important;
  font-weight: 600;
  line-height: 1.6;
}

.phone #main :where(input, select, textarea) {
  min-height: 44px;
  font-size: var(--mobile-type-body) !important;
  font-weight: 400;
  line-height: 1.6;
}

.phone #main :where(
  .home-hero-eyebrow,
  .home-section-head small,
  .module-carousel-head small,
  .module-showcase-more,
  .planet-label,
  .activity-planner-copy small,
  .home-finance-copy small,
  .home-planner-copy small
) {
  font-size: var(--mobile-type-label);
  font-weight: 600;
  line-height: 1.6;
}

.phone #main :where(time, data, output, .metric-value, .amount, .balance) {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 370px) {
  .phone #main :where(h1) { font-size: 1.4rem; }
  .phone #main :where(h2) { font-size: 1.25rem; }
}
