/* =========================================================
   Page — Solution (م5)

   One stylesheet behind six pages. Nothing here is keyed to a
   slug: the six differ only in their words, and a rule that
   knows which page it is on would be six rules waiting to drift.

   Layer 3 only — every value below reads a token.
   ========================================================= */

/* ---------------------------------------------------------
   Hero

   Aligned to the reading edge, not centred. These pages are
   read after a click from the header menu, so they open as a
   continuation of a page rather than as a front door.
   --------------------------------------------------------- */
.sl-hero {
  position: relative;
  padding-block: var(--space-20) var(--space-12);
  overflow: hidden;
}

.sl-hero__glow {
  position: absolute;
  inset-block-start: -22rem;
  inset-inline-start: 50%;
  translate: 50% 0;
  width: min(68rem, 130%);
  height: 40rem;
  background: radial-gradient(
    50% 50% at 50% 50%,
    var(--color-primary-soft) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.sl-hero__inner {
  position: relative;
  max-width: 46rem;
}

.sl-hero__title {
  margin: 0 0 var(--space-5);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  text-wrap: balance;
}

.sl-hero__lead {
  margin: 0 0 var(--space-10);
  max-width: 42rem;
  color: var(--color-text-secondary);
}

.sl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ---------------------------------------------------------
   The four features

   Two by two on the desktop. A single row of four would set the
   measure at about thirty characters, which turns a two-line
   paragraph into five.
   --------------------------------------------------------- */
.sl-features__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .sl-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sl-feature {
  --card-pad: var(--space-8);
  gap: var(--space-3);
}
@media (max-width: 560px) {
  .sl-feature { --card-pad: var(--space-6); }
}

/* The index is a marker, not a heading: small, muted, and set on
   the line above the title rather than beside it, so a long title
   never has to wrap around it. */
.sl-feature__index {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
}

.sl-feature__head {
  margin: 0;
  line-height: var(--lh-snug);
}

/* ---------------------------------------------------------
   The proof line

   The one place the brass is spent on these pages. Set large
   enough to be read as a statement and narrow enough to stay
   one thought — a full-width line at this size reads as a
   headline the page never earned.
   --------------------------------------------------------- */
.sl-proof {
  padding-block: var(--space-8) var(--space-12);
}

.sl-proof__inner {
  max-width: 46rem;
}

.sl-proof__rule {
  margin: 0 0 var(--space-8);
  margin-inline-end: 60%;
}

/* Set at heading size but left as a paragraph: it is a sentence, not a
   section title, and at body size it read as one more line of copy in a
   band of whitespace that had promised something. */
.sl-proof__line {
  margin: 0;
  font-family: var(--font-display-ar);
  font-size: var(--fs-h3);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  color: var(--color-text);
  text-wrap: pretty;
}
:root[data-lang="en"] .sl-proof__line {
  font-family: var(--font-latin);
  letter-spacing: var(--tracking-tight);
}

/* ---------------------------------------------------------
   The other five
   --------------------------------------------------------- */
.sl-more__title {
  margin: 0 0 var(--space-5);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text-muted);
}

.sl-more__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.sl-more__chip {
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.sl-more__chip:hover {
  border-color: var(--color-line-strong);
  color: var(--color-text);
}
