/* ===== SELF-HOSTED WEBFONTS =====
   Served from our own origin so no visitor request ever reaches a third party.
   unicode-range is preserved from Google's CSS2 output: the Arabic faces are only
   fetched when Arabic glyphs are actually rendered, so English visitors never pay
   for them. Only the subsets this site uses are shipped (Inter latin/latin-ext,
   Noto Sans Arabic arabic). Regenerate with scratchpad/fetch-fonts.js. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/inter-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/inter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/inter-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/inter-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/noto-sans-arabic-400-arabic.woff2') format('woff2');
  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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/noto-sans-arabic-500-arabic.woff2') format('woff2');
  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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/noto-sans-arabic-600-arabic.woff2') format('woff2');
  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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/noto-sans-arabic-700-arabic.woff2') format('woff2');
  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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/noto-sans-arabic-800-arabic.woff2') format('woff2');
  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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

:root {
  --primary: #1B75D0;
  --primary-dark: #155CA4;
  --ink: #0F172A;
  --ink-2: #1E293B;
  --muted: #526277;
  --muted-2: #94A3B8;
  --bg: #F1F5F9;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --border: #E2E8F0;
  --maxw: 1160px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
/* Index links on the legal pages glide instead of jumping (reset under reduced motion) */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; transition-property: color; transition-duration: .15s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; width: 100%; }
.narrow { max-width: 840px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary);
}

/* ===== NAV ===== */
header.nav {
  background: var(--surface); position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  /* Keep the top nav bar fixed (LTR) even when the rest of the page mirrors to RTL */
  direction: ltr;
}
.nav-inner { height: 72px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-collapse { display: flex; align-items: center; gap: 20px; margin-inline-start: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 26px 0 23px 0; border-bottom: 3px solid transparent;
  transition-property: color, border-bottom-color;
  transition-duration: .15s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { font-weight: 700; color: var(--primary); border-bottom-color: var(--primary); }
/* Hamburger (injected by app.js) — hidden on desktop, shown under 1080px */
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; margin-inline-start: auto;
  border: none; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle .bar {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink);
  transition-property: transform, opacity;
  transition-duration: .25s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
header.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.lang-toggle {
  position: relative;
  display: flex; align-items: center; gap: 4px;
  background: var(--bg); border-radius: 999px; padding: 4px;
}
/* Sliding pill that glides to the active language button */
.lang-toggle .lang-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px; background: var(--surface);
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.12);
  transform: translateX(0); z-index: 0; pointer-events: none;
  transition-property: transform, width;
  transition-duration: .28s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.lang-toggle .lang-thumb.no-anim { transition: none; }
.lang-toggle button {
  position: relative; z-index: 1;
  border: none; cursor: pointer; font-family: inherit; font-size: 13px;
  font-weight: 600; padding: 8px 16px; min-height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted);
  transition-property: color, scale;
  transition-duration: .2s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.lang-toggle button:hover:not(.active) { color: var(--ink); }
.lang-toggle button:active { scale: 0.94; }
.lang-toggle button.active { color: var(--ink); }
.btn-cta {
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(27,117,208,0.3);
  white-space: nowrap;
  transition-property: background-color, box-shadow, scale;
  transition-duration: .15s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.btn-cta:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 6px 16px rgba(27,117,208,0.4); }
.btn-cta:active { scale: 0.96; }

/* ===== SHARED STORE BUTTON ===== */
.store-btn {
  display: flex; align-items: center; gap: 10px; background: var(--ink);
  color: #fff; padding: 12px 22px; border-radius: 10px;
  transition-property: background-color, scale;
  transition-duration: .15s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.store-btn:hover { background: var(--ink-2); color: #fff; }
.store-btn:active { scale: 0.96; }
.store-btn .glyph { display: inline-flex; align-items: center; }
.store-btn .glyph svg { display: block; }
.store-btn .stack { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn .small { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.store-btn .big { font-size: 16px; font-weight: 700; }
/* The Google Play button. Brand blue on the light hero band so it reads as the
   primary action. */
.store-btn.is-play { background: var(--primary); color: #fff; }
.store-btn.is-play:hover { background: var(--primary-dark); color: #fff; }

/* ===== SECTION BANDS ===== */
main { flex: 1; }
section.band-white { background: var(--surface); }
section.band-grey { background: var(--bg); }
.sec-pad { padding: 88px 24px; }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.sec-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ink); text-wrap: balance; }

/* ===== HERO (home) ===== */
.hero { background: var(--bg); }
.hero .wrap {
  padding: 96px 24px 80px; display: grid;
  grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy h1 {
  font-size: 48px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  margin: 0; color: var(--ink); text-wrap: balance;
}
.hero-copy p {
  font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0;
  max-width: 480px; text-wrap: pretty;
}
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.hero-secondary { font-size: 15px; font-weight: 600; color: var(--primary); padding: 12px 8px; display: inline-flex; align-items: center; min-height: 40px; }
.hero-secondary:active { scale: 0.96; }
.hero-art { display: flex; justify-content: center; }
.phone {
  width: 300px; border-radius: 28px; overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 15px -3px rgba(27,117,208,0.1);
  border: 6px solid var(--ink); background: var(--ink);
}
.phone img, .phone iframe { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 2262; outline: 1px solid rgba(255,255,255,0.1); outline-offset: -1px; border: 0; }

/* ===== ABOUT (home) ===== */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-head { display: flex; flex-direction: column; gap: 16px; }
.about-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ink); text-wrap: balance; }
.about-head p { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 0; text-wrap: pretty; }
.aud-list { display: flex; flex-direction: column; gap: 20px; }
.aud-card {
  background: var(--surface-2); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 8px;
  transition-property: transform, box-shadow;
  transition-duration: .2s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.aud-card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(15,23,42,0.12); }
.aud-card .dot { width: 12px; height: 12px; }
.aud-card .dot.sq { border-radius: 3px; background: var(--primary); }
.aud-card .dot.ci { border-radius: 50%; background: #22B8CF; }
.aud-card h3 { font-size: 20px; font-weight: 700; margin: 8px 0 0 0; color: var(--ink); }
.aud-card p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ===== FEATURES (home) ===== */
.features .wrap { display: flex; flex-direction: column; gap: 48px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat-card {
  background: var(--surface); border-radius: 16px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  transition-property: transform, box-shadow;
  transition-duration: .2s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.feat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05), 0 12px 24px -10px rgba(15,23,42,0.15);
}
.feat-card .icon {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 12px; background: rgba(27,117,208,0.1); color: var(--primary);
}
.feat-card .icon svg { width: 24px; height: 24px; display: block; }
.feat-card h3 { font-size: 17px; font-weight: 700; margin: 8px 0 0 0; color: var(--ink); }
.feat-card p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ===== HOW IT WORKS (home) ===== */
.how .wrap { display: flex; flex-direction: column; gap: 48px; }
.how-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.how-head .titles { display: flex; flex-direction: column; gap: 12px; }
.how-head .titles h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ink); text-wrap: balance; }
.how-link { font-size: 15px; font-weight: 600; color: var(--primary); }
.how-link:active { scale: 0.96; display: inline-block; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--surface-2); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition-property: transform, box-shadow;
  transition-duration: .2s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.step-card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(15,23,42,0.12); }
.step-card .num { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--primary); font-variant-numeric: tabular-nums; }
.step-card h3 { font-size: 18px; font-weight: 700; margin: 0; color: var(--ink); }
.step-card p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ===== DOWNLOAD CTA (home) ===== */
.download { background: var(--bg); padding: 40px 24px 96px; }
.download-inner {
  max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(180deg, #1E82E2 0%, #1B75D0 100%);
  border-radius: 24px; padding: 72px 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
  box-shadow: 0 20px 25px -5px rgba(27,117,208,0.25);
}
.download-copy { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.download-copy h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: #fff; text-wrap: balance; }
.download-copy p { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.85); margin: 0; text-wrap: pretty; }
/* A definite flex-basis keeps this column beside the copy instead of being
   pushed below it by the note's long max-content width. Below ~1030px there is
   no longer room for both, and it wraps under the copy on its own. */
.download-actions { flex: 0 1 400px; min-width: 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.download .store-btn { padding: 14px 26px; }
.download .store-btn .glyph svg { width: 20px; height: 22px; }
.download .store-btn .big { font-size: 17px; }
/* Brand blue has no contrast against this band, so the Play button inverts to
   white — making it the brightest, most obvious element in the section. */
.download .store-btn.is-play { background: #fff; color: var(--ink); }
.download .store-btn.is-play:hover { background: var(--bg); color: var(--ink); }
.dl-note {
  flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.6;
  color: rgba(255,255,255,0.8); text-wrap: pretty;
}

/* ===== INNER PAGE HEADER (guide / faq / contact) ===== */
.page-head { display: flex; flex-direction: column; gap: 16px; padding: 80px 24px 64px; }
.page-head h1 {
  font-size: 44px; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em;
  margin: 0; color: var(--ink); text-wrap: balance;
}
.page-head p { font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0; max-width: 620px; text-wrap: pretty; }
.callout {
  display: flex; align-items: center; gap: 12px; margin-top: 8px;
  background: rgba(27,117,208,0.08); border-radius: 12px; padding: 16px 20px;
}
.callout .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.callout p { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 0; }

/* ===== GUIDE STEPS ===== */
.guide-steps { display: flex; flex-direction: column; gap: 20px; padding: 72px 24px 96px; }
.guide-step {
  display: flex; gap: 24px; background: var(--surface); border-radius: 16px;
  padding: 28px; box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); align-items: flex-start;
  transition-property: transform, box-shadow;
  transition-duration: .2s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.guide-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05), 0 12px 24px -12px rgba(15,23,42,0.15);
}
.guide-step .badge {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; font-size: 18px; font-weight: 800; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.guide-step .content { display: flex; flex-direction: column; gap: 6px; }
.guide-step .role { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.guide-step h2 { font-size: 20px; font-weight: 700; margin: 0; color: var(--ink); text-wrap: balance; }
.guide-step p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; text-wrap: pretty; }
.center-link { display: flex; justify-content: center; margin-top: 24px; }
.center-link a { font-size: 15px; font-weight: 600; color: var(--primary); }
.center-link a:active { scale: 0.96; display: inline-block; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; padding: 72px 24px 96px; }
.faq-item { background: var(--surface); border-radius: 12px; box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); overflow: hidden; }
.faq-q {
  width: 100%; border: none; background: transparent; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; text-align: start;
  transition-property: background-color;
  transition-duration: .15s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.faq-q:hover { background: var(--surface-2); }
.faq-q .q-text { font-size: 16px; font-weight: 700; color: var(--ink); }
.faq-q .q-icon {
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(27,117,208,0.1); color: var(--primary);
  font-size: 16px; font-weight: 700; flex-shrink: 0; line-height: 1;
  transition-property: rotate, background-color, color;
  transition-duration: .3s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.faq-item.open .q-icon { rotate: 45deg; background: var(--primary); color: #fff; }
/* Interruptible height animation via animatable grid rows */
.faq-a-wrap {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(0.2, 0, 0, 1);
}
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0; padding: 0 24px 24px; text-wrap: pretty; }
.faq-cta {
  margin-top: 32px; background: rgba(27,117,208,0.08); border-radius: 12px; padding: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.faq-cta p { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; }
.faq-cta a {
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(27,117,208,0.3);
  transition-property: background-color, box-shadow, scale;
  transition-duration: .15s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.faq-cta a:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 6px 16px rgba(27,117,208,0.4); }
.faq-cta a:active { scale: 0.96; }

/* ===== LEGAL PAGES (privacy / terms) ===== */
.legal-doc { display: flex; flex-direction: column; gap: 20px; padding: 72px 24px 96px; }
.legal-toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; margin-bottom: 12px;
}
.legal-toc h2 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px 0;
}
.legal-toc-list {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 32px;
  font-variant-numeric: tabular-nums;
}
.legal-toc-list li { break-inside: avoid; }
.legal-toc-list a {
  display: block; font-size: 14px; line-height: 1.5; padding: 7px 0;
  color: var(--muted);
}
.legal-toc-list a:hover { color: var(--primary); }

.legal-section {
  background: var(--surface); border-radius: 16px; padding: 32px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  /* Clear the sticky 72px header when an index link jumps here */
  scroll-margin-top: 96px;
}
.legal-section + .legal-section { margin-top: 20px; }
.legal-section h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 20px 0;
  color: var(--ink); text-wrap: balance;
}
.legal-section h3 {
  font-size: 15px; font-weight: 700; margin: 28px 0 12px 0; color: var(--ink);
}
.legal-section h3:first-of-type { margin-top: 0; }
.legal-section p {
  font-size: 14px; line-height: 1.85; color: var(--muted); margin: 0 0 16px 0;
  text-wrap: pretty;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--ink); font-weight: 700; }
.legal-list { margin: 0 0 16px 0; padding-inline-start: 22px; }
.legal-list:last-child { margin-bottom: 0; }
.legal-list li {
  font-size: 14px; line-height: 1.85; color: var(--muted); margin-bottom: 10px;
  text-wrap: pretty;
}
.legal-list li:last-child { margin-bottom: 0; }
.legal-list li::marker { color: var(--muted-2); }
.legal-note {
  background: rgba(27,117,208,0.08); border-radius: 12px; padding: 16px 20px;
  color: var(--ink) !important;
}
/* Wide tables scroll inside their own box — the page body never scrolls sideways */
.legal-table { overflow-x: auto; margin: 0 0 20px 0; border-radius: 12px; border: 1px solid var(--border); }
.legal-table:last-child { margin-bottom: 0; }
.legal-table table { border-collapse: collapse; width: 100%; min-width: 420px; }
.legal-table th, .legal-table td {
  font-size: 13px; line-height: 1.65; text-align: start; padding: 12px 16px;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.legal-table thead th {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2); white-space: nowrap;
}
.legal-table td { color: var(--muted); }
.legal-table td:first-child { color: var(--ink); font-weight: 600; }
.legal-table tbody tr:last-child th, .legal-table tbody tr:last-child td { border-bottom: none; }

/* ===== CONTACT ===== */
.contact .wrap {
  padding: 80px 24px 96px; display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 64px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info h1 {
  font-size: 44px; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin: 0; color: var(--ink); text-wrap: balance;
}
.contact-info > p { font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0; text-wrap: pretty; }
.info-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.info-card {
  background: var(--surface); border-radius: 12px; padding: 20px 24px;
  display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  transition-property: transform, box-shadow;
  transition-duration: .2s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.info-card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(15,23,42,0.12); }
.info-card .label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.info-card a { font-size: 16px; font-weight: 600; }
.info-card p { font-size: 14px; line-height: 1.7; color: var(--ink); margin: 0; }
.contact-form {
  background: var(--surface); border-radius: 16px; padding: 40px; display: flex;
  flex-direction: column; gap: 20px;
  box-shadow: 0 10px 15px -3px rgba(27,117,208,0.1), 0 4px 6px -4px rgba(27,117,208,0.1);
}
.contact-form h2 { font-size: 20px; font-weight: 700; margin: 0; color: var(--ink); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label span { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 14px; padding: 12px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--ink);
  transition-property: border-color, background-color, box-shadow;
  transition-duration: .15s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border: 2px solid var(--primary); padding: 11px 15px;
  background: var(--surface); box-shadow: 0 0 0 3px rgba(27,117,208,0.12);
}
.contact-form button {
  border: none; cursor: pointer; font-family: inherit; background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 600; padding: 14px 24px; border-radius: 8px;
  box-shadow: 0 4px 12px rgba(27,117,208,0.3);
  transition-property: background-color, box-shadow, scale;
  transition-duration: .15s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.contact-form button:hover { background: var(--primary-dark); box-shadow: 0 6px 16px rgba(27,117,208,0.4); }
.contact-form button:active { scale: 0.96; }
.form-sent { font-size: 14px; font-weight: 600; color: #16A34A; margin: 0; text-align: center; }
.form-error { font-size: 14px; font-weight: 600; color: #DC2626; margin: 0; text-align: center; }

/* ===== 404 PAGE ===== */
.notfound .wrap { text-align: center; display: block; }
.notfound .wrap p { max-width: 520px; margin: 0 auto; }
.notfound .hero-actions { justify-content: center; margin-top: 24px; }

/* ===== FOOTER ===== */
footer.site { background: var(--ink); }
footer.site .wrap { padding: 48px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site .brand span { color: #fff; font-size: 16px; }
footer.site .brand img { width: 32px; height: 32px; }
.foot-nav { display: flex; gap: 12px; }
.foot-nav a { font-size: 13px; color: var(--muted-2); padding: 8px 6px; display: inline-flex; align-items: center; min-height: 40px; }
.foot-nav a:hover { color: #fff; }
.copyright { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }

/* ===== RESPONSIVE ===== */
/* Six nav links + language toggle + CTA stop fitting below this width.
   Sized against the Arabic labels, which are the wider of the two sets. */
@media (max-width: 1079px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .hero-art { order: -1; }
  .about .wrap { grid-template-columns: 1fr; gap: 40px; }
  .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy h1 { font-size: 38px; }

  /* ---- Mobile navigation: hamburger + slide-down panel ---- */
  .nav-toggle { display: flex; }
  .nav-inner { gap: 12px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: 18px; }

  .nav-collapse {
    position: absolute; top: 100%; inset-inline: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--surface); padding: 12px 24px 22px;
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 24px -14px rgba(15,23,42,0.25);
    opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
    transition-property: opacity, transform, visibility;
    transition-duration: .22s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  }
  header.nav-open .nav-collapse {
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-links a {
    padding: 14px 4px; font-size: 16px;
    border-top: none; border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active { border-bottom-color: var(--border); }
  .nav-collapse .lang-toggle { align-self: flex-start; margin-top: 10px; }
  .nav-collapse .btn-cta { text-align: center; margin-top: 4px; padding: 13px 20px; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .legal-toc, .legal-section { padding: 24px 20px; }
  .legal-toc-list { columns: 1; }
  .sec-pad { padding: 56px 24px; }
  .download-inner { padding: 48px 28px; }
  .contact-form { padding: 28px; }
  .hero-copy h1 { font-size: 32px; }
  .page-head h1, .contact-info h1 { font-size: 34px; }
  /* Side by side the two store buttons split into slivers — stack them instead. */
  .hero-actions .store-btn, .download-actions .store-btn { flex: 1 1 100%; }
}

/* ===== ENTER ANIMATIONS (split + staggered, run once on load) ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-copy > *, .hero-art,
.page-head > *,
.contact-info > * {
  opacity: 0;
  animation: fadeUp .55s cubic-bezier(0.2, 0, 0, 1) forwards;
}
.hero-copy > *:nth-child(1), .page-head > *:nth-child(1), .contact-info > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2), .page-head > *:nth-child(2), .contact-info > *:nth-child(2) { animation-delay: .13s; }
.hero-copy > *:nth-child(3), .page-head > *:nth-child(3), .contact-info > *:nth-child(3) { animation-delay: .21s; }
.hero-copy > *:nth-child(4), .page-head > *:nth-child(4), .contact-info > *:nth-child(4) { animation-delay: .29s; }
.hero-art { animation-delay: .21s; }

/* ===== RESPECT REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-copy > *, .hero-art,
  .page-head > *,
  .contact-info > * { opacity: 1 !important; transform: none !important; }
}

/* ===== ACCESSIBILITY: FOCUS RINGS + SKIP LINK ===== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
/* On blue/dark surfaces a blue ring has too little contrast — use white */
.download-inner :focus-visible,
footer.site :focus-visible {
  outline-color: #fff;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 16px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: top .15s cubic-bezier(0.2, 0, 0, 1);
}
.skip-link:focus { top: 12px; color: #fff; outline: 2px solid #fff; outline-offset: 2px; }
