/* Compare: the same paper, ink and Funnel faces as the homepage. One matrix per category with Moltd's column raised,
   a head-to-head view on phones, a card per company, and numbered sources under everything. */
.cmp-hero { padding: 72px 0 0; }
.cmp-hero h1 { max-width: 16ch; }
.cmp-hero .lede { max-width: 60ch; }

/* the three categories, each shown by the logos in it */
.cmp-groups { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cmp-g { position: relative; display: grid; gap: 16px; align-content: start; padding: 18px 18px 16px; border: 0; border-radius: 16px; background: var(--panel); text-align: left; cursor: pointer; font: inherit; color: var(--ink); transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.2s var(--ease); }
.cmp-g:hover { background: #ecebe6; }
.cmp-g.on { background: #fff; box-shadow: var(--lift); }
.cmp-g:active { transform: scale(0.99); }
.cmp-g .stack { display: flex; padding-left: 6px; }
.cmp-g .stack span { width: 32px; height: 32px; margin-left: -6px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 2px var(--panel), var(--card-sh); display: grid; place-items: center; overflow: hidden; }
.cmp-g.on .stack span { box-shadow: 0 0 0 2px #fff, var(--card-sh); }
.cmp-g .stack img { width: 20px; height: 20px; object-fit: contain; }
.cmp-g .stack span.dk { background: #111; }
.cmp-g b { display: block; font: 400 21px/1.15 var(--display); letter-spacing: -0.02em; }
.cmp-g small { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); }

/* the panel for the chosen category */
.cmp-body { padding-top: 14px; }
.cmp-panel { background: var(--panel); border-radius: 20px; padding: 30px 28px 28px; }
.cmp-intro { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: end; }
.cmp-intro .eyebrow { margin-bottom: 12px; }
.vs-title { font-size: clamp(28px, 3vw, 40px); }
.vs-title span { display: inline-block; }
.vs-title span.swap { animation: blur-in 0.4s var(--ease) both; }
.cmp-key { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.cmp-key span { display: inline-flex; align-items: center; gap: 6px; }

/* the matrix: Moltd's column is a raised white card */
.mtx-wrap { margin-top: 26px; }
.mtx { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.mtx th, .mtx td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; font-size: 13.5px; }
.mtx thead th { border-bottom: 0; padding-top: 18px; vertical-align: bottom; font-weight: 500; }
.mtx th:first-child, .mtx td:first-child { width: 27%; padding-left: 4px; text-align: left; }
.mtx tbody tr:last-child td { border-bottom: 0; }
.mtx .m { position: relative; background: #fff; border-bottom-color: rgba(18, 18, 18, 0.06); box-shadow: inset 1px 0 0 rgba(18, 18, 18, 0.06), inset -1px 0 0 rgba(18, 18, 18, 0.06); }
.mtx thead .m { border-radius: 16px 16px 0 0; box-shadow: inset 1px 0 0 rgba(18, 18, 18, 0.06), inset -1px 0 0 rgba(18, 18, 18, 0.06), inset 0 1px 0 rgba(18, 18, 18, 0.06); }
.mtx tbody tr:last-child .m { border-radius: 0 0 16px 16px; box-shadow: inset 1px 0 0 rgba(18, 18, 18, 0.06), inset -1px 0 0 rgba(18, 18, 18, 0.06), inset 0 -1px 0 rgba(18, 18, 18, 0.06), 0 24px 40px -28px rgba(18, 18, 18, 0.35); }
.mtx .co-h { display: grid; justify-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; font: 500 13px/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.mtx th:first-child + .m .co-h { cursor: default; }
/* hovering a company's column lights it; picking it keeps it lit and makes it the "Moltd vs" company */
.mtx td[data-col] { cursor: pointer; transition: background 0.25s var(--ease); }
.mtx th[data-col], .mtx td[data-col] { transition: background 0.25s var(--ease); }
.mtx .hov { background: rgba(255, 255, 255, 0.4); }
.mtx .sel { background: rgba(255, 255, 255, 0.7); }
.mtx thead .sel { border-radius: 14px 14px 0 0; }
.mtx tbody tr:last-child .sel { border-radius: 0 0 14px 14px; }
.mtx thead .sel .cl { box-shadow: 0 0 0 2px var(--accent), var(--card-sh); }
.cl { width: 36px; height: 36px; border-radius: 11px; background: #fff; box-shadow: var(--card-sh); display: grid; place-items: center; overflow: hidden; flex: none; }
.cl img { width: 22px; height: 22px; object-fit: contain; }
.cl.dk { background: #111; }
.cl.full img { width: 100%; height: 100%; object-fit: cover; }
.mtx .m .cl { box-shadow: none; background: transparent; }
.mtx .m .cl img { width: 36px; height: 36px; border-radius: 10px; }
.mtx td:first-child { font-weight: 500; font-size: 14px; }
.mtx tbody tr { animation: blur-in 0.45s var(--ease) both; animation-delay: calc(var(--r, 0) * 32ms); }

/* a cell: yes, partly, no, or a short value; the small number links to its source */
.cell { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.mk { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mk.y { background: var(--ink); color: #fff; }
.mtx .m .mk.y, .h2h .m .mk.y { background: var(--accent); }
.mk.p { background: conic-gradient(var(--ink-3) 0 50%, transparent 50% 100%); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.mk.n { width: 12px; height: 2px; border-radius: 2px; background: rgba(18, 18, 18, 0.22); }
.mk.q { box-shadow: inset 0 0 0 1.5px rgba(18, 18, 18, 0.18); }
.mk.s { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.mk svg { width: 12px; height: 12px; }
.cell em { font-style: normal; font-size: 11.5px; line-height: 1.3; color: var(--ink-3); max-width: 16ch; }
.cell .tv { font: 400 12px/1.3 var(--px); color: var(--ink); }

/* phones: pick one company, see it next to Moltd */
.h2h { display: none; }
.h2h-pick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 20px -18px 0; padding: 0 18px 4px; }
.h2h-pick::-webkit-scrollbar { display: none; }
.h2h-pick button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border: 0; border-radius: 12px; background: transparent; font: 500 13.5px var(--sans); color: var(--ink-2); cursor: pointer; }
.h2h-pick button .cl { width: 28px; height: 28px; border-radius: 8px; }
.h2h-pick button .cl img { width: 17px; height: 17px; }
.h2h-pick button.on { background: #fff; color: var(--ink); box-shadow: var(--card-sh); }
.h2h-t { margin-top: 12px; width: 100%; border-collapse: separate; border-spacing: 0; }
.h2h-t th, .h2h-t td { padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 13.5px; text-align: center; vertical-align: middle; }
.h2h-t th { border-bottom: 0; font-weight: 500; font-size: 12.5px; }
.h2h-t th:first-child, .h2h-t td:first-child { text-align: left; padding-left: 2px; }
.h2h-t td:first-child { font-weight: 500; }
.h2h-t .m { width: 26%; background: #fff; box-shadow: inset 1px 0 0 rgba(18, 18, 18, 0.06), inset -1px 0 0 rgba(18, 18, 18, 0.06); }
.h2h-t .r { width: 26%; }
.h2h-t thead .m { border-radius: 14px 14px 0 0; }
.h2h-t tbody tr:last-child .m { border-radius: 0 0 14px 14px; }
.h2h-t tbody tr:last-child td { border-bottom: 0; }
.h2h-t tbody tr { animation: blur-in 0.4s var(--ease) both; animation-delay: calc(var(--r, 0) * 28ms); }

@media (max-width: 1000px) {
  .cmp-intro { grid-template-columns: 1fr; }
  .cmp-key { grid-column: 1; grid-row: auto; margin-top: 10px; }
}

.nav a[aria-current="page"] { color: var(--ink); }

/* the picked company: why teams pick Moltd, and the two prices side by side */
.vs-card { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; margin-top: 26px; padding: 26px; border-radius: 18px; background: #fff; box-shadow: var(--card-sh); animation: blur-in 0.45s var(--ease) both; }
.vs-pair { display: flex; align-items: center; gap: 10px; }
.vs-pair small { margin-left: 4px; font-size: 13px; color: var(--ink-3); }
.vs-x { font: 400 11px var(--px); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.vs-card h3 { margin: 18px 0 0; font: 400 24px/1.15 var(--display); letter-spacing: -0.02em; }
.vs-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.vs-card li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.vs-card li::before { content: ''; width: 6px; height: 6px; flex: none; background: var(--accent); transform: translateY(-2px); }
.vs-r { display: grid; gap: 10px; align-content: start; }
.vs-price { padding: 14px 16px; border-radius: 12px; background: var(--panel); }
.vs-price small { display: block; font: 400 10.5px var(--px); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.vs-price b { display: block; margin-top: 6px; font: 400 20px/1.2 var(--display); letter-spacing: -0.02em; }
.vs-price.m { background: var(--ink); color: #fff; }
.vs-price.m small { color: rgba(255, 255, 255, 0.55); }
.vs-r .btn { justify-self: start; margin-top: 4px; }
