/* ---------- fonts (self-hosted woff2 from @fontsource 5.3.0, SIL OFL 1.1, licences in ../fonts/) ---------- */
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Jomhuria'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/jomhuria-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }

/*
  Invite Instinct LP, Oligence "light editorial ladder" layout.
  Visual system taken from the owner's reference prototype (design tokens, hero, vertical ladder with numbered
  nodes, tier chips, chart). Brand colours: teal #0BA89C, indigo #5B47D6, paper #FAFAF8, band #F1F0EC, ink #101114.
  Fonts are self-hosted above; the reference's Latin faces (Plus Jakarta Sans, JetBrains Mono) are replaced by
  IBM Plex Sans until the owner's font review. Small white text only sits on ink-shaded gradient (contrast).
*/
:root {
  --bg: #FAFAF8;
  --band: #F1F0EC;
  --ink: #101114;
  --ink-2: #1B1C21;
  --mute: #6A6C72;
  --line: #E6E4DE;
  --line-strong: #CFCCC4;
  --teal: #0BA89C;
  --teal-ink: #04796f;
  --indigo: #5B47D6;
  --mint: #E3F3F1;
  --mint-line: #7CCFC7;
  --mint-hl: rgba(160, 240, 228, .85);
  --white: #fff;
  --err: #B3261E;
  --err-bg: #fdf3f3;
  --grad: linear-gradient(135deg, #0BA89C 0%, #2F86C0 48%, #5B47D6 100%);
  --shade: rgba(10, 10, 15, .16);
  --grad-shaded: linear-gradient(var(--shade), var(--shade)), var(--grad);
  --chip-shade: rgba(10, 10, 15, .20);
  --f-ar: 'IBM Plex Sans Arabic', 'IBM Plex Sans', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --f-en: 'IBM Plex Sans', 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  --r: 22px;
  --r-sm: 14px;
  --maxw: 900px;
  --gutter: 20px;
  --ease: cubic-bezier(.16, .84, .44, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-ar); font-size: 17px; line-height: 1.75; overflow-wrap: anywhere;
}
[lang="en"] { font-family: var(--f-en); }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.5; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 12px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
#r1, #r2, #r3, #get-card, #donate-card, #donor-name { scroll-margin-top: 88px; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- pills and buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 24px; border-radius: 99px; border: 0;
  font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}

.btn {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 8px 20px; border-radius: 99px; border: 0;
  font-weight: 700; font-size: 19px; line-height: 1.3; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: filter .15s ease, background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn-grad { background: var(--grad-shaded); color: var(--white); }
.btn-grad:hover:not([disabled]) { filter: brightness(1.06); }
.btn-grad[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); }
.btn-teal { background: var(--teal-ink); color: var(--white); }
.btn-teal:hover { background: #036760; }
.btn-line { background: var(--white); border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--band); }
.btn[aria-busy="true"] { opacity: .6; cursor: progress; }
/* Points at the donate card: below the button on narrow screens, beside it (to the left in RTL) on wide ones. */
.btn-arrow { width: 22px; height: 22px; flex: none; }
@media (min-width: 761px) {
  .btn-arrow { transform: rotate(90deg); }
  html[dir="ltr"] .btn-arrow { transform: rotate(-90deg); }
}

/* ---------- header (sticky, paper glass) ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 250, 248, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo {
  direction: ltr; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  text-decoration: none; font-family: var(--f-en); font-weight: 700; font-size: 22px; letter-spacing: -.02em;
}
.logo svg { width: 26px; height: 30px; flex: none; }

/* language switch: names the language it switches to */
.lang {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 99px; background: var(--mint); border: 1.5px solid var(--mint-line); color: #14403C;
  font-size: 16px; font-weight: 600; line-height: 1; cursor: pointer;
}
.lang i { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); flex: none; }
.lang:hover { border-color: var(--teal-ink); }

/* ---------- eyebrow (kicker with the brand triangle) ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 19px; font-weight: 700; line-height: 1.5; }
.eyebrow::before { content: ""; flex: none; width: 0; height: 0; border-block: 8px solid transparent; border-left: 13px solid currentColor; }
.eyebrow-dark { color: var(--mute); font-size: 17px; font-weight: 600; }
.eyebrow-dark::before { border-left-color: var(--teal); }

/* ---------- hero ---------- */
.hero { background: var(--grad); color: var(--white); padding: 44px 0 52px; }
.hero :focus-visible { outline-color: var(--white); }
.hero h1 {
  margin: 20px 0 0; max-width: 17em;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.2rem); line-height: 1.45;
}
.hl {
  -webkit-box-decoration-break: clone; box-decoration-break: clone; color: #E9FFFB;
  background: linear-gradient(transparent 82%, var(--mint-hl) 82%, var(--mint-hl) 94%, transparent 94%);
}
.nw { white-space: nowrap; }
/* 24px keeps the sentence WCAG large text on the raw gradient */
.sub { margin-top: 18px; max-width: 28em; font-size: 24px; font-weight: 500; line-height: 1.55; text-wrap: balance; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li {
  border: 1.5px solid rgba(255, 255, 255, .38); background: var(--chip-shade); border-radius: 99px;
  padding: 6px 16px; font-size: 16px; font-weight: 500; white-space: nowrap;
}
.cta-white { background: var(--white); color: var(--ink); min-height: 56px; padding: 0 32px; font-size: 18px; margin-top: 30px; }
.cta-white:hover { background: var(--band); }

/* ---------- the ladder ---------- */
.ladder-sec { padding: 60px 0 20px; }
.ladder-sec h2 { margin: 16px 0 8px; font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.2rem); }
.lead { color: var(--mute); max-width: 36em; }
.ladder { margin-top: 34px; display: grid; gap: 18px; }
.rung { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.rail { position: relative; display: flex; justify-content: center; }
.rail::after { content: ""; position: absolute; top: 44px; bottom: -18px; width: 2px; background: var(--line); }
.rung:last-child .rail::after { display: none; }
.node {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-shaded); color: var(--white);
  display: grid; place-items: center; font-family: var(--f-en); font-weight: 700; font-size: 18px; line-height: 1;
}
.card {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px;
}
.card > * { margin: 0; }
.tier {
  display: inline-flex; align-self: flex-start; padding: 3px 14px; border-radius: 99px;
  background: var(--mint); border: 1px solid var(--mint-line); color: var(--teal-ink);
  font-size: 14px; font-weight: 700;
}
.card h3 { font-size: 24px; }
.card .d { color: var(--mute); font-size: 16px; }
.hint { border-top: 1px solid var(--line); padding-top: 12px; color: var(--mute); font-size: 14px; }
.panel { display: flex; flex-direction: column; gap: 14px; }
.panel > * { margin: 0; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500; }
.check input { width: 22px; height: 22px; margin: 4px 0 0; flex: none; accent-color: var(--indigo); cursor: pointer; }

/* the held invite as a ticket: the one memorable object on the page */
.ticket { position: relative; overflow: hidden; padding: 22px 22px 20px; border-radius: var(--r-sm); background: var(--grad-shaded); color: var(--white); }
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); transform: translateY(-50%);
}
.ticket::before { inset-inline-start: -11px; }
.ticket::after { inset-inline-end: -11px; }
.ticket .mark { display: block; width: 28px; height: 33px; margin-bottom: 10px; }
.ticket p { margin: 0 0 16px; font-size: 19px; font-weight: 700; line-height: 1.5; }
.ticket :focus-visible { outline-color: var(--white); }
#claim-link:not([href]) { cursor: default; }
[data-panel="holding"]:not([hidden]) .ticket { animation: ticket-in .55s var(--ease) both; }
@keyframes ticket-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.after { color: var(--mute); font-size: 15px; }
.row2 { display: grid; grid-template-columns: 1fr; gap: 10px; }

.note { padding: 14px 16px; border-radius: var(--r-sm); font-size: 16px; }
.note small { display: block; margin-top: 4px; font-size: 15px; color: var(--mute); }
.note-ok { background: var(--mint); border: 1px solid var(--mint-line); }
.note-wait { background: var(--band); border: 1px solid var(--line); }
.note-err { background: var(--err-bg); border: 1px solid rgba(179, 38, 30, .35); color: #7A1812; }
.note ul { margin: 8px 0 0; padding-inline-start: 20px; }

.label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--mute); }
.field {
  display: block; width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg);
}
.field:hover { border-color: var(--line-strong); }
.field:focus-visible { outline-offset: 1px; border-color: var(--indigo); }
.field::placeholder { color: rgba(16, 17, 20, .42); opacity: 1; }
.field-links { min-height: 112px; resize: vertical; direction: ltr; text-align: left; font-family: var(--f-en); line-height: 1.6; }

#donate-result:empty, #donor-summary:empty { display: none; }
#donate-result > * + * { margin-top: 10px; }
#donate-result ul { margin: 6px 0 0; padding-inline-start: 20px; }
.fine { color: var(--mute); font-size: 15px; }
#donor-summary { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--mute); font-size: 15px; }

/* ---------- rung 3: counters and chart ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.stat b {
  display: block; font-size: 28px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--teal-ink), var(--indigo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; font-size: 14px; line-height: 1.4; color: var(--mute); }
.confirmed { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--teal-ink); }
.confirmed svg { width: 18px; height: 18px; flex: none; margin-top: 5px; }
.confirmed b { font-weight: 700; }

.chart { display: grid; gap: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.spot { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--grad-shaded); color: var(--white); }
.spot-l { font-size: 14px; font-weight: 600; }
.spot b { font-size: 24px; line-height: 1.4; overflow-wrap: anywhere; }
.spot #top-val { font-size: 16px; font-weight: 500; }
.ch-h { margin-bottom: 10px; color: var(--mute); font-size: 14px; font-weight: 600; }
.pool-bar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: #EAE8E2; }
.pool-bar > i { display: block; height: 100%; width: 0; }
#pb-used { background: var(--grad); }
#pb-free { background: var(--mint-line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--mute); }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.dot.used { background: var(--indigo); }
.dot.free { background: var(--mint-line); }

.bars { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.brow { display: grid; grid-template-columns: minmax(70px, 104px) 1fr 54px; gap: 10px; align-items: center; font-size: 14px; }
.bn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow.first .bn { font-weight: 700; }
.btrack { display: block; height: 14px; min-width: 14px; border-radius: 99px; background: var(--mint-line); overflow: hidden; }
.btrack > i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.bv { text-align: end; color: var(--mute); font-variant-numeric: tabular-nums; }
.lb-empty { padding: 20px 8px; text-align: center; color: var(--mute); font-size: 15px; }

/* ---------- privacy ---------- */
.trust { padding: 40px 0 8px; }
.trust h2 { margin: 14px 0 18px; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.priv { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.priv li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; font-size: 16px; color: var(--mute); }

/* ---------- footer (light, ruled) ---------- */
.foot { margin-top: 50px; border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--mute); font-size: 14px; }
.foot .wrap { display: grid; gap: 8px; }
.foot .about { color: var(--ink); font-size: 16px; max-width: 36em; }
.foot .ask { font-weight: 700; font-size: 18px; }
.foot a { color: var(--indigo); font-weight: 600; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- English (left to right) ---------- */
html[lang="en"] body { font-family: var(--f-en); line-height: 1.6; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4 { line-height: 1.25; }
html[lang="en"] .hero h1 { line-height: 1.2; letter-spacing: -.01em; }
html[lang="en"] .sub { line-height: 1.4; }
html[lang="en"] .eyebrow { letter-spacing: .01em; }

/* ---------- wider screens ---------- */
@media (min-width: 521px) {
  .row2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 761px) {
  .hero { padding: 56px 0 60px; }
  .priv { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .rung { grid-template-columns: 36px 1fr; gap: 12px; }
  .node { width: 36px; height: 36px; font-size: 16px; }
  .rail::after { top: 36px; }
  .card { padding: 20px; }
  .ladder-sec { padding-top: 44px; }
}
@media (max-width: 520px) {
  /* three counters share a phone row: trim the side padding so labels like "مساهمين" stay whole */
  .stats { gap: 8px; }
  .stat { padding: 10px 8px; }
  .stat b { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
