/* أساسيات: إعادة ضبط، طباعة، أزرار، روابط، إتاحة، حركة. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* أي display بالمكوّنات ما يغلب «مخفي» */
html {
  background: var(--bg); color-scheme: light; -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: var(--header-h);
}
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--txt);
  font: 400 var(--fs-body)/var(--lh-body) var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3, .price, .amount {
  font-family: var(--f-display); font-weight: 400; line-height: var(--lh-tight); margin: 0; font-synthesis: none;
}
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
bdi, .ltr { unicode-bidi: isolate; }
b, strong { font-weight: 700; }
small { font-size: inherit; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.muted { color: var(--muted); font: 500 var(--fs-small)/1.6 var(--f-body); }
.accent { color: var(--accent-ink); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* الأيقونات */
.i {
  width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 22px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font: 700 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.btn .i { width: 20px; height: 20px; }
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { filter: brightness(1.08); }
.btn--wa { background: var(--wa); color: var(--on-accent); }
.btn--wa:hover { background: var(--wa-hover); }
.btn--ghost { background: transparent; color: var(--txt); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent-line); color: var(--accent-ink); }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 1.0625rem; padding: 0 28px; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn--icon { width: var(--tap); padding: 0; flex: none; }
.link {
  color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.link:hover { color: var(--txt); }

/* التركيز */
:focus { outline: none; }
:focus-visible { outline: 2.5px solid var(--txt); outline-offset: 3px; border-radius: 6px; }
.btn--accent:focus-visible, .btn--wa:focus-visible { outline-color: var(--txt); box-shadow: 0 0 0 5px var(--bg); }
.skip-link {
  position: fixed; inset-inline-start: 12px; top: 12px; z-index: 100; transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* الختم «كادر نسائي 100%» */
.seal { --d: 88px; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; color: var(--accent-ink); flex: none; }
.seal__ring {
  position: relative; width: var(--d); height: var(--d); border-radius: 50%; border: 2px solid currentColor;
  display: grid; place-content: center; text-align: center; gap: 2px;
}
.seal__ring::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed currentColor; opacity: .55;
}
.seal__pct { font: 400 calc(var(--d) * .3)/1 var(--f-display); }
.seal__lbl { font: 800 calc(var(--d) * .14)/1.1 var(--f-body); white-space: nowrap; }
.seal__cap { font: 700 .75rem/1.1 var(--f-body); white-space: nowrap; }
.seal--on-accent { color: var(--on-accent); --d: 64px; }
.seal--on-accent .seal__cap, .seal--sm .seal__cap { display: none; }
.seal--sm { --d: 56px; }

/* الحركة: الحالة الافتراضية «ظاهر». الإخفاء الأولي بس لما JS يشتغل. */
html.js .reveal:not(.is-in) { opacity: 0; transform: translateY(12px); }
html.js .reveal { transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }

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

@media (forced-colors: active) {
  .pkg__price, .badge--rec, .btn { border: 2px solid CanvasText; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
