/* Tabkha's website: the legal pages, the landing page and the page a
   shared link opens when the app is not installed. System fonts only, and
   nothing loaded from anywhere else, so visiting it tells no third party. */

:root {
  --primary: #f5484a;
  --primary-soft: #fdecec;
  --bg: #ffffff;
  --surface: #f8f8f8;
  --text: #171717;
  --text-2: #5f5f5f;
  --border: #ececec;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-soft: #3a1c1d;
    --bg: #121212;
    --surface: #1c1c1c;
    --text: #f2f2f2;
    --text-2: #a8a8a8;
    --border: #2a2a2a;
  }
}

* {
  box-sizing: border-box;
}

/* A class that sets display must not undo the hidden attribute. */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic",
    "Noto Sans", Arial, sans-serif;
}

a {
  color: var(--primary);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ───────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 14px;
}

.lang-switch a {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
}

/* ── Documents ────────────────────────────────────────────────────── */

.doc {
  padding: 32px 0 48px;
}

.doc + .doc {
  border-top: 1px solid var(--border);
}

.doc h1 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.35;
}

.doc .updated {
  margin: 0 0 24px;
  color: var(--text-2);
  font-size: 14px;
}

.doc h2 {
  margin: 32px 0 8px;
  font-size: 20px;
  line-height: 1.4;
}

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

.doc ul {
  padding-inline-start: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.note {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--primary-soft);
}

/* ── Landing and link pages ───────────────────────────────────────── */

.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero .app-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(245, 72, 74, 0.25);
}

.hero h1 {
  margin: 20px 0 8px;
  font-size: 32px;
  line-height: 1.3;
}

.hero p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-2);
}

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.soon {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 14px;
}

.features {
  display: grid;
  gap: 12px;
  padding: 0 0 48px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.feature b {
  display: block;
  margin-bottom: 4px;
}

.feature span {
  color: var(--text-2);
  font-size: 15px;
}

/* ── Footer ───────────────────────────────────────────────────────── */

.site-footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--text-2);
}
