/* The public site's one stylesheet. Token values are the app's, copied from
   apps/web/src/styles/theme.css (later apps/mobile/src/theme) — this site has no
   build step to import them with, so a change to the app's palette is repeated
   here by hand. Roles and rules: docs/design-system.md. Logical properties only:
   every page sets its own `dir`. */
:root {
  --bg: #111417;
  --hair: rgba(255, 255, 255, 0.07);
  --hair2: rgba(255, 255, 255, 0.13);
  --t1: #f3f5f7;
  --t2: #a3acb6;
  --t3: #6f7982;
  --tint-a: #10307c;
  --tint-b: #0b1d4b;
  --motif: #7fa6ff;
  --font-ui: 'IBM Plex Sans Hebrew', 'IBM Plex Sans', system-ui, sans-serif;
  --font-display: 'Saira Condensed', var(--font-ui);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--t2);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--t1); }
a:hover { color: var(--t2); }
:focus-visible { outline: 2px solid var(--t1); outline-offset: 2px; }

/* ── documents: privacy, terms, delete-account, support ─────────────────── */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  color: var(--t2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.brand img { inline-size: 22px; block-size: 22px; }

h1 { margin: 0; font-size: 24px; font-weight: 600; color: var(--t1); }
h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--t1); }
p { margin: 0; }
.updated { font-size: 13px; color: var(--t3); }
ul, ol { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 4px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.foot {
  margin-block-start: 12px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
}
.foot a { color: var(--t2); min-height: 44px; display: inline-flex; align-items: center; }
.foot .lang { margin-inline-start: auto; }

/* ── the invite page ────────────────────────────────────────────────────── */
.join {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--tint-a), var(--tint-b) 62%, var(--bg));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 24px 32px;
  color: var(--t2);
}
.join .motif {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 440px;
  inline-size: 100%;
  color: var(--motif);
  opacity: 0.9;
  pointer-events: none;
}
.join > :not(.motif) { position: relative; }
.join .crest { inline-size: 112px; block-size: auto; }
.join .logotype { margin-block-start: 12px; font-size: 18px; font-weight: 600; color: var(--t1); }
.join .logotype span { color: var(--t2); font-weight: 400; }
.join .invite { margin-block-start: 56px; font-size: 14px; }
.join .league { margin-block-start: 4px; font-size: 24px; font-weight: 600; color: var(--t1); overflow-wrap: anywhere; }
.join .code-label { margin-block-start: 40px; font-size: 13px; color: var(--t3); }
.join .code {
  margin-block-start: 4px;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--t1);
}
.join .copy {
  margin-block-start: 12px;
  min-height: 44px;
  padding: 0 20px;
  font: 500 14px var(--font-ui);
  color: var(--t1);
  background: none;
  border: 1px solid var(--hair2);
  border-radius: 6px;
  cursor: pointer;
}
.join .how { margin-block-start: 40px; max-inline-size: 320px; font-size: 14px; }
.join .stores { margin-block-start: 20px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.join .stores a {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hair2);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.join .soon { margin-block-start: 20px; font-size: 13px; color: var(--t3); }
.join .foot { margin-block-start: auto; border: 0; justify-content: center; }
.join .foot .lang { margin-inline-start: 0; }
[hidden] { display: none !important; }
