/* =========================================================
   ALO DOCTOR — Base stylesheet (Phase 2)
   Uses tokens.css ONLY. No hard-coded colours here.
   Loaded AFTER tokens.css and fonts.css.
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Focus ring — visible on every interactive element */
:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reduced motion — global kill-switch */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout wrapper ---------- */
.wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */
h1, .h1 {
  font-family: 'Almarai', 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 800; font-size: var(--fs-h1); line-height: var(--lh-h);
  color: var(--ink); letter-spacing: -0.005em;
}
h2, .h2 {
  font-family: 'Almarai', 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 800; font-size: var(--fs-h2); line-height: var(--lh-h);
  color: var(--ink); letter-spacing: -0.005em;
}
h3, .h3, h4, h5 {
  font-family: 'Almarai', 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 800; font-size: var(--fs-h3); line-height: var(--lh-h3);
  color: var(--ink);
}
p, li { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); }
small, .small { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow); font-weight: 600;
  color: var(--teal); letter-spacing: 0.02em;
  text-transform: none;
}
.lead {
  font-size: var(--fs-body); line-height: var(--lh-body);
  color: var(--muted); max-width: 640px;
}
.accent { color: var(--teal); }

/* ---------- Button primitives ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-family: 'Almarai', sans-serif; font-weight: 700; font-size: var(--fs-body);
  background: var(--teal); color: var(--white);
  border: 1px solid var(--teal);
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  min-height: 44px; /* WCAG target */
}
.btn:hover  { background: var(--teal-900); border-color: var(--teal-900); }
.btn:active { transform: translateY(1px); }

.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  background: var(--sand); color: var(--ink); border-color: var(--muted);
}

.btn.white {
  background: var(--white); color: var(--ink); border-color: var(--white);
}
.btn.white:hover {
  background: var(--cream); border-color: var(--cream);
}

.btn.sm {
  padding: 8px 14px; font-size: var(--fs-small); min-height: 36px; gap: 6px;
}

.wa-ic { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Card primitive ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.card + .card { margin-top: 12px; }

/* ---------- Case-file component (signature) ----------
   Reused across achievements, doctors, hospitals, pricing.
   ------------------------------------------------------- */
.file {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.file__head {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Almarai', sans-serif; font-weight: 700; font-size: var(--fs-small);
  letter-spacing: 0.02em;
}
.file__head .file__ref {
  color: var(--sand); opacity: 0.75;
  font-size: 10.5px; font-weight: 600;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}
.file__body { padding: 6px 14px 14px; }
.file__row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-body); line-height: 1.55;
}
.file__row:last-child { border-bottom: 0; }
.file__row .lbl { color: var(--muted); font-size: var(--fs-small); min-width: 96px; }
.file__row .val { color: var(--ink); font-weight: 600; flex: 1; }
.file__row .val b { font-weight: 800; color: var(--ink); }

/* ---------- Disclaim (amber warning note) ---------- */
.disclaim {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  color: var(--amber-ink);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: var(--fs-small); line-height: 1.6;
}
.disclaim svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }

/* ---------- Availability bar (thin strip above header) ---------- */
.avail-bar {
  background: var(--teal-900);
  color: var(--cream);
  font-size: var(--fs-eyebrow); font-weight: 500;
  text-align: center;
  padding: 6px 12px;
  line-height: 1.4;
}
.avail-bar .dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--teal-500); border-radius: 50%;
  vertical-align: middle; margin-inline-end: 6px;
}

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
header.site .row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 10px var(--gutter);
}
header.site .brand { display: flex; align-items: center; gap: 8px; }
header.site .brand img { height: 30px; width: auto; }
header.site nav { display: none; }
header.site .header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

header.site .m-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line);
  color: var(--ink); padding: 8px; border-radius: 10px;
  min-width: 40px; min-height: 40px;
}
header.site .m-btn svg { width: 20px; height: 20px; }

/* Mobile nav */
.m-nav {
  display: none;
  position: fixed; top: 0; inset-inline: 0; bottom: 0;
  background: var(--cream); z-index: 60;
  flex-direction: column; padding: 24px 20px 40px;
  overflow-y: auto;
}
.m-nav.open { display: flex; }
.m-nav .m-nav__close {
  align-self: flex-end;
  background: none; border: 0; color: var(--ink);
  padding: 8px;
}
.m-nav .m-nav__close svg { width: 24px; height: 24px; }
.m-nav a {
  display: block;
  padding: 14px 0;
  font-family: 'Almarai', sans-serif; font-weight: 700; font-size: 17px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.m-nav .btn { margin-top: 20px; }

/* Header desktop widening (design tokens; no separate desktop redesign yet) */
@media (min-width: 900px) {
  header.site nav {
    display: flex; gap: 20px;
    font-size: var(--fs-body); font-weight: 600;
  }
  header.site nav a { color: var(--ink); padding: 6px 4px; }
  header.site nav a:hover,
  header.site nav a.active { color: var(--teal); }
  header.site .m-btn { display: none; }
  header.site .brand img { height: 34px; }
}

/* ---------- Utility spacing ---------- */
.pad { padding: 32px 0; }
.pad-lg { padding: 48px 0; }
@media (min-width: 900px) { .pad { padding: 56px 0; } .pad-lg { padding: 88px 0; } }

/* ---------- Legacy compatibility shims (Phase 2 keeps old sections rendering) ----
   Phase 3+ will replace all sections. Until then, alias legacy classes to tokens. */
:root {
  --navy:      var(--ink);
  --navy-2:    var(--ink);
  --teal-hi:   var(--teal-500);
  --teal-soft: var(--sand);
  --ivory:     var(--cream);
  --mute:      var(--muted);
}
.btn-primary { background: var(--teal); color: var(--white); border: 1px solid var(--teal); }
.btn-primary:hover { background: var(--teal-900); border-color: var(--teal-900); }
.btn-ghost   { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 11px 19px; }
.btn-ghost:hover { background: var(--sand); }
.btn-white   { background: var(--white); color: var(--ink); border: 1px solid var(--white); }
.btn-white:hover { background: var(--cream); }

/* =========================================================
   PHASE 3 — Hero + Dual-Path Gateway
   ========================================================= */

/* ---------- Hero ---------- */
section.hero {
  background: var(--cream);
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.hero__copy .eyebrow { margin-bottom: 12px; }
.hero .h1 { margin-bottom: 12px; }
.hero .lead { margin-bottom: 24px; color: var(--ink); }
.hero__cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.hero__cta .btn { padding: 14px 22px; min-height: 48px; font-size: var(--fs-body); }
.hero__cta .btn__arrow { font-family: 'Almarai', sans-serif; font-weight: 700; }
.hero__link {
  color: var(--ink);
  font-family: 'Almarai', sans-serif; font-weight: 700; font-size: var(--fs-body);
  border-bottom: 1px solid var(--muted);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.hero__link:hover { color: var(--teal); border-bottom-color: var(--teal); }
.hero__note {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  margin: 0;
}

/* Hero SVG — 200px, teal-900 stroke, sand+cream fills for the 2 differentiators */
.hero__art { display: flex; justify-content: center; margin-top: 8px; }
.hero-svg  { width: 200px; height: 200px; color: var(--teal-900); }
.hero-svg .a { fill: var(--sand); }
.hero-svg .b { fill: var(--cream); }

@media (min-width: 720px) {
  section.hero { padding: 56px 0 64px; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
  .hero__art { margin-top: 0; justify-content: flex-start; }
  .hero-svg  { width: 220px; height: 220px; }
}

/* ---------- Dual-path gateway ---------- */
.gateway { background: var(--sand); padding: 40px 0 48px; }
.gateway__head { margin-bottom: 24px; }
.gateway__head .eyebrow { margin-bottom: 8px; }
.gateway__grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.path {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  display: flex; flex-direction: column;
}
.path--emphasized {
  border: 1.5px solid var(--teal);
  box-shadow: 0 12px 28px -18px var(--ink-a18);
}
.path__tag {
  align-self: flex-start;
  display: inline-block;
  background: var(--sand);
  color: var(--ink);
  font-family: 'Almarai', sans-serif; font-weight: 700;
  font-size: var(--fs-eyebrow);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.path--emphasized .path__tag {
  background: var(--teal);
  color: var(--white);
}
.path__title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--ink);
  margin-bottom: 8px;
}
.path__body {
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: 14px;
}
.path__list {
  list-style: none;
  padding: 0; margin: 0 0 16px;
}
.path__list li {
  position: relative;
  padding-inline-start: 20px;
  padding-block: 6px;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
}
.path__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: 12px;
  width: 8px; height: 8px;
  background: var(--teal-500);
  border-radius: 50%;
}
.path__price {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 12px;
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
}
.path__price-lbl {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 600;
}
.path__price-val {
  color: var(--ink);
  font-family: 'Almarai', sans-serif; font-weight: 700;
  font-size: var(--fs-body);
}
.path__cta { align-self: stretch; text-align: center; }

.gateway__foot {
  margin-top: 20px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  text-align: start;
}

@media (min-width: 720px) {
  .gateway { padding: 64px 0 72px; }
  .gateway__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .path { padding: 26px 24px 24px; }
  .gateway__foot { max-width: 720px; }
}

/* =========================================================
   PHASE 4 — Trust · About · Network · Case-file ·
              Services · How · Specialties · FAQ · Final
   All colour + typography from tokens.css. Icons via _icons.html.
   ========================================================= */

.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;
}

/* ---------- 3 · Trust band ---------- */
section.trust {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.trust__item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
}
.trust__ic {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sand);
  color: var(--teal-900);
  border-radius: 12px;
}
.trust__text b {
  display: block;
  font-family: 'Almarai', sans-serif; font-weight: 800;
  font-size: var(--fs-body); color: var(--ink);
  line-height: 1.4; margin-bottom: 2px;
}
.trust__text span {
  display: block;
  color: var(--muted);
  font-size: var(--fs-small); line-height: 1.5;
}
@media (min-width: 720px) {
  section.trust { padding: 32px 0; }
  .trust__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* ---------- 4 · About ---------- */
section.about {
  background: var(--white);
  padding: 40px 0 48px;
}
.about__head { max-width: 720px; margin-bottom: 28px; }
.about__head .eyebrow { margin-bottom: 10px; }
.about__head .h2 { margin-bottom: 14px; }
.about__body {
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.9;
}
.about__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.pillar {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.pillar__num {
  display: inline-block;
  color: var(--teal);
  font-family: 'Almarai', sans-serif; font-weight: 800;
  font-size: var(--fs-small);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.pillar__title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  margin-bottom: 6px;
}
.pillar__body {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.75;
}
@media (min-width: 720px) {
  section.about { padding: 64px 0 72px; }
  .about__pillars { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .pillar { padding: 24px 22px; }
}

/* ---------- 5 · Network ---------- */
section.network {
  background: var(--sand);
  padding: 40px 0 48px;
}
.network__head { max-width: 640px; margin-bottom: 20px; }
.network__head .eyebrow { margin-bottom: 8px; }
.network__head .h2 { margin-bottom: 10px; }
.network__ctas {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 18px;
}
@media (min-width: 720px) {
  section.network { padding: 64px 0 72px; }
}

/* ---------- 6 · Case file ---------- */
section.casefile {
  background: var(--white);
  padding: 40px 0 48px;
}
.casefile__head { max-width: 640px; margin-bottom: 22px; }
.casefile__head .eyebrow { margin-bottom: 8px; }
.casefile__head .h2 { margin-bottom: 10px; }
.casefile__body {
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
section.casefile .disclaim {
  margin-top: 16px;
}
@media (min-width: 720px) {
  section.casefile { padding: 64px 0 72px; }
  section.casefile .file { max-width: 560px; }
}

/* ---------- 7 · Services ---------- */
section.services {
  background: var(--sand);
  padding: 40px 0 48px;
}
.services__head { max-width: 640px; margin-bottom: 24px; }
.services__head .eyebrow { margin-bottom: 8px; }
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.svc {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.svc:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.svc__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: var(--sand);
  color: var(--teal-900);
  border-radius: 14px;
  margin-bottom: 14px;
}
.svc__tag {
  display: inline-block;
  background: var(--sand);
  color: var(--ink);
  font-family: 'Almarai', sans-serif; font-weight: 700;
  font-size: var(--fs-eyebrow);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.svc__title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  margin-bottom: 8px;
}
.svc__desc {
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: 14px;
}
.svc__price {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 12px;
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
}
.svc__price-lbl {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 600;
}
.svc__price-val {
  color: var(--ink);
  font-family: 'Almarai', sans-serif; font-weight: 700;
  font-size: var(--fs-body);
}
.svc__more {
  color: var(--teal);
  font-family: 'Almarai', sans-serif; font-weight: 700;
  font-size: var(--fs-small);
  margin-top: auto;
}
@media (min-width: 720px) {
  section.services { padding: 64px 0 72px; }
  .services__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .svc { padding: 26px 24px; }
}

/* ---------- 8 · How we work ---------- */
section.how {
  background: var(--cream);
  padding: 40px 0 48px;
}
.how__head { max-width: 640px; margin-bottom: 24px; }
.how__head .eyebrow { margin-bottom: 8px; }
.how__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr; gap: 14px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.step__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--sand);
  color: var(--teal-900);
  border-radius: 12px;
  margin-bottom: 12px;
}
.step__num {
  position: absolute; top: 16px;
  inset-inline-end: 18px;
  color: var(--teal);
  font-family: 'Almarai', sans-serif; font-weight: 800;
  font-size: var(--fs-h3);
  letter-spacing: 0.02em;
}
.step__title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  margin-bottom: 6px;
}
.step__body {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.75;
}
@media (min-width: 720px) {
  section.how { padding: 64px 0 72px; }
  .how__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

/* ---------- 9 · Specialties ---------- */
section.specialties {
  background: var(--white);
  padding: 40px 0 48px;
}
.specialties__head { max-width: 640px; margin-bottom: 24px; }
.specialties__head .eyebrow { margin-bottom: 8px; }
.spec__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.spec {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.spec:hover {
  background: var(--sand);
  border-color: var(--teal);
}
.spec__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--white);
  color: var(--teal-900);
  border-radius: 10px;
  flex-shrink: 0;
}
.spec__name {
  font-family: 'Almarai', sans-serif; font-weight: 700;
  font-size: var(--fs-small); line-height: 1.3;
  color: var(--ink);
}
.specialties__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px;
  color: var(--teal);
  font-family: 'Almarai', sans-serif; font-weight: 700;
  font-size: var(--fs-small);
}
@media (min-width: 720px) {
  section.specialties { padding: 64px 0 72px; }
  .spec__grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
}

/* ---------- 10 · FAQ ---------- */
section.faq {
  background: var(--sand);
  padding: 40px 0 48px;
}
.faq__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.faq__side .eyebrow { margin-bottom: 8px; }
.faq__side .h2 { margin-bottom: 10px; }
.faq__hint {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.75;
}
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 16px;
  font-family: 'Almarai', sans-serif; font-weight: 700;
  font-size: var(--fs-body); color: var(--ink);
  line-height: 1.5;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--teal-900);
  font-family: 'Almarai', sans-serif; font-weight: 800;
  font-size: var(--fs-body);
  transition: transform 0.18s ease, background 0.18s ease;
}
.faq__item[open] .faq__plus {
  transform: rotate(45deg);
  background: var(--teal);
  color: var(--white);
}
.faq__item p {
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.85;
}
.faq__all {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  color: var(--teal);
  font-family: 'Almarai', sans-serif; font-weight: 700;
  font-size: var(--fs-small);
}
@media (min-width: 720px) {
  section.faq { padding: 64px 0 72px; }
  .faq__layout { grid-template-columns: 0.9fr 1.3fr; gap: 56px; }
}

/* ---------- 11 · Final CTA ---------- */
section.final {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 0 64px;
  text-align: center;
}
section.final .accent { color: var(--teal-500); }
.final__title {
  color: var(--cream);
  margin-bottom: 12px;
}
.final__body {
  color: var(--cream);
  opacity: 0.85;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: 20px;
}
section.final .btn {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
  padding: 14px 22px;
  min-height: 48px;
}
section.final .btn:hover {
  background: var(--cream);
  border-color: var(--cream);
}
section.final .btn svg { color: var(--teal); }
.final__meta {
  margin-top: 16px;
  color: var(--cream);
  opacity: 0.65;
  font-size: var(--fs-small);
}
@media (min-width: 720px) {
  section.final { padding: 80px 0 88px; }
}

/* =========================================================
   PHASE 5 — Motion, micro-interactions, and brand-mark tweaks
   All colour + typography from tokens.css. Zero raster.
   ========================================================= */

/* ---------- Brand macro (inline SVG lockup) ---------- */
.brand__lockup {
  display: inline-flex; align-items: center; gap: 10px;
  color: currentColor;
}
.brand__mark { color: var(--teal); flex-shrink: 0; }
.brand__wm {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  line-height: 1;
}
.brand__wm-ar {
  font-family: 'Almarai', 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 800; font-size: 18px; color: var(--ink);
  letter-spacing: -0.01em;
}
.brand__wm-la {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 600; font-size: 9.5px;
  color: var(--muted); letter-spacing: 0.18em;
  margin-top: 3px; text-transform: uppercase;
}
/* Footer sits on dark navy — invert both text tones */
footer.site .brand__mark { color: var(--teal-500); }
footer.site .brand__wm-ar { color: var(--cream); }
footer.site .brand__wm-la { color: var(--cream); opacity: 0.55; }

/* Header brand tweaks */
header.site .brand { text-decoration: none; }
header.site .brand__lockup { color: var(--ink); }

/* ---------- Trust: NABH clarification paragraph ---------- */
.trust__note {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--sand);
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-size: var(--fs-small);
  line-height: 1.75;
}
.trust__note b {
  color: var(--teal-900);
  font-family: 'Almarai', sans-serif; font-weight: 800;
  margin-inline-end: 4px;
}

/* ---------- Specialties: ٣ أطباء subtitle ---------- */
.spec { align-items: flex-start; }
.spec__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spec__count {
  display: block;
  color: var(--teal);
  font-family: 'Almarai', sans-serif; font-weight: 700;
  font-size: 11.5px; line-height: 1.3;
  letter-spacing: 0.01em;
}

/* ---------- 8 · How we work — scroll-linked path ---------- */
.how__path {
  position: relative;
  padding-inline-end: 40px; /* right rail room in RTL */
}
.how__rail {
  position: absolute;
  inset-inline-end: 18px;
  top: 8px; bottom: 8px;
  width: 2px;
  background: var(--ink-a10);
  border-radius: 2px;
  pointer-events: none;
}
.how__rail-fill {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--teal);
  border-radius: 2px;
  will-change: height;
  transition: height 60ms linear;
}
.how__steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 16px;
}
.step { position: relative; }
.step__node {
  position: absolute;
  inset-inline-end: 12px;
  top: 26px;
  width: 14px; height: 14px;
  background: var(--cream);
  border: 2px solid var(--ink-a18);
  border-radius: 50%;
  z-index: 2;
  transition: background 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}
.step.is-active .step__node {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 6px var(--sand);
  animation: step-pulse 900ms ease-out;
}
@keyframes step-pulse {
  0%   { box-shadow: 0 0 0 0 var(--teal-500), 0 0 0 6px var(--sand); }
  60%  { box-shadow: 0 0 0 14px transparent, 0 0 0 6px var(--sand); }
  100% { box-shadow: 0 0 0 6px var(--sand); }
}
.step__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: relative;
  transition: border-color 350ms ease, transform 350ms ease;
}
.step.is-active .step__card { border-color: var(--teal); }
.step__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--sand);
  color: var(--teal-900);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: background 350ms ease, color 350ms ease;
}
.step.is-active .step__ic { background: var(--teal); color: var(--white); }
.step__num {
  position: absolute; top: 18px;
  inset-inline-end: 18px;
  color: var(--teal);
  font-family: 'Almarai', sans-serif; font-weight: 800;
  font-size: var(--fs-h3);
  letter-spacing: 0.02em;
}
.step__title { font-size: var(--fs-h3); line-height: var(--lh-h3); margin-bottom: 6px; }
.step__body { color: var(--muted); font-size: var(--fs-small); line-height: 1.75; }

/* Step 02 case-file preview — rows stagger in on step activation */
.step__preview {
  margin-top: 14px;
  background: var(--cream);
}
.step__preview-row {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 350ms ease, transform 350ms ease;
}
.step.is-active .step__preview-row { opacity: 1; transform: none; }
.step.is-active .step__preview-row[data-i="0"] { transition-delay: 0ms;   }
.step.is-active .step__preview-row[data-i="1"] { transition-delay: 120ms; }
.step.is-active .step__preview-row[data-i="2"] { transition-delay: 240ms; }
.step.is-active .step__preview-row[data-i="3"] { transition-delay: 360ms; }

@media (min-width: 720px) {
  .how__rail { inset-inline-end: 24px; }
  .step__node { inset-inline-end: 18px; }
  .how__path { padding-inline-end: 60px; }
}

/* ---------- 11-pre · Emergency disclaimer ---------- */
section.pre-final {
  background: var(--cream);
  padding: 24px 0 8px;
}
.disclaim--emerg {
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  color: var(--amber-ink);
  padding: 14px 16px;
  font-size: var(--fs-small);
  line-height: 1.75;
}
.disclaim--emerg b {
  display: block;
  font-family: 'Almarai', sans-serif; font-weight: 800;
  color: var(--amber-ink);
  margin-bottom: 4px;
}
@media (min-width: 720px) {
  section.pre-final { padding: 32px 0 8px; }
}

/* ---------- 11 · Final CTA — brand mark tweak ---------- */
.final__mark {
  display: inline-flex;
  color: var(--teal-500);
  margin-bottom: 14px;
}

/* ---------- Micro-interactions (Phase 5-B) ----------
   These are the ONLY animations on the site. Any other movement is a bug. */

/* B.1 Button press: scale 0.98, 120ms */
.btn {
  transition: background 0.18s ease, border-color 0.18s ease, transform 120ms ease;
}
.btn:active { transform: scale(0.98); }

/* B.2 FAQ accordion: height + opacity, 250ms ease (open direction) */
.faq__item > p {
  animation: faq-open 250ms ease;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); max-height: 0; }
  to   { opacity: 1; transform: none;             max-height: 400px; }
}
.faq__item summary,
.faq__item .faq__plus {
  transition: color 250ms ease, background 250ms ease, transform 250ms ease;
}

/* B.3 Card hover: pointer devices only, translateY(-3px), 350ms */
@media (hover: hover) and (pointer: fine) {
  .card, .svc, .pillar, .spec, .path,
  .file, .step__card {
    transition: transform 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
  }
  .svc:hover, .pillar:hover, .spec:hover, .path:hover, .step__card:hover {
    transform: translateY(-3px);
  }
}

/* Global reduced-motion kill switch (Phase 5) */
@media (prefers-reduced-motion: reduce) {
  .how__rail-fill { height: 100% !important; transition: none !important; }
  .step, .step.is-active,
  .step__node, .step__card, .step__ic,
  .step__preview-row { animation: none !important; transition: none !important; }
  .step.is-active .step__preview-row { opacity: 1 !important; transform: none !important; }
  .step .step__node { background: var(--teal) !important; border-color: var(--teal) !important; }
  .faq__item > p { animation: none !important; }
  .btn { transition: none !important; }
  .svc, .pillar, .spec, .path, .step__card { transition: none !important; }
}
