/* ============================================================
   XQCHESS – About page (about.ejs). Loaded after home.css.
   ============================================================ */

.ab-hero { padding-top: 4.5rem; padding-bottom: 3.5rem; }
.ab-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--text);
  max-width: 820px;
  margin: .25rem 0 1rem;
}
.ab-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 760px;
  margin: 0;
}

.ab-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 0;
}
.ab-stat {
  background: var(--ground-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column-reverse;
  gap: .25rem;
}
.ab-stat dt { font-size: 12px; color: var(--text-dim); }
.ab-stat dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ab-live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--jade-l);
  box-shadow: 0 0 0 0 rgba(61,158,136,.6);
  animation: ab-pulse 2s infinite;
}
@keyframes ab-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61,158,136,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(61,158,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,158,136,0); }
}

/* ── Modes grid ─────────────────────────────────────────── */
.ab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.ab-card {
  display: block;
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.4rem 1.2rem;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.ab-card:hover { border-color: var(--border-h); transform: translateY(-2px); }
.ab-card:focus-visible { outline: 2px solid var(--jade-l); outline-offset: 2px; }
.ab-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: .75rem 0 .4rem; }
.ab-card p  { font-size: 14px; line-height: 1.65; color: var(--text-dim); margin: 0; }
.ab-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: serif; font-size: 19px;
  color: var(--text-dim);
  background: var(--ground-3);
  border: 1.5px solid var(--border-h);
}
.ab-icon--red  { color: #E07A7A; border-color: rgba(192,58,43,.45); background: rgba(192,58,43,.12); }
.ab-icon--jade { color: var(--jade-l); border-color: rgba(61,158,136,.45); background: rgba(61,158,136,.12); }
.ab-icon--gold { color: var(--gold); border-color: rgba(201,168,76,.45); background: rgba(201,168,76,.12); }

/* ── Two-column sections ────────────────────────────────── */
.ab-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.ab-text { color: var(--text-dim); font-size: 15px; line-height: 1.75; }

.ab-steps { list-style: none; counter-reset: step; margin: 1.25rem 0 0; padding: 0; }
.ab-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.25rem 2.75rem;
}
.ab-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.4);
  background: rgba(201,168,76,.1);
}
.ab-steps strong { display: block; color: var(--text); font-size: 15px; margin-bottom: .2rem; }
.ab-steps span   { color: var(--text-dim); font-size: 14px; line-height: 1.65; }

.ab-tiers, .ab-compare { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 14px; }
.ab-tiers th, .ab-compare th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-faint); padding: .5rem .75rem; border-bottom: 1px solid var(--border);
}
.ab-tiers td, .ab-compare td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.ab-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.ab-compare th:not(:first-child), .ab-compare td:not(:first-child) { text-align: center; width: 6.5rem; }
.ab-compare .yes { color: var(--jade-l); font-weight: 700; }
.ab-compare .no  { color: var(--text-faint); }

.ab-list { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.ab-list li {
  position: relative;
  padding: 0 0 1rem 1.6rem;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}
.ab-list li::before { content: '✓'; position: absolute; left: 0; color: var(--jade-l); font-weight: 700; }

/* ── CTA ────────────────────────────────────────────────── */
.ab-cta { text-align: center; padding-top: 4rem; padding-bottom: 5rem; }
.ab-cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.ab-cta-row a { text-decoration: none; display: inline-flex; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .ab-grid  { grid-template-columns: repeat(2, 1fr); }
  .ab-two   { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 640px) {
  .ab-hero { padding: 3rem 1.25rem 2.5rem; }
  .ab-grid { grid-template-columns: 1fr; }
  .ab-stat dd { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-live-dot { animation: none; }
  .ab-card { transition: none; }
  .ab-card:hover { transform: none; }
}
