/* Cashwell · Torvi showcase. Section styles for the new compositions. Tokens only (tokens.css → palette.css → type.css). */
:root { --deep-rgb: 9, 35, 24; }
.cw-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo svg { width: 28px; height: 28px; }

/* ── Hero · plate stage, composed for Cashwell: white top with the ink headline left and the lead + buttons in a right column,
   then the bright meadow on a rounded plate with the cash-in card rising into its right side, cut by the plate's bottom edge.
   No text and no shade on the photo. ── */
.cw-hero { padding-block: 160px calc(var(--section) / 2); }
.cw-hero__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.cw-hero__title { color: var(--text); max-width: 660px; }
.cw-hero__side { display: grid; gap: 28px; justify-items: start; padding-bottom: 6px; }
.cw-hero__lead { color: var(--text-2); max-width: 460px; font-size: 18px; }
.cw-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.cw-hero__plate { position: relative; height: 500px; margin-top: 64px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; }
.cw-hero__plate-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -1; }
.cw-hero__stage { position: absolute; right: 72px; bottom: -36px; width: 440px; }   /* anchored under the plate's bottom edge: the card rises into the plate and the edge cuts its foot */
.cw-cashin { width: 100%; box-shadow: var(--shadow-3); padding-bottom: 60px; }
.cw-hero__toast { position: absolute; left: -196px; top: 166px; }   /* beside the Kiln Studio row, overlapping only the card's left padding */
.cw-hero__logos { display: flex; align-items: center; gap: 48px; padding-top: 44px; color: var(--text-2); }
.cw-hero__logos p { font-size: 15px; line-height: 1.45; max-width: 190px; flex: none; }
.cw-hero__logos ul { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.cw-hero__logos svg { height: 26px; width: auto; }

/* rows inside the cash-in card */
.cw-rows { display: grid; margin-top: 14px; }
.cw-rows li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 92px; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text); }
.cw-rows__d { font: 400 12px/1 var(--mono); color: var(--text-2); }
.cw-rows__n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-rows b { font: 400 13px/1 var(--mono); }
.cw-rows .mk-status { justify-self: end; }
.cw-rows li.is-on { box-shadow: inset 2px 0 0 var(--accent); background: var(--accent-soft); border-radius: 0 6px 6px 0; }

/* toast (one per composition, overlapping a card edge) */
.cw-toast { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); padding: 10px 16px 10px 10px; font-size: 13.5px; font-weight: 500; color: var(--text); white-space: nowrap; }
.cw-toast__ic { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.cw-toast__ic svg { width: 16px; height: 16px; stroke: var(--success-ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cw-toast small { display: block; font: 400 12px/1.3 var(--mono); color: var(--text-2); margin-top: 2px; }

/* ── Where Friday goes: afternoon ledger beside the 12-minute review ── */
.cw-fri__head p { max-width: 520px; }
.cw-fri { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; }
.cw-fri__after { order: -1; }
.cw-fri__before { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px 32px 18px; }
.cw-fri__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line-2); }
.cw-fri__k { font: 500 18px/1.4 var(--font); color: var(--text); }
.cw-fri__total { text-align: right; }
.cw-fri__total b { display: block; font: 500 40px/1 var(--font-display); letter-spacing: -1px; color: var(--text); }
.cw-fri__total span { display: block; margin-top: 8px; font: 400 13px/1 var(--mono); color: var(--text-2); }
.cw-fri__list li { display: grid; grid-template-columns: 52px minmax(0, 1.25fr) minmax(0, 1fr) 76px; align-items: center; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.cw-fri__list li:first-child { border-top: 0; }
.cw-fri__t { font: 400 13px/1 var(--mono); color: var(--text-2); }
.cw-fri__n { font-size: 16px; color: var(--text); line-height: 1.5; }
.cw-fri__bar { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.cw-fri__bar i { display: block; height: 100%; width: var(--w); background: var(--muted); border-radius: inherit; }
.cw-fri__d { font: 400 14px/1 var(--mono); color: var(--text); text-align: right; white-space: nowrap; }
.cw-fri__after { position: relative; border-radius: var(--r-xl); border: 1px solid var(--line); background-color: var(--surface); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; display: grid; place-items: center; padding: 40px 32px; }
.cw-review { width: min(360px, 100%); }
.cw-checks { display: grid; margin-top: 16px; }
.cw-checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text); }
.cw-checks svg { width: 16px; height: 16px; stroke: var(--success-ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cw-checks b { font: 400 12.5px/1 var(--mono); color: var(--text-2); }
.cw-review__go { display: block; margin-top: 14px; text-align: center; background: var(--accent); color: var(--on-accent); border-radius: var(--r-sm); padding: 11px; font: 500 13.5px/1 var(--font); }

/* ── Chasing: photo left with the schedule, copy panel right ── */
.cw-chase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; min-height: 640px; }
.cw-chase__media { position: relative; overflow: hidden; min-height: 560px; }
.cw-chase__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.cw-sched { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(430px, 82%); padding: 12px; }
.cw-sched__head { display: flex; align-items: center; gap: 10px; background: var(--surface-3); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13.5px; color: var(--text); }
.cw-sched__head::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); flex: none; }
.cw-sched__head b { font: 500 13px/1 var(--mono); }
.cw-sched__head em { margin-left: auto; font: 400 13px/1 var(--mono); font-style: normal; }
.cw-sched__list { list-style: none; margin: 8px 0 0; padding: 0; }
.cw-sched__list li { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text); }
.cw-sched__list li:first-child { border-top: 0; }
.cw-sched__day { font: 400 12.5px/1 var(--mono); color: var(--text-2); }
.cw-sched__list li.is-on { box-shadow: inset 2px 0 0 var(--accent); background: var(--accent-soft); border-radius: 0 6px 6px 0; }
.cw-chase__toast { position: absolute; right: 7%; bottom: 11%; }
.cw-chase__copy { order: -1; padding: 40px; display: flex; flex-direction: column; align-items: flex-start; }
.cw-chase__title { margin: 24px 0 18px; max-width: 460px; }
.cw-chase__copy > p { max-width: 460px; }
.cw-tones { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cw-tones__k { font: 400 13px/1 var(--mono); color: var(--text-2); margin-right: 6px; }
.cw-tone { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--card); font-size: 14px; color: var(--text); }
.cw-tone.is-on { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.cw-chase .ticks { width: 100%; }

/* ── Spend by team: one wide photo stage, copy panel inset left, card on the sky ── */
.cw-spend { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 500px; min-height: 620px; border-radius: var(--r-xl); overflow: hidden; }
.cw-spend__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; z-index: -1; }
.cw-spend__copy { margin: 24px; align-self: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; }
.cw-spend__copy .ticks { padding-top: 32px; }
.cw-spend__copy h2 { margin-bottom: 18px; }
.cw-spend__copy > p { max-width: 420px; }
.cw-spend__stage { display: grid; place-items: center; padding: 48px; }
.cw-spend__card { width: min(430px, 100%); }

/* ── Setup: head left beside three rows of isometric pieces ── */
.cw-setup { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.cw-setup__head { position: sticky; top: 48px; display: grid; gap: 22px; justify-items: start; }
.cw-setup__head h2 { max-width: 460px; }
.cw-setup__head > p { max-width: 420px; }
.cw-setup__total { display: flex; align-items: center; gap: 18px; margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line-2); width: 100%; }
.cw-setup__total b { font: 500 40px/1 var(--font-display); letter-spacing: -1px; color: var(--text); white-space: nowrap; }
.cw-setup__total span { max-width: 230px; font-size: 15px; line-height: 1.5; }
.cw-setup__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.cw-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px 40px 24px 24px; }
.cw-row__art { height: 190px; display: grid; place-items: center; }
.cw-row__art svg { width: auto; max-height: 150px; }
.cw-row__n { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface-2); font: 400 13px/1 var(--mono); color: var(--text); margin-bottom: 16px; }
.cw-row h3 { font: 500 24px/1.25 var(--font-display); letter-spacing: -.01em; margin-bottom: 8px; }
.cw-row p { max-width: 400px; }

/* ── Month-end close: timed step cards climbing a dashed path over the hills ── */
.cw-close__photo { position: relative; height: 560px; border-radius: var(--r-xl); overflow: hidden; }
.cw-close__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cw-close__path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cw-close__path path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 6 7; opacity: .9; }
.cw-close__steps { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.cw-step { position: absolute; width: 236px; padding: 14px 16px 15px; display: grid; gap: 4px; transform: translate(-50%, -50%); }
.cw-step--1 { left: 11.7%; top: 69.2%; } .cw-step--2 { left: 35.2%; top: 55.8%; } .cw-step--3 { left: 59.4%; top: 41.3%; } .cw-step--4 { left: 86.7%; top: 26.9%; }
.cw-step__t { font: 500 12.5px/1 var(--mono); color: var(--text-2); margin-bottom: 4px; }
.cw-step b { font: 500 15px/1.35 var(--font); color: var(--text); }
.cw-step > span:last-child { font: 400 12.5px/1.4 var(--mono); color: var(--text-2); }
.cw-step.is-on { border-top: 3px solid var(--accent); }
.cw-step.is-on .cw-step__t { color: var(--accent-ink); }

/* ── Customer story: portrait, quote, three before/after numbers ── */
.cw-story { display: grid; grid-template-columns: 300px minmax(0, 1fr) 290px; gap: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; }
.cw-story__photo { position: relative; border-radius: var(--r); overflow: hidden; min-height: 420px; }
.cw-story__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.cw-story__body { display: flex; flex-direction: column; padding-top: 8px; }
.cw-story blockquote { margin: 0 0 32px; color: var(--text); }
.cw-story cite { font-style: normal; color: var(--text); font-weight: 500; font-size: 17px; }
.cw-story cite small { display: block; color: var(--text-2); font-weight: 400; font-size: 15px; margin-top: 4px; }
.cw-story__note { margin-top: auto; padding-top: 28px; font-size: 13px; color: var(--muted); }
.cw-story__nums { display: grid; gap: 10px; align-content: stretch; }
.cw-story__nums li { background: var(--card); border-radius: var(--r-lg); padding: 22px 24px; display: grid; gap: 10px; align-content: center; }
.cw-story__k { font-size: 14px; color: var(--text-2); }
.cw-story__v { display: flex; align-items: baseline; gap: 14px; }
.cw-story__v s { font: 400 17px/1 var(--mono); color: var(--muted); }
.cw-story__v b { font: 500 40px/1 var(--font-display); letter-spacing: -1px; color: var(--text); }

/* ── CTA + footer ── */
.cw-end { padding-bottom: 72px; }
.cw-ready { width: min(330px, 82%); }
.cw-ready__row { margin-top: 14px; }
.cw-foot__note { font-size: 13px; color: var(--muted); padding-block: 0 28px; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .cw-hero__top { gap: 48px; }
  .cw-hero__stage { right: 48px; width: 410px; }
  .cw-story { grid-template-columns: 240px minmax(0, 1fr); }
  .cw-story__nums { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .cw-row { grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding-right: 28px; }
  .cw-step { width: 210px; }
  .cw-spend { grid-template-columns: minmax(0, 1fr) 430px; }
}
@media (max-width: 900px) {
  .cw-hero { padding-top: 120px; }
  .cw-hero__top { grid-template-columns: 1fr; gap: 22px; }
  .cw-hero__side { gap: 26px; padding-bottom: 0; }
  .cw-hero__plate { height: 520px; margin-top: 44px; border-radius: var(--r-lg); }
  .cw-hero__plate-img { object-position: 30% 40%; }
  .cw-hero__stage { left: 16px; right: 16px; bottom: -32px; width: auto; }
  .cw-cashin { padding-bottom: 52px; }
  .cw-hero__toast { left: 0; top: -44px; z-index: 2; }   /* overlaps the card top: layered, never 3px apart */
  .cw-hero__logos { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 32px; }
  .cw-hero__logos ul { gap: 18px 28px; }
  .cw-hero__logos svg { height: 22px; }
  .cw-fri { grid-template-columns: 1fr; }
  .cw-fri__after { order: 0; }
  .cw-chase__copy { order: 0; }
  .cw-fri__before { padding: 24px 22px 10px; }
  .cw-fri__list li { grid-template-columns: 46px minmax(0, 1fr) 70px; gap: 12px; }
  .cw-fri__bar { grid-column: 2 / -1; grid-row: 2; }
  .cw-chase { grid-template-columns: 1fr; min-height: 0; }
  .cw-chase__media { min-height: 520px; }
  .cw-chase__copy { padding: 32px 24px; }
  .cw-spend { grid-template-columns: 1fr; min-height: 0; }
  .cw-spend__img { height: 560px; inset: 0 0 auto 0; }
  .cw-spend { background: var(--surface); }
  .cw-spend__copy { margin: 0; border: 0; border-radius: 0; padding: 32px 24px; }
  .cw-spend__stage { min-height: 560px; padding: 32px 20px; }
  .cw-setup { grid-template-columns: 1fr; gap: 44px; }
  .cw-setup__head { position: static; }
  .cw-close__photo { height: auto; overflow: visible; border-radius: 0; }
  .cw-close__photo > img { position: relative; height: 320px; border-radius: var(--r-xl); }
  .cw-close__path { display: none; }
  .cw-close__steps { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
  .cw-step { position: static; transform: none; width: auto; box-shadow: none; }
  .cw-story { grid-template-columns: 1fr; padding: 22px; }
  .cw-story__photo { min-height: 360px; }
  .cw-story__nums { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cw-rows li { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .cw-rows .mk-status { grid-column: 2 / -1; justify-self: start; }
  .cw-row { grid-template-columns: 1fr; padding: 20px 22px 26px; gap: 8px; }
  .cw-row__art { height: 160px; }
  .cw-close__steps { grid-template-columns: 1fr; }
  .cw-fri__top { flex-direction: column; align-items: flex-start; }
  .cw-fri__total { text-align: left; }
  .cw-sched { width: 90%; }
  .cw-sched__list li { grid-template-columns: 58px minmax(0, 1fr) auto; padding: 11px 8px; font-size: 13px; }
  .cw-chase__toast { right: 5%; bottom: 5%; }
}
