/* Yardak landing page: the unified Partnora identity (aligned with mssgqa.com).
   Navy #18276B, turquoise #00BFB4, teal action #00A39F, ink #0B1433, Tajawal. Arabic first. */
:root {
  --navy: #18276B; --turq: #00BFB4; --teal: #00BFB4; --teal-mid: #46528A; --ink: #18276B;
  --bg: #F2F5FA; --surface: #FFFFFF; --surface2: #EAF1FA; --fg: #18276B; --muted: #46528A; --line: #D1D4E1;
  --brand: #18276B; --link: #18276B; --header: rgba(255,255,255,.95);
  --good: #166534; --good-soft: rgba(21,128,61,.12); --warn: #92400E; --warn-soft: #FEF3C7;
  --shadow: 0 10px 30px -12px rgba(24,39,107,.25);
  --shadow-lg: 0 24px 60px -20px rgba(11,20,51,.55);
  --hero: linear-gradient(225deg, #00BFB4 0%, #18276B 100%);
  --font: "Tajawal", "Outfit", system-ui, sans-serif;
  --r: 12px; --r-lg: 20px;
  color-scheme: light;
}
html.dark {
  --bg: #0B1433; --surface: #111C45; --surface2: #17245A; --fg: #EAF1FA; --muted: #A9B6D3; --line: #26376A;
  --brand: #99E5E1; --link: #4DD2CA; --header: rgba(17,28,69,.95);
  --good: #4ADE80; --good-soft: rgba(74,222,128,.12); --warn: #FBBF24; --warn-soft: rgba(251,191,36,.12);
  --shadow: 0 10px 30px -12px rgba(0,0,0,.5);
  color-scheme: dark;
}
html[lang="en"] { --font: "Outfit", "Tajawal", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.8 var(--font); }
html[lang="en"] body { line-height: 1.6; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
a { color: var(--link); }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
.narrow { max-width: 820px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.sim { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: 13px; padding: 6px 16px; }

/* ---- header ---- */
.top { background: var(--header); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.bar { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; flex-shrink: 0; }
.logo b { font-size: 23px; font-weight: 800; line-height: 1; display: block; }
.logo small { font-size: 11px; color: var(--muted); display: block; margin-top: 3px; }
.logo.on-dark, .logo.on-dark b { color: #fff; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--fg); text-decoration: none; padding: 6px 10px; border-radius: 10px; font-size: 14.5px; font-weight: 500; }
.nav a:hover { background: var(--surface2); }
.bar-end { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.pill { border: 1px solid var(--muted); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.icon-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--fg); }
.login-link { color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 500; padding: 0 6px; }
.cta { background: var(--navy); color: #fff; border-radius: 14px; padding: 9px 16px; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); white-space: nowrap; }
html.dark .cta { background: var(--teal); color: var(--ink); }

/* ---- buttons, chips ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 13px 22px; font-weight: 700; text-decoration: none; background: var(--navy); color: #fff; box-shadow: var(--shadow); line-height: 1.4; }
html.dark .btn { background: var(--teal); color: var(--ink); }
.btn-light, html.dark .btn-light { background: #fff; color: var(--navy); }
.btn-ghost, html.dark .btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); box-shadow: none; }
.btn:hover { filter: brightness(1.06); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--surface2); color: var(--fg); white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }

/* ---- hero ---- */
.hero { background: var(--hero); color: #fff; border-bottom: 5px solid var(--turq); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 72px 88px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: #BFF5F1; margin-bottom: 14px; }
.eyebrow.dark { color: var(--link); }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; }
.lead { font-size: clamp(17px, 1.8vw, 20px); margin-top: 18px; color: rgba(255,255,255,.92); max-width: 36em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points svg { color: var(--turq); flex-shrink: 0; }

.hero-visual { position: relative; padding-bottom: 64px; }
.demo-card { background: var(--surface); color: var(--fg); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 420px; margin-inline: auto; }
.demo-media { position: relative; background: linear-gradient(135deg, #EAF1FA, #D6F5F2); color: var(--navy); padding: 40px 64px 22px; }
html.dark .demo-media { background: linear-gradient(135deg, #17245A, #0F3A4A); color: #99E5E1; }
.demo-media > svg { width: 38%; height: auto; display: block; margin-inline: auto; }
.demo-score { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; align-items: center; gap: 8px; background: var(--surface); color: var(--fg); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }
[dir="rtl"] .demo-score { padding: 4px 4px 4px 12px; }
.ring { --p: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#15803D calc(var(--p) * 1%), var(--line) 0); }
.ring b { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 12px; }
.demo-body { padding: 16px 20px 20px; display: grid; gap: 6px; }
.demo-title { font-size: 19px; }
.demo-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.demo-price b { font-size: 22px; color: var(--brand); }
.float-note { position: absolute; bottom: 0; inset-inline-end: 0; display: flex; gap: 12px; align-items: center; background: var(--surface); color: var(--fg); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg); max-width: 300px; }
.float-note b { display: block; font-size: 15px; }
.float-note small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.float-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--good-soft); color: var(--good); display: grid; place-items: center; }

/* ---- categories ---- */
.cats { background: var(--surface); border-bottom: 1px solid var(--line); }
.cats-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding-block: 18px; }
.cat { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: var(--r); text-decoration: none; color: var(--brand); font-size: 14px; font-weight: 700; }
.cat:hover { background: var(--surface2); }
.cat svg { width: 44px; height: 44px; }
.cat span { color: var(--fg); }

/* ---- sections ---- */
.section { padding-block: 88px; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: 40px; }
.head h2, .split h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--brand); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); font-size: 15.5px; }
.f-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--navy), var(--teal-mid)); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: var(--bg); border-radius: var(--r-lg); padding: 26px 22px; display: grid; gap: 8px; align-content: start; }
.steps p { color: var(--muted); font-size: 15px; }
.n { width: 40px; height: 40px; border-radius: 50%; background: var(--turq); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: 18px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > div > * + * { margin-top: 16px; }
.muted-lead { color: var(--muted); font-size: 17px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: 26px !important; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { color: var(--teal); flex-shrink: 0; margin-top: 4px; }
.dash { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 20px; display: grid; gap: 12px; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--bg); border-radius: var(--r); padding: 14px 16px; }
.stat small { display: block; color: var(--muted); font-size: 13px; }
.stat b { font-size: 24px; color: var(--brand); }
.dash-item { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: var(--r); padding: 12px 14px; color: var(--brand); }
.dash-item > div { flex: 1; min-width: 0; }
.dash-item b { display: block; color: var(--fg); }
.dash-item small { display: block; font-size: 13px; }

.app-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; background: var(--bg); border-radius: var(--r-lg); padding: 24px; }
.app-card img { border-radius: 14px; grid-row: span 2; }
.app-card p { color: var(--muted); font-size: 15px; }
.soon { grid-column: 2; justify-self: start; font-size: 12.5px; font-weight: 700; color: var(--link); background: var(--surface); border: 1px dashed var(--link); border-radius: 999px; padding: 2px 12px; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--link); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 18px; }

.cta-band { background: var(--hero); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 56px; }
.cta-inner h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.cta-inner p { color: rgba(255,255,255,.9); margin-top: 6px; }
.cta-inner .hero-ctas { margin-top: 0; }

/* ---- footer ---- */
.foot { background: #0B1433; color: #C9D3EA; padding-top: 56px; font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot p { margin-top: 14px; max-width: 32em; }
.foot h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: #C9D3EA; text-decoration: none; }
.foot a:hover { color: var(--turq); }
.family { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; }
.legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #26376A; margin-top: 40px; padding-block: 18px 28px; font-size: 13px; color: #94A3C4; }

/* ---- responsive ---- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid { padding-block: 48px 64px; }
  .cats-row { grid-template-columns: repeat(3, 1fr); }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .cols > div:first-child { grid-column: 1 / -1; }
  .section { padding-block: 64px; }
}
@media (max-width: 560px) {
  .bar { gap: 10px; min-height: 60px; }
  .logo small, .login-link { display: none; }
  .logo b { font-size: 20px; }
  .cta { padding: 8px 12px; font-size: 13px; }
  .grid3, .grid2, .steps { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .float-note { position: relative; margin: -18px 12px 0; max-width: none; }
  .hero-visual { padding-bottom: 0; }
  .dash-row { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 1fr; }
  .app-card img { grid-row: auto; }
  .soon { grid-column: 1; }
}

/* Legal pages (terms, privacy) */
.legal-page { padding: 48px 0 72px; }
.legal-page h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.legal-page h2 { font-size: 19px; margin: 32px 0 10px; }
.legal-page p, .legal-page li { line-height: 1.9; color: var(--fg); }
.legal-page ul { padding-inline-start: 22px; margin: 0; }
.legal-page li + li { margin-top: 6px; }
.legal-page .draft { display: inline-block; background: var(--surface2); border-radius: 10px; padding: 6px 12px; font-size: 14px; margin-bottom: 18px; }
.nav a[aria-current="page"] { background: var(--surface2); font-weight: 700; }

/* ---- Yardak logo (brand guide v1.2): mark + name in navy with the "ك"/"ak" in turquoise + turquoise tagline.
   On dark surfaces the mark switches to the white-chain version: the gradient mark is never used on dark. */
.logo img { height: auto; flex-shrink: 0; }
.wordmark { color: var(--navy); letter-spacing: 0; }
.wordmark i { font-style: normal; color: var(--turq); }
.logo small { color: var(--turq); font-weight: 500; }
.wm-en { display: none; }
html[lang="en"] .wm-ar { display: none; }
html[lang="en"] .wm-en { display: inline; }
.logo.on-dark .wordmark { color: #fff; }
.logo.on-dark small { color: var(--turq); }
html.dark .wordmark { color: #fff; }
html.dark .logo:not(.on-dark) img { content: url(/brand/yardak-mark-on-dark.svg); }
.app-ico { border-radius: 13px; }

/* Lessor plans */
.founding { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--accent-soft); color: var(--ink); border-radius: var(--r); padding: 14px 18px; margin-bottom: 24px; }
.founding svg { color: var(--teal); flex-shrink: 0; }
.founding p { margin: 0; flex: 1; min-width: 220px; }
.founding a { font-weight: 700; color: var(--link); }
html.dark .founding { background: rgba(0, 191, 180, .12); color: #fff; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 760px; }
.plan-card { position: relative; display: grid; gap: 10px; align-content: start; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.plan-card.featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.plan-card h3 { font-size: 20px; color: var(--brand); }
.plan-card .chip { position: absolute; inset-inline-end: 16px; top: 16px; }
.plan-card .btn { justify-self: start; margin-top: 6px; }
.plan-price { margin: 0; }
.plan-price b { font-size: 32px; font-weight: 800; color: var(--ink); }
html.dark .plan-price b { color: #fff; }
.plan-note { margin-top: 18px; font-size: 14px; }
