/* CRM overview (GAIN-5001). The design's site/crm-overview.css, verbatim, then this site's port additions (scoped .cx) at the end. */
/* CRM overview - CRM-only pieces; shares hx-* and fx-* with the helpdesk overview */
.cx-amt{font:600 15px/1 var(--font-display);color:var(--ink-a);font-variant-numeric:tabular-nums}
.cx-stagebar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cx-stagebar span{height:8px;border-radius:999px;background:var(--green-500b);opacity:.35;animation:hxIn .45s cubic-bezier(.16,1,.3,1) var(--hd,0s) both}
.cx-stagebar span.is-now{opacity:1;background:var(--green-500b);box-shadow:0 0 0 3px rgba(20,147,101,.15)}
.cx-stagecap{display:flex;justify-content:space-between;margin:-4px 0 2px;font:500 10.5px/1.3 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.04em;color:var(--ink-mutedb)}
.cx-stagecap span:last-child{color:var(--green-700b)}
.cx-act{display:flex;flex-direction:column;gap:2px;padding-top:6px;border-top:1px solid var(--border-a)}
.cx-act-r{display:grid;grid-template-columns:46px 26px minmax(0,1fr);align-items:center;gap:10px;padding:7px 8px;margin:0 -8px;border-radius:10px;animation:hxIn .5s cubic-bezier(.16,1,.3,1) var(--hd,0s) both}
.cx-act-r time{font:500 11px/1 'JetBrains Mono',ui-monospace,monospace;color:var(--ink-mutedb)}
.cx-act-r i{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;background:var(--mint-100);color:var(--green-700b);font-style:normal}
.cx-act-r span{min-width:0;font:400 13.5px/1.4 var(--font-body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cx-act-r b{font-weight:500;color:var(--ink-a)}
.cx-act-r em{font-style:normal;color:var(--ink-mutedb)}
.cx-act-r.is-key{background:var(--mint-50);box-shadow:inset 0 0 0 1px var(--mint-200)}
.cx-act-r.is-key i{background:var(--green-500b);color:#fff}

/* features bento: lead tile spans two rows */
.cx-bento{margin-top:0}
.cx-bento .cx-feat-lead{grid-row:span 2;display:flex;flex-direction:column;background:var(--green-900b);border-color:transparent;background-image:radial-gradient(90% 60% at 50% 0%,rgba(205,244,111,.16),transparent 70%)}
.cx-feat-lead .fx-ico{background:var(--lime);color:var(--green-900b)}
.cx-feat-lead .fx-feat{color:#fff;font-size:21px;font-weight:600}
.cx-feat-lead .fx-desc{color:rgba(255,255,255,.78)}
.cx-feat-lead .fx-tile-go{color:var(--lime)}
.cx-lead-v{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:24px}
.cx-lead-v span{padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);font:500 12px/1.2 var(--font-body);color:rgba(255,255,255,.85)}
.cx-lead-v span.is-on{background:var(--lime);border-color:var(--lime);color:var(--green-900b)}
.cx-lead-v span.is-off{opacity:.55}
a.cx-tile-a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.cx-feat-lead a.cx-tile-a:hover{color:var(--lime)}

/* pipeline path card */
.cx-path{padding:24px 26px;border-radius:28px;background:var(--surface);border:1px solid var(--border-a);box-shadow:var(--shadow-lg-g)}
.cx-path-h{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 12px;margin:0 0 14px;padding-bottom:14px;border-bottom:1px solid var(--border-a)}
.cx-path-h b{font:600 16px/1.3 var(--font-display);color:var(--ink-a)}
.cx-path-h span{font:400 13px/1.4 var(--font-body);color:var(--ink-mutedb)}
.cx-path-r{position:relative;display:grid;grid-template-columns:22px minmax(0,auto) minmax(0,1fr);align-items:center;gap:12px;padding:9px 0;animation:hxIn .5s cubic-bezier(.16,1,.3,1) var(--hd,0s) both}
.cx-path-r i{position:relative;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:999px;border:2px solid var(--green-500b);background:var(--surface);color:#fff;font-style:normal;justify-self:center}
.cx-path-r:not(:last-child) i::after{content:"";position:absolute;left:50%;top:14px;width:2px;height:24px;background:var(--mint-200);transform:translateX(-50%)}
.cx-path-r b{font:500 14.5px/1.3 var(--font-body);color:var(--ink-a)}
.cx-path-r span{justify-self:end;font:500 11.5px/1.3 'JetBrains Mono',ui-monospace,monospace;color:var(--ink-mutedb);text-align:right}
.cx-path-r.has-note span{color:var(--green-700b)}
.cx-path-r.is-won{margin:6px -12px 0;padding:12px;border-radius:14px;background:var(--mint-50);box-shadow:inset 0 0 0 1px var(--mint-200)}
.cx-path-r.is-won i{width:22px;height:22px;background:var(--green-500b)}
.cx-path-r.is-won b{font:600 16px/1.2 var(--font-display)}
.cx-path-r.is-won span{font-size:12.5px;font-weight:600;color:var(--green-700b)}

/* also-included strip */
.cx-also{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:28px;padding:16px 20px;border-radius:18px;background:var(--canvas);border:1px solid var(--border-a)}
.cx-also>span{margin-right:6px;font:500 10.5px/1.3 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-mutedb)}
.cx-also b,.cx-also a{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:999px;background:var(--surface);border:1px solid var(--border-a);font:500 13.5px/1.2 var(--font-body);color:var(--ink-a);text-decoration:none}
.cx-also b [data-icon],.cx-also a [data-icon]{color:var(--green-700b)}
.cx-also a:hover{border-color:var(--green-500b);color:var(--green-700b)}
.cx-plan-cta{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px 28px;margin-top:36px}

/* pipeline board mock */
.cx-pipe{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:48px;align-items:center}
.cx-pipe .hx-head{margin-bottom:28px}
@media(max-width:1080px){.cx-pipe{grid-template-columns:1fr;gap:40px}}
.cx-board-w{min-width:0}
.cx-board{text-align:left}
.cx-bd-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid var(--border-a)}
.cx-bd-top>b{margin-right:auto;font:600 15px/1 var(--font-display);color:var(--ink-a)}
.cx-seg{display:inline-flex;padding:3px;border-radius:999px;background:var(--canvas);border:1px solid var(--border-a)}
.cx-seg span{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:999px;font:500 12px/1 var(--font-body);color:var(--ink-mutedb)}
.cx-seg span.is-on{background:var(--surface);color:var(--green-700b);box-shadow:0 1px 2px rgba(36,81,59,.1)}
.cx-filter{display:inline-flex;align-items:center;gap:5px;padding:7px 11px;border-radius:999px;border:1px solid var(--border-a);font:500 12px/1 var(--font-body);color:var(--ink-mutedb)}
.cx-cols{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:14px;background:var(--canvas)}
.cx-col{display:flex;flex-direction:column;gap:8px;min-width:0;padding:8px;border-radius:14px;background:rgba(255,255,255,.6);border:1px solid var(--border-a)}
.cx-col-h{margin:0 0 2px;padding:2px 2px 8px;border-bottom:2px solid var(--mint-200);font:600 11.5px/1.25 var(--font-body);color:var(--ink-a)}
.cx-col.is-won{background:var(--mint-50);border-color:var(--mint-200)}
.cx-col.is-won .cx-col-h{border-bottom-color:var(--green-500b);color:var(--green-700b)}
.cx-col.is-lost{opacity:.6}
.cx-sk{display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:10px;background:var(--surface);border:1px solid var(--border-a)}
.cx-sk i{display:block;height:6px;border-radius:999px;background:var(--border-a)}
.cx-sk i:nth-child(1){width:80%}.cx-sk i:nth-child(2){width:45%;background:var(--mint-100)}.cx-sk i:nth-child(3){width:60%}
.cx-ghost{display:flex;align-items:center;gap:5px;padding:10px;border-radius:10px;border:1.5px dashed var(--green-500b);color:var(--green-700b);font:500 10.5px/1.3 'JetBrains Mono',ui-monospace,monospace;background:transparent}
.cx-card{position:relative;padding:11px 11px 10px;border-radius:12px;background:var(--surface);border:1px solid var(--green-500b);box-shadow:0 10px 24px -10px rgba(20,147,101,.45);animation:cxDrop .7s cubic-bezier(.16,1,.3,1) .5s both}
@keyframes cxDrop{from{opacity:0;transform:translate(-40px,-6px) rotate(-3deg)}to{opacity:1;transform:none}}
.cx-card-t{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;margin:0}
.cx-card-t b{font:600 12.5px/1.3 var(--font-body);color:var(--ink-a)}
.cx-card-arrow{display:inline-flex;align-items:center;justify-content:center;flex:none;width:18px;height:18px;border-radius:6px;background:var(--green-500b);color:#fff}
.cx-card-a{margin:6px 0 0;font:700 18px/1 var(--font-display);letter-spacing:-.02em;color:var(--green-700b);font-variant-numeric:tabular-nums}
.cx-card-m{display:flex;align-items:center;gap:6px;margin:8px 0 0;font:400 11px/1.3 var(--font-body);color:var(--ink-mutedb)}
.cx-mini-av{display:inline-flex;align-items:center;justify-content:center;flex:none;width:18px;height:18px;border-radius:999px;background:var(--mint-100);color:var(--green-700b);font:600 8.5px/1 var(--font-body)}
.cx-card-tags{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;margin:9px 0 0;padding-top:8px;border-top:1px solid var(--border-a)}
.cx-card-tags span{display:inline-flex;align-items:center;gap:4px;font:500 10px/1.2 'JetBrains Mono',ui-monospace,monospace;color:var(--ink-mutedb)}
.cx-card-tags span:first-child{color:var(--green-700b)}
.cx-bd-foot{padding:14px 18px 16px;border-top:1px solid var(--border-a)}
.cx-bd-lbl{display:block;margin-bottom:8px;font:500 10px/1.3 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-mutedb)}
.cx-stagebar--lg span{height:10px}
.cx-bd-foot .cx-stagecap{margin-top:8px}
.cx-bd-foot .cx-stagecap span:nth-child(2){color:var(--ink-mutedb)}
@media(max-width:720px){.cx-cols{grid-template-columns:repeat(5,150px);overflow-x:auto}}

/* flow step link */
.cx-step-l{display:inline-flex;align-items:center;gap:6px;margin-top:auto;padding-top:16px;font:600 13.5px/1.3 var(--font-body);color:var(--green-700b);text-decoration:none}
.cx-step-l:hover{color:var(--green-500b);text-decoration:underline;text-underline-offset:3px}
.cx-step-l.is-pending{color:var(--ink-mutedb);font-weight:500}

@media(max-width:1000px){.cx-bento .cx-feat-lead{grid-row:auto;grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.cx-stagebar span,.cx-act-r,.cx-path-r,.cx-card{animation:none}}

/* ------------------------------------------------------------------------------------------
   Port additions (GAIN-5001). Everything above is the design's site/crm-overview.css, verbatim.
   Everything below is this site's: rules the design keeps in its global craft.css, fixes found
   while porting, and the owner's decisions. All scoped to `.cx` (the page's article), so no
   other route can pick one up.
   ------------------------------------------------------------------------------------------ */

/* 1. Tertiary links get the design's hover pill (craft.css), with no layout shift: the pill is
   drawn outside the text box, and the link is as tall as the buttons beside it. On the dark
   record band the pill is a translucent white. */
.cx :is(.fx-band-link,.hx-link-dk){position:relative;isolation:isolate;min-height:48px}
.cx :is(.fx-band-link,.hx-link-dk)::before{content:"";position:absolute;z-index:-1;top:0;left:-18px;right:-18px;height:100%;border-radius:999px;border:1px solid #2A5E44;background:#DBF2E9;opacity:0;transition:opacity 140ms cubic-bezier(.2,.7,.2,1)}
.cx .fx-band-link:hover{color:#2A5E44;text-decoration:none}
.cx :is(.fx-band-link,.hx-link-dk):hover::before{opacity:1}
.cx :is(.fx-band--dark .fx-band-link,.hx-link-dk)::before{border-color:rgba(255,255,255,.45);background:rgba(255,255,255,.08)}
.cx :is(.fx-band--dark .fx-band-link,.hx-link-dk):hover{color:#fff}
.cx :is(.pp-cta,.pp-ghost)+:is(.fx-band-link,.hx-link-dk){margin-left:18px}
@media(max-width:640px){.cx :is(.pp-cta,.pp-ghost)+:is(.fx-band-link,.hx-link-dk){margin-left:0}}

/* 2. The closing banner's title kept to two lines on desktop (craft.css); the design system's
   inline 640px cap would otherwise break it into three. */
.cx .cx-close section[style*="gradient-deep"]>div>h2{max-width:min(100%,32ch)!important;font-size:clamp(28px,3.3vw,42px)!important;line-height:1.15!important;text-wrap:balance!important}

/* 3. The closing "Book a demo": the approved outline pill from the feature pages
   (feature-shell.css `.fs-close-demo`), a solid 2px white border on the deep green, with a
   translucent white wash on hover and focus. !important where the banner writes the property
   inline. */
.cx .cx-close .cx-close-demo{background:transparent!important;color:#fff!important;border:2px solid rgba(255,255,255,.7)!important;transition:transform var(--duration-normal) var(--ease-standard),background-color var(--duration-normal) var(--ease-standard),border-color var(--duration-normal) var(--ease-standard)!important}
.cx .cx-close .cx-close-demo:is(:hover,:focus-visible){background:rgba(255,255,255,.18)!important;border-color:#fff!important;transform:translateY(-1px)}
.cx .cx-close .cx-close-demo:active{transform:translateY(0)}

/* 4. The mocks' own entrances (the Won card dropping in, the stage bars, the timeline rows) are
   CSS animations with delays. Below the fold they would have finished before the section is
   seen, so they wait, paused, until the reveal puts `is-in` on their frame. */
.pp-motion .cx .pp-rev:not(.is-in) :is(.cx-card,.cx-stagebar span,.hx-tl-r){animation-play-state:paused}

/* 5. Tile hover once the reveal has run. The reveal's transition (product-page.css) replaced the
   tile's own, so the hover lift snapped; the stagger travels as `--sd` and applies to the reveal
   alone (crm-overview.mjs moves it there from the inline transition-delay). */
html.pp-motion .cx .fx-tile.pp-rev{transition:opacity .35s cubic-bezier(.25,.46,.45,.94) var(--sd,0s),transform .35s cubic-bezier(.25,.46,.45,.94) var(--sd,0s),translate .2s ease-out,box-shadow .2s ease-out,border-color .2s ease-out}

/* 6. Meeting booking has no page yet: a plain tile, with no lift, no arrow and no link paint. */
.cx .fx-tile.is-pending{cursor:default}
.cx .fx-tile.is-pending:hover{translate:none;box-shadow:0 1px 2px rgba(36,81,59,.06);border-color:var(--border-a)}
.cx .fx-tile.is-pending .fx-tile-go{display:none}
.cx a.fx-feat.feature-link--pending::after{display:none}
.cx .fx-tile.is-pending .fx-feat,.cx .fx-tile.is-pending .fx-feat:hover{color:var(--ink-a);text-decoration:none}

/* 7. The board: the Won column is given room for its card (at 721-1100px five equal columns
   squeezed it), and at 720px and below the board keeps its desktop layout at 640px and scrolls
   as a whole in its wrapper, a keyboard-reachable region (crm-overview.mjs), instead of the
   design's scroller nested inside the board. The right-edge fade is a sticky strip at the end
   of the scroller, shown while there is more to see (interactions.js). */
.cx .cx-cols{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(min-content,1.35fr) minmax(0,1fr)}
@media(max-width:720px){
 .cx .cx-board-w{display:flex;overflow-x:auto;border-radius:18px}
 .cx .cx-board{flex:none;width:100%;min-width:640px}
 .cx .cx-cols{overflow:visible}
 .cx .cx-board-w::after{content:"";position:sticky;z-index:2;right:0;flex:none;width:56px;margin-left:-56px;border-radius:0 18px 18px 0;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.96));pointer-events:none;opacity:0;transition:opacity .2s ease}
 .cx .cx-board-w.cx-mock-more::after{opacity:1}
}

/* 8. The hero's deal record scrolls sideways inside `.hx-mock-sc` when the viewport is narrower
   than its 860px; a fade on the right edge says so while there is more to see. */
.cx .hx-hero-vis::after{content:"";position:absolute;z-index:2;top:0;right:0;bottom:0;width:56px;border-radius:0 20px 20px 0;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.96));pointer-events:none;opacity:0;transition:opacity .2s ease}
.cx .hx-hero-vis.cx-mock-more::after{opacity:1}

/* 9. Phones. The record band's three actions stack: the trial full width, the two links under
   it at the left. The plan's two actions stack too. The FAQ's inline 92px/48px padding drops to
   the product pages' phone padding. The also-included chips get a taller tap target. */
@media(max-width:640px){
 .cx .hx-rec-acts{flex-direction:column;align-items:stretch}
 .cx .hx-rec-acts .pp-cta{justify-content:center}
 .cx .hx-rec-acts .hx-link-dk{align-self:flex-start}
 .cx .cx-plan-cta{flex-direction:column;gap:14px}
}
@media(max-width:400px){.cx .hx-tl-h{flex-wrap:wrap}}
@media(max-width:720px){.cx section[data-screen-label="FAQ"]{padding:68px 24px!important}}
.cx .cx-also a{position:relative}
.cx .cx-also a::after{content:"";position:absolute;inset:-6px 0}

/* 10. Keyboard focus that reads on these grounds; white on the dark record band and the
   closing banner. A tile shows focus on itself rather than on its stretched link, inset on the
   dark lead tile so the lime ring sits on dark green. */
.cx :is(.pp-cta,.pp-ghost,.fx-band-link,.hx-link-dk,.cx-also a,.faq-contact,.cta-link,.hx-mock-sc,.cx-board-w):focus-visible{outline:2px solid var(--green-700b);outline-offset:3px}
.cx :is(.fx-band--dark,.cx-close) :is(.pp-cta,.hx-link-dk,.cta-link):focus-visible{outline-color:#fff}
/* The link's own ring off, both the outline and the token's box-shadow ring (tokens/base.css
   `:focus-visible`), so a focused tile shows one ring, not two. */
.cx .fx-tile a.fx-feat:focus-visible{outline:none;box-shadow:none}
.cx .fx-tile:has(a.fx-feat:focus-visible){outline:2px solid var(--green-700b);outline-offset:3px}
.cx .fx-tile.cx-feat-lead:has(a.fx-feat:focus-visible){outline-color:var(--lime);outline-offset:-5px}

/* 11. Reduced motion: the timeline rows settle with everything else, and nothing lifts. */
@media(prefers-reduced-motion:reduce){
 .cx .hx-tl-r{animation:none}
 .cx .pp-ghost:hover,.cx .cx-close .cx-close-demo:is(:hover,:focus-visible,:active){transform:none}
 .cx .cx-close .cx-close-demo{transition:background-color var(--duration-normal) var(--ease-standard),border-color var(--duration-normal) var(--ease-standard)!important}
 .cx .hx-hero-vis::after,.cx .cx-board-w::after{transition:none}
}
