/* Swift Express — driver recruitment landing page */
:root {
  --paper: #ffffff;
  --ink: #0b1b3a;
  --ink-soft: #46557a;
  --swift: #1c18fe;
  --swift-deep: #1210b8;
  --sky: #eef3ff;
  --sky-2: #f6f8ff;
  --line: #d9e2f7;
  --parcel: #f4b740;
  --danger: #c22a2a;
  --danger-bg: #fdeeee;
  --ok: #157a4a;

  --font-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: 16px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--swift); text-underline-offset: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.3; margin: 0; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--swift); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--swift); --btn-fg: #fff; --btn-bd: var(--swift);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  border: 2px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { --btn-bg: var(--swift-deep); --btn-bd: var(--swift-deep); }
.btn:active { transform: translateY(1px); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--swift); --btn-bd: var(--line); }
.btn-ghost:hover { --btn-bg: var(--sky); --btn-bd: var(--swift); --btn-fg: var(--swift-deep); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--swift-deep); --btn-bd: #fff; }
.btn-light:hover { --btn-bg: var(--sky); --btn-bd: var(--sky); --btn-fg: var(--swift-deep); }
.btn-sm { min-height: 40px; padding: 6px 18px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.0625rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand { flex: none; }
/* One official logo per location (Arabic logo for ar, English logo otherwise); never mirrored. */
.brand-logo { display: block; height: 40px; width: auto; transform: none; }
@media (max-width: 400px) { .site-header .brand-logo { height: 34px; } .header-inner { gap: 12px; } }

.lang { position: relative; flex: none; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  font: 500 .95rem/1.2 var(--font-body); cursor: pointer;
}
.lang-toggle:hover { border-color: var(--swift); color: var(--swift-deep); }
.lang-toggle[aria-expanded="true"] { border-color: var(--swift); background: var(--sky); }
.lang-toggle .globe { width: 20px; height: 20px; flex: none; }
.lang-toggle .chev { width: 14px; height: 14px; flex: none; }
.lang-current { font-family: "IBM Plex Sans Arabic", "Noto Sans Bengali", "Noto Sans Devanagari", system-ui, sans-serif; white-space: nowrap; }
@media (max-width: 559px) {
  .lang-toggle { padding: 6px 10px; }
  .lang-toggle .lang-current, .lang-toggle .chev { display: none; }
}
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 70;
  min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(18, 16, 184, .35);
}
.lang-menu button, .footer-langs button {
  font-family: "IBM Plex Sans Arabic", "Noto Sans Bengali", "Noto Sans Devanagari", system-ui, sans-serif;
}
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: none;
  color: var(--ink); font-size: 1rem; text-align: start; cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--sky); color: var(--swift-deep); }
.lang-menu button[aria-current="true"] { font-weight: 600; color: var(--swift-deep); }
.lang-menu button[aria-current="true"]::after {
  content: ""; width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10.5 4 4 8-9' fill='none' stroke='%231C18FE' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.main-nav { display: none; gap: 4px; margin-inline-start: auto; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .98rem; }
.main-nav a:hover { background: var(--sky); color: var(--swift-deep); }
.header-inner > .lang { margin-inline-start: auto; }
.header-inner > .btn { flex: none; }
@media (min-width: 900px) {
  .brand-logo { height: 46px; }
  .main-nav { display: flex; }
  .header-inner > .lang { margin-inline-start: 0; }
  .main-nav { margin-inline-start: auto; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 28px 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--swift-deep); font-weight: 600; font-size: .98rem; margin-bottom: 14px;
}
.hero-kicker::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--parcel); box-shadow: 0 0 0 5px rgba(244, 183, 64, .22);
}
.hero h1 {
  font-size: clamp(2.35rem, 8.4vw, 4.4rem);
  font-weight: 800; line-height: 1.22; color: var(--ink);
  max-width: 12ch;
}
.hero-lead { margin-top: 18px; font-size: clamp(1.06rem, 2.6vw, 1.22rem); color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { flex: 1 1 160px; }
.hero-art { margin: 0; }
.scene { width: 100%; height: auto; overflow: visible; }

@media (min-width: 900px) {
  .hero { padding-block: 48px 88px; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 40px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-art { margin-inline-start: -24px; }
}

/* Hero animation — quiet, one scene */
.route-flow { animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
.wheel { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }
.rider-body { animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px); } }
.speed path { animation: speed 1.2s ease-in-out infinite; }
.speed path:nth-child(2) { animation-delay: .25s; }
.speed path:nth-child(3) { animation-delay: .5s; }
@keyframes speed { 0%, 100% { opacity: .2; transform: translateX(0); } 50% { opacity: 1; transform: translateX(8px); } }
.parcel { animation: float 5s ease-in-out infinite; }
.parcel.p2 { animation-delay: -2.5s; }
@keyframes float { 50% { translate: 0 -6px; } }

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section-title { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 700; }
.sub-title { font-size: 1.15rem; font-weight: 700; margin-top: 28px; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); line-height: 1.85; max-width: 52ch; }

/* About */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; gap: 20px; }
.traits { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 4px; }
.traits li { position: relative; padding-block: 10px; padding-inline: 28px 0; color: var(--ink-soft); }
.traits li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 22px;
  width: 10px; height: 10px; border-radius: 3px; background: var(--swift); transform: rotate(45deg);
}
.traits strong { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .section { padding-block: 96px; }
  .about-grid { grid-template-columns: 1fr 2fr; gap: 48px; }
}

/* Steps as a route with stops */
.steps { background: var(--sky-2); }
.route-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; position: relative; }
.route-steps li { position: relative; padding-block: 0 32px; padding-inline: 64px 0; }
.route-steps li:last-child { padding-bottom: 0; }
.route-steps li::before {
  /* vertical dashed route on mobile */
  content: ""; position: absolute; inset-inline-start: 21px; top: 46px; bottom: 4px;
  border-inline-start: 3px dashed #b9cbff;
}
.route-steps li:last-child::before { display: none; }
.stop {
  position: absolute; inset-inline-start: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 3px solid var(--swift); color: var(--swift-deep);
  font: 700 1.15rem/1 var(--font-display);
}
.route-steps li:last-child .stop { background: var(--swift); color: #fff; }
.route-steps h3 { font-size: 1.2rem; font-weight: 700; padding-top: 6px; }
.route-steps p { color: var(--ink-soft); margin-top: 6px; max-width: 34ch; }
@media (min-width: 760px) {
  .route-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .route-steps li { padding: 70px 0 0; }
  .route-steps li::before {
    inset-inline-start: 56px; inset-inline-end: -24px; top: 21px; bottom: auto;
    border-inline-start: 0; border-top: 3px dashed #b9cbff;
  }
}

/* ---------- Form ---------- */
.apply-wrap { display: grid; gap: 28px; }
.apply-head .muted { margin-top: 10px; }
.form-shell {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 18px; box-shadow: 0 24px 60px -36px rgba(18, 16, 184, .35);
}
@media (min-width: 900px) {
  .apply-wrap { grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
  .apply-head { position: sticky; top: calc(var(--header-h) + 32px); }
  .form-shell { padding: 36px 40px; }
}

.demo-banner {
  background: #fff7e6; border: 1px solid #f1d39a; color: #6b4a00;
  border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 22px; font-size: .97rem;
}

.progress { margin-bottom: 26px; }
.progress-track { height: 6px; background: var(--sky); border-radius: 99px; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 50%; background: var(--swift); border-radius: 99px; transition: width .35s ease; }
.progress-stops { list-style: none; display: flex; justify-content: space-between; margin: 12px 0 0; padding: 0; font-size: .92rem; color: var(--ink-soft); }
.progress-stops li { display: inline-flex; align-items: center; gap: 8px; }
.progress-stops .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.progress-stops li.is-active { color: var(--ink); font-weight: 600; }
.progress-stops li.is-active .dot, .progress-stops li.is-done .dot { border-color: var(--swift); background: var(--swift); }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.step-title { font: 700 1.2rem/1.4 var(--font-display); margin-bottom: 18px; padding: 0; }
.step-title:focus { outline: none; }
.field { margin-bottom: 20px; }
.field > label, .choice-group > legend { display: block; font-weight: 600; margin-bottom: 8px; padding: 0; }
.optional { font-weight: 400; color: var(--ink-soft); }
input[type="text"], input[type="tel"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 500 1.0625rem/1.5 var(--font-body); color: var(--ink);
  background: #fff; border: 1.5px solid #c5d1ec; border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 96px; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%231C18FE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 20px; background-position: left 14px center;
  padding-inline-end: 44px;
}
input:hover, select:hover, textarea:hover { border-color: #9fb3e3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--swift); box-shadow: 0 0 0 4px rgba(28, 24, 254, .16); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(194, 42, 42, .14) !important; }

.phone-input { display: flex; align-items: stretch; }
.phone-prefix {
  display: inline-flex; align-items: center; padding: 0 14px;
  background: var(--sky); border: 1.5px solid #c5d1ec; border-inline-end: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm); color: var(--ink-soft); font-weight: 600;
}
.phone-input input { border-radius: 0 var(--r-sm) var(--r-sm) 0; text-align: left; letter-spacing: .03em; }

.hint { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; }
.error { font-size: .93rem; color: var(--danger); margin-top: 6px; font-weight: 500; }
.error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px;
  border: 1.5px solid #c5d1ec; border-radius: 999px; background: #fff;
  font-weight: 500; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover span { border-color: var(--swift); }
.chip input:checked + span { background: var(--swift); border-color: var(--swift); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--swift); outline-offset: 3px; }
.choice-group[aria-invalid="true"] .chip span { border-color: #e3a3a3; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 400; }
.check input { width: 22px; height: 22px; margin: 4px 0 0; flex: none; accent-color: var(--swift); cursor: pointer; }

.step-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.step-actions .btn { flex: 1 1 140px; }
.step-actions [data-prev] { flex: 0 1 140px; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin-s .8s linear infinite; }
@keyframes spin-s { to { transform: rotate(360deg); } }
.btn.is-loading .spinner { display: inline-block; }

.form-alert {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--danger-bg); color: #7d1a1a; border: 1px solid #f2c4c4; font-size: .98rem;
}
.form-alert.is-info { background: var(--sky); color: var(--swift-deep); border-color: var(--line); }
.form-alert a { color: inherit; font-weight: 600; }

.success { text-align: center; padding: 24px 8px; }
.success:focus { outline: none; }
.success svg { margin: 0 auto 16px; }
.success h3 { font-size: 1.5rem; font-weight: 700; }
.success p { margin-top: 8px; color: var(--ink-soft); max-width: 40ch; margin-inline: auto; }
.success strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-wrap { display: grid; gap: 24px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 20px; padding-inline: 0 40px; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; inset-inline-end: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%231C18FE' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--swift-deep); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 62ch; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 2fr; gap: 48px; } }

/* ---------- Final CTA ---------- */
.cta { padding: 0 var(--gutter) 64px; }
.cta-inner {
  position: relative; overflow: hidden;
  background: var(--swift); color: #fff; border-radius: var(--r-lg);
  padding: 44px 24px; display: grid; gap: 28px;
}
.cta-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-copy, .cta-actions { position: relative; }
.cta h2 { font-size: clamp(1.8rem, 5.5vw, 2.6rem); font-weight: 800; }
.cta-copy p { margin-top: 10px; color: #dbe5ff; font-size: 1.08rem; max-width: 40ch; }
.cta-actions { display: grid; gap: 16px; align-content: center; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px;
  color: #fff; text-decoration: none; border: 1.5px solid rgba(255,255,255,.45); border-radius: 999px; font-weight: 500;
}
.contact-link:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.contact-link svg { width: 20px; height: 20px; }
.cta :focus-visible { outline-color: #fff; }
.contact-pending { color: #dbe5ff; font-size: .95rem; }
@media (min-width: 900px) {
  .cta { padding-bottom: 96px; }
  .cta-inner { grid-template-columns: 1.3fr 1fr; padding: 64px; align-items: center; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-inline: auto; }
  .cta-actions .btn { justify-self: start; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; font-size: .95rem; }
.footer-inner { display: grid; gap: 18px; justify-items: start; }
.brand-footer { gap: 18px; }
.brand-footer .brand-logo { height: 34px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 6px; grid-column: 1 / -1; }
.footer-langs button {
  min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-soft); font-size: .92rem; cursor: pointer;
}
.footer-langs button:hover { border-color: var(--swift); color: var(--swift-deep); }
.footer-langs button[aria-current="true"] { border-color: var(--swift); color: var(--swift-deep); font-weight: 600; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--swift); text-decoration: underline; }
.copyright { color: var(--ink-soft); }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
  .footer-nav { justify-content: center; }
}

/* ---------- Privacy page ---------- */
.doc { padding-block: 48px 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 800; }
.doc h2 { font-size: 1.25rem; font-weight: 700; margin-top: 32px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc p { margin-top: 10px; }
.doc ul { padding-inline-start: 22px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mover { display: none; }
  .scene.is-static .mover { display: inline; }
}

/* ---------- Languages ---------- */
/* Left-to-right languages: mirror the select arrow, and the hero scene so the rider faces forward. */
[dir="ltr"] select { background-position: right 14px center; }
[dir="ltr"] .scene { transform: scaleX(-1); }
[dir="ltr"] .scene .box-mark { transform: scaleX(-1); transform-box: fill-box; transform-origin: center; }
[dir="ltr"] .hero h1 { max-width: 14ch; }

/* Script-specific typefaces (loaded on demand by i18n.js). */
:root[lang="bn"] {
  --font-display: "Noto Sans Bengali", "Alexandria", system-ui, sans-serif;
  --font-body: "Noto Sans Bengali", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
:root[lang="hi"] {
  --font-display: "Noto Sans Devanagari", "Alexandria", system-ui, sans-serif;
  --font-body: "Noto Sans Devanagari", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
:root[lang="ps"] {
  --font-display: "Noto Sans Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "Noto Sans Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
:root[lang="bn"] .hero h1, :root[lang="hi"] .hero h1 { font-size: clamp(2.1rem, 7.4vw, 3.9rem); line-height: 1.3; max-width: 16ch; }

/* Urdu is set in Nastaliq, which needs much more vertical room than Naskh. */
:root[lang="ur"] {
  --font-display: "Noto Nastaliq Urdu", "Noto Sans Arabic", serif;
  --font-body: "Noto Nastaliq Urdu", "Noto Sans Arabic", serif;
}
:root[lang="ur"] body { line-height: 2.3; font-size: 1rem; }
:root[lang="ur"] h1, :root[lang="ur"] h2, :root[lang="ur"] h3, :root[lang="ur"] .step-title { line-height: 2; }
:root[lang="ur"] .hero h1 { font-size: clamp(1.9rem, 6.6vw, 3.3rem); line-height: 2; max-width: 16ch; font-weight: 700; }
:root[lang="ur"] .section-title { font-size: clamp(1.5rem, 4.4vw, 2.1rem); }
:root[lang="ur"] .btn { line-height: 2; padding-block: 4px 8px; }
:root[lang="ur"] .chip span { line-height: 2.1; padding-block: 2px 6px; }
:root[lang="ur"] .lead { line-height: 2.3; }
:root[lang="ur"] input[type="text"], :root[lang="ur"] select, :root[lang="ur"] textarea { line-height: 2; padding-block: 6px; }
:root[lang="ur"] .faq summary { line-height: 2.1; }
