/* RASISAC website. Owner-approved palette: oxblood + brass, "the gravity of advisory".
   --brand oxblood bars; --accent brass fill with --accent-ink text on it; --ox oxblood as text/links;
   --brass darker brass for text and thin lines (4.5:1 on ivory/white); --accent-soft oxblood tint. */
:root {
  color-scheme: light;
  --bg: #F7F2EA;
  --surface: #FFFFFF;
  --surface-2: #FBF8F2;
  --ink: #2B1A1F;
  --text: #4A3A3E;
  --muted: #6F5F62;
  --line: #E5DACB;
  --brand: #5A1A2B;
  --on-brand: #F7F2EA;
  --on-brand-muted: #E6D6D0;
  --on-brand-accent: #D9B36A;
  --accent: #B8893A;
  --accent-ink: #2B1C05;
  --accent-soft: #F0E8E6;
  --ox: #5A1A2B;
  --brass: #7E5A1C;
  --brass-soft: #F4EADA;
  --ph-bg: #FFE9A8;
  --ph-ink: #3D2E00;
  --ph-line: #C79A1E;
  --focus: #5A1A2B;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(43, 26, 31, .05), 0 8px 24px rgba(43, 26, 31, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1A1315;
    --surface: #241B1D;
    --surface-2: #1F1719;
    --ink: #F2EBE3;
    --text: #D9CDC8;
    --muted: #A99A98;
    --line: #3B2D30;
    --brand: #4A1626;
    --on-brand: #F2EBE3;
    --on-brand-muted: #D2C2BE;
    --on-brand-accent: #E0BD78;
    --accent: #C99A4A;
    --accent-ink: #2B1C05;
    --accent-soft: #33262A;
    --ox: #E8A9B6;
    --brass: #E0B868;
    --brass-soft: #352A1A;
    --ph-bg: #4A3A0E;
    --ph-ink: #FFE6A3;
    --ph-line: #D9A94E;
    --focus: #E0B868;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}
h1, h2, h3 { font-family: 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif; color: var(--ink); font-weight: 600; line-height: 1.3; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--ox); text-underline-offset: 3px; }
img, svg { max-width: 100%; height: auto; }

/* Language: Arabic by default; the toggle switches html[lang]. */
html[lang="ar"] .en, html[lang="en"] .ar, [hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.bar :focus-visible, .foot :focus-visible { outline-color: var(--on-brand-accent); }
.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.narrow { max-width: 820px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Placeholders the owner must fill before publishing: always highlighted. */
.ph { background: var(--ph-bg); color: var(--ph-ink); border: 1px dashed var(--ph-line); border-radius: 6px; padding: 0 6px; font-weight: 600; overflow-wrap: anywhere; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Header */
.bar { position: sticky; top: 0; z-index: 20; background: var(--brand); color: var(--on-brand); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-brand); text-decoration: none; font-family: 'Readex Pro', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.menu a { color: var(--on-brand-muted); text-decoration: none; padding: 6px 10px; border-radius: 999px; font-size: 15px; }
.menu a:hover { color: var(--on-brand); background: rgba(255, 255, 255, .08); }
.lang { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: transparent; color: var(--on-brand); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 6px 14px; min-height: 36px; }
.lang:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 860px) {
  .bar { position: static; }
  html { scroll-padding-top: 0; }
  .menu { order: 3; width: 100%; justify-content: center; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 6px; }
  .menu a { padding: 4px 8px; font-size: 14px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 84px) clamp(32px, 5vw, 56px); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.eyebrow { color: var(--brass); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(28px, 4.6vw, 46px); }
.lead { font-size: clamp(17px, 1.9vw, 19px); color: var(--text); max-width: 62ch; }
.motto { font-family: 'Readex Pro', sans-serif; font-weight: 600; color: var(--brass); font-size: 17px; }

/* The hero's path card: the four stages of every engagement. */
.path { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.path-title { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.path ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.path li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.path li:last-child { padding-bottom: 0; }
.path li::before { content: ""; position: absolute; inset-inline-start: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.path li:last-child::before { display: none; }
.path .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--ox); font-family: 'Readex Pro', sans-serif; font-weight: 700; font-size: 15px; }
.path li:last-child .dot { background: var(--accent); color: var(--accent-ink); }
.path b { display: block; color: var(--ink); font-weight: 600; }
.path small { display: block; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Launch notice */
.notice { background: var(--brass-soft); border-block: 1px solid var(--line); }
.notice p { padding-block: 14px; color: var(--ink); font-size: 15px; }

/* Sections */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(24px, 3.4vw, 34px); }
.section-lead { max-width: 70ch; font-size: 17px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin-top: 12px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { font-size: 19px; }
.card .tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--ox); background: var(--accent-soft); border-radius: 999px; padding: 2px 12px; }
.card .tag.brass { color: var(--brass); background: var(--brass-soft); }
.card ul, .list { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.card.feature { border-top: 4px solid var(--accent); }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--ox); flex: none; }
.icon svg { width: 22px; height: 22px; }

/* Focus topics */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); font-weight: 600; font-size: 15px; }
.pillar.licensed { border-style: dashed; }

/* Steps */
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-family: 'Readex Pro', sans-serif; font-weight: 700; margin-bottom: 4px; }
html[lang="ar"] .steps li::before { content: counter(s, arabic-indic); }
.steps b { color: var(--ink); font-size: 17px; }
.steps span { font-size: 15px; }

/* Review chain (maker–checker) */
.chain { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chain li { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--ink); border-radius: 10px; padding: 6px 12px; font-size: 15px; font-weight: 600; }
.chain li:not(:last-child)::after { content: "←"; color: var(--brass); font-weight: 700; }
html[lang="en"] .chain li:not(:last-child)::after { content: "→"; }
.note { font-size: 14px; color: var(--muted); }

/* Contact */
.contact { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: 12px; }
.contact dl { margin: 0; display: grid; gap: 4px 16px; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; }
.contact dt { color: var(--muted); font-size: 14px; }
.contact dd { margin: 0; color: var(--ink); min-width: 0; }
@media (max-width: 420px) { .contact dl { grid-template-columns: minmax(0, 1fr); } .contact dd { margin-bottom: 8px; } }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Legal pages */
.draft { background: var(--ph-bg); color: var(--ph-ink); border-bottom: 1px dashed var(--ph-line); font-weight: 600; }
.draft .wrap { padding-block: 10px; }
.doc { padding-block: clamp(32px, 6vw, 64px); }
.doc h1 { font-size: clamp(26px, 4vw, 36px); }
.doc h2 { font-size: 21px; margin-top: 12px; }
.doc ul { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.for { color: var(--muted); font-size: 14px; }

/* Footer */
.foot { background: var(--brand); color: var(--on-brand-muted); padding-block: 28px; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; justify-content: space-between; }
.foot-brand { color: var(--on-brand); font-weight: 600; }
.foot p + p { margin-top: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { color: var(--on-brand); }
.foot .ph { font-weight: 600; }
