/* ═══════════════════════════════════════════════════════════════════════════
   Doctal — doctal.cloud
   One stylesheet. No frameworks, no CDN, no external fonts, no trackers.
   Written with CSS logical properties so a single rule set serves Arabic (RTL)
   and English (LTR) without duplication.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ──────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* Brand — deep clinical teal. 700 is the heritage mark colour. */
  --brand-50:  #eff7f5;
  --brand-100: #d8ece8;
  --brand-200: #b0d8d1;
  --brand-300: #7cbdb3;
  --brand-400: #479f93;
  --brand-500: #1d8577;
  --brand-600: #106c61;
  --brand-700: #0c5c54;
  --brand-800: #0a4741;
  --brand-900: #07332e;
  --brand-950: #05221f;

  /* Secondary — deep indigo. Structure, data, the dark band. */
  --ind-50:  #eef1fa;
  --ind-100: #dde4f5;
  --ind-200: #c2cdec;
  --ind-400: #6a7fbe;
  --ind-500: #4c62a4;
  --ind-600: #3b4f8c;
  --ind-700: #2e3f72;
  --ind-800: #223058;
  --ind-900: #17223f;

  /* Warm accent — money, emphasis, the featured tier. */
  --gold-50:  #fdf6e7;
  --gold-100: #f9e9c5;
  --gold-200: #f2d79b;
  --gold-300: #e9bc63;
  --gold-400: #dda333;
  --gold-500: #bd8018;
  --gold-600: #9a6510;
  --gold-700: #7b500c;

  /* Third data hue — plum. Charts and the third doctor. */
  --plum-50:  #faecf3;
  --plum-100: #f3d8e6;
  --plum-500: #a33a73;
  --plum-700: #7a2554;
  --plum-900: #4a1636;

  /* Neutrals — very slightly green-cooled so they sit under the brand. */
  --n-0:   #ffffff;
  --n-25:  #fafcfb;
  --n-50:  #f4f8f7;
  --n-100: #e9f0ee;
  --n-200: #dbe5e2;
  --n-300: #c3d0cc;
  --n-400: #93a5a0;
  --n-500: #5c6e69;
  --n-600: #475753;
  --n-700: #35433f;
  --n-800: #22302c;
  --n-900: #101e1b;

  /* Status */
  --ok-50:  #e6f4ed;
  --ok-500: #11795a;
  --ok-700: #0b5540;
  --danger-50:  #fbece9;
  --danger-500: #b03626;
  --danger-700: #8a2718;
  --warn-50:  #fdf2e2;
  --warn-600: #7d520c;

  --wa-green: #25d366;
  --wa-deep:  #128c7e;
  --wa-bubble: #d7f7c8;
  --wa-paper: #ece2d6;

  /* Semantic */
  --ink:      var(--n-900);
  --ink-2:    var(--n-700);
  --muted:    var(--n-500);
  --line:     var(--n-200);
  --line-soft:var(--n-100);
  --line-strong: var(--n-300);
  --bg:       var(--n-0);
  --surface:  var(--n-50);
  --surface-2:var(--brand-50);

  --accent:     var(--brand-700);
  --accent-ink: var(--brand-800);
  --accent-soft:var(--brand-100);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Elevation — tinted, never neutral grey */
  --sh-1: 0 1px 2px rgba(7,51,46,.06), 0 1px 3px rgba(7,51,46,.05);
  --sh-2: 0 2px 4px rgba(7,51,46,.04), 0 10px 22px -8px rgba(7,51,46,.13);
  --sh-3: 0 4px 10px rgba(7,51,46,.05), 0 26px 50px -16px rgba(7,51,46,.22);
  --sh-4: 0 8px 18px rgba(7,51,46,.06), 0 44px 80px -24px rgba(7,51,46,.30);
  --sh-brand: 0 10px 28px -12px rgba(12,92,84,.55);
  --sh-gold:  0 10px 28px -12px rgba(157,101,16,.45);

  /* Type scale — fluid, Latin baseline */
  --t-xs:  .8125rem;
  --t-sm:  .9rem;
  --t-base:1rem;
  --t-md:  1.0625rem;
  --t-lg:  clamp(1.08rem, 1.02rem + .28vw, 1.24rem);
  --t-xl:  clamp(1.2rem,  1.08rem + .6vw, 1.55rem);
  --t-2xl: clamp(1.5rem,  1.24rem + 1.25vw, 2.2rem);
  --t-3xl: clamp(1.85rem, 1.4rem + 2.1vw, 2.9rem);
  --t-4xl: clamp(2.2rem,  1.42rem + 3.5vw, 4rem);

  /* Space */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --measure: 66ch;
  --gap: 20px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 88px;
}
[id] { scroll-margin-block-start: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Noto Sans Arabic",
    "Noto Naskh Arabic", "Helvetica Neue", Tahoma, Arial, sans-serif;
  font-size: var(--t-base);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Arabic needs more leading and a slightly larger body size to read as
   comfortably as Latin at the same nominal point size. Never letter-space it. */
html[lang="ar"] body { font-size: 1.0625rem; line-height: 1.95; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.021em;
  color: var(--ink);
  text-wrap: balance;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 { line-height: 1.5; letter-spacing: 0; font-weight: 700; }

h1 { font-size: var(--t-4xl); letter-spacing: -0.032em; }
h2 { font-size: var(--t-2xl); letter-spacing: -0.026em; }
h3 { font-size: var(--t-lg); letter-spacing: -0.014em; }
html[lang="ar"] h1 { font-size: clamp(1.95rem, 1.3rem + 2.9vw, 3.3rem); }
html[lang="ar"] h2 { font-size: clamp(1.4rem, 1.18rem + 1.05vw, 2rem); }
html[lang="ar"] h3 { font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); }

p { margin: 0 0 1em; }
p, li { max-width: var(--measure); }

a { color: var(--brand-800); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-600); }

strong, b { font-weight: 680; }

::selection { background: var(--brand-200); color: var(--brand-950); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s7) 0; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 780px; }
@media (min-width: 760px) { .wrap { padding-inline: 32px; } }

.muted { color: var(--muted); }
.small { font-size: var(--t-sm); line-height: 1.7; }
html[lang="ar"] .small { line-height: 1.9; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

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

/* ── 2. Skip link + focus ───────────────────────────────────────────────── */
.skip {
  position: absolute;
  inset-block-start: -60px;
  inset-inline-start: 12px;
  z-index: 60;
  background: var(--brand-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { inset-block-start: 0; color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 5px;
}

/* ── 3. Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  background: rgba(255,255,255,.82);
  border-block-end: 1px solid var(--line-soft);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 1px 0 var(--line), 0 10px 26px -18px rgba(7,51,46,.5);
  background: rgba(255,255,255,.93);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 66px;
  padding-block: 10px;
  flex-wrap: wrap;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo svg { display: block; height: 30px; width: auto; }

.site-nav {
  display: none;
  gap: var(--s5);
  margin-inline-start: auto;
  font-size: var(--t-sm);
  font-weight: 550;
}
.site-nav a {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 4px;
  transition: color .2s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  block-size: 2px;
  inline-size: 0;
  border-radius: 2px;
  background: var(--brand-500);
  transition: inline-size .25s var(--ease);
}
.site-nav a:hover { color: var(--brand-700); }
.site-nav a:hover::after { inline-size: 100%; }

.header-actions {
  display: flex; align-items: center; gap: var(--s2);
  margin-inline-start: auto;
}
.site-nav + .header-actions { margin-inline-start: 0; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink-2);
  background: var(--n-0);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.lang-switch:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }

@media (min-width: 940px) { .site-nav { display: flex; } }

/* ── 4. Buttons ─────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: var(--t-sm);
  font-weight: 650;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
html[lang="ar"] .btn { font-size: var(--t-base); }
.btn svg { flex: none; }

.btn-primary {
  background: linear-gradient(175deg, var(--brand-600), var(--brand-800));
  color: #fff;
  box-shadow: var(--sh-brand), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-primary:hover {
  background: linear-gradient(175deg, var(--brand-500), var(--brand-700));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(12,92,84,.62), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--n-0);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--sh-1);
}
.btn-ghost:hover {
  border-color: var(--brand-400);
  color: var(--brand-800);
  background: var(--brand-50);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}

.btn-gold {
  background: linear-gradient(175deg, var(--gold-400), var(--gold-600));
  color: #fff;
  box-shadow: var(--sh-gold), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-gold:hover {
  color: #fff; transform: translateY(-2px);
  background: linear-gradient(175deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 16px 34px -12px rgba(157,101,16,.6);
}

.btn-sm { padding: 9px 16px; font-size: var(--t-xs); }
html[lang="ar"] .btn-sm { font-size: var(--t-sm); }

.btn-row {
  display: flex; flex-wrap: wrap; gap: var(--s3);
  margin-block: var(--s5) var(--s4);
}
/* On a narrow phone two half-width pills read as an accident. Stack them. */
@media (max-width: 460px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { inline-size: 100%; }
  .cta-band .btn-row { align-items: stretch; }
}

/* ── 5. Section rhythm ──────────────────────────────────────────────────── */
section { padding-block: clamp(56px, 3.4vw + 38px, 104px); position: relative; }
section.tight { padding-block: clamp(40px, 2vw + 30px, 64px); }

.band { background: var(--surface); border-block: 1px solid var(--line-soft); }
.band-tint {
  background:
    radial-gradient(90% 120% at 100% 0%, var(--brand-50) 0%, transparent 60%),
    radial-gradient(80% 110% at 0% 100%, var(--ind-50) 0%, transparent 60%),
    var(--n-25);
  border-block: 1px solid var(--line-soft);
}

/* Deep band — the honesty section and the closing CTA */
.band-dark {
  background:
    radial-gradient(120% 100% at 85% -10%, rgba(29,133,119,.30) 0%, transparent 55%),
    radial-gradient(90% 90% at 5% 110%, rgba(59,79,140,.36) 0%, transparent 55%),
    linear-gradient(160deg, #0a2b28 0%, #07211f 45%, #0b1d2e 100%);
  color: #dfece9;
  border-block: 0;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: #b9d0cb; }
.band-dark .eyebrow { color: var(--gold-300); }
.band-dark .eyebrow::before { background: var(--gold-400); }
.band-dark a:not(.btn) { color: var(--gold-200); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-block-end: var(--s3);
}
.eyebrow::before {
  content: "";
  inline-size: 22px; block-size: 2px;
  border-radius: 2px;
  background: var(--brand-400);
  flex: none;
}
html[lang="ar"] .eyebrow {
  letter-spacing: 0; text-transform: none; font-size: var(--t-sm); font-weight: 700;
}

.section-head { max-width: 62ch; margin-block-end: var(--s6); }
.section-head p { color: var(--ink-2); font-size: var(--t-md); }
.band-dark .section-head p { color: #b9d0cb; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ── 6. Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(40px, 3vw + 26px, 84px) clamp(48px, 3vw + 30px, 96px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-50) 0%, rgba(255,255,255,0) 62%);
}
.hero-aura {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-aura span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
}
.hero-aura .a1 {
  inline-size: 46vw; block-size: 46vw; min-inline-size: 320px; min-block-size: 320px;
  inset-block-start: -16%; inset-inline-end: -10%;
  background: radial-gradient(circle, rgba(71,159,147,.55), rgba(71,159,147,0) 70%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.hero-aura .a2 {
  inline-size: 38vw; block-size: 38vw; min-inline-size: 260px; min-block-size: 260px;
  inset-block-start: 22%; inset-inline-start: -12%;
  background: radial-gradient(circle, rgba(106,127,190,.42), rgba(106,127,190,0) 70%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.hero-aura .a3 {
  inline-size: 26vw; block-size: 26vw; min-inline-size: 190px; min-block-size: 190px;
  inset-block-end: -8%; inset-inline-end: 22%;
  background: radial-gradient(circle, rgba(233,188,99,.36), rgba(233,188,99,0) 70%);
  animation: drift-a 38s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-4%, 6%, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0,0,0) scale(1.06); }
  to   { transform: translate3d(5%, -5%, 0) scale(.94); }
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
}

.hero h1 { margin-block-end: .42em; }
.hero .lede {
  font-size: var(--t-lg);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.72;
}
html[lang="ar"] .hero .lede { line-height: 1.95; }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  margin-block-end: var(--s4);
  padding: 0; list-style: none;
}
.hero-badges li {
  display: inline-flex; align-items: center; gap: 7px;
  max-width: none;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--brand-800);
  background: rgba(255,255,255,.75);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-pill);
  padding: 6px 13px;
  backdrop-filter: blur(4px);
}
html[lang="ar"] .hero-badges li { font-size: var(--t-sm); }
@media (max-width: 520px) {
  .hero-badges li { font-size: .78rem; padding: 5px 11px; }
  html[lang="ar"] .hero-badges li { font-size: .84rem; }
  .hero .lede { font-size: var(--t-base); }
  html[lang="ar"] .hero .lede { line-height: 1.85; }
}
.hero-badges .dot {
  inline-size: 7px; block-size: 7px; border-radius: 50%;
  background: var(--brand-500); flex: none;
}
.hero-badges li:nth-child(2) .dot { background: var(--ind-500); }
.hero-badges li:nth-child(3) .dot { background: var(--gold-500); }

.owner-line {
  margin-block-start: var(--s5);
  padding: var(--s4) var(--s4) var(--s4) var(--s4);
  padding-inline-start: var(--s4);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--brand-400);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: var(--t-xs);
  line-height: 1.75;
  max-width: 62ch;
}
html[lang="ar"] .owner-line { font-size: var(--t-sm); line-height: 1.9; }
.owner-line strong { color: var(--ink-2); }

/* ── 7. Generic cards ───────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.card {
  position: relative;
  background: var(--n-0);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s5) calc(var(--s5) + 2px);
  box-shadow: var(--sh-1);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease),
              border-color .26s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: var(--s5);
  block-size: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--brand-400), var(--ind-400));
  opacity: 0;
  transition: opacity .26s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
  border-color: var(--brand-200);
}
.card:hover::before { opacity: 1; }

.card h3 { margin-block-end: .45em; }
.card p:last-child, .card ul:last-child { margin-block-end: 0; }
.card p, .card li { max-width: none; }
.card p { color: var(--ink-2); font-size: var(--t-sm); }
html[lang="ar"] .card p { font-size: var(--t-base); }

.card-ico {
  inline-size: 40px; block-size: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  margin-block-end: var(--s3);
  background: linear-gradient(160deg, var(--brand-100), var(--brand-50));
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  flex: none;
}
.card-ico svg { inline-size: 20px; block-size: 20px; display: block; }
.card:nth-child(4n+2) .card-ico {
  background: linear-gradient(160deg, var(--ind-100), var(--ind-50));
  border-color: var(--ind-200); color: var(--ind-700);
}
.card:nth-child(4n+3) .card-ico {
  background: linear-gradient(160deg, var(--gold-100), var(--gold-50));
  border-color: var(--gold-200); color: var(--gold-600);
}
.card:nth-child(4n+4) .card-ico {
  background: linear-gradient(160deg, var(--plum-100), var(--plum-50));
  border-color: #e7bed3; color: var(--plum-700);
}

.band-dark .card {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
  backdrop-filter: blur(3px);
}
.band-dark .card p { color: #adc6c1; }
.band-dark .card:hover {
  background: rgba(255,255,255,.075);
  border-color: rgba(233,188,99,.38);
  box-shadow: 0 20px 44px -22px rgba(0,0,0,.7);
}
.band-dark .card::before { background: linear-gradient(90deg, var(--gold-400), var(--brand-400)); }
.band-dark .card-ico,
.band-dark .card:nth-child(4n+2) .card-ico,
.band-dark .card:nth-child(4n+3) .card-ico,
.band-dark .card:nth-child(4n+4) .card-ico {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
  color: var(--gold-200);
}

/* ── 8. Showcase rows (copy + product mock) ─────────────────────────────── */
.showcase {
  grid-column: 1 / -1;
  display: grid;
  gap: clamp(24px, 3vw, 46px);
  align-items: center;
  grid-template-columns: 1fr;
  background:
    linear-gradient(160deg, var(--n-25), var(--n-0) 55%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 2.4vw, 36px);
  box-shadow: var(--sh-2);
}
@media (min-width: 900px) {
  .showcase { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .showcase.flip > .showcase-copy { order: 2; }
  .showcase.flip > .showcase-visual { order: 1; }
}
.showcase-copy h3 {
  font-size: var(--t-xl);
  margin-block-end: .5em;
}
.showcase-copy p { color: var(--ink-2); max-width: 46ch; }
.showcase-copy p:last-child { margin-block-end: 0; }
.showcase-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--t-xs); font-weight: 700;
  color: var(--ind-700);
  background: var(--ind-50);
  border: 1px solid var(--ind-100);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  margin-block-end: var(--s3);
}
html[lang="ar"] .showcase-tag { font-size: var(--t-sm); }

.showcase-visual { min-inline-size: 0; }

.card--wide {
  grid-column: 1 / -1;
  background:
    radial-gradient(90% 160% at 100% 0%, var(--brand-50), transparent 62%),
    linear-gradient(160deg, var(--n-25), var(--n-0));
  border-color: var(--brand-200);
}
@media (min-width: 700px) {
  .card--wide { padding: var(--s6); }
  .card--wide p { max-width: 74ch; }
}

/* ── 9. Product mocks — shared shell ────────────────────────────────────── */
.mock {
  --mock-fs: 11.5px;
  position: relative;
  background: var(--n-0);
  border: 1px solid var(--n-200);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-4);
  overflow: hidden;
  font-size: var(--mock-fs);
  line-height: 1.5;
  color: var(--ink);
  text-align: start;
  isolation: isolate;
}
@media (min-width: 560px) { .mock { --mock-fs: 12.5px; } }

.mock * { max-width: none; }
.mock p { margin: 0; }
figure.mock-figure { margin: 0; }

.mock-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px;
  background: linear-gradient(180deg, var(--n-50), var(--n-100));
  border-block-end: 1px solid var(--n-200);
}
.mock-dots { display: flex; gap: 5px; flex: none; }
.mock-dots i {
  inline-size: 8px; block-size: 8px; border-radius: 50%;
  background: var(--n-300); display: block;
}
.mock-dots i:first-child { background: #e6a09a; }
.mock-dots i:nth-child(2) { background: #e9cd93; }
.mock-dots i:nth-child(3) { background: #9fcfae; }
.mock-title {
  font-size: 10.5px; font-weight: 650; color: var(--n-500);
  letter-spacing: .02em;
  margin-inline: auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[lang="ar"] .mock-title { letter-spacing: 0; font-size: 11px; }
.mock-chip {
  font-size: 10px; font-weight: 650;
  color: var(--brand-700); background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-pill);
  padding: 2px 8px; flex: none;
  white-space: nowrap;
}

.mock-caption {
  margin-block-start: 10px;
  font-size: var(--t-xs);
  color: var(--muted);
  text-align: center;
}

/* ── 9a. Inbox mock ─────────────────────────────────────────────────────── */
.mock-inbox-body {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .mock-inbox-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
}

.inbox-list {
  border-inline-end: 1px solid var(--n-200);
  background: var(--n-25);
  min-inline-size: 0;
}
/* Stacked on a phone the list and the thread would be one long scroll:
   show three conversations instead of five. */
@media (max-width: 519px) {
  .conv-rows .conv:nth-of-type(n+4) { display: none; }
}
.inbox-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 8px;
  border-block-end: 1px solid var(--n-100);
}
.inbox-head b { font-size: 12px; font-weight: 700; }
.inbox-count {
  font-size: 10px; font-weight: 700;
  background: var(--brand-700); color: #fff;
  border-radius: var(--r-pill); padding: 1px 7px;
  font-variant-numeric: tabular-nums;
}
.inbox-filters { display: flex; gap: 5px; padding: 0 12px 9px; flex-wrap: wrap; }
.inbox-filters span {
  font-size: 9.5px; font-weight: 650;
  border: 1px solid var(--n-200); border-radius: var(--r-pill);
  padding: 2.5px 8px; color: var(--n-500); background: var(--n-0);
  white-space: nowrap;
}
.inbox-filters span.on { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }

.conv {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 10px 12px;
  border-block-end: 1px solid var(--n-100);
  background: transparent;
  position: relative;
  transition: background .2s var(--ease);
}
.conv:hover { background: var(--brand-50); }
.conv.sel { background: #fff; }
.conv.sel::before {
  content: ""; position: absolute;
  inset-block: 0; inset-inline-start: 0;
  inline-size: 3px; background: var(--brand-600);
}
.conv-av {
  inline-size: 30px; block-size: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--brand-600);
  flex: none;
}
.conv-av.i2 { background: var(--ind-600); }
.conv-av.i3 { background: var(--plum-500); }
.conv-av.i4 { background: var(--gold-600); }
.conv-mid { min-inline-size: 0; }
.conv-name {
  font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-block-end: 1px;
}
.conv-prev {
  font-size: 11px; color: var(--n-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.conv-time { font-size: 9.5px; color: var(--n-500); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Past the clinic's reply time the timestamp is replaced by a waiting pill. */
.conv-time.waiting {
  display: inline-flex; align-items: center; gap: 3px;
  font-weight: 700;
  color: var(--danger-700);
  background: var(--danger-50);
  border: 1px solid #f0cfc8;
  border-radius: var(--r-pill);
  padding: 1px 6px;
}
.conv-time.waiting svg { inline-size: 9px; block-size: 9px; display: block; }
.conv-badge {
  min-inline-size: 17px; block-size: 17px;
  border-radius: var(--r-pill);
  background: var(--wa-deep); color: #fff;
  font-size: 9.5px; font-weight: 700;
  display: grid; place-items: center; padding-inline: 5px;
  font-variant-numeric: tabular-nums;
}
.conv-tags { display: flex; gap: 4px; margin-block-start: 5px; flex-wrap: wrap; }
.tag {
  font-size: 9px; font-weight: 650;
  border-radius: 5px; padding: 1.5px 6px;
  background: var(--n-100); color: var(--n-600);
  white-space: nowrap;
}
.tag.owner { background: var(--brand-50); color: var(--brand-800); border: 1px solid var(--brand-100); }
.tag.wait  { background: var(--danger-50); color: var(--danger-700); border: 1px solid #f0cfc8; }
.tag.ai    { background: var(--ind-50); color: var(--ind-700); border: 1px solid var(--ind-100); }
.tag.win   { background: var(--ok-50); color: var(--ok-700); border: 1px solid #c3e2d4; }
.tag::before { content: ""; }

/* thread */
.inbox-thread {
  display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, rgba(236,226,214,.5), rgba(236,226,214,.32));
  min-inline-size: 0;
}
.thread-head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  background: var(--n-0);
  border-block-end: 1px solid var(--n-200);
}
.thread-head .conv-av { inline-size: 26px; block-size: 26px; font-size: 10px; }
.thread-who { min-inline-size: 0; }
.thread-who b { display: block; font-size: 11.5px; font-weight: 700; }
.thread-who span { display: block; font-size: 9.5px; color: var(--n-500); }
.thread-window {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; font-weight: 650;
  color: var(--ok-700); background: var(--ok-50);
  border: 1px solid #c3e2d4;
  border-radius: var(--r-pill); padding: 2.5px 8px;
  white-space: nowrap; flex: none;
}
.thread-window i {
  inline-size: 6px; block-size: 6px; border-radius: 50%;
  background: var(--ok-500); display: block;
}

.thread-body {
  padding: 12px 12px 10px;
  display: flex; flex-direction: column; gap: 7px;
  flex: 1;
}
.bub {
  max-inline-size: 84%;
  padding: 7px 10px 5px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.55;
  position: relative;
  box-shadow: 0 1px 1px rgba(7,51,46,.10);
  word-break: break-word;
}
html[lang="ar"] .bub { line-height: 1.75; }
.bub.in  { align-self: flex-start; background: #fff; border-start-start-radius: 4px; }
.bub.out { align-self: flex-end; background: var(--wa-bubble); border-start-end-radius: 4px; }
.bub .t {
  display: flex; align-items: center; gap: 3px; justify-content: flex-end;
  margin-block-start: 3px;
  font-size: 9px; color: var(--n-500);
  font-variant-numeric: tabular-nums;
}
.bub .t svg { inline-size: 13px; block-size: 8px; display: block; color: #3aa3d8; }
.sys {
  align-self: center;
  font-size: 9.5px; font-weight: 600;
  color: var(--ind-700); background: var(--ind-50);
  border: 1px solid var(--ind-100);
  border-radius: var(--r-pill);
  padding: 3px 11px;
  text-align: center;
  max-inline-size: 92%;
}
.thread-composer {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--n-0);
  border-block-start: 1px solid var(--n-200);
}
.composer-field {
  flex: 1; min-inline-size: 0;
  background: var(--n-50);
  border: 1px solid var(--n-200);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-size: 10.5px; color: var(--n-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.composer-send {
  inline-size: 26px; block-size: 26px; border-radius: 50%;
  background: var(--wa-deep); color: #fff;
  display: grid; place-items: center; flex: none;
}
.composer-send svg { inline-size: 13px; block-size: 13px; display: block; }

/* ── 9b. Week calendar mock ─────────────────────────────────────────────── */
.cal-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  border-block-end: 1px solid var(--n-100);
  flex-wrap: wrap;
}
.cal-bar .lbl { font-size: 11.5px; font-weight: 700; }
.cal-bar .spacer { margin-inline-start: auto; }
.cal-legend { display: flex; gap: 9px; flex-wrap: wrap; padding: 8px 12px 0; }
.cal-legend span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; font-weight: 650; color: var(--n-600);
  white-space: nowrap;
}
.cal-legend i { inline-size: 9px; block-size: 9px; border-radius: 3px; display: block; flex: none; }
.lg-1 { background: var(--brand-500); }
.lg-2 { background: var(--ind-500); }
.lg-3 { background: var(--plum-500); }

/* The week narrows rather than squeezing: three days on a phone, four on a
   small tablet, the full six on desktop. Today is always in view. */
.cal {
  display: grid;
  grid-template-columns: 30px repeat(3, minmax(0,1fr));
  padding: 8px 10px 12px;
  gap: 0;
}
.cal .d4, .cal .d5, .cal .d6 { display: none; }
@media (min-width: 520px) {
  .cal { grid-template-columns: 32px repeat(4, minmax(0,1fr)); }
  .cal .d4 { display: block; }
}
@media (min-width: 680px) {
  .cal { grid-template-columns: 34px repeat(6, minmax(0,1fr)); }
  .cal .d5, .cal .d6 { display: block; }
}

.cal-hd {
  font-size: 9.5px; font-weight: 700; color: var(--n-600);
  text-align: center; padding-block-end: 6px;
  border-block-end: 1px solid var(--n-100);
}
.cal-hd small { display: block; font-size: 8.5px; font-weight: 600; color: var(--n-500); }
.cal-hd.today { color: var(--brand-700); }
.cal-hd.today small {
  color: #fff; background: var(--brand-600);
  border-radius: var(--r-pill); display: inline-block;
  padding: 0 6px; margin-block-start: 1px;
}
.cal-hd.corner { border-block-end-color: transparent; }

.cal-axis {
  position: relative;
  block-size: 236px;
  border-inline-end: 1px solid var(--n-100);
}
.cal-axis b {
  position: absolute;
  inset-inline-end: 4px;
  transform: translateY(-50%);
  font-size: 8.5px; font-weight: 600; color: var(--n-500);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
html[lang="en"] .cal-axis b { inset-inline-end: 6px; }

.cal-col {
  position: relative;
  block-size: 236px;
  border-inline-end: 1px solid var(--n-100);
  background:
    repeating-linear-gradient(to bottom,
      var(--n-100) 0 1px, transparent 1px 39.33px);
}
.cal-col:last-child { border-inline-end: 0; }
.cal-col.is-today { background-color: rgba(16,108,97,.045); }

/* Appointment chip. Colour follows STATUS, exactly as the product does:
   scheduled = solid accent, completed = green tint, no-show = amber tint,
   cancelled = dashed and struck through, time block = diagonal hatch. */
.appt {
  position: absolute;
  inset-inline: 2px;
  inset-block-start: calc(var(--t) * 1px);
  block-size: calc(var(--h) * 1px);
  border-radius: 6px;
  padding: 3px 5px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.32;
  border: 1px solid transparent;
  background: linear-gradient(165deg, var(--brand-600), var(--brand-800));
  color: #fff;
  box-shadow: 0 1px 2px rgba(7,51,46,.16);
}
.appt b {
  display: flex; align-items: center; gap: 3px;
  font-weight: 700; font-size: 9.5px;
  white-space: nowrap; overflow: hidden;
}
.appt b > span { overflow: hidden; text-overflow: ellipsis; }
.appt b svg { inline-size: 9px; block-size: 9px; flex: none; opacity: .9; }
.appt time, .appt .who {
  display: block; opacity: .82;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* A time range is an LTR run even in Arabic: without this the bidi algorithm
   renders "10:30 – 11:15" as "11:15 – 10:30". */
.appt time { direction: ltr; text-align: right; }
html[lang="en"] .appt time { text-align: left; }
/* Below the tablet break the end of the range is dropped rather than clipped. */
@media (max-width: 679px) { .appt .to { display: none; } }
.appt.done {
  background: var(--ok-50); color: var(--ok-700);
  border-color: #bfe2d1; box-shadow: none;
}
.appt.noshow {
  background: var(--warn-50); color: var(--warn-600);
  border-color: var(--gold-200); box-shadow: none;
}
.appt.cancelled {
  background: var(--n-50); color: var(--n-500);
  border: 1px dashed var(--n-300); box-shadow: none;
  text-decoration: line-through;
}
.appt.block {
  background:
    repeating-linear-gradient(135deg, rgba(92,110,105,.22) 0 1px, transparent 1px 7px),
    var(--n-100);
  color: var(--n-600); border-color: var(--n-300); box-shadow: none;
}
/* A 30-minute chip is too short for two lines: name and time share one row
   and the practitioner drops off, exactly as the product does. */
.appt.tiny {
  font-size: 8.5px; padding-block: 2px;
  display: flex; align-items: center; gap: 5px;
}
.appt.tiny b { font-size: 9px; flex: 1; min-inline-size: 0; }
.appt.tiny time { flex: none; }
.appt.tiny .who { display: none; }

/* ── 9c. Reminder (WhatsApp) mock ───────────────────────────────────────── */
.mock-phone {
  --mock-fs: 12px;
  max-inline-size: 330px;
  margin-inline: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--n-300);
  box-shadow: var(--sh-4);
  overflow: hidden;
  background: var(--wa-paper);
}
.wa-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #0f7a6e, #0b5f56);
  color: #fff;
}
.wa-bar .conv-av { background: rgba(255,255,255,.22); inline-size: 28px; block-size: 28px; font-size: 10px; }
.wa-bar b { font-size: 12px; font-weight: 700; display: block; }
.wa-bar span { font-size: 9.5px; opacity: .85; display: block; }
.wa-verified { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 650; background: rgba(255,255,255,.16);
  border-radius: var(--r-pill); padding: 2px 8px; white-space: nowrap; flex: none; }
.wa-body {
  padding: 14px 12px 12px;
  display: flex; flex-direction: column; gap: 8px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.5) 0 2px, transparent 2px),
    radial-gradient(circle at 62% 38%, rgba(255,255,255,.4) 0 2px, transparent 2px),
    radial-gradient(circle at 34% 72%, rgba(255,255,255,.4) 0 2px, transparent 2px),
    var(--wa-paper);
  background-size: 120px 120px, 120px 120px, 120px 120px, auto;
}
.wa-day {
  align-self: center;
  font-size: 9.5px; font-weight: 650; color: var(--n-600);
  background: rgba(255,255,255,.85);
  border-radius: var(--r-pill); padding: 3px 12px;
}
.wa-body .bub { max-inline-size: 90%; font-size: 11.5px; }
.wa-body .bub.out { background: var(--wa-bubble); }
.bub-actions {
  margin-block-start: 6px;
  border-block-start: 1px solid rgba(7,51,46,.12);
  display: grid; gap: 1px;
}
.bub-actions b {
  display: block; text-align: center;
  padding-block: 6px;
  font-size: 11px; font-weight: 650;
  color: #0e6a5e;
  border-block-start: 1px solid rgba(7,51,46,.10);
}
.bub-actions b:first-child { border-block-start: 0; }
.wa-note {
  align-self: center; text-align: center;
  font-size: 9px; color: var(--n-600);
  background: rgba(255,255,255,.75);
  border-radius: var(--r-pill); padding: 3px 11px;
  max-inline-size: 94%;
}
.tmpl-flag {
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 650;
  color: var(--ind-700); background: rgba(255,255,255,.85);
  border: 1px solid var(--ind-100);
  border-radius: var(--r-pill); padding: 2px 9px;
}

/* ── 9d. Results mock ───────────────────────────────────────────────────── */
.mock-results { padding: 0; }
.res-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--n-100);
  border-block-end: 1px solid var(--n-100);
}
.tile { background: var(--n-0); padding: 11px 12px; min-inline-size: 0; }
.tile .k { font-size: 9.5px; color: var(--n-500); font-weight: 600; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .v {
  font-size: 19px; font-weight: 750; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; display: block; margin-block: 2px 1px;
  color: var(--ink);
}
.tile .d { font-size: 9.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.tile .d.up   { color: var(--ok-700); }
.tile .d.down { color: var(--danger-700); }
.tile .d.good-down { color: var(--ok-700); }

.res-chart { padding: 12px 12px 10px; }
.res-chart-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-block-end: 10px; flex-wrap: wrap;
}
.res-chart-head b { font-size: 11.5px; font-weight: 700; }
.res-chart-head span { font-size: 9.5px; color: var(--n-500); }
.bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0,1fr);
  align-items: end;
  gap: 7px;
  block-size: 122px;
  padding-block: 14px 18px;
  border-block-end: 1px solid var(--n-200);
  position: relative;
}
.bars .gl {
  position: absolute; inset-inline: 0; block-size: 1px;
  background: var(--n-100);
}
.bar { position: relative; block-size: 100%; display: flex; align-items: flex-end; }
.bar i {
  display: block; inline-size: 100%;
  block-size: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-700));
  transform-origin: bottom;
  transition: transform .8s var(--ease-out);
}
.bar.hi i { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); }
.bar b {
  position: absolute;
  inset-block-end: -17px; inset-inline: 0;
  text-align: center;
  font-size: 8.5px; font-weight: 650; color: var(--n-500);
  white-space: nowrap;
}
.bar em {
  position: absolute;
  inset-block-end: calc(var(--h) + 4px);
  inset-inline: 0; text-align: center;
  font-size: 9px; font-weight: 750; font-style: normal;
  color: var(--brand-800); font-variant-numeric: tabular-nums;
}
.bar.hi em { color: var(--gold-700); }

.res-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-block-start: 1px solid var(--n-100);
  background: var(--n-25);
  flex-wrap: wrap;
}
.res-foot .pill {
  font-size: 9.5px; font-weight: 650;
  border-radius: var(--r-pill); padding: 3px 9px;
  background: var(--n-100); color: var(--n-600);
  white-space: nowrap;
}
.res-foot .pill.warn { background: var(--warn-50); color: var(--warn-600); border: 1px solid var(--gold-100); }
.res-foot .pill.bad { background: var(--danger-50); color: var(--danger-700); border: 1px solid #f0cfc8; }
.res-foot .pill.ok { background: var(--ok-50); color: var(--ok-700); border: 1px solid #c3e2d4; }

/* ── 10. The ledger ─────────────────────────────────────────────────────── */
.ledger-wrap {
  display: grid; gap: clamp(22px, 3vw, 44px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 940px) {
  .ledger-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
}

.ledger {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--n-0);
  box-shadow: var(--sh-3);
  position: relative;
}
.ledger-head {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 20px;
  background: linear-gradient(160deg, var(--brand-800), var(--brand-950));
  color: #fff;
}
.ledger-head b { font-size: var(--t-sm); font-weight: 700; letter-spacing: .01em; }
html[lang="ar"] .ledger-head b { letter-spacing: 0; }
.ledger-head svg { inline-size: 17px; block-size: 17px; opacity: .85; flex: none; }

.ledger-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s4);
  padding: 14px 20px;
  border-block-end: 1px solid var(--line-soft);
  font-size: var(--t-sm);
}
html[lang="ar"] .ledger-row { font-size: var(--t-base); }
.ledger-row:last-child { border-block-end: 0; }
.ledger-row span:first-child { color: var(--ink-2); }
.ledger-row span:last-child {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: end;
}
.ledger-row.loss {
  background: var(--danger-50);
}
.ledger-row.loss span:first-child { color: var(--danger-700); font-weight: 650; }
.ledger-row.loss span:last-child { color: var(--danger-700); font-size: 1.22em; }
.ledger-row.gain { background: var(--gold-50); }
.ledger-row.gain span:first-child { color: var(--gold-700); font-weight: 650; }
.ledger-row.gain span:last-child { color: var(--gold-700); font-size: 1.22em; }
.ledger-row.total {
  background: linear-gradient(160deg, var(--brand-50), var(--n-50));
  border-block-start: 1px solid var(--brand-100);
}
.ledger-row.total span:last-child { color: var(--brand-800); }

/* On a phone a long label and a wide figure cannot share a line without the
   label breaking into four: stack them instead. */
@media (max-width: 559px) {
  .ledger-row { display: block; }
  .ledger-row span:first-child { display: block; margin-block-end: 3px; }
  .ledger-row span:last-child { display: block; text-align: start; }
}

.ledger-note {
  padding: 12px 20px;
  background: var(--n-25);
  border-block-start: 1px solid var(--line-soft);
  font-size: var(--t-xs);
  color: var(--muted);
}
html[lang="ar"] .ledger-note { font-size: var(--t-sm); }
.ledger-note p { margin: 0; max-width: none; }

/* ── 11. Pricing ────────────────────────────────────────────────────────── */
.price-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
}

.price-card {
  position: relative;
  background: var(--n-0);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 2.2vw, 32px);
  box-shadow: var(--sh-1);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.price-card h3 { font-size: var(--t-xl); margin-block-end: .2em; }
.price-card .tier-note { color: var(--muted); font-size: var(--t-sm); margin-block-end: 0; }

.price-card.featured {
  border-color: var(--gold-300);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--gold-50) 0%, transparent 58%),
    linear-gradient(170deg, var(--n-0), var(--n-25));
  box-shadow: var(--sh-3), 0 0 0 1px var(--gold-200);
}
.price-card.featured:hover { box-shadow: var(--sh-4), 0 0 0 1px var(--gold-300); }
@media (min-width: 860px) {
  .price-card.featured { transform: translateY(-10px); }
  .price-card.featured:hover { transform: translateY(-14px); }
}

.price-flag {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: clamp(22px, 2.2vw, 32px);
  transform: translateY(-50%);
  background: linear-gradient(170deg, var(--gold-400), var(--gold-600));
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-gold);
  white-space: nowrap;
}
html[lang="ar"] .price-flag { font-size: var(--t-sm); }

.price-tag {
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  margin-block: var(--s4) var(--s1);
  padding-block-start: var(--s4);
  border-block-start: 1px solid var(--line-soft);
}
.price-tag .amount {
  font-size: clamp(2.1rem, 1.6rem + 1.9vw, 2.9rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  color: var(--ink);
}
html[lang="ar"] .price-tag .amount { letter-spacing: -0.02em; }
.featured .price-tag { border-block-start-color: var(--gold-200); }
.price-tag .per { color: var(--muted); font-size: var(--t-sm); font-weight: 600; }
.price-setup {
  margin-block: 0 var(--s4);
  color: var(--muted);
  font-size: var(--t-xs);
}
html[lang="ar"] .price-setup { font-size: var(--t-sm); }

ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li {
  position: relative;
  padding-inline-start: 28px;
  margin-block-end: 11px;
  font-size: var(--t-sm);
  max-width: none;
  color: var(--ink-2);
}
html[lang="ar"] ul.checks li { font-size: var(--t-base); }
/* Physical left/bottom borders on purpose: a tick is not a directional glyph,
   and logical borders would mirror it into a stray corner in RTL. */
ul.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  inset-block-start: .5em;
  width: 12px; height: 6px;
  border-left: 2px solid var(--brand-600);
  border-bottom: 2px solid var(--brand-600);
  transform: rotate(-45deg);
}
ul.checks li::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .16em;
  inline-size: 19px; block-size: 19px;
  border-radius: 50%;
  background: var(--brand-50);
  z-index: -1;
}
.featured ul.checks li::before { border-color: var(--gold-600); }
.featured ul.checks li::after { background: var(--gold-50); }
ul.checks li.no::before {
  width: 11px; height: 0;
  border: 0; border-top: 2px solid var(--n-400);
  transform: none;
  inset-block-start: .82em;
  inset-inline-start: 4px;
}
ul.checks li.no::after { background: var(--n-100); }
ul.checks li.no { color: var(--muted); }

/* ── 12. Steps ──────────────────────────────────────────────────────────── */
ol.steps {
  list-style: none; counter-reset: s; padding: 0; margin: 0;
  display: grid; gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { ol.steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1060px) { ol.steps { grid-template-columns: repeat(4, minmax(0,1fr)); } }
ol.steps > li {
  counter-increment: s;
  position: relative;
  max-width: none;
  padding: var(--s5) var(--s4) var(--s5);
  padding-block-start: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--n-0);
  box-shadow: var(--sh-1);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
ol.steps > li:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--brand-200); }
ol.steps > li::before {
  content: counter(s);
  position: absolute;
  inset-inline-start: var(--s4);
  inset-block-start: calc(var(--s4) * -1 + 2px);
  inline-size: 38px; block-size: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--brand-600), var(--brand-800));
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: var(--sh-brand);
}
ol.steps > li:nth-child(4)::before {
  background: linear-gradient(160deg, var(--gold-400), var(--gold-600));
  box-shadow: var(--sh-gold);
}
ol.steps h3 { margin-block: 0 .35em; font-size: var(--t-lg); }
ol.steps p { margin-block-end: 0; color: var(--ink-2); font-size: var(--t-sm); max-width: none; }
html[lang="ar"] ol.steps p { font-size: var(--t-base); }

/* ── 13. FAQ ────────────────────────────────────────────────────────────── */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--n-0);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.faq details { border-block-end: 1px solid var(--line-soft); }
.faq details:last-child { border-block-end: 0; }
.faq details[open] { background: var(--n-25); }
.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  align-items: center;
  padding: var(--s4) var(--s5);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.faq summary:hover { background: var(--brand-50); color: var(--brand-800); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  inline-size: 22px; block-size: 22px;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  position: relative;
  transition: transform .28s var(--ease), background .2s var(--ease);
}
.faq summary { position: relative; }
.faq summary::before {
  content: "";
  position: absolute;
  inset-inline-end: calc(var(--s5) + 5px);
  inset-block-start: 50%;
  inline-size: 11px; block-size: 11px;
  z-index: 1;
  background:
    linear-gradient(var(--brand-700), var(--brand-700)) center/11px 1.6px no-repeat,
    linear-gradient(var(--brand-700), var(--brand-700)) center/1.6px 11px no-repeat;
  transform: translateY(-50%);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
html[lang="ar"] .faq summary::before { inset-inline-end: calc(var(--s5) + 5px); }
.faq details[open] summary::before {
  background: linear-gradient(var(--brand-700), var(--brand-700)) center/11px 1.6px no-repeat;
  transform: translateY(-50%) rotate(180deg);
}
.faq details[open] summary::after { background: var(--brand-100); }
.faq details p {
  margin-block: 0;
  padding: 0 var(--s5) var(--s5);
  color: var(--ink-2);
  font-size: var(--t-sm);
  max-width: 68ch;
}
html[lang="ar"] .faq details p { font-size: var(--t-base); }

/* ── 14. Callout ────────────────────────────────────────────────────────── */
.callout {
  border: 1px solid var(--brand-100);
  border-inline-start: 4px solid var(--brand-500);
  border-radius: var(--r);
  background: linear-gradient(160deg, var(--brand-50), var(--n-0));
  padding: var(--s5);
  margin-block: var(--s5);
  box-shadow: var(--sh-1);
}
.callout p:last-child { margin-block-end: 0; }
.callout p { font-size: var(--t-sm); color: var(--ink-2); max-width: 78ch; }
html[lang="ar"] .callout p { font-size: var(--t-base); }

/* ── 15. Final CTA ──────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 88% -20%, rgba(233,188,99,.30) 0%, transparent 55%),
    radial-gradient(80% 110% at 4% 115%, rgba(76,98,164,.42) 0%, transparent 58%),
    linear-gradient(155deg, #0c5c54 0%, #07332e 52%, #10243c 100%);
  color: #fff;
  padding-block: clamp(52px, 3vw + 36px, 88px);
  border-block: 0;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 75%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { color: #fff; font-size: var(--t-3xl); }
.cta-band p { color: #cadedb; max-width: 54ch; font-size: var(--t-md); margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .eyebrow { color: var(--gold-300); justify-content: center; }
.cta-band .eyebrow::before { background: var(--gold-400); }
.cta-band .btn-primary {
  background: #fff; color: var(--brand-800);
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.6);
}
.cta-band .btn-primary:hover { background: var(--brand-50); color: var(--brand-900); }
.cta-band .btn-ghost {
  color: #fff; border-color: rgba(255,255,255,.34);
  background: rgba(255,255,255,.07); box-shadow: none;
}
.cta-band .btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.14); }
.cta-band a:not(.btn) { color: var(--gold-200); }

/* ── 16. Legal / prose pages ────────────────────────────────────────────── */
.page-head {
  padding-block: clamp(38px, 2.4vw + 26px, 64px) clamp(26px, 2vw, 38px);
  border-block-end: 1px solid var(--line);
  background:
    radial-gradient(85% 150% at 100% 0%, var(--brand-50) 0%, transparent 62%),
    linear-gradient(180deg, var(--n-25), var(--n-0));
  position: relative;
}
.page-head h1 { font-size: var(--t-3xl); }
html[lang="ar"] .page-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); }
.page-head p { color: var(--muted); margin-block-end: 0; font-size: var(--t-sm); }
html[lang="ar"] .page-head p { font-size: var(--t-base); }

.prose { padding-block: var(--s6) var(--s8); }
.prose h2 {
  margin-block: var(--s7) .6em;
  padding-block-start: var(--s1);
  font-size: var(--t-xl);
  letter-spacing: -0.018em;
}
html[lang="ar"] .prose h2 { letter-spacing: 0; }
.prose h2:first-of-type { margin-block-start: var(--s2); }
.prose h3 { margin-block: var(--s5) .4em; font-size: var(--t-md); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-inline-start: 22px; margin-block: 0 1em; }
.prose li { margin-block-end: .5em; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--s2) var(--s5);
  font-size: var(--t-sm);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 11px 13px;
  text-align: start;
  vertical-align: top;
}
.prose th { background: var(--brand-50); font-weight: 700; color: var(--brand-900); }
.prose tbody tr:nth-child(even) td { background: var(--n-25); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.toc {
  background: linear-gradient(160deg, var(--brand-50), var(--n-0));
  border: 1px solid var(--brand-100);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s5) var(--s4);
  margin-block-end: var(--s4);
  box-shadow: var(--sh-1);
}
.toc ol { margin: 0; padding-inline-start: 20px; }
.toc li { margin-block-end: .35em; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand-700); text-decoration: underline; }

/* ── 17. Contact list ───────────────────────────────────────────────────── */
.contact-list {
  list-style: none; padding: 0; margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--n-0);
  box-shadow: var(--sh-1);
}
.contact-list li {
  padding: 12px var(--s4);
  border-block-end: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  max-width: none;
}
.contact-list li:nth-child(odd) { background: var(--n-25); }
.contact-list li:last-child { border-block-end: 0; }
.contact-list .k { color: var(--muted); font-size: var(--t-xs); min-width: 168px; }
html[lang="ar"] .contact-list .k { font-size: var(--t-sm); }
.contact-list .v { font-weight: 650; }
.contact-list .v a { text-decoration: none; }
.contact-list .v a:hover { text-decoration: underline; }

/* ── 18. Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(29,133,119,.16) 0%, transparent 58%),
    linear-gradient(170deg, #0a211f 0%, #07191d 100%);
  color: #a9c2bd;
  padding-block: var(--s8) var(--s6);
  font-size: var(--t-sm);
  border-block-start: 0;
}
html[lang="ar"] .site-footer { font-size: var(--t-base); }

.footer-grid {
  display: grid; gap: var(--s6);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }

.site-footer h2 {
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6f8f89;
  margin-block-end: var(--s3);
  font-weight: 700;
}
html[lang="ar"] .site-footer h2 { letter-spacing: 0; text-transform: none; font-size: var(--t-sm); }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-block-end: 9px; max-width: none; }
.site-footer a { color: #cfe0dc; text-decoration: none; }
.site-footer a:hover { color: var(--gold-200); text-decoration: underline; }
.site-footer p { margin-block-end: .7em; max-width: 46ch; color: #a9c2bd; }

.footer-brand strong { color: #fff; font-weight: 680; }
.footer-mark { margin-block-end: var(--s4); display: block; }
.footer-mark svg { block-size: 30px; inline-size: auto; display: block; }

.footer-legal {
  margin-block-start: var(--s6);
  padding-block-start: var(--s5);
  border-block-start: 1px solid rgba(255,255,255,.1);
  color: #8aa8a2;
  font-size: var(--t-xs);
  line-height: 1.8;
}
html[lang="ar"] .footer-legal { font-size: var(--t-sm); }
.footer-legal p { max-width: 84ch; margin-block-end: .5em; color: #8aa8a2; }
.footer-legal p:last-child { margin-block-end: 0; }

/* ── 19. Motion ─────────────────────────────────────────────────────────── */
/* Everything here is scoped to html.js, so with JavaScript off the page is
   simply the finished page — nothing is ever hidden behind a script. */
/* `translate` rather than `transform`, so hover and layout transforms on the
   same elements (the raised featured price card, card lift) keep working. */
.reveal, .stagger > * {
  transition:
    opacity .62s var(--ease-out),
    translate .62s var(--ease-out);
}
html.js .reveal,
html.js .stagger > * { opacity: 0; translate: 0 18px; }
html.js .reveal.in,
html.js .stagger.in > * { opacity: 1; translate: none; }

html.js .stagger.in > *:nth-child(1) { transition-delay: 0ms; }
html.js .stagger.in > *:nth-child(2) { transition-delay: 60ms; }
html.js .stagger.in > *:nth-child(3) { transition-delay: 120ms; }
html.js .stagger.in > *:nth-child(4) { transition-delay: 180ms; }
html.js .stagger.in > *:nth-child(5) { transition-delay: 220ms; }
html.js .stagger.in > *:nth-child(6) { transition-delay: 260ms; }
html.js .stagger.in > *:nth-child(7) { transition-delay: 300ms; }
html.js .stagger.in > *:nth-child(8) { transition-delay: 330ms; }
html.js .stagger.in > *:nth-child(n+9) { transition-delay: 360ms; }

/* The hero inbox assembles itself once, on load. */
html.js .mock-assemble .conv,
html.js .mock-assemble .bub,
html.js .mock-assemble .sys {
  animation: piece-in .5s var(--ease-out) backwards;
}
html.js .mock-assemble .conv-rows .conv:nth-of-type(1) { animation-delay: .22s; }
html.js .mock-assemble .conv-rows .conv:nth-of-type(2) { animation-delay: .29s; }
html.js .mock-assemble .conv-rows .conv:nth-of-type(3) { animation-delay: .36s; }
html.js .mock-assemble .conv-rows .conv:nth-of-type(4) { animation-delay: .43s; }
html.js .mock-assemble .conv-rows .conv:nth-of-type(5) { animation-delay: .50s; }
html.js .mock-assemble .thread-body > *:nth-child(1) { animation-delay: .46s; }
html.js .mock-assemble .thread-body > *:nth-child(2) { animation-delay: .60s; }
html.js .mock-assemble .thread-body > *:nth-child(3) { animation-delay: .74s; }
html.js .mock-assemble .thread-body > *:nth-child(4) { animation-delay: .88s; }
html.js .mock-assemble .thread-body > *:nth-child(5) { animation-delay: 1.02s; }
html.js .mock-assemble .thread-body > *:nth-child(6) { animation-delay: 1.16s; }
@keyframes piece-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* Bars start flat and grow when the chart scrolls into view. */
html.js .bars:not(.in) .bar i { transform: scaleY(0); }
html.js .bars:not(.in) .bar em { opacity: 0; }
.bar em { transition: opacity .5s var(--ease-out) .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal,
  html.js .stagger > * { opacity: 1 !important; translate: none !important; }
  html.js .bars:not(.in) .bar i { transform: none; }
  html.js .bars:not(.in) .bar em { opacity: 1; }
  .hero-aura span { animation: none; }
}

/* ── 20. Print ──────────────────────────────────────────────────────────── */
@media print {
  .site-header, .cta-band, .skip, .hero-aura, .mock { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a, .site-footer p, .footer-legal p { color: #000; }
  .reveal { opacity: 1; transform: none; }
}
