/* مرشد — murshedai.com
   Same identity as the app: white glass on light grey, charcoal ink, black hero with the mentor. */
@font-face { font-family: Tajawal; src: url(../fonts/Tajawal-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Tajawal; src: url(../fonts/Tajawal-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Tajawal; src: url(../fonts/Tajawal-ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --bg: #f3f4f6; --glass: rgba(255,255,255,.78); --line: rgba(17,24,39,.08);
  --ink: #111827; --muted: #5b6270; --night: #141414;
  --radius: 24px; --wrap: 1040px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.75 Tajawal, -apple-system, "SF Pro Text", system-ui, sans-serif; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; background: #fff; padding: 8px 14px; border-radius: 12px; z-index: 10; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(243,244,246,.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--glass); }

/* hero: dark like the app icon; the page below is light — the guide lights the way */
.hero { background: var(--night); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding-block: 72px; }
.hero h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.15; margin: 0 0 12px; font-weight: 800; }
.hero p { color: #c9cdd4; font-size: clamp(17px, 2.4vw, 20px); margin: 0 0 28px; max-width: 30em; }
.hero .art { width: min(340px, 80%); margin-inline: auto; }
.ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ring 1.6s cubic-bezier(.65,0,.35,1) .3s forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; stroke-dashoffset: 0; } }

.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; border-radius: 16px; padding: 14px 22px; border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.btn.light { background: #fff; color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn[aria-disabled="true"] { opacity: .9; cursor: default; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.14); margin-inline-start: 4px; }

/* sections */
section.block { padding-block: 56px; }
.eyebrow { color: var(--muted); font-weight: 700; margin: 0 0 6px; }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.3; margin: 0 0 20px; font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--glass); border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px rgba(17,24,39,.06); }
.card h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: var(--glass); border-radius: var(--radius); padding: 24px; border: 1px solid rgba(255,255,255,.9); }
.steps li::before { content: counter(s, arabic-indic); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps b { display: block; font-size: 19px; }
.steps span { color: var(--muted); }
.note { background: #fff8ec; border-radius: 18px; padding: 16px 20px; color: #5c4a1f; }

/* documents (terms, privacy, support) */
.doc { padding-block: 40px 64px; }
.doc .paper { background: var(--glass); border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); box-shadow: 0 10px 30px rgba(17,24,39,.05); }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 4px; font-weight: 800; }
.doc .date { color: var(--muted); margin: 0 0 24px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; scroll-margin-top: 80px; }
.doc p, .doc li { color: #2b313c; }
.doc ol, .doc ul { padding-inline-start: 1.4em; }
.doc li { margin-bottom: 6px; }
.toc { columns: 2; column-gap: 24px; padding: 18px 22px; background: rgba(255,255,255,.6); border-radius: 18px; margin: 0 0 8px; list-style: none; }
.toc a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; }
.toc a:hover { color: var(--ink); }
.table { overflow-x: auto; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 800; background: rgba(17,24,39,.04); }
td:first-child { font-weight: 700; width: 32%; }
.faq details { background: rgba(255,255,255,.6); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 800; cursor: pointer; }
.mail { font-weight: 800; direction: ltr; unicode-bidi: isolate; }

/* status pages */
.status { min-height: calc(100vh - 64px - 120px); display: grid; place-items: center; text-align: center; padding: 48px 0; }
.status .tile { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 20px; }
.status h1 { font-size: 30px; margin: 0 0 8px; }
.status p { color: var(--muted); margin: 0 auto 24px; max-width: 28em; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-block: 48px; }
  .hero p { margin-inline: auto; }
  .hero .art { width: min(260px, 70%); grid-row: 1; }
  .cards, .steps { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  /* tables become stacked rows on phones: label on top, text below — nothing cut off */
  .table { overflow: visible; }
  table thead { display: none; }
  table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  table td { display: block; border: 0; padding: 2px 0; width: auto !important; }
  table td:first-child { font-weight: 800; color: var(--ink); }
  .top .wrap { flex-wrap: wrap; gap: 4px; padding-block: 8px; }
  .nav { width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: 0; }
  .nav a { white-space: nowrap; padding: 6px 8px; font-size: 14px; }
  .top .wrap { min-height: 56px; }
}
