/* رسال العقار — the public pages (the landing page and the legal pages). Tokens follow mobile/src/theme.ts.
   IBM Plex Sans Arabic © IBM Corp., SIL Open Font License 1.1 (fonts/OFL.txt) — the files are IBM's, unmodified. */
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/IBMPlexSansArabic-Regular.woff2') format('woff2'); }
/* 500 (Medium) is in fonts/ for the mockups' sources (docs/landing); the pages use 400 / 600 / 700 only */
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/IBMPlexSansArabic-Bold.woff2') format('woff2'); }

:root {
    --ink: #0F1729; --ink2: #344054; --body: #475467; --muted: #535C70;
    --teal: #0A7E78; --teal-dark: #075E59; --teal-soft: #E6F4F2;
    --bg: #F3F5F5; --card: #FFFFFF; --line: #E4E7EC; --chip: #F2F4F7;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 12px rgba(16, 24, 40, .06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; font-size: 16px; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 20; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(243, 245, 245, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.top-logo img { width: 79px; height: 40px; }
.top-nav { display: none; gap: 26px; margin-inline-start: 20px; }
.top-nav a { color: var(--ink2); text-decoration: none; font-size: 15px; padding: 10px 0; }
.top-nav a:hover { color: var(--teal); }
.top .btn { margin-inline-start: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--teal); color: #fff; font-weight: 600; text-decoration: none; border-radius: 15px; padding: 12px 22px; min-height: 48px; }
.btn:hover { background: var(--teal-dark); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 15px; border-radius: 13px; }

/* hero */
.hero { padding: 40px 0 24px; overflow: hidden; }
.hero-in { display: grid; gap: 36px; align-items: center; }
.kicker { display: inline-block; background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; font-size: 15px; border-radius: 999px; padding: 4px 16px; margin-bottom: 18px; }
h1 { font-size: clamp(34px, 6.2vw, 58px); line-height: 1.3; font-weight: 700; letter-spacing: 0; }
.accent { color: var(--teal); display: inline-block; }
.lead { color: var(--body); font-size: clamp(17px, 2.1vw, 20px); line-height: 1.9; max-width: 34em; margin-top: 18px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 28px; }
.badge { display: inline-block; border-radius: 10px; }
.badge img { width: 168px; height: 56px; }
.free { display: flex; flex-direction: column; line-height: 1.5; }
.free strong { font-size: 22px; font-weight: 700; color: var(--teal-dark); }
.free span { color: var(--muted); font-size: 14px; }
.hero-shot { position: relative; justify-self: center; width: min(300px, 78vw); }
.hero-shot::before { content: ''; position: absolute; inset: 9% -16% -4%; background: var(--teal-soft); border-radius: 44px; }
.hero-shot img { position: relative; width: 100%; filter: drop-shadow(0 18px 28px rgba(15, 23, 41, .18)); }

/* sections */
.band { padding: 56px 0 8px; }
.band.last { padding-bottom: 64px; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.4; font-weight: 700; }
.sub { color: var(--muted); margin-top: 4px; }
h3 { font-size: 18px; line-height: 1.6; font-weight: 600; }

.features { display: grid; gap: 16px; margin-top: 28px; }
.feature { padding: 22px; }
.feature p, .step p { color: var(--body); font-size: 15.5px; margin-top: 6px; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 15px; background: var(--teal-soft); color: var(--teal); margin-bottom: 14px; }

.steps { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { padding: 22px; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 14px; }

.shots { display: flex; gap: 22px; margin-top: 28px; padding: 6px 20px 26px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.shots li { flex: 0 0 auto; width: min(240px, 62vw); scroll-snap-align: center; }
.shots img { width: 100%; filter: drop-shadow(0 10px 18px rgba(15, 23, 41, .14)); }
.shots figcaption { text-align: center; font-weight: 600; font-size: 15px; color: var(--ink2); margin-top: 14px; }

.trust { background: var(--ink); color: #fff; border-radius: 28px; padding: 32px 24px; }
.trust-lead { color: #C9CFDA; font-size: 18px; margin-top: 6px; }
.trust ul { display: grid; gap: 14px; margin: 24px 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.trust li { background: rgba(255, 255, 255, .07); border-radius: 18px; padding: 16px 18px; color: #C9CFDA; font-size: 15.5px; }
.trust li strong { display: block; color: #fff; font-weight: 600; font-size: 17px; }
.trust .link { color: #7EE0D6; font-weight: 600; }

.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq details { padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 0 0 4px; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq summary h3 { font-size: 17px; }
.faq details p { color: var(--body); padding-bottom: 18px; }

.get { background: var(--teal-soft); border-radius: 28px; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.get img[width="72"] { border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 8px; }
.get p { color: var(--teal-dark); font-weight: 600; margin-bottom: 12px; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 28px 0 36px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot-logo img { width: 79px; height: 40px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-nav a { color: var(--ink2); text-decoration: none; font-size: 15px; padding: 8px 0; }
.foot-nav a:hover { color: var(--teal); }
.foot-copy { color: var(--muted); font-size: 14px; flex-basis: 100%; }

/* legal pages */
.legal { max-width: 760px; padding-top: 28px; padding-bottom: 40px; }
.legal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 24px; }
.legal-head img { width: 71px; height: 36px; }
.legal-head nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.legal-head nav a { color: var(--teal); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 0; }
.legal-head nav a[aria-current="page"] { color: var(--ink); }
.legal article { background: var(--card); border-radius: 22px; padding: 28px 24px; box-shadow: var(--shadow); line-height: 1.9; }
.legal h1 { font-size: 28px; margin: 0 0 4px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.legal h2 { font-size: 18px; margin: 28px 0 6px; }
.legal h3 { font-size: 15px; margin: 18px 0 4px; }
.legal p, .legal li { color: var(--body); font-size: 16px; }
.legal article p { margin: 0 0 10px; }
.legal ul { list-style: disc; padding-inline-start: 22px; margin: 6px 0; }

@media (min-width: 600px) {
    /* seven cards: the first one is two cells wide, so no row is left with a hole */
    .features { grid-template-columns: repeat(2, 1fr); }
    .feature:first-child { grid-column: span 2; }
}
@media (min-width: 900px) {
    .features { grid-template-columns: repeat(4, 1fr); }
    .top-nav { display: flex; }
    .hero { padding: 64px 0 32px; }
    .hero-in { grid-template-columns: 1.15fr .85fr; gap: 48px; }
    .hero-shot { width: 320px; }
    .band { padding-top: 80px; }
    .trust { padding: 44px 40px; }
    .shots { justify-content: center; padding-inline: 20px; }
    .shots li { width: 200px; }
    .foot-copy { flex-basis: auto; margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .faq summary::after { transition: none; } }
