/* Pitney Bowes case study — components from Figma "Pitney Bowes — 07 / Full screen".
   Colours come from the original case study: PB blue, magenta, purple, plus orange for the quote. */

.pb { --pb: #2d69a5; --pb-c: #357bc2; --pb-tint: #ebf2f9; --navy: #1d4f86;
      --magenta: #b1267d; --magenta-c: #d02d93; --magenta-tint: #faeaf4;
      --purple: #7f3186;  --purple-c: #953a9e;  --purple-tint: #f4ebf5;
      --pb-orange: #ae4917; --pb-line: #e6e6e6;
      --dots: radial-gradient(circle, #d6d6da 1.1px, transparent 1.6px) 0 0 / 16px 16px, #f7f7f8; }

.pb .cs-logo { width: 152px; height: auto; }
.pb .cs-hero { gap: 16px; padding-bottom: 28px; }
.pb-grad { background: linear-gradient(90deg, #2f7fc1, #953a9e); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; font-style: italic;
  padding: .08em .08em .18em; margin: -.08em -.08em -.18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pb .cs-banner { background: #fff; }
.pb .cs-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb .cs-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.pb .cs-video video { aspect-ratio: 1800 / 930; background: #f4f5f7; }

.cs-sub { padding-top: 24px; }
.cs-sub h2 { font-size: 28px; }

/* shared annotation: nav pill + text (captions, "What this meant") */
.pb-cap { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; line-height: 1.5; color: #3a3a3a; }
.pb-cap .pill { flex: none; }
p.pb-cap { margin-top: 0; }
.pb-note { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.5; color: #6b6b6b; }
.pb-note i { flex: none; display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid #9a9a9a; border-radius: 50%; font: 500 9px/1 var(--sans); font-style: normal; color: #6b6b6b; }
.pb .pill { cursor: default; }
.pb .pill:hover { background: none; }
.pb-fig img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }

/* context: four decisions as a staircase */
.pb-stairs { display: grid; justify-items: end; list-style: none; margin: 0; padding: 0; }
.pb-stairs li { display: flex; align-items: center; gap: 20px; box-sizing: border-box; padding: 16px 24px; border: 1px solid #e2e2e2; margin-top: -1px; background: #fff; }
.pb-stairs li:nth-child(1) { width: 59.3%; }
.pb-stairs li:nth-child(2) { width: 72.9%; }
.pb-stairs li:nth-child(3) { width: 86.4%; }
.pb-stairs li:nth-child(4) { width: 100%; background: var(--navy); border-color: var(--navy); color: #fff; }
.pb-stairs b { flex: none; font: 400 34px/1 var(--serif); color: var(--navy); }
.pb-stairs li:nth-child(4) b { color: #fff; }
.pb-stairs strong { display: block; font: 500 15px/1.35 var(--sans); }
.pb-stairs span { font-size: 13px; color: #6b6b6b; }
.pb-stairs li:nth-child(4) span { color: #cfe0f3; }

/* problem: issues with share bars */
.pb-issues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
/* each issue is a column: the share box sits at the bottom so boxes line up across the row */
.pb-issues article { display: flex; flex-direction: column; }
.pb-issues .pb-stat { margin-top: auto; }
.pb-issues p { margin-bottom: 14px; }
.pb-issues h3 { font: 500 15px/1.4 var(--sans); color: var(--pb); }
.pb-issues p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: #3a3a3a; }
.pb-stat { --c: var(--pb-c); --c-ink: var(--pb); --c-tint: var(--pb-tint); margin-top: 14px; padding: 18px 20px 20px; background: var(--c-tint); }
.pb-stat.is-magenta { --c: var(--magenta-c); --c-ink: var(--magenta); --c-tint: var(--magenta-tint); }
.pb-stat.is-purple { --c: var(--purple-c); --c-ink: var(--purple); --c-tint: var(--purple-tint); }
.pb-stat b { display: block; font: 500 40px/1 var(--sans); letter-spacing: -.035em; color: var(--c-ink); }
.pb-stat i { display: block; height: 7px; margin: 14px 0 12px; border-radius: 99px; background: #fff; overflow: hidden; }
.pb-stat i::before { content: ""; display: block; width: var(--v); height: 100%; border-radius: inherit; background: var(--c); }
.pb-stat small { display: block; font-size: 13px; line-height: 1.5; color: #464d4d; }

/* the orange interview quote */
.pb-quote { position: relative; margin: 0; padding: 36px 96px 36px 112px; background: #feede4; }
.pb-quote::before, .pb-quote::after { position: absolute; width: 38px; height: 38px; box-sizing: border-box; border: 2px solid #f96821; border-radius: 50%;
  font: 400 40px/50px var(--serif); color: #f96821; text-align: center; }
.pb-quote::before { content: "“"; left: 44px; top: 38px; }
.pb-quote::after { content: "”"; right: 44px; bottom: 36px; }
.pb-quote p { font: 500 30px/1.2 var(--sans); letter-spacing: -.03em; color: #464d4d; }
.pb-quote mark { background: none; color: var(--pb-orange); }
.pb-quote cite { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; font-style: normal; }
.pb-quote .pill.is-ccm { background: #c2511a; border-color: #c2511a; color: #fff; }

/* current state: research scope */
.pb-scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pb-scope article { --c-ink: #2b6b94; --c-tint: #ecf5fb; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px 20px; background: var(--c-tint); }
.pb-scope .is-green { --c-ink: #247631; --c-tint: #ebf8ed; }
.pb-scope .is-indigo { --c-ink: #2f45a4; --c-tint: #eaecf6; }
.pb-scope .pill { background: #fff; border-color: var(--c-ink); color: var(--c-ink); }
.pb-scope strong { font: 500 46px/1 var(--sans); letter-spacing: -.035em; color: var(--c-ink); }
.pb-scope span:not(.pill) { font-size: 15px; color: #464d4d; }

/* illustrated cards (findings, workflow) */
.pb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pb-cards.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb-card { display: flex; flex-direction: column; border: 1px solid var(--pb-line); background: #fff; }
.pb-vis { display: grid; place-items: center; min-height: 190px; padding: 16px; box-sizing: border-box; background: var(--dots); overflow: hidden; }
.pb-card-body { display: grid; gap: 12px; padding: 26px 26px 30px; }
.pb-card-body small { font: 500 10.5px/1 var(--sans); letter-spacing: .02em; text-transform: uppercase; color: #737373; }
.pb-title { display: flex; align-items: center; gap: 12px; }
.pb-title h3 { font: 400 22px/1.15 var(--serif); letter-spacing: -.02em; }
.pb-card-body p { font-size: 15px; line-height: 1.6; color: #6b6b6b; }
.pb-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.pb-ico svg, .pb-svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.pb-ico.is-x { background: #fde4d6; color: #c2511a; }
.pb-ico.is-magenta { background: var(--magenta-tint); color: var(--magenta); }
.pb-ico.is-blue { background: var(--pb-tint); color: var(--pb); }

/* mini illustrations */
.pb-chain { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 4px; max-width: 100%; }
.pb-chain.is-wide { gap: 12px; }
.pb-chain i, .pb-chips i { font: 500 11px/1 var(--sans); font-style: normal; white-space: nowrap; padding: 5px 8px; border: 1px solid #dedede; border-radius: 999px; background: #fff; color: #202020; }
.pb-chain.is-wide i { font-size: 12px; padding: 6px 12px; }
.pb-chain i.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pb-chain i.is-dashed { border: 1px dashed #9a9a9a; color: #6b6b6b; background: transparent; }
.pb-chain s { text-decoration: none; font-size: 12px; color: #8a8a8a; }
.pb-chain s.is-ne { font: 400 30px/1 var(--serif); color: var(--pb-orange); }
.pb-bars { display: grid; gap: 10px; width: min(230px, 100%); padding: 14px 16px; border: 1px solid #e2e2e2; background: #fff; }
.pb-bars div { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; font: 500 11px/1 var(--sans); color: #8a8a8a; }
.pb-bars div.is-on { color: #202020; }
.pb-bars i { display: block; height: 6px; border-radius: 3px; background: #f0f0f0; overflow: hidden; }
.pb-bars i::before { content: ""; display: block; width: var(--v); height: 100%; border-radius: inherit; background: #c9c9c9; }
.pb-bars .is-on i::before { background: var(--navy); }

/* design response: four columns on a dashed line */
.pb-columns { --line-y: 132px; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pb-columns::before { content: ""; position: absolute; left: 0; right: 0; top: var(--line-y); border-top: 1.5px dashed #9fb7d3; }
.pb-col { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 24px 20px 26px; border: 1px solid #d9d9d9; background: #fff; }
.pb-col::before { content: ""; position: absolute; left: -8px; top: calc(var(--line-y) - 8px); width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #6f9fd3; }
.pb-col:first-child::before { display: none; }   /* the line starts at the first column, no dot on its outer edge */
.pb-col h3 { font: 500 14px/20px var(--sans); letter-spacing: -.01em; text-align: center; color: var(--pb); white-space: nowrap; }
.pb-col .pb-vis { min-height: 140px; height: 140px; padding: 10px; }
.pb-col h4 { font: 400 21px/1.15 var(--serif); letter-spacing: -.02em; margin-bottom: -10px; }
.pb-col p { font-size: 14px; line-height: 1.55; color: #6b6b6b; }
.pb-ia { display: flex; align-items: center; gap: 12px; }
.pb-dense { display: grid; grid-template-columns: repeat(3, 10px); gap: 4px; }
.pb-dense i { width: 10px; height: 10px; background: #c9c9c9; }
.pb-ia s { text-decoration: none; font-size: 14px; color: #8a8a8a; }
.pb-stages { display: grid; gap: 5px; }
.pb-stages i { width: 34px; height: 7px; border-radius: 2px; background: var(--navy); }
.pb-stages i:nth-child(2) { opacity: .82; } .pb-stages i:nth-child(3) { opacity: .64; } .pb-stages i:nth-child(4) { opacity: .46; }
.pb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-chips.is-col { flex-direction: column; align-items: center; }
.pb-chips i { display: inline-flex; align-items: center; gap: 6px; color: #6b6b6b; }
.pb-chips i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pb-chips i.is-orange { background: #fde9dd; border-color: #fde9dd; color: #9a3f12; }
.pb-chips i.is-green { background: #e6f2eb; border-color: #e6f2eb; color: #247631; }
.pb-track { display: grid; justify-items: center; gap: 10px; }
.pb-track div { display: flex; align-items: center; }
.pb-track i { width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
.pb-track s { width: 20px; height: 2px; background: rgba(29, 79, 134, .35); }
.pb-track small, .pb-recover span { font-size: 10.5px; color: #6b6b6b; }
.pb-disclose { display: grid; gap: 6px; }
.pb-disclose i { font: 500 10px/1 var(--sans); font-style: normal; white-space: nowrap; padding: 7px 9px; border: 1px solid #dedede; background: #fff; color: #6b6b6b; }
.pb-disclose i.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* workflow illustrations */
.pb-gate, .pb-recover > div { display: flex; align-items: center; gap: 10px; }
.pb-gate s, .pb-recover s { text-decoration: none; font-size: 14px; color: #9a9a9a; }
.pb-gate b, .pb-recover b { font: 500 11px/1 var(--sans); white-space: nowrap; padding: 8px 12px; border: 1px solid #d6d6d6; background: #fff; }
.pb-gate > div { display: grid; gap: 6px; }
.pb-gate .is-pass { background: #ebf8ed; border-color: #bfe3c6; color: #247631; }
.pb-gate .is-fail { background: #fdecef; border-color: #f3c2cb; color: #b42343; }
.pb-diamond { position: relative; display: grid; place-items: center; width: 64px; height: 64px; flex: none; }
.pb-diamond::before { content: ""; position: absolute; width: 44px; height: 44px; background: var(--magenta-c); transform: rotate(45deg); }
.pb-diamond em { position: relative; font: 500 9.5px/1 var(--sans); font-style: normal; color: #fff; }
.pb-recover { display: grid; justify-items: center; gap: 12px; }
.pb-recover b.is-on { background: var(--pb-tint); border-color: var(--pb); color: var(--pb); }
.pb-recover span { font: 500 11px/1 var(--sans); color: var(--pb); }

/* low vs mid fidelity comparison */
.pb-compare { display: grid; gap: 14px; margin: 0; }
.pb-tabs { justify-self: start; display: flex; gap: 4px; padding: 4px; border: 1px solid #dedede; border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pb-tabs::-webkit-scrollbar { display: none; }
.pb-tabs button { flex: none; padding: 8px 16px; border: 0; border-radius: 999px; background: none; font: 500 13px/1 var(--sans); color: #6b6b6b; cursor: pointer; transition: background var(--hover), color var(--hover); }
.pb-tabs button:hover { color: var(--ink); }
.pb-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.pb-stage { position: relative; aspect-ratio: 3000 / 1550; overflow: hidden; background: #f1f1f1; border: 1px solid var(--rule); user-select: none; }
.pb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pb-low { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.pb-stage::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .15); pointer-events: none; }
.pb-handle { position: absolute; z-index: 2; top: 50%; left: var(--pos); transform: translate(-50%, -50%); padding: 9px 10px; border-radius: 999px; background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16); font: 500 14px/1 var(--sans); pointer-events: none; }
.pb-tag { position: absolute; z-index: 2; top: 16px; background: rgba(255, 255, 255, .92); }
.pb-tag.is-low { left: 16px; } .pb-tag.is-mid { right: 16px; }
.pb-range { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.pb-range:focus-visible ~ .pb-handle, .pb-stage:has(.pb-range:focus-visible) .pb-handle { outline: 2px solid var(--ink); outline-offset: 2px; }

/* directional feedback */
.pb-scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pb-scores article { display: flex; flex-direction: column; gap: 12px; padding: 4px 28px; }
.pb-scores article:first-child { padding-left: 0; }
.pb-scores article:last-child { padding-right: 0; }
.pb-scores article + article { border-left: 1px solid var(--pb-line); }
.pb-scores article > span { font: 500 13px/1.3 var(--sans); color: #6b6b6b; }
.pb-scores strong { font: 600 46px/1.1 var(--sans); letter-spacing: -.04em; color: var(--navy); }
.pb-scores strong s { text-decoration: none; color: #b5b5b5; }
.pb-scores p { font-size: 13.5px; line-height: 1.5; color: #3a3a3a; }
.pb-meter { display: grid; gap: 8px; }
.pb-meter div { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; }
.pb-meter small { font-size: 12px; color: #6b6b6b; }
.pb-meter i { display: block; height: 6px; border-radius: 3px; background: #eee; overflow: hidden; }
.pb-meter i::before { content: ""; display: block; width: var(--v); height: 100%; border-radius: inherit; background: #b5b5b5; }
.pb-meter .is-after i::before { background: var(--navy); }

/* final design tiles reuse Letterboxd's alternating rows */
.pb .state img { aspect-ratio: 1600 / 1280; object-fit: cover; }
.pb .tile { width: 32px; height: 32px; }

/* outcome */
.pb-outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pb-outcomes article { --c: var(--pb); display: grid; gap: 8px; align-content: start; padding: 22px 22px 26px; background: #f6f6f6; }
.pb-outcomes .is-purple { --c: var(--purple); } .pb-outcomes .is-orange { --c: var(--pb-orange); }
.pb-outcomes span { font: 500 12px/1.3 var(--sans); color: var(--c); }
.pb-outcomes h3 { font: 400 26px/1.15 var(--serif); letter-spacing: -.02em; }
.pb-outcomes p { font-size: 14px; line-height: 1.5; color: #3a3a3a; }

/* NDA note */
.pb-nda { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--rule); }
.pb-nda b { display: flex; align-items: center; gap: 8px; font: 500 12px/1.3 var(--sans); }
.pb-nda .pb-svg { width: 14px; height: 14px; stroke-width: 2; }
.pb-nda p { font-size: 14px; line-height: 1.5; color: #3a3a3a; }

@media (max-width: 1100px) {
  .pb-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb-columns::before, .pb-col::before { display: none; }
}
@media (max-width: 900px) {
  .pb .cs-facts { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pb-issues, .pb-scope, .pb-cards, .pb-cards.is-two, .pb-outcomes { grid-template-columns: minmax(0, 1fr); }
  .pb-scores { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .pb-scores article { padding: 0 !important; }
  .pb-scores article + article { border-left: 0; border-top: 1px solid var(--pb-line); padding-top: 28px !important; }
  .pb-quote { padding: 84px 24px; }
  .pb-quote::before { left: 24px; top: 24px; } .pb-quote::after { right: 24px; bottom: 24px; }
  .pb-quote p { font-size: 24px; }
}
@media (max-width: 600px) {
  .pb-columns { grid-template-columns: minmax(0, 1fr); }
  .pb-col h3 { white-space: normal; }
  .pb-stairs li { width: 100% !important; padding: 14px 16px; gap: 14px; }
  .pb-stairs b { font-size: 28px; }
  .pb-cap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pb-tag { top: 10px; } .pb-tag.is-low { left: 10px; } .pb-tag.is-mid { right: 10px; }
  .pb-scope strong, .pb-scores strong { font-size: 40px; }
  .pb-gate { transform: scale(.85); }
}
