/* SFMA Digital public site — static, no scripts, no third-party requests. Colours follow the app's petrol/teal tokens. */
:root {
  --petrol-900: #071f2c; --petrol-800: #0b2c3e; --petrol-700: #0f3b52; --petrol-600: #144b66; --petrol-500: #1f6180;
  --petrol-100: #d5e6ee; --petrol-50: #eef5f8;
  --teal-700: #0f6357; --teal-600: #0f7c6b; --teal-300: #62cfba; --teal-100: #cdf2ea; --teal-50: #ebfaf7;
  --ink: #0b2c3e; --muted: #4a6272; --line: #d5e6ee; --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(7,31,44,.06), 0 6px 20px rgba(7,31,44,.07);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-family: 'IBM Plex Sans Arabic', Tahoma, system-ui, sans-serif; color: var(--ink); background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-size: 17px; line-height: 1.8; }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .5em; color: var(--petrol-800); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--teal-700); }
:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--petrol-700); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-name { font-weight: 700; color: var(--petrol-800); font-size: 1.05rem; text-align: right; }
.brand-sub { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { display: none; gap: 22px; margin-inline-start: auto; }
.main-nav a { color: var(--petrol-700); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--teal-700); }
.header-cta { margin-inline-start: auto; }
@media (min-width: 960px) { .main-nav { display: flex; } .header-cta { margin-inline-start: 8px; } }
@media (max-width: 560px) { .btn.header-cta { display: none; } .brand-sub { font-size: .72rem; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; text-align: center; }
.btn-sm { min-height: 42px; padding: 6px 16px; font-size: .92rem; }
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--petrol-700); }
.btn-ghost { background: transparent; color: var(--petrol-700); border-color: var(--petrol-100); }
.btn-ghost:hover { border-color: var(--petrol-500); }
.btn-light { background: #fff; color: var(--petrol-800); }
.btn-light:hover { background: var(--teal-50); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--petrol-50), #fff 85%); padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 80px 0 88px; } .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 56px; } }
.eyebrow { display: inline-block; background: var(--teal-100); color: var(--teal-700); font-weight: 600; font-size: .9rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
@media (max-width: 480px) { .cta-row .btn { flex: 1 1 100%; } }
.note { font-size: .9rem; color: var(--muted); }

.journey { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 24px 24px 12px; }
.journey-title { font-weight: 700; color: var(--petrol-700); margin-bottom: 14px; }
.journey ol { list-style: none; margin: 0; padding: 0; }
.journey li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.journey li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 8px; top: 22px; bottom: 2px; width: 2px; background: var(--petrol-100); }
.journey li > span:last-child { display: flex; flex-direction: column; line-height: 1.5; }
.journey small { color: var(--muted); font-size: .88rem; }
.dot { width: 18px; height: 18px; flex: none; margin-top: 4px; border-radius: 50%; border: 3px solid var(--teal-600); background: #fff; }
.dot-done { background: var(--teal-600); }

/* Sections */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.section-alt { background: var(--petrol-50); }
.section-lead { color: var(--muted); max-width: 44em; margin-bottom: 28px; }
.cards { display: grid; gap: 18px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--teal-600); }
.card p { color: var(--muted); margin: 0; }

.roles { display: grid; gap: 16px; }
@media (min-width: 640px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .roles { grid-template-columns: repeat(4, 1fr); } }
.role { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.role p { color: var(--muted); margin: 0; }

.steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 20px; padding-top: 64px; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step, arabic-indic); position: absolute; top: 18px; inset-inline-start: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--petrol-700); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps p { color: var(--muted); margin: 0; }

.trust { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust li { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); border-inline-start: 4px solid var(--petrol-500); }
.trust p { color: var(--muted); margin: 0; }

/* Demo */
.demo { background: var(--petrol-700); color: #fff; }
.demo h2 { color: #fff; }
.demo-box { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .demo-box { grid-template-columns: 1fr auto; gap: 48px; } }
.demo-facts { margin: 0; padding-inline-start: 1.2em; color: var(--petrol-100); }

/* Footer */
.site-footer { background: var(--petrol-900); color: var(--petrol-100); padding: 28px 0; font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; }
.footer-row p { margin: 0; }
.muted { color: #a9cbdb; }
