/*
  Ana Tamam — the site.

  The app's own surface rather than a website's: the cream page, the teal the
  splash opens on, the duck's yellow, and IBM Plex Sans Arabic, which is the
  face the app itself ships. A landing page in a different palette teaches the
  visitor the wrong thing about what they are about to install.
*/
:root {
  --canvas: #faf7f2;
  --cream: #f4dda1;
  --peach: #ffd4de;
  --ink: #17161a;
  --muted: #7c776f;
  --faint: #a8a196;
  --card: #ffffff;
  --line: rgba(23, 22, 26, 0.08);
  --teal: #035167;
  --teal-deep: #023d4e;
  --gold: #ffd84d;
  --fine: #0e9f6e;
  --rose: #e11d48;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* The wash the app opens on, and the bloom in the corner the reader starts
   from — `inset-inline-end`, so it changes sides with the language. */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(168deg, var(--cream) 0%, var(--canvas) 42%, var(--canvas) 100%);
}
.sky::after {
  content: '';
  position: absolute;
  top: -160px;
  inset-inline-end: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%,
    rgba(255, 212, 222, 0.9), rgba(255, 212, 222, 0.32) 58%, rgba(255, 212, 222, 0) 72%);
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ---------- language ---------- */
.langs {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 26px 0 0;
}
.langs button {
  font: inherit;
  font-size: 14px;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed='true'] {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
  font-weight: 700;
}

/* ---------- hero ---------- */
header { text-align: center; padding: 34px 0 8px; }
.mark {
  font-size: clamp(44px, 11vw, 68px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.5px;
}
.tag {
  color: var(--teal);
  font-size: 17px;
  margin: 10px 0 0;
}
.lede {
  color: var(--muted);
  margin: 26px auto 0;
  max-width: 56ch;
  text-align: start;
}
/* The pair stands on one floor: `flex-end` so the two are the same height off
   the ground however their own proportions differ. */
.ducks {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin: 34px 0 0;
}
.duck {
  display: block;
  width: auto;
  height: min(300px, 46vw);
  filter: drop-shadow(0 16px 22px rgba(23, 22, 26, 0.13));
}
/* Slightly shorter, so the cheerful one leads and the pair does not read as
   two of the same thing. */
.duck-sad { height: min(258px, 40vw); }

/* ---------- sections ---------- */
h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 74px 0 22px;
}

/* Numbered like a contents page: the number is the quiet part. */
.item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.item:first-of-type { border-top: none; }
.num {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  padding-top: 5px;
  font-variant-numeric: tabular-nums;
}
.item h3 { margin: 0 0 2px; font-size: 18px; font-weight: 700; }
.item p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* ---------- the promise ---------- */
.promise {
  margin: 60px 0 0;
  padding: 26px 24px;
  border-radius: 24px;
  background: var(--teal);
  color: #eef6f8;
  text-align: center;
}
.promise strong { display: block; font-size: 20px; margin-bottom: 6px; color: #fff; }
.promise span { color: rgba(238, 246, 248, 0.72); font-size: 15px; }

/* ---------- store ---------- */
.store { text-align: center; margin: 66px 0 0; }
.store p { margin: 0; color: var(--muted); }
.store .soon {
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- footer ---------- */
footer {
  margin: 78px 0 0;
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  font-size: 14.5px;
  color: var(--faint);
}
footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { color: var(--ink); }

/* ---------- the policy page ---------- */
.doc { padding-bottom: 60px; }
.doc h1 { font-size: 30px; margin: 30px 0 4px; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 0 0 30px; }
.doc h2 { text-transform: none; letter-spacing: 0; font-size: 20px; color: var(--ink); margin: 42px 0 10px; }
.doc h3 { font-size: 16px; margin: 24px 0 4px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15.5px; }
.doc td { padding: 11px 0; border-top: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.doc td:first-child { font-weight: 700; color: var(--ink); width: 38%; padding-inline-end: 16px; }
.doc .back { display: inline-block; margin-top: 30px; font-size: 15px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .item { grid-template-columns: 32px 1fr; gap: 10px; }
}
