/* Comparison pages. Deliberately plain: these pages have to read as reference
 * material a sceptical buyer trusts, not as a sales page with a table in it.
 * Everything here uses the site tokens from assets/site.css. */

.cmp-crumb { max-width: var(--maxw); margin: 1.1rem auto 0; padding: 0 clamp(1rem, 4vw, 2rem); font-size: .9rem; }
.cmp-crumb a { color: var(--ink-soft); }

.cmp-hero .lead { max-width: 62ch; }
.cmp-hero .verdict {
  margin: 1.4rem 0 0; padding: 1.1rem 1.25rem;
  background: var(--steady-tint); border: 1px solid var(--steady-line);
  border-left: 4px solid var(--steady); border-radius: 12px; max-width: 68ch;
}
.cmp-hero .verdict p { margin: 0; }
.cmp-hero .verdict p + p { margin-top: .6rem; }

/* Wide tables must scroll inside their own box; the page body never does. */
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2rem 0; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; }
table.cmp caption { text-align: left; color: var(--ink-soft); font-size: .86rem; padding-bottom: .6rem; }
table.cmp th, table.cmp td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
table.cmp thead th { font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--line); }
table.cmp tbody th { font-weight: 600; width: 12rem; }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp .is-us { background: var(--steady-tint); }

/* "Where they are the better buy" — the block that makes the rest credible. */
.cmp-fair { margin: 1.4rem 0 0; padding: 1.15rem 1.3rem; border: 1px dashed var(--line);
  border-radius: 14px; background: var(--panel); max-width: 68ch; }
.cmp-fair h3 { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.12rem; }
.cmp-fair ul { margin: 0; padding-left: 1.1rem; }
.cmp-fair li + li { margin-top: .4rem; }

.cmp-note { font-size: .86rem; color: var(--ink-soft); max-width: 68ch; }

/* Hub grid */
.cmp-grid { list-style: none; margin: 0; padding: 0; display: grid;
  gap: clamp(.9rem, 2vw, 1.3rem); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.cmp-grid a { display: flex; flex-direction: column; gap: .45rem; height: 100%;
  padding: 1.15rem 1.25rem 1.3rem; text-decoration: none; color: inherit;
  background: var(--paper, #fff); border: 1px solid var(--line);
  border-radius: 16px; border-top: 4px solid var(--steady);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.cmp-grid a:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,17,14,.10); }
.cmp-grid h3 { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; }
.cmp-grid p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .cmp-grid a { transition: none; } }

/* On a phone the table is wider than its box, so the Meet Me Gently column sits
 * off-screen with nothing to suggest it exists. Say so, but only where it is
 * actually true. */
.cmp-hint { display: none; }
@media (max-width: 760px) {
  .cmp-hint { display: block; margin: 0 0 .45rem; font-size: .82rem; color: var(--ink-soft); }
}
