/* Comparison-page-only styles (/best-real-life-pokedex-apps). Loaded after
   styles.css + pillar.css; reuses the rp- kit (sections, headings, FAQ, CTA)
   and adds the pieces that page doesn't have: the verdict grid, the big
   comparison table, review blocks, and the methodology note. cp- prefix. */

/* --- Hero: the brand scene, copy only — no showpiece, because the table is
   the showpiece. The backdrop, scrim, type and first-screen sizing all come
   from pillar.css's .rp-hero (the section carries both classes); this file
   only anchors the scroll cue that stands in for the pillar hero's chip band
   as the first screen's hand-off. */
.cp-hero { position: relative; }

/* Disclosure chip: the "we make one of these" line, styled as a stamp so it
   reads as a feature of the page, not small print. */
.cp-disclosure {
  display: inline-block;
  font-size: 18px;
  color: var(--text);
  background: var(--panel-2);
  border: 2px solid var(--border);
  box-shadow: 2px 2px 0 var(--border);
  padding: 6px 12px 8px;
  margin-top: 6px;
}
.cp-disclosure strong { color: var(--gold); }

/* --- Verdict grid: "the short answer" cards. ----------------------------- */
.cp-verdicts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.cp-verdict {
  background: var(--panel);
  border: 3px solid var(--border);
  border-radius: 6px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  padding: 16px 18px 18px;
}
/* Five verdicts, five columns — once one row fits. Left to auto-fit, big
   screens would get four columns and strand the fifth card alone below. */
@media (min-width: 1020px) {
  .cp-verdicts { grid-template-columns: repeat(5, 1fr); }
}
.cp-verdict b {
  display: block;
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: 11px;
  line-height: 1.7;
  color: var(--gold);
  margin-bottom: 8px;
}
.cp-verdict a { font-size: 21px; }
.cp-verdict p { font-size: 18px; margin: 4px 0 0; }

/* --- The comparison table. ------------------------------------------------ */
/* Wide content scrolls inside its own box; the page never scrolls sideways. */
.cp-tablewrap {
  margin-top: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  background: var(--panel);
}
.cp-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 18px;
}
.cp-table th, .cp-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.55);
  color: var(--text-dim);
}
.cp-table thead th {
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: 10px;
  line-height: 1.6;
  color: var(--text);
  background: var(--panel-2);
  border-bottom: 3px solid var(--border);
  white-space: nowrap;
}
.cp-table td:first-child { color: var(--text); white-space: nowrap; }
.cp-table .cp-group th {
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: 10px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}
.cp-table .cp-us td { background: rgba(59, 130, 246, 0.10); }
.cp-table .cp-us td:first-child { color: var(--gold); }
.cp-tablefoot {
  font-size: 17px;
  color: var(--text-dim);
  margin: 12px 2px 0;
  max-width: 90ch;
}

/* --- Review blocks. ------------------------------------------------------- */
.cp-review {
  background: var(--panel);
  border: 3px solid var(--border);
  border-radius: 6px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  padding: 22px 24px;
  margin-top: 26px;
  /* Reading width, same as .cp-rest/.cp-method/.rp-faq below — at the full
     1100px wrapper the card is a third dead space on desktop. */
  max-width: 820px;
}
.cp-review h3 {
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 4px;
}
.cp-meta {
  font-size: 17px;
  color: var(--text-dim);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--panel-2);
}
.cp-review p { font-size: 19px; margin: 0 0 12px; max-width: 78ch; }
.cp-review p:last-child { margin-bottom: 0; }
.cp-good, .cp-catch {
  display: block;
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  margin: 14px 0 6px;
}
.cp-good { color: #4ade80; }
.cp-catch { color: #f87171; } /* --accent (#ef4444) misses AA at this size */
.cp-review .rp-verdict {
  border-top: 2px solid var(--panel-2);
  padding-top: 12px;
  margin-top: 16px;
  color: var(--gold);
}

/* Pull quote (the one real user quote the page carries). */
.cp-quote {
  margin: 26px 0 0;
  padding: 18px 22px;
  background: var(--panel-2);
  border: 3px solid var(--border);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  max-width: 720px;
}
.cp-quote p { font-size: 21px; color: var(--text); margin: 0 0 8px; }
.cp-quote cite { font-size: 17px; color: var(--text-dim); font-style: normal; }

/* --- "The rest of the field" one-liners. ---------------------------------- */
.cp-rest { list-style: none; margin: 24px 0 0; padding: 0; max-width: 820px; }
.cp-rest li {
  font-size: 19px;
  padding: 10px 0;
  border-bottom: 2px solid var(--panel-2);
}
.cp-rest li:last-child { border-bottom: 0; }
.cp-rest b { color: var(--text); }

/* --- Methodology note. ---------------------------------------------------- */
.cp-method {
  margin-top: 30px;
  padding: 16px 20px;
  border: 2px dashed var(--panel-2);
  font-size: 18px;
  color: var(--text-dim);
  max-width: 820px;
}
.cp-method a { white-space: nowrap; }

@media (max-width: 719px) {
  /* The mobile hero is compact (no first-screen sizing), so the cue has no
     bottom edge to sit on. styles.css hides it <600px; this covers 600–719. */
  .cp-hero .scroll-cue { display: none; }
  /* This hero is much shorter than the pillar's, so cover-scaling crops the
     scene to its bright middle instead of the dark treeline the pillar's copy
     sits on. Run the same scrim a touch darker to match that contrast. */
  .cp-hero {
    background-image:
      linear-gradient(180deg,
        rgba(17, 24, 39, 0.92) 0%,
        rgba(17, 24, 39, 0.82) 55%,
        rgba(17, 24, 39, 0.66) 100%),
      url("images/hero-bg-mobile.webp");
  }
  .cp-review { padding: 18px 16px; }
}
