/* =============================================================================
   BillGrid public site: a "BillGrid vs X" page built to land on (pages/compare/*.html).
   Product outcomes and real screens first, followed by a price calculator,
   every feature side by side, and how to switch.
   Parts: fragments/compare-parts.html; design source docs/mocks/site/compare-freshbooks.html. Loads after site.css,
   pages.css and spotlight.css.
   ============================================================================= */

.cmp section[id] { scroll-margin-top: 88px; }
.cmp-section { padding-block: clamp(64px, 8vw, 112px); }
.cmp-section--paper { background: linear-gradient(145deg, var(--paper), color-mix(in srgb, var(--stage-sky) 32%, var(--paper))); border-block: 1px solid var(--line); }
.cmp-head { max-width: 860px; }
.cmp-head h2, .cmp-head .lead { text-wrap: balance; }
.cmp-head h2 { margin-top: 10px; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: var(--fs-d2); line-height: 1.02; }
.cmp-head h2 .subdued { display: inline-block; max-width: 100%; }
.cmp-head .lead { margin-top: 14px; }

/* ---------- hero: a clear outcome, followed by the product at a readable size ---------- */
.cmp-hero { position: relative; isolation: isolate; padding-block: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px); background:
  radial-gradient(ellipse 72% 38% at 50% 0%, color-mix(in srgb, var(--home-night-glow) 25%, transparent), transparent),
  linear-gradient(180deg, var(--home-night-1), var(--home-night-3) 48%, var(--home-dawn-1) 68%, var(--home-dawn-3) 85%, var(--bg-panel)); }
.cmp-hero__copy { max-width: 860px; margin-inline: auto; text-align: center; }
.cmp-crumb { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); align-items: center; }
.cmp-crumb a { color: inherit; text-decoration: none; }
.cmp-crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cmp-hero .kicker { color: var(--home-night-proposal); }
.cmp-hero h1 { margin-top: var(--space-5); font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: var(--fs-d1); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; color: var(--inv-strong); }
.cmp-hero h1 .accent { display: block; color: var(--home-night-proposal); font-style: italic; }
.cmp-hero .lead { max-width: 38em; margin: var(--space-5) auto 0; text-wrap: balance; color: color-mix(in srgb, var(--inv-strong) 88%, transparent); }
.cmp-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4) var(--space-6); align-items: center; margin-top: var(--space-7); }
.cmp-hero__actions .btn--primary { background: var(--inv-strong); color: var(--home-night-1); }
.cmp-hero__actions .btn--primary:hover { background: var(--home-night-proposal); }
.cmp-hero__actions .cmp-link { color: var(--inv-strong); }
.cmp-hero :focus-visible { outline-color: var(--home-night-proposal); }
.cmp-hero__note { display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--space-1); margin-top: var(--space-4); color: color-mix(in srgb, var(--inv-strong) 88%, transparent); font-size: var(--fs-sm); }
.cmp-hero__note > span[aria-hidden] { margin-inline: var(--space-1); }
.cmp-hero__visual { max-width: 1040px; margin: clamp(32px, 4vw, 56px) auto 0; }
.cmp-hero__visual .spotlight { --spot-pad: clamp(12px, 2vw, 24px); background: color-mix(in srgb, var(--bg-panel) 88%, transparent); border: 1px solid color-mix(in srgb, var(--inv-strong) 48%, transparent); border-radius: var(--r-2xl); box-shadow: var(--shadow-card); }
.cmp-hero__visual .spotlight > figcaption { margin-top: var(--space-4); color: var(--text-muted); }
.cmp-hero__visual picture { display: block; }
.cmp-jump { border-block: 1px solid var(--line); background: var(--bg-panel); }
.cmp-jump .wrap { display: flex; align-items: center; gap: var(--space-6); min-height: 64px; overflow-x: auto; scrollbar-width: thin; }
.cmp-jump span { flex-shrink: 0; font-size: var(--fs-xs); color: var(--caption); }
.cmp-jump a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.cmp-jump a:hover { color: var(--site-accent); text-decoration: underline; text-underline-offset: 5px; }
.cmp-jump a:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }

/* ---------- pricing supports the product case ---------- */
.cmp-pricing { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cmp-pricing__note { margin-top: var(--space-6); color: var(--text-muted); }
.cmp-pricing .cmp-link { margin-top: var(--space-5); }
.cmp-pricing__checked { margin-top: var(--space-8); font-size: var(--fs-xs); color: var(--caption); }
.cmp-pricing__sale { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--caption); }
.cmp-pricing__sale a { color: inherit; text-underline-offset: 3px; }
.cmp-link { display: inline-flex; gap: var(--icon-gap-sm); align-items: center; font-weight: 600; color: var(--ink); text-decoration: none; }
.cmp-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- the calculator: existing plan and payment comparisons ---------- */
.cmp-calc { padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-panel); }
.cmp-calc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cmp-calc__head h3 { font-size: var(--fs-md); letter-spacing: -.01em; }
.cmp-calc__inputs { display: grid; gap: 18px; margin-top: 20px; }
.cmp-range { display: grid; gap: 8px; }
.cmp-range__label { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; font-size: var(--fs-sm); color: var(--text-muted); }
.cmp-range__label output { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp-range input[type="range"] {
  --fill: 50%;
  width: 100%; height: 28px; margin: 0; background: none; cursor: pointer; appearance: none; -webkit-appearance: none;
}
.cmp-range input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--ink) var(--fill), var(--sand-200) var(--fill)); }
.cmp-range input[type="range"]::-moz-range-track { height: 6px; border-radius: var(--r-pill); background: var(--sand-200); }
.cmp-range input[type="range"]::-moz-range-progress { height: 6px; border-radius: var(--r-pill); background: var(--ink); }
.cmp-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--bg-panel); box-shadow: var(--shadow-pop); transition: transform var(--duration-fast) var(--ease-out); }
.cmp-range input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--bg-panel); box-shadow: var(--shadow-pop); }
.cmp-range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.cmp-range input[type="range"]:focus-visible { outline: none; }
.cmp-range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--field-focus), var(--shadow-pop); border-color: var(--gold-deep); }
.cmp-range input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: var(--field-focus); border-color: var(--gold-deep); }
.cmp-needs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cmp-option label { display: grid; grid-template-columns: var(--icon-size-md) minmax(0, 1fr); gap: var(--icon-gap-md); font-size: var(--fs-sm); line-height: 1.5; cursor: pointer; }
.cmp-option input { width: var(--icon-size-md); height: var(--icon-size-md); margin: .2em 0 0; accent-color: var(--ink); }
.cmp-option .caption { margin-top: 8px; padding-left: calc(var(--icon-size-md) + var(--icon-gap-md)); }
.cmp-needs__label { width: 100%; font-size: var(--fs-sm); color: var(--text-muted); }
.cmp-need {
  display: inline-flex; gap: var(--icon-gap-sm); align-items: center; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: var(--r-pill); background: var(--bg-panel); font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted);
  transition: border-color var(--duration-fast), background var(--duration-fast), color var(--duration-fast);
}
.cmp-need .bg-icon { display: none; }
.cmp-need:hover { border-color: var(--sand-400); color: var(--ink); }
.cmp-need[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-accent); }
.cmp-need[aria-pressed="true"] .bg-icon { display: inline-block; }

.cmp-calc__result { display: grid; gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.cmp-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: baseline; }
.cmp-bar__name { font-weight: 600; color: var(--ink); }
.cmp-bar__name small { margin-left: 6px; font-size: var(--fs-sm); font-weight: 500; color: var(--caption); }
.cmp-bar__price { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp-bar__price small { font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0; color: var(--caption); }
.cmp-bar__track { grid-column: 1 / -1; height: 10px; border-radius: var(--r-pill); background: var(--sand-100); overflow: hidden; }
.cmp-bar__track i { display: block; width: var(--w, 50%); height: 100%; border-radius: inherit; background: var(--sand-500); transition: width var(--duration-normal) var(--ease-out); }
/* the bars grow in from nothing once compare.js has drawn the first answer */
.cmp-calc:not(.is-ready) .cmp-bar__track i { width: 0; }
.cmp-bar--us .cmp-bar__track i { background: var(--ink); }
.cmp-bar--them .cmp-bar__name { color: var(--text-muted); }
.cmp-calc__save { margin-top: 22px; padding: 16px 18px; border-radius: var(--r-xl); background: var(--paper); color: var(--ink); }
.cmp-calc__save b { display: block; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(30px, 3vw, 40px); line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cmp-calc__save span { font-size: var(--fs-sm); color: var(--text-muted); }
.cmp-calc__nojs { margin-top: 18px; color: var(--text-muted); }
.js .cmp-calc__nojs { display: none; }
.cmp-fees { border-top: 1px solid var(--line); padding-top: 14px; }
.cmp-fees summary { display: flex; gap: 8px; align-items: center; list-style: none; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.cmp-fees summary::-webkit-details-marker { display: none; }
.cmp-fees summary::before { content: "+"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: var(--r-pill); border: 1px solid var(--field-border); font-weight: 400; color: var(--caption); transition: rotate var(--duration-normal) var(--ease-out); }
.cmp-fees[open] summary::before { rotate: 45deg; }
.cmp-fees__body { display: grid; gap: 16px; margin-top: 14px; }
.cmp-method { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.cmp-method .cmp-needs__label { width: auto; }
.cmp-method .billing-cycle { margin: 0; }
.cmp-calc__why { margin-top: 12px; font-size: var(--fs-sm); line-height: 1.5; color: var(--caption); }
.cmp-calc__action { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.cmp-calc__action > span { font-size: var(--fs-xs); color: var(--caption); }

/* ---------- BillGrid first, with a quieter explanation of product scope ---------- */
.cmp-fit { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; margin-top: 44px; }
.cmp-fit__card { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); }
.cmp-fit__card--us { border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--paper); }
.cmp-fit__card--them { align-self: start; border-left: 1px solid var(--line); }
.cmp-fit__card--them li { color: var(--text-muted); }
.cmp-fit__card h3 { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.02em; }
.cmp-fit__card--them h3 { font-size: var(--fs-xl); line-height: 1.25; }
.cmp-fit__card .kicker { margin-bottom: 10px; }
.cmp-fit__card--them .kicker { color: var(--caption); }
.cmp-fit__card ul { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.cmp-fit__card li { display: grid; grid-template-columns: var(--icon-size-md) minmax(0, 1fr); gap: var(--icon-gap-lg); line-height: 1.5; }
.cmp-fit__card li .bg-icon { margin-top: .2lh; color: var(--sand-500); }
.cmp-fit__card--us li .bg-icon { color: var(--gold); }
.cmp-fit__card li small { display: block; font-size: var(--fs-sm); color: var(--caption); }
.cmp-fit__foot { margin-top: auto; padding-top: 24px; }

/* ---------- benefits and comparison scope ---------- */
.cmp-overview-links { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); margin-top: var(--space-8); }
.cmp-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.cmp-benefits article { border-top: 1px solid var(--line); padding-top: 20px; }
.cmp-benefits h3 { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -.02em; }
.cmp-benefits p { margin-top: 12px; color: var(--text-muted); max-width: 35ch; line-height: 1.65; }
.cmp-scope { display: grid; grid-template-columns: 1fr 2fr; gap: 12px 36px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.cmp-scope p { color: var(--text-muted); }
.cmp-scope a { color: inherit; text-underline-offset: 3px; }

/* ---------- scenes: one real close-up each, the competitor's fact beside it ---------- */
.cmp-scenes { display: grid; gap: clamp(56px, 8vw, 104px); margin-top: clamp(40px, 6vw, 72px); }
.cmp-scene .spotlight--plain { background: linear-gradient(145deg, var(--stage-sky), var(--bg-panel)); border: 1px solid var(--line); border-radius: var(--r-2xl); }
.cmp-scenes > :nth-child(2n) .spotlight--plain { background: linear-gradient(145deg, var(--stage-sage), var(--paper)); }
.cmp-scenes > :nth-child(3n) .spotlight--plain { background: linear-gradient(145deg, var(--stage-clay), var(--bg-panel)); }
.cmp-scene { display: grid; gap: clamp(24px, 3vw, 36px); }
.cmp-scene--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.cmp-scene--split .cmp-scene__text { display: block; }
.cmp-scene--split .cmp-scene__text > div > p:first-child { margin-top: var(--space-5); }
.cmp--bonsai .cmp-scene__text > div > p + p,
.cmp--bonsai .cmp-scene__text > div > .cmp-vs + p { margin-top: var(--space-4); }
.cmp-bonsai-points { display: grid; gap: var(--space-4); margin-top: var(--space-5); padding-left: var(--space-5); color: var(--text-muted); }
.cmp-bonsai-points strong { color: var(--ink); }
.cmp-bonsai-team { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-7); align-items: start; margin-top: var(--space-7); }
.cmp-bonsai-value { padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-panel); }
.cmp-bonsai-value dl { margin-block: var(--space-5); }
.cmp-bonsai-value dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.cmp-bonsai-value dl > div:first-child { color: var(--site-accent); }
.cmp-bonsai-value dd { margin: 0; font-weight: 700; }
.cmp-bonsai-value > p:not(.kicker) { margin-top: var(--space-4); color: var(--text-muted); font-size: var(--fs-sm); }
.cmp-bonsai-value .btn { margin-top: var(--space-6); }
.cmp-bonsai-film { min-width: 0; margin: 0; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--stage-sage); }
.cmp-bonsai-film video { display: block; width: 100%; height: auto; border-radius: var(--r-md); background: var(--paper); }
.cmp-bonsai-film figcaption { margin-top: var(--space-4); color: var(--caption); font-size: var(--fs-sm); }
.cmp-bonsai-film figcaption strong { color: var(--ink); }
.cmp-bonsai-economics { margin-top: var(--space-7); }
.cmp-proof-pan { min-width: 0; max-width: 100%; border-radius: var(--r-md); }
.cmp-proof-pan:focus-visible { outline: none; box-shadow: var(--field-focus); }
.cmp-proof-hint { display: none; }
/* the words in two columns over the stage: the claim on the left, the detail and the competitor's fact on the right */
.cmp-scene__text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px clamp(28px, 5vw, 72px); align-items: start; }
.cmp-scene__text h3 { margin-top: 10px; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.cmp-scene__text > div > p { color: var(--text-muted); }
.cmp-scene--hub .cmp-scene__text > div > p + p { margin-top: var(--space-3); }
.cmp-scene__text .cmp-link { margin-top: 16px; }
.cmp-vs { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 18px 0 0; padding: 14px 16px; border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.5; }
.cmp-vs dt { font-weight: 600; color: var(--ink); }
.cmp-vs dd { margin: 0; color: var(--text-muted); }

/* ---------- every row, side by side ---------- */
.cmp-table-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; margin-top: 36px; }
.cmp-table-tools .billing-cycle { margin: 0; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--caption); }
.cmp-legend li { display: inline-flex; gap: var(--icon-gap-sm); align-items: center; }
.cmp-sheet { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--bg-panel); overflow: clip; }
.cmp-sheet table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.cmp-sheet thead th { position: sticky; top: 68px; z-index: calc(var(--z-sticky) - 1); padding: 16px 20px; background: var(--bg-panel); border-bottom: 1px solid var(--ink); text-align: left; font-size: var(--fs-md); color: var(--ink); }
.cmp-sheet thead th:first-child { width: 28%; }
.cmp-sheet thead th + th { width: 36%; }
.cmp-sheet thead th small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--caption); }
.cmp-sheet tbody th, .cmp-sheet tbody td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.cmp-sheet tbody:last-child tr:last-child > * { border-bottom: 0; }
.cmp-sheet tbody th[scope="row"] { font-weight: 500; color: var(--ink); }
.cmp-sheet tbody td { color: var(--text); }
.cmp-sheet thead th:nth-child(2), .cmp-sheet tbody td:nth-child(2) { background: var(--sand-25); }
.cmp-sheet tbody td + td { color: var(--text-muted); }
.cmp-sheet tr.cmp-group th { padding: 26px 20px 10px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.cmp-cell { display: grid; grid-template-columns: var(--icon-size-md) minmax(0, 1fr); gap: var(--icon-gap-md); }
.cmp-cell > span { min-width: 0; }
.cmp-cell .bg-icon { margin-top: .2lh; }
.cmp-cell--yes .bg-icon { color: var(--paid-fg); }
.cmp-cell--no { color: var(--caption); }
.cmp-cell--no .bg-icon { color: var(--sand-400); }
.cmp-cell--plan .bg-icon { color: var(--partial-fg); }
.cmp-cell--note .bg-icon { color: var(--sent-fg); }
.cmp-plan { display: inline-block; margin-right: 4px; padding: 0 8px; border-radius: var(--r-pill); background: var(--partial-bg); font-size: var(--fs-sm); font-weight: 600; color: var(--gold-deep); max-width: 100%; white-space: normal; }
/* only the differences: rows the same on both step aside */
.cmp-sheet.is-diff tr[data-same] { display: none; }

/* ---------- switching: three steps ---------- */
.cmp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin: 44px 0 0; padding: 0; list-style: none; counter-reset: step; }
.cmp-steps li { padding-top: 22px; border-top: 1px solid var(--sand-300); counter-increment: step; }
.cmp-steps li::before { content: "0" counter(step); display: block; margin-bottom: 14px; font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--gold); }
.cmp-steps h3 { font-size: var(--fs-lg); line-height: 1.3; letter-spacing: -.02em; }
.cmp-steps p { margin-top: 8px; color: var(--text-muted); }
.cmp-faq { margin-top: 36px; }
.cmp-note { max-width: 720px; margin-top: 36px; font-size: var(--fs-sm); color: var(--caption); }
.cmp-note .cmp-link { margin-left: 6px; font-size: var(--fs-body); }

/* Moving over through a connection: stacked on phones, with a compact, stable preview beside desktop tabs. */
.cmp-move { margin-top: 44px; }
.cmp-move__steps { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.cmp-move__step { display: grid; gap: 18px; }
.cmp-move__tab { display: flex; gap: 16px; align-items: flex-start; width: 100%; padding: 0; border: 1px solid transparent; border-radius: var(--r-xl); background: transparent; font: inherit; text-align: left; color: var(--ink); cursor: default; }
.cmp-move__num { flex: none; width: 1.6em; font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--gold); }
.cmp-move__copy b { display: block; font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.cmp-move__copy > span { display: block; margin-top: 6px; line-height: 1.55; color: var(--text-muted); }
.cmp-move__shot { margin: 0; min-width: 0; }
.cmp-move.is-tabs .cmp-move__steps { grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); grid-template-rows: repeat(3, min-content) 1fr; gap: 8px clamp(24px, 4vw, 56px); align-items: start; }
.cmp-move.is-tabs .cmp-move__step { display: contents; }
.cmp-move.is-tabs .cmp-move__tab { grid-column: 1; padding: 18px 20px; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.cmp-move.is-tabs .cmp-move__tab:hover { background: color-mix(in srgb, var(--bg-panel) 60%, transparent); }
.cmp-move.is-tabs .cmp-move__tab[aria-selected="true"] { background: var(--bg-panel); border-color: var(--line); box-shadow: var(--shadow-sm); }
.cmp-move.is-tabs .cmp-move__shot { grid-column: 2; grid-row: 1 / -1; height: clamp(440px, 42vw, 560px); display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.cmp-move.is-tabs .site-image-link { display: flex; align-items: center; min-height: 0; }
.cmp-move.is-tabs .spotlight__shot { width: auto; max-width: 100%; height: auto; max-height: 100%; }
.cmp-move__tab:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.cmp-note a { color: inherit; text-underline-offset: 3px; }

.cmp-product-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 48px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.cmp-product-next strong, .cmp-product-next span { display: block; }
.cmp-product-next strong { font-size: var(--fs-lg); font-weight: 500; }
.cmp-product-next span { margin-top: 6px; font-size: var(--fs-sm); color: var(--caption); }

/* ---------- closing band ---------- */
.cmp-close { padding-block: clamp(72px, 9vw, 128px) 40px; background: radial-gradient(ellipse at 50% 0%, var(--home-night-3), transparent 75%), var(--home-night-1); color: var(--inv-strong); text-align: center; }
.cmp-close h2 { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(40px, 5.6vw, 76px); line-height: 1; letter-spacing: -.035em; color: var(--cream); }
.cmp-close h2 .accent { color: var(--hl); }
.cmp-close p { max-width: 36em; margin: 18px auto 0; }
.cmp-close .btn { margin-top: 30px; background: var(--cream); color: var(--ink); }
.cmp-close .btn:hover { background: var(--bg-panel); }
.cmp-close .trustline { justify-content: center; color: color-mix(in srgb, var(--inv-strong) 86%, transparent); }
.cmp-fine { max-width: 860px; margin: clamp(64px, 8vw, 104px) auto 0; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--inv-strong) 25%, transparent); font-size: var(--fs-xs); line-height: 1.6; color: color-mix(in srgb, var(--inv-strong) 86%, transparent); }
.cmp-fine a { color: inherit; text-underline-offset: 3px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .cmp-pricing { grid-template-columns: minmax(0, 1fr); }
  .cmp-pricing .cmp-calc { width: 100%; max-width: 680px; }
}
@media (max-width: 760px) {
  .cmp-scene--split, .cmp-bonsai-team { grid-template-columns: minmax(0, 1fr); }
  .cmp-fit, .cmp-steps { grid-template-columns: minmax(0, 1fr); }
  .cmp-scene__text { grid-template-columns: minmax(0, 1fr); }
  /* the sheet becomes a card per row: the row's name across, the two answers under it */
  .cmp-sheet table, .cmp-sheet tbody { display: block; }
  .cmp-sheet thead { display: block; position: sticky; top: 68px; z-index: calc(var(--z-sticky) - 1); }
  .cmp-sheet thead th { position: static; padding: 12px 14px; font-size: var(--fs-body); }
  .cmp-sheet thead th:first-child { display: none; }
  .cmp-sheet thead tr, .cmp-sheet tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-sheet thead th + th { width: auto; }
  .cmp-sheet tbody th[scope="row"] { grid-column: 1 / -1; padding: 16px 14px 4px; border-bottom: 0; font-weight: 600; }
  .cmp-sheet tbody td { padding: 4px 14px 16px; font-size: var(--fs-sm); }
  .cmp-sheet tr.cmp-group { display: block; }
  .cmp-sheet tr.cmp-group th { display: block; padding: 22px 14px 8px; }
  .cmp-benefits, .cmp-scope { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cmp-benefits p { max-width: none; margin-top: 8px; }
  .cmp-fit__card--them { border-left: 0; border-top: 1px solid var(--line); }
  .cmp-scope { margin-top: 32px; }
}
@media (max-width: 520px) {
  .cmp-hero__actions .btn { width: 100%; }
  .cmp-calc__head { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
}

/* The comparison directory: choose a job, then compare the tools that do it. */
.cmp-directory .cmp-hero { padding-bottom: var(--space-8); }
.cmp-directory__stories { padding-top: var(--space-8); }
.cmp-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-8); }
.cmp-path { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--bg-panel); color: var(--ink); text-decoration: none; transition: box-shadow var(--duration-normal) var(--ease-out); }
.cmp-path:hover { box-shadow: var(--shadow-card); }
.cmp-path:focus-visible, .cmp-directory__item:focus-visible { outline: 2px solid var(--site-accent); outline-offset: var(--space-1); }
.cmp-path__art { padding: var(--space-6) var(--space-4) 0; background: var(--stage-sage); }
.cmp-path:nth-child(2) .cmp-path__art { background: var(--stage-sky); }
.cmp-path:nth-child(3) .cmp-path__art { background: var(--stage-clay); }
.cmp-path__art img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-md) var(--r-md) 0 0; }
.cmp-path__copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: var(--space-7); }
.cmp-path__copy h3 { margin-top: var(--space-3); font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(28px, 2.7vw, 40px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.cmp-path__copy > p:not(.kicker) { margin-top: var(--space-4); margin-bottom: var(--space-6); color: var(--text-muted); }
.cmp-path__copy .cmp-link { margin-top: auto; }
.cmp-directory__caption { margin-top: var(--space-5); color: var(--caption); font-size: var(--fs-sm); }
.cmp-directory__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--space-5) * 2); margin-top: var(--space-8); }
.cmp-directory__group { margin-top: clamp(48px, 6vw, 80px); }
.cmp-directory__group > header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: baseline; }
.cmp-directory__group > header h3 { font-size: var(--fs-xl); line-height: 1.25; }
.cmp-directory__group > header p { max-width: 48ch; color: var(--text-muted); }
.cmp-directory__group .cmp-directory__list { margin-top: var(--space-6); }
.cmp-directory__item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-7) 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cmp-directory__item h4 { margin-block: var(--space-2); font-size: var(--fs-xl); letter-spacing: -.02em; line-height: 1.2; }
.cmp-directory__item p { max-width: 40ch; color: var(--text-muted); }
.cmp-directory__date { font-size: var(--fs-xs); }
.cmp-directory__item .cmp-link { flex-shrink: 0; }
.cmp-directory__item:hover h4, .cmp-directory__item:hover .cmp-link { color: var(--site-accent); }
.cmp-directory__next { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: calc(var(--space-5) * 2); }
.cmp-directory__next > div:last-child { justify-self: end; max-width: 32ch; }
.cmp-directory__next .cmp-link { margin-top: var(--space-5); }
.cmp-directory__move { background: linear-gradient(135deg, var(--stage-sage), var(--bg-panel), var(--stage-clay)); }
.cmp-directory__start { width: 100%; padding: var(--space-7); background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--r-2xl); box-shadow: var(--shadow-card); }
.cmp-directory__start > p + p { margin-top: var(--space-3); }
.cmp-directory__start .btn { margin-top: var(--space-6); }
.cmp-close .cmp-close__allowance { max-width: 52ch; margin: var(--space-4) auto; font-size: var(--fs-sm); }
@media (max-width: 960px) {
  .cmp-paths { grid-template-columns: 1fr; }
  .cmp-path { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .cmp-path__art { display: flex; align-items: center; padding: var(--space-5); }
  .cmp-path__art img { border-radius: var(--r-md); }
  .cmp-directory__item { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .cmp-proof-pan { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .cmp-proof-pan .site-image-link, .cmp-proof-pan picture { display: block; width: var(--proof-width); }
  .cmp .cmp-proof-pan .spotlight__shot { width: var(--proof-width); max-width: none; margin-inline: 0; }
  .cmp-proof-hint { display: block; flex-basis: 100%; color: var(--caption); }
  .cmp-path { display: flex; }
  .cmp-directory__list, .cmp-directory__next { grid-template-columns: 1fr; }
  .cmp-directory__next > div:last-child { justify-self: start; }
  .cmp-directory__item { flex-direction: row; align-items: center; }
  .cmp-directory__item .cmp-link { font-size: 0; }
  .cmp-path__copy { padding: var(--space-6); }
  .cmp-directory__group > header { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .cmp-jump .wrap { gap: var(--space-5); }
  .cmp-jump .wrap > span { display: none; }
  .cmp-hero__visual .spotlight { --spot-pad: var(--space-3); }
  .cmp-hero__visual .spotlight__shot { max-width: 390px; }
}
@media (prefers-reduced-motion: reduce) { .cmp-path { transition: none; } }

.cmp-switch-action { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-5); margin-top:var(--space-7); }
