/* Ishara · conversion components shared by every page.
 * The helpers that emit this markup live in src/site.config.mjs
 * (ctaPair, waitlistButton, walkthroughButton, earlyAccessSteps, exampleLabel).
 * Readable on purpose: one rule per block, tokens from knowledge.css. */

/* The standard pair: waiting list (primary) + walkthrough request (secondary), and the credit note. */
.cta-pair {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.cta-pair .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cta-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.cta-note::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: var(--good);
  vertical-align: 1px;
}
.btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}
[dir="rtl"] .btn:hover .btn-arrow {
  transform: translateX(-3px);
}
.cta-pair.center,
.cta-pair.center .btn-row {
  align-items: center;
  justify-content: center;
}

/* "How early access works": three numbered steps. */
.ea-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: none;
}
.ea-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ea-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-a);
  font-weight: 650;
  font-size: 14px;
}
.ea-steps b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.ea-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
@media (max-width: 760px) {
  .ea-steps {
    grid-template-columns: 1fr;
  }
}

/* The label every illustrative scene and example carries. */
.example-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff7e6;
  border: 1px solid #ecd9a9;
  color: #7a5a12;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
}
.example-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c99a2e;
}
[dir="rtl"] .example-pill {
  letter-spacing: 0;
  font-family: "Noto Kufi Arabic", Inter, sans-serif;
}

/* Buttons in a pair: labels centred, never squeezed. */
.cta-pair .btn {
  justify-content: center;
  white-space: nowrap;
}
.cta-note {
  max-width: 46ch;
}
/* Phones: the pair stacks into two full-width buttons, primary first. */
@media (max-width: 480px) {
  .cta-pair,
  .cta-pair .btn-row {
    align-items: stretch;
    width: 100%;
  }
  .cta-pair .btn-row .btn {
    flex: 1 1 100%;
  }
}
/* A step list on an Arabic page reads right to left with its own face. */
[dir="rtl"] .ea-steps b {
  letter-spacing: 0;
}

/* FAQ questions never run under the open/close sign on phones. */
body.knowledge-edition .faq-item summary {
  padding-inline-end: 56px;
}
