/* هوية وسم — منقولة حرفيًا من src/lib/design.ts ومن الصفحة المنشورة 2026-08-02.
   ملف واحد تشترك فيه كل صفحات wasemapp.com، فلا تتفرّق الهوية بين صفحة وأخرى. */
:root {
  --cream: #f7f2e9;
  --cream-warm: #fbeedd;
  --ink: #2b2018;
  --muted: #776a5d;
  --maroon: #6e1023;
  --maroon-deep: #3e0915;
  --gold: #b0894b;
  --gold-l: #c9a75e;
  --gold-ring: rgba(201, 167, 94, 0.45);
  --border: rgba(43, 32, 24, 0.1);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Tajawal', system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 58%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 7vw, 72px) clamp(20px, 5vw, 24px) 40px;
  line-height: 1.75;
}
main {
  width: 100%;
  max-width: 640px;
}
.mark {
  width: 74px;
  height: 74px;
  margin: 0 auto;
  border-radius: 22px;
  background: linear-gradient(140deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  border: 1px solid var(--gold-ring);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(76, 12, 28, 0.28);
}
/* 54 لا 38: الظرف يشغل 76/120 من عرض الـviewBox و52/120 من ارتفاعه، فعند 38px يصير
   الرمز ~24×16 داخل بلاطة 74px — نقطةً لا شعارًا. عند 54px يصير ~34×23 وهو المقروء. */
.mark svg {
  width: 54px;
  height: 54px;
}
h1 {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 11vw, 54px);
  color: var(--maroon);
  text-align: center;
  margin: 20px 0 0;
  line-height: 1.35;
}
/* عناوين الصفحات الداخلية أصغر من عنوان الرئيسية — النصّ هو البطل هنا لا الاسم. */
h1.page {
  font-size: clamp(28px, 7vw, 36px);
  margin-top: 18px;
}
.tagline {
  text-align: center;
  color: #8a7b68;
  font-size: clamp(14.5px, 3.6vw, 16px);
  margin: 8px auto 0;
  max-width: 34ch;
}
.rule {
  width: 52px;
  height: 1px;
  background: var(--gold-l);
  margin: 26px auto;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(20px, 5vw, 28px);
  box-shadow: 0 10px 30px rgba(43, 32, 24, 0.06);
}
.card + .card {
  margin-top: 14px;
}
h2 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--maroon);
  margin-bottom: 10px;
}
h3 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin: 16px 0 6px;
}
p {
  color: #4a3d31;
  font-size: 14.5px;
}
p + p {
  margin-top: 10px;
}
ul {
  list-style: none;
  margin-top: 12px;
}
li {
  position: relative;
  padding-inline-start: 20px;
  font-size: 14.5px;
  color: #4a3d31;
}
li + li {
  margin-top: 7px;
}
li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-l);
}
.card a {
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sender {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 9px;
  color: var(--maroon);
}
.cta {
  display: block;
  margin-top: 22px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(140deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  padding: 15px 20px;
  border-radius: 15px;
  border: 1px solid var(--gold-ring);
  box-shadow: 0 8px 20px rgba(110, 16, 35, 0.26);
}
.updated {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 10px;
}
.back {
  display: inline-block;
  margin-top: 20px;
  color: var(--gold);
  text-decoration: none;
  font-size: 13.5px;
}
.back:hover {
  text-decoration: underline;
}
footer {
  margin-top: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}
footer a {
  color: var(--gold);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
footer nav {
  margin-bottom: 6px;
}
footer nav a {
  margin: 0 8px;
  white-space: nowrap;
}
/* بيانات الكيان القانوني — مطلوبة لتوثيق الأعمال (Meta / Apple) وتُقارَن بالسجل التجاري */
footer .legal {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 2;
  opacity: 0.85;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #241a16;
    --cream-warm: #2e211b;
    --ink: #f3ede4;
    --border: rgba(243, 237, 228, 0.12);
  }
  body {
    color: var(--ink);
  }
  .card {
    background: #31241e;
    box-shadow: none;
  }
  p,
  li {
    color: #dcd2c5;
  }
  h1,
  h2 {
    color: var(--gold-l);
  }
  h3 {
    color: #f3ede4;
  }
  .tagline {
    color: #bcae9c;
  }
  .sender {
    background: #241a16;
    color: var(--gold-l);
  }
  .card a {
    color: var(--gold-l);
  }
}

.legal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--maroon);
  text-decoration: none;
  margin-bottom: 24px;
}
.legal-brand span {
  font-family: Cairo, sans-serif;
  font-weight: 900;
  font-size: 36px;
}
