/* ==========================================================================
   FD Solutions LLC — "Evidence" design system
   --------------------------------------------------------------------------
   The product is a document a bank reviewer accepts, so the site is built like
   one: paper and ink, hairline rules, a strict measure, monospace metadata,
   numbered sections. No gradients, no shadows, no rounded pills.
   No JavaScript anywhere — nav and FAQ use native HTML so the CSP can forbid
   script outright.
   ========================================================================== */

/* --- IBM Plex Sans Arabic, self-hosted (CSP allows font-src 'self') ------- */

@font-face {
  font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/plex-arabic-400.4fa3d81d41ab.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
                 U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41,
                 U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/plex-arabic-500.106892212ea7.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
                 U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41,
                 U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/plex-arabic-600.64891a810259.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
                 U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41,
                 U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/plex-arabic-700.a4390abc98c2.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
                 U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41,
                 U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/plex-latin-400.4767e1197706.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2013-2014,
                 U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2212;
}
@font-face {
  font-family: "Plex Arabic"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/plex-latin-500.80ebc672c915.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2013-2014,
                 U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2212;
}
@font-face {
  font-family: "Plex Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/plex-latin-600.f417eeb0d15e.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2013-2014,
                 U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2212;
}
@font-face {
  font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/plex-latin-700.8d04403cf599.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2013-2014,
                 U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2212;
}

/* ========================================================================== */

:root {
  /* Paper & ink */
  --paper:    #fbfbf9;
  --paper-2:  #f3f3ef;
  --paper-3:  #ebebe5;
  --ink:      #101014;
  --ink-2:    #1a1a20;
  --text:     #16161a;
  --text-2:   #55555f;
  --text-3:   #7a7a84;

  /* Hairlines — the primary structural device */
  --rule:      #dededa;
  --rule-2:    #c8c8c2;
  --rule-ink:  rgba(255, 255, 255, .16);
  --rule-ink-2: rgba(255, 255, 255, .28);

  /* One signal colour, used sparingly: marks, numbers, links */
  --signal:    #a8321f;
  --signal-2:  #d4553d;
  --signal-ink: #e8836c;
  --signal-wash: rgba(168, 50, 31, .06);

  --wrap: 1200px;
  --gutter: clamp(1.15rem, 3.5vw, 3rem);
  --step: clamp(3.5rem, 7.5vw, 7rem);

  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono",
          "IBM Plex Mono", Menlo, Consolas, monospace;
  --sans: "Plex Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #0e0e11;
    --paper-2: #141418;
    --paper-3: #1b1b20;
    --text:    #eaeae6;
    --text-2:  #a6a6a0;
    --text-3:  #82828c;
    --rule:    rgba(255, 255, 255, .13);
    --rule-2:  rgba(255, 255, 255, .24);
    --signal:  #e07a62;
    --signal-wash: rgba(224, 122, 98, .1);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(15.5px, .3vw + 15px, 16.75px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
::selection { background: var(--ink); color: var(--paper); }

.skip {
  position: fixed; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .8rem 1.4rem;
  font-family: var(--mono); font-size: .8rem; text-decoration: none;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 800px; }
.measure { max-width: 74ch; }
.center { text-align: center; }

/* ==========================================================================
   Type
   ========================================================================== */

.h1 {
  font-size: clamp(2.3rem, 1rem + 5.2vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -.036em;
  font-weight: 600;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.h1-sm { font-size: clamp(1.95rem, 1rem + 3.6vw, 3.3rem); }

.h2 {
  font-size: clamp(1.6rem, 1rem + 2.2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.18rem, .95rem + 1vw, 1.5rem);
  line-height: 1.22;
  letter-spacing: -.022em;
  font-weight: 600;
  margin: 0 0 .55rem;
}

.h4 {
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: -.014em;
  font-weight: 640;
  margin: 0 0 .45rem;
}

/* Monospace metadata label — the recurring "report field" device. */
.h5 {
  font-family: var(--mono);
  font-size: .69rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-3);
  margin: 0 0 .8rem;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--mono);
  font-size: .71rem; letter-spacing: .17em; text-transform: uppercase;
  font-weight: 500; color: var(--signal);
  margin: 0 0 1.6rem;
}
.eyebrow::before {
  content: ""; width: .55rem; height: .55rem; flex: none;
  background: var(--signal);
}

.lede {
  font-size: clamp(1.06rem, .95rem + .55vw, 1.28rem);
  line-height: 1.58;
  color: var(--text-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.body-lg { font-size: clamp(1rem, .95rem + .25vw, 1.08rem); color: var(--text-2); max-width: 70ch; }
.narrow-p { max-width: 62ch; }
.small { font-size: .87rem; }
.muted { color: var(--text-3); }

/* ==========================================================================
   Header — solid, ruled, no blur
   ========================================================================== */

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; min-height: clamp(60px, 7vw, 72px);
  position: relative;
}

.brand {
  display: inline-flex; align-items: baseline; gap: .5rem;
  text-decoration: none; flex: none;
  font-size: clamp(1rem, .9rem + .35vw, 1.1rem);
  font-weight: 640; letter-spacing: -.03em;
}
.brand-mark {
  width: 10px; height: 10px; flex: none; align-self: center;
  background: var(--signal);
}
.brand-dot { color: var(--signal); }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.site-nav > a {
  position: relative; text-decoration: none;
  font-size: .89rem; font-weight: 500; color: var(--text-2);
  white-space: nowrap;
  transition: color .15s ease;
}
.site-nav > a:hover { color: var(--text); }
.site-nav > a.current { color: var(--text); }
.site-nav > a.current::before {
  content: ""; position: absolute; inset-inline-start: -.7rem; top: 50%;
  width: 4px; height: 4px; margin-top: -2px; background: var(--signal);
}

.lang-switch {
  font-family: var(--mono);
  font-size: .74rem !important; letter-spacing: .06em;
  border: 1px solid var(--rule-2); padding: .3rem .7rem;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.lang-switch:hover { border-color: var(--ink); color: var(--text); }

.nav-toggle, .nav-burger { display: none; }

/* ==========================================================================
   Buttons — square, ruled
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--ink); color: var(--paper);
  padding: .72rem 1.45rem;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: .89rem; font-weight: 560; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--signal); border-color: var(--signal); color: #fff; }

.btn-sm { padding: .48rem 1rem; font-size: .84rem; }
.btn-lg { padding: .88rem 1.85rem; font-size: .95rem; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--rule-2); }
.btn-ghost:hover { background: transparent; color: var(--signal); border-color: var(--signal); }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.35rem;
  font-family: var(--mono); font-size: .76rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--signal); text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: .15rem;
  transition: border-color .15s ease;
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { border-color: var(--signal); }

/* ==========================================================================
   Bands — separated by hairlines only
   ========================================================================== */

.band { padding-block: var(--step); border-top: 1px solid var(--rule); }
.band-tint { background: var(--paper-2); }

.band-ink {
  background: var(--ink); color: #b9b9b4;
  border-top-color: var(--ink);
}
.band-ink .h2, .band-ink .h3, .band-ink .h4 { color: #fff; }
.band-ink .lede { color: #93939a; }
.band-ink .h5 { color: #7c7c86; }
.band-ink .eyebrow { color: var(--signal-ink); }
.band-ink .eyebrow::before { background: var(--signal-ink); }
.band-ink .btn { background: transparent; border-color: var(--rule-ink-2); color: #fff; }
.band-ink .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Section header with a monospace index, like a report contents entry. */
.section-head {
  max-width: 68ch;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}
.band-ink .section-head { border-top-color: var(--rule-ink-2); }

.two-col {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  align-items: start;
}

/* ==========================================================================
   Hero — a cover page
   ========================================================================== */

.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding-block: clamp(3.5rem, 9vw, 7.5rem) 0;
}
/* Fine engineering grid, drawn in CSS so img-src can stay 'self'. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center top;
}
.hero > * { position: relative; }

.hero .h1 { color: #fff; max-width: 20ch; font-weight: 600; }
.hero-lede { color: #9a9aa2; max-width: 56ch; }
.hero .eyebrow { color: var(--signal-ink); }
.hero .eyebrow::before { background: var(--signal-ink); }
.hero .btn { background: #fff; border-color: #fff; color: var(--ink); }
.hero .btn:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: var(--rule-ink-2); }
.hero .btn-ghost:hover { background: transparent; color: #fff; border-color: #fff; }

/* Monospace standards strip — the cover-page footer. */
.hero-meta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule-ink);
  padding-block: 1rem clamp(2.5rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; gap: .5rem 1.75rem;
  font-family: var(--mono); font-size: .71rem;
  letter-spacing: .1em; text-transform: uppercase; color: #6e6e78;
  list-style: none; padding-inline: 0; margin-bottom: 0;
}
.hero-meta li { display: flex; align-items: center; gap: .6rem; }
.hero-meta li::before { content: ""; width: 3px; height: 3px; background: var(--signal-ink); flex: none; }

.trust { border-top: 1px solid var(--rule-ink); }
.trust-list {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  list-style: none; margin: 0; padding-block: 1.1rem clamp(2.5rem, 5vw, 3.5rem);
  font-family: var(--mono); font-size: .73rem;
  letter-spacing: .09em; text-transform: uppercase; color: #8b8b94;
}

/* ==========================================================================
   Page head
   ========================================================================== */

.page-head {
  background: var(--paper);
  padding-block: clamp(2.5rem, 5vw, 4.25rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
}
.page-head.tall { padding-bottom: clamp(3.5rem, 7vw, 5rem); }

.jump {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
.jump a {
  font-family: var(--mono);
  font-size: .73rem; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; color: var(--text-2);
  padding: .8rem 1.35rem .8rem 0;
  margin-inline-end: 1.35rem;
  border-top: 2px solid transparent; margin-top: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.jump a:hover { color: var(--signal); border-top-color: var(--signal); }

/* ==========================================================================
   Service group cards — ruled boxes, no shadow
   ========================================================================== */

/* Five groups: 3 + 2 reads as a deliberate block, 4 + 1 reads as a leftover. */
.group-grid {
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
@media (min-width: 940px) {
  .group-grid { grid-template-columns: repeat(3, 1fr); }
}
.group-card {
  display: flex; flex-direction: column;
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  text-decoration: none;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background .18s ease;
}
.group-card:hover { background: var(--paper-2); }

.group-count {
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 1.1rem;
}
.group-items {
  list-style: none; margin: .6rem 0 0; padding: 0;
  font-size: .88rem; color: var(--text-2);
}
.group-items li { padding: .3rem 0; }
.group-items li + li { border-top: 1px dotted var(--rule-2); }
.group-card .link-arrow { margin-top: auto; padding-top: 1.4rem; }

/* ==========================================================================
   Services — numbered report sections
   ========================================================================== */

.group-title {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding-bottom: 1rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 2px solid var(--ink);
}
.group-title::after {
  content: ""; flex: 1; height: 0;
}

.service {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem;
  padding-block: clamp(1.85rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--rule);
}
.service:first-of-type { border-top: none; padding-top: 0; }

@media (min-width: 760px) {
  .service { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 2rem; }
}

.service-num {
  font-family: var(--mono);
  font-size: .82rem; letter-spacing: .1em;
  color: var(--signal);
  padding-top: .35rem;
}
.service-body { max-width: 72ch; }
.service-body > p { color: var(--text-2); }
.service-lede {
  font-size: clamp(1.02rem, .95rem + .35vw, 1.14rem);
  font-weight: 600; color: var(--text) !important;
  letter-spacing: -.016em;
}

.tick-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.tick-list li {
  position: relative;
  padding: .42rem 0 .42rem 1.5rem;
  color: var(--text-2); font-size: .93rem;
  border-top: 1px dotted var(--rule-2);
}
.tick-list li:first-child { border-top: none; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 1.02rem;
  width: 5px; height: 5px; background: var(--signal);
}
.small-list li { font-size: .89rem; }

.subgroups {
  display: grid; gap: 0; margin-top: 1.85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  border-top: 1px solid var(--rule);
}
.subgroup {
  padding: 1.2rem 1.35rem 1.2rem 0;
  border-right: 1px solid var(--rule);
}
.subgroup:last-child { border-right: none; }
.subgroup .tick-list { margin-top: 0; }

/* Footnote voice — monospace, so it needs a tighter measure than prose. */
.note-line {
  margin-top: 1.7rem; font-family: var(--mono);
  font-size: .76rem; line-height: 1.7; letter-spacing: .03em;
  color: var(--text-3); max-width: 88ch;
}
.band-ink .note-line { color: #7c7c86; }

.authz-note {
  margin-top: 1.75rem; padding: .95rem 0 .95rem 1.35rem;
  border-left: 2px solid var(--signal);
  background: var(--signal-wash);
  font-size: .89rem; color: var(--text-2) !important;
}

.callout {
  margin-top: 2rem; padding: clamp(1.35rem, 2.5vw, 1.8rem);
  background: var(--ink); color: #b9b9b4;
}
.callout .h5 { color: var(--signal-ink); }
.callout p { color: #b9b9b4 !important; margin: 0; font-size: .93rem; }

/* ==========================================================================
   Why us — ruled index, not cards
   ========================================================================== */

.why-grid {
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--rule);
}
.why-item {
  padding: 1.5rem 2rem 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.why-item .h4 { color: var(--text); }
.why-item p { color: var(--text-2); font-size: .93rem; margin: 0; }

/* ==========================================================================
   Deliverables — a numbered manifest
   ========================================================================== */

.deliverables {
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  list-style: none; margin: 0; padding: 0;
  counter-reset: d;
  border-top: 1px solid var(--rule-ink);
}
.deliverables li {
  counter-increment: d;
  padding: 1.35rem 2rem 1.35rem 0;
  border-bottom: 1px solid var(--rule-ink);
}
.deliverables li::before {
  content: counter(d, decimal-leading-zero);
  display: block; margin-bottom: .6rem;
  font-family: var(--mono); font-size: .71rem; letter-spacing: .14em;
  color: var(--signal-ink);
}
.deliverables p { color: #8d8d96; font-size: .9rem; margin: 0; }

/* ==========================================================================
   Standards table
   ========================================================================== */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.std-table {
  width: 100%; border-collapse: collapse; min-width: 460px;
  font-size: .93rem;
}
.std-table th, .std-table td { text-align: left; padding: .85rem 1.25rem .85rem 0; }
.std-table thead th {
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-3); font-weight: 500;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .7rem;
}
.std-table tbody tr { border-bottom: 1px solid var(--rule); }
.std-table tbody th {
  font-family: var(--mono); font-size: .82rem; font-weight: 500;
  white-space: nowrap; color: var(--text);
}
.std-table tbody td { color: var(--text-2); }
.std-table tbody tr:hover { background: var(--paper-2); }

/* ==========================================================================
   Steps — a numbered procedure
   ========================================================================== */

.steps { list-style: none; margin: 0; padding: 0; max-width: 78ch; }
.step {
  display: grid; grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--rule);
}
.step:first-child { border-top: 2px solid var(--ink); }
.step-num {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .1em;
  color: var(--signal); padding-top: .2rem;
}
.step p { color: var(--text-2); margin: 0; font-size: .93rem; }

/* ==========================================================================
   FAQ — hairline rows
   ========================================================================== */

.faq { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1.25rem 3rem 1.25rem 0;
  position: relative;
  font-size: clamp(.98rem, .95rem + .18vw, 1.05rem);
  font-weight: 580; letter-spacing: -.016em;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: .35rem; top: 1.15rem;
  font-family: var(--mono); font-size: 1.15rem; font-weight: 400;
  color: var(--signal); line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--signal); }
.faq-item > p {
  margin: 0; padding: 0 3rem 1.5rem 0;
  color: var(--text-2); max-width: 72ch;
}

/* ==========================================================================
   Forms — ruled fields
   ========================================================================== */

.form-layout {
  display: grid; gap: clamp(2rem, 4.5vw, 4rem);
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
}

.field-row {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 195px), 1fr));
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; margin-bottom: .4rem;
  font-family: var(--mono);
  font-size: .69rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-2); font-weight: 500;
}
.opt { text-transform: none; letter-spacing: .02em; color: var(--text-3); }

.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%; padding: .7rem .85rem;
  font: inherit; font-size: .94rem; color: var(--text);
  background: var(--paper);
  border: 1px solid var(--rule-2); border-radius: 0;
  transition: border-color .15s ease;
}
.form textarea { resize: vertical; min-height: 8rem; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--ink);
}
.form select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 1.25rem, calc(100% - .8rem) 1.25rem;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}

.help { font-size: .82rem; color: var(--text-3); margin: .4rem 0 0; }
.field-error {
  font-family: var(--mono); font-size: .76rem; color: var(--signal);
  margin: .35rem 0 0; letter-spacing: .02em;
}
.form-error {
  border-left: 2px solid var(--signal); background: var(--signal-wash);
  padding: .9rem 1.1rem; margin-bottom: 1.5rem; font-size: .9rem;
}
.form button { margin-top: .5rem; }

.contact-aside {
  border-top: 2px solid var(--ink);
  padding-top: 1.35rem;
  position: sticky; top: 6rem;
}
.contact-aside .h4 { margin-top: 1.9rem; }
.contact-aside .h4:first-child { margin-top: 0; }
.contact-aside .tick-list { margin-top: .5rem; }
.contact-aside .foot-list { font-family: var(--mono); font-size: .82rem; }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-band .lede { margin-inline: auto; }
.cta-band .btn { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.cta-band .section-head { border: none; padding-top: 0; margin-inline: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-foot {
  background: var(--ink); color: #82828a;
  padding-block: clamp(3rem, 5.5vw, 4.5rem) 1.75rem;
}
.foot-grid {
  display: grid; gap: clamp(1.75rem, 3.5vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}
.brand-foot { color: #fff; margin-bottom: .8rem; }
.foot-h {
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: #fff; font-weight: 500; margin: 0 0 1rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--rule-ink);
}
.foot-list { list-style: none; margin: 0; padding: 0; font-size: .87rem; }
.foot-list li { padding: .28rem 0; }
.foot-list a { text-decoration: none; color: #82828a; transition: color .15s ease; }
.foot-list a:hover { color: #fff; }

.foot-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: clamp(2.25rem, 4vw, 3rem); padding-top: 1.35rem;
  border-top: 1px solid var(--rule-ink);
  font-family: var(--mono); font-size: .71rem;
  letter-spacing: .06em; color: #6e6e78;
}
.foot-legal p { margin: 0; }
.foot-legal .small, .foot-legal .muted { font-size: inherit; color: inherit; }

/* ==========================================================================
   Mobile navigation
   ========================================================================== */

@media (max-width: 880px) {
  .nav-burger {
    display: block; width: 38px; height: 38px; cursor: pointer;
    position: relative; margin-inline-start: auto;
    border: 1px solid var(--rule-2);
  }
  .nav-burger span,
  .nav-burger::before,
  .nav-burger::after {
    content: ""; position: absolute; left: 9px; right: 9px; height: 1px;
    background: var(--text);
    transition: transform .2s ease, opacity .15s ease;
  }
  .nav-burger::before { top: 13px; }
  .nav-burger span { top: 18px; }
  .nav-burger::after { top: 23px; }
  .nav-toggle:checked ~ .nav-burger::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger::after { transform: translateY(-5px) rotate(-45deg); }
  .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--signal); outline-offset: 2px; }

  .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    display: grid; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0 var(--gutter) 1.25rem;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .26s ease, opacity .2s ease, visibility .2s;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 24rem; opacity: 1; visibility: visible; }
  .site-nav > a { padding: .85rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
  .site-nav > a.current::before { display: none; }
  .lang-switch { justify-self: start; margin-top: 1rem; border-bottom: 1px solid var(--rule-2) !important; }
  .site-nav > a.btn { margin-top: 1rem; justify-content: center; border-bottom: 1px solid var(--ink); }
}

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}

@media (max-width: 620px) {
  .subgroup { border-right: none; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .subgroup:last-child { border-bottom: none; }
  .why-item, .deliverables li { padding-right: 0; }
  .btn-row .btn { width: 100%; }
  .hero .h1 { max-width: none; }
}

/* ==========================================================================
   Arabic + RTL
   ========================================================================== */

html[lang="ar"] body { line-height: 1.88; font-size: clamp(16px, .3vw + 15.5px, 17.25px); }
html[lang="ar"] .h1,
html[lang="ar"] .h2,
html[lang="ar"] .h3,
html[lang="ar"] .h4 { letter-spacing: 0; line-height: 1.34; font-weight: 700; }
html[lang="ar"] .h1 { line-height: 1.28; }
html[lang="ar"] .lede { line-height: 1.85; }

/* Arabic has no uppercase and no monospace convention — use the sans, sized down. */
html[lang="ar"] .eyebrow,
html[lang="ar"] .h5,
html[lang="ar"] .foot-h,
html[lang="ar"] .group-count,
html[lang="ar"] .field label,
html[lang="ar"] .jump a,
html[lang="ar"] .link-arrow,
html[lang="ar"] .note-line,
html[lang="ar"] .field-error,
html[lang="ar"] .std-table thead th,
html[lang="ar"] .trust-list,
html[lang="ar"] .foot-legal,
html[lang="ar"] .contact-aside .foot-list {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
}
html[lang="ar"] .eyebrow { font-size: .84rem; font-weight: 600; }
html[lang="ar"] .h5 { font-size: .8rem; font-weight: 600; }
html[lang="ar"] .foot-h { font-size: .82rem; font-weight: 600; }
html[lang="ar"] .group-count { font-size: .8rem; }
html[lang="ar"] .field label { font-size: .84rem; font-weight: 600; }
html[lang="ar"] .jump a { font-size: .87rem; }
html[lang="ar"] .link-arrow { font-size: .85rem; }
html[lang="ar"] .note-line { font-size: .87rem; line-height: 1.8; }
html[lang="ar"] .std-table thead th { font-size: .8rem; }
html[lang="ar"] .trust-list { font-size: .85rem; }
html[lang="ar"] .foot-legal { font-size: .82rem; }
html[lang="ar"] .hero-meta { font-size: .8rem; }
/* Numbers and standard names stay monospace — they are Latin either way. */
html[lang="ar"] .service-num,
html[lang="ar"] .step-num,
html[lang="ar"] .deliverables li::before,
html[lang="ar"] .std-table tbody th { font-family: var(--mono); }

[dir="rtl"] .tick-list li { padding: .42rem 1.5rem .42rem 0; }
[dir="rtl"] .tick-list li::before { left: auto; right: 0; }

[dir="rtl"] .authz-note {
  border-left: none; border-right: 2px solid var(--signal);
  padding: .95rem 1.35rem .95rem 0;
}
[dir="rtl"] .form-error { border-left: none; border-right: 2px solid var(--signal); }

[dir="rtl"] .faq-item summary { padding: 1.25rem 0 1.25rem 3rem; }
[dir="rtl"] .faq-item summary::after { right: auto; left: .35rem; }
[dir="rtl"] .faq-item > p { padding: 0 0 1.5rem 3rem; }

[dir="rtl"] .link-arrow::after { content: "←"; }

[dir="rtl"] .group-grid { border-left: none; border-right: 1px solid var(--rule); }
[dir="rtl"] .group-card { border-right: none; border-left: 1px solid var(--rule); }

[dir="rtl"] .std-table th, [dir="rtl"] .std-table td {
  text-align: right; padding: .85rem 0 .85rem 1.25rem;
}
[dir="rtl"] .subgroup {
  border-right: none; border-left: 1px solid var(--rule);
  padding: 1.2rem 0 1.2rem 1.35rem;
}
[dir="rtl"] .subgroup:last-child { border-left: none; }
[dir="rtl"] .why-item, [dir="rtl"] .deliverables li { padding: 1.5rem 0 1.5rem 2rem; }
[dir="rtl"] .deliverables li { padding-block: 1.35rem; }
[dir="rtl"] .jump a { padding: .8rem 0 .8rem 1.35rem; margin: -1px 0 0 1.35rem; }

[dir="rtl"] .form select {
  background-position: 1.1rem 1.25rem, 1.4rem 1.25rem;
  padding-left: 2.4rem; padding-right: .85rem;
}

[dir="rtl"] .service-num,
[dir="rtl"] .step-num,
[dir="rtl"] .deliverables li::before { direction: ltr; text-align: right; }

@media (max-width: 620px) {
  [dir="rtl"] .subgroup { border-left: none; border-bottom: 1px solid var(--rule); padding-left: 0; }
  [dir="rtl"] .why-item, [dir="rtl"] .deliverables li { padding-left: 0; }
}

/* Latin technical terms inside Arabic prose stay left-to-right. */
[dir="rtl"] [dir="ltr"] { display: inline-block; text-align: left; }

/* ==========================================================================
   Print — the site already reads like a document
   ========================================================================== */

@media print {
  .site-head, .site-foot, .cta-band, .btn-row, .jump, .nav-burger, .hero-meta { display: none; }
  body { font-size: 10.5pt; color: #000; background: #fff; }
  .hero, .band-ink, .callout { background: #fff !important; color: #000 !important; }
  .hero::before { display: none; }
  .hero .h1, .band-ink .h2, .band-ink .h3, .band-ink .h4, .callout p,
  .deliverables p { color: #000 !important; }
  .deliverables, .deliverables li { border-color: #ccc !important; }
  a { text-decoration: underline; }
}
