/* Shared by every page: index, join, privacy and support. The app's own stage:
   near black under a cone of warm light, its fonts (Barlow Condensed for
   display, Manrope for reading), its gold key colour, and the app icon as the
   logo. No scripts anywhere (nginx's policy allows none). */

@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("/fonts/BarlowCondensed-Bold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("/fonts/BarlowCondensed-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url("/fonts/Manrope-Regular.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url("/fonts/Manrope-SemiBold.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url("/fonts/Manrope-Bold.woff2") format("woff2"); }
/* Arabic only where a page has Arabic: the range keeps it from loading elsewhere. */
@font-face { font-family: "Noto Naskh Arabic"; font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; src: url("/fonts/NotoNaskhArabic-Regular.woff2") format("woff2"); }
@font-face { font-family: "Noto Naskh Arabic"; font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; src: url("/fonts/NotoNaskhArabic-Bold.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --black: #0a0806;
  --panel: rgba(255, 244, 228, .045);
  --panel-lit: rgba(249, 182, 79, .075);
  --stroke: rgba(255, 244, 228, .1);
  --stroke-lit: rgba(249, 182, 79, .38);
  --paper: #f7f0e6;
  --ink: #e6ddd0;
  --ink-dim: #b0a696;
  --ink-faint: #82786a;
  --key: #f9b64f;
  --key-pale: #ffd890;
  --on-key: #1b1206;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --ui: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --arabic: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--ink);
  font: 400 17px/1.7 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The stage light: a soft cone from above, fading out down the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 30% at 50% 0%, rgba(249, 182, 79, .26), rgba(249, 182, 79, 0) 100%),
    conic-gradient(from 180deg at 50% -6%, rgba(249, 182, 79, 0) 158deg, rgba(249, 182, 79, .13) 172deg,
      rgba(255, 216, 144, .17) 180deg, rgba(249, 182, 79, .13) 188deg, rgba(249, 182, 79, 0) 202deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 85%);
}

a { color: var(--key); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--key-pale); }
a:focus-visible, .button:focus-visible, .store:focus-visible { outline: 2px solid var(--key-pale); outline-offset: 3px; border-radius: 6px; }
strong, b { color: var(--paper); font-weight: 700; }
code {
  font: 500 .88em/1.4 var(--mono);
  color: var(--paper);
  background: rgba(255, 244, 228, .07);
  border: 1px solid var(--stroke);
  padding: .08em .38em;
  border-radius: 6px;
}
img { max-width: 100%; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Top bar: the icon and the name, and the pages. ----------------------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0 6px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--paper); text-decoration: none;
}
.brand img {
  width: 44px; height: 44px; border-radius: 11px; display: block;
  box-shadow: 0 0 0 1px rgba(249, 182, 79, .35), 0 8px 24px rgba(0, 0, 0, .55), 0 0 28px rgba(249, 182, 79, .18);
}
.brand span {
  font: 800 22px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
}
.brand:hover { color: var(--paper); }
.nav { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-block; padding: 7px 12px; border-radius: 999px;
  color: var(--ink-dim); text-decoration: none;
  font: 700 13px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid transparent;
}
.nav a:hover { color: var(--paper); border-color: var(--stroke); }
.nav a[aria-current="page"] { color: var(--paper); background: var(--panel); border-color: var(--stroke); }

/* ---- Type ------------------------------------------------------------------ */
.eyebrow {
  margin: 0 0 10px;
  font: 700 14px/1.2 var(--display); letter-spacing: .24em; text-transform: uppercase;
  color: var(--key);
}
h1, .display {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  color: var(--paper); letter-spacing: .01em; line-height: .95;
  font-size: clamp(46px, 13vw, 76px);
  margin: 0 0 14px;
}
h2 {
  font: 800 clamp(26px, 6.4vw, 32px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em;
  color: var(--paper);
  margin: 0 0 14px;
}
h3 {
  font: 700 18px/1.35 var(--ui); color: var(--paper);
  margin: 28px 0 8px;
}
p { margin: 0 0 16px; }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink); }
.updated { color: var(--ink-faint); font-size: 14px; margin: 0 0 26px; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin: 0 0 10px; padding-left: 4px; }
li::marker { color: var(--key); }

/* ---- Panels ------------------------------------------------------------------ */
.panel {
  background: var(--panel); border: 1px solid var(--stroke); border-radius: 20px;
  padding: 22px 22px 6px; margin: 0 0 26px;
}
.panel.lit {
  background: linear-gradient(180deg, rgba(249, 182, 79, .1), rgba(249, 182, 79, .03));
  border-color: var(--stroke-lit);
  box-shadow: 0 0 0 1px rgba(249, 182, 79, .06), 0 20px 50px -24px rgba(249, 182, 79, .35);
}
.panel > :last-child { margin-bottom: 16px; }

/* ---- A long page: contents, numbered sections, back to the top. ------------- */
.doc-head { padding: 46px 0 6px; }
.contents {
  background: var(--panel); border: 1px solid var(--stroke); border-radius: 20px;
  padding: 18px 20px 12px; margin: 0 0 40px;
}
.contents .eyebrow { margin-bottom: 12px; }
.contents ol {
  list-style: none; margin: 0; padding: 0; counter-reset: c;
  display: grid; grid-template-columns: 1fr; gap: 2px 22px;
}
.contents li { margin: 0; padding: 0; counter-increment: c; }
.contents a {
  display: flex; gap: 12px; align-items: baseline;
  padding: 7px 0; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.4;
  border-bottom: 1px solid rgba(255, 244, 228, .05);
}
.contents a::before {
  content: counter(c, decimal-leading-zero);
  font: 700 13px/1 var(--display); letter-spacing: .08em; color: var(--key); min-width: 20px;
}
.contents a:hover { color: var(--paper); }
@media (min-width: 640px) { .contents ol { grid-template-columns: 1fr 1fr; } }

.doc section { padding: 34px 0 6px; border-top: 1px solid var(--stroke); }
.doc section > h2 { display: flex; gap: 14px; align-items: baseline; }
.doc section > h2 .n {
  font: 700 15px/1 var(--display); letter-spacing: .1em; color: var(--key);
  flex: 0 0 auto; transform: translateY(-3px);
}
.doc p, .doc li { color: var(--ink); }
.to-top {
  display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0;
  font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-dim); text-decoration: none;
}
.to-top:hover { color: var(--paper); }

/* ---- Footer ---------------------------------------------------------------- */
.footer {
  margin-top: 56px; padding: 26px 0 64px; border-top: 1px solid var(--stroke);
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between;
  color: var(--ink-faint); font-size: 14px;
}
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer a { color: var(--ink-dim); text-decoration: none; }
.footer a:hover { color: var(--paper); }

/* ---- The invitation (join.html) ------------------------------------------- */
.invite { max-width: 30rem; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.invite .hero { padding: 40px 0 8px; }
.invite .icon {
  position: relative; display: inline-block; margin: 0 0 26px;
}
.invite .icon img {
  display: block; width: 128px; height: 128px; border-radius: 29px;
  box-shadow: 0 0 0 1px rgba(249, 182, 79, .4), 0 24px 50px -10px rgba(0, 0, 0, .8), 0 0 60px rgba(249, 182, 79, .28);
  animation: bob 4.8s ease-in-out infinite;
}
/* The pool of light the icon stands in, as on the app's stage. */
.invite .icon::after {
  content: ""; position: absolute; left: 50%; bottom: -22px; width: 190px; height: 34px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(249, 182, 79, .38), rgba(249, 182, 79, 0));
  z-index: -1;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .invite .icon img { animation: none; } }
.invite h1 { font-size: clamp(44px, 13vw, 62px); }
.invite .lede { color: var(--ink-dim); margin: 0 auto 26px; max-width: 26rem; }

.ticket {
  position: relative;
  margin: 0 0 30px; padding: 18px 16px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(249, 182, 79, .14), rgba(249, 182, 79, .04));
  border: 1.5px dashed rgba(249, 182, 79, .55);
  box-shadow: 0 30px 60px -30px rgba(249, 182, 79, .45);
}
.ticket-label {
  display: block; margin: 0 0 6px;
  font: 700 13px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--key);
}
.ticket-code {
  display: block;
  font: 800 clamp(52px, 17vw, 76px)/1 var(--display); letter-spacing: .16em;
  margin-right: -.16em; /* the last letter's spacing, so the code sits centred */
  color: var(--paper); text-shadow: 0 0 34px rgba(249, 182, 79, .35);
  font-variant-numeric: tabular-nums;
}

.steps {
  list-style: none; counter-reset: s; padding: 0; margin: 0 0 26px; text-align: start;
  display: grid; gap: 10px;
}
.steps li {
  counter-increment: s; margin: 0; padding: 14px 16px 14px 58px; position: relative;
  background: var(--panel); border: 1px solid var(--stroke); border-radius: 16px;
  font-size: 16px; line-height: 1.5; color: var(--ink);
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 17px/1 var(--display); color: var(--on-key); background: var(--key);
  box-shadow: 0 0 18px rgba(249, 182, 79, .35);
}

.stores { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 40px; }
@media (min-width: 420px) { .stores { grid-template-columns: 1fr 1fr; } }
.store {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px; text-decoration: none; text-align: start;
  background: var(--key); color: var(--on-key);
  box-shadow: 0 5px 0 #a8701f, 0 14px 30px -12px rgba(249, 182, 79, .6);
  transition: transform .12s ease, box-shadow .12s ease;
}
.store:hover { color: var(--on-key); background: var(--key-pale); }
.store:active { transform: translateY(3px); box-shadow: 0 2px 0 #a8701f, 0 8px 20px -12px rgba(249, 182, 79, .6); }
.store svg { width: 26px; height: 26px; flex: 0 0 auto; fill: currentColor; }
.store small { display: block; font: 600 11px/1.1 var(--ui); letter-spacing: .02em; opacity: .8; }
.store strong { display: block; color: inherit; font: 800 21px/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; }

.langs { display: grid; gap: 12px; margin: 0 0 8px; text-align: start; }
.lang {
  background: var(--panel); border: 1px solid var(--stroke); border-radius: 18px; padding: 16px 18px 4px;
}
.lang h2 { font-size: 22px; margin: 0 0 6px; }
.lang p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.65; }
.lang[lang="ar"], .lang[lang="ar"] h2 { font-family: var(--arabic); text-transform: none; letter-spacing: 0; }
.lang[lang="ar"] h2 { font-size: 21px; font-weight: 700; line-height: 1.5; }
.lang[lang="ar"] p { font-size: 17px; line-height: 1.9; }
.invite .footer { justify-content: center; text-align: center; margin-top: 36px; }

/* ---- Home (index.html) ------------------------------------------------------- */
.home-hero { padding: 54px 0 10px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .panel.lit .lede { font-size: 16.5px; line-height: 1.62; }
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .topbar { padding-top: 30px; }
  .doc-head { padding-top: 64px; }
}
