/* Flow8 informational site. No external fonts, images or scripts. Logical properties so RTL/LTR flip with the dir attribute.
   Brand tokens derived from the Flow8 logo (cyan #00a6f4 -> blue #0977dd -> navy #001030); amber is kept for status/notice semantics.
   Only the colour tokens below carry the brand palette; layout is independent of them. */
:root {
  --bg: #f3f6fb; --alt: #e8eef7; --surface: #fff; --text: #0a1a30; --muted: #4a5870; --border: #d2dbe8;
  --accent: #0b5fd1; --accent-ink: #fff; --accent-soft: #dce9fb; --amber: #b26a00; --amber-soft: #fff1d6;
  --amber-ink: #8a5100; /* text on --amber-soft (badge): --amber itself is only 3.80:1 there */
  --radius: 14px; --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1220; --alt: #101a2c; --surface: #152238; --text: #e6edf8; --muted: #9fb0c8; --border: #263650;
    --accent: #4da3ff; --accent-ink: #031230; --accent-soft: #14284a; --amber: #f0b24a; --amber-soft: #3a2c0f; --amber-ink: #f0b24a; }
  .brand img { background: #fff; border-radius: 8px; padding: 2px; }
}
/* language switch: only the active language is shown */
html[lang="ar"] [data-l="en"], html[lang="en"] [data-l="ar"] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.75 "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, -apple-system, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-inline-end: auto; }
.brand b { color: var(--accent); font-size: 20px; letter-spacing: .5px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-sub { font-size: 12px; color: var(--muted); font-weight: 400; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--text); padding: 6px 10px; border-radius: 8px; font-size: 15px; }
nav a:hover { background: var(--accent-soft); }
.lang { cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 99px; padding: 5px 14px; font: inherit; font-size: 14px; }
.lang:hover { background: var(--accent-soft); }
@media (max-width: 720px) { nav { display: none; } }

.hero { padding-block: 56px 40px; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1fr 220px; gap: 32px; align-items: center; }
.hero-icon { border-radius: 48px; background: #fff; box-shadow: 0 12px 40px rgba(11, 60, 140, .25); justify-self: center; }
.badge { display: inline-block; margin: 0 0 12px; padding: 2px 14px; border-radius: 99px; background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; font-weight: 600; }
h1 { font-size: clamp(26px, 4.4vw, 42px); line-height: 1.35; margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 22px; max-width: 60ch; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; padding: 10px 20px; border-radius: 10px; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 720px) { .hero-grid { grid-template-columns: 1fr; } .hero-icon { width: 120px; height: 120px; order: -1; justify-self: start; } }

.notice { background: var(--amber-soft); color: var(--text); border-block: 1px solid var(--border); }
.notice p { margin: 0; padding-block: 14px; font-size: 15.5px; }

.sec { padding-block: 56px; }
.sec.alt { background: var(--alt); }
h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; }
h3 { font-size: 19px; margin: 28px 0 4px; }
h4 { font-size: 17px; margin: 0 0 4px; color: var(--accent); }
.sub { color: var(--muted); max-width: 70ch; margin: 0 0 8px; }
.muted { color: var(--muted); } .small { font-size: 14px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.card p { margin: 0; font-size: 15.5px; color: var(--muted); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.panel h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.panel ul { margin: 0; padding-inline-start: 20px; } .panel li { margin-block: 8px; font-size: 16px; }
.panel.ok { border-top: 4px solid var(--accent); } .panel.planned { border-top: 4px solid var(--amber); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; } .dot.ok { background: var(--accent); } .dot.planned { background: var(--amber); }
.steps { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; margin-top: 12px; }
.steps ol { margin: 0; padding-inline-start: 22px; } .steps li { margin-block: 10px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.chat { margin: 0; background: var(--alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sec.alt .chat { background: var(--surface); }
.msg { max-width: 85%; padding: 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); direction: rtl; }
.msg.out { background: var(--accent-soft); align-self: flex-end; } .msg.in { align-self: flex-start; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.plain { padding-inline-start: 20px; } .plain li { margin-block: 6px; }
.contact p { margin: 0 0 8px; }
.notfound { padding-block: 96px; }
.notfound .code { margin: 0 0 8px; font-size: clamp(64px, 14vw, 120px); font-weight: 700; line-height: 1; color: var(--accent); letter-spacing: 2px; }
.notfound p { color: var(--muted); max-width: 60ch; margin: 0 0 22px; }
footer { border-top: 1px solid var(--border); padding-block: 28px; background: var(--surface); }
footer p { margin: 0 0 8px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { header.top, .skip, .lang { display: none; } }

/* contact: never break the e-mail address or the domain across lines (E-mail published 2026-11-25) */
.contact bdi { white-space: nowrap; }
