/* mydheen / Zakatee — shared stylesheet. No build step: edit directly. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Noto Sans Arabic";
  src: url("/assets/fonts/noto-sans-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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-1EEFF;
}

:root {
  --deep: #0F5132;
  --green: #1B8A4B;
  --mint: #7BE0A6;
  --ink: #1F2024;
  --paper: #F6F8F7;
  --white: #FFFFFF;
  --muted: #545A5F;
  --line: #E1E7E3;
  --tint: #E9F3ED;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 81, 50, .06), 0 12px 32px -12px rgba(15, 81, 50, .18);
  --max: 1120px;
  --font: "Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[lang="ar"] { --font: "Noto Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--deep); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(246, 248, 247, .88);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .ar-name { font-weight: 600; color: var(--muted); font-size: .95rem; }
.wordmark { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--deep); direction: ltr; }
.wordmark .dot { color: var(--green); }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .94rem; font-weight: 500; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { background: var(--tint); color: var(--deep); }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline-block; } }
.nav a.lang { border: 1px solid var(--line); background: var(--white); font-weight: 600; margin-inline-start: 6px; }
.nav a[aria-current="page"] { color: var(--deep); background: var(--tint); }

/* Buttons & badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: var(--green); color: #fff; }
.btn-ghost { background: var(--white); color: var(--deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--deep); }
.btn svg { width: 18px; height: 18px; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 14px; border-radius: 14px;
  background: var(--ink); color: #fff; min-height: 56px; cursor: default; user-select: none;
}
html[dir="rtl"] .badge { padding: 10px 14px 10px 18px; }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.2; }
.badge small { font-size: .72rem; opacity: .8; font-weight: 500; letter-spacing: .02em; }
.badge strong { font-size: 1.02rem; font-weight: 600; }
.badges.on-dark .badge { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }

/* Hero */
.hero { padding: 48px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 84px 0 96px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--deep); background: var(--tint); border: 1px solid #D3E8DB; padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(123,224,166,.45); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; color: var(--deep); }
html[lang="ar"] .hero h1 { font-size: clamp(2.3rem, 6.5vw, 3.6rem); font-weight: 800; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 36em; margin-bottom: 28px; }
@media (min-width: 768px) { .lead { font-size: 1.2rem; } }
.hero .note { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Illustrative app card */
.mock { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.mock::before { content: ""; position: absolute; inset: 8% -6% -6% 8%; background: radial-gradient(closest-side, rgba(123,224,166,.55), rgba(123,224,166,0)); filter: blur(10px); z-index: 0; }
.mock-card { position: relative; z-index: 1; background: var(--white); border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 22px; }
.mock-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.mock-top img { width: 40px; height: 40px; border-radius: 11px; }
.mock-top strong { display: block; font-size: 1rem; }
.mock-top small { color: var(--muted); font-size: .8rem; }
.mock-tag { margin-inline-start: auto; font-size: .7rem; font-weight: 600; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.mock-due { background: linear-gradient(135deg, var(--green), var(--deep)); color: #fff; border-radius: 20px; padding: 18px 20px; margin-bottom: 16px; }
.mock-due small { opacity: .85; font-size: .82rem; }
.mock-due .amount { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 12px; direction: ltr; unicode-bidi: isolate; text-align: start; }
.mock-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.22); overflow: hidden; }
.mock-bar i { display: block; height: 100%; width: 60%; background: var(--mint); border-radius: 99px; }
.mock-due .haul { display: flex; justify-content: space-between; font-size: .8rem; opacity: .9; margin-top: 8px; }
.mock-rows { list-style: none; margin: 0; padding: 0; }
.mock-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); font-size: .93rem; }
.mock-rows li:first-child { border-top: 0; }
.mock-rows .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--tint); display: grid; place-items: center; flex: none; }
.mock-rows .ic svg { width: 18px; height: 18px; color: var(--deep); }
.mock-rows .v { margin-inline-start: auto; font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.mock-rows .ex { margin-inline-start: auto; font-size: .78rem; color: var(--muted); background: var(--paper); border-radius: 99px; padding: 2px 8px; }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); font-weight: 750; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.kicker { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .95rem; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section-alt .card { background: var(--paper); }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--tint); color: var(--deep); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; }
.pillrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .93rem; }
.section-alt .pill { background: var(--paper); }
.pill svg { width: 16px; height: 16px; color: var(--green); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 700; margin-bottom: 14px; }

.dark { background: var(--deep); color: #E8F3EC; }
.dark h2, .dark h3 { color: #fff; }
.dark .section-head p, .dark p { color: #CFE5D8; }
.dark .kicker { color: var(--mint); }
.dark .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.dark .card p { color: #CFE5D8; }
.dark .card .ic { background: rgba(123,224,166,.16); color: var(--mint); }
.dark a { color: var(--mint); }
.dark a:hover { color: #fff; }

.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--tint); border: 1px solid #CFE5D8; border-radius: var(--radius); padding: 20px 22px; color: var(--ink); }
.notice svg { width: 22px; height: 22px; flex: none; color: var(--deep); margin-top: 3px; }
.notice p { margin: 0; }

.cta { text-align: center; }
.cta .badges { justify-content: center; }
.cta h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }

/* Hub */
.apps-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .apps-grid { grid-template-columns: repeat(3, 1fr); } }
.app-card { display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.app-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.app-card img { width: 64px; height: 64px; border-radius: 16px; }
.app-card h3 { margin: 0; font-size: 1.25rem; }
.app-card p { margin: 0; color: var(--muted); }
.app-card .status { margin-top: auto; display: inline-flex; align-self: flex-start; font-size: .82rem; font-weight: 600; color: var(--deep); background: var(--tint); border-radius: 999px; padding: 4px 12px; }
.app-card .go { color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.app-card .go svg { width: 16px; height: 16px; }
.app-card.placeholder { background: transparent; border-style: dashed; color: var(--muted); justify-content: center; align-items: flex-start; min-height: 220px; }
.app-card.placeholder .ph { width: 64px; height: 64px; border-radius: 16px; border: 2px dashed #C9D6CE; display: grid; place-items: center; color: #9AAAA0; }
.app-card.placeholder .ph svg { width: 26px; height: 26px; }

.feature-panel { display: grid; gap: 32px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .feature-panel { grid-template-columns: 1fr 1fr; padding: 48px; gap: 48px; } }
.feature-panel .app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.feature-panel .app-id img { width: 72px; height: 72px; border-radius: 18px; }
.feature-panel .app-id h3 { margin: 0; font-size: 1.6rem; }
.feature-panel .app-id small { color: var(--muted); font-size: .95rem; }
.feature-panel .tag { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 750; color: var(--deep); line-height: 1.25; margin-bottom: 12px; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }

.lead-center { margin-inline: auto; }
.muted { color: var(--muted); }
.badges-wrap { margin-top: 18px; }
.shelf { justify-self: center; width: 100%; max-width: 380px; position: relative; }
.shelf::before { content: ""; position: absolute; inset: -8%; background: radial-gradient(closest-side, rgba(123,224,166,.5), rgba(123,224,166,0)); z-index: 0; }
.shelf-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); }
.tile { aspect-ratio: 1; border-radius: 24%; border: 2px dashed #CFDDD4; background: var(--paper); }
.tile-app { border: 0; background: none; }
.tile-app img { width: 100%; height: 100%; border-radius: 22.5%; box-shadow: 0 10px 24px -10px rgba(15,81,50,.5); }

/* Legal / doc pages */
.doc-hero { padding: 48px 0 8px; }
@media (min-width: 960px) { .doc-hero { padding: 72px 0 12px; } }
.doc-hero h1 { font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 800; color: var(--deep); }
.doc-hero .meta { color: var(--muted); font-size: .95rem; }
.doc { padding: 24px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc article { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 24px 22px; }
@media (min-width: 768px) { .doc article { padding: 44px 52px; } }
.doc h2 { font-size: 1.35rem; font-weight: 700; margin-top: 2em; padding-top: .2em; color: var(--deep); scroll-margin-top: 80px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.08rem; font-weight: 700; margin-top: 1.4em; }
.doc ul, .doc ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .45em; }
.doc li::marker { color: var(--green); }
.doc .summary { background: var(--tint); border: 1px solid #CFE5D8; border-radius: 16px; padding: 18px 22px; margin-bottom: 8px; }
.doc .summary h2 { margin-top: 0; font-size: 1.1rem; }
.doc .summary ul { margin: 0; }
.toc { border: 1px solid var(--line); border-radius: 16px; padding: 16px 22px; margin: 0 0 8px; background: var(--paper); }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; columns: 1; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.mail { font-weight: 600; direction: ltr; unicode-bidi: isolate; word-break: break-all; }
.option { border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 16px 0 24px; }
.option h2 { margin-top: 0; }
.option .badge-inline { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--deep); background: var(--tint); border-radius: 99px; padding: 3px 10px; margin-bottom: 8px; }
.steps-doc { counter-reset: d; list-style: none; padding: 0 !important; }
.steps-doc li { counter-increment: d; position: relative; padding-inline-start: 46px; min-height: 34px; margin-bottom: 14px; }
.steps-doc li::before { content: counter(d); position: absolute; inset-inline-start: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.kbd { font-weight: 700; color: var(--deep); background: var(--tint); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.warn { background: #FFF6E5; border: 1px solid #F1DDB2; border-radius: 14px; padding: 14px 18px; color: #5A4310; }

details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 650; font-size: 1.05rem; position: relative; }
html[dir="rtl"] details.faq summary { padding: 18px 0 18px 36px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--green); line-height: 1.2; }
details.faq[open] summary::after { content: "\2212"; }
details.faq .a { padding: 0 0 18px; color: #3A3F44; }
details.faq .a p:last-child { margin-bottom: 0; }

.contact-card { display: grid; gap: 6px; background: var(--deep); color: #fff; border-radius: 20px; padding: 24px; margin-top: 28px; }
.contact-card h2 { color: #fff; margin: 0 !important; }
.contact-card p { color: #CFE5D8; margin: 0; }
.contact-card a { color: var(--mint); font-size: 1.1rem; }

/* Footer */
.site-footer { background: var(--ink); color: #C9CDD1; padding: 48px 0 32px; font-size: .94rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--mint); text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark .dot { color: var(--mint); }
.site-footer h3 { color: #fff; font-size: .9rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
html[lang="ar"] .site-footer h3 { letter-spacing: 0; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer p { margin: 0 0 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: #A3A9AE; font-size: .86rem; }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.nf .code { font-size: 4.5rem; font-weight: 800; color: var(--deep); letter-spacing: -0.04em; line-height: 1; }
.nf p { color: var(--muted); }
.nf .hero-actions { justify-content: center; }

/* refinements */
.steps + .notice { margin-top: 24px; }
.dark .btn-ghost { color: var(--deep); border-color: transparent; }
.dark .btn-ghost:hover { color: var(--deep); background: var(--mint); }
html[dir="rtl"] .mock-due .amount { text-align: right; }
.doc-hero .wrap { max-width: 820px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
