/* /compare-fitness-apps.html — the app comparison board (marketing-front-end.md §20).
   A ruled scoreboard: one row per feature, one column per app, Harvey balls for
   coverage. Club 1000+ is the lit lane; a brand's second app is its own column
   under one bracket. Tokens come from marketing.css. */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.cmp-legend {
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  margin: 0 0 22px; padding: 0; list-style: none;
  color: var(--chalk-2); font-size: 0.9rem;
}
.cmp-legend li { display: inline-flex; align-items: center; gap: 8px; }
.cmp-legend .cmp-needs { margin: 0; }

.cmp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: var(--r-panel);
  background: var(--platform);
}

.cmp-board {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.cmp-board th,
.cmp-board td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
  vertical-align: middle;
}

/* Feature column stays in view while the board scrolls sideways on a phone. */
.cmp-feat {
  position: sticky; left: 0; z-index: 1;
  background: var(--platform);
  text-align: left !important;
  width: 26%; min-width: 200px;
  font-weight: 500; color: var(--chalk); font-size: 0.95rem;
}
th.cmp-feat span {
  display: block; margin-top: 2px;
  font-weight: 400; font-size: 0.8rem; line-height: 1.4; color: var(--chalk-3);
}

.cmp-family td, .cmp-family th { border-bottom: 0; padding: 14px 8px 0; }
.cmp-family-head {
  font-family: var(--body); font-weight: 500; font-size: 0.78rem; color: var(--chalk-2);
  text-align: center;
  border-top: 2px solid var(--chalk-3) !important;
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  padding-top: 8px !important;
}

thead th { vertical-align: bottom; }
thead th.cmp-feat {
  font-family: var(--display); font-stretch: 112%; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chalk-3);
}
.cmp-app {
  font-family: var(--display); font-stretch: 112%; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--chalk); line-height: 1.25;
}
.cmp-app span {
  display: block; margin-top: 4px;
  font-family: var(--body); font-stretch: 100%; font-weight: 400;
  font-size: 0.74rem; letter-spacing: 0; text-transform: none; color: var(--chalk-3);
}
.cmp-in-family { background: rgba(255, 255, 255, 0.025); }
.cmp-app.cmp-in-family + .cmp-app.cmp-in-family,
.cmp-score.cmp-in-family + .cmp-score.cmp-in-family { box-shadow: inset 1px 0 0 var(--rule); }

/* The lit lane: Club 1000+. */
.cmp-ours { background: var(--brand-wash); box-shadow: inset 1px 0 0 var(--brand-edge), inset -1px 0 0 var(--brand-edge); }
.cmp-app.cmp-ours { color: var(--coral); }

.cmp-group th {
  position: sticky; left: 0;
  text-align: left !important;
  padding: 26px 8px 8px !important;
  font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 0.95rem;
  color: var(--chalk);
  background: var(--platform);
}
.cmp-trails .cmp-group th { color: var(--coral); }
.cmp-board tbody:last-child tr:last-child > * { border-bottom: 0; }

.cmp-cell {
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: 44px; min-height: 44px; justify-content: center;
  padding: 4px; margin: -4px;
  background: none; border: 0; border-radius: var(--r-control);
  color: inherit; font: inherit; cursor: help;
}
.cmp-cell:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
.cmp-ball { display: block; }
.cmp-ring { fill: var(--platform); stroke: var(--chalk-2); stroke-width: 1.6; }
.cmp-wedge { fill: var(--chalk); }
.cmp-ours .cmp-ring { stroke: var(--coral); }
.cmp-ours .cmp-wedge { fill: var(--coral); }

/* "Needs MacroFactor Workouts": the feature is in that brand's other app. */
.cmp-needs {
  display: inline-block; max-width: 11ch;
  font-size: 0.68rem; line-height: 1.25; font-weight: 500; color: var(--chalk);
  border: 1px dashed var(--chalk-3); border-radius: var(--r-panel);
  padding: 2px 5px;
}

.cmp-note { margin-top: 14px; }

.cmp-tip {
  position: fixed; z-index: 60; max-width: 280px;
  background: var(--chalk); color: #0E1013;
  font-size: 0.86rem; line-height: 1.45;
  padding: 10px 12px; border-radius: var(--r-panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.cmp-tip strong { display: block; font-weight: 700; margin-bottom: 2px; }

.cmp-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; }
.cmp-points h3 { margin: 0 0 8px; }
.cmp-points p { margin: 0; }

@media (max-width: 640px) {
  .cmp-feat { min-width: 160px; }
  th.cmp-feat span { display: none; }
}
