/* Distribuzione landing: visual concept (mid-fi). Tokens from vf.css only; literal lengths use --ui-scale.
   Motion: every animated element carries .ax; the section (.cx-anim) gets .is-play once when it scrolls in.
   Without JS or under reduced motion the final state is shown. Concept-only blocks are .cx-stub / .cx-note. */
.page-cx { overflow-x: clip; }
.cx-nav { --cx-nav: 72px; }
@media (min-width: 900px) { .cx-nav { --cx-nav: 88px; } }
@media (min-width: 1024px) { .cx-nav { --cx-nav: calc(88px * var(--ui-scale)); } }

/* ---------- hero ---------- */
.cx-hero { padding-block: var(--space-64) var(--space-64); }
.cx-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-48) var(--space-64); align-items: center; }
.cx-hero-copy h1 { margin-top: 0; }
.cx-hero-copy .lead { margin-top: var(--space-24); }
.cx-hero-copy .vf-cta { margin-top: var(--space-32); }
@media (max-width: 899px) {
  .cx-hero { padding-block: var(--space-32) var(--space-48); }
  .cx-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .cx-hero-copy .vf-cta { width: 100%; }
}

/* hero card (23 Nov, option B2; calmed 30 Nov): the goods flow. Five stages on one flat green line that ends in a filled dot,
   then the one figure. No sparkles, no tinted title box, no gradient wedge. Vertical on phone. Static; one fade on load.
   Green text is --ok mixed with ink (~5.8:1 on white); bright --ok only for the line and the dots. */
.cx-goods { --pos: color-mix(in srgb, var(--ok) 65%, var(--ink)); --pg: var(--space-32); margin: 0; container-type: inline-size; }
.frame-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); }
.cx-goods-line { margin: var(--pg) var(--pg) 0; font-size: min(var(--type-32), 5.6cqi); font-weight: 800; line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }
.cx-goods-line .accent { display: block; color: var(--blue-dark); }
.cx-goods-flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto auto 24px; column-gap: var(--space-8); margin: 0; padding: var(--space-32) var(--pg) 0; list-style: none; }
.cx-goods-flow::before {
  content: ""; position: absolute; bottom: 10.5px; height: 3px; border-radius: var(--radius-pill); background: var(--ok);
  left: calc(var(--pg) + (100% - 2 * var(--pg)) / 10); right: calc(var(--pg) + (100% - 2 * var(--pg)) / 10);
}
.cx-goods-s { display: grid; grid-row: 1 / 4; grid-template-rows: subgrid; justify-items: center; text-align: center; }
.cx-goods-s b { align-self: end; font-size: var(--type-15); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.cx-goods-act { margin: calc(var(--space-8) / 2) 0 var(--space-16); color: var(--text-2); font-size: var(--type-13); font-weight: 600; line-height: 1.3; text-wrap: balance; }
.cx-goods-dot { position: relative; z-index: 1; align-self: center; width: 12px; height: 12px; border: 2px solid var(--ok); border-radius: 50%; background: var(--white); }
.cx-goods-s:last-child .cx-goods-dot { width: 18px; height: 18px; border: 0; background: var(--ok); }
.cx-goods-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: calc(var(--space-8) / 2) var(--space-8); margin: var(--space-24) var(--pg) var(--pg); padding-top: var(--space-24); border-top: 1px solid var(--line-soft); }
.cx-goods-total b { color: var(--pos); font-size: var(--type-56); font-weight: 850; line-height: 1; letter-spacing: -.04em; }
.cx-goods-total em { color: var(--pos); font-size: var(--type-20); font-style: normal; font-weight: 800; }
@media (prefers-reduced-motion: no-preference) { .cx-goods { animation: ax-fade .6s ease-out .15s both; } }
@media (max-width: 899px) {
  .cx-goods { --pg: var(--space-16); }
  .cx-goods-line { font-size: min(var(--type-32), 6.6cqi); }
  .cx-goods-flow { grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: none; gap: var(--space-16); padding: var(--space-24) var(--pg) 0; }
  .cx-goods-flow::before { left: calc(var(--pg) + 10.5px); right: auto; top: calc(var(--space-24) + 12px); bottom: calc(var(--type-15) * 1.3 + var(--space-8) / 4 + var(--type-17) * .6); width: 3px; height: auto; }
  .cx-goods-s { grid-column: 1 / -1; grid-row: auto; grid-template-columns: subgrid; grid-template-rows: auto auto; column-gap: var(--space-16); justify-items: start; text-align: left; }
  .cx-goods-dot { grid-column: 1; grid-row: 1; justify-self: center; }
  .cx-goods-s b { grid-column: 2; grid-row: 1; font-size: var(--type-17); }
  .cx-goods-act { grid-column: 2; grid-row: 2; margin: calc(var(--space-8) / 4) 0 0; font-size: var(--type-15); }
  .cx-goods-total { justify-content: flex-start; margin: var(--space-24) var(--pg) var(--pg); }
  .cx-goods-total b { font-size: var(--type-44); }
}

/* ---------- S3: phone ---------- */
.cx-phone { width: min(100%, calc(344px * var(--ui-scale))); margin-inline: auto; box-shadow: var(--shadow-2); }
.cx-phone-head { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-16); border-bottom: 1px solid var(--line-soft); }
.cx-phone-head img { width: calc(32px * var(--ui-scale)); height: calc(32px * var(--ui-scale)); }
.cx-phone-head b { display: block; font-size: var(--type-15); line-height: 1.2; }
.cx-phone-head small { display: block; color: var(--muted); font-size: var(--type-13); line-height: 1.2; }
.cx-thread { display: grid; gap: var(--space-16); align-content: start; min-height: calc(500px * var(--ui-scale)); padding: var(--space-16); background: var(--paper); }
.cx-msg { max-width: 92%; }
.cx-msg.is-out { justify-self: end; }
.cx-who { margin-bottom: 4px; color: var(--muted); font-size: var(--type-13); font-weight: 700; }
.cx-voice { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-8) var(--space-16) var(--space-8) var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-16); background: var(--blue-soft); }
.cx-play { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); color: var(--white); cursor: pointer; }
.cx-play:hover { background: var(--blue-dark); }
.cx-play svg { width: 16px; height: 16px; fill: currentColor; }
.cx-wave { display: flex; align-items: center; gap: 3px; width: calc(132px * var(--ui-scale)); height: calc(28px * var(--ui-scale)); }
.cx-wave i { flex: 1; height: var(--h); border-radius: 0; background: var(--blue); }
.cx-voice time { font: 400 var(--type-13)/1 var(--mono); color: var(--muted); }
.cx-caption { margin-top: 6px; text-align: right; color: var(--muted); font-size: var(--type-13); }
.cx-ai { display: grid; }
.cx-ai > * { grid-area: 1 / 1; }
.cx-typing { align-self: start; justify-self: start; display: inline-flex; gap: 5px; padding: var(--space-16); border: 1px solid var(--line); border-radius: var(--radius-16); background: var(--white); }
.cx-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.cx-card { border: 1px solid var(--line); border-radius: var(--radius-16); background: var(--white); overflow: hidden; }
.cx-card header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-8); padding: var(--space-16); border-bottom: 1px solid var(--line-soft); }
.cx-card header b { font-size: var(--type-15); line-height: 1.25; }
.cx-card header span { color: var(--muted); font-size: var(--type-13); font-weight: 700; white-space: nowrap; }
.cx-lines { margin: 0; padding: var(--space-8) var(--space-16); list-style: none; }
.cx-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-8); padding-block: 9px; font-size: var(--type-15); line-height: 1.3; }
.cx-lines li + li { border-top: 1px solid var(--line-soft); }
.cx-lines small { display: block; color: var(--muted); font-size: var(--type-13); }
.cx-lines .is-swap small { color: var(--blue-dark); font-weight: 700; }
.cx-tick, .cx-swap, .cx-ask { display: grid; place-items: center; width: calc(22px * var(--ui-scale)); height: calc(22px * var(--ui-scale)); border-radius: 50%; border: 1px solid var(--line); background: var(--white); }
.cx-tick svg, .cx-swap svg, .cx-ask svg { width: calc(12px * var(--ui-scale)); height: calc(12px * var(--ui-scale)); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* Ordini (23 Nov): two in-stock substitutes, the agent picks one; a customer's words read as the usual product. */
.cx-lines .is-read small { color: var(--blue-dark); }
.cx-lines .is-read small .ai { width: 12px; height: 12px; margin: 0 calc(var(--space-8) / 2) 0 0; vertical-align: -1px; }
.cx-pick-opts { display: grid; gap: calc(var(--space-8) / 2); margin-top: calc(var(--space-8) * .75); }
.cx-pick-opt { display: grid; grid-template-columns: 12px minmax(0, 1fr); align-items: center; column-gap: calc(var(--space-8) * .75); padding: calc(var(--space-8) / 2) var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--white); color: var(--ink); font-size: var(--type-13); font-weight: 700; line-height: 1.3; }
.cx-pick-opt em { grid-column: 2; display: block; color: var(--text-2); font-style: normal; font-weight: 600; }
/* Product name on one line, «in magazzino» under it, so the chip never breaks mid-name (23 Nov). */
.cx-pick-opt svg { visibility: hidden; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cx-pick-opt.is-picked { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }
.cx-pick-opt.is-picked svg { visibility: visible; }
.cx-tick { color: var(--blue-dark); } .cx-swap { color: var(--blue-dark); background: var(--blue-soft); border-color: var(--blue); }
.cx-card footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); padding: var(--space-8) var(--space-16) var(--space-16); }
.cx-card footer small { color: var(--muted); font-size: var(--type-13); line-height: 1.3; }
.cx-approve { position: relative; display: inline-grid; flex: none; place-items: center; min-height: 44px; padding: 0 var(--space-16); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--white); color: var(--text-2); font-size: var(--type-15); font-weight: 700; }
.cx-approve > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; }
.cx-approve .is-before { opacity: 0; }
.cx-approve svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cx-done { display: block; margin: 0; padding: var(--space-16); border-top: 1px solid var(--line-soft); background: var(--ok-soft); color: var(--text-2); font-size: var(--type-13); font-weight: 600; }
.cx-done strong { color: var(--ink); }
@media (max-width: 899px) { .cx-phone { width: 100%; box-shadow: var(--shadow-1); } .cx-thread { min-height: 0; } }


/* ---------- motion ---------- */
@keyframes ax-fade { from { opacity: 0; } }
@keyframes ax-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes ax-pop { from { opacity: 0; transform: scale(.9); } }
@keyframes ax-grow { from { transform: scale(var(--sx, 1), var(--sy, 0)); } }
@keyframes ax-grow-y { from { transform: scaleY(0); } }
@keyframes ax-wave { from { background: var(--line); } }
@keyframes ax-dots { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } }
@keyframes ax-typing { 0% { opacity: 0; } 8%, 88% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes ax-press { 0%, 100% { transform: scale(1); } 40% { transform: scale(.93); } }
@keyframes ax-btn-bg { from { border-color: var(--blue); background: var(--blue); color: var(--white); } }
@keyframes ax-swap-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ax-swap-in { from { opacity: 0; } }
@keyframes ax-wheel { from { background: var(--paper); border-color: var(--line); } }
@keyframes ax-pick { from { border-color: var(--line); background: var(--white); color: var(--ink); } }
@keyframes ax-pick-tick { from { opacity: 0; } }
@keyframes ax-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: no-preference) {
  .js .cx-anim:not(.is-play) .ax { opacity: 0; }
  .js .cx-anim.is-play .ax-fade { animation: ax-fade .28s ease-out var(--d, 0s) both; }
  .js .cx-anim.is-play .ax-up { animation: ax-up .3s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
  .js .cx-anim.is-play .ax-pop { animation: ax-pop .25s cubic-bezier(.2,.8,.3,1.2) var(--d, 0s) both; }
  .js .cx-anim.is-play .ax-bar { animation: ax-grow .28s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
  .js .cx-anim.is-play .ax-line { animation: ax-grow-y .22s ease-out var(--d, 0s) both; }
  .js .cx-anim.is-play .ax-wheel { animation: ax-wheel .22s ease-out var(--d, 0s) both; }
  .js .cx-anim.is-play .cx-wave i { animation: ax-wave .08s linear calc(var(--d, 0s) + var(--i) * .03s) both; }
  .js .cx-anim.is-play .cx-typing { animation: ax-typing .58s linear var(--d, 0s) both; }
  .js .cx-anim.is-play .cx-typing i { animation: ax-dots .39s ease-in-out var(--d, 0s) 2; }
  .js .cx-anim.is-play .cx-typing i:nth-child(2) { animation-delay: calc(var(--d, 0s) + .07s); }
  .js .cx-anim.is-play .cx-typing i:nth-child(3) { animation-delay: calc(var(--d, 0s) + .13s); }
  .js .cx-anim.is-play .cx-approve { animation: ax-btn-bg .01s linear var(--d, 0s) both, ax-press .22s ease-in-out var(--d, 0s) both; }
  .js .cx-anim.is-play .cx-approve .is-before { animation: ax-swap-out .11s ease-out var(--d, 0s) both; }
  .js .cx-anim.is-play .cx-approve .is-after { animation: ax-swap-in .14s ease-out calc(var(--d, 0s) + .08s) both; }
  .js .cx-anim.is-play .cx-pick-opt.is-picked { animation: ax-pick .2s ease-out var(--dp, 0s) both; }
  .js .cx-anim.is-play .cx-pick-opt.is-picked svg { animation: ax-pick-tick .2s ease-out var(--dp, 0s) both; }
  .js .cx-anim.is-play .ax-beat { animation: ax-beat .33s ease-in-out var(--d, 0s) 1; }
}


/* ======================================================================
   v3: four sections ending on the solved state, soft light-blue CTA bands, hero glow
   ====================================================================== */

/* ---------- hero glow: the home's blue + warm glow on the sector hero (Michael's request; design-system change) ---------- */
@media (max-width: 760px) {
}

.cx-index { padding-block: var(--space-96); border-top: 1px solid var(--line); scroll-margin-top: var(--space-96); }

@media (max-width: 899px) { .cx-index { padding-block: var(--space-64); } }

/* ---------- sections ---------- */
.cx-sec { padding-block: var(--space-96); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--cx-nav, 72px) + var(--space-64)); }
.cx-sec .lead { margin-top: var(--space-24); max-width: 36ch; }
.cx-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-48) var(--space-64); align-items: center; }
.cx-split.is-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cx-split.is-left .cx-copy { order: 2; }
.cx-split.is-flip { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.cx-split.is-flip .cx-copy { order: 2; }
.cx-split > * { min-width: 0; }
.cx-wide-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-32) var(--space-64); align-items: end; margin-bottom: var(--space-48); }
.cx-wide-head .lead { margin-top: 0; max-width: 44ch; }
@media (max-width: 899px) {
  .cx-sec { padding-block: var(--space-64); }
  .cx-split, .cx-split.is-left, .cx-split.is-flip, .cx-wide-head { grid-template-columns: minmax(0, 1fr); }
  .cx-split.is-left .cx-copy, .cx-split.is-flip .cx-copy { order: 0; }
  .cx-wide-head .lead { margin-top: var(--space-24); }
  .cx-wide-head { margin-bottom: var(--space-32); gap: 0; }
}
@media (max-width: 760px) { .cx-sec { padding-block: var(--space-48); } }
.cx-band { background: var(--paper-2); }  /* the page's one paper-2 band, behind the phone */
.cx-proof { margin-top: var(--space-24); max-width: 40ch; color: var(--text-2); font-size: var(--type-15); line-height: 1.5; }
.cx-copy .text-link { margin-top: var(--space-16); }
.cx-vis { min-width: 0; }
.cx-kpi { display: inline-flex; margin: var(--space-16) 0 0; padding: 4px var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--white); color: var(--text-2); font-size: var(--type-13); line-height: 1.4; font-weight: 700; }
.cx-pad { padding: var(--space-24); }
.is-flip .cx-kpi { display: flex; width: fit-content; margin-inline: auto; }
@media (max-width: 599px) { .cx-pad { padding: var(--space-16); } }
.cx-layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }

/* ---------- B: buying right, one proposal, two halves, ends approved ---------- */
.cx-buy-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cx-half { min-width: 0; padding: var(--space-24); }
.cx-half + .cx-half { border-left: 1px solid var(--line-soft); }
.cx-half-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-8); margin: 0 0 var(--space-16); }
.cx-half-head b { font-size: var(--type-20); line-height: 1.2; letter-spacing: -.02em; }
.cx-half-head span { color: var(--text-2); font-size: var(--type-15); font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-half-head span.is-big { color: var(--ink); font-size: var(--type-24); letter-spacing: -.02em; }
.cx-bars { display: grid; gap: var(--space-16); }
.cx-brow { display: grid; gap: 6px; }
.cx-btop { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-8); margin: 0; font-size: var(--type-15); line-height: 1.3; }
.cx-btop .n { font-weight: 700; }
.cx-btop .r { color: var(--text-2); font-size: var(--type-13); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-swapcell { display: grid; justify-items: end; }
.cx-swapcell > * { grid-area: 1 / 1; }
.cx-btop .r.is-exp { padding: 1px var(--space-8); border: 1px solid var(--ink); border-radius: var(--radius-8); color: var(--ink); }
.cx-btop .r.is-done { padding: 1px var(--space-8); border: 1px solid var(--blue); border-radius: var(--radius-8); background: var(--blue-soft); color: var(--blue-dark); }
.cx-track { position: relative; height: calc(14px * var(--ui-scale)); border-radius: var(--radius-8); background: var(--line-soft); }
.cx-track::after { content: ""; position: absolute; left: 30%; top: -4px; bottom: -4px; border-left: 1.5px solid var(--ink); opacity: .55; }
.cx-track > i { position: absolute; top: 0; bottom: 0; transform-origin: left; }
.cx-track .in { left: 0; width: calc(var(--w) * 1%); border-radius: var(--radius-8); border-top-right-radius: 0; border-bottom-right-radius: 0; background: var(--blue); }
.cx-track .over { left: 30%; width: calc(var(--w) * 1%); border-radius: var(--radius-8); border-top-left-radius: 0; border-bottom-left-radius: 0; background: var(--ink); opacity: .86; }
.cx-track .over.is-drain { opacity: .28; }  /* final state: no reorder, the surplus runs down */
.cx-track .in:only-child { border-radius: var(--radius-8); }
.cx-verdict { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin: 2px 0 0; padding: 3px var(--space-8); border: 1px solid var(--blue); border-radius: var(--radius-8); background: var(--blue-soft); color: var(--blue-dark); font-size: var(--type-13); line-height: 1.4; font-weight: 700; }
.cx-verdict svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.cx-chart { position: relative; aspect-ratio: 16 / 8; margin-top: var(--space-8); }
.cx-gap rect { fill: var(--ink); fill-opacity: .08; }
.cx-base path, .cx-ink path, .cx-ghost path, .cx-arrow path, .cx-blue path { vector-effect: non-scaling-stroke; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cx-base path { stroke: var(--line); stroke-width: 1; }
.cx-ink path { stroke: var(--ink); stroke-width: 3; }
.cx-ghost path { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .5; }
.cx-arrow path { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 6 5; }
.cx-blue path { stroke: var(--blue); stroke-width: 3; }
.cx-pt { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); border: 2px solid var(--white); }
.cx-lbl { position: absolute; margin: 0; font-size: var(--type-13); line-height: 1.25; font-weight: 700; }
.cx-lbl.is-gap { left: 56.25%; width: 31.25%; top: 36%; text-align: center; color: var(--ink); }
.cx-lbl.is-flag { left: 0; top: -2%; padding: 3px var(--space-8); border-radius: var(--radius-8); background: var(--blue); color: var(--white); }
.cx-lbl.is-arr { left: 2%; top: 27%; color: var(--blue-dark); }
.cx-axis { position: relative; height: calc(22px * var(--ui-scale)); margin-top: var(--space-8); color: var(--muted); font-size: var(--type-13); font-weight: 700; }
.cx-axis span { position: absolute; top: 0; white-space: nowrap; }
.cx-axis em { font-style: normal; font-weight: 400; }
.cx-axis .is-c { transform: translateX(-50%); }
.cx-axis .is-r { transform: translateX(-100%); }
.cx-who-row { display: grid; margin: var(--space-16) 0 0; padding-top: var(--space-16); border-top: 1px solid var(--line-soft); font-size: var(--type-15); line-height: 1.4; }
.cx-who-row > * { grid-area: 1 / 1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); margin: 0; }
.cx-alt { padding: 3px var(--space-8); border: 1px solid var(--blue); border-radius: var(--radius-8); background: var(--blue-soft); color: var(--blue-dark); font-size: var(--type-13); font-weight: 700; }
.cx-alt svg { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cx-alt.is-no { border: 1px solid var(--ink); background: none; color: var(--ink); }

/* approval footer: proposal + button, then the approved state */
.cx-approval { display: grid; border-top: 1px solid var(--line-soft); background: var(--paper); }
.cx-approval > :not(.is-after) { background: var(--blue-soft); }
.cx-approval > * { grid-area: 1 / 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-8) var(--space-16); margin: 0; padding: var(--space-16) var(--space-24); font-size: var(--type-13); line-height: 1.4; font-weight: 600; color: var(--muted); }
.cx-approval strong { color: var(--ink); font-weight: 700; }
.cx-approval .is-after { justify-content: flex-start; background: var(--ok-soft); color: var(--text-2); }
.cx-approval .is-after svg { flex: none; width: 14px; height: 14px; padding: 4px; box-sizing: content-box; border: 1px solid var(--line-soft); border-radius: 50%; background: var(--white); color: var(--ok); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cx-ap-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--space-16); border: 0; border-radius: var(--radius-8); background: var(--blue); color: var(--white); font-size: var(--type-15); font-weight: 700; }
.cx-ap-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 899px) {
  .cx-buy-body { grid-template-columns: minmax(0, 1fr); }
  .cx-half + .cx-half { border-left: 0; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 599px) {
  .cx-half { padding: var(--space-16); }
  .cx-chart { aspect-ratio: 4 / 3.2; }
  .cx-lbl.is-flag { top: 0; }
  .cx-lbl.is-arr { left: 12%; top: 29%; }
  .cx-lbl.is-gap { top: 52%; }
  .cx-axis em { display: none; }
  .cx-approval > * { padding: var(--space-16); }
}

/* ---------- C: transit line, ends approved and the customer told ---------- */
.cx-route-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-24); padding: var(--space-24); align-items: start; }
.cx-stops-wrap { --row: calc(52px * var(--ui-scale)); position: relative; }
.cx-stops { margin: 0; padding: 0; list-style: none; }
.cx-stops li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); min-height: var(--row); padding-left: calc(44px * var(--ui-scale)); border-radius: var(--radius-8); font-size: var(--type-15); line-height: 1.3; }
.cx-stops li::before { content: ""; position: absolute; left: calc(11px * var(--ui-scale)); width: calc(12px * var(--ui-scale)); height: calc(12px * var(--ui-scale)); border: 2px solid var(--ink); border-radius: 50%; background: var(--white); }
.cx-stops li:nth-child(-n+3)::before { border-color: var(--blue); }
.cx-stops .n { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-8); font-weight: 700; }
.cx-stops .n small { display: grid; width: 100%; color: var(--blue-dark); font-size: var(--type-13); font-weight: 700; }
.cx-stops .n small > * { grid-area: 1 / 1; }
.cx-stops .n small .is-ok { color: var(--blue-dark); }
.cx-stops .t { display: inline-flex; gap: var(--space-8); color: var(--muted); font-size: var(--type-13); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-stops .t s { text-decoration-thickness: 1.5px; }
.cx-stops .t b { color: var(--blue-dark); }
.cx-stops li.is-out { outline: 1.5px solid transparent; outline-offset: -1.5px; min-height: calc(var(--row) + 18px); }  /* alert look only while the problem is open; final state is calm */
.cx-rail-line { position: absolute; left: calc(16px * var(--ui-scale)); top: calc(var(--row) / 2); bottom: calc(var(--row) / 2); width: 2px; margin-left: -1px; background: var(--line); }
.cx-rail-fill { position: absolute; left: calc(16px * var(--ui-scale)); top: calc(var(--row) / 2); height: calc(var(--row) * 2); width: 3px; margin-left: -1.5px; border-radius: 0; background: var(--blue); transform-origin: top; }
.cx-van { position: absolute; z-index: 2; left: 0; top: calc(var(--row) * 2 + var(--row) / 2 - 16px * var(--ui-scale)); width: calc(32px * var(--ui-scale)); height: calc(32px * var(--ui-scale)); fill: var(--white); stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cx-van path { fill: none; }
.cx-delay { font-style: normal; }  /* the frame's one pill: .demo-pill.is-bad */
.cx-draft { border: 1px solid var(--line); border-radius: var(--radius-16); background: var(--paper); overflow: hidden; align-self: center; }
.cx-draft header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-8); padding: var(--space-16); border-bottom: 1px solid var(--line-soft); }
.cx-draft header b { font-size: var(--type-15); }
.cx-draft header span { color: var(--muted); font-size: var(--type-13); font-weight: 700; white-space: nowrap; }
.cx-draft p { margin: 0; padding: var(--space-16); color: var(--text-2); font-size: var(--type-15); line-height: 1.5; }
.cx-draft footer { display: grid; min-height: 52px; }
.cx-draft footer > * { grid-area: 1 / 1; display: flex; align-items: center; gap: var(--space-8); padding: 0 var(--space-16) var(--space-16); margin: 0; }
.cx-draft footer .is-after { align-self: stretch; padding: 0 var(--space-16); background: var(--white); border-top: 1px solid var(--line-soft); color: var(--text-2); font-size: var(--type-13); font-weight: 600; }
.cx-draft footer .is-after strong { color: var(--ink); }
.cx-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-16); border: 1px solid var(--ink); border-radius: var(--radius-8); background: var(--white); font-size: var(--type-13); font-weight: 700; }
.cx-btn.is-p { border-color: var(--blue); background: var(--blue); color: var(--white); }
@media (max-width: 899px) { .cx-route-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .cx-route-body { padding: var(--space-16); } }

/* ---------- D: margin, with returns; ends on the move approved ---------- */
.cx-sl-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: var(--space-8); color: var(--muted); font-size: var(--type-13); font-weight: 700; }
.cx-sl-head span:last-child { text-align: right; }
.cx-sl { --row: calc(46px * var(--ui-scale)); display: grid; grid-template-columns: minmax(calc(92px * var(--ui-scale)), 1fr) minmax(0, 1.2fr) minmax(calc(92px * var(--ui-scale)), 1fr); }
.cx-sl-col { margin: 0; padding: 0; list-style: none; }
.cx-sl-col li { display: grid; align-content: center; height: var(--row); font-size: var(--type-15); line-height: 1.25; }
.cx-sl-col li b { font-weight: 700; }
.cx-sl-col li span { color: var(--muted); font-size: var(--type-13); font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-sl-col.is-r { text-align: right; }
.cx-sl-col li.is-hot b, .cx-sl-col li.is-hot span { color: var(--blue-dark); }
.cx-sl-lines { position: relative; height: calc(var(--row) * 5); }
.cx-sl-lines path { vector-effect: non-scaling-stroke; fill: none; stroke-linecap: round; }
.cx-soft path { stroke: var(--ink); stroke-opacity: .28; stroke-width: 2; }
.cx-soft path.is-up { stroke-opacity: .6; }
.cx-hot path { stroke: var(--blue); stroke-width: 4; }

.cx-rets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-24); margin-top: var(--space-24); padding-top: var(--space-24); border-top: 1px solid var(--line-soft); }
.cx-rets > * { min-width: 0; }
.cx-rets h3 { margin: 0 0 var(--space-8); font-size: var(--type-15); line-height: 1.3; }
.cx-mini-docs { display: grid; gap: var(--space-8); }
.cx-doc { position: relative; padding: var(--space-8) var(--space-16); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--paper); font: 400 var(--type-13)/1.5 var(--mono); }
.cx-doc b { font-weight: 700; color: var(--ink); }
.cx-doc.is-credit { border-color: var(--blue); background: var(--white); }
.cx-doc .cx-hand { display: block; font: 700 var(--type-13)/1.4 var(--sans); color: var(--ink); }
.cx-doc .cx-hand::after { content: ""; display: block; height: 1.5px; margin-top: 2px; background: var(--blue); border-radius: 0; }
.cx-doc-to { justify-self: start; margin-left: var(--space-16); width: calc(18px * var(--ui-scale)); height: calc(18px * var(--ui-scale)); fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
.cx-cause-bar { display: flex; height: calc(18px * var(--ui-scale)); border-radius: var(--radius-8); overflow: hidden; background: var(--line-soft); }
.cx-cause-bar i { display: block; height: 100%; width: calc(var(--w) * 1%); transform-origin: left; border-right: 2px solid var(--white); }
.cx-cause-bar i:last-child { border-right: 0; }
.cx-legend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px var(--space-16); margin: var(--space-8) 0 0; padding: 0; list-style: none; }
.cx-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 6px; font-size: var(--type-13); line-height: 1.3; }
.cx-legend li i { width: 10px; height: 10px; margin-top: 4px; border-radius: var(--radius-8); }
.cx-legend li b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-legend li span { display: block; color: var(--muted); }

.cx-move { display: grid; margin-top: var(--space-24); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--paper); overflow: hidden; }
.cx-move > * { grid-area: 1 / 1; margin: 0; }
.cx-move-a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8) var(--space-16); padding: var(--space-16); font-size: var(--type-15); line-height: 1.4; }
.cx-move-a strong { display: block; }
.cx-move-b { display: grid; gap: var(--space-8); padding: var(--space-16); background: var(--ok-soft); font-size: var(--type-15); line-height: 1.4; }
.cx-move-b p { margin: 0; }
.cx-move-b svg { width: 14px; height: 14px; margin-right: 6px; vertical-align: -1px; color: var(--ok); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cx-mbar { position: relative; height: calc(14px * var(--ui-scale)); border-radius: var(--radius-8); background: var(--line-soft); }
.cx-mbar i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: var(--radius-8); transform-origin: left; }
.cx-mbar .to { width: 80%; background: var(--blue); }
.cx-mbar .from { width: 23%; background: var(--ink); opacity: .86; z-index: 1; }
.cx-mbar-l { display: flex; justify-content: space-between; gap: var(--space-8); color: var(--muted); font-size: var(--type-13); font-weight: 700; }
.cx-mbar-l b { color: var(--blue-dark); }
@media (max-width: 599px) {
  .cx-rets { grid-template-columns: minmax(0, 1fr); gap: var(--space-16); }
  .cx-move-a .cx-ap-btn { width: 100%; justify-content: center; }
}

/* ---------- CTA bands: one family, soft light blue (never the home's dark band) ---------- */
.cx-cta-band { padding-block: var(--space-96); background: color-mix(in srgb, var(--blue) 13%, var(--paper)); }
.cx-cta-in { display: grid; justify-items: start; gap: var(--space-24); max-width: 62ch; }
.cx-cta-in h2 { text-wrap: balance; }
.cx-cta-in p { margin: 0; color: var(--text-2); font-size: var(--type-20); line-height: 1.5; max-width: 52ch; }
.cx-cta-in .vf-cta { margin-top: var(--space-8); }
.cx-seen, .cx-pick { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: 0; padding: 0; list-style: none; }
.cx-seen li { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-16); border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--muted); font-size: var(--type-15); font-weight: 700; opacity: .7; }
.cx-seen li.is-seen { border-color: var(--blue); background: var(--white); color: var(--blue-dark); opacity: 1; }
.cx-seen svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cx-pick button { min-height: 44px; padding: 0 var(--space-24); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font-size: var(--type-15); font-weight: 700; cursor: pointer; }
.cx-pick button:hover { border-color: var(--blue); color: var(--blue-dark); }
/* The close (#contatti) sits on the shared sector ask surface (problem-cards.css .sector-close / .sector-ask). */
.cx-mail { color: var(--text-2); font-size: var(--type-15); }
@media (max-width: 899px) { .cx-cta-band { padding-block: var(--space-64); } }
@media (max-width: 599px) { .cx-cta-in .vf-cta { width: 100%; } .cx-cta-in p { font-size: var(--type-17); } }

/* ---------- v3 motion ---------- */
@keyframes ax-barx { from { transform: scaleX(0); } }
@keyframes ax-wipe { from { clip-path: inset(-6px 100% -6px -6px); } to { clip-path: inset(-6px -6px -6px -6px); } }
@keyframes ax-line-x { from { transform: scaleY(0); } }
@keyframes ax-van { from { transform: translateY(calc(var(--row) * -2)); } }
@keyframes ax-life { 0% { opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ax-drainfade { from { opacity: .86; } }
@keyframes ax-alertrow { 0% { background: transparent; outline-color: transparent; } 8%, 92% { background: var(--blue-soft); outline-color: var(--blue); } 100% { background: transparent; outline-color: transparent; } }
.cx-gone { opacity: 0; }  /* shown only while the problem is on screen; final state is the solved one */
@media (prefers-reduced-motion: no-preference) {
  .js .cx-anim.is-play .ax-barx { animation: ax-barx .33s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
  .js .cx-anim.is-play .ax-barx.ax-drain { animation: ax-barx .33s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both, ax-drainfade .39s ease-out var(--d2, 4.07s) both; }
  .js .cx-anim.is-play .ax-wipe { animation: ax-wipe var(--t, .44s) cubic-bezier(.4,0,.2,1) var(--d, 0s) both; }
  .js .cx-anim.is-play .ax-line-x { animation: ax-line-x .66s ease-in-out var(--d, 0s) both; }
  .js .cx-anim.is-play .ax-van { animation: ax-van .66s ease-in-out var(--d, 0s) both; }
  .js .cx-anim.is-play .cx-stops li.is-out { animation: ax-alertrow 1.87s linear 1.65s both; }
  .js .cx-anim.is-play .cx-gone { animation: ax-life var(--life, 2.2s) linear var(--d, 0s) both; }
  .js .cx-anim.is-play .cx-gone.ax-wipe { animation: ax-wipe var(--t, .44s) cubic-bezier(.4,0,.2,1) var(--d, 0s) both, ax-life var(--life, 2.2s) linear var(--d, 0s) both; }
  .js .cx-anim.is-play .cx-ap-btn { animation: ax-press .22s ease-in-out var(--dp, 3.85s) both; }
}

/* inline check icons inside text (the base resets svg to display:block) */
.cx-btop .r svg, .cx-stops .n small svg, .cx-move-b svg, .cx-alt svg { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cx-draft footer .is-after svg { flex: none; width: 14px; height: 14px; padding: 4px; box-sizing: content-box; border: 1px solid var(--line-soft); border-radius: 50%; background: var(--white); color: var(--ok); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cx-doc.is-credit { white-space: normal; }

.cx-btop { flex-wrap: wrap; }
.cx-swapcell { margin-left: auto; }

/* ======================================================================
   v4: Acquisti (four inputs -> one proposal), Margine per cliente (hero waterfall per customer + pipeline)
   ====================================================================== */
.cx-split.is-wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
.cx-split.is-wide .cx-copy { padding-top: var(--space-24); }
@media (max-width: 899px) { .cx-split.is-wide { grid-template-columns: minmax(0, 1fr); } .cx-split.is-wide .cx-copy { padding-top: 0; } }
/* ---------- A: four inputs converge into one proposal ---------- */
.cx-flow { display: grid; grid-template-columns: minmax(0, 1fr) calc(64px * var(--ui-scale)) minmax(0, 1.6fr); align-items: stretch; padding: var(--space-24); }
.cx-inputs { position: relative; display: grid; grid-template-rows: repeat(4, 1fr); }
.cx-in { position: relative; display: grid; align-content: center; gap: var(--space-8); margin-block: 6px; padding: 12px var(--space-16); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--paper); }
.cx-in-t { margin: 0; }
.cx-in-t b { display: block; font-size: var(--type-15); line-height: 1.3; }
.cx-in-t span { display: block; color: var(--muted); font-size: var(--type-13); line-height: 1.35; }
.cx-mini { height: calc(30px * var(--ui-scale)); }
.cx-in .cx-curve { height: calc(38px * var(--ui-scale)); }
.cx-curve { width: 100%; max-width: none; overflow: visible; }
.cx-curve path { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.cx-curve path.area { fill: var(--blue-soft); stroke: none; }
.cx-curve circle { fill: var(--blue); stroke: var(--white); stroke-width: 2; }
.cx-wk { display: flex; align-items: flex-end; gap: 4px; }
.cx-wk i { flex: 1; height: var(--h); border-radius: 0; background: var(--blue); transform-origin: bottom; }
.cx-rot { display: grid; align-content: center; gap: 6px; }
.cx-rot i { display: block; height: calc(10px * var(--ui-scale)); border-radius: 0; transform-origin: left; width: calc(var(--w) * 1%); }
.cx-rot .fast { background: var(--blue); }
.cx-rot .slow { background: var(--ink); opacity: .5; }
.cx-alt2 { display: flex; align-items: center; gap: var(--space-8); }
.cx-alt2 span { padding: 3px var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--white); font-size: var(--type-13); font-weight: 700; }
.cx-alt2 svg { width: 16px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-conn { width: 100%; height: 100%; max-width: none; overflow: visible; }
.cx-conn path { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.cx-bus { display: none; }
.cx-prop { align-self: center; border: 1px solid var(--blue); border-radius: var(--radius-16); background: var(--white); overflow: hidden; }
.cx-prop-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-8); margin: 0; padding: var(--space-16); border-bottom: 1px solid var(--line-soft); background: var(--blue-soft); }
.cx-prop-h b { font-size: var(--type-17); line-height: 1.2; letter-spacing: -.01em; }
.cx-prop-h span { color: var(--muted); font-size: var(--type-13); font-weight: 700; }
.cx-prop-rows { margin: 0; padding: 0; list-style: none; }
.cx-prop-rows li { display: grid; gap: 2px; padding: 10px var(--space-16); }
.cx-prop-rows li + li { border-top: 1px solid var(--line-soft); }
.cx-prop-rows p { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-8); margin: 0; font-size: var(--type-15); line-height: 1.35; }
.cx-prop-rows em { padding: 0 var(--space-8); border: 1px solid var(--blue); border-radius: var(--radius-8); background: var(--blue-soft); color: var(--blue-dark); font-size: var(--type-13); font-style: normal; font-weight: 700; white-space: nowrap; }
.cx-prop-rows strong { color: var(--blue-dark); font-weight: 700; }
.cx-prop-rows strong.is-no { color: var(--ink); }
.cx-prop-rows span { color: var(--muted); font-size: var(--type-13); font-weight: 600; text-align: right; }
@media (max-width: 899px) {
  .cx-flow { grid-template-columns: minmax(0, 1fr); row-gap: calc(var(--space-32) + 4px); padding: var(--space-16); }
  .cx-conn { display: none; }
  .cx-inputs { grid-template-rows: none; gap: var(--space-8); padding-left: var(--space-32); }
  .cx-in { margin-block: 0; }
  .cx-in::before { content: ""; position: absolute; left: calc(-1 * var(--space-24)); top: 50%; width: var(--space-24); border-top: 2px solid var(--blue); }
  .cx-bus { display: block; position: absolute; left: calc(var(--space-8) + 1px); top: 28px; bottom: calc(-1 * (var(--space-32) + 4px)); width: 2px; border-radius: 0; background: var(--blue); transform-origin: top; }
  .cx-bus::after { content: ""; position: absolute; left: -5px; bottom: -1px; border: 6px solid transparent; border-top: 8px solid var(--blue); border-bottom: 0; }
  .cx-prop { align-self: stretch; }
}

/* ---------- B: margin per customer ---------- */
.cx-cust-body { display: grid; gap: var(--space-24); padding: var(--space-24); }
.cx-pickers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); margin: 0; padding: 0; list-style: none; }
.cx-pickers li { display: grid; gap: 2px; padding: var(--space-8) 12px; border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--white); }
.cx-pickers li.is-on { border-color: var(--blue); background: var(--blue-soft); }
.cx-pickers b { font-size: var(--type-15); line-height: 1.3; }
.cx-pickers span { color: var(--text-2); font-size: var(--type-13); font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-pickers em { color: var(--muted); font-size: var(--type-13); font-style: normal; font-weight: 600; }
.cx-pickers li.is-on em { color: var(--blue-dark); font-weight: 700; }
.cx-eq { display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--space-8) var(--space-16); }
.cx-eq > div { display: grid; gap: 2px; }
.cx-eq small { color: var(--muted); font-size: var(--type-13); font-weight: 700; }
.cx-eq b { font-size: var(--type-32); line-height: 1.1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.cx-eq i { padding-bottom: 4px; color: var(--muted); font-size: var(--type-24); font-style: normal; }
.cx-eq .is-now b { color: var(--blue-dark); }
.cx-swapcell2 { display: grid; }
.cx-eq .cx-swapcell2 > small { grid-area: 1 / 1; }
.cx-eq .cx-swapcell2 > b { grid-area: 2 / 1; }
.cx-mid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-24) var(--space-32); align-items: start; }
.cx-mid > * { min-width: 0; }
.cx-wfwrap { display: grid; }
.cx-wfwrap > * { grid-area: 1 / 1; }
.cx-cust .cx-wf-chart { margin-top: 0; }
@media (min-width: 600px) { .cx-cust .cx-step { grid-template-rows: calc(246px * var(--ui-scale)) auto; } }
.cx-rules-h { margin: 0 0 var(--space-8); font-size: var(--type-15); font-weight: 700; }
.cx-rules ul { margin: 0; padding: 0; list-style: none; }
.cx-rules li, .cx-rules li > p { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-8); margin: 0; padding: 7px 0; font-size: var(--type-15); line-height: 1.3; }
.cx-rules li { border-top: 1px solid var(--line-soft); }
.cx-rules li > p { padding: 0; }
.cx-rules b { font-size: var(--type-13); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-rules li.cx-rule-swap { display: grid; grid-template-columns: minmax(0, 1fr); }
.cx-rules li.cx-rule-swap > p { grid-area: 1 / 1; }
.cx-tag { display: inline-block; min-width: calc(52px * var(--ui-scale)); padding: 1px var(--space-8); border-radius: var(--radius-8); background: var(--ink); color: var(--white); font-size: var(--type-13); font-weight: 700; text-align: center; }
.cx-tag.is-ok { border: 1px solid var(--blue); background: var(--blue-soft); color: var(--blue-dark); padding-block: 0; }
.cx-tag.is-new { background: var(--blue); }
.cx-ltv { display: grid; gap: 2px; margin-top: var(--space-16); padding: var(--space-16); border: 1px solid var(--blue); border-radius: var(--radius-8); background: var(--blue-soft); }
.cx-ltv small { color: var(--blue-dark); font-size: var(--type-13); font-weight: 700; }
.cx-ltv .cx-swapcell2 > b { grid-area: 1 / 1; font-size: var(--type-32); line-height: 1.1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.cx-ltv em { color: var(--text-2); font-size: var(--type-13); font-style: normal; }
.cx-pipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); padding-top: var(--space-24); border-top: 1px solid var(--line-soft); }
.cx-pipe > div { min-width: 0; display: grid; align-content: start; gap: var(--space-8); }
.cx-pipe-h { margin: 0; font-size: var(--type-15); }
.cx-pc { display: grid; gap: 4px; align-content: start; padding: 12px var(--space-16); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--paper); height: 100%; }
.cx-pc b { font-size: var(--type-15); line-height: 1.3; }
.cx-pc > span { color: var(--text-2); font-size: var(--type-13); line-height: 1.4; }
.cx-pc em { display: inline-flex; align-items: center; gap: 4px; justify-self: start; margin-top: 4px; padding: 1px var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--white); color: var(--text-2); font-size: var(--type-13); font-style: normal; font-weight: 700; }
.cx-pc em.is-open { border-style: solid; border-color: var(--ink); color: var(--ink); }
.cx-pc em.is-set { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }
.cx-pc em svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cx-pc .is-owner { display: grid; justify-items: start; margin-top: 4px; }
.cx-pc .is-owner > em { grid-area: 1 / 1; margin-top: 0; }
@media (max-width: 899px) { .cx-mid { grid-template-columns: minmax(0, 1fr); } .cx-pipe { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) {
  .cx-cust-body { padding: var(--space-16); gap: var(--space-16); }
  .cx-pickers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-eq b { font-size: var(--type-24); }
}

/* tidy */
.cx-approval .is-after { flex-wrap: nowrap; align-items: center; }
.cx-buy-result {
  padding-inline: .13em; border-radius: calc(var(--radius-8) / 2); background: var(--white);
  color: var(--blue-dark); font-weight: 900; white-space: nowrap;
}
.cx-ai .cx-typing { margin-top: calc(var(--type-13) * 1.4 + 4px); }
@media (min-width: 600px) { .cx-cust .cx-step { grid-template-rows: calc(286px * var(--ui-scale)) auto; } }
@media (max-width: 440px) {
  .cx-eq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
  .cx-eq i { display: none; }
  .cx-eq b { font-size: var(--type-20); }
}
/* v4.1: longer order list with a reason on every line; products + agent tips in the margin frame */
.cx-prop-rows li { gap: 3px; padding: 8px var(--space-16); }
.cx-prop-rows p.why { justify-content: flex-start; align-items: baseline; flex-wrap: wrap; gap: 2px var(--space-8); }
.cx-prop-rows p.why span { color: var(--text-2); font-size: var(--type-13); font-weight: 400; text-align: left; }
.cx-prop-rows p:first-child { flex-wrap: wrap; }
.cx-prop-rows p:first-child > span { color: var(--muted); font-size: var(--type-13); font-weight: 600; text-align: right; }
.cx-prop-rows p:first-child > span strong { font-size: var(--type-13); }
.cx-prop-rows b { font-size: var(--type-15); }
.cx-in { padding-block: 10px; }
.cx-prods { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-24) var(--space-32); padding-top: var(--space-24); border-top: 1px solid var(--line-soft); }
.cx-prods > div { min-width: 0; }
.cx-sub { margin: 0 0 var(--space-8); font-size: var(--type-15); }
.cx-pm, .cx-tips { margin: 0; padding: 0; list-style: none; }
.cx-pm li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: var(--space-8); padding: 6px 0; font-size: var(--type-15); line-height: 1.3; }
.cx-pm li + li { border-top: 1px solid var(--line-soft); }
.cx-pm i { display: block; height: calc(8px * var(--ui-scale)); border-radius: 0; background: var(--ink); opacity: .86; width: calc(var(--w) * 1%); max-width: 100%; }
.cx-pm b { font-size: var(--type-13); font-variant-numeric: tabular-nums; }
.cx-note { margin: var(--space-8) 0 0; color: var(--muted); font-size: var(--type-13); }
.cx-tips li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-8); align-items: baseline; padding: 8px 0; font-size: var(--type-15); line-height: 1.4; }
.cx-tips li + li { border-top: 1px solid var(--line-soft); }
.cx-tips em { padding: 0 var(--space-8); border: 1px solid var(--blue); border-radius: var(--radius-8); background: var(--blue-soft); color: var(--blue-dark); font-size: var(--type-13); font-style: normal; font-weight: 700; white-space: nowrap; }
.cx-tips strong { color: var(--blue-dark); font-weight: 700; }
.cx-pickers .cx-swapcell2 > em { grid-area: 1 / 1; }
@media (max-width: 899px) { .cx-prods { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .cx-pm li { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) auto; } }

/* ======================================================================
   v4.2: hero kicker, order document, one-client margin
   ====================================================================== */
.cx-hero-copy .kicker + h1 { margin-top: 0; }

/* ---------- A: inputs -> one order document ---------- */
@media (min-width: 900px) {
  .cx-flow { grid-template-columns: minmax(0, 1fr) calc(56px * var(--ui-scale)) minmax(0, 1.9fr); }
  .cx-inputs { grid-template-rows: 1fr 1.5fr 1fr 1fr; }
}
.cx-inputs { gap: 12px; }
.cx-in { margin-block: 0; align-content: center; }
.cx-conn2 { position: relative; --bt: 60px; --bb: 60px; --am: 50%; }
.cx-conn2 .cb { position: absolute; left: calc(28px * var(--ui-scale)); top: var(--bt); bottom: var(--bb); width: 2px; margin-left: -1px; background: var(--blue); border-radius: 0; transform-origin: top; }
.cx-conn2 .ca { position: absolute; left: calc(28px * var(--ui-scale)); right: 0; top: var(--am); height: 0; border-top: 2px solid var(--blue); transform-origin: left; }
.cx-conn2 .ca::after { content: ""; position: absolute; right: -1px; top: -6px; border: 5px solid transparent; border-left: 8px solid var(--blue); border-right: 0; }
@media (min-width: 900px) {
  .cx-in::after { content: ""; position: absolute; left: 100%; top: 50%; width: calc(28px * var(--ui-scale)); border-top: 2px solid var(--blue); transform-origin: left; }
}
@media (max-width: 899px) { .cx-conn2 { display: none; } .cx-inputs { grid-template-rows: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .cx-anim:not(.is-play) .cx-in::after { opacity: 0; }
  .js .cx-anim.is-play .cx-in::after { animation: ax-barx .22s ease-out var(--ds, 1.1s) both; }
}
/* stagione: 12 months, oggi in November */
.cx-season { position: relative; height: calc(54px * var(--ui-scale)); }
.cx-season svg { width: 100%; height: 100%; max-width: none; overflow: visible; }
.cx-season path { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.cx-season path.area { fill: var(--blue-soft); stroke: none; }
.cx-season path.fc { stroke-dasharray: 4 4; }
.cx-season .today { position: absolute; left: calc(105 / 120 * 100%); top: 0; bottom: 0; border-left: 1.5px solid var(--ink); opacity: .6; }
.cx-season .today::after { content: ""; position: absolute; left: -5.5px; top: calc(20 / 44 * 100% - 5px); width: 9px; height: 9px; border-radius: 50%; background: var(--blue); border: 2px solid var(--white); }
.cx-season .today-l { position: absolute; left: calc(105 / 120 * 100%); top: calc(-1 * var(--space-8)); transform: translate(-100%, 0); padding: 0 6px; border-radius: var(--radius-8); background: var(--ink); color: var(--white); font-size: var(--type-13); line-height: 1.4; margin-left: -6px; }
.cx-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 4px 0 0; color: var(--muted); font-size: var(--type-13); line-height: 1.2; font-weight: 600; text-align: center; }
.cx-months .is-now { color: var(--blue-dark); font-weight: 800; }
/* già promesso: stock vs commitments */
.cx-prm { display: grid; gap: 4px; }
.cx-prm p { display: flex; justify-content: space-between; gap: var(--space-8); margin: 4px 0 0; font-size: var(--type-13); line-height: 1.2; }
.cx-prm p b { font-weight: 700; }
.cx-prm p span { color: var(--blue-dark); font-weight: 700; }
.cx-prm .cx-leg { justify-content: flex-start; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.cx-pbar { position: relative; display: flex; height: calc(10px * var(--ui-scale)); }
.cx-pbar i { display: block; height: 100%; width: calc(var(--w) * 1%); transform-origin: left; }
.cx-pbar .st { background: var(--blue); border-radius: 0; }
.cx-pbar .gp { border: 1.5px solid var(--blue); border-left: 0; border-radius: 0; background: var(--blue-soft); }
.cx-leg i { display: inline-block; width: 12px; height: 8px; border-radius: var(--radius-8); }
.cx-leg .k1 { background: var(--blue); }
.cx-leg .k2 { border: 1.5px solid var(--blue); background: var(--blue-soft); margin-left: 6px; }
/* the order document */
.cx-order { align-self: stretch; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--white); box-shadow: var(--shadow-1); overflow: hidden; }
.cx-order header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-16); padding: var(--space-16); border-bottom: 1px solid var(--line); background: var(--paper); }
.cx-order header b { display: block; font-size: var(--type-17); line-height: 1.25; }
.cx-order header span { color: var(--muted); font-size: var(--type-13); }
.cx-order header .to { text-align: right; }
.cx-order header .to small { display: block; color: var(--muted); font-size: var(--type-13); font-weight: 600; }
.cx-order header .to b { font-size: var(--type-15); }
.cx-order header em { display: grid; justify-items: start; margin-top: 4px; font-style: normal; }
.cx-order header em > i { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 4px; padding: 0 var(--space-8); border: 1px solid var(--ink); border-radius: var(--radius-8); font-size: var(--type-13); font-style: normal; font-weight: 700; }
.cx-order header em .st-s { border: 1px solid var(--ok); border-style: solid; background: var(--ok-soft); color: var(--ink); }
.cx-order header em svg { width: 12px; height: 12px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cx-colh { display: grid; grid-template-columns: 76px minmax(0, 1fr) 58px 104px; gap: var(--space-8); margin: 0; padding: 6px var(--space-16); border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: var(--type-13); font-weight: 700; }
.cx-colh span:nth-child(1) { grid-column: 1 / 3; }
.cx-colh span:nth-child(2) { display: none; }
.cx-colh span:nth-child(3) { grid-column: 4; text-align: right; }
.cx-colh.is-x { grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-soft); background: var(--paper); }
.cx-colh.is-x span:nth-child(1) { grid-column: 1; }
.cx-ol { margin: 0; padding: 0; list-style: none; }
.cx-ol li { display: grid; grid-template-columns: 76px minmax(0, 1fr) 58px 104px; grid-template-areas: "mv nm sp qty" "mv why sp qty"; column-gap: var(--space-8); row-gap: 1px; align-items: center; padding: 8px var(--space-16); }
.cx-ol li + li { border-top: 1px solid var(--line-soft); }
.cx-ol .mv { grid-area: mv; }
.cx-ol .nm { grid-area: nm; font-size: var(--type-15); line-height: 1.3; }
.cx-ol .sp { grid-area: sp; }
.cx-ol .qty { grid-area: qty; text-align: right; font-size: var(--type-13); line-height: 1.3; color: var(--text-2); }
.cx-ol .qty b { font-size: var(--type-17); color: var(--ink); font-variant-numeric: tabular-nums; }
.cx-ol .qty small { display: block; color: var(--muted); font-size: var(--type-13); font-weight: 600; }
.cx-ol .why { grid-area: why; color: var(--text-2); font-size: var(--type-13); line-height: 1.4; }
.cx-ol .why em { margin-right: 6px; padding: 0 6px; border: 1px solid var(--blue); border-radius: var(--radius-8); background: var(--blue-soft); color: var(--blue-dark); font-size: var(--type-13); font-style: normal; font-weight: 700; white-space: nowrap; }
.cx-ol.is-x li { opacity: .9; }
.cx-ol.is-x .nm { color: var(--text-2); }
.cx-ol.is-x .why em { border-color: var(--ink); background: var(--white); color: var(--ink); }
.cx-mv-base, .mv { display: inline-flex; align-items: center; justify-content: center; gap: 4px; justify-self: start; padding: 2px 6px; border: 1px solid var(--line); border-radius: var(--radius-8); font-size: var(--type-13); line-height: 1.3; font-weight: 700; white-space: nowrap; }
.mv .tri { width: 9px; height: 9px; fill: currentColor; }
.mv.up { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }
.mv.down { border-color: var(--ink); background: var(--white); color: var(--ink); }
.mv.eq { color: var(--muted); }
.mv.eq i { width: 8px; height: 2px; background: currentColor; }
.cx-spark { width: 56px; height: 18px; max-width: none; overflow: visible; justify-self: center; }
.cx-spark path { fill: none; stroke: var(--ink); stroke-opacity: .5; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cx-spark circle { stroke: none; }
.cx-spark.is-up circle { fill: var(--blue); }
.cx-spark.is-down circle { fill: var(--ink); }
.cx-tot2 { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-8); margin: 0; padding: var(--space-8) var(--space-16); border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: var(--type-13); font-weight: 600; }
.cx-tot2 b { color: var(--ink); font-size: var(--type-17); }
@media (max-width: 599px) {
  .cx-colh { grid-template-columns: minmax(0, 1fr); }
  .cx-colh span:nth-child(1) { grid-column: 1; }
  .cx-colh span:nth-child(3) { display: none; }
  .cx-ol li { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "mv nm qty" "why why why"; row-gap: 6px; padding: 10px var(--space-16); }
  .cx-ol .sp, .cx-spark { display: none; }
  .cx-order header { flex-wrap: wrap; }
  .cx-order header .to { text-align: left; }
}

/* ---------- B: one client ---------- */
.cx-items { min-width: 0; }
.cx-sub { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-8); }
.cx-tot { display: flex; align-items: baseline; gap: var(--space-16); margin: 0 0 var(--space-8); font-size: var(--type-15); color: var(--text-2); }
.cx-tot b { color: var(--ink); font-size: var(--type-17); font-variant-numeric: tabular-nums; }
.cx-tot b.is-up { color: var(--blue-dark); }
.cx-tot .cx-swapcell2 > span { grid-area: 1 / 1; }
.cx-it-h { display: grid; grid-template-columns: minmax(0, 1fr) 64px 134px; gap: var(--space-8); margin: 0; padding: 4px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--type-13); font-weight: 700; }
.cx-it-h span:nth-child(2) { text-align: right; }
.cx-it { --u: 5px; --z: 40px; --mw: 96px; margin: 0; padding: 0; list-style: none; }
.cx-it li { display: grid; grid-template-columns: minmax(0, 1fr) 64px 134px; gap: var(--space-8); align-items: center; padding: 6px 0; font-size: var(--type-15); line-height: 1.25; }
.cx-it li + li { border-top: 1px solid var(--line-soft); }
.cx-it .r { text-align: right; color: var(--text-2); font-size: var(--type-13); font-weight: 600; font-variant-numeric: tabular-nums; }
.cx-it .m { display: grid; grid-template-columns: var(--mw) auto; align-items: center; gap: 6px; }
.cx-it .m b { font-size: var(--type-13); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-it .m b.is-up { color: var(--blue-dark); }
.cx-it .m .cx-swapcell2 > b { grid-area: 1 / 1; }
.cx-it .mb { position: relative; height: 10px; }
.cx-it .mb::before { content: ""; position: absolute; left: var(--z); top: -3px; bottom: -3px; border-left: 1px solid var(--ink); opacity: .4; }
.cx-it .mb i { position: absolute; top: 0; bottom: 0; left: calc(var(--z) - var(--neg, 0) * var(--abs) * var(--u)); width: calc(var(--abs) * var(--u)); border-radius: 0; background: var(--ink); opacity: .86; transform-origin: left; }
.cx-it .mb i.b1 { left: var(--z); background: var(--blue); opacity: 1; z-index: 1; }
.cx-it li.is-rest { color: var(--text-2); }
.cx-it li.is-rest .n { font-weight: 600; }
.cx-prods { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.cx-prods .cx-ltv { margin-top: 0; }
.cx-prods .cx-sub { margin-bottom: var(--space-8); }
.cx-prods .is-owner { display: grid; justify-items: start; }
.cx-prods .is-owner > em { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 4px; padding: 0 var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-8); font-size: var(--type-13); font-style: normal; font-weight: 700; }
.cx-prods .is-owner em.is-open { border-style: solid; border-color: var(--ink); }
.cx-prods .is-owner em.is-set { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }
.cx-prods .is-owner em svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 899px) { .cx-prods { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) {
  .cx-it { --u: 3.5px; --z: 28px; --mw: 66px; }
  .cx-it-h, .cx-it li { grid-template-columns: minmax(0, 1fr) 54px 98px; }
}

/* v4.2 fixes */
.cx-colh, .cx-ol li { grid-template-columns: 120px minmax(0, 1fr) 58px 104px; }
.cx-rot4 { display: grid; gap: 6px; }
.cx-rot4 p { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: var(--space-8); margin: 0; font-size: var(--type-13); line-height: 1.2; }
.cx-rot4 p span { font-weight: 600; }
.cx-rot4 i { display: block; height: calc(10px * var(--ui-scale)); border-radius: 0; width: calc(var(--w) * 1%); transform-origin: left; }
.cx-rot4 .fast { background: var(--blue); }
.cx-rot4 .slow { background: var(--ink); opacity: .5; }
.cx-alt3 { display: grid; gap: 8px; }
.cx-alt3 .cx-alt2 { margin: 0; display: flex; align-items: center; gap: var(--space-8); }
.cx-it { --u: 4px; --z: 32px; --mw: 76px; }
.cx-it-h, .cx-it li { grid-template-columns: minmax(0, 1fr) 62px 156px; }
@media (max-width: 599px) {
  .cx-colh, .cx-ol li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cx-colh { grid-template-columns: minmax(0, 1fr); }
  .cx-it { --u: 3px; --z: 24px; --mw: 56px; }
  .cx-it-h, .cx-it li { grid-template-columns: minmax(0, 1fr) 54px 112px; }
}

@media (min-width: 600px) { .cx-cust .cx-step { grid-template-rows: calc(334px * var(--ui-scale)) auto; } }
@media (max-width: 599px) { .cx-it-h, .cx-it li { grid-template-columns: minmax(0, 1fr) 50px 126px; } }
.cx-it .r { white-space: nowrap; }
@media (max-width: 599px) { .cx-it-h, .cx-it li { grid-template-columns: minmax(0, 1fr) 60px 118px; } .cx-it { --mw: 52px; --z: 22px; } }

/* v4.3: swap suggestions right on the weakest product lines */
.cx-it li.has-sw { row-gap: 2px; }
.cx-it .sw { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px var(--space-8); margin: 0; padding-bottom: 2px; color: var(--text-2); font-size: var(--type-13); line-height: 1.4; }
.cx-it .sw em { padding: 0 6px; border: 1px solid var(--blue); border-radius: var(--radius-8); background: var(--blue-soft); color: var(--blue-dark); font-size: var(--type-13); font-style: normal; font-weight: 700; white-space: nowrap; }
.cx-it .sw strong { color: var(--blue-dark); font-weight: 700; }
@media (min-width: 600px) { .cx-cust .cx-step { grid-template-rows: calc(388px * var(--ui-scale)) auto; } }

/* speed x0.55 applied */
.cx-it .sw { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: var(--space-8); }

/* v4.4: Acquisti simplified: Tendenze (3), two supplier orders, note for agents */
.cx-colt { margin: 0 0 var(--space-8); color: var(--muted); font-size: var(--type-13); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
@media (min-width: 900px) { .cx-flow { grid-template-columns: minmax(0, 1fr) calc(56px * var(--ui-scale)) minmax(0, 1.6fr); } .cx-inputs { grid-template-rows: auto 1fr 1.3fr 1fr; } }
.cx-inputs { gap: 14px; }
.cx-inputs .cx-colt { margin: 0; }
.cx-in { padding: 14px var(--space-16); gap: 10px; }
.cx-orders { display: grid; align-content: start; gap: var(--space-16); min-width: 0; }
.cx-orders .cx-colt { margin: 0 0 -4px; }
.cx-orders .cx-order { align-self: auto; }
.cx-order header .to b { font-size: var(--type-20); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cx-ol.is-2 li { grid-template-columns: 124px minmax(0, 1fr) 96px; grid-template-areas: "mv nm qty" "mv why qty"; column-gap: var(--space-16); row-gap: 2px; padding: 12px var(--space-16); }
.cx-ol.is-2 .nm { font-size: var(--type-15); }
.cx-ol.is-2 .why { color: var(--text-2); font-size: var(--type-13); line-height: 1.4; }
.cx-ol.is-2 .qty { font-size: var(--type-13); }
.cx-ol.is-2 li.is-off .nm { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.cx-ol.is-2 li.is-off .why { color: var(--muted); }
.cx-ol.is-2 li.is-off .qty b { color: var(--muted); }
.cx-agn { padding: var(--space-16); border: 1px solid var(--blue); border-radius: var(--radius-8); background: var(--blue-soft); }
.cx-agn p { margin: 0; color: var(--text-2); font-size: var(--type-15); line-height: 1.5; }
.cx-agn .cx-agn-h { margin-bottom: 4px; color: var(--blue-dark); }
.cx-agn strong { color: var(--ink); font-weight: 700; }
/* già promesso: contrast, more vs less */
.cx-cmp { display: grid; gap: var(--space-16); }
.cx-cmp-r { display: grid; gap: 4px; }
.cx-cmp-r > p { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); margin: 0; font-size: var(--type-15); }
.cx-cmp-r .ln { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; align-items: center; gap: 8px; color: var(--muted); font-size: var(--type-13); font-weight: 600; }
.cx-cmp-r .ln i { display: block; height: calc(10px * var(--ui-scale)); border-radius: 0; width: calc(var(--w) * 1%); transform-origin: left; }
.cx-cmp-r .g { background: var(--ink); opacity: .22; }
.cx-cmp-r .b { background: var(--blue); }
.cx-cmp-r .e { border: 1.5px solid var(--ink); background: none; }
.cx-cmp-r .k { background: var(--ink); opacity: .7; }
.cx-cmp-r .ln b { font-size: var(--type-13); font-weight: 700; }
.cx-cmp-r .ln b.up { color: var(--blue-dark); }
.cx-cmp-r .ln b.dn { color: var(--ink); }
@media (max-width: 899px) { .cx-inputs { grid-template-rows: none; } }
@media (max-width: 599px) {
  .cx-ol.is-2 li { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "mv nm qty" "why why why"; row-gap: 6px; padding: 12px var(--space-16); }
  .cx-cmp-r .ln { grid-template-columns: 78px minmax(0, 1fr) auto; }
}

@media (min-width: 600px) { .cx-cust .cx-step { grid-template-rows: calc(300px * var(--ui-scale)) auto; } }
.cx-tips li { grid-template-columns: 92px minmax(0, 1fr); }
.cx-tips li b { font-weight: 700; color: var(--ink); }
@media (max-width: 599px) { .cx-tips li { grid-template-columns: minmax(0, 1fr); gap: 4px; } .cx-tips li em { justify-self: start; } }

@media (min-width: 900px) { .cx-inputs { grid-template-rows: auto auto auto auto; align-content: space-between; } }
.cx-ol.is-2 li { padding-block: 10px; }
.cx-prods { align-items: stretch; }
.cx-prods .cx-ltv { align-content: center; }
@media (min-width: 900px) { .cx-inputs { grid-template-rows: auto 1fr 1.25fr 1fr; align-content: stretch; } .cx-in { align-content: center; } }

/* v4.5: AI mark, notes, swaps */
.ai { display: inline-block; flex: none; width: 13px; height: 13px; margin-right: 5px; vertical-align: -1px; fill: var(--blue); }
.cx-aileg { margin-left: var(--space-8); color: var(--muted); font-weight: 600; letter-spacing: 0; text-transform: none; }
.cx-aileg .ai { margin-right: 4px; }
.cx-ainote { margin: 0; color: var(--text-2); font-size: var(--type-13); line-height: 1.4; }
.cx-ainote b { font-weight: 700; color: var(--ink); }
.cx-in .cx-season + .cx-months { margin-bottom: 2px; }
.cx-agn p .ai, .cx-sub .ai { margin-right: 6px; }
.cx-ol.is-2 .why .ai { margin-right: 5px; }
.cx-prods { align-items: start; }
.cx-prods .cx-ltv { align-content: start; align-self: start; }
.cx-tips li.sw2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 0; }
.sw2 .pair { display: grid; grid-template-columns: minmax(0, 1fr) calc(22px * var(--ui-scale)) minmax(0, 1fr); align-items: stretch; gap: var(--space-8); }
.sw2 .cur, .sw2 .new { display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--white); font-size: var(--type-15); line-height: 1.3; font-weight: 700; }
.sw2 .new { border-color: var(--blue); background: var(--blue-soft); }
.sw2 small { color: var(--muted); font-size: var(--type-13); font-weight: 600; }
.sw2 .new small { color: var(--blue-dark); }
.sw2 .to-arrow { align-self: center; justify-self: center; width: calc(20px * var(--ui-scale)); height: calc(20px * var(--ui-scale)); fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sw2 .gain { margin: 0; color: var(--text-2); font-size: var(--type-13); line-height: 1.4; }
.sw2 .gain strong { color: var(--blue-dark); font-weight: 700; }
.cx-tips li.sw2.is-sum { padding-block: 8px 0; }
.cx-tips li.sw2.is-sum .gain { font-size: var(--type-15); color: var(--ink); }
@media (max-width: 599px) {
  .sw2 .pair { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sw2 .to-arrow { transform: rotate(90deg); }
}

.cx-prods { grid-template-columns: minmax(0, 1fr); }
.cx-items .cx-ltv { margin-top: var(--space-16); }

/* Customer margin: a portrait reel alongside the section heading. */
.cx-margin-section {
  padding-block: var(--space-32) var(--space-64);
  scroll-margin-top: calc(var(--cx-nav) - var(--space-128));
}
.cx-margin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-64);
}
.cx-margin-head h2 > * { display: block; }
@media (max-width: 899px) {
  .cx-margin-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-24); }
  .cx-margin-head .lead { margin-top: var(--space-16); }
}

/* ---------- calm pass (30 Nov) ---------- */
/* Acquisti lead: the result line, as Margine has. */
.cx-lead-result { display: block; margin-top: var(--space-16); }
.cx-lead-result strong { color: var(--ink); font-weight: 800; white-space: nowrap; }
/* Ordini: the real project sits above the heading and on its index card. */
.cx-built { margin-bottom: var(--space-16); }
.pc-area-tag { position: relative; top: -.35em; margin-left: var(--space-8); vertical-align: middle; }
/* the draft's «sent» row stays quiet: the green belongs to the route bar alone */
.cx-draft footer .is-after svg { color: var(--blue-dark); }
