/* /compare/: the hub, one-on-one comparisons and roundups. Built on landing.css and use-case/use-case.css
   (type, colours, hero, table of contents, FAQ, offer). Every class here starts with cmp-. */

/* App marks: initials on a tinted tile for other apps, the H mark for HideTheRest. No third-party logos. */
.cmp-mark { display: inline-grid; flex: none; place-items: center; width: 40px; height: 40px; border: 1px solid #1d221614; border-radius: 11px; color: #2b3024; background: #eceee5; font-size: .9rem; font-weight: 760; letter-spacing: -.02em; line-height: 1; }
.cmp-mark--dim { background: linear-gradient(180deg, #e4e7ee, #d6dae4); color: #2d3444; }
.cmp-mark--block { background: linear-gradient(180deg, #f1e6da, #e6d5c2); color: #4a3524; }
.cmp-mark--ext { background: linear-gradient(180deg, #e0ebee, #cddfe4); color: #1f3b44; }
.cmp-mark--os { background: linear-gradient(180deg, #f2f2f2, #e2e2e2); color: #333; }
.cmp-mark--mask { background: linear-gradient(180deg, #e9e4f0, #dad2e6); color: #3a2d4a; }
.cmp-mark--us { padding: 0; overflow: hidden; border-color: #1d221626; background: #1b1e19; }
.cmp-mark--us img { width: 100%; height: 100%; }
.cmp-mark--lg { width: 64px; height: 64px; border-radius: 17px; font-size: 1.4rem; }
.cmp-pair { display: inline-flex; align-items: center; gap: 10px; }
.cmp-pair-vs { color: var(--muted); font-size: .78rem; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.cmp-stack { display: inline-flex; align-items: center; }
.cmp-stack .cmp-mark { box-shadow: 0 0 0 3px var(--white); }
.cmp-stack .cmp-mark + .cmp-mark { margin-left: -8px; }
.cmp-chip { display: inline-flex; width: fit-content; padding: 4px 10px; border-radius: 99px; color: #3e4438; background: #eceee5; font-size: .76rem; font-weight: 680; letter-spacing: .01em; }

/* Hero */
.cmp-hero .cmp-pair, .cmp-hero .cmp-stack { margin-top: 26px; }
.cmp-hero .cmp-stack .cmp-mark { box-shadow: 0 0 0 4px var(--paper); }
.cmp-hero .cmp-stack .cmp-mark + .cmp-mark { margin-left: -12px; }
.cmp-page .cmp-hero h1 { margin-top: 20px; }
.cmp-hero--hub h1 span { color: #45582a; }
.cmp-meta { margin-top: 18px; color: var(--muted); font-size: .88rem; font-weight: 560; }

/* Short answer */
.cmp-verdict p + p { margin-top: .7em; }

/* At a glance */
.cmp-glance { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.cmp-glance-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.cmp-glance-card.is-us { border-color: #c9dc8c; background: linear-gradient(180deg, #f6fbe6, #fdfdf8 60%); }
.cmp-glance-head { display: flex; align-items: center; gap: 12px; }
.cmp-glance-head h3 { font-size: 1.12rem; letter-spacing: -.03em; }
.cmp-glance-head p { color: var(--muted); font-size: .86rem; }
.cmp-glance-line { margin-top: 14px; color: #3c4136; line-height: 1.55; }
.cmp-glance-card dl { display: grid; gap: 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #e8eae1; }
.cmp-glance-card dl div { display: grid; grid-template-columns: 78px 1fr; gap: 10px; }
.cmp-glance-card dt { color: var(--muted); font-size: .8rem; font-weight: 680; letter-spacing: .04em; text-transform: uppercase; }
.cmp-glance-card dd { margin: 0; color: var(--ink); font-size: .93rem; line-height: 1.45; }
.cmp-glance-link { margin-top: auto; padding-top: 16px; font-size: .9rem; font-weight: 640; }
.cmp-page .cmp-glance-link a { color: #3d5016; }

/* Choose cards */
.cmp-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.cmp-choose-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.cmp-choose-card.is-us { border-color: transparent; color: #e9ede2; background: radial-gradient(120% 90% at 0% 0%, #2a3420, transparent 60%), #171a14; }
.cmp-choose-card h3 { font-size: 1.1rem; letter-spacing: -.03em; }
.cmp-choose-card.is-us h3 { color: #f6f8f1; }
.cmp-ticks { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.cmp-ticks li { position: relative; padding-left: 28px; color: #3c4136; font-size: .97rem; line-height: 1.5; }
.cmp-ticks li::before { position: absolute; top: 2px; left: 0; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #3d4536; background: #e4e7dc; font-size: .66rem; font-weight: 800; content: "✓"; }
.cmp-ticks--us li { color: #c9cfc0; }
.cmp-ticks--us li::before { color: #171a10; background: var(--lime); }
.cmp-ticks--limits li::before { color: #6b5a4a; background: #f0e7dc; content: "–"; }

/* Feature table */
.cmp-table-wrap { margin-top: 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.45; }
.cmp-table th, .cmp-table td { padding: 14px 16px; border-bottom: 1px solid #e8eae1; text-align: left; vertical-align: top; }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table thead th { position: sticky; top: 0; color: var(--ink); background: #f3f4ed; font-size: .86rem; font-weight: 720; }
.cmp-table tbody th { width: 26%; color: var(--ink); font-weight: 660; }
.cmp-table td { color: #3c4136; }
.cmp-table .is-us { background: #f4f9e2; color: #20241a; }
.cmp-table thead .is-us { color: #171a10; background: var(--lime); }
.cmp-table--multi { min-width: 760px; font-size: .88rem; }
.cmp-table--multi tbody th { width: 18%; }

/* Where each wins */
.cmp-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.cmp-points li { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.cmp-points h3 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; }
.cmp-points h3::before { flex: none; width: 9px; height: 9px; border-radius: 3px; background: #9aa18e; content: ""; }
.cmp-points p { margin-top: 6px; color: var(--muted); font-size: .96rem; line-height: 1.56; }
.cmp-points--us li { border-color: #d5e4a2; background: linear-gradient(180deg, #f7fbe9, #fdfdf8); }
.cmp-points--us h3::before { background: var(--lime); box-shadow: 0 0 0 2px #4d612740; }

.cmp-both { margin-top: 22px; }
.cmp-both p { max-width: 520px; }

/* Sources */
.cmp-sources { display: grid; gap: 0; margin: 18px 0 0; padding: 4px 20px; border: 1px solid var(--line); border-radius: 16px; list-style: none; background: var(--white); }
.cmp-sources li { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid #e8eae1; }
.cmp-sources li:last-child { border-bottom: 0; }
.cmp-sources a { font-weight: 640; }
.cmp-sources span:not(.sr-only) { color: var(--muted); font-size: .86rem; }
.cmp-correct { margin-top: 14px; color: var(--muted); font-size: .93rem; }

/* Roundup app cards */
.cmp-apps { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.cmp-app { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); scroll-margin-top: 110px; }
.cmp-app.is-us { border-color: #c9dc8c; background: linear-gradient(180deg, #f6fbe6, #fdfdf8 55%); }
.cmp-app-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cmp-app-head h3 { font-size: 1.22rem; letter-spacing: -.035em; }
.cmp-app-head p { color: var(--muted); font-size: .86rem; }
.cmp-app-price { margin-left: auto; padding: 5px 11px; border-radius: 99px; color: #3e4438; background: #eceee5; font-size: .8rem; font-weight: 660; }
.cmp-app.is-us .cmp-app-price { color: #171a10; background: var(--lime); }
.cmp-app-best { margin-top: 14px; color: var(--ink); font-size: 1.02rem; line-height: 1.5; }
.cmp-app-best b { margin-right: 6px; color: var(--accent); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; }
.cmp-app-summary { margin-top: 8px; color: #3c4136; line-height: 1.6; }
.cmp-app-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e8eae1; }
.cmp-app-cols h4 { color: var(--muted); font-size: .76rem; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
.cmp-app-cols .cmp-ticks { margin-top: 10px; gap: 8px; }
.cmp-app-cols .cmp-ticks li { font-size: .93rem; }
.cmp-app-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: .92rem; font-weight: 640; }
.cmp-page .cmp-app-links a { color: #3d5016; }

/* Cards (hub and "more comparisons") */
.cmp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.cmp-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); transition: transform .25s, border-color .25s, box-shadow .25s; }
.cmp-card:hover, .cmp-card:focus-visible { border-color: #c6cdb9; box-shadow: 0 20px 44px #1d22161c; transform: translateY(-3px); }
.cmp-card h3 { margin-top: 2px; color: var(--ink); font-size: 1.16rem; letter-spacing: -.032em; line-height: 1.25; }
.cmp-card p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.cmp-card-more { margin-top: auto; padding-top: 4px; color: #3d5016; font-size: .9rem; font-weight: 680; }
.cmp-card--roundup { background: linear-gradient(180deg, #fdfdf8, #f4f6ec); }

/* Hub */
.cmp-band { width: min(1180px, calc(100% - 48px)); margin: clamp(76px, 8vw, 112px) auto 0; scroll-margin-top: 96px; }
.cmp-band-head { max-width: 720px; margin-bottom: 28px; }
.cmp-page .cmp-band-head h2 { margin-top: 10px; color: var(--ink); font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 720; letter-spacing: -.05em; line-height: 1.04; }
.cmp-band-head > p:last-child { margin-top: 14px; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.cmp-needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cmp-need { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.cmp-need-q { color: var(--ink); font-size: 1.06rem; font-weight: 660; letter-spacing: -.02em; line-height: 1.35; }
.cmp-need-q::before { margin-right: 8px; color: #9aa18e; content: "“"; }
.cmp-need-q::after { color: #9aa18e; content: "”"; }
.cmp-need-a { display: flex; align-items: center; gap: 10px; color: #3c4136; line-height: 1.45; }
.cmp-need-a .cmp-mark { width: 28px; height: 28px; border-radius: 8px; }
.cmp-need-links { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.cmp-need-links a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 99px; color: #3e4438; background: #fff; font-size: .82rem; font-weight: 640; transition: border-color .2s; }
.cmp-need-links a:hover { border-color: #b9c0ad; }
.cmp-need.is-us { border-color: transparent; color: #e9ede2; background: radial-gradient(120% 100% at 0% 0%, #2f3a22, transparent 60%), #171a14; }
.cmp-need.is-us .cmp-need-q { color: #f6f8f1; }
.cmp-need.is-us .cmp-need-a b { color: var(--lime); font-size: 1.05rem; }
.cmp-need.is-us .cmp-need-links a { border-color: #ffffff24; color: #e0f995; background: transparent; }
.cmp-method-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.cmp-method-list li { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); counter-increment: step; }
.cmp-method-list li::before { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; color: #171a10; background: var(--lime); font-size: .86rem; font-weight: 760; content: counter(step); }
.cmp-method-list p { color: #3c4136; line-height: 1.58; }

@media (max-width: 1040px) {
  .cmp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .cmp-glance, .cmp-choose, .cmp-points, .cmp-needs, .cmp-method-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cmp-band { width: calc(100% - 28px); }
  .cmp-grid, .cmp-app-cols { grid-template-columns: 1fr; }
  .cmp-app-price { margin-left: 0; }
  .cmp-mark--lg { width: 54px; height: 54px; border-radius: 15px; font-size: 1.2rem; }
  /* Two-column tables become stacked rows: the feature, then each app's answer with its name. */
  .cmp-table:not(.cmp-table--multi) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp-table:not(.cmp-table--multi), .cmp-table:not(.cmp-table--multi) tbody, .cmp-table:not(.cmp-table--multi) tr, .cmp-table:not(.cmp-table--multi) th, .cmp-table:not(.cmp-table--multi) td { display: block; width: auto; }
  .cmp-table:not(.cmp-table--multi) tr { padding: 14px 16px; border-bottom: 1px solid #e8eae1; }
  .cmp-table:not(.cmp-table--multi) tbody tr:last-child { border-bottom: 0; }
  .cmp-table:not(.cmp-table--multi) th, .cmp-table:not(.cmp-table--multi) td { padding: 0; border: 0; background: none; }
  .cmp-table:not(.cmp-table--multi) td { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #f6f7f1; }
  .cmp-table:not(.cmp-table--multi) td.is-us { background: #f1f8db; }
  .cmp-table:not(.cmp-table--multi) td::before { display: block; margin-bottom: 2px; color: var(--muted); font-size: .72rem; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; content: attr(data-label); }
}
@media (prefers-reduced-motion: reduce) {
  .cmp-card { transition: none; }
}

/* "Use cases mentioned here", under the related comparisons */
.cmp-reading { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.cmp-reading h3 { color: var(--accent); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.cmp-reading ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 28px; margin: 12px 0 0; padding: 0; list-style: none; }
.cmp-reading a { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid #e6e8df; font-weight: 620; letter-spacing: -.015em; transition: color .2s; }
.cmp-reading a:hover { color: #3d5016; }
