/* fursaiq.web.app — the static site of «فُرصة» (privacy, account deletion, support, share links).
   Tokens copy the app's (docs/FURSA-BRIEF.md §15): Nabbihni's glass, the logo green #bfd730,
   the RB font bundled here. Light and dark follow the device. No script is needed to read any page. */

@font-face {
  font-family: "RB";
  src: url("/fonts/RB-Regular.ttf") format("truetype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RB";
  src: url("/fonts/RB-Bold.ttf") format("truetype");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg-end: #eceef0;
  --bg-image:
    radial-gradient(circle at 0% 0%, rgba(220, 232, 150, 0.55) 0%, rgba(220, 232, 150, 0) 34%),
    radial-gradient(circle at 100% 0%, rgba(214, 217, 222, 0.85) 0%, rgba(214, 217, 222, 0) 30%),
    radial-gradient(circle at 50% 100%, rgba(191, 215, 48, 0.14) 0%, rgba(191, 215, 48, 0) 26%),
    linear-gradient(180deg, #fafbfa 0%, #eceef0 100%);
  --surface: rgba(255, 255, 255, 0.62);
  --surface-soft: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.72);
  --border-soft: rgba(120, 128, 140, 0.22);
  --shadow: 0 20px 48px rgba(23, 26, 31, 0.08);
  --highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 40%);
  --text: #14171c;
  --muted: #4b5158;
  --soft: #6b7280;
  --accent: #bfd730;
  --accent-soft: rgba(191, 215, 48, 0.2);
  --accent-text: #535e12;
  --button-bg: #14171c;
  --button-text: #fbfdf7;
  --radius-paper: 24px;
  --radius-row: 18px;
  --radius-header: 26px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-end: #0b0d10;
    --bg-image:
      radial-gradient(circle at 0% 0%, rgba(191, 215, 48, 0.1) 0%, rgba(191, 215, 48, 0) 34%),
      radial-gradient(circle at 100% 0%, rgba(120, 128, 140, 0.14) 0%, rgba(120, 128, 140, 0) 30%),
      linear-gradient(180deg, #14171c 0%, #0b0d10 100%);
    --surface: rgba(24, 27, 32, 0.66);
    --surface-soft: rgba(24, 27, 32, 0.52);
    --border: rgba(255, 255, 255, 0.14);
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 50px rgba(8, 10, 14, 0.36);
    --highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 42%);
    --text: #f5f6f7;
    --muted: #d9dcdf;
    --soft: #9aa1a9;
    --accent-soft: rgba(191, 215, 48, 0.18);
    --accent-text: #bfd730;
    --button-bg: #bfd730;
    --button-text: #14171c;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* The app's background covers the first screen; below it the gradient's own end colour
   continues, so there is no seam. No fixed attachment: phones repaint it badly. */
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-end);
  background-image: var(--bg-image);
  background-repeat: no-repeat;
  background-size: 100% 100vh;
  color: var(--text);
  font-family: "RB", system-ui, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  font-variant-numeric: lining-nums;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -100px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.page {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 16px var(--gutter) 48px;
}

/* ── header ─────────────────────────────────────────────── */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 18px;
  margin-bottom: 24px;
  border-radius: var(--radius-header);
  background: var(--surface);
  background-image: var(--highlight);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  color: var(--text);
  text-decoration: none;
}

.logo {
  display: block;
  height: 44px;
  width: auto;
}

.logo .ink {
  fill: currentColor;
}

.logo .dot {
  fill: #bfd730;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 2px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* ── papers ─────────────────────────────────────────────── */

.paper {
  position: relative;
  margin: 0 0 20px;
  padding: 24px clamp(18px, 4vw, 32px);
  border-radius: var(--radius-paper);
  background: var(--surface);
  background-image: var(--highlight);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.paper > :first-child {
  margin-top: 0;
}

.paper > :last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.4;
}

h1 {
  font-size: clamp(26px, 6vw, 34px);
  margin: 0 0 8px;
}

h2 {
  font-size: 22px;
  margin: 32px 0 8px;
}

h3 {
  font-size: 18px;
  margin: 20px 0 4px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
}

.meta {
  color: var(--soft);
  font-size: 15px;
}

ul,
ol {
  padding-inline-start: 1.4em;
}

li {
  margin: 4px 0;
}

li::marker {
  color: var(--soft);
}

strong {
  font-weight: 700;
}

hr {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 28px 0;
}

/* ── pieces ─────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding-top: 36px;
  padding-bottom: 36px;
}

.hero .logo {
  height: clamp(96px, 26vw, 132px);
  margin: 0 auto 20px;
  color: var(--text);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  background: var(--button-bg);
  color: var(--button-text);
  border: 0;
}

/* Not a link yet: the store page opens to the public only after release. */
.pill.soon {
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px dashed var(--border-soft);
  cursor: default;
}

.pill-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin: 0 0 20px;
}

.cards .paper {
  margin: 0;
}

.cards h2 {
  margin-top: 0;
  font-size: 20px;
}

.tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  margin: 10px 0;
  padding: 10px 56px 10px 16px;
  border-radius: var(--radius-row);
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 14px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #14171c;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

.note {
  padding: 12px 16px;
  border-radius: var(--radius-row);
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  color: var(--muted);
}

bdi,
.ltr {
  unicode-bidi: isolate;
}

.ltr {
  direction: ltr;
  display: inline-block;
}

.found {
  font-size: 20px;
  font-weight: 700;
}

.site-footer {
  margin-top: 32px;
  text-align: center;
  color: var(--soft);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-bottom: 8px;
}

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

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .site-header {
    justify-content: center;
  }
}
