:root { --bg: #F6F7F3; --card: #FFFFFF; --ink: #16201A; --ink-fixed: #16201A; --muted: #55615A; --line: #DCE3DA; --accent: #1F6B47; --accent-deep: #175235; --hero: #1F6B47; --alt: #C9822B; --alt-deep: #A66A1E; --gold: #F4B860; --sh-a: #E4EFE7; --sh-b: #EDF1E8; --sh-c: #FBEFD9; --link: #1A5F3E; --btn: #1F6B47; --btn-hover: #175235; --on-hero: #FFFFFF; --on-btn: #FFFFFF; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0F1511; --card: #18211B; --ink: #E9EFEA; --ink-fixed: #16201A; --muted: #A3B2A8; --line: #29352D; --accent: #5FBF8C; --accent-deep: #4DA877; --hero: #17573A; --alt: #F4B860; --alt-deep: #E0A04A; --gold: #F4B860; --sh-a: #18261E; --sh-b: #131B16; --sh-c: #332A14; --link: #7FD3A6; --btn: #1F6B47; --btn-hover: #2A8458; --on-hero: #FFFFFF; --on-btn: #FFFFFF; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0F1511; --card: #18211B; --ink: #E9EFEA; --ink-fixed: #16201A; --muted: #A3B2A8; --line: #29352D; --accent: #5FBF8C; --accent-deep: #4DA877; --hero: #17573A; --alt: #F4B860; --alt-deep: #E0A04A; --gold: #F4B860; --sh-a: #18261E; --sh-b: #131B16; --sh-c: #332A14; --link: #7FD3A6; --btn: #1F6B47; --btn-hover: #2A8458; --on-hero: #FFFFFF; --on-btn: #FFFFFF; color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Qaddi ---------- */
/* hero logo: the word قضي with its gold tick above the letters (same drawing as the app icon) */
.logo-h1 { align-items: center; }
.qw { position: relative; display: inline-block; font-weight: 700; font-size: clamp(4rem, 10vw, 6.4rem); line-height: 1.35; color: #fff; }
.qw .qt { position: absolute; left: 0.9em; top: 0.05em; inline-size: 0.36em; block-size: 0.28em; overflow: visible; color: var(--gold); }
.qen { font-family: var(--font-en); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2.1rem); letter-spacing: 0.04em; opacity: 0.95; }
.brand .nm b { color: var(--link); }
.card .ic { color: var(--link); }
.contact { margin-block-start: 1.6rem; color: var(--muted); }

.tile.big { background: #196B45; }
.offline .tile .blinkwrap { inline-size: 100%; block-size: 100%; }

/* English part under the Arabic page */
.en-part { font-family: var(--font-en); }
.en-part .en-label { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 2px solid var(--line); border-radius: 999px; padding: 0.05rem 0.8rem; margin-block-end: 0.6rem; }
section.en-part:not(.sec) { border-block-start: 1px solid var(--line); margin-block-start: 2rem; }
.en-part h1 { font-size: var(--step-3); margin-block: 0.2em 0.4em; }
.en-part .lead { max-inline-size: none; }

/* long texts, steps, tables: the same pieces as the live site */
.legal { max-inline-size: 52rem; }
.legal h1 { font-size: var(--step-3); }
.legal h3 { font-size: var(--step-1); margin-block: 1.4em 0.2em; }
.legal p, .legal li { max-inline-size: 68ch; }
.legal .lead { color: var(--muted); font-size: var(--step-1); max-inline-size: 60ch; }
.legal a { overflow-wrap: anywhere; }
.tablewrap { overflow-x: auto; }
.steps { list-style: none; padding: 0; margin: 1.2rem 0 0.6rem; display: grid; gap: 0.8rem; }
.step-btn { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 1.3rem; background: var(--card); border: 2px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .16s ease-out, background-color .16s ease-out; font: inherit; }
a.step-btn:active { transform: scale(.97); }
a.step-btn:hover { border-color: var(--accent); }
.step-btn b { display: block; font-size: 1.15rem; line-height: 1.4; }
.step-btn small { display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.5; margin-block-start: 2px; }
.step-btn .n { flex: none; inline-size: 2.5rem; block-size: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--sh-a); color: var(--link); font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.step-btn.primary { background: var(--btn); border-color: var(--btn); color: #fff; }
.step-btn.primary small { color: rgba(255,255,255,.85); }
.step-btn.primary .n { background: rgba(255,255,255,.18); color: #fff; }
.legal .note { font-size: 0.95rem; color: var(--ink); }
.warn { display: none; background: var(--sh-c); border: 2px solid var(--gold); border-radius: 0.9rem; padding: 0.7rem 1rem; font-weight: 600; }
.in-app .only-in-app, .is-android .only-android { display: block; }

/* service status page (filled in by the worker) */
.st { display: flex; align-items: center; gap: 0.7em; padding: 1em 1.2em; border-radius: 1rem; margin: 1em 0; font-weight: 700; font-size: 1.15em; }
.st i { inline-size: 0.8em; block-size: 0.8em; border-radius: 50%; flex: none; }
.st.up { background: #e6f4ec; color: #14573a; } .st.up i { background: #2e9b63; }
.st.down { background: #fdecea; color: #9b1c1c; } .st.down i { background: #d93a3a; }
.st.unknown { background: #f1f1ef; color: #4a4a4a; } .st.unknown i { background: #999; }
.nums { display: flex; gap: 1.5em; flex-wrap: wrap; } .nums b { display: block; font-size: 1.3em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st.up { background: #163d2a; color: #bfe8cf; } :root:not([data-theme="light"]) .st.down { background: #4a1c1c; color: #ffd6d6; } :root:not([data-theme="light"]) .st.unknown { background: #2a2a2a; color: #ccc; } }
:root[data-theme="dark"] .st.up { background: #163d2a; color: #bfe8cf; } :root[data-theme="dark"] .st.down { background: #4a1c1c; color: #ffd6d6; } :root[data-theme="dark"] .st.unknown { background: #2a2a2a; color: #ccc; }
:root[data-theme="light"] .st.up { background: #e6f4ec; color: #14573a; } :root[data-theme="light"] .st.down { background: #fdecea; color: #9b1c1c; } :root[data-theme="light"] .st.unknown { background: #f1f1ef; color: #4a4a4a; }
.brand .nm { line-height: 1.3; gap: 0.1rem; }
.qw-en { block-size: clamp(3.2rem, 8vw, 5.2rem); inline-size: auto; max-inline-size: 100%; }
.split + .grid { margin-block-start: 1.4rem; }

/* header wordmark: the brand-kit logo (white with gold tick on dark, green with saffron on light), same height as the icon */
.brand .wm { block-size: 2.6rem; inline-size: auto; display: block; }

/* "What does Qaddi do?": the real app icon at app-icon proportions (rounded, no tilt, soft shadow), not the big tilted square. Sultan picked option A, 16 Nov 2026. */
.split .art > img { inline-size: 9rem; border-radius: 22.37%; animation: none; transform: none;
  box-shadow: 0 14px 30px -10px rgba(20, 60, 40, .35), 0 2px 6px rgba(20, 60, 40, .18); }
@media (min-width: 48rem) { .split { grid-template-columns: 1fr auto; } }


/* phone: show the real app screen in a phone frame instead of the icon (Sultan's pick, 16 Nov 2026); desktop keeps the icon */
.split .art .phone-frame { display: none; margin: 0; }
@media (max-width: 47.99rem) {
  .split .art > img.app-icon { display: none; }
  .split .art .phone-frame { display: block; inline-size: min(62%, 15rem); border: 6px solid var(--ink-fixed, #16201A); border-radius: 2rem; overflow: hidden; background: #fff; box-shadow: 0 14px 30px -10px rgba(20, 60, 40, .35); }
  .split .art .phone-frame img { display: block; inline-size: 100%; block-size: auto; }
}

/* privacy: contents list */
.toc { border: 2px solid var(--line); border-radius: var(--radius, 1rem); padding: 1rem 1.3rem; margin-block-end: 1.6rem; background: var(--card); }
.legal .toc-h { font-size: 1.15rem; margin: 0 0 0.4rem; padding: 0; }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.toc li { break-inside: avoid; padding-block: 0.25rem; }
.toc a { display: inline-block; min-block-size: 24px; }
@media (max-width: 47.99rem) { .toc ol { columns: 1; } .toc li { padding-block: 0.4rem; } }
.legal h2[id] { scroll-margin-block-start: 5rem; }

/* Hero banner icons as tone-on-tone silhouettes (Sultan approved, 16 Nov 2026; asked by Brand). Check the dark and light heroes before release. */
.theme .gi { filter: none; opacity: .2; }
.theme .gi * { filter: brightness(0); }
