/* ==========================================================================
   Amanak — shared stylesheet
   Edit the design tokens below to adjust colours, fonts and spacing site-wide.
   ========================================================================== */

:root {
  /* Brand colours */
  --navy: #0f2a44;
  --navy-2: #1b3d5f;
  --teal: #0e8c83;
  --teal-600: #0b766e;
  --teal-50: #e8f6f4;
  --teal-100: #cdece8;
  --amber: #f5a524;
  --amber-50: #fff5e3;
  --sky-50: #eef5fb;
  --red: #d64545;
  --red-50: #fdecec;
  --green: #1f9d61;
  --green-50: #e6f6ee;

  /* Neutrals */
  --bg: #fbfcfd;
  --surface: #ffffff;
  --text: #1b2733;
  --muted: #566677;
  --line: #e3e9ef;

  /* Type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Noto Kufi Arabic", "Plus Jakarta Sans", sans-serif;

  /* Shape & depth */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 68, .06), 0 1px 3px rgba(15, 42, 68, .05);
  --shadow: 0 6px 24px rgba(15, 42, 68, .08);
  --shadow-lg: 0 20px 50px rgba(15, 42, 68, .14);

  --container: 1160px;
  --nav-h: 80px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
ul { padding-left: 1.2em; }
[lang="ar"], .ar { font-family: var(--font-ar); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* ---------- Icons (inserted by script.js from data-icon) ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-icon] { display: inline-flex; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(14, 140, 131, .28); }
.btn-primary:hover { background: var(--teal-600); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-600); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--teal-600); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: .55rem 1rem; font-size: .92rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 252, 253, .86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-logo { height: 60px; width: auto; flex: none; }
@media (max-width: 560px) { .brand-logo { height: 54px; } }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .5rem .8rem; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background-color .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--teal-50); color: var(--teal-600); }
.nav-links a[aria-current="page"] { background: var(--teal-50); color: var(--teal-600); }
.nav-cta { margin-left: .5rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--navy); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav-links a { padding: .8rem 1rem; border-radius: 12px; font-size: 1.05rem; }
  .nav-cta { margin: .75rem 0 0; width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-tint { background: linear-gradient(180deg, var(--teal-50), var(--bg)); }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--amber); border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1020px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-100); }
.card h3 { margin-top: 1rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

.icon-badge {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--teal-50); color: var(--teal-600); font-size: 1.35rem;
}
.icon-badge.amber { background: var(--amber-50); color: #b26d00; }
.icon-badge.navy { background: var(--sky-50); color: var(--navy-2); }
.icon-badge.red { background: var(--red-50); color: var(--red); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px;
  background: var(--teal-50); color: var(--teal-600);
}
.tag.amber { background: var(--amber-50); color: #8a5400; }
.tag.navy { background: var(--sky-50); color: var(--navy-2); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(14, 140, 131, .12), transparent 60%),
    radial-gradient(700px 400px at 5% 90%, rgba(245, 165, 36, .10), transparent 60%),
    var(--bg);
}
.hero h1 .accent { color: var(--teal); }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-points .icon { color: var(--teal); }

.hero-visual { position: relative; }
.hero-visual .scene {
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden; aspect-ratio: 5 / 4;
}
.hero-visual .scene svg { width: 100%; height: 100%; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: .75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: .75rem 1rem; box-shadow: var(--shadow); font-size: .88rem; line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--navy); font-size: .92rem; }
.float-card span { color: var(--muted); }
.float-card .icon-badge { width: 38px; height: 38px; border-radius: 10px; font-size: 1.05rem; }
.float-card.fc-1 { top: 8%; left: -6%; }
.float-card.fc-2 { bottom: 10%; right: -5%; animation-delay: -3s; }
@media (max-width: 1200px) { .float-card.fc-1 { left: 3%; } .float-card.fc-2 { right: 3%; } }
@media (max-width: 480px) { .float-card { font-size: .78rem; padding: .55rem .7rem; } .float-card .icon-badge { display: none; } }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.bus-move { animation: busMove 9s ease-in-out infinite; }
@keyframes busMove {
  0% { transform: translate(0, 0); }
  45% { transform: translate(170px, 0); }
  55% { transform: translate(170px, 0); }
  100% { transform: translate(0, 0); }
}
.pulse-ring { transform-origin: center; transform-box: fill-box; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }
.dash-flow { stroke-dasharray: 8 10; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -36; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 4rem);
  background:
    radial-gradient(800px 380px at 90% 0%, rgba(14, 140, 131, .13), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(245, 165, 36, .09), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero .container { max-width: 820px; text-align: center; }
.page-hero .lead { margin-inline: auto; max-width: 640px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }

/* ---------- Benefits / overview ---------- */
.overview-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.stakeholders {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  position: relative;
}
.stakeholder {
  display: flex; align-items: center; gap: .9rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
}
.stakeholder strong { display: block; color: var(--navy); }
.stakeholder span { font-size: .9rem; color: var(--muted); }
.stakeholder-hub {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .75rem;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.1rem; font-weight: 700;
}

/* ---------- How it works steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 10%; right: 10%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal-100) 0 10px, transparent 10px 18px);
}
.step { position: relative; text-align: center; counter-increment: step; }
.step-icon {
  position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--teal-100);
  color: var(--teal-600); font-size: 1.5rem; box-shadow: var(--shadow-sm);
}
.step-icon::after {
  content: counter(step); position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--amber); color: var(--navy); font-size: .78rem; font-weight: 800; display: grid; place-items: center;
}
.step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }
@media (max-width: 1020px) {
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .steps::before { top: 0; bottom: 0; left: 33px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--teal-100) 0 10px, transparent 10px 18px); }
  .step { display: grid; grid-template-columns: 68px 1fr; gap: 1rem; text-align: left; align-items: center; }
  .step-icon { margin: 0; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--teal-600) 130%);
  color: #dfe9f2; padding: clamp(2.5rem, 6vw, 4rem);
  display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 40px solid rgba(245, 165, 36, .14);
}
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; position: relative; z-index: 1; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.mv-card { position: relative; overflow: hidden; }
.mv-card.mission { background: linear-gradient(160deg, var(--teal-50), var(--surface) 70%); }
.mv-card.vision { background: linear-gradient(160deg, var(--amber-50), var(--surface) 70%); }
.mv-card p { color: var(--text); font-size: 1.08rem; }

.objectives { counter-reset: obj; list-style: none; padding: 0; margin: 0; }
.objective { counter-increment: obj; display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.objective::before {
  content: counter(obj, decimal-leading-zero); font-weight: 800; font-size: 1.6rem; color: var(--teal);
  line-height: 1; padding-top: .2rem;
}
.objective p { margin: 0; color: var(--text); }

.team-card { text-align: center; }
.team-photo {
  width: 112px; height: 112px; margin: 0 auto; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--teal-50), var(--sky-50)); border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--teal-100); display: grid; place-items: center; color: var(--teal-600); font-size: 2.6rem;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-role { color: var(--teal-600); font-weight: 700; font-size: .92rem; margin-bottom: .6rem; }
.team-card .placeholder-text { font-style: italic; }
.team-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; font-weight: 700; font-size: .92rem; text-decoration: none; }

.editor-note {
  border: 1px dashed var(--amber); background: var(--amber-50); color: #6b4300;
  border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .92rem; display: flex; gap: .6rem; align-items: flex-start;
}
.editor-note .icon { margin-top: .2rem; }

/* ---------- Services ---------- */
.service {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
}
.service-num { font-size: .8rem; font-weight: 800; color: var(--teal-600); letter-spacing: .1em; }
.service h3 { margin-top: .2rem; font-size: 1.35rem; }
.service-list { display: grid; gap: 1.5rem; }
.service-list .card { padding: 2rem; }
.service .check-list { margin-top: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .service { grid-template-columns: 1fr; } .service .check-list { grid-template-columns: 1fr; } }

/* ---------- Features: roles ---------- */
.role-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.tab-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tab-btn:hover { border-color: var(--teal); color: var(--teal-600); }
.tab-btn[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.role-panel { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow-sm); }
.role-panel .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.25rem; }
@media (max-width: 900px) { .role-panel { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .role-panel .check-list { grid-template-columns: 1fr; } }

/* ---------- Seat monitoring flow ---------- */
.flow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.5rem; position: relative;
}
.flow-node {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 1.25rem; box-shadow: var(--shadow-sm);
}
.flow-node .tag { margin-bottom: .6rem; }
.flow-node h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.flow-node p { font-size: .93rem; color: var(--muted); margin: 0; }
.flow-node.ok { border-color: #bfe6d1; background: var(--green-50); }
.flow-node.alert { border-color: #f3c2c2; background: var(--red-50); }
.flow-node.ok .tag { background: #fff; color: var(--green); }
.flow-node.alert .tag { background: #fff; color: var(--red); }
.flow-arrow { display: grid; place-items: center; color: var(--teal); font-size: 1.4rem; }
.flow-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: .75rem; align-items: stretch; }
.flow-branch { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.flow-branch-label { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.flow-branch-label.ok { color: var(--green); }
.flow-branch-label.alert { color: var(--red); }
.flow-chain { display: grid; gap: .75rem; }
.flow-chain .flow-arrow { transform: rotate(90deg); height: 20px; }
@media (max-width: 900px) {
  .flow-row { grid-template-columns: 1fr; }
  .flow-row .flow-arrow { transform: rotate(90deg); height: 24px; }
  .flow-branch { grid-template-columns: 1fr; }
}

.disclaimer {
  display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.5rem;
  background: var(--sky-50); border-left: 4px solid var(--navy-2); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; font-size: .95rem; color: var(--navy);
}
.disclaimer .icon { margin-top: .2rem; }

/* ---------- Value pillars ---------- */
.pillar { position: relative; overflow: hidden; padding-top: 2.25rem; }
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--teal); }
.pillar:nth-child(2)::before { background: var(--amber); }
.pillar:nth-child(3)::before { background: var(--navy-2); }
.pillar:nth-child(4)::before { background: var(--green); }
.pillar-num { position: absolute; top: 1rem; right: 1.25rem; font-weight: 800; font-size: 2.5rem; color: var(--line); line-height: 1; }

.audience-primary {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center;
  background: var(--navy); color: #dfe9f2; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1.5rem;
}
.audience-primary h3 { color: #fff; font-size: 1.4rem; margin-top: 0; }
.audience-primary p { margin: 0; }
.audience-primary .icon-badge { width: 72px; height: 72px; font-size: 2rem; background: rgba(255,255,255,.1); color: var(--amber); }
@media (max-width: 560px) { .audience-primary { grid-template-columns: 1fr; } }

/* ---------- Video / media placeholders ---------- */
.media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy);
  aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg);
}
.media-frame video, .media-frame iframe { width: 100%; height: 100%; border: 0; }
.media-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #c9d7e4; padding: 1.5rem;
  background:
    radial-gradient(500px 260px at 80% 0%, rgba(14, 140, 131, .35), transparent 60%),
    radial-gradient(400px 220px at 0% 100%, rgba(245, 165, 36, .18), transparent 60%),
    var(--navy);
}
.media-placeholder h3 { color: #fff; margin: 1rem 0 .3rem; }
.media-placeholder p { margin: 0; font-size: .95rem; }
.play-badge {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.35); color: #fff; font-size: 1.8rem;
}

/* ---------- Demo: interactive ---------- */
.demo-shell {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(1rem, 3vw, 2rem);
}
.demo-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem; scrollbar-width: thin; }
.demo-tabs .tab-btn { flex: none; font-size: .9rem; padding: .6rem 1rem; }
.demo-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.demo-panel h3 { font-size: 1.45rem; }
.demo-panel ol { padding-left: 1.2em; color: var(--muted); }
.demo-panel ol li { margin-bottom: .35rem; }
.demo-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.demo-status { margin-top: .9rem; font-size: .92rem; font-weight: 600; min-height: 1.5em; color: var(--navy); }
@media (max-width: 900px) { .demo-panel { grid-template-columns: 1fr; } }

.sample-label {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700;
  color: #8a5400; background: var(--amber-50); border-radius: 999px; padding: .25rem .65rem; margin-bottom: .75rem;
}

/* Device frames */
.device-wrap { display: grid; place-items: center; }
.phone {
  width: 300px; max-width: 100%; border-radius: 38px; background: var(--navy); padding: 12px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  border-radius: 28px; background: #f4f7fa; overflow: hidden; height: 540px; display: flex; flex-direction: column;
  font-size: .82rem; line-height: 1.4; color: var(--text);
}
.phone-notch { height: 26px; display: flex; justify-content: center; align-items: center; background: #fff; }
.phone-notch::after { content: ""; width: 80px; height: 6px; border-radius: 6px; background: #d6dde4; }
.app-bar { background: #fff; padding: .6rem 1rem .9rem; border-bottom: 1px solid var(--line); }
.app-bar small { color: var(--muted); display: block; font-size: .72rem; }
.app-bar strong { color: var(--navy); font-size: 1rem; }
.app-body { padding: .85rem; display: grid; gap: .65rem; align-content: start; overflow: hidden; flex: 1; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; }
.app-card .row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.app-card .title { font-weight: 700; color: var(--navy); }
.app-card .sub { color: var(--muted); font-size: .74rem; }
.pill { font-size: .68rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: var(--teal-50); color: var(--teal-600); white-space: nowrap; }
.pill.amber { background: var(--amber-50); color: #8a5400; }
.pill.red { background: var(--red-50); color: var(--red); }
.pill.green { background: var(--green-50); color: var(--green); }
.pill.grey { background: #eef1f4; color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .75rem; background: var(--teal-50); color: var(--teal-600); flex: none; }
.avatar.amber { background: var(--amber-50); color: #8a5400; }
.avatar.navy { background: var(--sky-50); color: var(--navy-2); }
.progress { height: 6px; border-radius: 6px; background: #e8edf2; overflow: hidden; margin-top: .45rem; }
.progress span { display: block; height: 100%; background: var(--teal); border-radius: 6px; transition: width .6s ease; }
.mini-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #eaf1ec; }
.mini-map svg { width: 100%; height: auto; }

.browser {
  width: 100%; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-lg);
  font-size: .8rem; line-height: 1.4;
}
.browser-bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; background: #f1f4f7; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6dde4; display: inline-block; }
.browser-bar .url { margin-left: .6rem; flex: 1; background: #fff; border-radius: 6px; padding: .15rem .6rem; color: var(--muted); font-size: .72rem; }
.dash { display: grid; grid-template-columns: 130px 1fr; min-height: 360px; }
.dash-side { background: var(--navy); color: #b9c9d8; padding: .9rem .7rem; display: grid; gap: .3rem; align-content: start; }
.dash-side b { color: #fff; margin-bottom: .6rem; display: block; }
.dash-side span { padding: .35rem .5rem; border-radius: 6px; }
.dash-side span.on { background: rgba(255,255,255,.1); color: #fff; }
.dash-main { padding: .9rem; display: grid; gap: .7rem; align-content: start; background: #f6f8fa; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; }
.kpi b { display: block; font-size: 1.15rem; color: var(--navy); }
.kpi small { color: var(--muted); }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.table th, .table td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
.table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafbfc; }
@media (max-width: 560px) { .dash { grid-template-columns: 1fr; } .dash-side { display: none; } }

/* QR */
.qr-box { display: grid; place-items: center; background: var(--navy); border-radius: 14px; padding: 1rem; position: relative; overflow: hidden; }
.qr-box svg { width: 120px; height: 120px; }
.qr-box .scanline { position: absolute; left: 10%; right: 10%; height: 2px; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: scan 2.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 15%; } 50% { top: 85%; } }
.att-item { display: flex; align-items: center; gap: .6rem; }
.att-item .grow { flex: 1; }

/* Seats */
.bus-seats {
  background: #fff; border: 2px solid var(--line); border-radius: 20px 20px 14px 14px; padding: .8rem;
  display: grid; grid-template-columns: 1fr 1fr 18px 1fr 1fr; gap: .45rem;
}
.bus-seats .aisle { display: block; }
.seat {
  height: 34px; border-radius: 8px 8px 5px 5px; background: #eef1f4; border: 2px solid #dfe5ea;
  transition: background-color .3s ease, border-color .3s ease;
}
.seat.occupied { background: var(--amber-50); border-color: var(--amber); }
.seat.alert { background: var(--red-50); border-color: var(--red); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 4px rgba(214, 69, 69, .25); } }
.bus-front { text-align: center; font-size: .7rem; font-weight: 700; color: var(--muted); margin-bottom: .4rem; letter-spacing: .08em; }
.seat-legend { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .72rem; color: var(--muted); margin-top: .5rem; }
.seat-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.engine-state { display: flex; align-items: center; justify-content: space-between; }
.alert-banner { border-radius: 12px; padding: .7rem .8rem; font-weight: 700; display: flex; gap: .5rem; align-items: center; }
.alert-banner.ok { background: var(--green-50); color: var(--green); }
.alert-banner.alert { background: var(--red-50); color: var(--red); }
.alert-banner.idle { background: #eef1f4; color: var(--muted); }

.journey h3 { display: flex; align-items: center; gap: .6rem; margin-top: 0; }
.journey ol { margin: 0; padding-left: 1.2em; color: var(--muted); }
.journey ol li { margin-bottom: .35rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-card:hover { transform: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; color: var(--navy); font-size: .95rem; margin-bottom: .4rem; }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 140, 131, .15); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(214, 69, 69, .15); }
.field-error { display: none; color: var(--red); font-size: .87rem; font-weight: 600; margin-top: .35rem; }
.field.has-error .field-error { display: block; }
.hp-field { position: absolute !important; left: -9999px !important; }
.form-status { display: none; margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 12px; font-weight: 600; gap: .6rem; align-items: flex-start; }
.form-status.show { display: flex; }
.form-status.success { background: var(--green-50); color: #136a41; }
.form-status.error { background: var(--red-50); color: #a12f2f; }
.form-status .icon { margin-top: .2rem; }
.form-foot { font-size: .87rem; color: var(--muted); margin-top: 1rem; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; }
.info-list .icon-badge { width: 44px; height: 44px; border-radius: 12px; font-size: 1.1rem; }
.info-list small { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.info-list a, .info-list strong { color: var(--navy); font-weight: 700; text-decoration: none; word-break: break-word; }
.info-list a:hover { color: var(--teal-600); }
.info-list .stacked-links a { display: block; }
.info-list .stacked-links a + a { margin-top: .2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c9d8; padding: 4rem 0 2rem; margin-top: 0; }
.site-footer a { color: #dfe9f2; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer .brand { background: #fff; border-radius: 18px; padding: .6rem; }
.site-footer .brand-logo { height: 96px; }
.footer-about { max-width: 340px; margin-top: 1rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Links marked data-optional-link are hidden by script.js while their href is empty */
[data-optional-link].is-empty { display: none !important; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Vertical variant of the steps list (used on the Services page) */
.steps.steps-vertical { grid-template-columns: 1fr; gap: 1rem; }
.steps.steps-vertical::before { top: 0; bottom: 0; left: 33px; right: auto; width: 2px; height: auto;
  background: repeating-linear-gradient(180deg, var(--teal-100) 0 10px, transparent 10px 18px); }
.steps.steps-vertical .step { display: grid; grid-template-columns: 68px 1fr; gap: 1rem; text-align: left; align-items: center; }
.steps.steps-vertical .step-icon { margin: 0; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-sm { margin-top: .4rem; }
.m-0 { margin: 0; }
.h2-sm { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.seat { padding: 0; cursor: pointer; font: inherit; }
.seat:disabled { cursor: default; }

/* Header layout on smaller screens: CTA before the menu button, hidden on phones */
@media (max-width: 1020px) {
  .nav > .nav-cta { order: 2; margin-left: auto; width: auto; margin-top: 0; }
  .nav-toggle { order: 3; }
}
@media (max-width: 560px) {
  .nav > .nav-cta { display: none; }
}

/* Prevent wide children from stretching grid columns on small screens */
.split > *, .grid > *, .contact-grid > *, .demo-panel > * { min-width: 0; }
@media (max-width: 560px) {
  .stakeholders { grid-template-columns: 1fr; }
}
.tab-panel:focus-visible { outline: 2px solid var(--teal-100); outline-offset: 6px; }

/* Team: 3 balanced cards */
.team-grid { max-width: 960px; margin-inline: auto; }
@media (max-width: 1020px) and (min-width: 641px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .75rem); }
}
@media (max-width: 640px) { .team-grid { max-width: 420px; } }

/* In the news */
.news-card { max-width: 820px; margin-inline: auto; display: grid; gap: 1.25rem; justify-items: start; padding: clamp(1.5rem, 4vw, 2.5rem); border-top: 4px solid var(--amber); }
.news-card:hover { transform: none; }
.news-source { display: flex; align-items: center; gap: .9rem; }
.news-source strong { display: block; color: var(--navy); }
.news-logo { height: 44px; width: auto; flex: none; border-radius: 10px; border: 1px solid var(--line); }
.news-source span[lang="ar"] { display: block; font-family: var(--font-ar); color: var(--muted); font-size: .9rem; text-align: left; }
.news-headline { font-family: var(--font-ar); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.7; margin: 0; width: 100%; text-align: right; }
.team-card h3 { margin-bottom: 0; }
.team-card .team-link { margin-top: .6rem; }
.pt-0 { padding-top: 0; }

/* Seat monitoring outcomes (Features page) */
.flow-branch { align-items: stretch; }
.outcome { display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid; padding: 1.5rem; box-shadow: var(--shadow-sm); }
.outcome.ok { background: var(--green-50); border-color: #bfe6d1; }
.outcome.alert { background: var(--red-50); border-color: #f3c2c2; }
.outcome-label { display: flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1.1rem; }
.outcome.ok .outcome-label { color: var(--green); }
.outcome.alert .outcome-label { color: var(--red); }
.outcome h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.outcome p { font-size: .93rem; color: var(--muted); margin: 0; }
.outcome-body { background: #fff; border-radius: var(--radius-sm); padding: 1.25rem; flex: 1; }
.outcome-center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .5rem; }
.icon-badge.green { background: var(--green-50); color: var(--green); }
.outcome-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; flex: 1; position: relative; }
.outcome-steps li { display: grid; grid-template-columns: 34px 1fr; gap: .9rem; align-items: start; background: #fff; border-radius: var(--radius-sm); padding: 1rem 1.1rem; position: relative; }
.outcome-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--red-50); color: var(--red); }
.outcome-steps li + li::before { content: ""; position: absolute; left: calc(1.1rem + 16px); top: -.75rem; width: 2px; height: .75rem; background: #f3c2c2; }

/* Embedded video: no animated/transformed ancestor, iframe on its own layer */
.video-wrap { width: 100%; max-width: 900px; margin: 0 auto; }
.media-frame iframe { position: relative; z-index: 1; display: block; pointer-events: auto; }

/* Text + video row: video takes ~57% of the row on desktop */
.split.split-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
@media (max-width: 900px) { .split.split-media { grid-template-columns: 1fr; } }
.media-frame video { display: block; object-fit: cover; background: var(--navy); }

/* ---------- Demo videos: separate portrait phone recordings in cards ---------- */
.demo-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; justify-items: center; align-items: start; }
.demo-video { margin: 0; width: 100%; max-width: 320px; text-align: center; }
.demo-video figcaption { margin-top: 1.1rem; }
.demo-video figcaption strong { display: block; color: var(--navy); font-size: 1.1rem; }
.demo-video figcaption span { display: block; margin-top: .25rem; color: var(--muted); font-size: .95rem; }
/* Each video keeps its own shape from its width/height attributes; corners clip the area outside the phone. */
.video-phone {
  display: block; width: 100%; height: auto; margin-inline: auto;
  border-radius: 14% / 7%; overflow: hidden; background: transparent;
}
@media (max-width: 1020px) {
  .demo-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-video:last-child:nth-child(odd) { grid-column: 1 / -1; } /* centre a lone last card */
}
@media (max-width: 640px) { .demo-videos { grid-template-columns: 1fr; } .demo-video { max-width: 300px; } }
