/* ─────────────────────────────────────────────────────────────────────────────
   مُعمّر — muamer.net
   Warm-paper ledger aesthetic: the site inherits the product's own visual DNA —
   paper background, charcoal ink, the logo's sand-gold roofline, the app's
   terracotta action color, and money-green figures. Mobile-first, RTL-first.
   Fonts self-hosted (Rubik 400/700) — zero third-party requests site-wide.
   ───────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Rubik';
  src: url('/assets/fonts/rubik-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('/assets/fonts/rubik-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #faf8f3;
  --paper-deep: #f3ede1;
  --card: #ffffff;
  --ink: #232830;
  --ink-soft: #575e6b;
  --panel: #23272e;
  --panel-soft: #c9cdd4;
  --panel-text: #f3efe7;
  --sand: #b08d57;
  --sand-ink: #8a6a39;
  --sand-soft: #e7d9bf;
  --terra: #a6512c;
  --terra-deep: #86391c;
  --money: #337a55;
  --line: #e8e0d0;
  --radius: 16px;
  --radius-sm: 11px;
  --max: 1100px;
  --grid-tex:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(176, 141, 87, 0.09) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(176, 141, 87, 0.09) 27px 28px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  font-family: 'Rubik', 'Segoe UI', 'Noto Kufi Arabic', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* pin the footer on short pages (404, pricing) */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 4px; }

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

h1, h2, h3 { line-height: 1.32; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 6.6vw, 3rem); }
.section-title { font-size: clamp(1.42rem, 5vw, 2.1rem); margin-bottom: 26px; }

.lede { color: var(--ink-soft); font-size: clamp(1.02rem, 2.4vw, 1.17rem); max-width: 44em; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--sand-ink); font-weight: 700; font-size: 0.92rem;
  margin-bottom: 12px;
}
.kicker::before { content: ''; width: 26px; height: 3px; border-radius: 2px; background: var(--sand); }

.chip {
  display: inline-block; font-size: 0.83rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
}
.chip-sand { background: var(--sand-soft); color: var(--sand-ink); }
.chip-terra { background: #f7e8df; color: var(--terra-deep); }

/* ── Buttons & CTA ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 14px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 1.02rem; line-height: 1.3;
  cursor: pointer; text-align: center;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 8px 20px rgba(166, 81, 44, 0.28); }
.btn-primary:hover { background: var(--terra-deep); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sand); }
.btn-sand { background: var(--sand); color: #241d10; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.btn-sand:hover { background: #c29e66; }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; }
.btn svg { flex: none; }

.cta-block { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 10px; }
.cta-micro { color: var(--ink-soft); font-size: 0.9rem; font-weight: 400; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, #fff);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-grid {
  display: grid;
  grid-template-areas: 'brand cta' 'nav nav';
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 16px; padding-block: 7px 0;
}
.brand { grid-area: brand; }
.brand img { height: 42px; width: auto; }
.btn-nav { grid-area: cta; padding: 8px 17px; font-size: 0.93rem; border-radius: 12px; justify-self: end; box-shadow: none; }
.site-nav {
  grid-area: nav;
  display: flex; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-inline: -20px; padding-inline: 20px 34px;
  /* fade the trailing (inline-end = left in RTL) edge so overflow is visible,
     paired with site.js scrolling the active item into view */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26px);
  mask-image: linear-gradient(to right, transparent 0, #000 26px);
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  color: var(--ink); font-weight: 700; font-size: 0.93rem;
  padding: 8px 11px 10px; white-space: nowrap;
}
@media (max-width: 430px) {
  .site-nav a { font-size: 0.88rem; padding-inline: 8px; }
}
.site-nav a:hover { background: var(--paper-deep); text-decoration: none; border-radius: 10px; }
.site-nav a[aria-current='page'] { color: var(--terra-deep); box-shadow: inset 0 -2.5px 0 var(--terra); }
@media (min-width: 940px) {
  .header-grid {
    grid-template-areas: 'brand nav cta';
    grid-template-columns: auto 1fr auto;
    padding-block: 8px; gap: 20px;
  }
  .brand img { height: 46px; }
  .site-nav { justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; -webkit-mask-image: none; mask-image: none; }
  .site-nav a { padding-block: 9px; }
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(to bottom, rgba(250, 248, 243, 0) 55%, var(--paper) 96%),
    var(--grid-tex), var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: 44px 58px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--terra); }
.hero .lede { margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 18px; }
.hero-actions .btn-ghost { margin-top: 10px; }
.hero-visual { display: grid; justify-items: center; }
@media (min-width: 940px) {
  .hero { padding-block: 72px 84px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
}
.phone-hero { width: min(300px, 76vw); }

/* ── «شوف مُعمّر شغال» — full demo, click-to-play (deck قطاع الفيديو) ─────────── */
.demo {
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(255, 255, 255, 0.045) 27px 28px),
    var(--panel);
  color: var(--panel-text);
  padding-block: 58px 66px;
}
.demo-wrap { display: grid; justify-items: center; text-align: center; }
.demo .section-title { margin-bottom: 8px; }
.demo-sub { color: var(--panel-soft); max-width: 46em; margin-bottom: 28px; }

/* landscape video card — the render draws its own phone + paper canvas,
   so the site frames it like a clean screen, not a second bezel */
.video-card {
  width: 100%;
  max-width: 860px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(232, 224, 208, 0.25);
  background: var(--paper-deep);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.4);
}
.video-card video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
.video-figure { position: relative; }
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--terra); color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 130ms ease, background 130ms ease;
}
.video-play:hover { transform: scale(1.06); background: var(--terra-deep); }
.video-play svg { margin-inline-start: 4px; }
.video-figure.is-playing .video-play { display: none; }

/* ── Phone frames ───────────────────────────────────────────────────────────── */
.phone {
  width: min(272px, 74vw);
  border: 9px solid #262a31;
  border-radius: 42px;
  background: #262a31;
  box-shadow: 0 24px 48px rgba(35, 40, 48, 0.22), 0 3px 10px rgba(35, 40, 48, 0.14);
  overflow: hidden;
}
.phone img, .phone video { border-radius: 32px; width: 100%; height: auto; }
.phone-lg { width: min(320px, 82vw); }
.phone-pair { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.phone-pair .phone { width: min(226px, 42vw); }
.phone-pair .phone-back { margin-top: 42px; }

/* ── Pain section (the mess) ────────────────────────────────────────────────── */
.pain {
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(255, 255, 255, 0.045) 27px 28px),
    var(--panel);
  color: var(--panel-text);
  padding-block: 58px 64px;
}
.pain-wrap { max-width: 780px; }
.pain h2 { font-size: clamp(1.42rem, 5vw, 2.1rem); margin-bottom: 22px; }
.pain-open { font-size: 1.15rem; margin-bottom: 18px; }
.scraps { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 12px; margin-bottom: 24px; }
.scraps li {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700; font-size: 0.98rem;
  padding: 10px 18px 9px;
  border-radius: 3px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  position: relative;
}
.scraps li::before {
  content: '';
  position: absolute; top: -7px; inset-inline-start: 50%; translate: 14px 0;
  width: 34px; height: 13px; rotate: -3deg;
  background: rgba(176, 141, 87, 0.55);
  border-inline: 1px dashed rgba(0, 0, 0, 0.12);
}
.scraps li:nth-child(1) { rotate: -2deg; }
.scraps li:nth-child(2) { rotate: 1.6deg; }
.scraps li:nth-child(3) { rotate: -1.2deg; }
.scraps li:nth-child(4) { rotate: 2.2deg; }
.pain-lines { color: var(--panel-soft); margin-bottom: 26px; }
.pain-verdict {
  font-weight: 700; font-size: clamp(1.08rem, 3vw, 1.3rem);
  border-inline-start: 4px solid var(--sand);
  padding-inline-start: 16px;
}

/* ── Generic sections ───────────────────────────────────────────────────────── */
section.both, section.steps { padding-block: 58px; }
section.solution { background: var(--paper-deep); padding-block: 58px; border-block: 1px solid var(--line); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 2px 10px rgba(35, 40, 48, 0.045);
}

.both-grid { display: grid; gap: 18px; }
.both-grid h3 { font-size: 1.18rem; margin-bottom: 10px; color: var(--terra-deep); }
.both-grid p { color: var(--ink-soft); margin-bottom: 10px; }
.both-grid p:last-child { margin-bottom: 0; }
.both-united { margin-top: 24px; font-size: 1.08rem; max-width: 640px; }
@media (min-width: 760px) { .both-grid { grid-template-columns: 1fr 1fr; } }

.solution-grid { display: grid; gap: 18px; }
.sol-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.sol-card p { color: var(--ink-soft); font-size: 0.99rem; }
.glyph {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--paper-deep); color: var(--terra);
  margin-bottom: 14px;
}
@media (min-width: 760px) { .solution-grid { grid-template-columns: repeat(3, 1fr); } }

.steps-grid { list-style: none; display: grid; gap: 26px; counter-reset: none; }
.steps-grid li { border-inline-start: 1px dashed var(--sand); padding-inline-start: 18px; }
.step-num {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--sand-soft); color: var(--sand-ink);
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 10px;
}
.steps-grid h3 { font-size: 1.13rem; margin-bottom: 6px; }
.steps-grid p { color: var(--ink-soft); font-size: 0.99rem; }
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.trust { background: var(--paper-deep); border-block: 1px solid var(--line); padding-block: 56px; }
.trust-wrap { max-width: 800px; }
.trust p { color: var(--ink-soft); font-size: clamp(1.02rem, 2.5vw, 1.14rem); }
.trust strong { color: var(--money); }

/* ── Closer + beta invite ───────────────────────────────────────────────────── */
.closer {
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(255, 255, 255, 0.045) 27px 28px),
    var(--panel);
  color: var(--panel-text);
  padding-block: 62px 72px;
}
.closer-grid { display: grid; gap: 34px; align-items: start; }
.closer-lead h2 { font-size: clamp(1.5rem, 5.4vw, 2.3rem); margin-bottom: 12px; }
.closer-line { color: var(--panel-soft); font-size: 1.1rem; }
@media (min-width: 940px) { .closer-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; } }

.beta-card {
  background: var(--card); color: var(--ink);
  border-radius: 20px; padding: 28px 24px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.beta-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.beta-intro { color: var(--ink-soft); margin-bottom: 14px; }
.beta-q { margin-bottom: 8px; }
.beta-steps { list-style: none; counter-reset: beta; margin-bottom: 6px; }
.beta-steps li {
  counter-increment: beta;
  position: relative;
  padding-inline-start: 44px;
  padding-block: 10px;
  color: var(--ink-soft);
}
.beta-steps li + li { border-top: 1px solid var(--line); }
.beta-steps li::before {
  content: counter(beta, arabic-indic);
  position: absolute; inset-inline-start: 0; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand-soft); color: var(--sand-ink);
  font-weight: 700; font-size: 0.95rem;
}
.beta-steps strong { color: var(--ink); }
.beta-voice {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  border-inline-start: 4px solid var(--sand);
  padding-inline-start: 14px;
}
.beta-card .cta-block { margin-top: 14px; }
.beta-card .btn-sand { box-shadow: 0 8px 20px rgba(176, 141, 87, 0.35); }
.beta-privacy { margin-top: 14px; font-size: 0.88rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 12px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge { background: var(--panel); color: #fff; flex-direction: column; gap: 0; line-height: 1.25; }
.store-badge small { font-weight: 400; font-size: 0.75rem; opacity: 0.85; }

/* ── Page head (inner pages) ────────────────────────────────────────────────── */
.page-head {
  background:
    linear-gradient(to bottom, rgba(250, 248, 243, 0) 45%, var(--paper) 96%),
    var(--grid-tex), var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: 46px 40px;
}
.page-head h1 { margin-bottom: 12px; }
@media (min-width: 940px) { .page-head { padding-block: 64px 54px; } }

/* ── Features page ──────────────────────────────────────────────────────────── */
.features-list { padding-block: 26px 10px; }
.feat {
  display: grid; gap: 26px; align-items: center;
  padding-block: 40px;
}
.feat + .feat { border-top: 1px solid var(--line); }
.feat h3 { font-size: clamp(1.25rem, 3.6vw, 1.6rem); margin-bottom: 10px; }
.feat p { color: var(--ink-soft); }
.feat-visual { display: grid; justify-items: center; }
@media (min-width: 860px) {
  .feat { grid-template-columns: 1.1fr 0.9fr; padding-block: 54px; }
  .feat-flip .feat-copy { order: 2; }
  .feat-flip .feat-visual { order: 1; }
}

/* «مش لاقي اللي محتاجه؟» — suggestions panel closing the features tour */
.suggest { padding-block: 6px 58px; }
.suggest-card {
  border-inline-start: 4px solid var(--sand);
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 26px 24px;
}
.suggest-card h3 { font-size: clamp(1.2rem, 3.4vw, 1.45rem); }
.suggest-card p { color: var(--ink-soft); max-width: 46em; }
.suggest-card .btn-sand { box-shadow: 0 8px 20px rgba(176, 141, 87, 0.35); }

.strip {
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(255, 255, 255, 0.045) 27px 28px),
    var(--panel);
  color: var(--panel-text);
  padding-block: 54px;
}
.strip-wrap { display: grid; gap: 8px; justify-items: start; }
.strip-line { font-size: clamp(1.15rem, 3.6vw, 1.5rem); font-weight: 700; }
.strip .cta-micro { color: var(--panel-soft); }

/* ── Client-view page ───────────────────────────────────────────────────────── */
.portal-visual { padding-block: 44px 20px; }
.portal-visual-wrap { display: grid; gap: 30px; justify-items: center; }
.portal-note { width: 100%; }
.portal-note h2 { font-size: 1.25rem; margin-bottom: 12px; }
.steps-list { list-style: none; counter-reset: pstep; }
.steps-list li {
  counter-increment: pstep;
  position: relative; padding-inline-start: 44px; padding-block: 10px;
  color: var(--ink-soft);
}
.steps-list li + li { border-top: 1px solid var(--line); }
.steps-list li::before {
  content: counter(pstep, arabic-indic);
  position: absolute; inset-inline-start: 0; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand-soft); color: var(--sand-ink);
  font-weight: 700; font-size: 0.95rem;
}
.steps-list strong { color: var(--ink); }
@media (min-width: 860px) {
  .portal-visual-wrap { grid-template-columns: auto 1fr; align-items: center; gap: 44px; }
}

.portal-details { padding-block: 30px 56px; }
.portal-grid { display: grid; gap: 18px; align-items: start; }
.portal-grid h2 { font-size: 1.25rem; margin-bottom: 12px; }
.portal-grid h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.portal-grid p { color: var(--ink-soft); }
.ledger { list-style: none; }
.ledger li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  padding-block: 11px; color: var(--ink-soft);
}
.ledger li + li { border-top: 1px solid var(--line); }
.ledger strong { color: var(--ink); }
.tick { color: var(--money); margin-top: 3px; }
.control-card .phone { margin: 18px auto 4px; }
@media (min-width: 860px) { .portal-grid { grid-template-columns: 1.1fr 0.9fr; } }

/* ── Pricing ────────────────────────────────────────────────────────────────── */
.pricing-beta { padding-block: 40px 60px; }
.pricing-card { padding: 30px 26px; }
.pricing-card h2 { font-size: clamp(1.3rem, 4.4vw, 1.7rem); margin-bottom: 10px; }
.pricing-card p { color: var(--ink-soft); }
.mini-faq { margin-top: 26px; align-content: start; }
.mini-faq h2 { font-size: 1.15rem; margin-bottom: 12px; }
@media (min-width: 860px) {
  .pricing-beta .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 26px; align-items: start; }
  .pricing-card { padding: 38px 34px; }
  .mini-faq { margin-top: 0; }
}

/* ── FAQ ────────────────────────────────────────────────────────────────────── */
.faq { padding-block: 36px 64px; }
.faq-list, .mini-faq { display: grid; gap: 12px; }
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}
details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 16px 18px;
  position: relative;
  padding-inline-end: 46px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  position: absolute; inset-inline-end: 16px; top: 50%;
  translate: 0 -50%;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-deep); color: var(--sand-ink);
  font-size: 1.2rem; font-weight: 700; line-height: 1;
  transition: rotate 140ms ease;
}
details[open] summary::after { rotate: 45deg; }
details[open] summary { border-bottom: 1px solid var(--line); }
details > p { padding: 14px 18px 18px; color: var(--ink-soft); }
.faq-list details summary { font-size: 1.02rem; }

/* ── About ──────────────────────────────────────────────────────────────────── */
.about { padding-block: 40px 64px; }
.about-wrap { max-width: 760px; }
.about-wrap > p { color: var(--ink-soft); margin-bottom: 16px; }
.about h2 { font-size: 1.3rem; margin: 26px 0 12px; }
.values { list-style: none; display: grid; gap: 12px; margin-bottom: 10px; }
.values li {
  background: var(--card); border: 1px solid var(--line);
  border-inline-start: 4px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 14px 18px; color: var(--ink-soft);
}
.values strong { color: var(--ink); }

/* ── Contact ────────────────────────────────────────────────────────────────── */
.contact { padding-block: 40px 64px; }
.contact-grid { display: grid; gap: 22px; align-items: start; }
.contact-channels { display: grid; gap: 14px; }
.channel {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  color: var(--ink);
}
.channel:hover { text-decoration: none; border-color: var(--sand); }
.channel .glyph { margin-bottom: 0; }
.channel strong { display: block; margin-bottom: 2px; }
.channel-sub { color: var(--ink-soft); font-size: 0.95rem; display: block; }
.email-code {
  font-family: inherit; user-select: all;
  background: var(--paper-deep);
  padding: 2px 9px; border-radius: 7px;
  color: var(--ink); font-weight: 700;
  direction: ltr; unicode-bidi: embed;
}
.contact-idea {
  border-inline-start: 4px solid var(--sand);
  display: grid;
  gap: 6px;
}
.contact-idea h2 { font-size: 1.15rem; }
.contact-idea p { color: var(--ink-soft); font-size: 0.98rem; }
.contact-form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.95rem; }
input, textarea {
  font: inherit; color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(166, 81, 44, 0.14); }
textarea { resize: vertical; }
.form-hint { color: var(--ink-soft); font-size: 0.88rem; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  padding-block: 34px 40px;
  font-size: 0.96rem;
}
.site-footer .wrap { display: grid; gap: 14px; }
.footer-tagline { font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--ink); }
.footer-note { color: var(--ink-soft); font-size: 0.9rem; }

/* ── 404 ────────────────────────────────────────────────────────────────────── */
.notfound { padding-block: 90px 110px; text-align: center; }
.notfound h1 { margin-bottom: 22px; font-size: clamp(1.5rem, 5.6vw, 2.4rem); }

/* ── Legal pages (ported compliance content — body markup untouched) ────────── */
.legal .site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 8px;
}
.legal .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.legal .brand img { height: 42px; width: auto; }
.legal .lang-switch { font-size: 0.94rem; font-weight: 700; }
.legal main.wrap { max-width: 780px; padding-block: 44px 72px; }
.legal h1 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); margin-bottom: 8px; }
.legal .meta { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal strong { color: var(--ink); }
.legal ul, .legal ol { padding-inline-start: 22px; margin-block: 10px; }
.legal ol:lang(ar) { list-style-type: arabic-indic; }
.legal .callout {
  background: var(--card); border: 1px solid var(--sand-soft);
  border-inline-start: 4px solid var(--sand);
  border-radius: 10px; padding: 16px 18px; margin-block: 18px;
  color: var(--ink);
}
