/* Bunyan public site: the landing page and the static pages (about,
   privacy, terms, help, account deletion) share this sheet via
   templates/aqarat/site/base.twig. The feed and the app-like pages use app.css. */
@font-face {
    font-family: 'BunyanRiyal';
    src: url('../../fonts/riyal/BunyanRiyal.woff') format('woff'), url('../../fonts/riyal/BunyanRiyal.ttf') format('truetype');
    unicode-range: U+20C1;
    font-display: block;
}

        :root {
            /* --gold is the brand accent; since the 2026-10 logo it holds the logo green. */
            --navy: #0D1321; --slate: #1E293B; --gold: #009975; --gold-soft: rgba(0,153,117,.14);
            --cream: #E8F0ED; --white: #FFFFFF; --muted: #94A3B8; --line: rgba(255,255,255,.08);
            --radius: 18px;
        }
        * { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; scroll-padding-top: 76px; }
        body {
            font-family: 'BunyanRiyal', 'Noto Sans Arabic', 'Manrope', -apple-system, sans-serif;
            background: var(--navy); color: var(--white); line-height: 1.7;
            -webkit-font-smoothing: antialiased;
        }
        a { color: inherit; text-decoration: none; }
        img { max-width: 100%; display: block; }
        .wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
        .icon { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; line-height: 1; font-size: 24px; display: inline-block;
            letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; }

        /* header */
        .top { position: sticky; top: 0; z-index: 20; background: rgba(13,19,33,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
        .top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
        .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; }
        .brand img { width: 38px; height: 38px; border-radius: 10px; }
        .nav { display: flex; gap: 6px; align-items: center; }
        .nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--cream); opacity: .85; transition: .2s; }
        .nav a:hover { opacity: 1; background: var(--line); }
        .nav a.go { background: var(--gold); color: var(--white); opacity: 1; font-weight: 700; }
        .lang { font-size: 14px; color: var(--muted); padding: 8px 10px; }
        .menu-btn { display: none; background: none; border: 0; color: var(--white); cursor: pointer; }

        /* hero */
        .hero { padding: 72px 0 56px; background: radial-gradient(900px 480px at 85% 10%, rgba(0,153,117,.18), transparent 60%); }
        .hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
        .eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); background: var(--gold-soft); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
        .hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.25; margin: 18px 0 16px; font-weight: 800; }
        .hero h1 span { color: var(--gold); }
        .hero p.lead { color: var(--cream); opacity: .85; font-size: 18px; max-width: 34em; }
        .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
        .btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 16px; transition: transform .15s, background .2s; }
        .btn:hover { transform: translateY(-1px); }
        .btn-gold { background: var(--gold); color: var(--white); }
        .btn-ghost { border: 1px solid rgba(242,233,216,.25); color: var(--cream); }
        .stats { display: flex; gap: 36px; margin-top: 40px; }
        .stats b { display: block; font-size: 28px; color: var(--gold); font-family: 'Manrope', sans-serif; }
        .stats span { color: var(--muted); font-size: 14px; }
        .phones { position: relative; display: flex; justify-content: center; }
        .phones img { width: 62%; border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
        .phones img + img { position: absolute; width: 46%; inset-inline-start: 0; bottom: -24px; opacity: .95; transform: rotate(-6deg); }

        /* sections */
        section.block { padding: 88px 0; }
        section.alt { background: var(--slate); }
        .head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
        .head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 12px 0 10px; }
        .head p { color: var(--muted); font-size: 17px; }

        .about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
        .about p { color: var(--cream); opacity: .88; font-size: 17px; margin-bottom: 14px; }
        .pillars { display: grid; gap: 14px; }
        .pillar { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); }
        .pillar .icon { color: var(--gold); background: var(--gold-soft); border-radius: 12px; padding: 10px; height: fit-content; }
        .pillar h3 { font-size: 17px; margin-bottom: 2px; }
        .pillar p { color: var(--muted); font-size: 15px; margin: 0; }

        .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
        .feature { padding: 26px; border-radius: var(--radius); background: var(--navy); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
        .feature:hover { border-color: rgba(0,153,117,.4); transform: translateY(-2px); }
        .feature .icon { font-size: 30px; color: var(--gold); margin-bottom: 14px; }
        .feature h3 { font-size: 18px; margin-bottom: 6px; }
        .feature p { color: var(--muted); font-size: 15px; }

        .download { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 48px; border-radius: 28px;
            background: linear-gradient(135deg, rgba(0,153,117,.22), rgba(30,41,59,.9)); border: 1px solid rgba(0,153,117,.3); }
        .download h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 10px; }
        .download p { color: var(--cream); opacity: .85; }
        .stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
        .store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 14px; background: #000; border: 1px solid rgba(255,255,255,.18); min-width: 200px; }
        .store small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
        .store strong { font-size: 17px; line-height: 1.3; }
        .store svg { width: 28px; height: 28px; flex: none; }
        .store.soon { opacity: .55; cursor: default; }
        .download img { width: 220px; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }

        .contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; }
        .info { display: grid; gap: 14px; align-content: start; }
        .info a, .info div { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--navy); }
        .info .icon { color: var(--gold); }
        .info small { display: block; color: var(--muted); font-size: 13px; }
        form.msg { padding: 28px; border-radius: var(--radius); background: var(--navy); border: 1px solid var(--line); display: grid; gap: 14px; }
        .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
        form.msg input, form.msg textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: var(--slate); color: var(--white); font: inherit; font-size: 15px; }
        form.msg input:focus, form.msg textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
        form.msg textarea { min-height: 130px; resize: vertical; }
        form.msg button { border: 0; cursor: pointer; justify-content: center; font-family: inherit; }
        .flash { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
        .flash.ok { background: rgba(16,185,129,.15); color: #6ee7b7; }
        .flash.err { background: rgba(239,68,68,.15); color: #fca5a5; }

        footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
        footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
        footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
        footer a:hover { color: var(--cream); }

        @media (max-width: 900px) {
            .hero .wrap, .about, .contact, .download { grid-template-columns: 1fr; }
            .grid { grid-template-columns: 1fr 1fr; }
            .phones { margin-top: 12px; }
            .download { padding: 32px 24px; }
            .download img { display: none; }
        }
        @media (max-width: 760px) {
            .menu-btn { display: block; }
            .nav { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; background: var(--navy); border-bottom: 1px solid var(--line); }
            .nav.open { display: flex; }
            .nav a { padding: 12px 14px; }
            .grid, .row2 { grid-template-columns: 1fr; }
            .hero { padding-top: 44px; }
            .stats { gap: 24px; }
            section.block { padding: 64px 0; }
        }
    
/* Variables and helpers the older static-page templates were written against
   (they used to sit inside the app layout). */
:root {
    --primary: var(--gold); --on-primary: var(--navy);
    --background: var(--navy); --background-light: #121A2B; --surface: #161F33;
    --text-primary: var(--white); --text-secondary: rgba(255,255,255,.72); --text-muted: rgba(255,255,255,.5);
    --border: rgba(255,255,255,.1); --info: #60A5FA;
    --spacing-xs: 4px; --spacing-sm: 8px; --spacing-md: 16px; --spacing-lg: 24px; --spacing-xl: 32px;
    --radius-md: 12px;
}
.material-symbols-outlined { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1;
    display: inline-block; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; font-feature-settings: 'liga'; vertical-align: middle; }
.card { background: var(--slate); border: 1px solid var(--line); border-radius: var(--radius); }
.btn-primary { background: var(--gold); color: var(--white); border: 0; cursor: pointer; font-family: inherit; }
.w-full { width: 100%; justify-content: center; }

/* static pages */
.page-hero { padding: 64px 0 40px; text-align: center; background: radial-gradient(700px 320px at 50% 0%, rgba(0,153,117,.16), transparent 70%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-top: 10px; }
.page-hero p { color: var(--muted); margin-top: 8px; }
.page-body { padding: 48px 0 88px; }
.page-body > .wrap { max-width: 820px; }
.cms-content { color: var(--text-secondary); font-size: 17px; line-height: 1.9; }
.cms-content h2 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 32px 0 10px; }
.cms-content h3 { font-size: 19px; font-weight: 700; color: var(--text-primary); margin: 26px 0 8px; }
.cms-content p { margin-bottom: 14px; }
.cms-content ul, .cms-content ol { padding-inline-start: 24px; margin-bottom: 14px; }
.cms-content li { margin-bottom: 6px; }
.cms-content a { color: var(--gold); text-decoration: underline; }
.cms-content strong { color: var(--text-primary); }
