@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-400.4ed189e865.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-500.bf2b68e78c.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-600.0ccee44455.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink-50: #f1f3f8;
  --ink-100: #e6e8ec;
  --ink-200: #d5d7db;
  --ink-400: #96989c;
  --ink-600: #595b5e;
  --ink-800: #2a2b2e;
  --ink-900: #17181b;
  --ink-950: #0a0b0e;
  --surface: #ffffff;
  --surface-secondary: var(--ink-50);
  --text: var(--ink-950);
  --text-secondary: var(--ink-600);
  --border: var(--ink-100);
  --accent-fill: #3163ff;
  --accent-text: #1635fa;
  --accent-subtle: #e2f7ff;
  --dot: #1111e5;
  --host-dot: #08d888;
  --on-accent: #ffffff;
  --font-latin: "Founders Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-end: max(16px, env(safe-area-inset-right, 0px));
  --wide: 1120px;
  --text-width: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface: var(--ink-950);
    --surface-secondary: var(--ink-900);
    --text: #ffffff;
    --text-secondary: var(--ink-400);
    --border: var(--ink-800);
    --accent-fill: #8ab3ff;
    --accent-text: #9bc2ff;
    --accent-subtle: #0a00a2;
    --dot: #8ab3ff;
    --on-accent: var(--ink-950);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-latin);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

html[lang="ar"] body {
  font-family: var(--font-arabic);
  font-size: 17.28px;
  line-height: 1.74;
}

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

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-fill);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -64px;
  padding: 8px 16px;
  background: var(--text);
  color: var(--surface);
  border-radius: 9999px;
  z-index: 10;
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 32px);
  margin-inline: auto;
  padding-inline-start: var(--gutter);
  padding-inline-end: var(--gutter-end);
}

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-block-end: 1px solid var(--border);
  padding-block-start: env(safe-area-inset-top, 0px);
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  color: var(--text);
  margin-inline-end: auto;
}

.logo svg {
  height: 22px;
  width: auto;
  direction: ltr;
}

.logo .ys-dot {
  fill: var(--dot);
}

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

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 9999px;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--surface-secondary);
}

.nav .lang {
  color: var(--text-secondary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 20px;
  border-radius: 9999px;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav .button {
  color: var(--on-accent);
}

.nav .button:hover {
  background: var(--accent-text);
}

@media (max-width: 640px) {
  .nav .hide-small {
    display: none;
  }
}

.hero {
  padding-block: 56px 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 61px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 20px;
  text-wrap: balance;
}

html[lang="ar"] .hero h1 {
  letter-spacing: 0;
  line-height: 1.2;
  font-size: clamp(42px, 7.4vw, 64px);
}

.lead {
  font-size: 20px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 34ch;
}

html[lang="ar"] .lead {
  font-size: 21.6px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.badge img {
  height: 52px;
  width: auto;
}

.text-link {
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link::after {
  content: " ›";
}

html[dir="rtl"] .text-link::after {
  content: " ‹";
}

.phone {
  margin: 0;
  justify-self: center;
  width: min(320px, 78vw);
  border-radius: 44px;
  padding: 10px;
  background: var(--ink-950);
  box-shadow: 0 30px 60px -30px rgb(10 11 14 / 0.45);
}

.phone img {
  border-radius: 34px;
  aspect-ratio: 640 / 1392;
  width: 100%;
  height: auto;
}

@media (prefers-color-scheme: dark) {
  .phone {
    background: var(--ink-800);
  }
}

@media (max-width: 820px) {
  .hero {
    padding-block: 32px 48px;
  }
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

.section {
  padding-block: 72px;
}

.section.tinted {
  background: var(--surface-secondary);
}

.section h2 {
  font-size: clamp(31px, 4.6vw, 39px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0 0 32px;
  max-width: 22ch;
  text-wrap: balance;
}

html[lang="ar"] .section h2 {
  letter-spacing: 0;
  line-height: 1.3;
  font-weight: 600;
}

.families {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  .families {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .families {
    grid-template-columns: minmax(0, 1fr);
  }
}

.family {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.family svg {
  width: 28px;
  height: 28px;
  color: var(--accent-text);
  margin-block-end: 8px;
}

.family h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}

.family .unit {
  color: var(--accent-text);
  font-weight: 500;
}

.family p {
  margin: 0;
  color: var(--text-secondary);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.split .copy p {
  font-size: 20px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
  max-width: 36ch;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
}

@media (max-width: 640px) {
  .points {
    grid-template-columns: minmax(0, 1fr);
  }
}

.points li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 16px;
}

.points li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--dot);
  margin-block-start: 8px;
}

.points h3 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}

.points p {
  margin: 0;
  color: var(--text-secondary);
}

.hosts {
  background: var(--ink-950);
  color: #ffffff;
}

.hosts h2 {
  color: #ffffff;
}

.hosts .copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hosts .copy p {
  color: var(--ink-200);
  margin: 0 0 32px;
  max-width: 40ch;
}

.hosts .phone {
  background: var(--ink-800);
}

.hosts .host-button {
  background: #ffffff;
  color: var(--ink-950);
}

.hosts .host-button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--host-dot);
  margin-inline-end: 10px;
}

.get {
  text-align: center;
}

.get h2 {
  margin-inline: auto;
}

.get p {
  color: var(--text-secondary);
  margin: -16px 0 24px;
}

.get .badge {
  display: inline-block;
}

.footer {
  border-block-start: 1px solid var(--border);
  padding-block: 32px max(32px, env(safe-area-inset-bottom, 0px));
  color: var(--text-secondary);
  font-size: 14px;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-inline-end: auto;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.doc {
  padding-block: 48px 72px;
}

.doc .wrap > * {
  max-width: var(--text-width);
}

.doc h1 {
  font-size: clamp(31px, 5vw, 39px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.doc .updated {
  color: var(--text-secondary);
  margin: 0 0 32px;
}

.doc .note {
  background: var(--accent-subtle);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 32px;
  font-size: 14px;
}

.doc .intro {
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 40px;
}

.doc h2 {
  font-size: 25px;
  line-height: 1.25;
  font-weight: 500;
  margin: 40px 0 12px;
}

.doc p,
.doc li {
  color: var(--text);
}

.doc ul {
  padding-inline-start: 20px;
  margin: 0 0 16px;
}

.doc li {
  margin-block-end: 8px;
}

.doc li::marker {
  color: var(--dot);
}

.center {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 64px;
}

.center h1 {
  font-size: clamp(31px, 5vw, 39px);
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 12px;
}

.center p {
  color: var(--text-secondary);
  max-width: 44ch;
  margin: 0 auto 28px;
}

.center .actions {
  justify-content: center;
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .nav a {
    transition: background-color 120ms ease;
  }
}
