/* Content pages — the features, solutions and comparison pages rendered from their legacy
   bodies through the design system.

   Everything a product page already has is reused from product-page.css and
   product-shared.css: sections, the wrap, headings, eyebrows, actions, the accordion. What is
   drawn here is only what those pages have no unit for — a grid of icon cards, a picture
   beside its copy, a wall of quotes, the hero with a picture — from the same tokens, at the
   same rhythm. `.bp-body` (post-prose.css) types the prose the reader could not classify. */

.cp .pp-hero { padding-bottom: 72px; }
.cp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-10); align-items: center; }
.cp-hero--media .cp-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cp-hero-copy { min-width: 0; }
.cp .pp-h1 { min-height: 0; max-width: 18ch; }
.cp .pp-lede { min-height: 0; margin-top: 22px; }
.cp .pp-lede + .pp-lede { margin-top: 14px; }
.cp .pp-actions { margin-top: 30px; }
.cp .pp-alt::after { content: "→"; margin-left: 2px; }

/* Bulleted claims, drawn as the home hero draws its trust line: a check, then the text. */
.cp-checks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cp-checks li { position: relative; padding-left: 28px; font: 400 16px/1.55 var(--font-body); color: var(--ink-a); text-wrap: pretty; }
.cp-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 999px; background: var(--mint-100); }
.cp-checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 3px; border-left: 2px solid var(--green-700b); border-bottom: 2px solid var(--green-700b); transform: rotate(-45deg); }
.pp-body .cp-checks { margin-top: 0; }
/* post-prose.css puts markers back on lists in a body; these draw their own. */
.cp .bp-body .cp-checks { list-style: none; padding-left: 0; }
.cp .bp-body .cp-checks li { list-style: none; }
.cp .bp-body .cp-checks li + li { margin-top: 0; }

/* Pictures sit in the frame the post hero uses, so a body image and a hero image are the
   same object on the page. Legacy illustrations arrive at any ratio; the frame fits them. */
.cp-media { margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: var(--radius-panel); background: var(--surface-card-alt); box-shadow: var(--shadow-md); }
.cp-media img { display: block; width: 100%; height: auto; }
.cp-hero-media { box-shadow: var(--shadow-lg); }

.cp .sec-head { margin-bottom: 52px; }
.cp .sec-head .pp-h2 { max-width: 26ch; }
.cp-head-actions { margin-top: 6px; }
.cp-actions { display: flex; justify-content: center; margin-top: 36px; }
.cp .pp-link::after { content: "→"; }

/* Cards: the features page's tiles, with the legacy icon recoloured to the brand by using
   it as a mask, so a blue outline icon from the old site reads as this site's green. */
.cp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-grid--1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.cp-card { display: flex; flex-direction: column; padding: 26px 24px; border-radius: 18px; border: 1px solid var(--border-a); background: var(--surface); box-shadow: 0 1px 2px rgba(36, 81, 59, .06); transition: box-shadow .2s ease-out, translate .2s ease-out; }
.pp-sec--surface .cp-card { background: var(--canvas); }
.cp-card:hover { translate: 0 -3px; box-shadow: var(--shadow-md-g); }
.cp-ico { display: inline-flex; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px; background: var(--mint-100); position: relative; }
.cp-ico::after { content: ""; position: absolute; inset: 9px; background: var(--green-700b); mask: var(--cp-icon) center / contain no-repeat; -webkit-mask: var(--cp-icon) center / contain no-repeat; }
.cp-ico--dot::after { inset: 15px; border-radius: 999px; background: var(--lime); mask: none; -webkit-mask: none; }
.cp-card-img { display: inline-flex; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 14px; overflow: hidden; background: var(--mint-100); }
.cp-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cp-card-t { margin: 0; font: 600 17px/1.35 var(--font-display); letter-spacing: -.012em; color: var(--ink-a); text-wrap: balance; }
.cp-card-t a { color: inherit; text-decoration: none; }
.cp-card-t a:hover { color: var(--green-700b); }
.cp-card-d { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.cp-card-d p, .cp-card-d li { margin: 0; font: 400 15px/1.6 var(--font-body); color: var(--ink-mutedb); text-wrap: pretty; }
.cp-card-d .cp-checks { margin: 0; gap: 8px; }
/* The whole card is its link, not just the "Learn more" line: the overlay below covers it.
   `isolation` and the z-index keep it there — without them the overlay is above the card's
   content only by virtue of coming last in the DOM, which anything positioned inside a card
   would quietly win against. */
.cp-card--link { position: relative; isolation: isolate; }
.cp-card-more { margin-top: auto; padding-top: 16px; font: 600 14.5px/1 var(--font-body); color: var(--green-700b); text-decoration: none; }
.cp-card-more::after { content: " →"; }
.cp-card-more::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.cp-card--link:hover .cp-card-more { text-decoration: underline; text-underline-offset: 4px; }

/* A picture beside its copy, alternating sides down the page as the helpdesk page does. */
.cp-splits { display: flex; flex-direction: column; gap: 72px; }
.cp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-10); align-items: center; }
.cp-split--flip .cp-split-copy { order: 2; }
.cp-split--flip .cp-media { order: 1; }
.cp-split-copy { min-width: 0; }
.cp-split-t { margin: 0; font: 600 clamp(24px, 2.6vw, 32px)/1.18 var(--font-display); letter-spacing: -.022em; color: var(--ink-a); text-wrap: balance; }
.cp-split-copy .pp-body { margin-top: 18px; }
.cp-split-actions { margin-top: 6px; }

/* Stats: the figure the feature pages count with, set like the product pages' price line. */
.cp-stat { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.cp-stat b { font: 600 clamp(30px, 3vw, 38px)/1 var(--font-display); letter-spacing: -.03em; color: var(--green-700b); font-variant-numeric: tabular-nums; }
.cp-stat small { font: 500 11px/1.3 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mutedb); }
.pp-body > .cp-stat { margin-bottom: 0; }

/* Steps: the product pages' loop, stacked, with the same monospaced index. */
.cp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cp-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--border-a); }
.cp-step:last-child { border-bottom: 1px solid var(--border-a); }
.cp-step-n { padding-top: 4px; font: 400 11px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; color: var(--green-700b); }
.cp-step-t { margin: 0; font: 600 18px/1.3 var(--font-display); letter-spacing: -.014em; color: var(--ink-a); }
.cp-step p { margin: 8px 0 0; font: 400 15.5px/1.6 var(--font-body); color: var(--ink-mutedb); }
.bp-body .cp-step p { font: 400 15.5px/1.6 var(--font-body); }

/* Comparison tables: the pricing page's table, static. The legacy grid drew its columns with
   divs; here they are columns, so a reader and a screen reader both get them. */
.cp-table-scroll { overflow-x: auto; }
.cp .bp-body .cp-table, .cp-table { display: table; width: 100%; min-width: 560px; border: 0; border-radius: 0; background: none; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cp .bp-body .cp-table th, .cp .bp-body .cp-table td, .cp-table th, .cp-table td { padding: 16px 14px; border-bottom: 1px solid var(--border-a); background: none; font: 400 15.5px/1.45 var(--font-body); color: var(--ink-a); text-align: left; vertical-align: middle; }
.cp .bp-body .cp-table thead th, .cp-table thead th { padding: 0 14px 12px; font: 500 10.5px/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mutedb); }
.cp .bp-body .cp-table tbody th, .cp-table tbody th { font-weight: 500; color: var(--text-strong); }
.cp .bp-body .cp-table th:first-child, .cp .bp-body .cp-table td:first-child { padding-left: 0; }
.cp .bp-body .cp-table th:last-child, .cp .bp-body .cp-table td:last-child { padding-right: 0; }
.cp-table td { color: var(--ink-mutedb); }
.cp-table tbody tr:last-child th, .cp-table tbody tr:last-child td { border-bottom: 0; }
.cp-mark { display: inline-flex; width: 22px; height: 22px; border-radius: 999px; position: relative; vertical-align: middle; }
.cp-mark--yes { background: var(--mint-100); }
.cp-mark--yes::after { content: ""; position: absolute; left: 7px; top: 9px; width: 7px; height: 4px; border-left: 2px solid var(--green-700b); border-bottom: 2px solid var(--green-700b); transform: rotate(-45deg); }
.cp-mark--no { background: var(--surface-page-alt); }
.cp-mark--no::after { content: ""; position: absolute; left: 6px; top: 10px; width: 10px; height: 2px; background: var(--ink-300); }

/* Two brands side by side, the recommended one on the brand surface. */
.cp-brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cp-brand { display: flex; flex-direction: column; gap: 14px; padding: 28px 26px; border-radius: 18px; border: 1px solid var(--border-a); background: var(--surface); }
.cp-brand--rec { border-color: var(--green-200); background: var(--green-50); }
.cp-brand-badge { align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: var(--lime-500); color: var(--green-900); font: 600 10.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.cp-brand-t { margin: 0; font: 600 18px/1.3 var(--font-display); letter-spacing: -.014em; color: var(--ink-a); }
.bp-body .cp-brand-name { margin: 0; font: 500 11px/1.3 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--green-700b); }
.cp-brand-entries { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.bp-body .cp-brand-entries dt { font: 600 15.5px/1.35 var(--font-body); color: var(--ink-a); }
.bp-body .cp-brand-entries dd { margin: 4px 0 0; font: 400 14.5px/1.55 var(--font-body); color: var(--ink-mutedb); }
.cp-brand .cp-checks { margin: 0; }
.bp-body .cp-brand-note { margin: 0; font: 400 14.5px/1.55 var(--font-body); color: var(--ink-mutedb); }

.cp .bp-body .pp-cta, .cp .bp-body .pp-link, .cp .bp-body .pp-alt { text-decoration: none; }
.cp .bp-body .pp-cta { color: #fff; }

/* Prose the reader could not classify: the article column's typography at the wrap's width. */
.cp-prose { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-5); }
.sec-head + .cp-prose { margin-top: -12px; }
.cp-prose .cp-sub-h, .cp-prose h2, .cp-prose h3 { margin-top: var(--space-4); }
.cp-prose .cp-media { margin: var(--space-3) 0; }
.cp-prose .pp-actions { margin-top: 6px; }
.cp .bp-body img { border-radius: var(--radius-lg); }
.cp .bp-body table { display: table; }
.cp .bp-body table thead th { font: 500 11px/1.3 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mutedb); background: var(--surface-page-alt); }
.cp .bp-body td, .cp .bp-body th { padding: 14px 16px; }
.cp .bp-body td:first-child, .cp .bp-body th:first-child { color: var(--text-strong); font-weight: var(--weight-medium); }
.cp-table-scroll { overflow-x: auto; }

/* FAQ, laid out as the helpdesk page lays out its own: the question in the left column,
   the accordion in the right, and the design's own chevron. */
.cp-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-10); align-items: start; }
.cp-faq-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cp-faq-head .pp-h2 { max-width: 20ch; }
.cp-faq .pp-acc { margin-top: 0; }
.cp-faq .pp-acc-a { display: flex; flex-direction: column; gap: 12px; }
.cp-faq .pp-acc-a p, .cp-faq .pp-acc-a li { font: 400 16.5px/1.65 var(--font-body); color: var(--ink-mutedb); }
.cp-faq summary { font-size: 17px; }

/* Quotes: the customer's words in the callout frame the article uses, the name under them. */
.cp-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cp-quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 28px 26px; border-radius: 18px; border: 1px solid var(--border-a); background: var(--surface); box-shadow: 0 1px 2px rgba(36, 81, 59, .06); }
.pp-sec--surface .cp-quote { background: var(--canvas); }
.cp-quote blockquote { margin: 0; }
.cp-quote blockquote p { margin: 0; font: 400 16.5px/1.6 var(--font-body); color: var(--ink-a); text-wrap: pretty; }
.cp-quote blockquote p::before { content: "“"; color: var(--green-500b); }
.cp-quote blockquote p::after { content: "”"; color: var(--green-500b); }
.cp-quote figcaption { display: flex; align-items: center; gap: 12px; }
.cp-quote figcaption span { display: flex; flex-direction: column; gap: 2px; }
.cp-quote figcaption b { font: 600 15px/1.3 var(--font-body); color: var(--ink-a); }
.cp-quote figcaption small { font: 400 13.5px/1.4 var(--font-body); color: var(--ink-mutedb); }
.cp-quote-face { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; object-fit: cover; background: var(--mint-100); }
.cp-quote-face--initials { display: inline-flex; align-items: center; justify-content: center; font: 600 13px/1 var(--font-body); color: var(--green-700b); }

/* The closing panel: the helpdesk page's Closing CTA, drawn once for every content page. */
.cp-closing { padding-top: 0; }
.cp-cta { position: relative; overflow: hidden; padding: var(--space-12) var(--space-8); border-radius: var(--radius-panel); background: var(--gradient-deep); text-align: center; }
.cp-cta-glow { position: absolute; inset: 0; background: var(--gradient-brand-glow); pointer-events: none; }
.cp-cta-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.cp-cta-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); font: var(--weight-semibold) var(--text-2xs)/1 var(--font-body); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.cp-cta-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--lime-500); }
.cp-cta h2 { margin: 0; max-width: 640px; font: var(--type-section); letter-spacing: var(--tracking-display); color: var(--white); text-wrap: balance; }
.cp-cta p { margin: 0; max-width: 520px; font: var(--type-body-lg); color: var(--text-inverse-muted); }
.cp-cta-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: var(--radius-pill); font: var(--weight-semibold) var(--text-md)/1 var(--font-body); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; transition: background-color .18s ease-out, color .18s ease-out, transform .18s ease-out; }
.cp-btn--lime { background: var(--lime-500); color: var(--green-900); }
.cp-btn--lime:hover { background: var(--lime-400); color: var(--green-900); transform: translateY(-1px); }
.cp-btn--ghost { border: 1px solid rgba(255, 255, 255, .35); color: var(--white); }
.cp-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); }

@media (max-width: 1000px) {
  .cp-hero--media .cp-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-grid, .cp-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-faq-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
}

@media (max-width: 720px) {
  .cp .pp-hero { padding-bottom: 56px; }
  .cp .pp-h1 { max-width: none; }
  .cp-hero-grid { gap: var(--space-8); }
  .cp-grid, .cp-quotes, .cp-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .cp-split, .cp-split--flip { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .cp-split--flip .cp-split-copy { order: 1; }
  .cp-split--flip .cp-media { order: 2; }
  .cp-splits { gap: 56px; }
  .cp .sec-head { margin-bottom: 36px; }
  .cp-cta { padding: var(--space-10) var(--space-6); }
  .cp-brands { grid-template-columns: minmax(0, 1fr); }
  .cp-step { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .cp-cta-actions { flex-direction: column; align-items: stretch; }
  .cp .bp-body table { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-card, .cp-btn { transition: none; }
}
