/* /for-professional-services artwork. Tokens only, no colour literals. Linked from that page's body; not part of the shared bundle.
   One grid (4px), one line weight (1px hairlines, 1.5px strokes on icons), one accent (volt for "done", tide for "in"). */
.pq-fig { margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pq-fig figcaption { font: 400 14px/22px var(--font-text); color: var(--ink-muted); max-width: 46em; }
.pq-eyebrow { font: 600 12px/18px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.pq-sample { font: 450 12px/18px var(--font-mono); color: var(--ink-muted); }
.pq-tick { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- hero flow: four stages on one hairline rail ---- */
.pq-flow { padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lift); gap: 24px; }
.pq-flow-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.prose .pq-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); max-width: none; }
.prose .pq-stages > li { max-width: none; font: inherit; color: inherit; }
.pq-stage { min-width: 0; position: relative; padding-left: 36px; display: flex; flex-direction: column; gap: 6px; }
.prose .pq-stage p { max-width: none; margin: 0; }
.pq-node { position: absolute; left: 0; top: 0; width: 20px; height: 20px; box-sizing: border-box; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line-strong); z-index: 1; }
.pq-node-start { border-color: var(--tide-text); }
.pq-node-start::after { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--tide-text); }
.pq-node-done { background: var(--volt-text); border-color: var(--volt-text); }
.pq-node .pq-tick { stroke: var(--bg); stroke-width: 2; }
.pq-node-wait { border-color: var(--ink-muted); }
.pq-node-wait::after { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--ink-muted); }
.pq-node-next { border-color: var(--line-strong); border-style: dashed; }
.pq-node-open { background: var(--volt); border-color: var(--volt-text); box-shadow: 0 0 0 4px var(--volt-soft); }
.pq-node-open::after { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--on-volt); }
/* vertical rail on small screens */
.pq-stage:not(:last-child)::before { content: ""; position: absolute; left: 9.5px; top: 22px; bottom: -26px; width: 1px; background: var(--line-strong); opacity: .7; }
.pq-stage:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 22px; bottom: -26px; width: 2px; border-radius: 2px; background: var(--volt-text); }
.prose .pq-step { font: 600 11.5px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding-top: 2px; }
.prose .pq-title { display: block; margin: 0; font: 680 18px/24px var(--font-display); letter-spacing: -.015em; color: var(--ink); }
.prose .pq-state { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/18px var(--font-text); color: var(--volt-text); }
.prose .pq-state-info { color: var(--tide-text); }
.prose .pq-state-wait { color: var(--ink); }
.prose .pq-state-wait::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); border: 1.5px solid var(--ink-muted); box-sizing: border-box; }
.prose .pq-state-next { color: var(--ink-muted); }
.pq-stage-wait::after, .pq-stage-next::after { background: var(--line-strong) !important; animation: none !important; }
.prose .pq-state-open { color: var(--ink); }
.prose .pq-state-open::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--volt); box-shadow: 0 0 0 1px var(--volt-text); }
.pq-kv { margin: 6px 0 0 !important; display: flex; flex-direction: column; gap: 0 !important; }
.pq-kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding: 7px 0; }
.pq-kv dt, .prose .pq-kv dt, .prose .pq-kv dd { margin: 0; font: 450 12.5px/18px var(--font-text); }
.pq-kv dt, .prose .pq-kv dt { color: var(--ink-muted); flex: none; }
.prose .pq-kv dd { color: var(--ink); text-align: right; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.prose .pq-who { font: 450 12.5px/18px var(--font-text); color: var(--ink-muted); }
.prose .pq-quote { margin-top: 4px; padding-left: 10px; border-left: 1px solid var(--line-strong); font: 400 13.5px/20px var(--font-text); color: var(--ink); }
.prose .pq-clock { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); font: 550 12.5px/18px var(--font-text); color: var(--ink); }
.pq-ring-bg { fill: none; stroke: var(--line-strong); stroke-width: 3; opacity: .45; }
.pq-ring { fill: none; stroke: var(--volt-text); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 62 100; transform: rotate(-90deg); transform-origin: 14px 14px; }

@media (min-width: 780px) {
  .pq-flow { padding: 26px 28px 24px; }
  .prose .pq-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .pq-stage { padding-left: 0; padding-top: 38px; }
  .pq-stage:not(:last-child)::before, .pq-stage:not(:last-child)::after { left: 24px; right: -28px; top: 9.5px; bottom: auto; width: auto; height: 1px; }
  .pq-stage:not(:last-child)::after { top: 9px; height: 2px; transform-origin: left; animation: pq-draw 700ms var(--ease-out) both; }
  .pq-stage:nth-child(2)::after { animation-delay: 500ms; }
  .pq-stage:nth-child(3)::after { animation-delay: 1000ms; }
  .pq-node { top: 0; }
}

/* ---- steps + screenshots ---- */
.pq-steps { counter-reset: pq; list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 18px !important; }
.prose .pq-steps li { counter-increment: pq; position: relative; padding-left: 40px; max-width: none; }
.pq-steps li::before { content: counter(pq); position: absolute; left: 0; top: 0; width: 26px; height: 26px; box-sizing: border-box; border-radius: var(--radius-pill); display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line-strong); font: 600 12px/1 var(--font-mono); }
.pq-frame { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunken); box-shadow: var(--shadow-lift); }
.pq-frame img { display: block; width: 100%; height: auto; }
.mk[data-theme="night"] .pq-shot-day, .mk:not([data-theme="night"]) .pq-shot-night { display: none; }
.pq-shotfig { margin-top: 16px; }
.pq-shotfig figcaption, .pq-portal figcaption { display: flex; flex-direction: column; gap: 2px; }
.pq-split { display: block; }
.pq-pair { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: 16px; }
.pq-pair .pq-shotfig, .pq-pair .pq-portal { margin-top: 0; }
@media (min-width: 900px) { .pq-pair { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 32px; } }
@media (min-width: 1300px) {
  .pq-approval { width: 1120px; max-width: calc(100vw - 80px); margin-right: -240px; }
  .pq-pair { width: 1120px; margin-right: -240px; }
}
@media (min-width: 1300px) and (max-width: 1399px) { .pq-approval, .pq-pair { width: calc(100vw - 80px); margin-right: calc(880px - (100vw - 80px)); } }

/* ---- portal mock: one card, no fake browser chrome ---- */
.pq-win { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lift); }
.pq-win-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.pq-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pq-brand span { display: flex; flex-direction: column; }
.pq-brand strong { font: 700 15px/18px var(--font-display); color: var(--ink); }
.pq-brand small { font: 450 11.5px/16px var(--font-text); color: var(--ink-muted); }
.pq-mono-bg { fill: var(--ink); }
.pq-mono-line { fill: none; stroke: var(--bg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.prose .pq-portal-h { margin: 0; max-width: none; font: 600 11.5px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.pq-row { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-raised); display: flex; flex-direction: column; gap: 12px; }
.pq-row-on { border-color: var(--line-strong); }
.pq-row-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pq-row-top strong { font: 600 13.5px/18px var(--font-text); color: var(--ink); }
.pq-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-pill); font: 600 11.5px/22px var(--font-text); white-space: nowrap; }
.pq-pill-volt { background: var(--volt-soft); color: var(--volt-text); }
.pq-pill-amber { background: var(--amber-soft); color: var(--amber-text); }
.prose .pq-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.prose .pq-track li { max-width: none; padding: 0; font: 500 10.5px/14px var(--font-text); color: var(--ink-muted); display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; }
.pq-track li span { width: 10px; height: 10px; box-sizing: border-box; border-radius: var(--radius-pill); background: var(--surface); border: 1.5px solid var(--line-strong); position: relative; z-index: 1; }
.pq-track li::before { content: ""; position: absolute; top: 4.5px; right: 50%; width: 100%; height: 1px; background: var(--line-strong); }
.pq-track li:first-child::before { display: none; }
.pq-track li.is-done::before, .pq-track li.is-now::before { background: var(--volt-text); }
.pq-track li.is-done span { background: var(--volt-text); border-color: var(--volt-text); }
.pq-track li.is-now span { background: var(--volt); border-color: var(--volt-text); box-shadow: 0 0 0 3px var(--volt-soft); }
.prose .pq-track li.is-now { color: var(--ink); font-weight: 650; }
.pq-msg { display: flex; gap: 8px; align-items: flex-start; }
.pq-av { flex: none; width: 26px; height: 26px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--surface-sunken); border: 1px solid var(--line); color: var(--ink); font: 600 10px/1 var(--font-mono); }
.prose .pq-msg p { max-width: none; padding: 8px 10px; border-radius: 4px var(--radius-sm) var(--radius-sm) var(--radius-sm); background: var(--surface-sunken); font: 400 12.5px/18px var(--font-text); color: var(--ink); }
@media (max-width: 899px) { .pq-portal { max-width: 440px; } }

/* ---- capabilities: one ruled ledger, line icons on a 24px grid ---- */
.pq-callouts { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 0; }
.pq-callout { padding: 22px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.prose .pq-callout h3 { margin: 6px 0 0; font-size: 18px; line-height: 24px; }
.prose .pq-callout p { font-size: 15px; line-height: 23px; }
@media (min-width: 600px) { .pq-callouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pq-callout:last-child { grid-column: 1 / -1; } }
@media (min-width: 900px) { .pq-callouts { grid-template-columns: repeat(6, minmax(0, 1fr)); } .pq-callout { grid-column: span 2; } .pq-callout:nth-child(n+4), .pq-callout:last-child { grid-column: span 3; } }
.pq-ico { fill: none; stroke: var(--volt-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pq-ico .pq-ico-bg { fill: var(--surface); }

/* ---- pricing: one strip, middle tier marked with a rule ---- */
.pq-price { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.pq-price-tier { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); position: relative; }
.pq-price-tier:first-child { border-left: 0; }
.pq-price-tier:nth-child(2)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--volt-text); }
.pq-price-n { font: 760 clamp(24px, 4vw, 34px)/1.1 var(--font-display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pq-price-u { font: 450 12.5px/18px var(--font-mono); color: var(--ink-muted); }
.pq-price-for { font: 600 14px/20px var(--font-text); color: var(--ink); margin-top: 6px; }
@media (max-width: 520px) { .pq-price { grid-template-columns: minmax(0, 1fr); } .pq-price-tier { border-left: 0; border-top: 1px solid var(--line); flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; } .pq-price-tier:first-child { border-top: 0; } .pq-price-tier:nth-child(2)::before { right: auto; width: 2px; height: 100%; } .pq-price-for { margin: 0; } }

/* ---- motion: one calm rail draw on load, never tied to scroll ---- */
@keyframes pq-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .pq-stage::after { animation: none !important; } }

/* ---- screenshots: sideways-scrolling frame at natural-ish size on phones, wider frames on huge screens ---- */
@media (max-width: 760px) {
  .pq-frame { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .pq-frame img { width: 1000px; max-width: none; scroll-snap-align: start; }
}
.pq-frame:focus-visible { outline: 2px solid var(--tide-text); outline-offset: 2px; }
@media (min-width: 2200px) {
  .pq-approval { width: 1440px; max-width: calc(100vw - 80px); margin-right: -560px; }
  .pq-pair { width: 1440px; margin-right: -560px; }
}
@media (max-width: 760px) { .pq-approval .pq-frame { direction: rtl; } .pq-approval .pq-frame img { direction: ltr; } }
