/* perfectcircle.site: one stylesheet, light only. Text in Plex; headings in Readex Pro (Latin and Arabic). */
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(/fonts/plex-sans-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url(/fonts/plex-sans-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url(/fonts/plex-sans-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(/fonts/plex-sans-arabic-400.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: "Plex"; font-weight: 500; font-display: swap; src: url(/fonts/plex-sans-arabic-500.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: "Plex"; font-weight: 600; font-display: swap; src: url(/fonts/plex-sans-arabic-600.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: "Readex"; font-weight: 160 700; font-display: swap; src: url(/fonts/readex.woff2) format("woff2-variations"), url(/fonts/readex.woff2) format("woff2"); }

/* Light only (Seif, 2026-11-24: "I dont like the dark look"). */
:root {
  --bg: #f3f1ec; --paper: #fbfaf7; --ink: #0f0f0e; --dim: #67655f; --line: #d8d5cd;
  --accent: #ff4f1f; --display: "Readex", "Plex", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Plex", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
:lang(ar) body { font-size: 18px; line-height: 1.75; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.w { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 12px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 20; }
.d { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; }
:lang(ar) .d { letter-spacing: 0; }
.label { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
:lang(ar) .label { letter-spacing: 0; text-transform: none; font-size: 15px; }
.arrow { display: inline-block; transition: transform .35s var(--ease); }
:lang(ar) .arrow { transform: scaleX(-1); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* The header: stays at the top, frosted */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; }
.top .w { display: flex; justify-content: space-between; align-items: center; gap: 20px; height: 72px; font-size: 15px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.mark svg { width: 24px; height: 24px; flex: none; color: var(--accent); transition: transform .6s var(--ease); }
.mark:hover svg { transform: rotate(180deg) scale(1.1); }
.top nav { display: flex; align-items: center; gap: 28px; color: var(--dim); }
.top nav a { text-decoration: none; transition: color .2s; }
.top nav a:hover { color: var(--ink); }
.links { display: flex; gap: 28px; }
.langs { display: flex; gap: 4px; }
.langs a { padding: 4px 8px; border-radius: 99px; }
.langs a[aria-current] { color: var(--ink); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; background: var(--ink); color: var(--paper) !important; text-decoration: none; font-weight: 500; white-space: nowrap; transition: transform .3s var(--ease), background .3s; }
.pill:hover { background: var(--accent); transform: translateY(-1px); }
.pill:hover .arrow { transform: translateX(3px); }
:lang(ar) .pill:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* Home: the opening, with the circle drawing itself around a word */
.hero { padding: 96px 0 40px; }
.hero .label { display: flex; align-items: center; gap: 10px; }
.hero .label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.mega { font-family: var(--display); font-weight: 500; font-size: clamp(52px, 10.4vw, 164px); line-height: .94; letter-spacing: -.055em; margin-top: 28px; max-width: 11ch; animation: rise 1s var(--ease) both; }
:lang(ar) .mega { line-height: 1.22; letter-spacing: 0; max-width: 12ch; font-weight: 600; }
.ring { position: relative; display: inline-block; white-space: nowrap; }
.ring svg { position: absolute; left: 50%; top: 52%; width: calc(100% + .5em); height: 1.25em; transform: translate(-50%, -50%) rotate(-4deg); overflow: visible; pointer-events: none; }
/* The ring draws itself by a sweep that uncovers it around its centre, from the right, clockwise. Not a dash:
   the ellipse is stretched to the word, and browsers measure a dash on it in the wrong units, so it never met. */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
.ring svg { --sweep: 0deg; -webkit-mask: conic-gradient(from 90deg, #000 var(--sweep), transparent 0); mask: conic-gradient(from 90deg, #000 var(--sweep), transparent 0); animation: draw 1.5s .45s cubic-bezier(.65, 0, .35, 1) forwards; }
.ring ellipse { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
.lede { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-top: 64px; }
.lede p:first-child { font-family: var(--display); font-size: clamp(22px, 2.3vw, 32px); line-height: 1.28; letter-spacing: -.02em; max-width: 26ch; }
:lang(ar) .lede p:first-child { letter-spacing: 0; line-height: 1.6; }
.lede p.dim { color: var(--dim); max-width: 40ch; }

/* Home: the stage, both apps' real screens, fanning out as you scroll */
.stage { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 70px 0 0; height: min(76vw, 720px); overflow: hidden; margin-top: 40px; perspective: 1400px; }
.stage::before { content: ""; position: absolute; left: 50%; top: 40px; width: min(92vw, 1040px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, var(--paper), transparent 62%); }
.stage .phone { position: relative; margin: 0 -26px; transform-origin: 50% 120%; }
.stage .phone:nth-child(1) { --r: -14deg; --y: 120px; z-index: 1; }
.stage .phone:nth-child(2) { --r: -7deg; --y: 40px; z-index: 2; }
.stage .phone:nth-child(3) { --r: 0deg; --y: 0px; z-index: 3; }
.stage .phone:nth-child(4) { --r: 7deg; --y: 40px; z-index: 2; }
.stage .phone:nth-child(5) { --r: 14deg; --y: 120px; z-index: 1; }
.stage .phone { transform: translateY(var(--y)) rotate(var(--r)); }

/* A phone: a real screen in a thin dark frame */
.phone { width: var(--w, 250px); flex: none; padding: calc(var(--w, 250px) * .03); border-radius: calc(var(--w, 250px) * .13); background: #0b0c0e; box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 40px 70px -30px rgba(20,16,8,.45), 0 14px 28px -14px rgba(20,16,8,.3); }
.phone img { width: 100%; border-radius: calc(var(--w, 250px) * .105); }
.p200 { --w: 200px; } .p230 { --w: 230px; } .p250 { --w: 250px; } .p270 { --w: 270px; } .p300 { --w: 300px; }

/* A browser: a real web page in a light frame */
.browser { border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 40px 80px -36px rgba(20,16,8,.45); }
.browser .bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #ecebe6; direction: ltr; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4d1c9; }
.browser .bar span { margin: 0 auto; font-size: 13px; color: var(--dim); background: var(--paper); padding: 3px 40px; border-radius: 7px; }
.browser img { width: 100%; }

/* Home: the work */
.work { padding: 120px 0 40px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-top: 1px solid var(--ink); padding-top: 22px; margin-bottom: 40px; }
.sec-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 5vw, 72px); letter-spacing: -.04em; line-height: 1; }
:lang(ar) .sec-head h2 { letter-spacing: 0; line-height: 1.3; }
.sec-head .n { font-family: var(--display); font-size: 20px; color: var(--dim); }
.card { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; min-height: 640px; border-radius: 32px; overflow: hidden; text-decoration: none; color: var(--fg); background: var(--bgc); margin-bottom: 28px; isolation: isolate; }
.card .txt { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; z-index: 2; }
.card .num { font-family: var(--display); font-size: 18px; opacity: .7; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: clamp(64px, 8.6vw, 132px); line-height: .9; letter-spacing: -.055em; margin-top: 14px; }
:lang(ar) .card h3 { letter-spacing: 0; line-height: 1.2; font-weight: 600; }
.card .line { font-size: 19px; line-height: 1.5; margin-top: 22px; max-width: 30ch; opacity: .85; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; padding: 6px 14px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); }
.card .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; padding: 13px 22px; border-radius: 99px; background: var(--hi); color: var(--hi-ink); align-self: flex-start; transition: transform .35s var(--ease); }
.card:hover .go { transform: translateY(-2px); }
.card:hover .go .arrow { transform: translateX(4px); }
:lang(ar) .card:hover .go .arrow { transform: scaleX(-1) translateX(4px); }
.card .art { position: relative; display: flex; justify-content: center; align-items: center; }
.card .art .phone { position: absolute; transition: transform .7s var(--ease); }
.card .art .phone:nth-of-type(1) { transform: translate(-58%, 8%) rotate(-6deg); }
.card .art .phone:nth-of-type(2) { transform: translate(52%, -6%) rotate(5deg); z-index: 2; }
.card:hover .art .phone:nth-of-type(1) { transform: translate(-64%, 4%) rotate(-9deg); }
.card:hover .art .phone:nth-of-type(2) { transform: translate(58%, -10%) rotate(8deg); }
.card .art .browser { position: absolute; width: 112%; inset-inline-start: 14%; top: 12%; transform: rotate(-2deg); opacity: .96; transition: transform .7s var(--ease); }
.card:hover .art .browser { transform: rotate(-3deg) translateY(-8px); }
.card .glow { position: absolute; z-index: -1; width: 760px; aspect-ratio: 1; border-radius: 50%; inset-inline-end: -180px; top: -120px; background: radial-gradient(circle, var(--glow), transparent 64%); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 8px 4px 72px; }
.facts b { display: block; font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; }
:lang(ar) .facts b { letter-spacing: 0; }
.facts span { color: var(--dim); font-size: 15px; }

/* Each app's colours, its own */
.c-dineri { --bgc: radial-gradient(120% 120% at 90% 10%, #1d6a45 0%, #114029 52%, #0b2c1c 100%); --fg: #f4f1e6; --hi: #f0cf7a; --hi-ink: #1b1405; --glow: rgba(240, 207, 122, .16); --tone: #12432b; }
.c-qibla { --bgc: radial-gradient(120% 120% at 85% 15%, #f3efe2 0%, #e2e2d6 55%, #cfd6cf 100%); --fg: #13252a; --hi: #13252a; --hi-ink: #f3efe2; --glow: rgba(196, 150, 70, .22); --tone: #dfe0d5; }

/* Home: what we do, as a band that moves */
.marquee { overflow: hidden; border-block: 1px solid var(--ink); padding: 26px 0; margin-top: 60px; direction: ltr; }
.marquee .track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(38px, 5vw, 72px); font-weight: 500; letter-spacing: -.04em; white-space: nowrap; display: flex; align-items: center; }
.marquee span::after { content: ""; width: .42em; height: .42em; border-radius: 50%; border: 3px solid var(--accent); margin: 0 .6em; }
.marquee:hover .track { animation-play-state: paused; }
.svc-label { margin-top: 56px; }
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; padding: 24px 0 120px; }
.svc li { border-top: 1px solid var(--line); padding: 22px 0 30px; }
.svc li i { font-style: normal; font-family: var(--display); color: var(--accent); font-size: 15px; }
.svc li b { display: block; font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -.02em; margin: 10px 0 6px; }
:lang(ar) .svc li b { letter-spacing: 0; }
.svc li span { color: var(--dim); }

/* Home: this site, measured */
.proof { background: var(--paper); border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; box-shadow: 0 0 0 1px var(--line); }
.proof h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -.04em; }
:lang(ar) .proof h2 { letter-spacing: 0; line-height: 1.35; }
.proof p { color: var(--dim); margin-top: 20px; max-width: 42ch; }
.proof ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proof li { border-radius: 20px; background: var(--bg); padding: 22px 24px; }
.proof li b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -.05em; }
.proof li b small { font-size: .45em; letter-spacing: 0; margin-inline-start: 4px; }
.proof li span { color: var(--dim); font-size: 15px; display: block; margin-top: 8px; }

/* Home: contact, a circle to press */
.contact { display: grid; place-items: center; text-align: center; padding: 140px 0 120px; }
.contact .label { margin-bottom: 26px; }
.big-o { display: grid; place-items: center; align-content: center; gap: 12px; width: min(84vw, 540px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--ink); text-decoration: none; transition: background .5s var(--ease), color .5s, transform .6s var(--ease), border-color .5s; }
.big-o b { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 5vw, 64px); letter-spacing: -.04em; line-height: 1.05; max-width: 9ch; }
:lang(ar) .big-o b { letter-spacing: 0; line-height: 1.35; }
.big-o span { color: var(--dim); transition: color .5s; }
.big-o:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.03) rotate(-2deg); }
.big-o:hover span { color: #fff; }
.contact p { margin-top: 30px; color: var(--dim); max-width: 40ch; }

footer { border-top: 1px solid var(--line); }
footer .w { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 30px 40px 48px; color: var(--dim); font-size: 14px; }

/* An app's page */
.app-hero { background: var(--bgc); color: var(--fg); border-radius: 0 0 40px 40px; position: relative; overflow: hidden; isolation: isolate; }
.app-hero .w { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; min-height: 720px; padding-top: 28px; padding-bottom: 0; }
.app-hero .txt { padding: 24px 0 72px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.back { display: inline-flex; gap: 8px; font-size: 15px; text-decoration: none; opacity: .75; }
.back:hover { opacity: 1; }
.app-hero .icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.app-hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(72px, 11vw, 176px); line-height: .88; letter-spacing: -.06em; margin-top: 26px; }
:lang(ar) .app-hero h1 { letter-spacing: 0; line-height: 1.2; font-weight: 600; }
.app-hero .line { font-size: 21px; line-height: 1.5; margin-top: 20px; max-width: 30ch; opacity: .88; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 99px; text-decoration: none; font-weight: 500; font-size: 15px; border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); transition: background .3s, transform .3s var(--ease); }
.btn:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); transform: translateY(-1px); }
.btn.main { background: var(--hi); color: var(--hi-ink); border-color: var(--hi); }
.btn.main:hover { background: var(--hi); filter: brightness(1.06); }
.app-hero .art { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.app-hero .art .phone { position: absolute; bottom: -60px; }
.app-hero .art .phone:nth-child(1) { transform: translateX(-62%) rotate(-8deg); bottom: -110px; }
.app-hero .art .phone:nth-child(2) { z-index: 2; }
.app-hero .art .phone:nth-child(3) { transform: translateX(62%) rotate(8deg); bottom: -110px; }
.app-hero .glow { position: absolute; z-index: -1; width: 900px; aspect-ratio: 1; border-radius: 50%; inset-inline-end: -200px; top: -200px; background: radial-gradient(circle, var(--glow), transparent 64%); }
.app-facts { padding: 40px 0 24px; }
.feats { padding: 40px 0 80px; }
.feat { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 32px; padding: 34px 0; border-top: 1px solid var(--line); }
.feat .n { font-family: var(--display); color: var(--accent); font-size: 17px; padding-top: 8px; }
.feat h2 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
:lang(ar) .feat h2 { letter-spacing: 0; line-height: 1.4; }
.feat p, .feat ul { color: var(--dim); max-width: 56ch; }
.feat li { padding-inline-start: 22px; position: relative; }
.feat li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--accent); }
.feat li + li { margin-top: 8px; }
.web { padding: 40px 0 100px; }
.web .sec-head { margin-bottom: 36px; }
.web .pair { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.web .pair .phone { margin-bottom: -20px; }
.web .cap { color: var(--dim); margin-top: 22px; }
.gallery { background: var(--tone); border-radius: 40px; padding: 64px 0 40px; overflow: hidden; }
.gallery .sec-head { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.gallery .row { display: flex; gap: 28px; overflow-x: auto; padding: 12px 40px 48px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery figure { flex: none; scroll-snap-align: center; }
.gallery figcaption { margin-top: 16px; font-size: 14px; text-align: center; color: var(--dim); }
.c-dineri.gallery figcaption, .c-dineri.gallery .label { color: rgba(244,241,230,.75); }
.c-dineri.gallery .sec-head h2 { color: #f4f1e6; }
.c-dineri.gallery .sec-head { border-color: rgba(244,241,230,.35); }
.made { padding: 110px 0 40px; }
.made ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.made li { background: var(--paper); border-radius: 22px; padding: 26px; box-shadow: 0 0 0 1px var(--line); }
.made li i { font-style: normal; font-family: var(--display); color: var(--accent); font-size: 15px; }
.made li b { display: block; font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin: 26px 0 4px; }
.made li span { color: var(--dim); font-size: 15px; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 80px 0 100px; padding: 48px; border-radius: 32px; background: var(--bgc); color: var(--fg); text-decoration: none; overflow: hidden; }
.next .d { font-size: clamp(48px, 8vw, 120px); line-height: .95; }
.next .label { color: inherit; opacity: .7; }
.next .arrow { font-size: clamp(40px, 6vw, 90px); }
.next:hover .arrow { transform: translateX(12px); }
:lang(ar) .next:hover .arrow { transform: scaleX(-1) translateX(12px); }

/* A plain reading page (an app's privacy page) */
.doc { padding: 56px 0 100px; max-width: 42em; }
.doc .back { opacity: 1; color: var(--dim); }
.doc h1 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.045em; margin: 18px 0 16px; }
:lang(ar) .doc h1 { letter-spacing: 0; line-height: 1.35; }
.doc h2 { font-family: var(--display); font-weight: 500; font-size: 25px; letter-spacing: -.02em; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--dim); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-inline-start: 22px; list-style: disc; }
.doc li { margin: 0 0 6px; }
.doc b { color: var(--ink); font-weight: 500; }

/* Motion: page to page, the app's name and screens carry over (CSS only, no script) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }
.vt-dineri-name { view-transition-name: dineri-name; } .vt-qibla-name { view-transition-name: qibla-name; }
.vt-dineri-art { view-transition-name: dineri-art; } .vt-qibla-art { view-transition-name: qibla-art; }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease); }

@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes draw { to { --sweep: 360deg; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes fan { from { transform: translateY(calc(var(--y) + 260px)) rotate(0deg); } }
@keyframes reveal { from { opacity: 0; transform: translateY(60px); } }

/* Scrolling: things arrive as they come into view, where the browser can do it in CSS */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .stage .phone { animation: fan linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ring svg { --sweep: 360deg; }
  .marquee .track { flex-wrap: wrap; width: auto; }
}

@media (max-width: 960px) {
  .w { padding: 0 18px; }
  footer .w { padding: 24px 18px 40px; }
  .top .w { height: 62px; }
  .links, .top .pill { display: none; }
  .hero { padding: 56px 0 24px; }
  .lede { grid-template-columns: 1fr; gap: 18px; margin-top: 44px; }
  .stage { height: 120vw; padding-top: 40px; }
  .stage .phone { --w: 42vw !important; margin: 0 -8vw; }
  .stage .phone:nth-child(1), .stage .phone:nth-child(5) { display: none; }
  .stage .phone:nth-child(2) { --y: 30px; } .stage .phone:nth-child(4) { --y: 30px; }
  .work { padding-top: 80px; }
  .card { grid-template-columns: 1fr; min-height: 0; border-radius: 24px; }
  .card .txt { padding: 28px 24px 8px; gap: 26px; }
  .card .art { height: 104vw; max-height: 560px; }
  .card .art .phone { --w: 44vw !important; }
  .card .art .browser { width: 120%; inset-inline-start: 8%; top: 8%; }
  .facts { grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 56px; }
  .facts b { font-size: 24px; }
  .svc { grid-template-columns: 1fr; padding-bottom: 80px; }
  .proof { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; border-radius: 24px; }
  .proof li { padding: 18px; }
  .contact { padding: 90px 0 80px; }
  .app-hero .w { grid-template-columns: 1fr; min-height: 0; }
  .app-hero .txt { padding-bottom: 8px; }
  .app-hero .art { height: 118vw; max-height: 620px; }
  .app-hero .art .phone { --w: 46vw !important; bottom: -40px; }
  .app-hero .art .phone:nth-child(1), .app-hero .art .phone:nth-child(3) { bottom: -80px; }
  .feat { grid-template-columns: 1fr; gap: 10px; }
  .feat .n { padding: 0; }
  .web .pair { grid-template-columns: 1fr; }
  .web .pair .phone { display: none; }
  .gallery { border-radius: 24px; }
  .gallery .row { padding: 12px 18px 40px; }
  .gallery .phone { --w: 62vw !important; }
  .made ul { grid-template-columns: 1fr; }
  .next { padding: 28px 24px; margin: 56px 0 72px; }
}
