/* The comparison pages (site/compare.html and site/compare/<slug>.html, written by scripts/whats-new-site.mjs from
   content/site/compare/; docs/website-2.md §5.2 and §15 "UI and motion: the comparison table"). The hero, the
   breadcrumb, the boxes and the questions are module.css's (.mo-hero, .mo-crumbs, .mo-box, .mo-qs); the containers,
   buttons, .mono and the closing band are styles.css's. This file is the pages' own: the hub's cards, the two boxes
   side by side, the table (PraisePad's columns in the amber wash, two of them on a musician page: Solo beside the
   church plan; Yes, Partly, Not yet and No as words with a 14 px mark before them, Not listed with a dotted ring where
   the other product's pages say nothing, never colour alone; under 700 px it scrolls inside its own box with the first
   column sticky and a 1 px shadow once scrolled), the list of the rest of the church under a musician's or booth's
   table, the price boxes under "What it costs" with the picker by team or by seats, and Show only differences.
   Motion: a row fades in over 120 ms; the price counts in site/compare.js over 240 ms; none under reduced motion.
   Light only, like the rest of the site. */

/* The hub: a card per product, three across, the ones coming dashed. */
.cp-hub {
  padding-bottom: var(--section);
}
.cp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cp-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.16s ease;
}
a.cp-card:hover {
  border-color: var(--accent);
}
.cp-card b {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cp-card span {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.cp-card .cp-go {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 600;
  color: var(--accent-text);
}
.cp-soon {
  border-style: dashed;
  background: transparent;
}
.cp-ccli {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Who the page is for, one line under the H1 (the question). */
.cp-for {
  margin: -6px 0 14px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--muted);
}

/* "Start free · bring your Planning Center over" is long for a phone: it wraps instead of poking past the edge. */
.cp-start {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Two boxes side by side: where each is stronger; switching beside you decide. */
.cp-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.cp-two .mo-box h2 {
  font-size: clamp(20px, 2vw, 24px);
}
.cp-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  font-size: 16px;
  line-height: 1.55;
}
.cp-points li::marker {
  color: var(--accent);
}
.cp-points .cp-src {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.cp-points .cp-src a,
.cp-src-line a,
.cp-hid button {
  font-weight: 600;
  color: var(--accent-text);
}
.cp-not-yet {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.cp-decide {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
}
.cp-decide:last-child {
  margin-bottom: 0;
}

/* The table and its tools. */
.cp-table-section {
  padding: clamp(28px, 4vw, 48px) 0 8px;
}
.cp-table-section h2,
.cp-faq h2,
.cp-quotes h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cp-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 12px;
  font-size: 15px;
}
.cp-picker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cp-lbl {
  font-weight: 600;
}
.cp-picker button {
  min-width: 44px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cp-picker button + button {
  margin-left: -4px;
}
.cp-picker button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.cp-diff {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-left: 0;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.cp-box-check {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
}
.cp-diff[aria-pressed="true"] .cp-box-check {
  border-color: var(--ink);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5l2.6 2.5L11 4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.cp-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.cp-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.cp-table th,
.cp-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.cp-table thead th {
  border-top: 0;
  background: #f8f8f5;
  font-family: "Geist Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cp-table thead th.cp-us {
  background: #fbebd0;
  color: var(--accent-text);
}
.cp-table tbody th {
  width: 30%;
  font-weight: 600;
}
.cp-table tbody th,
.cp-table tbody td {
  background: var(--surface);
}
.cp-us-cell {
  background: #fffaf2;
}
.cp-table tbody td.cp-us-cell {
  background: #fffaf2;
}
/* "See a mistake? Tell us": once under each table and once under the price, in the source line. */
.cp-tell {
  white-space: nowrap;
}
/* On a phone the other product's column starts off screen: say so, once, above the table. */
.cp-swipe {
  display: none;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.cp-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.cp-i {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cp-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.cp-yes .cp-mark {
  color: var(--ok);
}
.cp-partly .cp-mark {
  color: var(--accent-text);
}
.cp-not-yet .cp-mark,
.cp-no .cp-mark,
.cp-not-listed .cp-mark {
  color: var(--muted);
}
.cp-phrase {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
a.cp-phrase {
  color: var(--accent-text);
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
a.cp-phrase:hover {
  text-decoration-style: solid;
}
.cp-price-row th,
.cp-price-row td {
  border-top: 2px solid var(--line-strong);
}
.cp-fig {
  display: inline-block;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cp-sub {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
a.cp-sub {
  color: var(--accent-text);
  font-weight: 600;
}
.cp-hid {
  min-height: 24px;
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.cp-hid button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.cp-src-line {
  margin: 8px 0 0;
  max-width: 80ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* A row shown again fades in (site/compare.js adds .cp-in when Show only differences is turned off). */
@keyframes cp-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.cp-table tr.cp-in {
  animation: cp-in 120ms ease;
}

/* The rest of the church (a musician's or booth's page): plain lines, each to its help article, two columns on a desktop. */
.cp-rest-section {
  padding: clamp(20px, 3vw, 32px) 0 0;
}
.cp-rest-section h2,
.cp-cost h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cp-rest {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.cp-rest p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.55;
}
.cp-rest-list {
  columns: 2;
  column-gap: 28px;
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  font-size: 16px;
  line-height: 1.55;
}
.cp-rest-list li {
  break-inside: avoid;
  margin-bottom: 6px;
}
.cp-rest-list li::marker {
  color: var(--accent);
}
.cp-rest-list a {
  color: var(--ink);
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
.cp-rest-list a:hover {
  color: var(--accent-text);
  text-decoration-style: solid;
}

/* What it costs: the picker by team or by seats, then two boxes (PraisePad's in the amber wash); a musician page's
   "Just you" pair above its "Your team" pair. */
.cp-cost {
  padding: clamp(28px, 4vw, 48px) 0 8px;
}
.cp-cost-h3 {
  margin: 18px 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cp-cost-h3:first-of-type {
  margin-top: 0;
}
.cp-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cp-box {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.cp-box-us {
  border-color: transparent;
  background: #fbebd0;
}
.cp-lab {
  margin: 0 0 6px;
  font-family: "Geist Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cp-box-us .cp-lab {
  color: var(--accent-text);
}
.cp-amount {
  margin: 0;
  line-height: 1.3;
}
.cp-amount .cp-fig {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
}
.cp-amount .cp-sub {
  margin-top: 2px;
  font-size: 15px;
}
.cp-box-note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* What churches say (only with real quotes) and the questions. */
.cp-quotes {
  padding: clamp(28px, 4vw, 48px) 0 0;
}
.cp-quote-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cp-quote-list blockquote {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
}
.cp-quote-list footer {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.cp-faq {
  padding: clamp(28px, 4vw, 48px) 0 0;
}
.cp-faq .mo-ask {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .cp-cards,
  .cp-two,
  .cp-quote-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cp-two {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* A phone: the table scrolls inside its box, the first column stays, with a 1 px shadow once scrolled. */
@media (max-width: 700px) {
  .cp-swipe {
    display: block;
  }
  .cp-table {
    min-width: 640px;
  }
  .cp-table.cp-cols-3 {
    min-width: 820px;
  }
  .cp-table tbody th {
    width: 160px;
    min-width: 160px;
  }
  .cp-table th:first-child,
  .cp-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
  }
  .cp-scroll.is-scrolled th:first-child {
    box-shadow: 1px 0 0 var(--line-strong), 6px 0 10px -6px rgba(18, 20, 24, 0.18);
  }
  .cp-diff {
    margin-left: 0;
  }
}
@media (max-width: 600px) {
  .cp-cards,
  .cp-quote-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .cp-boxes {
    grid-template-columns: minmax(0, 1fr);
  }
  .cp-rest-list {
    columns: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cp-card,
  .cp-table tr.cp-in {
    transition: none;
    animation: none;
  }
}
