/* S8 · Working with AFAWY (#working) — THE FEED homepage, design.md Part III.
   Replaced the packages cards on 31-10-2026 (no packages, no prices).
   <900: one column — the inverted "included" card, then three start steps
   and the contact button. ≥900: card and steps side by side. */

/* base.css's global :lang(ar) rule gives every span Readex Pro at 1.85 */
.working__h2 .line,
.working__h2 .line > span {
  font-family: inherit;
  line-height: inherit;
}
.working__head {
  display: grid;
  gap: var(--s-3);
  max-inline-size: 1180px;
  margin-block-end: var(--s-7);
  margin-inline: auto;
}
.working__lede {
  max-inline-size: 46ch;
  margin: var(--s-2) 0 0;
  color: var(--ink-soft);
}

.working__grid {
  display: grid;
  gap: var(--s-7);
  max-inline-size: 1180px;
  margin-inline: auto;
}

/* ── the inverted card: what every month includes ──────────────────────── */
.working__card {
  display: grid;
  gap: var(--s-4);
  align-content: start;
  padding: var(--s-6) var(--s-5);
  border: 2px solid var(--yellow);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--sh-2);
}
.working__label {
  margin: 0;
  color: inherit;
  opacity: 0.74;
}
.working__incl {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-text);
  font-size: var(--fs-lead);
  line-height: 1.35;
}
.page-home:lang(ar) .working__incl {
  font-family: var(--font-ar-text);
  font-size: var(--fs-ar-lead);
  line-height: 1.5;
}
.working__incl li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}
.working__check {
  flex: none;
  inline-size: 26px;
  block-size: 26px;
  margin-block-start: 0.05em;
}
.page-home:lang(ar) .working__check {
  margin-block-start: 0.25em;
}
.working__check circle {
  fill: var(--yellow);
}
.working__check path {
  fill: none;
  stroke: var(--on-yellow);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── how we start: three numbered steps, then the contact button ───────── */
.page-home .working__h3 {
  margin-block-end: var(--s-5);
}
.working__steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--line);
}
.working__step {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: baseline;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-block-end: 1px solid var(--line);
}
.working__n {
  color: var(--ink-muted);
  font-weight: 700;
}
.working__step-body {
  display: grid;
  gap: 4px;
}
.working__step-t {
  color: var(--ink);
  font-size: var(--fs-lead);
  line-height: 1.35;
}
.working__step-d {
  color: var(--ink-soft);
  font-size: var(--fs-body);
  line-height: 1.5;
}
.page-home:lang(ar) .working__step-t {
  font-size: var(--fs-ar-lead);
  line-height: 1.6;
}
.page-home:lang(ar) .working__step-d {
  font-size: var(--fs-ar-body);
  line-height: 1.7;
}

.working__cta {
  display: grid;
  justify-items: start;
  gap: var(--s-3);
  margin-block-start: var(--s-6);
}
.working__note {
  margin: 0;
  color: var(--ink-muted);
}

@media (min-width: 900px) {
  .working__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: var(--s-8);
  }
  .working__card {
    padding: var(--s-7) var(--s-6);
  }
}

/* ── motion: the ticks draw in a quick cascade once the list reveals ───── */
.js-motion .working__tick {
  stroke-dasharray: 16;
  transition: stroke-dashoffset 220ms var(--ease-out);
  transition-delay: calc(300ms + var(--k, 0) * 60ms);
}
.js-motion .working__incl:not(.in) .working__tick {
  stroke-dashoffset: 16;
}
.working__incl li:nth-child(2) {
  --k: 1;
}
.working__incl li:nth-child(3) {
  --k: 2;
}
.working__incl li:nth-child(4) {
  --k: 3;
}
.working__incl li:nth-child(5) {
  --k: 4;
}
.working__incl li:nth-child(6) {
  --k: 5;
}
.working__incl li:nth-child(7) {
  --k: 6;
}
@media (prefers-reduced-motion: reduce) {
  .js-motion .working__tick {
    transition: none;
    stroke-dashoffset: 0;
  }
}
