/* ============================================================================
   Comparison pages — /compare and /compare/atlas-funded-vs-<firm>

   Sits on top of atlas-article.css: the chrome, the dark hero and the
   .art-prose rhythm are all reused, and this file only adds what an article
   does not have — the head-to-head scorecard, the win cards, the verdict split,
   the FAQ and the hub grid. Nothing here restyles a .art-* selector.

   NOTE the name. assets/atlas-compare.css is already the home page's
   "How Atlas compares" band (Figma 705:16575) and is unrelated to this.
   ========================================================================= */

.cmp {
  --cmp-win:  #33635F;          /* our column, same teal as a prose link */
  --cmp-them: rgba(13,13,13,.55);
  --cmp-rule: rgba(13,13,13,.08);
  --cmp-row:  rgba(13,13,13,.02);
}


/* ------------------------------------------------------- the verdict strip --
   Replaces a bulleted summary card, which is the single most generic shape on
   the web. This is the home hero's own stat strip (.afx-stat, Figma 705:16020)
   re-inked for the light page: a hairline rule, a small label, a big number in
   the display face. Four figures and one sentence of counterpoint. */
.cmp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0 0 24px;
}
.cmp-stat { display: flex; flex-direction: column; gap: 14px; }
.cmp-stat__rule { height: 1px; background: rgba(13,13,13,.14); }
.cmp-stat__body { display: flex; flex-direction: column; gap: 2px; }
.cmp-stat__label {
  font-family: var(--font-alt);
  font-size: 13px;
  line-height: 19px;
  color: var(--art-ink-70);
}
.cmp-stat__value {
  font-family: var(--font-display);
  font-weight: var(--w-medium);
  font-size: 38px;
  line-height: 46px;
  letter-spacing: -1.14px;
  color: var(--cmp-win);
}
/* the counterpoint. Plain prose on purpose: the moment it becomes a bullet it
   reads as a generated summary again. */
.cmp-stats__note {
  margin: 0 0 var(--art-sect);
  padding-top: 20px;
  border-top: 1px solid rgba(13,13,13,.08);
  font-size: 16px;
  line-height: 24px;
  color: var(--art-ink-70);
}
.cmp-stats__note b { color: var(--art-ink); font-weight: var(--w-semi); }

/* --------------------------------------------------------------- scorecard */
.cmp-table-wrap {
  margin: 0 0 var(--art-sect);
  border-radius: var(--r-24);
  background: var(--af-white);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,31,24,.04), 0 12px 28px rgba(0,31,24,.05);
}
.cmp-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 22px; }
.cmp-table th,
.cmp-table td { padding: 14px 20px; text-align: left; vertical-align: top; }
.cmp-table thead th {
  font-weight: var(--w-semi);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--art-ink-70);
  background: rgba(13,13,13,.03);
  border-bottom: 1px solid var(--cmp-rule);
  white-space: nowrap;
}
.cmp-table tbody tr + tr { border-top: 1px solid var(--cmp-rule); }
.cmp-table tbody tr:nth-child(even) { background: var(--cmp-row); }
.cmp-table td:first-child { font-weight: var(--w-medium); color: var(--art-ink); width: 28%; }
/* our column is tinted down its whole height so the table reads as ours at a
   glance, rather than as a neutral spec sheet */
.cmp-table th:nth-child(2),
.cmp-table td:nth-child(2) { background: rgba(51,99,95,.055); }
.cmp-table thead th:nth-child(2) {
  color: var(--cmp-win);
  background: rgba(51,99,95,.11);
  box-shadow: inset 0 2px 0 var(--af-lime);
}
.cmp-table td:last-child,
.cmp-table th:last-child { width: 1%; white-space: nowrap; }
/* our column carries the emphasis; theirs is stated plainly, not disparaged */
.cmp-table .cmp-us   { color: var(--cmp-win); font-weight: var(--w-semi); }
.cmp-table .cmp-them { color: var(--cmp-them); }
.cmp-table caption {
  caption-side: bottom;
  padding: 14px 20px;
  font-size: 13px;
  line-height: 19px;
  color: var(--art-ink-70);
  text-align: left;
  background: rgba(13,13,13,.02);
  border-top: 1px solid var(--cmp-rule);
}

/* the small win/tie pill in the last column */
.cmp-flag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: var(--w-semi);
  line-height: 17px;
  white-space: nowrap;
}
.cmp-flag--us   { background: var(--af-lime); color: var(--af-ink-teal); }
.cmp-flag--them { background: rgba(13,13,13,.06); color: var(--art-ink-70); }
.cmp-flag--tie  { background: rgba(51,99,95,.10); color: var(--cmp-win); }

/* --------------------------------------------------------------- win cards */
.cmp-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 var(--art-sect);
}
.cmp-card { padding: 24px; border-radius: var(--r-24); background: var(--af-white); }
.cmp-card--them { background: #FBFBFB; }
.cmp-card h3 {
  margin: 0 0 8px;
  font-weight: var(--w-semi);
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.18px;
  color: var(--art-ink);
}
.cmp-card p { margin: 0; font-size: 16px; line-height: 23px; color: var(--art-ink-70); }
.cmp-card__stat {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: var(--w-medium);
  font-size: 32px;
  line-height: 34px;
  letter-spacing: -0.64px;
  color: var(--cmp-win);
}
.cmp-card--them .cmp-card__stat { color: var(--art-ink-70); }

/* ----------------------------------------------------------------- verdict */
.cmp-verdict {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 var(--art-sect);
}
.cmp-verdict__col { padding: 28px; border-radius: var(--r-24); background: var(--af-white); }
.cmp-verdict__col--us { background: #F2F7F5; }
.cmp-verdict__col h3 {
  margin: 0 0 16px;
  font-weight: var(--w-semi);
  font-size: 20px;
  line-height: 26px;
  color: var(--art-ink);
}
.cmp-verdict__col ul { margin: 0 0 20px; padding-left: 22px; }
.cmp-verdict__col li { margin-bottom: 10px; font-size: 16px; line-height: 23px; color: var(--art-ink-70); }
.cmp-verdict__col li:last-child { margin-bottom: 0; }
.cmp-verdict__col .art-btn { width: 100%; }
.cmp-out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 49px;
  box-sizing: border-box;
  border-radius: var(--r-pill);
  background: rgba(13,13,13,.06);
  color: var(--art-ink);
  text-decoration: none;
  font-weight: var(--w-semi);
  font-size: 16px;
  transition: background-color var(--t-fast) var(--e-out),
              transform var(--t-instant) var(--e-out);
}

/* --------------------------------------------------------------- FAQ block */
.cmp-faq { margin: 0 0 var(--art-sect); }
.cmp-faq details { border-bottom: 1px solid var(--cmp-rule); padding: 18px 0; }
.cmp-faq details:first-of-type { border-top: 1px solid var(--cmp-rule); }
.cmp-faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: var(--w-semi);
  font-size: 18px;
  line-height: 25px;
  color: var(--art-ink);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.cmp-faq summary::-webkit-details-marker { display: none; }
.cmp-faq summary::after {
  content: "+";
  flex: none;
  font-weight: var(--w-regular);
  font-size: 24px;
  line-height: 24px;
  color: var(--art-ink-70);
  transition: transform var(--t-base) var(--e-out);
}
.cmp-faq details[open] summary::after { transform: rotate(45deg); }
.cmp-faq details p { margin: 12px 0 0; font-size: 16px; line-height: 24px; color: var(--art-ink-70); }

/* ------------------------------------------------------------ the hub page */
.cmp-hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cmp-hub__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 4px 20px;
  border-radius: var(--r-32);
  background: #F9F9F9;
  text-decoration: none;
  transition: transform var(--t-base) var(--e-out),
              box-shadow var(--t-base) var(--e-out);
}
.cmp-hub__card img { width: 100%; height: 160px; object-fit: cover; border-radius: 28px; display: block; }
.cmp-hub__card h3 {
  margin: 4px 20px 0;
  font-weight: var(--w-bold);
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.4px;
  color: var(--art-ink);
}
.cmp-hub__card p { margin: 0 20px; font-size: 15px; line-height: 21px; color: var(--art-ink-70); }
.cmp-hub__card--soon { opacity: .5; pointer-events: none; }

/* ------------------------------------------------------------------ mobile */
@media (max-width: 760px) {
  .cmp-cards,
  .cmp-verdict,
  .cmp-hub { grid-template-columns: minmax(0, 1fr); }
  /* the scorecard scrolls rather than shrinking to unreadable columns */
  .cmp-table-wrap { overflow-x: auto; }
  .cmp-table { min-width: 580px; font-size: 15px; }
  .cmp-table th,
  .cmp-table td { padding: 12px 14px; }
  .cmp-table th:first-child,
  .cmp-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--af-white);
    box-shadow: 1px 0 0 var(--cmp-rule);
  }
  .cmp-table tbody tr:nth-child(even) td:first-child { background: #FAFAFA; }
  .cmp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .cmp-stat__value { font-size: 30px; line-height: 36px; letter-spacing: -0.9px; }
  .cmp-card__stat { font-size: 28px; line-height: 30px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .cmp-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (hover: hover) and (pointer: fine) {
  .cmp-hub__card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px rgba(0,31,24,.10); }
  .cmp-out:hover { background: rgba(13,13,13,.10); }
  .cmp-faq summary:hover { color: var(--cmp-win); }
}
.cmp-out:active,
.cmp-hub__card:active { transform: translateY(1px) scale(.995); }

/* the comparison cover reused as a blog index card (blog.html) */
.afxbg-card--vs-ftmo .afxbg-card__media {
  background-image: url('/assets/figma/vs-ftmo.webp');
  background-size: cover;
  background-position: center;
}
.afxbg-card--vs-fundingpips .afxbg-card__media {
  background-image: url('/assets/figma/vs-fundingpips.webp');
  background-size: cover;
  background-position: center;
}
