:root {
  --brand: #8c1c13;
  --brand-deep: #6e140d;
  --brand-soft: #f6e3dc;
  --apricot: #f2b880;
  --canvas: #faf6f0;
  --paper: #fffdfa;
  --ink: #292524;
  --muted: #6b6560;
  --faint: #a8a29e;
  --line: #eadfd2;
  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

/* language switching: content for the inactive language is hidden */
html[lang="en"] [data-l="ar"],
html[lang="ar"] [data-l="en"] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand b { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 10px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: #f1e9df; }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline-block; } }
.lang-btn {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  border: 1px solid #e0d5c7; background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 5px 14px;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }

/* hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 88px 0 72px; } .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 4px 12px;
}
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.12; letter-spacing: -0.02em; margin: 18px 0 16px; font-weight: 800; }
html[lang="ar"] .hero h1 { line-height: 1.35; letter-spacing: 0; }
.hero h1 em { font-style: normal; color: var(--brand); white-space: nowrap; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 18px 10px 14px;
  line-height: 1.2;
}
.store:hover { background: #000; color: #fff; }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; opacity: 0.75; font-weight: 600; }
.store span { font-size: 17px; font-weight: 700; }
.note { font-size: 14px; color: var(--faint); margin-top: 14px; }

/* phone mock — follows the app's real home screen (erb-next-mobile-screens/home_red.png);
   sizes are in cqw so the whole screen scales with the phone's width */
.phone {
  justify-self: center; width: min(300px, 82vw); aspect-ratio: 9 / 19;
  background: #1c1b1a; border-radius: 44px; padding: 11px;
  box-shadow: 0 40px 80px -30px rgba(110, 20, 13, 0.45), 0 0 0 1px rgba(0,0,0,0.05);
}
.screen {
  container-type: inline-size; position: relative;
  background: #f6f5f2; border-radius: 34px; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; color: #1c1b1a; line-height: 1.35;
}
.app-head {
  background: #8c1c13; color: #fff; padding: 11cqw 5cqw 17cqw;
  border-radius: 0 0 7cqw 7cqw;
}
.app-row { display: flex; align-items: center; gap: 3cqw; }
.app-badge {
  width: 10.5cqw; height: 10.5cqw; border-radius: 3cqw; background: #fff; color: #8c1c13;
  display: grid; place-items: center; font-weight: 800; font-size: 3.8cqw; flex: none;
}
.app-hi { font-weight: 800; font-size: 4.6cqw; }
.app-co { font-size: 3cqw; opacity: 0.85; }
.app-bell { margin-inline-start: auto; position: relative; width: 6cqw; height: 6cqw; }
.app-bell svg { width: 100%; height: 100%; }
.app-bell i {
  position: absolute; top: -1.6cqw; inset-inline-end: -1.8cqw; font-style: normal;
  background: #d32f2f; color: #fff; border-radius: 99px; font-size: 2.4cqw; font-weight: 800;
  min-width: 3.8cqw; height: 3.8cqw; display: grid; place-items: center;
}
.app-clock { font-size: 12cqw; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-top: 4cqw; }
.app-date { display: flex; align-items: center; gap: 2cqw; font-size: 3.2cqw; flex-wrap: wrap; }
.app-chip { background: rgba(255,255,255,0.2); border-radius: 99px; padding: 0.6cqw 2.6cqw; font-weight: 700; font-size: 2.9cqw; }
.app-card {
  margin: -12cqw 4cqw 0; background: #fff; border-radius: 5cqw; padding: 4cqw;
  box-shadow: 0 2cqw 6cqw -3cqw rgba(0,0,0,0.12);
}
.app-btn {
  background: #3b2d2b; color: #fbeee9; border-radius: 4.5cqw; height: 15cqw;
  display: flex; align-items: center; justify-content: center; gap: 2.4cqw;
  font-weight: 800; font-size: 4.6cqw;
}
.app-btn svg { width: 5cqw; height: 5cqw; }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-top: 4cqw; }
.app-stats span { display: block; font-size: 2.9cqw; color: #66625c; }
.app-stats b { font-size: 3.6cqw; direction: ltr; display: inline-block; }
.app-section { font-weight: 800; font-size: 3.7cqw; margin: 6cqw 5cqw 2.4cqw; }
.app-item {
  margin: 0 4cqw 3cqw; background: #fff; border-radius: 5cqw; padding: 3.4cqw 4cqw;
  display: flex; align-items: center; gap: 3cqw;
}
.app-ic {
  width: 9cqw; height: 9cqw; border-radius: 2.6cqw; background: #f3e4e1; color: #8c1c13;
  display: grid; place-items: center; flex: none;
}
.app-ic svg { width: 4.6cqw; height: 4.6cqw; }
.app-item b { display: block; font-size: 3.5cqw; }
.app-item small { display: block; font-size: 2.8cqw; color: #66625c; }
.app-item .end { margin-inline-start: auto; font-weight: 800; font-size: 3.6cqw; direction: ltr; }
.app-item .chev { margin-inline-start: auto; width: 4cqw; height: 4cqw; }
html[lang="ar"] .app-item .chev { transform: scaleX(-1); }
.app-nav {
  margin-top: auto; background: #fbfaf8; border-top: 1px solid #ece9e3;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 2.4cqw 2cqw 4.5cqw; text-align: center;
}
.app-nav div { font-size: 2.7cqw; color: #66625c; display: grid; justify-items: center; gap: 0.6cqw; }
.app-nav svg { width: 5cqw; height: 5cqw; }
.app-nav .on { color: #8c1c13; font-weight: 800; }
.app-nav .on svg { background: #f3e4e1; border-radius: 99px; padding: 0.8cqw 3.4cqw; box-sizing: content-box; }

/* sections */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.015em; }
.section-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.band { background: var(--paper); border-block: 1px solid var(--line); }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 16px; }

.contact {
  background: var(--brand); color: #fff; border-radius: 24px; padding: 36px 24px;
  display: grid; gap: 18px; align-items: center;
}
@media (min-width: 800px) { .contact { grid-template-columns: 1fr auto; padding: 44px 48px; } }
.contact h2 { margin: 0 0 6px; font-size: 28px; }
.contact p { margin: 0; opacity: 0.85; }
.contact a.pill {
  background: #fff; color: var(--brand); text-decoration: none; font-weight: 800;
  border-radius: 999px; padding: 12px 22px; white-space: nowrap; justify-self: start;
}

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-inline-start: auto; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--brand); }

/* legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal .kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
html[lang="ar"] .legal .kicker { letter-spacing: 0; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin: 6px 0 4px; letter-spacing: -0.015em; line-height: 1.2; }
.legal .updated { color: var(--faint); font-size: 15px; margin: 0 0 28px; }
.legal .summary {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 36px;
}
.legal .summary h2 { margin-top: 0; font-size: 18px; }
.legal .summary ul { margin: 0; padding-inline-start: 20px; }
.legal h2 { font-size: 23px; margin: 40px 0 10px; line-height: 1.3; scroll-margin-top: 80px; }
.legal h3 { font-size: 18px; margin: 24px 0 6px; }
.legal p, .legal li { color: #3f3a36; }
.legal ul { padding-inline-start: 22px; }
.legal li { margin: 4px 0; }
.toc { columns: 1; padding-inline-start: 20px; margin: 0; }
@media (min-width: 640px) { .toc { columns: 2; column-gap: 32px; } }
.toc li { break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: start; padding: 10px 14px; border-bottom: 1px solid #f1eae0; vertical-align: top; }
th { background: #f7f1e8; font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* company sign-in */
.signin { display: grid; gap: 10px; }
.signin label { font-weight: 700; font-size: 14px; color: var(--muted); }
.signin-row {
  display: flex; align-items: center; direction: ltr;
  border: 1px solid #e0d5c7; border-radius: 12px; background: #fff; overflow: hidden;
}
.signin-row:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.signin-row input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; padding: 10px 12px; background: transparent; }
.signin-suffix { color: var(--faint); padding-inline-end: 12px; font-size: 15px; white-space: nowrap; }
.signin-error { color: #b91c1c; font-size: 14px; margin: 0; }
.signin .store { justify-content: center; border: 0; font: inherit; font-weight: 700; cursor: pointer; padding: 12px 18px; }
@media (max-width: 420px) { .signin-suffix { font-size: 12px; } }
