/* Wasl Labs — one stylesheet, no third-party fonts or scripts.
   Layout: single centred column (68ch for reading), wider for the home and product pages. */
:root {
  --bg: #F5F7F6;
  --surface: #FFFFFF;
  --surface-2: #EBF0EE;
  --ink: #0F1715;
  --muted: #56655F;
  --line: #D8E0DD;
  --brand: #0E7A66;
  --brand-ink: #FFFFFF;
  --brand-soft: #DCEFEA;
  --warn: #8A5300;
  --warn-soft: #FCEFD9;
  --map-land: #E6ECE8;
  --map-road: #FFFFFF;
  --map-water: #BCD7E4;
  --f-latin: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-arabic: "SF Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0F0E;
    --surface: #131A18;
    --surface-2: #1B2421;
    --ink: #E7EEEB;
    --muted: #97A7A2;
    --line: #26312E;
    --brand: #3CC7A6;
    --brand-ink: #04201A;
    --brand-soft: #123A31;
    --warn: #F0A43A;
    --warn-soft: #3A2A10;
    --map-land: #18201E;
    --map-road: #2B3633;
    --map-water: #10303C;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-latin);
  font-size: 17px;
  line-height: 1.6;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
:lang(ar) body, body:lang(ar) { font-family: var(--f-arabic); line-height: 1.75; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: 1040px; margin: 0 auto; }
.read { max-width: 70ch; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav .lang { border: 1px solid var(--line); }

main { padding-block: 24px 72px; display: flex; flex-direction: column; gap: 72px; }
section { display: flex; flex-direction: column; gap: 20px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; padding-top: 24px; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 0.95rem; text-transform: none; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--brand); color: var(--brand-ink); }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 0.9rem; align-self: flex-start; }

/* Phone illustration */
.phone { width: 100%; max-width: 300px; justify-self: center; aspect-ratio: 300 / 600; background: #0B0F0E; border-radius: 44px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(10, 30, 25, 0.45); }
.phone svg { display: block; width: 100%; height: 100%; border-radius: 36px; }
.m-land { fill: var(--map-land); } .m-road { stroke: var(--map-road); fill: none; stroke-linecap: round; }
.m-water { fill: var(--map-water); } .m-sheet { fill: var(--surface); } .m-line { fill: var(--line); }
.m-ink { fill: var(--ink); } .m-muted { fill: var(--muted); } .m-brand { fill: var(--brand); }
.m-fence { fill: var(--brand); fill-opacity: 0.14; stroke: var(--brand); stroke-width: 2; }

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card p { color: var(--muted); }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }
.product { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; background: var(--brand); display: grid; place-items: center; }
.app-icon svg { width: 44px; height: 44px; }

/* Long-form pages */
.doc { display: flex; flex-direction: column; gap: 18px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 20px; }
.doc ul, .doc ol { margin: 0; padding-inline-start: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.meta { color: var(--muted); font-size: 0.95rem; }
.summary { background: var(--brand-soft); border-radius: var(--radius); padding: 20px 24px; }
.summary ul { gap: 6px; }
.note { background: var(--warn-soft); border-inline-start: 4px solid var(--warn); border-radius: 10px; padding: 14px 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.95rem; }
th, td { text-align: start; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
:lang(ar) th { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 650; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
details + details { margin-top: -6px; }
summary { cursor: pointer; font-weight: 700; }
details p, details ul { margin-top: 10px; color: var(--muted); }
.email { font-weight: 700; font-size: 1.15rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: 0.92rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .product { grid-template-columns: auto minmax(0, 1fr); }
  .product .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 520px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  body { font-size: 16px; }
}
/* The logo keeps the brand teal in both themes so the mark stays recognisable. */
.brand-mark { color: #0E7A66; display: inline-flex; }
