/* The paid views before they're paid for (app-paid-lock.js): the locks where competitor figures would be, the unlock
   bar at the top of every view, and the parts that are locked whole. On View A's tokens, so the light theme carries
   most of it; the few hard-coded colours are restated for it at the foot. No style attributes. */

/* A locked figure: "🔒 £•••", a pill that opens the unlock. */
.pd-lock{display:inline-flex;align-items:center;gap:5px;padding:0 9px;border:1px dashed rgba(255,245,91,.45);border-radius:999px;
  background:rgba(255,245,91,.06);color:var(--dim);font-weight:600;font-style:normal;line-height:1.6;white-space:nowrap;cursor:pointer;vertical-align:baseline}
.pd-lock:hover{border-style:solid;color:var(--fg);background:rgba(255,245,91,.12)}
.pd-lock-mask{letter-spacing:.08em}
.pd-lock-i{width:13px;height:13px;flex:none;stroke:currentColor;stroke-width:1.6;fill:none}
.pd-lock-i rect{fill:currentColor;fill-opacity:.25}
:is(.pd-stat-big,.pd-card-big,.pd-prize-big) .pd-lock{font-family:Inter,sans-serif;font-size:.62em;letter-spacing:0;padding:2px 12px;vertical-align:middle}
:is(.pd-stat-big,.pd-card-big,.pd-prize-big) .pd-lock-i{width:16px;height:16px}
.pd-tag.is-locked{display:inline-flex;align-items:center;gap:5px;border-style:dashed;border-color:rgba(255,245,91,.45);cursor:pointer}
.pd-tag.is-locked:hover{border-style:solid;color:var(--fg)}
.pd-locked-btn{display:inline-flex;align-items:center;gap:8px}

/* "Where you stand": the track blurred under the lock, and the locks beside it a size down. */
.pd-ladder.is-locked .pd-ladder-trackbox{filter:blur(2px);opacity:.55;cursor:pointer}
.pd-ladder.is-locked .pd-lock{font-size:.8rem;padding:0 7px}

/* The unlock bar, stuck to the top of the window over every view. */
.pd-lockbar{position:sticky;top:0;z-index:35;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0 0 14px;padding:12px 16px;
  border:1px solid rgba(255,245,91,.5);border-radius:14px;background:rgba(11,32,57,.97);box-shadow:0 10px 30px rgba(0,0,0,.32)}
.pd-lockbar-text{flex:1 1 300px;min-width:0}
.pd-lockbar-text p{margin:0}
.pd-lockbar-line{font-weight:700}
.pd-lockbar-price{color:var(--dim);font-size:.9rem;margin-top:2px}
.pd-lockbar-note{color:var(--dim2);font-size:.82rem;margin-top:2px}
.pd-lockbar-btn{flex:none}
.pd-lockbar-alert{flex-basis:100%;margin:0;color:var(--red);font-weight:600}
/* On a phone it stays in reach without taking the screen: the line, the price and the button. The payment window
   repeats the VAT and test-card line (app-pay-page.js). */
@media (max-width:640px){
  .pd-lockbar{padding:8px 12px;gap:6px 10px;border-radius:12px}
  .pd-lockbar-note{display:none}
  .pd-lockbar-line{font-size:.9rem;line-height:1.35}
  .pd-lockbar-price{font-size:.8rem}
  .pd-lockbar-btn{flex:1 1 100%;padding:9px 16px}
}

/* A part locked whole: what it holds, and its own unlock. */
.pd-locked{border:1px dashed var(--line2);border-radius:16px;padding:16px 18px;background:rgba(15,42,71,.5)}
.pd-locked-lines{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:10px;max-width:70ch}
.pd-locked-lines li{display:flex;gap:10px;align-items:flex-start}
.pd-locked-lines .pd-lock-i{margin-top:4px;color:var(--yellow)}
.pd-locked-go{margin:0}
.pd-skel-chart{height:130px;margin:6px 0 16px;border-radius:12px;filter:blur(3px);opacity:.7;
  background:repeating-linear-gradient(to bottom,transparent 0 31px,var(--line) 31px 32px)}
.pd-skel-chart svg{width:100%;height:100%}
.pd-skel-chart path{stroke-width:2.5;vector-effect:non-scaling-stroke}
.pd-skel-chart .is-you{stroke:var(--yellow)}
.pd-skel-chart .is-them{stroke:var(--blue);stroke-opacity:.6}

/* A profile while locked: why the company is on your list. */
.pd-cp-why{margin:0 0 6px;color:var(--dim);max-width:80ch}

/* "Ask about your analysis" while locked: the padlock in place of the speech bubble. */
.pd-chat-lock{width:16px;height:16px;flex:none;stroke:currentColor;stroke-width:1.8;fill:none}
.pd-chat-lock rect{fill:currentColor;fill-opacity:.25}

html[data-pf-theme="light"] .pd-lockbar{background:rgba(255,255,255,.97);border-color:rgba(176,134,0,.55);box-shadow:0 10px 30px rgba(11,32,57,.14)}
html[data-pf-theme="light"] :is(.pd-lock,.pd-tag.is-locked){border-color:rgba(176,134,0,.55);background:rgba(245,196,0,.08)}
html[data-pf-theme="light"] .pd-lock:hover{background:rgba(245,196,0,.16)}
html[data-pf-theme="light"] .pd-locked-lines .pd-lock-i{color:var(--pf-ink-you)}
html[data-pf-theme="light"] .pd-locked{background:rgba(11,32,57,.03)}
html[data-pf-theme="light"] .pd-skel-chart .is-you{stroke:#D6A000}
