/* ==========================================================================
   Dawar — website styles
   Egypt's car parts & car service marketplace.
   Brand tokens mirror the app (red / near-black / Inter + Cairo for Arabic).
   Mobile-first, responsive, light/dark aware, motion-safe.
   ========================================================================== */

:root {
  /* ---- Brand palette (app-accurate) ---- */
  --brand: #dc2626;
  --brand-600: #c31d1d;
  --brand-700: #9f1818;
  --brand-050: #fef2f2;
  --ink: #0d0d0f;          /* near-black surfaces (header / hero / footer) */
  --ink-2: #16161a;

  --white: #ffffff;
  --off-white: #fbfbfc;
  --gray-50: #f6f6f7;
  --gray-100: #eeeef0;
  --gray-200: #e2e2e6;
  --gray-400: #9a9aa2;
  --success: #16a34a;

  /* ---- Semantic (light) ---- */
  --bg: var(--off-white);
  --surface: var(--white);
  --surface-alt: var(--gray-50);
  --surface-inset: var(--gray-100);
  --text: #14141a;
  --text-soft: #43434d;
  --text-muted: #63636e;
  --line: #e7e7ea;
  --line-strong: #d7d7dc;
  --header-bg: rgba(13, 13, 15, .82);
  --header-bg-solid: #0d0d0f;

  /* ---- Radius ---- */
  --radius: 18px;
  --radius-lg: 24px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* ---- Layout ---- */
  --maxw: 1140px;
  --maxw-prose: 760px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px rgba(13, 13, 15, .05), 0 1px 1px rgba(13, 13, 15, .04);
  --shadow: 0 2px 4px rgba(13, 13, 15, .04), 0 12px 28px -12px rgba(13, 13, 15, .16);
  --shadow-lg: 0 8px 20px -8px rgba(13, 13, 15, .14), 0 30px 60px -30px rgba(13, 13, 15, .28);
  --shadow-brand: 0 10px 30px -10px rgba(220, 38, 38, .5);

  /* ---- Spacing scale (4/8) ---- */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-ar: "Cairo", "Tajawal", var(--font);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --surface: #17171b;
    --surface-alt: #121216;
    --surface-inset: #1e1e23;
    --text: #f4f4f6;
    --text-soft: #c6c6cd;
    --text-muted: #9a9aa4;
    --line: #26262c;
    --line-strong: #33333b;
    --header-bg: rgba(10, 10, 12, .8);
    --header-bg-solid: #0b0b0d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 16px 34px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 20px 50px -20px rgba(0, 0, 0, .7);
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--brand-700); text-decoration: underline; }
strong, b { font-weight: 700; }

h1, h2, h3, h4 {
  line-height: 1.12; letter-spacing: -0.022em; margin: 0 0 .5em; font-weight: 800;
  color: var(--text); text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.4rem + 3.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.35rem); }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1rem; }
p { text-wrap: pretty; }
:lang(ar) { font-family: var(--font-ar); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(220, 38, 38, .2); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.prose { max-width: var(--maxw-prose); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 300; font-weight: 700;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Scroll reveal ---------- */
/* Hidden state only applies when JS is active (html.js), so content is always
   visible if JavaScript is disabled or fails. Above-the-fold content is never
   given .reveal, keeping LCP fast and flash-free. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .06s; }
[data-delay="2"] { transition-delay: .12s; }
[data-delay="3"] { transition-delay: .18s; }
[data-delay="4"] { transition-delay: .24s; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg-solid);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
  }
}
.site-header.scrolled { box-shadow: 0 8px 30px -14px rgba(0, 0, 0, .55); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md); min-height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { color: #fff; font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand-name b { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #d3d3d8; padding: 9px 14px; border-radius: var(--radius-pill);
  font-size: .93rem; font-weight: 600; transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .09); text-decoration: none; }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(220, 38, 38, .24); }
.nav-cta { margin-left: 6px; }
.nav-links a.nav-cta.btn { padding: 9px 18px; color: #fff; }

.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer; padding: 8px;
  color: #fff; border-radius: 10px;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .09); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--header-bg-solid); border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 10px 14px 18px; display: none;
  }
  .nav-links.open { display: flex; animation: navdrop .22s var(--ease); }
  .nav-links a { padding: 13px 14px; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav-links a.nav-cta.btn { justify-content: center; margin: 6px 0 0; }
  @keyframes navdrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: var(--radius-pill); font-weight: 700;
  font-size: 1rem; line-height: 1; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .2s var(--ease), border-color .15s var(--ease);
  -webkit-tap-highlight-color: transparent; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 19px; height: 19px; }
.btn-primary {
  background: linear-gradient(180deg, #e5322f, var(--brand) 55%, var(--brand-600));
  color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(220, 38, 38, .6); }
.btn-light { background: #fff; color: var(--ink); border-color: rgba(255, 255, 255, .6); }
.btn-light:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--brand); background: var(--brand-050); transform: translateY(-2px); }
.btn-outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-outline-light:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 520px at 82% -12%, rgba(220, 38, 38, .42), transparent 58%),
    radial-gradient(760px 420px at 6% 4%, rgba(220, 38, 38, .16), transparent 55%),
    linear-gradient(180deg, #131316, var(--ink) 70%);
  color: #fff; padding: clamp(3rem, 2rem + 6vw, 6rem) 0 clamp(3.2rem, 2rem + 7vw, 6.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(680px 460px at 68% 20%, #000 0%, transparent 78%);
  mask-image: radial-gradient(680px 460px at 68% 20%, #000 0%, transparent 78%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-copy { max-width: 40ch; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #ffd7d7; background: rgba(220, 38, 38, .16);
  border: 1px solid rgba(220, 38, 38, .38);
  padding: 7px 15px; border-radius: var(--radius-pill); margin-bottom: var(--space-lg);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(220, 38, 38, .25); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.35rem + 4.1vw, 3.85rem); max-width: 15ch; }
.hero h1 .hl { color: #ff9a9a; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.24rem); color: #cdcdd4; max-width: 52ch; }
.hero .tagline-ar {
  font-size: 1.15rem; color: #ffb4b4; margin-top: 10px; direction: rtl; font-weight: 700;
  font-family: var(--font-ar);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--space-xl); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: var(--space-lg); padding: 0; list-style: none; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; color: #b9b9c2; font-size: .9rem; font-weight: 500; }
.hero-badges svg { width: 18px; height: 18px; color: #4ade80; flex: none; }

/* Hero logo showcase */
.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo-card {
  position: relative; width: min(360px, 82%); aspect-ratio: 1 / 1.06;
  display: grid; place-items: center; padding: 30px;
  border-radius: 30px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(220, 38, 38, .22), rgba(255, 255, 255, .04) 60%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px -30px rgba(220, 38, 38, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-logo-card img { width: 82%; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .5)); animation: floaty 6s var(--ease) infinite; }
.hero-logo-glow { position: absolute; inset: -10% -6% auto; height: 60%; background: radial-gradient(closest-side, rgba(220, 38, 38, .5), transparent); filter: blur(30px); z-index: -1; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: none; margin-inline: auto; }
  .hero h1, .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-logo { order: -1; margin-bottom: 6px; }
  .hero-logo-card { width: min(280px, 74%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 2rem + 6vw, 6rem) 0; }
.section-tight { padding: clamp(2.4rem, 1.6rem + 3vw, 3.5rem) 0; }
.section-head { max-width: 62ch; margin: 0 auto var(--space-xl); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head .kicker {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.section-head p { color: var(--text-muted); font-size: clamp(1.02rem, 1rem + .3vw, 1.16rem); }
.alt-bg { background: var(--surface-alt); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-lg);
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s var(--ease);
}
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; }
.card.hoverable:hover, a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card h3 { margin-top: 12px; margin-bottom: 8px; }
.card h3 .arrow { color: var(--brand); display: inline-block; transition: transform .2s var(--ease); }
a.card:hover h3 .arrow { transform: translateX(4px); }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card .ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(220, 38, 38, .14), rgba(220, 38, 38, .07));
  color: var(--brand); border: 1px solid rgba(220, 38, 38, .18);
}
.card .ico svg { width: 25px; height: 25px; }

.list-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.list-card li { position: relative; padding-left: 30px; color: var(--text-soft); }
.list-card li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(22, 163, 74, .12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; }

/* ---------- Stat / trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 760px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
.trust-item {
  text-align: center; padding: var(--space-lg) var(--space-md);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.trust-item .ti-ico { width: 42px; height: 42px; margin: 0 auto 10px; color: var(--brand); }
.trust-item b { display: block; font-size: 1.02rem; }
.trust-item span { color: var(--text-muted); font-size: .9rem; }

/* ---------- How it works (steps timeline) ---------- */
.steps-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: flow; }
@media (max-width: 900px) { .steps-flow { grid-template-columns: 1fr; } }
.flow-step {
  position: relative; counter-increment: flow; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.flow-step .num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 14px;
}
.flow-step h3 { margin-bottom: 6px; }
.flow-step p { color: var(--text-muted); margin: 0; }

/* ---------- Split feature (buyers / sellers) ---------- */
.split-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.split-head .pill {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-050); border: 1px solid rgba(220, 38, 38, .2);
  padding: 5px 11px; border-radius: var(--radius-pill);
}
@media (prefers-color-scheme: dark) { .split-head .pill { background: rgba(220, 38, 38, .14); } }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(220, 38, 38, .4), transparent 60%),
    linear-gradient(180deg, #17171b, var(--ink));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); text-align: center;
  border: 1px solid rgba(255, 255, 255, .08);
}
.cta h2 { color: #fff; }
.cta p { color: #cdcdd4; max-width: 54ch; margin-inline: auto; }
.cta .hero-actions { justify-content: center; }

/* ---------- Legal / doc pages ---------- */
.doc-header {
  background:
    radial-gradient(700px 300px at 88% -30%, rgba(220, 38, 38, .3), transparent 60%),
    linear-gradient(180deg, #131316, var(--ink));
  color: #fff; padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.doc-header .eyebrow { display: inline-block; color: var(--brand); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px; }
.doc-header h1 { color: #fff; }
.doc-header .updated { color: #a9a9b2; font-size: .92rem; margin: 0; }
.doc-header .updated b { color: #e6e6ea; }

.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.doc-layout > * { min-width: 0; }
@media (max-width: 940px) { .doc-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } .toc { position: static !important; } }
.toc {
  position: sticky; top: 88px; font-size: .9rem;
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.toc strong { display: block; margin-bottom: 12px; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 3px; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; color: var(--text-soft); padding: 7px 12px; border-radius: 9px;
  border-left: 2px solid transparent; line-height: 1.35;
}
.toc a::before { content: counter(toc) ". "; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--text); background: var(--surface-alt); text-decoration: none; }
.toc a.active { color: var(--brand); background: var(--brand-050); border-left-color: var(--brand); font-weight: 600; }
@media (prefers-color-scheme: dark) { .toc a.active { background: rgba(220, 38, 38, .12); } }

.doc h2 { margin-top: var(--space-2xl); scroll-margin-top: 90px; padding-top: 4px; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { margin-top: var(--space-lg); }
.doc p, .doc li { color: var(--text-soft); }
.doc ul, .doc ol.list { padding-left: 22px; }
.doc li { margin-bottom: 7px; }
.doc .lead-p { font-size: 1.12rem; color: var(--text); }

.note {
  border-left: 3px solid var(--brand); background: var(--surface-alt);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: var(--space-lg) 0;
}
.note p:last-child { margin-bottom: 0; }
.note.info { border-left-color: var(--success); }

/* Definition-style data tables in legal pages */
.data-table { width: 100%; border-collapse: collapse; margin: var(--space-md) 0 var(--space-lg); font-size: .96rem; }
.data-table caption { text-align: left; color: var(--text-muted); font-size: .85rem; margin-bottom: 8px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); background: var(--surface-alt); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table th[scope="row"] { font-weight: 700; color: var(--text); white-space: nowrap; }
.table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap .data-table { margin: 0; }
.table-wrap .data-table th:first-child, .table-wrap .data-table td:first-child { padding-left: 18px; }

/* ---------- Steps (delete flow) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  align-items: start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-md) var(--space-lg); box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--brand); color: #fff; border-radius: 50%; font-weight: 800; font-size: .98rem;
}
.steps li b { display: block; margin-bottom: 2px; }
.steps li p { margin: 0; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2px 22px; margin-bottom: 12px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-050); position: relative; transition: transform .2s var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}
@media (prefers-color-scheme: dark) { .faq summary::after { background-color: rgba(220, 38, 38, .16); } }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .faq-body { padding-bottom: 20px; color: var(--text-muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Contact channels ---------- */
.channels { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.channels li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-lg); box-shadow: var(--shadow-sm);
}
.channels .ico {
  flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(220, 38, 38, .14), rgba(220, 38, 38, .07));
  color: var(--brand); border: 1px solid rgba(220, 38, 38, .18);
}
.channels .ico svg { width: 23px; height: 23px; }
.channels b { display: block; margin-bottom: 3px; }
.channels a { font-weight: 600; }
.channels span, .channels p { color: var(--text-muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c8c8d0; padding: var(--space-2xl) 0 var(--space-xl); margin-top: 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-xl); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl) var(--space-lg); } .footer-brand { grid-column: 1 / -1; } }
.site-footer .brand-name { font-size: 1.12rem; }
.footer-brand p { color: #9a9aa4; font-size: .92rem; max-width: 42ch; margin-top: 14px; }
.footer-brand .tagline-ar { color: #ffb4b4; direction: rtl; font-family: var(--font-ar); font-weight: 700; margin-top: 6px; }
.footer-col h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #c1c1c9; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09); margin-top: var(--space-xl);
  padding-top: var(--space-lg); display: flex; flex-wrap: wrap; gap: 10px 20px;
  justify-content: space-between; align-items: center; color: #9a9aa4; font-size: .85rem;
}
.footer-bottom a { color: #c1c1c9; }
.footer-bottom a:hover { color: #fff; }

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