/* Blog: when to switch CRMs (.pbws-) : CRM window buried in workaround notes, sign cards with tool/setup tags, switch/fix/stay track + workaround cost */
.pbws-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pbws-meta { margin: 18px 0 0; font: 500 14px/1.5 var(--f-body); color: #475569; }
.pbws-meta b { color: #082238; }
.pbws-meta span { margin: 0 6px; color: #0A6FA8; }

/* hero: CRM window + sticky notes */
.pbws-desk { position: relative; margin: 0; justify-self: center; width: min(100%, 460px); padding: 34px 26px 18px; }
.pbws-win { position: relative; border-radius: 20px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 40px 70px -40px rgba(8,34,56,.6); overflow: hidden; }
.pbws-win__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #082238; color: #DCEBF5; font: 600 12.5px/1 var(--f-body); }
.pbws-win__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3A5068; }
.pbws-win__bar span { margin-left: 8px; }
.pbws-win__bar em { margin-left: auto; font-style: normal; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 11px; }
.pbws-win__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px; min-height: 170px; }
.pbws-col { display: grid; align-content: start; gap: 6px; padding: 8px; border-radius: 12px; background: #F3F7F9; }
.pbws-col p { margin: 0 0 2px; font: 700 11px/1.2 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: #64748B; }
.pbws-col b { display: block; height: 26px; border-radius: 8px; background: #fff; border: 1px solid #E2E8F0; box-shadow: inset 3px 0 0 #00A3D9; }
.pbws-col b.s { box-shadow: inset 3px 0 0 #3FB97A; }
.pbws-win__limit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 0; padding: 10px 14px 14px; font: 600 12.5px/1 var(--f-body); color: #475569; }
.pbws-win__limit i { height: 8px; border-radius: 9px; background: #EDF2F6; overflow: hidden; }
.pbws-win__limit u { display: block; height: 100%; width: 100%; border-radius: 9px; background: linear-gradient(90deg, #FFB81C, #FF7A59); animation: pbwsFill 12s infinite; }
.pbws-win__limit strong { color: #B4432A; font-weight: 800; }
@keyframes pbwsFill { 0% { width: 55%; } 40%, 100% { width: 100%; } }
.pbws-notes { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.pbws-n { position: absolute; left: var(--x); top: var(--y); width: 42%; max-width: 170px; padding: 10px 11px 12px; border-radius: 4px 4px 12px 4px; font: 600 12.5px/1.35 var(--f-body); color: #1F2937; box-shadow: 0 14px 24px -14px rgba(8,34,56,.55); transform: rotate(var(--r)) scale(.6); opacity: 0; animation: pbwsNote 12s infinite; animation-delay: calc(var(--d) * .9s); }
.pbws-n::before { content: ""; position: absolute; top: -7px; left: 50%; width: 38px; height: 14px; margin-left: -19px; border-radius: 3px; background: rgba(255,255,255,.65); transform: rotate(-3deg); }
.pbws-n--y { background: #FFE58A; } .pbws-n--b { background: #CBEAFB; } .pbws-n--p { background: #FFD3C4; } .pbws-n--g { background: #CDEFD9; }
@keyframes pbwsNote {
  0% { opacity: 0; transform: rotate(var(--r)) scale(.6) translateY(-10px); }
  6%, 82% { opacity: 1; transform: rotate(var(--r)) scale(1) translateY(0); }
  90%, 100% { opacity: 0; transform: rotate(var(--r)) scale(.9) translateY(6px); }
}
.pbws-desk__cap { position: relative; margin-top: 18px; text-align: center; font: 500 13px/1.4 var(--f-body); color: #475569; }
@media (prefers-reduced-motion: reduce) {
  .pbws-n { animation: none; opacity: 1; transform: rotate(var(--r)); }
  .pbws-win__limit u { animation: none; }
}

/* article */
.pbws-art { padding-top: clamp(24px, 4vw, 48px); }
.pbws-strip { position: sticky; top: 84px; z-index: 5; display: flex; gap: 6px; margin: 0 auto 40px; padding: 8px; max-width: 1040px; border-radius: 18px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid #E2E8F0; box-shadow: 0 16px 32px -28px rgba(8,34,56,.5); overflow-x: auto; scrollbar-width: none; }
.pbws-strip::-webkit-scrollbar { display: none; }
.pbws-strip a { flex: 1 0 auto; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 10px; border-radius: 12px; font: 500 14px/1.2 var(--f-body); color: #334155; text-decoration: none; white-space: nowrap; transition: background .25s, color .25s; }
.pbws-strip a b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #E2E8F0; font: 800 12px/1 var(--f-display); color: #475569; transition: background .25s, color .25s; }
.pbws-strip a:hover, .pbws-strip a.is-on { background: #FFF6DD; color: #082238; }
.pbws-strip a.is-on b, .pbws-strip a.is-seen b { background: #082238; color: #FFB81C; }
.pbws-body { max-width: 800px; margin: 0 auto; font-size: 17.5px; line-height: 1.72; color: #334155; }
.pbws-body > p { margin: 0 0 18px; }
.pbws-body b { color: #082238; }
.pbws-body a, .pbws-note a, .pbws-narrow a, .pbws-road a { color: #0A6FA8; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pbws-h2 { margin: 56px 0 0; font: 700 clamp(25px, 1rem + 1.2vw, 33px)/1.2 var(--f-display); letter-spacing: -.02em; color: #082238; scroll-margin-top: 170px; text-wrap: balance; }
.pbws-body > .pbws-h2:first-child { margin-top: 0; }
.pbws-answer { margin: 14px 0 20px; padding: 0 0 0 18px; border-left: 3px solid #FFB81C; font-size: 18.5px; line-height: 1.6; font-weight: 500; color: #082238; }

/* sign cards */
.pbws-list { list-style: none; margin: 8px 0 26px; padding: 0; display: grid; gap: 18px; }
.pbws-s { position: relative; padding: 22px clamp(20px, 3vw, 30px) 10px; border-radius: 22px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 24px 48px -40px rgba(8,34,56,.45); scroll-margin-top: 170px; }
.pbws-s h3 { margin: 10px 0 10px; font: 700 21px/1.3 var(--f-display); letter-spacing: -.01em; color: #082238; }
.pbws-s p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.65; }
.pbws-s__tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; padding: 5px 11px; border-radius: 999px; font: 700 12px/1.2 var(--f-body) !important; letter-spacing: .05em; text-transform: uppercase; }
.pbws-s__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pbws-s__tag--t { background: #FFF1EC; color: #B4432A; }
.pbws-s__tag--s { background: #E8F5FC; color: #0B5E8C; }
.pbws-s__tag--e { background: #F1F5F9; color: #475569; }
.pbws-s__check { padding: 12px 14px; border-radius: 12px; background: #F3F7F9; font-size: 16px !important; }

/* heatmap + notes */
.pbws-fix .mk-heat { margin-top: 28px; }
.pbws-note { margin: 24px 0 0; max-width: 860px; font-size: 16.5px; line-height: 1.65; color: #334155; }

/* signature: switch / fix / stay */
.pbws-sc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 36px); margin-top: 28px; align-items: start; }
.pbws-sc__qs { display: grid; gap: 10px; }
.pbws-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #E2E8F0; transition: border-color .25s, box-shadow .25s; }
.pbws-q[data-on="2"] { border-color: #FFB4A0; box-shadow: inset 4px 0 0 #B4432A; }
.pbws-q[data-on="1"] { border-color: #FFE0A3; box-shadow: inset 4px 0 0 #FFB81C; }
.pbws-q p { margin: 0; font-size: 15px; line-height: 1.45; color: #082238; font-weight: 500; }
.pbws-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #F1F5F9; }
.pbws-seg button { min-height: 40px; min-width: 44px; padding: 6px 10px; border: 0; border-radius: 9px; background: none; font: 600 13px/1 var(--f-body); color: #475569; cursor: pointer; transition: background .2s, color .2s; }
.pbws-seg button:hover { color: #082238; }
.pbws-seg button[aria-checked="true"] { background: #082238; color: #fff; }
.pbws-seg button[data-v="2"][aria-checked="true"] { background: #B4432A; }
.pbws-seg button[data-v="1"][aria-checked="true"] { background: #FFB81C; color: #082238; }
.pbws-seg button:focus-visible { outline: 3px solid #00A3D9; outline-offset: 2px; }
.pbws-sc__out { position: sticky; top: 150px; padding: 22px; border-radius: 24px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 30px 60px -44px rgba(8,34,56,.55); }
.pbws-sc__head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; font: 700 17px/1.2 var(--f-display); color: #082238; }
.pbws-sc__head em { font: 600 12px/1 var(--f-body); font-style: normal; padding: 5px 9px; border-radius: 999px; background: #F3F7F9; color: #475569; }
.pbws-track__z { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; font: 700 12px/1.2 var(--f-body); color: #475569; text-align: center; }
.pbws-track__bar { position: relative; height: 14px; margin-top: 8px; border-radius: 9px; background: linear-gradient(90deg, #3FB97A 0 33.3%, #00A3D9 33.3% 66.6%, #FF7A59 66.6%); }
.pbws-track__bar i { position: absolute; top: 50%; left: var(--p, 6%); width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #082238; box-shadow: 0 0 0 4px #fff, 0 8px 16px -6px rgba(8,34,56,.6); transition: left .6s cubic-bezier(.3,1.3,.4,1); }
.pbws-sc__bars { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.pbws-sc__bars li { display: grid; grid-template-columns: 112px minmax(0, 1fr) 28px; gap: 10px; align-items: center; font: 600 13.5px/1.2 var(--f-body); color: #334155; }
.pbws-sc__bars i { height: 8px; border-radius: 9px; background: #EDF2F6; overflow: hidden; }
.pbws-sc__bars b { display: block; height: 100%; width: 0; border-radius: 9px; transition: width .5s; }
.pbws-sc__bars b[data-ws-bar="t"] { background: linear-gradient(90deg, #FFB81C, #FF7A59); }
.pbws-sc__bars b[data-ws-bar="s"] { background: linear-gradient(90deg, #00A3D9, #0A6FA8); }
.pbws-sc__bars em { font-style: normal; text-align: right; color: #475569; }
.pbws-sc__say { margin: 16px 0 10px; font-size: 15.5px; line-height: 1.55; color: #334155; }
.pbws-sc__say b { color: #082238; }
.pbws-sc__top { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.pbws-sc__top:empty { display: none; }
.pbws-sc__top a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 12px; background: #FFF6DD; font: 600 14.5px/1.35 var(--f-body); color: #082238; text-decoration: none; }
.pbws-sc__top a:hover { background: #FFEDB8; }
.pbws-sc__top a span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #082238; color: #FFB81C; font: 800 12px/1 var(--f-display); }
.pbws-cost { margin: 4px 0 18px; padding: 16px; border-radius: 18px; background: #F3F7F9; }
.pbws-cost__t { margin: 0 0 10px; font: 700 15px/1.3 var(--f-display); color: #082238; }
.pbws-cost__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.pbws-cost__in label { display: grid; gap: 6px; font: 600 12px/1.3 var(--f-body); color: #475569; }
.pbws-cost__in input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #CBD5E1; border-radius: 10px; background: #fff; font: 700 16px/1 var(--f-body); color: #082238; box-sizing: border-box; }
.pbws-cost__in input:focus-visible { outline: 3px solid #00A3D9; outline-offset: 1px; }
.pbws-cost__out { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: #334155; }
.pbws-cost__out strong { font: 800 20px/1 var(--f-display); color: #082238; }

/* lists */
.pbws-nots, .pbws-look { list-style: none; margin: 8px 0 22px; padding: 0; display: grid; gap: 10px; }
.pbws-nots li, .pbws-look li { position: relative; padding: 14px 16px 14px 48px; border-radius: 14px; font-size: 16px; line-height: 1.6; color: #334155; }
.pbws-nots li { background: #FFF5F1; }
.pbws-nots li::before { content: ""; position: absolute; left: 18px; top: 21px; width: 14px; height: 3px; border-radius: 2px; background: #B4432A; }
.pbws-look li { background: #F3F7F9; }
.pbws-look li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: #3FB97A; box-shadow: 0 0 0 4px rgba(63,185,122,.2); }
.pbws-road { margin-top: 28px; }
.pbws-narrow { max-width: 860px; }
.pbws-narrow > p { font-size: 17px; line-height: 1.7; color: #334155; }
.pbws-narrow .pbws-h2 { margin-top: 48px; }

@media (max-width: 960px) {
  .pbws-hero__grid, .pbws-sc { grid-template-columns: 1fr; }
  .pbws-sc__out { position: static; }
}
@media (max-width: 560px) {
  .pbws-desk { padding: 30px 6px 14px; }
  .pbws-n { width: 46%; font-size: 11.5px; padding: 8px 9px 10px; }
  .pbws-win__cols { gap: 5px; padding: 10px; min-height: 150px; }
  .pbws-col { padding: 6px; }
  .pbws-col p { font-size: 9.5px; }
  .pbws-q { grid-template-columns: 1fr; gap: 8px; }
  .pbws-seg { width: 100%; }
  .pbws-seg button { flex: 1; }
  .pbws-cost__in { grid-template-columns: 1fr; }
  .pbws-sc__bars li { grid-template-columns: 100px minmax(0, 1fr) 24px; }
}
