@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-024F, U+02C6-02DA, U+02DC, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/fonts/noto-sans-arabic-arabic.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+2010-2011, U+204F, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --ground: #f6f2ea;
  --surface: #fbf8f2;
  --ink: #1c1a16;
  --ink-2: #524d44;
  --ink-3: #6d675c;
  --line: #e2dbcd;
  --accent: #9a3f26;
  --on-ink: #fbf8f2;
  --menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --hover: color-mix(in srgb, var(--ink) 6%, transparent);
  --halo: color-mix(in srgb, var(--ink) 8%, transparent);

  --ui: "Source Sans 3", "Noto Sans Arabic", -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
  --gutter: 24px;
  --header: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #14130f;
    --surface: #1b1a16;
    --ink: #e9e3d5;
    --ink-2: #b0a99b;
    --ink-3: #948d80;
    --line: #2b2924;
    --accent: #db8e6e;
    --on-ink: #1b1a16;
    --menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #14130f;
  --surface: #1b1a16;
  --ink: #e9e3d5;
  --ink-2: #b0a99b;
  --ink-3: #948d80;
  --line: #2b2924;
  --accent: #db8e6e;
  --on-ink: #1b1a16;
  --menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

:root:lang(ar),
:root:lang(ur) {
  --ui: "Noto Sans Arabic", "Source Sans 3", -apple-system, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.4;
  background: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
svg { flex: none; }

a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex: none;
}
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.wordmark {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
:root:lang(ar) .wordmark,
:root:lang(ur) .wordmark { font-weight: 600; line-height: 1.3; }

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 32px;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.12s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--on-ink) 8%, var(--ink)); }
.btn-ghost { color: var(--ink); border-color: var(--ink-3); }
.btn-ghost:hover { background: var(--halo); }
.btn-text { color: var(--ink); padding: 0 12px; }
.btn-text:hover { background: var(--halo); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  flex: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.icon-btn:hover { background: var(--halo); color: var(--ink); }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn .icon-sun { display: none; }
:root[data-theme="dark"] .icon-btn .icon-sun { display: block; }
:root[data-theme="dark"] .icon-btn .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .icon-moon { display: none; }
}

.lang-picker { position: relative; flex: none; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding-inline: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 0.12s ease;
}
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn:hover,
.lang-picker[open] .lang-btn { background: var(--halo); }
.lang-btn .icon-globe { width: 24px; height: 24px; color: var(--ink-2); }
.lang-btn .lang-caret {
  width: 24px;
  height: 24px;
  color: var(--ink-3);
  transition: transform 0.15s ease;
}
.lang-picker[open] .lang-caret { transform: rotate(180deg); }
.lang-current { white-space: nowrap; }

.lang-menu {
  position: absolute;
  top: calc(100% + 18px);
  inset-inline-end: 0;
  z-index: 30;
  width: 280px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--menu-shadow);
}
.lang-menu li + li a::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 24px;
  border-top: 1px solid var(--line);
}
.lang-menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 24px;
  transition: background-color 0.12s ease;
}
.lang-menu a:hover { background: var(--hover); }
.lang-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
.lang-name {
  font-family: "Source Sans 3", var(--ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.lang-name:lang(ar),
.lang-name:lang(ur) { font-family: "Noto Sans Arabic", var(--ui); font-size: 18px; font-weight: 500; line-height: 1.4; }
.lang-sub { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.lang-menu a[aria-current]::after {
  content: "";
  width: 24px;
  height: 24px;
  flex: none;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero { padding: 96px 0 0; }
.overline {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}
/* Arabic has no case, and spaced letters break its joins. */
:root:lang(ar) .overline,
:root:lang(ur) .overline { font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.hero h1 {
  max-width: 760px;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
:root:lang(ar) .hero h1,
:root:lang(ur) .hero h1 { font-size: 44px; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.hero .alt-title {
  margin-top: 8px;
  font-family: "Noto Sans Arabic", var(--ui);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-2);
}
html[dir="ltr"] .hero .alt-title { text-align: left; }
html[dir="rtl"] .hero .alt-title { text-align: right; }
.hero .alt-title:lang(en) {
  font-family: "Source Sans 3", var(--ui);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
}
.lead {
  max-width: 640px;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-2);
}
:root:lang(ar) .lead,
:root:lang(ur) .lead { line-height: 1.9; }
.lead strong { font-weight: inherit; color: inherit; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

.hero-shot {
  margin: 64px 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.hero-shot iframe { display: block; width: 100%; height: 100%; border: 0; }
.yt-facade { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.yt-facade img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-play {
  position: absolute; inset-inline-start: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px 12px 16px; border-radius: 999px;
  background: #9A3F26; color: #FBF8F2; font: inherit; font-size: 16px; font-weight: 600;
  transition: transform .15s ease;
}
.yt-play svg { width: 22px; height: 22px; fill: currentColor; }
.yt-facade:hover .yt-play { transform: scale(1.04); }
.yt-facade:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (max-width: 640px) { .yt-play { inset-inline-start: 12px; bottom: 12px; padding: 8px 14px 8px 10px; font-size: 14px; } }

main > section:not(.hero):not(.cta-band) { padding-top: 96px; }
main > section:not(.hero):not(.cta-band) > .container {
  display: grid;
  grid-template-columns: 352px minmax(0, 1fr);
  column-gap: 32px;
  align-items: start;
}
#faq { padding-bottom: 96px; }

.section-head { position: sticky; top: calc(var(--header) + 32px); }
.section-head h2 {
  font-size: 36px;
  line-height: 1.2;
  color: var(--ink);
}
:root:lang(ar) .section-head h2,
:root:lang(ur) .section-head h2,
:root:lang(ar) .cta-band h2,
:root:lang(ur) .cta-band h2 { font-size: 32px; font-weight: 500; line-height: 1.5; }
.section-head p,
.cta-band p {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}
:root:lang(ar) .section-head p,
:root:lang(ur) .section-head p,
:root:lang(ar) .cta-band p,
:root:lang(ur) .cta-band p { line-height: 1.9; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}
.feature { border-top: 1px solid var(--line); padding: 24px 0 32px; }
.feature h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
:root:lang(ar) .feature h3,
:root:lang(ur) .feature h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.feature p { margin-top: 8px; color: var(--ink-2); }
:root:lang(ar) .feature p,
:root:lang(ur) .feature p { line-height: 1.5; }

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}
.platform {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.platform .pico { width: 24px; height: 24px; color: var(--ink); flex: none; }
.platform .pico svg { width: 100%; height: 100%; }
.platform .ptext { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.platform .ptext strong { font-size: 16px; font-weight: 600; }
.platform .ptext span { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.platform .arrow {
  width: 24px;
  height: 24px;
  color: var(--ink-3);
  transition: transform 0.15s ease, color 0.12s ease;
}
[dir="rtl"] .platform .arrow { transform: scaleX(-1); }
a.platform:hover .ptext strong { text-decoration: underline; text-underline-offset: 3px; }
a.platform:hover .arrow { color: var(--ink); transform: translateX(3px); }
[dir="rtl"] a.platform:hover .arrow { transform: scaleX(-1) translateX(3px); }
.platform.disabled,
.platform.disabled .pico { color: var(--ink-3); }

.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--ink-3);
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: background-size 0.15s ease;
}
.faq details[open] summary::after {
  background-size: 14px 1.5px, 1.5px 0;
}
.faq summary:hover::after { color: var(--ink); }
.faq details p { max-width: 640px; padding-bottom: 24px; color: var(--ink-2); }
:root:lang(ar) .faq details p,
:root:lang(ur) .faq details p { line-height: 1.6; }

.cta-band {
  margin: 0;
  padding: 96px 0;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.cta-band h2 {
  font-size: 36px;
  line-height: 1.2;
  color: var(--ink);
}
.cta-band p { max-width: 560px; margin-inline: auto; }
.cta-band .btn { margin-top: 32px; }

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 64px;
  align-items: flex-start;
}
.footer-left { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.footer-brand img { width: 28px; height: 28px; border-radius: 6px; }
.social { display: flex; margin-inline-start: -10px; }
.social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background-color 0.12s ease, color 0.12s ease;
}
.social a:hover { background: var(--halo); color: var(--ink); }
.social svg { width: 20px; height: 20px; }
.footer-links { display: flex; gap: 64px; }
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-2);
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:lang(ar),
.footer-links a:lang(ur) { font-family: "Noto Sans Arabic", var(--ui); line-height: 1.4; }
.footer-copy { margin-top: 32px; font-size: 13px; color: var(--ink-3); }

.not-found { padding-bottom: 160px; }
.not-found .hero { padding-top: 128px; }

@media (max-width: 960px) {
  main > section:not(.hero):not(.cta-band) > .container { display: block; }
  .section-head { position: static; margin-bottom: 32px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header: 56px; }
  .brand .wordmark { display: none; }
  .lang-current { display: none; }
  .lang-btn { padding-inline: 10px; gap: 4px; }
  .lang-picker { position: static; }
  .lang-menu { top: calc(100% + 8px); max-width: calc(100vw - 2 * var(--gutter)); }

  .hero { padding-top: 48px; }
  .hero h1 { font-size: 36px; line-height: 1.15; letter-spacing: 0; }
  :root:lang(ar) .hero h1,
  :root:lang(ur) .hero h1 { font-size: 32px; }
  .lead { margin-top: 16px; font-size: 18px; }
  .cta-row { margin-top: 32px; }
  .hero-shot { margin-top: 40px; }

  main > section:not(.hero):not(.cta-band) { padding-top: 56px; }
  #faq { padding-bottom: 56px; }
  .section-head h2,
  .cta-band h2 { font-size: 28px; line-height: 1.25; }
  :root:lang(ar) .section-head h2,
  :root:lang(ur) .section-head h2,
  :root:lang(ar) .cta-band h2,
  :root:lang(ur) .cta-band h2 { font-size: 26px; }
  .grid,
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 56px 0; }
  .site-footer { padding: 32px 0; }
  .footer-grid { flex-direction: column; }
  .not-found { padding-bottom: 96px; }
  .not-found .hero { padding-top: 64px; }
}

.cta-short { display: none; }
@media (max-width: 360px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
