/*
 * Comparison pages: the hub at /compare/ and each /compare/<tool>-alternatives/ page
 * (src/_includes/compare-page.html). Load after site.css and playbooks.css, on <main class="pg pg-ent cmp">:
 * the playbooks' enterprise style (navy ink, hairlines, line art). Colour: Nova blue only on
 * the checkmarks in the feature tables; no teal, which in Nova means a completed session.
 */
.cmp { --blue: #586ff6; --blue-tint: #eef1fe; }
.cmp [id] { scroll-margin-top: 90px; }
.cmp h2 { margin: 0 0 14px; color: var(--ink); font-size: clamp(26px, 3.4vw, 36px); font-weight: 850; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }
.cmp h3 { margin: 0 0 8px; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.cmp-section { padding: 56px 0; border-top: 1px solid var(--line); }
.cmp-section.flush { border-top: 0; padding-top: 16px; }
.cmp-intro { max-width: 720px; margin: 0 0 28px; color: var(--muted); font-size: 18px; }
.cmp-updated { margin: 18px 0 0; color: var(--faint); font-size: 13.5px; }
.cmp-kicker { display: block; margin: 0 0 8px; color: var(--faint); font-size: 12px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }

/* Short answer: the summary search engines and AI assistants quote. */
.cmp-answer {
  max-width: 820px; margin: 36px auto 0; padding: 22px 26px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-left: 2px solid var(--ink); border-radius: 0 12px 12px 0;
}
.cmp-answer-k { margin: 0 0 8px; color: var(--faint); font-size: 12px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.cmp-answer p { margin: 0 0 10px; color: var(--body); font-size: 16.5px; }
.cmp-answer p:last-child { margin-bottom: 0; }
.cmp-answer b { color: var(--ink); }

/* At a glance: one column per tool, hairline grid. */
.cmp-snap { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .cmp-snap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cmp-snap-card { padding: 28px 28px 30px 0; box-shadow: inset 0 -1px 0 var(--line); }
@media (min-width: 860px) {
  .cmp-snap-card { padding: 30px 28px; box-shadow: inset -1px 0 0 var(--line); }
  .cmp-snap-card:first-child { padding-left: 0; }
  .cmp-snap-card:last-child { box-shadow: none; }
}
.cmp-snap-card h3 { margin: 0 0 16px; font-size: 22px; }
.cmp-snap-card.nova h3 { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 600; font-size: 25px; }
.cmp-snap-card dl { margin: 0; display: grid; gap: 12px; font-size: 15px; }
.cmp-snap-card dt { color: var(--faint); font-size: 12px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.cmp-snap-card dd { margin: 2px 0 0; color: var(--body); line-height: 1.5; }

/* What each tool is built for. */
.cmp-tool { display: grid; gap: 20px 48px; grid-template-columns: minmax(0, 1fr); padding: 30px 0; border-top: 1px solid var(--line); }
.cmp-tool:first-of-type { border-top: 0; padding-top: 4px; }
@media (min-width: 900px) { .cmp-tool { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.cmp-tool p { margin: 0; }
.cmp-tool h3 { font-size: 21px; }
.cmp-why { margin: 0; padding: 2px 0 2px 22px; border-left: 1px solid var(--line); }
.cmp-why h4 { margin: 0 0 10px; color: var(--faint); font-size: 12px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.cmp-why ul { margin: 0; padding-left: 18px; color: var(--body); font-size: 15.5px; }
.cmp-why li { margin-bottom: 6px; }
.cmp-why li:last-child { margin-bottom: 0; }

/* Which one fits you? Hairline columns; Nova's in navy. */
.cmp-fit { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .cmp-fit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cmp-fit.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cmp-fit > div { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cmp-fit > div p { margin: 0; color: var(--muted); font-size: 15.5px; }
.cmp-fit > .nova { background: var(--ink); border-color: var(--ink); color: #c5cedb; }
.cmp-fit > .nova h3 { color: #fff; }
.cmp-fit ul { margin: 0; padding: 0; list-style: none; font-size: 15.5px; }
.cmp-fit li { position: relative; margin-bottom: 10px; padding-left: 26px; line-height: 1.5; }
.cmp-fit li:last-child { margin-bottom: 0; }
.cmp-fit li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink); }
.cmp-fit li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 4px; height: 7px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.cmp-fit > .nova li::before { border-color: rgba(255, 255, 255, 0.7); }
.cmp-fit > .nova li::after { border-color: #fff; }
.cmp-both { max-width: 820px; margin: 24px 0 0; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-left: 2px solid var(--ink); border-radius: 0 12px 12px 0; }
.cmp-both p { margin: 0; }
.cmp-both b { color: var(--ink); }

/* Feature table. On narrow screens the feature name takes its own line above the values. */
.cmp-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px 8px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp-table thead th { position: sticky; top: 64px; z-index: 2; padding: 14px 10px 12px; background: #fff; border-bottom: 1.5px solid var(--ink); color: var(--muted); font-size: 12.5px; font-weight: 750; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; }
.cmp-table thead th:first-child { padding-left: 0; }
.cmp-table thead th.nova { color: var(--ink); }
.cmp-table tbody th, .cmp-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table tbody th { padding-left: 0; color: var(--ink); font-weight: 550; }
.cmp-table td.nova { background: #f7f9fc; }
.cmp-table tr.cmp-group th { padding-top: 28px; color: var(--faint); font-size: 12px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.cmp-v { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.cmp-v::before { content: ""; flex: none; box-sizing: border-box; width: 18px; height: 18px; border-radius: 50%; }
.cmp-v.y::before { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.7 2.7 5.3-5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.cmp-v.p::before { border: 1.5px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.cmp-v.n::before { border: 1.5px solid #cbd5e1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cmp-v.n, .cmp-v.x { color: var(--muted); font-weight: 600; }
.cmp-v.x::before { width: 14px; height: 1.5px; border-radius: 1px; background: #cbd5e1; margin: 0 2px; }
.cmp-v.t::before { display: none; }
.cmp-v.t { white-space: normal; }
.cmp-note { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 450; line-height: 1.4; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13.5px; }
@media (max-width: 700px) {
  .cmp-table-wrap { padding: 4px 14px 8px; }
  .cmp-table, .cmp-table tbody { display: block; }
  .cmp-table thead { display: none; }
  .cmp-table tbody tr { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 4px 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cmp-table tbody th, .cmp-table td { display: block; padding: 0; border: 0; }
  .cmp-table tbody th { grid-column: 1 / -1; margin-bottom: 4px; }
  .cmp-table td { padding: 6px 8px; border-radius: 8px; background: #f8fafc; }
  .cmp-table td::before { content: attr(data-col); display: block; margin-bottom: 3px; color: var(--faint); font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
  .cmp-table td.nova { background: #eef2f8; }
  .cmp-table tr.cmp-group { display: block; padding: 22px 0 6px; }
  .cmp-v { font-size: 13.5px; }
}

/* FAQ */
.cmp-faq { max-width: 820px; border-top: 1px solid var(--line); }
.cmp-faq details { border-bottom: 1px solid var(--line); }
.cmp-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; color: var(--ink); font-size: 17.5px; font-weight: 700; cursor: pointer; list-style: none; }
.cmp-faq summary::-webkit-details-marker { display: none; }
.cmp-faq summary::after { content: "+"; flex: none; color: var(--ink); font-size: 24px; font-weight: 400; line-height: 1; transition: transform 0.2s; }
.cmp-faq details[open] summary::after { transform: rotate(45deg); }
.cmp-faq .cmp-faq-a { padding: 0 32px 20px 0; }
.cmp-faq .cmp-faq-a p { margin: 0 0 10px; }

/* Comparison cards (hub and "Other comparisons") use the playbooks' line-art grid (.ent-values). */
.cmp .cmp-pick { margin-top: 8px; }
.cmp .cmp-pick .ent-value .art { width: 140px; }

/* Hub: what each tool is built for. */
.cmp-matrix td, .cmp-matrix tbody th { font-size: 15px; line-height: 1.5; }
.cmp-matrix td { white-space: normal; }
.cmp-matrix tbody th a { font-weight: 800; }

.cmp-sources { max-width: 820px; margin: 0; color: var(--faint); font-size: 13.5px; }
.cmp-sources p { margin: 0 0 8px; }
.cmp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp .cmp-table-ctas { justify-content: flex-start; margin-top: 28px; }
.cmp-all { margin: 20px 0 0; }
.cmp .pg-final h2 { margin-left: auto; margin-right: auto; max-width: 760px; color: #fff; text-align: center; }

/* ---------- App mockups on the hub (src/_includes/compare-app.html) ----------
   The Projects list and the Calendar in the app's own colours. The figure (figure.ui) is a size
   container, so the rules at the end follow the mockup's width, not the screen's. */
.cmp-fig { margin: 0 0 32px; }
.cmp-fig figcaption { color: var(--muted); font-size: 14px; }
.nv-app { --nv-ink: #13233d; --nv-faint: #8a97a8; --nv-line: #e7edf6; background: #f9fcfe; color: var(--nv-ink); font-size: 13px; }
.nv-app .grow { flex: 1; }
.nv-app i { font-style: normal; }
.nv-top { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; }
.nv-h { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.nv-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: #edf2f9; color: #4b5563; font-size: 12.5px; font-weight: 600; }
.nv-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #d2dbe7; border-radius: 10px; background: #fff; font-size: 15px; }
.nv-new { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--nv-ink); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.nv-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 20px; background: #fff; border: 1px solid var(--nv-line); border-radius: 14px; overflow: hidden; }
.nv-stats > div { padding: 12px 14px; box-shadow: inset -1px -1px 0 var(--nv-line); }
.nv-stats span { display: flex; align-items: center; gap: 5px; color: #4b5563; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-stats b { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; line-height: 1; }
.nv-stats .off span, .nv-stats .off b { color: #b8c2d0; }
.nv-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 14px 20px; }
.nv-search { display: inline-flex; align-items: center; gap: 8px; width: 220px; max-width: 100%; height: 36px; padding: 0 12px; border: 1px solid #d2dbe7; border-radius: 10px; background: #fff; color: var(--nv-faint); }
.nv-filter { display: inline-flex; align-items: center; gap: 6px; color: #374151; font-size: 13.5px; white-space: nowrap; }
.nv-filter svg:last-child { color: var(--nv-faint); }
.nv-table { margin: 0 20px 20px; background: #fff; border: 1px solid var(--nv-line); border-radius: 16px; overflow: hidden; }
.nv-tr { display: grid; grid-template-columns: 30px minmax(150px, 1fr) 44px 74px 112px 150px 104px 96px; align-items: center; gap: 0 8px; min-height: 52px; padding: 0 14px 0 0; border-bottom: 1px solid var(--nv-line); box-shadow: inset 3px 0 0 var(--bar, transparent); }
.nv-tr:last-child { border-bottom: 0; }
.nv-th { min-height: 40px; background: #f7f9fc; color: var(--nv-faint); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.nv-num { padding-left: 14px; color: #b8c2d0; font-size: 12px; }
.nv-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nv-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.nv-tag { flex: none; margin-left: auto; padding: 2px 8px; border: 1px solid #e3e8ef; border-radius: 6px; background: #f3f5f8; color: #4b5563; font-size: 11.5px; font-style: normal; font-weight: 600; }
.nv-tag.new { background: #eef4ff; border-color: #d3e3fe; color: #2f45b8; }
.nv-av { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; color: #fff; font-size: 11px; font-weight: 700; }
.nv-avs { display: inline-flex; }
.nv-avs .nv-av + .nv-av { margin-left: -8px; box-shadow: -2px 0 0 #fff; }
.nv-av.a1 { background: #4b9be8; }
.nv-av.a2 { background: #e8a33a; }
.nv-av.a3 { background: #5fcfb2; }
.nv-av.a4 { background: #d9478f; }
.nv-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 104px; height: 30px; border-radius: 9px; font-size: 13px; font-style: normal; font-weight: 600; }
.nv-pill svg { width: 13px; height: 13px; opacity: 0.6; }
.nv-off { --bar: #c9bff7; } .nv-off .nv-pill { background: #ece9fd; color: #5b3fc4; }
.nv-on { --bar: #fbe7a1; } .nv-on .nv-pill { background: #fdf6c8; color: #7a5a00; }
.nv-done { --bar: #b9ebe0; } .nv-done .nv-pill { background: #d9f3ee; color: #0b7c6c; }
.nv-risk { --bar: #f7c3d1; } .nv-risk .nv-pill { background: #fde4ea; color: #b03a5b; }
.nv-paused { --bar: #dfe4ec; } .nv-paused .nv-pill { background: #eceff4; color: #4b5563; }
.nv-c-prog { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nv-c-prog small { color: #4b5563; font-size: 12px; white-space: nowrap; }
.nv-seg { display: flex; gap: 2px; }
.nv-seg i { width: 10px; height: 12px; border: 1px solid #c9d3e0; border-radius: 3px; background: repeating-linear-gradient(135deg, #fff 0 2px, #dfe5ee 2px 3px); }
.nv-seg i.f { background: var(--nv-ink); border-color: var(--nv-ink); }
.nv-done .nv-seg i.f { background: #5fcfb2; border-color: #5fcfb2; }
.nv-c-due u { color: #4b5563; text-decoration: underline dashed #b8c2d0; text-underline-offset: 5px; white-space: nowrap; }
.nv-c-hours { color: #4b5563; font-size: 12.5px; white-space: nowrap; }
.nv-c-hours.over { color: #b03a5b; font-weight: 600; }

/* Calendar */
.nv-cal-top { flex-wrap: wrap; border-bottom: 1px solid var(--nv-line); }
.nv-menu { color: #4b5563; font-size: 18px; }
.nv-timer { display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-left: 12px; padding: 0 6px 0 16px; border-radius: 14px; background: #1b2a43; color: #fff; }
.nv-timer-q { color: #9aa6b8; white-space: nowrap; }
.nv-timer-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #2f6b62; color: #9ff0de; }
.nv-timer b { font-size: 16px; font-variant-numeric: tabular-nums; }
.nv-play { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #5fcfb2; color: #fff; }
.nv-play svg { fill: currentColor; width: 12px; height: 12px; }
.nv-ghost { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px; border: 1px solid #d2dbe7; border-radius: 999px; background: #fff; color: #374151; font-weight: 600; white-space: nowrap; }
.nv-ghost.sm { height: 30px; padding: 0 10px; border-radius: 9px; }
.nv-live { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
.nv-month { display: flex; align-items: center; gap: 8px; padding: 6px 20px 12px; border-bottom: 1px solid var(--nv-line); }
.nv-month b { font-size: 19px; font-weight: 800; }
.nv-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nv-day { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 10px 16px; border-right: 1px solid var(--nv-line); }
.nv-day:last-child { border-right: 0; }
.nv-dnum b { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; font-size: 18px; font-weight: 700; }
.nv-dnum.today b { border-radius: 50%; background: var(--nv-ink); color: #fff; font-size: 14px; }
.nv-dnum span { display: block; color: #6b7280; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.nv-count-bar { padding: 4px 10px; border-radius: 8px; background: #5b6474; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.nv-ev { display: flex; flex-direction: column; gap: 5px; padding: 9px 10px; border-left: 3px solid var(--ev); border-radius: 9px; background: var(--ev-bg); }
.nv-ev-k { display: flex; align-items: center; gap: 5px; color: var(--ev-k); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.nv-ev b { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.nv-ev-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.nv-ev-tags em { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); color: #4b5563; font-size: 11px; font-style: normal; }
.nv-ev small { color: #6b7280; font-size: 11.5px; }
.nv-ev.session { --ev: #8b7cf6; --ev-bg: #efecfd; --ev-k: #6d4fe0; }
.nv-ev.session2 { --ev: #4b7be8; --ev-bg: #e5edfb; --ev-k: #2f5fd0; }
.nv-ev.end { --ev: #e0457b; --ev-bg: #fbe8ef; --ev-k: #c4285f; }
.nv-ev.start { --ev: #e8b923; --ev-bg: #fdf6c8; --ev-k: #8a6400; }

@container ui (max-width: 940px) {
  .nv-tr { grid-template-columns: 30px minmax(130px, 1fr) 44px 112px 140px 96px; }
  .nv-c-team, .nv-c-hours { display: none; }
  .nv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nv-timer-q { display: none; }
}
@container ui (max-width: 640px) {
  .nv-top, .nv-filters { padding-left: 12px; padding-right: 12px; }
  .nv-stats, .nv-table { margin-left: 12px; margin-right: 12px; }
  .nv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-tr { grid-template-columns: 26px minmax(0, 1fr) 104px; padding-right: 10px; }
  .nv-c-lead, .nv-c-prog, .nv-c-due { display: none; }
  .nv-name { flex-wrap: wrap; gap: 4px 8px; padding: 8px 0; }
  .nv-name b { white-space: normal; }
  .nv-tag { margin-left: 0; }
  .nv-pill { width: 100px; font-size: 12px; }
  .nv-search { width: 100%; }
  .nv-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-day { border-bottom: 1px solid var(--nv-line); }
  .nv-day:nth-child(even) { border-right: 0; }
  .nv-day:nth-child(4) { display: none; }
  .nv-day:first-child { grid-column: 1 / -1; border-right: 0; }
  .nv-timer { margin-left: 0; order: 5; }
  .nv-cal-top .grow { display: none; }
  .nv-month { padding-left: 12px; padding-right: 12px; }
}
