/* Down — the app's look on the web: near-black radial background, champagne text, gold accents. */
:root {
  color-scheme: dark;
  --bg-0: #2b2b2b;
  --bg-1: #121212;
  --bg-2: #000;
  --champagne: #f2deb8;
  --gold: #d9ad78;
  --text: rgba(242, 222, 184, 0.86);
  --text-dim: rgba(242, 222, 184, 0.58);
  --line: rgba(255, 255, 255, 0.10);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-edge: rgba(255, 255, 255, 0.16);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto,
          "SF Arabic", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-2) radial-gradient(ellipse 120% 80% at 50% 18%, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 85%) no-repeat fixed;
  color: var(--text);
  font: 300 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--champagne); text-decoration-color: rgba(217, 173, 120, 0.5); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }

/* Only the chosen language is shown; English is the default when scripts don't run. */
html[data-lang="en"] [data-lang="ar"],
html[data-lang="ar"] [data-lang="en"] { display: none !important; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--champagne);
  text-decoration: none;
  font-weight: 200;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px var(--glass-edge); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  color: var(--champagne);
  font: 500 15px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.pill:hover { background: rgba(255, 255, 255, 0.12); }
.pill.small { padding: 7px 16px; font-size: 14px; }

/* The breathing dot field with the glass disc in the middle, as on the app's main screen. */
.hero { position: relative; margin: 8px auto 0; width: min(340px, 86vw); aspect-ratio: 1; }
.hero.compact { width: min(220px, 60vw); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.disc {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 48px rgba(217, 173, 120, 0.25);
  display: grid;
  place-items: center;
}
.disc svg { width: 42%; height: 42%; filter: drop-shadow(0 0 10px rgba(217, 173, 120, 0.45)); }

h1 {
  margin: 4px 0 6px;
  text-align: center;
  color: var(--champagne);
  font: 100 clamp(44px, 12vw, 64px)/1.1 var(--sans);
  letter-spacing: 0.01em;
}
.tagline { text-align: center; color: var(--text-dim); margin: 0 0 28px; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }

.store { display: block; width: fit-content; margin: 0 auto 26px; border-radius: 12px; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 30px rgba(217, 173, 120, 0.12); }
.store:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(217, 173, 120, 0.5), 0 12px 36px rgba(217, 173, 120, 0.22); }
.store img { display: block; width: 180px; height: auto; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 8px 0 44px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}
.feature {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
}
.feature b { display: block; color: var(--champagne); font-weight: 500; margin-bottom: 4px; }
.feature span { color: var(--text-dim); font-size: 15px; line-height: 1.55; }

/* Legal pages */
.doc {
  padding: 28px clamp(18px, 5vw, 44px) 36px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}
.doc h1 { font-size: clamp(32px, 8vw, 44px); font-weight: 200; }
:lang(ar) .doc h1 { font-weight: 300; }
.doc .date { color: var(--text-dim); font-size: 14px; margin: 0 0 22px; text-align: center; }
.summary {
  margin: 0 0 30px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(217, 173, 120, 0.08);
  border: 1px solid rgba(217, 173, 120, 0.25);
  color: var(--champagne);
}
.doc h2 {
  margin: 34px 0 8px;
  color: var(--champagne);
  font: 400 21px/1.35 var(--serif);
}
.doc h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
[dir="rtl"] .doc h2::before { background: linear-gradient(-90deg, var(--gold), transparent); }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul { padding-inline-start: 22px; margin: 0 0 12px; }
.doc li::marker { color: var(--gold); }
.doc strong { color: var(--champagne); font-weight: 500; }

/* Arabic reads better in the sans face and slightly larger. */
:lang(ar) .doc h2 { font-family: var(--sans); font-weight: 500; }
:lang(ar) body, body:lang(ar) { font-size: 18px; }

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 40px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--champagne); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .doc { border-radius: 18px; }
}
