/* Location City Template L "Rowhouse buzzer" (city pages, max 7). Prefix pll-. Spec: tools/LOCATIONS-BATCH5-SPEC.md §3 L and
   "Template L build notes". Mid-Atlantic + Potomac: Jersey City (reference), Newark, Wilmington, Baltimore, Bethesda, Arlington,
   Charleston WV. Needs mid.css (D deck deal in #industries, Q swipe sort in #sort); the J-style heatmap in #state-rules is drawn here
   (rules x jurisdictions, three columns, which the 2-column .mk-heat cannot do). Behaviour: p-loc-l.js.
   Unlike A-K: brass buzzer panel + intercom screen hero, apartment-directory facts, step-chain workflow cards, bill tracker dark band
   (Drafted / In review / Signed off), jurisdiction heatmap + commuter payroll switch, lettered unit directory for custom builds,
   intercom day schedule, court docket license card. */
.pll-hero, .pll-ans, .pll-ind, .pll-flow, .pll-bill, .pll-sort, .pll-rules, .pll-build, .pll-how, .pll-cost, .pll-start, .pll-rev {
  --pll-ink: #082238; --pll-body: #334155; --pll-muted: #475569; --pll-line: #E2E8F0; --pll-paper: #F3F7F9;
  --pll-blue: #0A6FA8; --pll-deep: #0A4F7A; --pll-brass: #B8862B; --pll-brass-hi: #E9C46A; --pll-brick: #8C3B2A; --pll-teal: #00706B; --pll-amber: #FFB81C;
}
.pll-buzz__btn:focus-visible, .pll-buzz__send:focus-visible, .pll-block:focus-visible, .pll-bill__send:focus-visible, .pll-grid__head button:focus-visible,
.pll-switch__send:focus-visible, .pll-bill__q label:focus-within, .pll-switch fieldset label:focus-within, .pll-deal__link a:focus-visible { outline: 3px solid #FFB81C; outline-offset: 3px; }

/* ---------- 1. Hero + buzzer panel ---------- */
.pll-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.pll-hero .pg-h1 { max-width: 17ch; font-size: clamp(32px, 1rem + 2.4vw, 50px); }
.pll-hero .pg-lead { font-size: 17px; max-width: 58ch; }
.pll-sub { margin: 14px 0 0; font: 600 clamp(16.5px, 1rem + .25vw, 19px)/1.45 var(--f-display); color: var(--pll-ink); max-width: 48ch; }

/* brick wall behind the panel, drawn with gradients (no image) */
.pll-buzz-wrap { position: relative; padding: clamp(14px, 2.4vw, 26px); border-radius: 26px;
  background-color: #A4513C;
  background-image: linear-gradient(#D9B9A8 2px, transparent 2px), linear-gradient(90deg, #D9B9A8 2px, transparent 2px), linear-gradient(90deg, #D9B9A8 2px, transparent 2px);
  background-size: 100% 26px, 64px 52px, 64px 52px; background-position: 0 0, 0 0, 32px 26px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 40px 70px -44px rgba(8,34,56,.6); }
.pll-buzz { position: relative; margin: 0; padding: 18px 18px 16px; border-radius: 18px; color: var(--pll-ink);
  background: linear-gradient(160deg, #F6E3B4 0%, #E3BF6E 38%, #C99A3E 70%, #E7C878 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(88,58,10,.35), 0 18px 30px -18px rgba(0,0,0,.6); }
.pll-buzz::before, .pll-buzz::after { content: ""; position: absolute; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF3D0, #8A6420 70%); box-shadow: 0 1px 0 rgba(255,255,255,.5); }
.pll-buzz::before { left: 10px; } .pll-buzz::after { right: 10px; }
.pll-buzz__plate { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 6px 12px; }
.pll-buzz__plate b { font: 800 clamp(17px, 1rem + .35vw, 20px)/1.25 var(--f-display); letter-spacing: -.01em; color: #3A2A08; }
.pll-buzz__plate em, .pll-bill__tag { font: 800 11.5px/1 var(--f-body); font-style: normal; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: #082238; color: #F6E3B4; white-space: nowrap; }
/* intercom screen */
.pll-buzz__screen { position: relative; min-height: 168px; margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: #0B2A2A; color: #D7F5EA;
  box-shadow: inset 0 0 0 3px #3A2A08, inset 0 0 26px rgba(0,0,0,.6);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 2px, transparent 2px 4px); }
.pll-buzz__screen::before { content: ""; position: absolute; right: 12px; top: 12px; width: 36px; height: 20px; border-radius: 4px; background: repeating-linear-gradient(90deg, #3A2A08 0 3px, transparent 3px 6px); opacity: .7; }
.pll-buzz__idle { margin: 0; padding-right: 44px; font: 600 15px/1.5 var(--f-body); color: #9FE3C9; }
.pll-buzz__fix + .pll-buzz__fix { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(159,227,201,.35); }
.pll-buzz__who { margin: 0 0 8px; padding-right: 44px; font: 800 12px/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #FFD27A; }
.pll-buzz__apps, .pll-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.pll-buzz__apps span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; background: #F3FBF7; color: #082238; font: 600 13.5px/1.2 var(--f-body); }
.pll-buzz__apps img, .pll-chips img { width: 20px; height: 20px; flex: none; }
.pll-buzz__how { margin: 0; font-size: 14.5px; line-height: 1.55; color: #E3F7EF; }
.pll-buzz.is-live .pll-buzz__fix { display: none; }
.pll-buzz.is-live .pll-buzz__fix.is-on { display: block; margin-top: 0; padding-top: 0; border-top: 0; animation: pllScreen .45s ease-out both; }
.pll-buzz.is-live.has-fix .pll-buzz__idle { display: none; }
.pll-buzz:not(.is-live) .pll-buzz__idle { display: none; }
/* CLS: while scripts load, show only the pressed fix so the screen does not jump */
@media (scripting: enabled) { .pll-buzz:not(.is-live) .pll-buzz__fix:not(:first-of-type) { display: none; } }
@keyframes pllScreen { from { opacity: 0; filter: brightness(2.2); } }
/* buzzer buttons */
.pll-buzz__panel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pll-buzz__btn { display: grid; grid-template-columns: minmax(0, 1fr) 30px; grid-template-areas: "name led" "job led"; column-gap: 12px; align-items: center; width: 100%; min-height: 54px; margin: 0; padding: 8px 10px 8px 14px;
  border: 0; border-radius: 12px; background: linear-gradient(180deg, #FFF8E6, #EFD9A4); color: #2E2206; text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(88,58,10,.35), 0 3px 0 #8A6420; transition: transform .12s, box-shadow .12s, background-color .2s; }
.pll-buzz__btn:hover { background: linear-gradient(180deg, #FFFDF4, #F3E1B4); }
.pll-buzz__btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px rgba(88,58,10,.35), 0 1px 0 #8A6420; }
.pll-buzz__name { grid-area: name; font: 800 12px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #6B4A0E; }
.pll-buzz__job { grid-area: job; font: 600 15px/1.35 var(--f-body); color: #2E2206; }
.pll-buzz__btn i { grid-area: led; justify-self: end; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #F1E7D0, #8E7A55 75%); box-shadow: inset 0 0 0 2px #6B4A0E; transition: background .25s, box-shadow .25s; }
.pll-buzz__btn[aria-pressed="true"] i { background: radial-gradient(circle at 40% 35%, #FFF6C9, #FFB81C 55%, #C97A00); box-shadow: inset 0 0 0 2px #6B4A0E, 0 0 14px 3px rgba(255,184,28,.75); }
.pll-buzz__btn.is-current { box-shadow: inset 0 0 0 2px #082238, 0 3px 0 #8A6420; }
.pll-buzz__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; padding-top: 12px; border-top: 2px solid rgba(88,58,10,.3); }
.pll-buzz__count { font: 700 13.5px/1.3 var(--f-body); color: #3A2A08; }
.pll-buzz__send, .pll-bill__send, .pll-switch__send { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: #082238; color: #fff; font: 700 15px/1.2 var(--f-body); cursor: pointer; transition: background-color .2s, transform .2s; }
.pll-buzz__send:hover, .pll-switch__send:hover { background: #0A4F7A; transform: translateY(-1px); }
.pll-buzz__status { flex-basis: 100%; margin: 0; font-size: 13.5px; line-height: 1.45; color: #3A2A08; }
.pll-buzz__status.is-done, .pll-switch__status.is-done { color: #14532D; font-weight: 700; }

/* ---------- 2. Answer + apartment-directory facts ---------- */
.pll-ans__head { max-width: 880px; }
.pll-facts { margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-radius: 20px; overflow: hidden; background: #0D2B3E; border: 6px solid #0D2B3E; }
.pll-fact { padding: 18px 18px 20px; background: #102F44; color: #E7F1F7; }
.pll-fact + .pll-fact { border-left: 2px solid #0D2B3E; }
.pll-fact dt { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 800 12px/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #F6E3B4; }
.pll-fact__no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(160deg, #F6E3B4, #C99A3E); color: #2E2206; font: 800 14px/1 var(--f-display); letter-spacing: 0; }
.pll-fact dd { margin: 0; font-size: 15px; line-height: 1.55; color: #E7F1F7; }
.pll-ans__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px clamp(20px, 3vw, 40px); margin-top: 26px; }
.pll-ans__more p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--pll-body); }
.pll-js .pll-facts .pll-fact { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--pll-d, 0s); }
.pll-js .pll-facts.is-in .pll-fact { opacity: 1; transform: none; }

/* ---------- 3. Industries (mid kit D deck deal) ---------- */
.pll-deal { margin-top: 30px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.pll-deal > li { display: flex; flex-direction: column; padding: 22px; border-radius: 6px 22px 22px 22px; border-left: 6px solid var(--pll-c, #8C3B2A); }
.pll-deal > li:nth-child(2) { --pll-c: #0A6FA8; } .pll-deal > li:nth-child(3) { --pll-c: #00706B; } .pll-deal > li:nth-child(4) { --pll-c: #B8862B; } .pll-deal > li:nth-child(5) { --pll-c: #1D3F8F; }
.pll-deal .mk-deal__tag { align-self: flex-start; }
.pll-deal > li h3 { font-size: 18px; margin-bottom: 10px; }
.pll-deal__rows { margin: 0; display: grid; gap: 10px; flex: 1; }
.pll-deal__rows dt { font: 800 11.5px/1.3 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--pll-brick); }
.pll-deal__rows dd { margin: 2px 0 0; font-size: 15px; line-height: 1.55; color: var(--pll-body); }
.pll-chips { margin: 6px 0 6px; }
.pll-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; background: #F3F7F9; border: 1px solid var(--pll-line); font: 600 13.5px/1.2 var(--f-body); color: var(--pll-ink); }
.pll-deal__link { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed #D3DEE6; }
.pll-deal__link a { display: inline-block; min-height: 24px; padding: 2px 0; font: 600 15px/1.35 var(--f-body); color: #0A6FA8; text-decoration: none; }
.pll-deal__link a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .pll-deal:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pll-deal:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pll-deal:has(> li:nth-child(5):last-child) > li { grid-column: span 2; }
  .pll-deal:has(> li:nth-child(5):last-child) > li:nth-child(n+4) { grid-column: span 3; }
}

/* ---------- 4. Two workflows: step chains ---------- */
.pll-flow__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.pll-chain-card { padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--pll-line); box-shadow: 0 22px 40px -36px rgba(8,34,56,.6); min-width: 0; }
.pll-chain-card h3 { margin: 0 0 14px; font: 700 18px/1.3 var(--f-display); color: var(--pll-ink); }
.pll-chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: pllc; }
.pll-chain li { counter-increment: pllc; position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; padding: 0 0 14px; }
.pll-chain li::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: repeating-linear-gradient(#B9CCD8 0 5px, transparent 5px 9px); }
.pll-chain li:last-child { padding-bottom: 0; } .pll-chain li:last-child::before { display: none; }
.pll-chain img { grid-row: span 2; width: 36px; height: 36px; padding: 6px; border-radius: 10px; background: #F3F7F9; border: 1px solid var(--pll-line); }
.pll-chain b { font: 800 12px/1.3 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--pll-deep); padding-top: 2px; }
.pll-chain b::before { content: counter(pllc) ". "; color: var(--pll-brick); }
.pll-chain span { font-size: 15px; line-height: 1.5; color: var(--pll-body); }

/* ---------- 5. Bill tracker (dark band) ---------- */
.pll-bill__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 40px); margin-top: 34px; align-items: start; }
.pll-bill__form { display: grid; gap: 18px; min-width: 0; }
.pll-bill__q { margin: 0; padding: 0; border: 0; min-width: 0; }
.pll-bill__q legend { padding: 0; margin-bottom: 10px; font: 700 16px/1.3 var(--f-display); color: #fff; }
.pll-bill__q label, .pll-switch fieldset label { position: relative; display: inline-flex; margin: 0 6px 8px 0; cursor: pointer; }
.pll-bill__q input, .pll-switch fieldset input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pll-bill__q label span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; font: 600 14.5px/1.2 var(--f-body); transition: background-color .2s, border-color .2s, color .2s; }
.pll-bill__q label:hover span { border-color: rgba(255,255,255,.7); }
.pll-bill__q input:checked + span { background: #fff; border-color: #fff; color: #082238; box-shadow: inset 0 -3px 0 #E9C46A; }
.pll-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pll-block { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 8px 10px; border-radius: 10px; border: 1.5px dashed rgba(255,255,255,.4); background: transparent; color: #fff; font: 600 14px/1.2 var(--f-body); text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; }
.pll-block img { width: 22px; height: 22px; flex: none; padding: 2px; border-radius: 6px; background: #fff; }
.pll-block:hover { border-color: #fff; transform: translateY(-1px); }
.pll-block[aria-pressed="true"] { border-style: solid; border-color: #E9C46A; background: rgba(233,196,106,.16); }
.pll-block[aria-pressed="true"]::after { content: ""; position: absolute; right: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: #E9C46A; }
.pll-bill__out { position: relative; padding: 22px; border-radius: 22px; background: #FBFAF6; color: var(--pll-body); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); min-width: 0; }
.pll-bill__out::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, #8C3B2A, #B8862B, #0A6FA8); }
.pll-bill__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.pll-bill__h b { font: 800 18px/1.25 var(--f-display); color: var(--pll-ink); }
/* progress track: three stations, fill grows with the furthest stage that holds an app */
.pll-track { position: relative; height: 22px; margin: 6px 12px 14px; }
.pll-track::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; background: #DCE5EB; }
.pll-track__fill { position: absolute; left: 0; top: 9px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #8C3B2A, #B8862B); width: 0; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.pll-track[data-level="1"] .pll-track__fill { width: 0; } .pll-track[data-level="2"] .pll-track__fill { width: 50%; } .pll-track[data-level="3"] .pll-track__fill { width: 100%; }
.pll-track i { position: absolute; top: 2px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 3px solid #B9C8D3; transition: border-color .3s, background-color .3s; }
.pll-track i:nth-of-type(1) { left: 0; } .pll-track i:nth-of-type(2) { left: 50%; } .pll-track i:nth-of-type(3) { left: 100%; }
.pll-track[data-level] i:nth-of-type(1), .pll-track[data-level="2"] i:nth-of-type(2), .pll-track[data-level="3"] i:nth-of-type(2), .pll-track[data-level="3"] i:nth-of-type(3) { border-color: #B8862B; background: #FFF4D6; }
.pll-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pll-stage { display: flex; flex-direction: column; min-width: 0; padding: 12px 10px; border-radius: 14px; background: #fff; border: 1.5px solid var(--pll-line); }
.pll-stage__n { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 6px; margin: 0 0 8px; }
.pll-stage__n b { font: 800 14px/1.2 var(--f-display); color: var(--pll-ink); }
.pll-stage__n span { font: 700 11px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pll-muted); }
.pll-stage__apps { display: flex; flex-direction: column; gap: 6px; min-height: 92px; margin: 0 0 8px; padding: 6px; border-radius: 10px; border: 1.5px dashed #D6C9A8; background: #FFFCF3; }
.pll-stage__apps span { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--pll-line); font: 600 13.5px/1.2 var(--f-body); color: var(--pll-ink); min-width: 0; }
.pll-stage__apps span img { width: 20px; height: 20px; flex: none; }
.pll-stage__apps span.is-drop { animation: pllStamp .45s cubic-bezier(.3,1.35,.5,1) both; }
@keyframes pllStamp { from { opacity: 0; transform: scale(1.35) rotate(-3deg); } }
.pll-stage__apps:empty::before { content: attr(data-empty); margin: auto; padding: 6px; font-size: 13px; line-height: 1.4; color: var(--pll-muted); text-align: center; }
.pll-stage__note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--pll-body); }
.pll-bill__move { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; border-left: 4px solid #B8862B; background: #FFF8E6; font-size: 14.5px; line-height: 1.5; }
.pll-bill__move b { display: block; font: 800 11.5px/1.3 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: #6B4A0E; margin-bottom: 2px; }
.pll-bill__send { margin-top: 16px; background: #8C3B2A; }
.pll-bill__send:hover { background: #6F2C1E; transform: translateY(-1px); }
.pll-bill__status, .pll-switch__status { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--pll-muted); min-height: 1em; }
.pll-bill__status.is-done { color: #166534; font-weight: 600; }

/* meeting-hours strip */
.pll-hours { margin-top: 14px; padding: 14px; border-radius: 14px; background: #F5FAFC; border: 1px solid #DCEAF2; }
.pll-hours__h { margin: 0 0 10px; font: 800 11.5px/1.3 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--pll-deep); }
.pll-hours__ruler { position: relative; display: grid; gap: 6px; }
.pll-hours__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: center; }
.pll-hours__row b { font: 700 12.5px/1.15 var(--f-body); color: var(--pll-ink); }
.pll-hours__bar { position: relative; height: 22px; border-radius: 6px; background: #E6EDF2; }
.pll-hours__bar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: #8C3B2A; }
.pll-hours__row--home .pll-hours__bar i { background: #00706B; }
.pll-hours__bar u { position: absolute; top: -3px; bottom: -3px; border-radius: 8px; border: 2px solid #B8862B; text-decoration: none; }
.pll-hours__ticks { display: flex; justify-content: space-between; margin-left: 104px; font: 600 11px/1 var(--f-body); color: var(--pll-muted); }
.pll-hours__say { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--pll-body); }

/* ---------- 6. Keep or move (mid kit Q swipe sort) ---------- */
.pll-swipe { margin-top: 30px; }
.pll-swipe .mk-swipe__card { border-top: 6px solid #8C3B2A; }
.pll-swipe .mk-swipe__card[data-win="a"] { border-top-color: #B8862B; }
.pll-swipe .mk-swipe__ctrl button { min-height: 44px; }

/* ---------- 7. Rules heatmap (rules x jurisdictions) + commuter payroll switch ---------- */
.pll-grid { margin-top: 30px; padding: 10px; border-radius: 22px; background: #fff; border: 1px solid var(--pll-line); }
.pll-grid__head, .pll-grid__row { display: grid; grid-template-columns: minmax(150px, .9fr) repeat(3, minmax(0, 1fr)) minmax(170px, 1fr); gap: 6px; }
.pll-grid__head { align-items: end; margin-bottom: 6px; }
.pll-grid__corner { padding: 8px 12px; font: 800 12px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pll-muted); }
.pll-grid__head::after { content: "In Zoho"; padding: 8px 12px; font: 800 12px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pll-teal); }
.pll-grid__head button { min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--pll-line); background: var(--pll-paper); color: var(--pll-ink); font: 700 13.5px/1.25 var(--f-body); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.pll-grid__head button:hover { border-color: #8C3B2A; }
.pll-grid__head button[aria-pressed="true"] { background: #082238; border-color: #082238; color: #fff; }
.pll-grid__row + .pll-grid__row { margin-top: 6px; }
.pll-grid__rule { margin: 0; padding: 12px; align-self: center; font: 700 15px/1.35 var(--f-display); color: var(--pll-ink); }
.pll-grid__cell { position: relative; margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; transition: opacity .3s, transform .45s cubic-bezier(.3,1.5,.5,1), box-shadow .25s; transition-delay: var(--pll-d, 0s); }
.pll-grid__cell b { display: block; margin-bottom: 2px; font: 800 11.5px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.pll-grid__cell[data-lvl="yes"] { background: #8C3B2A; color: #fff; }
.pll-grid__cell[data-lvl="maybe"] { background: #F7E2C8; color: #5A2A10; }
.pll-grid__cell[data-lvl="no"] { background: #EEF2F5; color: #475569; }
.pll-grid__zoho { margin: 0; padding: 12px 14px; border-radius: 12px; background: #E6F5F3; color: #0B3D3A; font-size: 14px; line-height: 1.5; }
.pll-grid__zoho span { display: none; }
.pll-grid.has-col .pll-grid__cell.is-dim { opacity: .28; }
.pll-grid.has-col .pll-grid__cell:not(.is-dim) { box-shadow: 0 12px 22px -16px rgba(8,34,56,.6); transform: translateY(-2px); }
.pll-js .pll-grid:not(.is-in) .pll-grid__cell { opacity: 0; transform: scale(.7); }

.pll-switch { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(18px, 3vw, 34px); margin-top: 26px; padding: clamp(18px, 2.5vw, 26px); border-radius: 22px; background: #FFF8E6; border: 1px solid #EBD9AE; }
.pll-switch__q h3 { margin: 0 0 6px; font: 800 19px/1.3 var(--f-display); color: var(--pll-ink); }
.pll-switch__q > p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--pll-body); }
.pll-switch fieldset { margin: 0 0 10px; padding: 0; border: 0; min-width: 0; }
.pll-switch legend { padding: 0; margin-bottom: 8px; font: 800 12px/1.3 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: #6B4A0E; }
.pll-switch fieldset label span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid #D9C28A; background: #fff; color: var(--pll-ink); font: 600 14.5px/1.2 var(--f-body); transition: background-color .2s, border-color .2s, color .2s; }
.pll-switch fieldset input:checked + span { background: #082238; border-color: #082238; color: #fff; }
.pll-switch__out { min-width: 0; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid #EBD9AE; }
.pll-switch__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pll-switch__list li { position: relative; padding: 8px 10px 8px 34px; border-radius: 10px; background: #F3F7F9; font-size: 14.5px; line-height: 1.5; color: var(--pll-ink); }
.pll-switch__list li::before { content: ""; position: absolute; left: 11px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: #FFB81C; box-shadow: 0 0 0 3px rgba(255,184,28,.25); }
.pll-switch__list li[hidden] { display: none; }
.pll-switch__list li.is-new { animation: pllScreen .4s ease-out both; }
.pll-switch__send { margin-top: 14px; }

/* ---------- 8. Custom builds: lettered unit directory ---------- */
.pll-dir { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pll-dir__item { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--pll-line); }
.pll-dir__unit { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 10px; background: linear-gradient(160deg, #F6E3B4, #C99A3E); color: #2E2206; font: 800 24px/1 var(--f-display); box-shadow: inset 0 -3px 0 rgba(88,58,10,.35); }
.pll-dir__item h3 { margin: 0 0 6px; font: 700 17px/1.3 var(--f-display); color: var(--pll-ink); }
.pll-dir__item p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--pll-body); }
.pll-build__more { margin: 20px 0 0; font-size: 16px; line-height: 1.6; color: var(--pll-body); }

/* ---------- 9. How we work: intercom schedule ---------- */
.pll-how__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px clamp(20px, 3vw, 40px); align-items: start; margin-top: 16px; }
.pll-how__intro > p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--pll-body); }
.pll-sched { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pll-sched__m { position: relative; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--pll-line); transition: border-color .3s, box-shadow .3s; }
.pll-sched__m::after { content: ""; position: absolute; right: 14px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: #CBD5E1; }
.pll-sched__t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0 0 10px; padding-right: 20px; font: 800 13px/1.3 var(--f-body); }
.pll-sched__t span { padding: 3px 8px; border-radius: 6px; background: #F7E2C8; color: #5A2A10; }
.pll-sched__t span + span { background: #E6F5F3; color: #00574F; }
.pll-sched__t span[hidden] { display: none; }
.pll-sched__m h3 { margin: 0 0 6px; font: 700 16.5px/1.3 var(--f-display); color: var(--pll-ink); }
.pll-sched__m p:not(.pll-sched__t) { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--pll-body); }
.pll-sched.is-live .pll-sched__m.is-on { border-color: #B8862B; box-shadow: 0 0 0 3px rgba(184,134,43,.22); }
.pll-sched.is-live .pll-sched__m.is-on::after { background: #FFB81C; box-shadow: 0 0 10px 2px rgba(255,184,28,.7); }

/* ---------- 10. Cost: court docket card ---------- */
.pll-cost__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pll-cost__grid > div > p:not(.hp-kick):not(.pg-answer) { margin: 14px 0 0; font-size: 16.5px; line-height: 1.65; color: var(--pll-body); max-width: 62ch; }
.pll-docket-wrap { justify-self: center; width: min(100%, 400px); }
.pll-docket { position: relative; padding: 22px 20px 20px 44px; border-radius: 4px; background-color: #FFFEF7; color: var(--pll-ink); font-variant-numeric: tabular-nums;
  background-image: linear-gradient(90deg, transparent 30px, #E7A39A 30px, #E7A39A 32px, transparent 32px), repeating-linear-gradient(#FFFEF7 0 29px, #D9E6EE 29px 30px);
  box-shadow: 0 2px 0 #EFE9D6, 0 4px 0 #FFFEF7, 0 6px 0 #E8E0C8, 0 30px 50px -30px rgba(8,34,56,.5); transform: rotate(-.6deg); }
.pll-docket::before { content: ""; position: absolute; left: 50%; top: -12px; width: 90px; height: 22px; margin-left: -45px; border-radius: 6px 6px 10px 10px; background: linear-gradient(180deg, #C9CED3, #8D959C); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.pll-docket__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 0 4px; }
.pll-docket__h span { font: 800 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #8C3B2A; }
.pll-docket__h b { font: 800 17px/1.25 var(--f-display); }
.pll-docket__meta { margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--pll-muted); }
.pll-docket__rows { list-style: none; margin: 0; padding: 8px 0; border-top: 2px solid #082238; border-bottom: 2px solid #082238; display: grid; gap: 8px; }
.pll-docket__rows li { display: grid; grid-template-columns: 22px 20px minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline; font-size: 15px; }
.pll-docket__no { font: 800 12px/1 var(--f-body); color: #8C3B2A; }
.pll-docket__rows img { width: 20px; height: 20px; align-self: start; margin-top: 1px; }
.pll-docket__rows span:not(.pll-docket__no) { font-weight: 600; }
.pll-docket__rows small { display: block; font-size: 13px; font-weight: 400; color: var(--pll-muted); }
.pll-docket__rows b { font-weight: 700; }
.pll-docket__total, .pll-docket__alt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 10px 0 0; font: 700 15px/1.3 var(--f-body); }
.pll-docket__total b { font: 800 24px/1.2 var(--f-display); }
.pll-docket__alt { padding-top: 8px; border-top: 1px dashed #B9C8D3; font-weight: 600; color: var(--pll-body); }
.pll-docket__fee { margin: 14px 0 0; padding: 8px 12px; border: 2px solid #8C3B2A; border-radius: 8px; font: 800 13px/1.45 var(--f-body); letter-spacing: .02em; color: #8C3B2A; text-align: center; text-transform: uppercase; transform: rotate(-2.5deg); }
.pll-docket__foot { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--pll-muted); }

/* ---------- 11. How we start ---------- */
.pll-path { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: pllp; }
.pll-path li { counter-increment: pllp; position: relative; padding: 18px 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--pll-line); border-top: 5px solid #8C3B2A; }
.pll-path li:nth-child(2) { border-top-color: #B8862B; } .pll-path li:nth-child(3) { border-top-color: #0A6FA8; } .pll-path li:nth-child(4) { border-top-color: #00706B; }
.pll-path li::before { content: "No. " counter(pllp); display: inline-block; margin-bottom: 10px; padding: 4px 9px; border-radius: 6px; background: #082238; color: #F6E3B4; font: 800 12px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.pll-path b { display: block; font: 700 17px/1.3 var(--f-display); color: var(--pll-ink); margin-bottom: 6px; }
.pll-path span { font-size: 15px; line-height: 1.55; color: var(--pll-body); }
.pll-local { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 30px; padding: 20px 22px; border-radius: 20px; background: #082238; color: #fff; }
.pll-local p { margin: 0; font: 700 clamp(17px, 1rem + .3vw, 20px)/1.35 var(--f-display); flex: 1 1 260px; }
.pll-local .pg-link { margin-top: 0; color: #9FD8F2 !important; }

/* ---------- 12. Last reviewed ---------- */
.pll-rev { padding-top: 0 !important; }
.pll-rev p { margin: 0; padding: 12px 16px; border-radius: 14px; background: #F3F7F9; border: 1px solid var(--pll-line); font-size: 14.5px; line-height: 1.5; color: var(--pll-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pll-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pll-fact:nth-child(3) { border-left: 0; }
  .pll-fact:nth-child(n+3) { border-top: 2px solid #0D2B3E; }
  .pll-sched { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pll-grid__head, .pll-grid__row { grid-template-columns: minmax(130px, .8fr) repeat(3, minmax(0, 1fr)); }
  .pll-grid__head::after { display: none; }
  .pll-grid__zoho { grid-column: 2 / -1; }
  .pll-grid__zoho span { display: inline; margin-right: 6px; font-weight: 800; }
}
@media (max-width: 980px) {
  .pll-hero__grid, .pll-bill__grid, .pll-cost__grid, .pll-how__intro, .pll-ans__more, .pll-flow__grid, .pll-switch { grid-template-columns: 1fr; }
  .pll-buzz-wrap { max-width: 600px; }
  .pll-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pll-grid { padding: 8px; }
  .pll-grid__head { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pll-grid__corner { display: none; }
  .pll-grid__row { grid-template-columns: 1fr; gap: 4px; padding: 8px; border-radius: 14px; background: var(--pll-paper); }
  .pll-grid__rule { padding: 4px 6px 6px; }
  .pll-grid__cell::before { content: attr(data-name); display: block; margin-bottom: 2px; font: 700 12px/1.3 var(--f-body); opacity: .85; }
  .pll-grid__zoho { grid-column: auto; }
  .pll-grid.has-col .pll-grid__cell.is-dim { display: none; }
  .pll-dir { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pll-stages { grid-template-columns: 1fr; }
  .pll-stage__apps { min-height: 48px; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .pll-buzz-wrap { padding: 10px; border-radius: 20px; }
  .pll-buzz { padding: 16px 12px 14px; }
  .pll-buzz__plate { flex-wrap: wrap; }
  .pll-buzz__job { font-size: 14.5px; }
  .pll-facts { grid-template-columns: 1fr; }
  .pll-fact + .pll-fact { border-left: 0; border-top: 2px solid #0D2B3E; }
  .pll-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pll-bill__out { padding: 16px; }
  .pll-hours__row { grid-template-columns: 76px minmax(0, 1fr); }
  .pll-hours__ticks { margin-left: 84px; }
  .pll-sched { grid-template-columns: 1fr; }
  .pll-path { grid-template-columns: 1fr; }
  .pll-grid__head button { padding: 6px; font-size: 12.5px; }
  .pll-docket { padding-left: 40px; padding-right: 14px; transform: none; }
  .pll-docket__rows li { grid-template-columns: 16px 20px minmax(0, 1fr) auto; column-gap: 6px; }
  .pll-chain-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pll-buzz__btn, .pll-buzz__btn i, .pll-block, .pll-buzz__send, .pll-bill__send, .pll-track__fill, .pll-grid__cell { transition: none !important; }
  .pll-buzz.is-live .pll-buzz__fix.is-on, .pll-stage__apps span.is-drop, .pll-switch__list li.is-new { animation: none !important; }
  .pll-js .pll-facts .pll-fact, .pll-js .pll-grid:not(.is-in) .pll-grid__cell { opacity: 1 !important; transform: none !important; }
}
