/* Salah website. Colours follow the app tokens (apps/mobile/lib/ui_foundation/app_tokens.dart). */
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/plex-arabic-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("../fonts/plex-arabic-arabic-500.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("../fonts/plex-arabic-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/plex-arabic-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("../fonts/plex-arabic-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("../fonts/plex-arabic-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --teal: #0B8694;
  --teal-strong: #08707C;
  --teal-soft: #E3F2F3;
  --bg: #F6F6F6;
  --surface: #FFFFFF;
  --text: #1B1F22;
  --muted: #5E666B;
  --line: #E4E7E8;
  --on-teal: #FFFFFF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 8px 24px rgba(16, 24, 32, .06);
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --teal: #55C4CE;
    --teal-strong: #7AD3DB;
    --teal-soft: #1A2B2E;
    --bg: #121416;
    --surface: #1B1E21;
    --text: #EEF1F2;
    --muted: #A3ACB0;
    --line: #2A2F33;
    --on-teal: #0B1D20;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plex Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
html[lang="en"] body { line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-strong); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; }
.brand-tile { width: 36px; height: 36px; border-radius: 9px; background: #0B8694; display: grid; place-items: center; }
.brand-tile img { width: 24px; height: 24px; }
.nav { display: flex; gap: 18px; margin-inline-start: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; color: var(--text) !important; }
@media (max-width: 720px) { .nav a:not(.lang) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 20px; border-radius: 12px; font-weight: 500; text-decoration: none; font-size: 15px; line-height: 1.25; border: 1px solid transparent; }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn small { display: block; font-size: 11px; opacity: .85; font-weight: 400; }
.btn b { display: block; font-size: 17px; font-weight: 700; }
.btn-primary { background: #0B8694; color: #fff; }
.btn-primary:hover { background: #08707C; color: #fff; }
.btn-ghost { background: var(--surface); color: var(--muted); border-color: var(--line); cursor: default; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 56px 0 24px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--teal-soft); color: var(--teal); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 500; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.25; margin: 14px 0 12px; }
.hero h1 span { color: var(--teal); display: block; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; width: 250px; }
.hero-phones .phone:first-child { inset-inline-end: 0; top: 0; z-index: 2; }
.hero-phones .phone:last-child { inset-inline-end: 190px; top: 70px; transform: rotate(-4deg); opacity: .97; }
html[dir="ltr"] .hero-phones .phone:last-child { transform: rotate(4deg); }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-phones { height: 470px; }
  .hero-phones .phone { width: 210px; }
  .hero-phones .phone:first-child { inset-inline-end: calc(50% - 200px); }
  .hero-phones .phone:last-child { inset-inline-end: calc(50% - 20px); top: 50px; }
}
@media (max-width: 420px) {
  .hero-phones .phone:first-child { inset-inline-end: 4px; }
  .hero-phones .phone:last-child { inset-inline-end: auto; inset-inline-start: 4px; }
}

/* Phone frame around real app screenshots */
.phone { border-radius: 34px; padding: 9px; background: #101315; box-shadow: 0 20px 50px rgba(16, 24, 32, .22); }
.phone img { border-radius: 26px; width: 100%; height: auto; background: #F6F6F6; }

/* Sections */
section { padding: 64px 0; }
.section-title { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 3vw, 32px); margin: 0 0 8px; line-height: 1.3; }
.section-title::before { content: ""; width: 5px; height: 1.05em; background: var(--teal); border-radius: 3px; flex: none; }
.section-sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

/* Feature cards: white card with the app's teal edge accent */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-inline-end: 4px solid var(--teal); }
.card h3 { margin: 12px 0 6px; font-size: 19px; line-height: 1.4; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.icon svg { width: 26px; height: 26px; }

/* Screenshot rail */
.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; }
.rail figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; }
.rail figcaption { text-align: center; margin-top: 12px; font-weight: 500; color: var(--muted); font-size: 15px; }

/* Promise strip */
.promise { background: #0B8694; color: #fff; border-radius: 20px; padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.promise h3 { margin: 0 0 4px; font-size: 18px; }
.promise p { margin: 0; opacity: .9; font-size: 15px; }

/* FAQ */
.faq details { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p { margin: 0 0 8px; }

/* Follow */
.social { display: flex; gap: 12px; flex-wrap: wrap; }
.social a { width: 48px; height: 48px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--text); }
.social a:hover { color: var(--teal); }
.social svg { width: 22px; height: 22px; }

/* Long-form pages */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.3; margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; display: flex; gap: 10px; align-items: center; }
.doc h2::before { content: ""; width: 4px; height: 1em; background: var(--teal); border-radius: 3px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: 6px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin: 16px 0; }
.mail-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.mail-list li { background: var(--surface); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; }
.mail-list a { font-weight: 500; direction: ltr; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.m0 { margin: 0; } .mt { margin-top: 24px; }
