/* apps.nhmsv.net — the list (design «أ»: neutral, each app's identity from its own images)
   and the app page (design «ب»: the app's own colours, from /<slug>/theme.css). Fonts: OFL, in fonts/. */
@font-face { font-family: "Tajawal"; font-weight: 400; font-display: swap; src: url(fonts/tajawal-400-arabic.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; }
@font-face { font-family: "Tajawal"; font-weight: 400; font-display: swap; src: url(fonts/tajawal-400-latin.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: "Tajawal"; font-weight: 500; font-display: swap; src: url(fonts/tajawal-500-arabic.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; }
@font-face { font-family: "Tajawal"; font-weight: 500; font-display: swap; src: url(fonts/tajawal-500-latin.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: "Tajawal"; font-weight: 700; font-display: swap; src: url(fonts/tajawal-700-arabic.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; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-display: swap; src: url(fonts/tajawal-700-latin.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: "Tajawal"; font-weight: 800; font-display: swap; src: url(fonts/tajawal-800-arabic.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; }
@font-face { font-family: "Tajawal"; font-weight: 800; font-display: swap; src: url(fonts/tajawal-800-latin.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: "Reem Kufi"; font-weight: 700; font-display: swap; src: url(fonts/reem-kufi-700-arabic.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; }
@font-face { font-family: "Reem Kufi"; font-weight: 700; font-display: swap; src: url(fonts/reem-kufi-700-latin.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; }

:root {
  --bg: #f6f5f2; --surface: #ffffff; --surface-2: #efede8; --line: #e2dfd8; --text: #1c1f24; --muted: #6b6f76;
  --ink: #1c1f24; --ink-text: #ffffff; --gold: #b8913a;
  --shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 8px 24px rgba(20, 22, 26, .06);
  /* the app page's own colours; /<slug>/theme.css replaces them */
  --app-bg: #0c2a1e; --app-fg: #f3ead6; --app-muted: rgba(243, 234, 214, .72); --app-accent: #e0b25a; --app-accent-text: #2a1a06;
  --font: "Tajawal", "Segoe UI", Tahoma, system-ui, sans-serif; --display: "Reem Kufi", "Tajawal", Tahoma, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121316; --surface: #1a1c20; --surface-2: #22252a; --line: #2d3036; --text: #ecebe7; --muted: #9a9ea6; --ink: #ecebe7; --ink-text: #121316; --gold: #d6b25e; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25); color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.75; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: var(--bg); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; }
.brand b { font-weight: 800; }
.brand small { color: var(--muted); font-size: 14px; }
.foot { border-top: 1px solid var(--line); padding-block: 24px; text-align: center; font-size: 14px; color: var(--muted); margin-top: 56px; }
.foot a { font-weight: 700; text-decoration: none; color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.btn.primary { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }

/* ───────── the list (أ) ───────── */
.list .intro { padding-block: 48px 24px; }
.list h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.25; margin: 0 0 12px; font-weight: 800; text-wrap: balance; }
.list h1 span { color: var(--muted); font-weight: 500; }
.list .intro p { color: var(--muted); max-width: 40em; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.pills li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 14px; font-size: 15px; }
.pills li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.filters { display: flex; gap: 8px; margin-block: 8px 20px; }
.filters a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px; font-size: 15px; color: var(--muted); text-decoration: none; }
.filters a[aria-current] { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card .cover { position: relative; display: block; aspect-ratio: 1021 / 400; background: var(--surface-2); }
.card .cover > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.card .state { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--surface); border-radius: 999px; padding: 0 12px; font-size: 13px; font-weight: 700; }
.card .icon { position: absolute; bottom: -28px; inset-inline-end: 18px; width: 64px; height: 64px; border-radius: 16px; border: 3px solid var(--surface); object-fit: cover; background: var(--surface-2); }
.card .body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h2 { margin: 0; font-size: 20px; }
.card h2 a { text-decoration: none; }
.card .sub { margin: -8px 0 0; font-size: 14px; color: var(--muted); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { background: var(--surface-2); border-radius: 999px; padding: 0 12px; font-size: 13px; color: var(--muted); }
.card .price { color: var(--muted); font-size: 14px; }
.card .price b { color: var(--text); font-size: 19px; }
.card .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 6px; }
.card.soon { background: transparent; border-style: dashed; box-shadow: none; }
.card.soon .cover { background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, transparent 14px 28px); }
.list .h { font-size: clamp(24px, 3.4vw, 34px); margin: 56px 0 4px; }
.list section > .muted { margin: 0 0 20px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; }
.steps li b { font-size: 17px; }
.steps li b::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); margin-inline-end: 10px; font-size: 14px; }
.steps li span { color: var(--muted); font-size: 15px; }
.faq { max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* ───────── the app page (ب): its own colours ───────── */
body.site-app { background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--app-bg), #ffffff 8%), var(--app-bg) 60%) fixed var(--app-bg); color: var(--app-fg); color-scheme: dark; }
.site-app .top { background: color-mix(in srgb, var(--app-bg), transparent 10%); border-bottom-color: color-mix(in srgb, var(--app-accent), transparent 65%); }
.site-app .brand b { font-family: var(--display); color: var(--app-accent); }
.site-app .ver { margin-inline-start: auto; color: var(--app-muted); font-size: 14px; }
.site-app .foot { border-top-color: color-mix(in srgb, var(--app-accent), transparent 70%); color: var(--app-muted); }
.site-app .foot a { color: var(--app-accent); }
.site-app .muted { color: var(--app-muted); }
.app { display: grid; gap: 40px; padding-top: 36px; }
.app h2 { font-family: var(--display); color: var(--app-accent); font-size: 24px; margin: 0 0 14px; }
.hero { display: grid; gap: 28px; align-items: center; }
.hero-text { display: grid; gap: 16px; }
.who { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 700; }
.who img { border-radius: 12px; border: 2px solid var(--app-accent); }
.who small { display: block; font-weight: 400; color: var(--app-muted); font-size: 14px; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(30px, 5vw, 48px); line-height: 1.35; text-wrap: balance; }
.lead { margin: 0; color: var(--app-muted); font-size: 18px; max-width: 34em; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; max-width: 520px; }
.btn.gold { background: linear-gradient(180deg, color-mix(in srgb, var(--app-accent), #ffffff 25%), var(--app-accent)); color: var(--app-accent-text); border: 0; box-shadow: 0 6px 20px color-mix(in srgb, var(--app-accent), transparent 70%); }
.btn.ghost { background: transparent; color: var(--app-accent); border-color: var(--app-accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: 14px; border: 1px solid color-mix(in srgb, var(--app-accent), transparent 60%); border-radius: 999px; padding: 2px 12px; color: var(--app-muted); background: rgba(0, 0, 0, .18); }
.hero .cover { border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--app-accent), transparent 40%), 0 24px 60px rgba(0, 0, 0, .45); }
.hero .cover img { width: 100%; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots img { height: 420px; max-height: 70vh; width: auto; max-width: none; border-radius: 18px; scroll-snap-align: start; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.about p { margin: 0 0 12px; max-width: 46em; color: var(--app-muted); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.features div { border: 1px solid color-mix(in srgb, var(--app-accent), transparent 65%); border-radius: 16px; padding: 14px 16px; background: rgba(0, 0, 0, .18); display: grid; gap: 4px; }
.features b { font-size: 17px; }
.features span { color: var(--app-muted); font-size: 15px; }
.twocol { display: grid; gap: 32px; align-items: start; }
.table { border: 1px solid color-mix(in srgb, var(--app-accent), transparent 60%); border-radius: 16px; overflow: hidden; }
.table div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.table div:nth-child(odd) { background: rgba(0, 0, 0, .2); }
.table .val { color: var(--app-accent); font-weight: 700; }
.ticket { position: relative; border-radius: 18px; background: #f6efdf; color: #2a2418; padding: 16px 22px; display: grid; gap: 4px; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--app-bg); }
.ticket::before { right: -10px; } .ticket::after { left: -10px; }
.ticket small { color: #6b5a3a; font-size: 14px; }
.ticket .offer { color: #8a5a12; font-weight: 700; }
.ticket .pr { margin: 0; font-family: var(--display); font-size: 36px; line-height: 1.25; }
.ticket .pr s { font-size: 20px; color: #8d7d5d; }
.file { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0 0; font-size: 15px; }
.file dt { color: var(--app-muted); }
.file dd { margin: 0; min-width: 0; }
.file dd.num { text-align: right; }
.file .hash { font-family: var(--mono); font-size: 12px; direction: ltr; text-align: left; word-break: break-all; color: var(--app-muted); }
.releases { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid color-mix(in srgb, var(--app-accent), transparent 60%); }
.releases li { position: relative; padding: 0 20px 18px; }
.releases li::before { content: ""; position: absolute; inset-inline-start: -8px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--app-bg); border: 2px solid var(--app-muted); }
.releases li.live::before { background: var(--app-accent); border-color: var(--app-accent); }
.releases p { margin: 4px 0; color: var(--app-muted); }
.releases a { color: var(--app-accent); font-weight: 700; font-size: 15px; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 1.05fr; gap: 44px; }
  .twocol { grid-template-columns: 1.2fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .15s, box-shadow .15s; }
  .card:not(.soon):hover { transform: translateY(-2px); }
}
