/* ==========================================================================
   /killfeed-alternative: Skynet next to Legion Killfeed, on Skynet UI.
   Loaded after pages-v2.css (the frame: .pgv2-main, .pgv2-cta, .pgv2-foot).
   Every colour is a theme token, so the page follows the reader's palette.
   Its motion is public/css/landing-motion.css (loaded after this sheet),
   which carries its own reduced-motion rules.
   ========================================================================== */

/* A grid or flex item defaults to its min-content width; one long word would
   size the track and .sk-card (overflow: hidden) would clip it. */
.kfa-hero > *,
.kfa-soul-head > *,
.kfa-steps > *,
.kfa-faq > *,
.kfa-both > * { min-width: 0; }

.kfa-main a:not(.sk-btn) { color: var(--sk-primary-text); }

/* ---------- hero ---------------------------------------------------------- */

.kfa-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.5rem 0 1.5rem;
}
.kfa-hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--sk-text);
}
/* Text on the left, the scoreboard beside it from 60em (.lm-hero-grid). */
.kfa-hero > .lm-hero-grid { align-self: stretch; }
.kfa-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.kfa-hero-text > * { min-width: 0; max-width: 100%; }

/* ---------- the scoreboard ------------------------------------------------
   Two bars and two counts, from killfeedAlternative.scoreboard(). The count
   is the word; the bar only agrees with it. */
.kfa-score { align-self: center; }
.kfa-score .sk-card-body { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; }
.kfa-score-title { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sk-muted); }
.kfa-score-rows { margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.kfa-score-row { min-width: 0; }
.kfa-score-row dt { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--sk-text); }
.kfa-score-row dt i { color: var(--sk-muted); }
.kfa-score-us dt i { color: var(--sk-primary-text); }
.kfa-score-price { margin-left: auto; font-size: 0.82rem; font-weight: 700; }
.kfa-score-row dd { margin: 0.35rem 0 0; color: var(--sk-text-2); }
.kfa-score-n { font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--sk-text); font-variant-numeric: tabular-nums; overflow-wrap: normal; }
.kfa-score-of { font-size: 0.9rem; }
.kfa-score-bar {
  display: block;
  height: 10px;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: var(--sk-surface-2);
  overflow: hidden;
}
.kfa-score-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--sk-muted); }
.kfa-score-us .kfa-score-bar > span { background: linear-gradient(90deg, var(--sk-primary), color-mix(in srgb, var(--sk-primary) 60%, var(--sk-success))); }
.kfa-score .kfa-score-note { margin: 0; max-width: none; font-size: 0.82rem; line-height: 1.5; color: var(--sk-muted); }

/* ---------- section headings: a short accent line under each ------------- */
.kfa-h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.45rem;
  border-radius: 2px;
  background: var(--sk-primary);
  transform-origin: left center;
}

/* ---------- questions: a chevron that turns when one opens --------------- */
.kfa-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; list-style: none; }
.kfa-faq summary::-webkit-details-marker { display: none; }
.kfa-chev { flex: 0 0 auto; color: var(--sk-muted); font-size: 0.8em; transition: rotate 0.25s ease; }
.kfa-faq details[open] .kfa-chev { rotate: 180deg; color: var(--sk-primary-text); }

.kfa-hero p { margin: 0; max-width: 62ch; color: var(--sk-text-2); line-height: 1.6; font-size: 1.05rem; }
.kfa-free { display: inline-flex; align-items: center; gap: 0.35rem; }
@media (pointer: coarse) { .kfa-main .sk-btn { min-height: 44px; } }

/* ---------- a word from Soul ---------------------------------------------- */

.kfa-soul { margin-bottom: 2rem; }
.kfa-soul .sk-card-body { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.25rem; }
.kfa-soul-head { display: flex; align-items: center; gap: 0.8rem; }
.kfa-soul h2 { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--sk-text); }
.kfa-soul p { margin: 0.15rem 0 0; }
/* The browser's own player, full width of the card and never wider. */
.kfa-audio { display: block; width: 100%; max-width: 100%; min-height: 44px; }

.kfa-muted { color: var(--sk-muted); }

/* ---------- sections ------------------------------------------------------ */

.kfa-section { margin: 0 0 2rem; }
.kfa-h2 { margin: 0 0 0.75rem; font-size: 1.3rem; font-weight: 700; color: var(--sk-text); }
.kfa-lead { margin: 0 0 1rem; line-height: 1.6; }
.kfa-fine { margin: 0.75rem 0 0; max-width: 75ch; color: var(--sk-muted); font-size: 0.875rem; line-height: 1.6; overflow-wrap: anywhere; }

/* ---------- the comparison table -----------------------------------------
   A real table, three columns at every width, so a phone never scrolls it
   sideways: fixed layout, the feature column takes what the two short
   answer columns leave, and every cell may wrap. */

.kfa-table-card { overflow: hidden; }
.kfa-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.kfa-col-side { width: 24%; }
.kfa-table th,
.kfa-table td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--sk-border);
  /* break-word, not anywhere: a word breaks only when it cannot fit at all,
     so "membership" never splits into "membersh / ip". The fixed layout
     already decides the column widths. */
  overflow-wrap: break-word;
  line-height: 1.45;
}
.kfa-table tbody tr:last-child > * { border-bottom: 0; }
.kfa-table thead th {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sk-muted);
  background: var(--sk-surface-2);
}
.kfa-table tbody th { font-weight: 600; color: var(--sk-text); }
/* Skynet's column carries a faint wash of the accent; colour only agrees with
   the header text, which already says which column is which. */
.kfa-table .kfa-us { background: color-mix(in srgb, var(--sk-primary) 7%, transparent); }
.kfa-table thead th.kfa-us { color: var(--sk-primary-text); background: color-mix(in srgb, var(--sk-primary) 12%, var(--sk-surface-2)); }
.kfa-note { display: block; margin-top: 0.25rem; font-size: 0.82rem; font-weight: 400; color: var(--sk-muted); }

/* An answer is an icon AND a word, never colour alone. */
.kfa-mark { display: inline-flex; align-items: baseline; gap: 0.4rem; font-weight: 600; }
.kfa-mark i { flex: 0 0 auto; font-size: 0.85em; }
.kfa-yes { color: var(--sk-success-text); }
.kfa-paid { color: var(--sk-warning-text); }
.kfa-none { color: var(--sk-muted); font-weight: 500; }

@media (max-width: 34em) {
  .kfa-col-side { width: 27%; }
  .kfa-table th, .kfa-table td { padding: 0.65rem 0.5rem; font-size: 0.875rem; }
  .kfa-table thead th { font-size: 0.72rem; letter-spacing: 0.02em; }
  .kfa-mark { flex-direction: column; gap: 0.15rem; }
  .kfa-note { font-size: 0.78rem; }
}

/* ---------- what both do -------------------------------------------------- */

.kfa-both {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 0.5rem 1rem;
}
.kfa-both li { display: flex; align-items: baseline; gap: 0.5rem; color: var(--sk-text-2); line-height: 1.5; overflow-wrap: anywhere; }
.kfa-both i { color: var(--sk-success-text); font-size: 0.85em; flex: 0 0 auto; }

/* ---------- switching steps ----------------------------------------------- */

.kfa-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.kfa-steps .sk-card-body { display: flex; flex-direction: column; gap: 0.4rem; }
.kfa-steps h3 { margin: 0.35rem 0 0; font-size: 1.05rem; font-weight: 700; color: var(--sk-text); }
.kfa-steps p { margin: 0; color: var(--sk-text-2); line-height: 1.6; }
.kfa-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-weight: 800;
  background: color-mix(in srgb, var(--sk-primary) 16%, transparent);
  color: var(--sk-primary-text);
}

/* ---------- questions ----------------------------------------------------- */

.kfa-faq { display: flex; flex-direction: column; gap: 0.6rem; }
.kfa-faq details { padding: 0; }
.kfa-faq summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--sk-text);
  overflow-wrap: anywhere;
}
.kfa-faq summary:focus-visible { outline: 2px solid var(--sk-primary-text); outline-offset: -2px; border-radius: inherit; }
.kfa-faq details p { margin: 0; padding: 0 1.1rem 1rem; color: var(--sk-text-2); line-height: 1.6; overflow-wrap: anywhere; }

/* A feature name links to the page that shows it. In the table it reads as a
   name first: body text with an accent underline, not a row of accent links. */
.kfa-main .kfa-table tbody th a {
  color: var(--sk-text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--sk-primary-text) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.kfa-main .kfa-table tbody th a:hover,
.kfa-main .kfa-table tbody th a:focus-visible { color: var(--sk-primary-text); text-decoration-color: currentColor; }
