/* The site's shell — nav and footer — shared by index, pricing and the
   *-feature pages. The nav is the app's own bar (js/nav-bar.js): the same
   #2A3338, white logo, pill links and terracotta for where you are, so the
   site and the app read as one product. Loaded after each page's own <style>
   is not guaranteed, so every rule here is scoped to .site-* classes. */

:root {
    --site-ground: #F2F1EE;
    --site-edge: #DEDBD4;
    --site-line: #E8E6E1;
    --site-bar: #2A3338;
    --site-green: #1F3D2E;
    --site-green-deep: #16301F;
    --site-clay: #9F553E;
    --site-cream: #F5E6D3;
    --site-ink: #1a1a1a;
    --site-muted: #6b7b6b;
}

/* ── Nav: the app's bar ─────────────────────────────────────────────────── */
nav.nav-solid.site-nav { background: var(--site-bar); border-bottom: 0; }
.site-nav .nav-logo-text > div:first-child { color: #fff; }
.site-nav .nav-logo-text > div:last-child { color: rgba(255, 255, 255, .5); }
.site-links { gap: 6px !important; }
.site-links > a,
.site-links > .relative > span {
    color: rgba(255, 255, 255, .72) !important;
    padding: 8px 14px; border-radius: 99px;
    transition: background .15s, color .15s;
}
.site-links > a:hover,
.site-links > .relative:hover > span { background: rgba(255, 255, 255, .1); color: #fff !important; opacity: 1 !important; }
.site-links > a.is-active,
.site-links > .relative.is-active > span { background: var(--site-clay); color: #fff !important; }
.site-actions #lang-btn-desktop { color: rgba(255, 255, 255, .8); }
.site-actions #lang-btn-desktop:hover { background: rgba(255, 255, 255, .1); }
.site-actions .nav-login-btn {
    color: #fff !important; border-color: transparent !important;
    background: rgba(255, 255, 255, .1);
}
.site-actions .nav-login-btn:hover { background: rgba(255, 255, 255, .18) !important; }
.site-cta {
    align-items: center; border-radius: 99px; background: var(--site-clay); color: #fff;
    padding: 8px 16px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    font-weight: 700; text-decoration: none; transition: opacity .15s;
}
.site-cta:hover { opacity: .88; }
.site-actions #menu-btn { color: #fff; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--site-green); color: #cfd8d2; }
.site-footer .sf-top {
    max-width: 1120px; margin: 0 auto; padding: 52px 20px 36px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px;
}
.site-footer .sf-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-footer .sf-brand img { width: 34px; height: 34px; object-fit: contain; }
.site-footer .sf-brand span { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; letter-spacing: .2em; font-size: 15px; color: #fff; }
.site-footer .sf-about { margin: 12px 0 0; font-size: 14px; max-width: 22em; line-height: 1.6; }
.site-footer h4 { color: #fff; font-size: 12px; margin: 0 0 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .sf-bottom {
    max-width: 1120px; margin: 0 auto; padding: 16px 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
    font-size: 12px; color: rgba(255, 255, 255, .55);
}
.site-footer .sf-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.site-footer .sf-motto { text-align: center; padding: 16px 20px; letter-spacing: .34em; font-size: 12px; color: var(--site-cream); background: var(--site-green-deep); }
@media (max-width: 720px) {
    .site-footer .sf-top { grid-template-columns: 1fr 1fr; }
    .site-footer .sf-top > div:first-child { grid-column: 1 / -1; }
}

/* Arabic translates, it never flips: text lines read in their own
   direction and stay where the left-to-right layout puts them. Never on a
   flex/grid box — some browsers then swap its children. */
html[lang="ar"] .site-footer :is(.sf-about, h4, li > a, .sf-bottom p) { unicode-bidi: plaintext; text-align: left; }

/* ── Feature pages (the *-feature.html hero) ────────────────────────────── */
/* The app's warm grey, one icon style (the brand's green outline on light
   green), and the screenshot in the posts' frame — a warm-grey band around
   white dot-grid paper — like the home page. */
.fp-hero { background: var(--site-ground); }
.fp-ico { background: #E6ECE7 !important; color: var(--site-green); }
.fp-frame { background: var(--site-edge); border-radius: 26px; padding: 14px; }
.fp-panel {
    border-radius: 18px; overflow: hidden; padding: 16px;
    background-color: #fff; background-image: radial-gradient(#d9d6cf 1px, transparent 1.2px); background-size: 18px 18px;
}
.fp-panel img { border-radius: 10px; }
/* Arabic: each text line in its own direction, the layout untouched. */
html[lang="ar"] .fp-hero :is(h1, h2, h3, p) { unicode-bidi: plaintext; text-align: left; }
