/* Manbaa (منبع) — design tokens · water-forward "the source" palette */
:root {
  --manbaa-primary: #0B5563;          /* deep spring teal-blue — the source pool (water + Saudi depth) */
  --manbaa-primary-dark: #073E49;
  --manbaa-spring: #16B8C9;            /* bright spring-cyan — flowing water / motion accent */
  --manbaa-spring-soft: rgba(22,184,201,0.12);
  --manbaa-accent: #C9A86A;            /* warm gold — desert/luxury accent, warmth against the water */
  --manbaa-accent-dark: #8C7242;
  --manbaa-ink: #07232A;               /* deep blue-ink */
  --manbaa-paper: #EFF6F8;             /* cool fresh off-white — slightly deeper for section contrast */
  --manbaa-paper-2: #DEEDF0;
  --manbaa-line: #C5D8DF;              /* more visible hairlines */
  --manbaa-muted: #44555C;             /* deeper secondary text for readability */
  --manbaa-success: #1F8A6E;
  --manbaa-warn: #B86E2D;
  --manbaa-danger: #B22B2B;

  /* Signature flow gradient — source → stream */
  --manbaa-flow: linear-gradient(135deg, #0B5563 0%, #16B8C9 100%);

  /* Functional palette — used sparingly so the brand water-teal stays dominant */
  --manbaa-infra: #2563EB;             /* blue · infrastructure / data plane */
  --manbaa-infra-soft: rgba(37,99,235,0.10);
  --manbaa-risk: #C2410C;              /* amber · risk / refresh state */
  --manbaa-risk-soft: rgba(194,65,12,0.10);
  --manbaa-surface: #122A33;           /* deep blue-graphite · product / dashboard surfaces */
  --manbaa-surface-2: #0B1F26;

  --font-sans: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Tajawal", "Inter", system-ui, sans-serif;
  --font-display: "Söhne", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Menlo", monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(7,35,42,0.06), 0 1px 3px rgba(7,35,42,0.04);
  --shadow-md: 0 4px 6px rgba(7,35,42,0.05), 0 10px 15px rgba(7,35,42,0.06);
  --shadow-lg: 0 20px 25px rgba(7,35,42,0.07), 0 8px 10px rgba(7,35,42,0.04);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-sans);
  color: var(--manbaa-ink);
  background: var(--manbaa-paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--manbaa-primary); text-decoration: none; }
a:hover { color: var(--manbaa-primary-dark); text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 1.4em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Top nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 246, 248, 0.88);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--manbaa-line);
  box-shadow: 0 1px 0 rgba(7,35,42,0.03);
}
/* Signature: a thin spring-flow bar across the very top */
.nav::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--manbaa-flow);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 14px 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--manbaa-ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-logo .arabic { font-family: var(--font-arabic); color: var(--manbaa-primary); }
.nav-links { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--manbaa-ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { background: var(--manbaa-paper-2); text-decoration: none; }
.nav-links a.cta {
  background: var(--manbaa-primary); color: white;
}
.nav-links a.cta:hover { background: var(--manbaa-primary-dark); color: white; }

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--manbaa-line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--manbaa-ink);
}
.nav-toggle:hover { background: var(--manbaa-paper-2); }
.nav-toggle[aria-expanded="true"] { background: var(--manbaa-paper-2); }

/* Mobile nav: collapse links into a drawer */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--manbaa-paper);
    border-bottom: 1px solid var(--manbaa-line);
    padding: 12px 16px 18px;
    gap: 4px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }
  .nav-links a.cta { text-align: center; margin-top: 8px; }
  .nav-inner { position: relative; padding: 12px 16px; }
}

/* Hero */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(201,168,106,0.18), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(11,85,99,0.10), transparent 60%),
    var(--manbaa-paper);
  border-bottom: 1px solid var(--manbaa-line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px 5px 11px; border-radius: 999px;
  background: rgba(11,85,99,0.07);
  border: 1px solid rgba(11,85,99,0.18);
  color: var(--manbaa-primary);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--manbaa-spring); flex-shrink: 0;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 0 0 16px;
  line-height: 1.05;
}
.hero-title .accent { color: var(--manbaa-primary); }
.hero-sub { font-size: 1.2rem; color: var(--manbaa-muted); margin: 0 0 32px; max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--manbaa-primary); color: white; }
.btn-primary:hover { background: var(--manbaa-primary-dark); color: white; }
.btn-ghost { background: transparent; color: var(--manbaa-ink); border-color: var(--manbaa-line); }
.btn-ghost:hover { background: var(--manbaa-paper-2); color: var(--manbaa-ink); }

.hero-card {
  background: white; border: 1px solid var(--manbaa-line);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-md);
}
.hero-stat { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.hero-stat-num { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--manbaa-primary); }
.hero-stat-label { color: var(--manbaa-muted); font-size: 0.95rem; }

/* Section */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 12px; }
.section-sub { color: var(--manbaa-muted); font-size: 1.1rem; margin: 0 0 40px; max-width: 720px; }
.section-alt { background: var(--manbaa-paper-2); border-top: 1px solid var(--manbaa-line); border-bottom: 1px solid var(--manbaa-line); }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: white;
  border: 1px solid var(--manbaa-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--manbaa-primary); }
.card h3 { margin-top: 0; }
.card-icon {
  width: 44px; height: 44px;
  background: rgba(11,85,99,0.08);
  color: var(--manbaa-primary);
  border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* Footer */
.footer {
  background: var(--manbaa-primary-dark);
  color: rgba(255,255,255,0.92);
  padding: 56px 0 24px;
  margin-top: 80px;
}
.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { color: white; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 36px; padding-top: 18px;
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
}

/* Docs viewer split-pane */
.docs-shell { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 64px); }
@media (max-width: 880px) { .docs-shell { grid-template-columns: 1fr; } }
.docs-sidebar {
  background: var(--manbaa-paper-2);
  border-right: 1px solid var(--manbaa-line);
  padding: 24px 16px;
  overflow-y: auto;
  max-height: calc(100vh - 64px);
  position: sticky; top: 64px;
}
.docs-search {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--manbaa-line);
  background: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.docs-cat { margin-bottom: 8px; }
.docs-cat-title {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--manbaa-muted); font-weight: 700;
  padding: 8px 10px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
}
.docs-cat ul { list-style: none; padding: 0; margin: 0; }
.docs-cat li a {
  display: block; padding: 6px 12px;
  border-radius: var(--radius-sm); font-size: 0.92rem; color: var(--manbaa-ink);
}
.docs-cat li a:hover { background: white; text-decoration: none; }
.docs-cat li a.active { background: var(--manbaa-primary); color: white; }

.docs-content { padding: 32px 48px; max-width: 880px; overflow-x: hidden; color: var(--manbaa-ink); }
.docs-content h1, .docs-content h2, .docs-content h3 { scroll-margin-top: 80px; }

/* Tables — explicit colors to guarantee contrast on every theme */
.docs-content .table-wrap { overflow-x: auto; margin: 16px 0; -webkit-overflow-scrolling: touch; }
.docs-content table {
  border-collapse: collapse;
  width: 100%;
  background: white;
  font-size: 0.95rem;
}
.docs-content th, .docs-content td {
  border: 1px solid var(--manbaa-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--manbaa-ink);
}
.docs-content th {
  background: var(--manbaa-paper-2);
  color: var(--manbaa-ink);
  font-weight: 700;
}
.docs-content tbody tr:nth-child(even) td { background: rgba(7,35,42,0.02); }
.docs-content tbody tr:hover td { background: rgba(11,85,99,0.04); }

.docs-content code { background: var(--manbaa-paper-2); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.92em; color: var(--manbaa-ink); }
.docs-content pre { background: var(--manbaa-ink); color: #E5E7EB; padding: 16px; border-radius: var(--radius-md); overflow-x: auto; }
.docs-content pre code { background: transparent; color: inherit; padding: 0; }
.docs-content ul, .docs-content ol { padding-left: 26px; margin: 12px 0; }
.docs-content li { margin: 4px 0; }
.docs-content li > ul, .docs-content li > ol { margin: 4px 0 4px; }
.docs-content blockquote { border-left: 3px solid var(--manbaa-accent); padding: 10px 16px; color: var(--manbaa-muted); margin: 16px 0; background: rgba(201,168,106,0.06); border-radius: 0 6px 6px 0; }
.docs-content blockquote > p:first-child { margin-top: 0; }
.docs-content blockquote > p:last-child, .docs-content blockquote > ul:last-child { margin-bottom: 0; }
.docs-content blockquote ul { margin: 8px 0 0; padding-left: 22px; }
.docs-content blockquote li { margin: 2px 0; color: var(--manbaa-ink); font-size: 0.95em; }
.docs-content blockquote br + ul { margin-top: 4px; }

/* Slide viewer */
.slide-viewer { background: var(--manbaa-ink); min-height: 100vh; display: flex; flex-direction: column; }
.slide-toolbar {
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.9);
  padding: 10px 18px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.9rem;
}
.slide-toolbar a, .slide-toolbar button {
  color: white; background: transparent; border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
}
.slide-frame { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.slide-frame iframe { width: 100%; max-width: 1280px; height: calc(100vh - 110px); border: 0; border-radius: 8px; background: white; box-shadow: var(--shadow-lg); }

/* Slide pages themselves */
.slide {
  width: 1280px; height: 720px;
  background: white;
  display: flex; flex-direction: column; padding: 64px 80px;
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}
.slide-eyebrow { color: var(--manbaa-primary); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.slide-title { font-family: var(--font-display); font-weight: 800; font-size: 3rem; margin: 8px 0 24px; line-height: 1.1; }
.slide-body { font-size: 1.2rem; color: var(--manbaa-ink); flex: 1; }
.slide-footer { display: flex; justify-content: space-between; color: var(--manbaa-muted); font-size: 0.8rem; padding-top: 20px; border-top: 1px solid var(--manbaa-line); }

/* Utility */
.text-muted { color: var(--manbaa-muted); }
.text-accent { color: var(--manbaa-accent-dark); }
.text-primary { color: var(--manbaa-primary); }
.mono { font-family: var(--font-mono); }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(11,85,99,0.08); color: var(--manbaa-primary);
  font-size: 0.8rem; font-weight: 600;
}
.pill-gold { background: rgba(201,168,106,0.18); color: var(--manbaa-accent-dark); }

/* Print */
@media print {
  .nav, .footer, .slide-toolbar { display: none !important; }
  body { background: white; }
  .slide { page-break-after: always; box-shadow: none; }
}

/* =========================================================================
   Mobile optimizations
   ========================================================================= */

@media (max-width: 880px) {
  /* Tighter rhythm */
  .hero { padding: 56px 0 48px; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-sub { font-size: 1.05rem; }
  .hero-card { padding: 20px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 36px 0; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-sub { font-size: 1rem; }
  .container, .container-narrow { padding: 0 16px; }

  /* Cards stack tighter */
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 20px; }

  /* Tables in docs: keep table layout but allow horizontal scroll via wrapper */
  .docs-content { padding: 20px 16px; max-width: 100%; }
  .docs-content table { font-size: 0.85rem; }
  .docs-content th, .docs-content td { padding: 8px 10px; }
  .docs-content pre { font-size: 0.8rem; }

  /* Footer */
  .footer { padding: 40px 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Slide viewer toolbar wraps */
  .slide-toolbar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; font-size: 0.8rem; }
  .slide-toolbar a, .slide-toolbar button { padding: 4px 10px; font-size: 0.8rem; }
  .slide-frame { padding: 8px; }
  .slide-frame iframe {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 110px);
  }
}

/* Docs sidebar — collapsible drawer on mobile */
@media (max-width: 880px) {
  .docs-shell { grid-template-columns: 1fr; position: relative; }
  .docs-sidebar {
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: none;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    border-right: 0;
    border-bottom: 1px solid var(--manbaa-line);
  }
  .docs-sidebar.is-open { transform: translateX(0); }
  .docs-toc-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin: 12px 16px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--manbaa-line);
    background: white;
    color: var(--manbaa-ink);
    font-weight: 600;
    cursor: pointer;
  }
}

/* Hidden on desktop only — scoped to min-width so it can't override the
   mobile @media rule above regardless of source order */
@media (min-width: 881px) {
  .docs-toc-toggle { display: none; }
}

/* Slide pages: 1280×720 canvas — paired with `<meta viewport width=1280>` in each
   slide so mobile browsers shrink-to-fit the canvas without breaking layout. */

/* If JS isn't available the iframe still gets a usable aspect ratio */
@supports not (aspect-ratio: 16 / 9) {
  .slide-frame iframe { height: calc(100vw * 0.5625); max-height: calc(100vh - 110px); }
}

/* =========================================================================
   Homepage product visuals (v2.1 UI refresh — 2026-05-14)
   ========================================================================= */

/* Hero workflow scene — SVG renders an operating diagram next to the copy */
.hero-scene {
  position: relative;
  background: linear-gradient(180deg, white 0%, #F4FAFB 100%);
  border: 1px solid var(--manbaa-line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 16px 40px -16px rgba(7,35,42,0.15), 0 1px 2px rgba(7,35,42,0.04);
  overflow: hidden;
}
.hero-scene-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--manbaa-muted);
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 8px;
}
.hero-scene-title .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--manbaa-spring); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.85); } }
@media (prefers-reduced-motion: reduce) { .hero-scene-title .dot { animation: none; } }

.hero-scene-stage { display: grid; grid-template-columns: 1fr; gap: 12px; }
.hero-scene-row {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--manbaa-line);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--manbaa-ink);
}
.hero-scene-row .icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--manbaa-infra-soft); color: var(--manbaa-infra);
}
.hero-scene-row .icon.knowledge { background: rgba(11,85,99,0.10); color: var(--manbaa-primary); }
.hero-scene-row .icon.gpu { background: rgba(31,138,110,0.12); color: var(--manbaa-success); }
.hero-scene-row .icon.audit { background: rgba(201,168,106,0.18); color: var(--manbaa-accent-dark); }
.hero-scene-row .icon.roi { background: rgba(31,138,110,0.12); color: var(--manbaa-success); }
.hero-scene-row .label { font-weight: 600; }
.hero-scene-row .meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--manbaa-muted); }
.hero-scene-row .pill-live {
  font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--manbaa-spring-soft); color: #0C7A88; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-scene-row .pill-cloud {
  font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--manbaa-infra-soft); color: var(--manbaa-infra); letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-scene-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--manbaa-line);
  font-size: 0.78rem; color: var(--manbaa-muted);
}
.hero-scene-foot .num { font-family: var(--font-display); font-weight: 800; color: var(--manbaa-primary); font-size: 1rem; }

/* Pipeline visual for "Three steps. One ladder." */
.pipeline {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr;
  align-items: stretch;
  gap: 0;
  margin: 24px 0 8px;
}
@media (max-width: 880px) {
  .pipeline { grid-template-columns: 1fr; gap: 14px; }
  .pipeline .pipeline-arrow { display: none; }
}
.pipeline-step {
  background: white;
  border: 1px solid var(--manbaa-line);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pipeline-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--manbaa-primary); }
.pipeline-step .step-num {
  position: absolute; top: -14px; left: 18px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--manbaa-primary); color: white;
  font-family: var(--font-display); font-weight: 800; font-size: 0.92rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(11,85,99,0.3);
}
.pipeline-step h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.pipeline-step .step-meta {
  font-size: 0.78rem; color: var(--manbaa-accent-dark); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.pipeline-step p { margin: 0 0 14px; color: var(--manbaa-muted); font-size: 0.94rem; }
.pipeline-step .outputs { border-top: 1px solid var(--manbaa-line); padding-top: 12px; }
.pipeline-step .outputs-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--manbaa-muted); margin-bottom: 8px;
}
.pipeline-step .outputs ul { list-style: none; padding: 0; margin: 0; font-size: 0.86rem; }
.pipeline-step .outputs li {
  padding: 4px 0; color: var(--manbaa-ink);
  display: flex; align-items: center; gap: 8px;
}
.pipeline-step .outputs li::before {
  content: '✓'; color: var(--manbaa-primary); font-weight: 700; flex-shrink: 0;
}
.pipeline-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--manbaa-accent); font-weight: 800; font-size: 1.4rem;
}

/* Dashboard preview embedded on homepage */
.dashboard-preview {
  background: var(--manbaa-surface);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 30px 60px -20px rgba(7,35,42,0.28), 0 1px 2px rgba(7,35,42,0.06);
  position: relative;
  overflow: hidden;
}
.dashboard-preview::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 28px;
  background: var(--manbaa-surface-2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dashboard-preview::after {
  content: '● ● ●';
  position: absolute; top: 6px; left: 14px;
  color: rgba(255,255,255,0.25); font-size: 0.7rem; letter-spacing: 0.3em;
}
.dashboard-preview-inner {
  background: var(--manbaa-paper);
  border-radius: 10px;
  padding: 18px;
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}
@media (max-width: 880px) { .dashboard-preview-inner { grid-template-columns: 1fr; } }
.dp-panel {
  background: white;
  border: 1px solid var(--manbaa-line);
  border-radius: 10px;
  padding: 14px;
}
.dp-panel-title {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--manbaa-muted); margin: 0 0 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.dp-panel-title .live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; color: var(--manbaa-success);
}
.dp-panel-title .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--manbaa-success);
  animation: pulse 2.4s ease-in-out infinite;
}
.dp-jobs {
  display: flex; flex-direction: column; gap: 6px;
}
.dp-job {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--manbaa-paper);
  border-radius: 6px;
  font-size: 0.84rem;
}
.dp-job-name { font-weight: 600; color: var(--manbaa-ink); }
.dp-job-model { font-family: var(--font-mono); font-size: 0.72rem; color: var(--manbaa-muted); }
.dp-status {
  font-size: 0.66rem; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.dp-status-running { background: rgba(11,85,99,0.10); color: var(--manbaa-primary); }
.dp-status-done { background: rgba(31,138,110,0.12); color: var(--manbaa-success); }
.dp-status-cloud { background: var(--manbaa-infra-soft); color: var(--manbaa-infra); }

.dp-stat { padding: 6px 0; }
.dp-stat-num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--manbaa-primary); line-height: 1; }
.dp-stat-label { font-size: 0.72rem; color: var(--manbaa-muted); margin-top: 2px; }
.dp-bar { height: 4px; background: var(--manbaa-paper-2); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.dp-bar > span { display: block; height: 100%; background: var(--manbaa-primary); border-radius: 999px; }

/* Sector preview tiles — show "before / after" visually */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .sector-grid { grid-template-columns: 1fr; } }
.sector-tile {
  background: white;
  border: 1px solid var(--manbaa-line);
  border-radius: 14px;
  padding: 22px;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.sector-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--manbaa-primary); }
.sector-tile .badge {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--manbaa-primary); margin-bottom: 6px;
}
.sector-tile h3 { margin: 0 0 6px; font-size: 1.1rem; }
.sector-tile .lede { color: var(--manbaa-muted); font-size: 0.92rem; margin: 0 0 16px; }
.ba {
  display: grid; grid-template-columns: 1fr 18px 1fr; gap: 8px;
  background: var(--manbaa-paper);
  border-radius: 10px; padding: 12px;
  font-size: 0.84rem;
}
.ba-col .ba-label {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--manbaa-muted); margin-bottom: 4px;
}
.ba-col .ba-val { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--manbaa-ink); }
.ba-col.after .ba-val { color: var(--manbaa-primary); }
.ba-arrow { color: var(--manbaa-accent); font-weight: 800; align-self: end; padding-bottom: 4px; text-align: center; }
.sector-tile .sub-note { margin-top: 12px; font-size: 0.82rem; color: var(--manbaa-muted); }

/* Icon system — SVG containers replace emoji */
.icon-tile {
  width: 44px; height: 44px;
  background: rgba(11,85,99,0.08);
  color: var(--manbaa-primary);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.icon-tile.infra { background: var(--manbaa-infra-soft); color: var(--manbaa-infra); }
.icon-tile.risk { background: var(--manbaa-risk-soft); color: var(--manbaa-risk); }
.icon-tile.gold { background: rgba(201,168,106,0.18); color: var(--manbaa-accent-dark); }
.icon-tile svg { width: 22px; height: 22px; }

/* Scroll-reveal — JS toggles .is-visible; respects prefers-reduced-motion */
.reveal {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Services comparison table (Services page tier comparison) */
.tier-table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  background: white;
  border: 1px solid var(--manbaa-line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.95rem;
}
.tier-table th, .tier-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--manbaa-line);
  text-align: left;
  vertical-align: top;
}
.tier-table thead th {
  background: var(--manbaa-paper-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--manbaa-ink);
  vertical-align: middle;
}
.tier-table thead th .tier-price {
  font-size: 0.84rem; font-weight: 600; color: var(--manbaa-primary);
  display: block; margin-top: 2px;
}
.tier-table thead th.anchor { background: linear-gradient(180deg, rgba(11,85,99,0.10), rgba(11,85,99,0.04)); }
.tier-table thead th.anchor .tier-price { color: var(--manbaa-primary-dark); }
.tier-table th:first-child, .tier-table td:first-child {
  background: var(--manbaa-paper);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--manbaa-muted);
  width: 160px;
}
.tier-table tbody tr:last-child td { border-bottom: 0; }
.tier-table td.anchor { background: rgba(11,85,99,0.025); }
.tier-table .pill-tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: rgba(11,85,99,0.08); color: var(--manbaa-primary);
  font-size: 0.74rem; font-weight: 600; margin-right: 4px; margin-bottom: 4px;
}
.tier-table .pill-tag.gold { background: rgba(201,168,106,0.18); color: var(--manbaa-accent-dark); }

/* Delivery timeline strip */
.timeline-strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 32px 0;
}
.timeline-step {
  position: relative;
  text-align: center;
  padding: 24px 12px 12px;
  border-top: 2px solid var(--manbaa-line);
}
.timeline-step::before {
  content: '';
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: white;
  border: 2px solid var(--manbaa-primary);
}
.timeline-step.is-done::before { background: var(--manbaa-primary); }
.timeline-step .step-when {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--manbaa-primary);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.timeline-step .step-what {
  margin-top: 4px; font-size: 0.88rem; color: var(--manbaa-ink); font-weight: 600;
}
@media (max-width: 720px) {
  .timeline-strip { grid-template-columns: 1fr; gap: 6px; }
  .timeline-step {
    border-top: 0; border-left: 2px solid var(--manbaa-line);
    text-align: left; padding: 6px 12px 6px 22px;
  }
  .timeline-step::before { top: 12px; left: -6px; transform: none; }
}

/* =========================================================================
   Rich sector tiles (Industries page)
   ========================================================================= */

.sector-deep {
  background: white;
  border: 1px solid var(--manbaa-line);
  border-radius: 16px;
  padding: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-bottom: 18px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.sector-deep:hover { box-shadow: var(--shadow-md); border-color: var(--manbaa-primary); }
@media (max-width: 880px) { .sector-deep { grid-template-columns: 1fr; padding: 20px; gap: 18px; } }
.sector-deep.anchor { border-color: var(--manbaa-primary); background: linear-gradient(180deg, rgba(11,85,99,0.03), white 40%); }

.sector-deep-head {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px;
}
.persona-avatar {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(11,85,99,0.10); color: var(--manbaa-primary);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.persona-avatar svg { width: 24px; height: 24px; }
.sector-deep .badge {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--manbaa-primary); margin-bottom: 4px; display: block;
}
.sector-deep.anchor .badge { color: var(--manbaa-accent-dark); }
.sector-deep h3 { margin: 0; font-size: 1.25rem; }
.sector-deep .persona-line {
  font-size: 0.85rem; color: var(--manbaa-muted); margin-top: 4px;
}

.sector-deep-body { font-size: 0.92rem; color: var(--manbaa-ink); }
.sector-deep-body p { margin: 0 0 12px; }
.sector-deep-body p.lede { color: var(--manbaa-ink); font-size: 0.96rem; line-height: 1.55; }

/* Big before/after callout */
.ba-big {
  display: grid; grid-template-columns: 1fr 24px 1fr; gap: 12px;
  background: var(--manbaa-paper-2);
  border-radius: 12px; padding: 16px;
  margin: 0 0 14px;
  align-items: center;
}
.ba-big .ba-col { text-align: center; }
.ba-big .ba-label {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--manbaa-muted); margin-bottom: 4px;
}
.ba-big .ba-val {
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem;
  color: var(--manbaa-ink); line-height: 1; margin-bottom: 4px;
}
.ba-big .ba-col.after .ba-val { color: var(--manbaa-primary); }
.ba-big .ba-sub { font-size: 0.74rem; color: var(--manbaa-muted); }
.ba-big .ba-arrow { color: var(--manbaa-accent); font-weight: 800; font-size: 1.2rem; text-align: center; }

/* Workflow list with check icons */
.workflow-list {
  list-style: none; padding: 0; margin: 8px 0 0;
  font-size: 0.88rem; color: var(--manbaa-ink);
}
.workflow-list li {
  padding: 6px 0; display: flex; align-items: flex-start; gap: 8px;
}
.workflow-list li::before {
  content: ''; flex-shrink: 0; margin-top: 2px;
  width: 16px; height: 16px;
  background: rgba(11,85,99,0.10); color: var(--manbaa-primary);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230E5C4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 8 7 11 12 5'/></svg>");
  background-repeat: no-repeat; background-position: center;
}

/* "How a Foundation works in this sector" sub-card */
.sector-modules {
  background: var(--manbaa-paper);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
}
.sector-modules .modules-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--manbaa-muted); margin-bottom: 8px;
}
.sector-modules .modules {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.sector-modules .module-chip {
  font-size: 0.74rem; padding: 4px 10px; border-radius: 999px;
  background: white; border: 1px solid var(--manbaa-line);
  color: var(--manbaa-ink); font-weight: 500;
}
.sector-modules .module-chip.primary {
  background: rgba(11,85,99,0.08); border-color: rgba(11,85,99,0.2); color: var(--manbaa-primary);
}

/* "Why we win" pull quote */
.win-callout {
  border-left: 3px solid var(--manbaa-accent);
  padding: 10px 14px;
  background: rgba(201,168,106,0.08);
  border-radius: 0 8px 8px 0;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--manbaa-ink);
}
.win-callout strong { color: var(--manbaa-accent-dark); }

/* Opportunistic compact grid */
.opp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 880px) { .opp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .opp-grid { grid-template-columns: 1fr; } }
.opp-tile {
  background: white; border: 1px solid var(--manbaa-line); border-radius: 12px;
  padding: 16px;
}
.opp-tile .opp-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--manbaa-paper-2); color: var(--manbaa-muted);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.opp-tile h4 { margin: 0 0 4px; font-size: 0.98rem; }
.opp-tile p { margin: 0; font-size: 0.84rem; color: var(--manbaa-muted); }

/* Anti-segment row */
.refuse-list {
  background: rgba(178,43,43,0.04);
  border: 1px solid rgba(178,43,43,0.18);
  border-radius: 14px;
  padding: 20px 22px;
  max-width: 820px; margin: 0 auto;
}
.refuse-list ul { list-style: none; padding: 0; margin: 0; }
.refuse-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-top: 1px solid rgba(178,43,43,0.10);
  font-size: 0.92rem;
}
.refuse-list li:first-child { border-top: 0; padding-top: 0; }
.refuse-list .x-icon {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(178,43,43,0.10); color: var(--manbaa-danger);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.refuse-list .x-icon svg { width: 12px; height: 12px; }
.refuse-list strong { color: var(--manbaa-ink); }

/* Sticky CTA bar (Services page) */
.sticky-cta {
  position: sticky; bottom: 16px; z-index: 30;
  background: var(--manbaa-surface);
  color: white;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 20px 40px -16px rgba(7,35,42,0.4);
  margin: 32px 0 0;
}
.sticky-cta .cta-text { font-size: 0.95rem; }
.sticky-cta .cta-text strong { color: white; }
.sticky-cta .btn-primary { background: var(--manbaa-accent); color: var(--manbaa-ink); }
.sticky-cta .btn-primary:hover { background: #D6B47A; color: var(--manbaa-ink); }
@media (max-width: 720px) {
  .sticky-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ===== Contact form ===== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 22px; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: white; }
#contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { #contact-form .form-row { grid-template-columns: 1fr; } }
#contact-form .field { margin-bottom: 14px; display: flex; flex-direction: column; }
#contact-form label { font-size: 0.86rem; font-weight: 600; color: var(--manbaa-ink); margin-bottom: 6px; }
#contact-form label .opt { font-weight: 400; color: var(--manbaa-muted); }
#contact-form input, #contact-form textarea {
  font: inherit; font-size: 0.95rem; color: var(--manbaa-ink);
  background: var(--manbaa-paper);
  border: 1.5px solid var(--manbaa-line);
  border-radius: var(--radius-md);
  padding: 11px 13px; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
#contact-form input:hover, #contact-form textarea:hover { border-color: #B9D2D8; }
#contact-form input:focus, #contact-form textarea:focus {
  outline: none; background: white;
  border-color: var(--manbaa-primary);
  box-shadow: 0 0 0 3px var(--manbaa-spring-soft);
}
#contact-form textarea { resize: vertical; min-height: 110px; }
#contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#contact-form button[type="submit"] { margin-top: 4px; }
#contact-form button[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin: 12px 0 0; font-size: 0.9rem; min-height: 1.2em; }
.form-status.is-ok { color: var(--manbaa-success); font-weight: 600; }
.form-status.is-err { color: var(--manbaa-danger); font-weight: 600; }
