/* Homepage layout and illustrative mockups, shared by the Arabic (/) and English (/en/) pages. Logical properties only. */
body { background: var(--surface); line-height: 1.75; }
  .in { max-width: 1360px; margin: 0 auto; padding: 0 20px; }
  section { padding: 96px 0; }
  .band { background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  h1, h2, h3 { letter-spacing: -0.01em; }
  h2.t { margin: 10px 0 0; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.3; max-width: 960px; }
  .kick { font-size: 14px; color: var(--green-text); font-weight: 500; }
  .lead { font-size: 18px; font-weight: 300; color: var(--sub); max-width: 800px; margin: 16px 0 0; }
  .btn.lg { min-height: 52px; padding: 0 26px; font-size: 17px; border-radius: 12px; }
  .card { background: #fff; border: 1px solid var(--line-3); border-radius: 16px; padding: 22px; }
  .grid { display: grid; gap: 18px; margin-top: 40px; }
  .g3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

  /* illustrative mockups (fictional companies) — swap for real screenshots later */
  .ex { font-size: 12px; color: var(--faint); margin-top: 10px; text-align: center; }
  .page { background: #fff; border: 1px solid var(--line-3); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; font-size: 12px; color: #334; line-height: 1.7; }
  .page .hd { padding: 14px 18px; color: #fff; display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
  .page .bd { padding: 16px 18px; }
  .page h4, .page .mh { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
  .page p { margin: 0 0 8px; }
  .page table { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 6px; }
  .page th { color: #fff; font-weight: 500; padding: 6px 8px; text-align: start; }
  .page td { padding: 6px 8px; border-bottom: 1px solid #E8ECF0; vertical-align: top; }
  .page tr:nth-child(even) td { background: #F7F9FB; }
  .pill { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 10.5px; font-weight: 500; white-space: nowrap; }
  .p-ok { background: var(--ok-bg); color: var(--ok-fg); } .p-warn { background: var(--warn-bg); color: var(--warn-fg); } .p-info { background: var(--info-bg); color: var(--info-fg); } .p-bad { background: var(--bad-bg); color: var(--bad-fg); }
  .heroStack { position: relative; padding-block-end: 28px; padding-inline-end: 28px; }
  .heroStack .back { position: absolute; inset-block: 22px 6px; inset-inline-start: 20px; inset-inline-end: 0; background: var(--canvas); border: 1px solid var(--line-3); border-radius: 10px; transform: rotate(-3deg); }
  .heroStack .page { position: relative; }
  .chipf { position: absolute; inset-inline-end: 0; bottom: 0; background: #fff; border: 1px solid var(--line-3); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
  .chipf i { width: 30px; height: 30px; border-radius: 9px; background: var(--ok-bg); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; }
  .chipf small { display: block; color: var(--faint); font-size: 11.5px; }
  .sample { background: #fff; border: 1px solid var(--line-3); border-radius: 12px; padding: 16px; font-size: 13.5px; line-height: 1.9; color: #3a4552; min-height: 300px; }
  .sample.plain { font-family: Arial, sans-serif; }
  .sample .bad { background: var(--bad-bg); border-radius: 3px; padding: 0 2px; }
  .twin { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .dash { background: #fff; border: 1px solid var(--line-3); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; font-size: 13px; }
  .dash .top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
  .dash .row { display: grid; grid-template-columns: 1.6fr 1fr .8fr; gap: 10px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line-2); }
  .dash .row:last-child { border-bottom: 0; }
  .dash .row b { font-weight: 500; display: block; } .dash .row small { color: var(--faint); }
  .dash .note { margin: 12px 16px 14px; background: var(--ok-bg); color: var(--ok-fg); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; }
  @media (max-width: 760px) { .sample { min-height: 0; } }
  @media (max-width: 520px) { .twin { grid-template-columns: 1fr; } .dash .row { grid-template-columns: 1fr auto; } .dash .row .due { display: none; } }

  /* nav */
  header.nav { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); }
  header.nav .in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
  header.nav img { height: 38px; width: auto; display: block; }
  header.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 15px; }
  header.nav nav a { color: var(--sub); text-decoration: none; }
  header.nav nav a.btn { color: #fff; }
  @media (max-width: 760px) { header.nav nav a:not(.btn):not(.keep) { display: none; } }

  /* 1 hero */
  .hero { padding: 80px 0 88px; }
  .hero .in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
  .hero .tx { flex: 1.4 1 520px; min-width: 0; }
  .hero h1 { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.2; }
  .hero h1 em { font-style: normal; color: var(--green); display: block; }
  .hero .lead { font-size: 20px; }
  .hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
  .hero .vis { flex: 1 1 400px; min-width: 0; }

  /* 2 expertise */
  .big { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
  .big b { font-family: var(--mono); font-weight: 500; font-size: clamp(64px, 9vw, 112px); line-height: 1; color: var(--green); }
  .big span { font-size: 18px; color: var(--sub); max-width: 360px; }
  .stop { display: flex; gap: 12px; align-items: flex-start; }
  .stop i { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--ok-bg); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 600; }

  /* 3 compare */
  .clause { margin-top: 32px; border-radius: 14px; background: var(--navy); color: #fff; padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline; }
  .clause small { color: var(--side-faint); }
  .tabs { display: none; gap: 6px; margin-top: 22px; padding: 4px; background: var(--line); border-radius: 12px; }
  .tabs button { flex: 1; font: inherit; font-size: 14px; min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--sub); cursor: pointer; }
  .tabs button.on { background: #fff; color: var(--ink); font-weight: 500; }
  .cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
  .cmp .col { display: flex; flex-direction: column; gap: 12px; }
  .cmp h3 { margin: 0; font-size: 18px; }
  .cmp .col.us h3 { color: var(--green); }
  .cmp .verdict { font-size: 14px; color: var(--sub); border-top: 1px solid var(--line-2); padding-top: 10px; }
  .cmp .col.us .verdict { color: var(--ok-fg); font-weight: 500; }
  @media (max-width: 760px) { .tabs { display: flex; } .cmp { grid-template-columns: 1fr; } .cmp .col:not(.on) { display: none; } }

  /* split rows (4, 5, 7) */
  .split .in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
  .split .tx { flex: 1 1 380px; min-width: 0; }
  .split .vis { flex: 1 1 420px; min-width: 0; }
  .list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
  .list li { display: flex; gap: 10px; align-items: flex-start; color: var(--sub); }
  .list li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 11px; }

  /* 6 steps */
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; counter-reset: s; }
  .steps li { list-style: none; position: relative; padding-top: 56px; }
  .steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; inset-inline-start: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 18px; }
  .steps li::after { content: ""; position: absolute; top: 20px; inset-inline-start: 52px; inset-inline-end: -10px; height: 2px; background: var(--line-3); }
  .steps li:last-child::after { display: none; }
  .steps b { display: block; font-size: 18px; }
  .steps span { color: var(--sub); font-size: 15px; }
  @media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 26px; } .steps li { padding: 0; padding-inline-start: 56px; } .steps li::after { top: 46px; inset-inline-start: 19px; inset-inline-end: auto; width: 2px; height: calc(100% - 22px); } }

  /* 8 cards */
  .feat h3 { margin: 0 0 6px; font-size: 18px; }
  .feat p { margin: 0; color: var(--sub); font-size: 15px; }

  /* 9 saudi */
  .ksa { border-radius: 24px; background: var(--navy); color: #fff; padding: clamp(28px, 5vw, 56px); }
  .ksa h2 { color: #fff; }
  .ksa .lead { color: var(--side-faint); }
  .ksa .grid div { border-top: 1px solid rgba(255,255,255,.16); padding-top: 14px; color: var(--side-ink); font-size: 15px; }
  .ksa .grid b { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; }

  /* 12 trial + faq */
  .trial { border-radius: 24px; background: linear-gradient(135deg, var(--green), var(--deep)); color: #fff; padding: clamp(30px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between; }
  .trial .tx { flex: 1 1 420px; min-width: 0; }
  .trial h2 { color: #fff; margin: 0; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.25; }
  .trial p { margin: 12px 0 0; font-size: 18px; font-weight: 300; color: #E3F4EC; }
  .trial .ph { color: #6B4A00; }
  .trial form { flex: 1 1 340px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
  .trial input { flex: 1 1 220px; min-width: 0; min-height: 52px; border: 0; border-radius: 12px; padding: 0 18px; font-size: 16px; }
  .trial .btn { min-height: 52px; border-radius: 12px; background: #fff; color: var(--deep); border-color: #fff; font-weight: 600; }
  .trial .fine { flex: 1 1 100%; margin: 0; font-size: 13px; color: #E3F4EC; }
  .faq { margin-top: 56px; display: grid; gap: 10px; max-width: 960px; }
  .faq details { background: #fff; border: 1px solid var(--line-3); border-radius: 14px; padding: 0 20px; }
  .faq summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--green); }
  .faq details[open] summary::after { content: "−"; }
  .faq details p { margin: 0 0 18px; color: var(--sub); }

  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  footer { border-top: 1px solid var(--line); padding: 28px 0; }
  footer .in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; font-size: 14px; color: var(--faint); }
  footer img { height: 28px; width: auto; display: block; }
  footer a { color: var(--faint); text-decoration: none; margin-inline-start: 18px; }
  footer .social { display: flex; gap: 8px; }
  /* brand name inside running Arabic text: reads as a name, not as «your agent» */
  .wk { color: var(--green-text); font-weight: 600; white-space: nowrap; }
  .ksa .wk { color: #7FD3AE; }
  .tabs .wk, .trial .wk, footer .wk { color: inherit; }
  /* plans section: demo request form */
  .demo { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 32px); box-shadow: 0 10px 30px rgba(14,59,54,.06); }
  .demo .btn { width: 100%; margin-top: 6px; }
  .demo .msg { margin: 12px 0 0; min-height: 1.4em; font-size: 14px; color: var(--ok-fg); }
  .demo .msg.bad { color: var(--bad-fg); }
  .demo .hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
  footer .social a { margin: 0; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; }
  footer .social a:hover { color: var(--ink, inherit); border-color: currentColor; }
  @media (max-width: 640px) { section { padding: 64px 0; } .hero { padding: 48px 0 64px; } }

  /* methodology numbers: four cards (tabs) + one shared explanation slider (public/brand/home-stats.js) */
  .ms { margin-top: 40px; min-height: 420px; }
  .ms-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .ms-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: start; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-3); border-radius: 16px; padding: 20px 22px 22px; cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s, transform .2s; }
  .ms-card:hover { border-color: var(--mint-2); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
  .ms-card:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
  .ms-card.on { border-color: var(--green); background: linear-gradient(180deg, var(--mint) 0, #fff 70%); box-shadow: 0 0 0 1px var(--green), var(--shadow); transform: none; }
  .ms-card.on::after { content: ""; position: absolute; inset-inline: 22px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); }
  .ms-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--mint); color: var(--green); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; transition: background-color .2s, color .2s; }
  .ms-card.on .ms-ic { background: var(--green); color: #fff; }
  .ms-num { font-weight: 500; font-size: clamp(40px, 4.6vw, 60px); line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
  .ms-card.on .ms-num { color: var(--green); }
  .ms-lb { font-size: 16px; font-weight: 500; color: var(--sub); line-height: 1.5; }

  .ms-slider { margin-top: 18px; background: #fff; border: 1px solid var(--line-3); border-radius: 20px; overflow: hidden; }
  .ms-view { overflow: hidden; touch-action: pan-y; }
  .ms-track { display: flex; align-items: stretch; transition: transform .45s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
  .ms-track.still { transition: none; }
  .ms-slide { flex: 0 0 100%; min-width: 0; padding: 30px 34px 8px; }
  .ms-slide h3 { margin: 0; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.45; }
  .ms-slide > p { margin: 10px 0 0; font-size: 17px; color: var(--sub); max-width: 760px; }
  .ms-chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
  .ms-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-fg); font-size: 15px; font-weight: 500; }
  .ms-n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--mint); color: var(--green); font-weight: 500; font-size: 15px; }
  .ms-sources { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .ms-sources li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); font-size: 15px; color: var(--sub); line-height: 1.65; }
  .ms-sources b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; }
  /* stages read right to left in Arabic: the grid follows the page direction, the connector points to inline-end */
  .ms-stages { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .ms-stages li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
  .ms-stages li:not(:last-child)::after { content: ""; position: absolute; top: 15px; inset-inline-start: 44px; inset-inline-end: -4px; height: 2px; background: repeating-linear-gradient(to right, var(--mint-2) 0 6px, transparent 6px 10px); }
  .ms-stages li:not(:last-child)::before { content: ""; position: absolute; top: 11px; inset-inline-end: -6px; width: 8px; height: 8px; border-bottom: 2px solid var(--green); border-left: 2px solid var(--green); transform: rotate(45deg); } /* physical: chevron drawn by two borders, mirrored for LTR below */
  .ms-stages li:last-child .ms-n { background: var(--green); color: #fff; }
  [dir="ltr"] .ms-stages li:not(:last-child)::before { border: 0; border-top: 2px solid var(--green); border-right: 2px solid var(--green); } /* physical: LTR mirror of the chevron above */

  .ms-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px 18px; }
  .ms-count { margin: 0; font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }
  .ms-arrow { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-3); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
  .ms-arrow:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
  .ms-arrow:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
  .ms-arrow:disabled { color: var(--ghost); background: var(--canvas); cursor: default; }

  @media (max-width: 900px) {
    .ms-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ms-sources { grid-template-columns: 1fr; }
  }
  @media (max-width: 640px) {
    .ms-card { padding: 16px 16px 18px; }
    .ms-ic { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 4px; }
    .ms-ic svg { width: 19px; height: 19px; }
    .ms-num { font-size: 40px; }
    .ms-lb { font-size: 14px; }
    .ms-slide { padding: 22px 20px 4px; }
    .ms-slide > p { font-size: 16px; }
    .ms-chips li { font-size: 14px; }
    .ms-sources { gap: 14px; }
    .ms-sources li { padding: 0; border: 0; background: none; }
    .ms-stages { grid-template-columns: 1fr; gap: 0; }
    .ms-stages li { flex-direction: row; align-items: center; padding-bottom: 18px; }
    .ms-stages li:last-child { padding-bottom: 0; }
    .ms-stages li:not(:last-child)::after { top: 36px; bottom: 2px; inset-inline-start: 15px; inset-inline-end: auto; width: 2px; height: auto; background: repeating-linear-gradient(to bottom, var(--mint-2) 0 5px, transparent 5px 9px); }
    .ms-stages li:not(:last-child)::before { display: none; }
    .ms-nav { padding: 12px 16px 16px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .ms-track, .ms-card, .ms-ic { transition: none; }
    .ms-card:hover { transform: none; }
  }
