:root {
  --bg: #EEEDF0;
  --surface: #FFFFFF;
  --surface-alt: #E6E1E7;
  --ink: #221A1E;
  --muted: #62585D;
  --line: #D6D0D5;
  --primary: #7A2238;
  --on-primary: #FFFFFF;
  --accent: #9E6A12;
  --link: #7A2238;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141013;
    --surface: #1E181C;
    --surface-alt: #2A2227;
    --ink: #F1EAEE;
    --muted: #B2A6AD;
    --line: #3A3036;
    --primary: #E39AAE;
    --on-primary: #1E0E14;
    --accent: #E2B35A;
    --link: #EBB0C0;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[lang="ar"] body { font-family: "Noto Naskh Arabic", "Figtree", Tahoma, Arial, sans-serif; font-size: 19px; line-height: 1.8; }
.wrap { max-width: 820px; margin: 0 auto; padding: 28px 20px 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-weight: 800; font-size: 23px; font-family: "Figtree", sans-serif; }
nav.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
nav.top .links a { color: var(--muted); text-decoration: none; font-weight: 700; margin-inline-start: 16px; font-size: 16px; }
h1, h2, h3 { line-height: 1.15; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; }
h1 { font-size: clamp(34px, 7vw, 54px); font-weight: 800; margin: 36px 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 26px; font-weight: 800; margin: 38px 0 12px; }
h3 { font-size: 20px; font-weight: 700; margin: 22px 0 6px; }
p + p { margin-top: 12px; }
.lead { font-size: 21px; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; font: inherit;
  padding: 14px 22px; border-radius: 10px;
  background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 700;
}
.store.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.card { background: var(--surface); border-radius: 14px; padding: 22px; border: 1px solid var(--line); margin: 20px 0; }
.features { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 26px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feature b { display: block; margin-bottom: 4px; font-size: 19px; }
.code { font-weight: 800; font-size: clamp(44px, 12vw, 64px); letter-spacing: 0.12em; margin: 8px 0 4px; font-family: "Figtree", sans-serif; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin: 14px 0; }
th, td { text-align: start; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 17px; vertical-align: top; }
th { background: var(--surface-alt); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
table.log td:nth-child(3) { width: 34%; }
table.log td:nth-child(4) { width: 12%; }
.cta { background: var(--surface); border: 1px solid var(--line); border-inline-start: 6px solid var(--accent); border-radius: 14px; padding: 22px; margin: 34px 0; }
.cta .t { font-size: 23px; font-weight: 800; margin-bottom: 6px; }
a { color: var(--link); }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); margin-inline-end: 14px; }
footer .langs { margin-top: 10px; }
footer .langs a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: none; }
ul, ol { padding-inline-start: 1.2em; }
li { margin: 6px 0; }
.hero { display: flex; gap: 18px; align-items: center; margin-top: 30px; }
.hero img { width: 88px; height: 88px; border-radius: 22px; }
.sheet { margin: 24px 0; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sheet-head span { color: var(--muted); font-size: 15px; }
@media print {
  @page { size: portrait; margin: 10mm; }
  body { background: #fff; color: #000; font-size: 12px; }
  .noprint { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  table { border-color: #000; }
  th, td { border-color: #000; color: #000; background: #fff; font-size: 12px; padding: 5px 8px; }
}
