/* Legal Staff — Advocate Partner Network. Extends static/site.css with the same tokens (ink on paper, Instrument Sans, 12px radius); no new colours. */
.pn-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.pn-card h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 6px; }
.pn-form { display: grid; gap: 16px; }
.pn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pn-form label, .pn-f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.pn-form input, .pn-form select, .pn-form textarea, .pn-inp { height: 46px; border: 1px solid #CFCFCF; border-radius: var(--radius-sm); padding: 0 12px; background: var(--white); width: 100%; font-size: 16px; }
.pn-form textarea { height: auto; padding: 10px 12px; min-height: 96px; resize: vertical; }
.pn-form input:focus, .pn-form select:focus, .pn-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.pn-form .pn-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; }
.pn-form .pn-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.pn-hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.pn-err { color: var(--red); background: var(--red-bg); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; }
.pn-ok { background: #E7F6EC; color: #137333; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; }
.pn-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-ink { background: var(--ink); color: var(--white); } .btn-ink:hover { background: #2B2B2B; }
.btn-line { background: var(--white); color: var(--ink); border: 1px solid #CFCFCF; } .btn-line:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: default; }
.pn-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-width: 760px; }
.pn-steps li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pn-steps p { margin: 4px 0 0; color: var(--muted); }
.pn-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.pn-note { max-width: 820px; border-left: 3px solid var(--ink); padding: 4px 0 4px 18px; color: var(--text); }
.pn-note p { margin: 0 0 10px; }
.pn-cats .lg-tile { cursor: default; }

/* portal */
.pn-tabs { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 18px 0 24px; scrollbar-width: none; }
.pn-tabs::-webkit-scrollbar { display: none; }
.pn-tabs a { padding: 10px 14px; border-radius: 8px 8px 0 0; text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.pn-tabs a:hover { color: var(--ink); } .pn-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.pn-grow { flex: 1; }
.pn-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.pn-stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--white); }
.pn-stat span { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pn-stat b { display: block; font-size: 28px; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pn-stat small { color: var(--muted); }
.pn-grid2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin-bottom: 24px; }
@media (max-width: 860px) { .pn-grid2, .pn-row { grid-template-columns: 1fr; } }
.pn-link { display: flex; gap: 8px; } .pn-link input { flex: 1; min-width: 0; height: 44px; border: 1px solid #CFCFCF; border-radius: var(--radius-sm); padding: 0 12px; font-size: 14px; background: var(--soft); }
.pn-qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; } .pn-qr svg, .pn-qr img { width: 160px; height: 160px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.pn-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.pn-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pn-table th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pn-table td { padding: 12px 14px; border-bottom: 1px solid #EFEFEE; vertical-align: top; } .pn-table tr:last-child td { border-bottom: 0; } .pn-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.pn-empty { padding: 28px; text-align: center; color: var(--muted); }
.pn-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--soft-2); color: var(--text); white-space: nowrap; }
.pn-chip.good { background: #E7F6EC; color: #137333; } .pn-chip.warn { background: #FEF3E2; color: #B54708; } .pn-chip.bad { background: var(--red-bg); color: var(--red); }
.pn-bars { display: flex; align-items: flex-end; gap: 14px; height: 160px; padding-top: 10px; }
.pn-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.pn-bar i { display: block; width: 100%; max-width: 38px; background: var(--ink); border-radius: 4px 4px 0 0; min-height: 2px; } .pn-bar i.b { background: #9A9A9A; }
.pn-bar span { font-size: 12px; color: var(--muted); }
.pn-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 8px; } .pn-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--ink); } .pn-legend i.b { background: #9A9A9A; }
.pn-h { font-size: 17px; font-weight: 600; margin: 0 0 12px; letter-spacing: -.01em; }
.pn-notif { padding: 12px 0; border-bottom: 1px solid var(--line); } .pn-notif:last-child { border-bottom: 0; } .pn-notif b { display: block; } .pn-notif.unread b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); margin-right: 8px; }
.pn-notif small { color: var(--muted); }
.pn-banner { border: 1px solid var(--line); background: var(--soft); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; }
.pn-res { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--white); margin-bottom: 12px; } .pn-res pre { white-space: pre-wrap; font: inherit; background: var(--soft); padding: 12px; border-radius: 8px; margin: 10px 0; }

/* ---- single-page partner dashboard ---- */
.pn-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pn-top .h2 { margin: 0; }
.pn-welcome { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 18px; display: grid; gap: 4px; }
.pn-welcome span { color: #CFCFCF; }
.pn-jump { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 22px; padding-bottom: 4px; scrollbar-width: none; position: sticky; top: 0; z-index: 4; background: var(--white); }
.pn-jump::-webkit-scrollbar { display: none; }
.pn-jump a { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; }
.pn-jump a:hover { border-color: var(--ink); color: var(--ink); }
.pn-sec { margin-bottom: 40px; scroll-margin-top: 64px; }
.pn-sh { font-size: 22px; letter-spacing: -.02em; margin: 0 0 14px; }
.pn-heroCard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--ink); color: var(--white); border-radius: 16px; padding: clamp(20px, 3vw, 32px); margin-bottom: 22px; }
.pn-heroCard h2 { color: var(--white); font-size: clamp(22px, 3vw, 30px); letter-spacing: -.025em; margin: 6px 0 16px; }
.pn-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #BDBDBD; }
.pn-linkDark input { background: #1A1A1A; border: 1px solid #3A3A3A; color: var(--white); }
.pn-heroNote { margin: 14px 0 0; font-size: 13px; color: #BDBDBD; max-width: 560px; }
.pn-heroQr svg, .pn-heroQr img { width: 168px; height: 168px; background: #fff; border-radius: 12px; padding: 10px; }
@media (max-width: 760px) { .pn-heroCard { grid-template-columns: 1fr; } .pn-heroQr { justify-self: start; } }
.btn-ghost-light { border: 1px solid #555; color: var(--white); }

/* ---------- Partner app shell, redesigned dashboard ---------- */
.pn-portal.pn-shelled { padding-top: 28px; background: #F6F6F4; }
.pn-portal.pn-shelled .pn-top { display: none; }
.pn-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 28px; align-items: start; }
.pn-side { position: sticky; top: 84px; background: var(--ink); color: #fff; border-radius: 18px; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 12px 32px rgba(10,10,10,.16); }
.pn-me { display: flex; gap: 12px; align-items: center; padding: 6px 8px 14px; border-bottom: 1px solid #262626; }
.pn-me b { display: block; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.pn-me small { color: #A8A8A8; font-size: 12px; }
.pn-av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(135deg, #3B5BDB, #7A5AF8); }
.pn-nav { display: grid; gap: 2px; }
.pn-nav a, .pn-signout { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #C9C9C9; text-decoration: none; font-size: 14.5px; font-weight: 500; transition: background .18s, color .18s, transform .18s; }
.pn-nav a:hover, .pn-signout:hover { background: #1B1B1B; color: #fff; }
.pn-nav a[aria-current="page"] { background: #fff; color: var(--ink); font-weight: 600; }
.pn-signout { margin-top: 4px; border-top: 1px solid #262626; border-radius: 0 0 10px 10px; padding-top: 14px; }
.pn-ic { flex: none; }
.pn-main { min-width: 0; }
.pn-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.pn-hello { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.pn-head #pn-title { margin: 0; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.03em; }
.pn-panel.pn-in { animation: pnFade .38s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pnFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pn-skel { display: grid; gap: 12px; } .pn-skel i { display: block; height: 84px; border-radius: 14px; background: linear-gradient(90deg, #ECECEA 25%, #F6F6F4 50%, #ECECEA 75%); background-size: 200% 100%; animation: pnShim 1.2s infinite linear; }
@keyframes pnShim { to { background-position: -200% 0; } }

.pn-portal.pn-shelled .pn-card, .pn-portal.pn-shelled .pn-stat, .pn-portal.pn-shelled .pn-tablewrap, .pn-portal.pn-shelled .pn-res { border-color: #E6E6E2; border-radius: 16px; box-shadow: 0 1px 2px rgba(10,10,10,.04); }
.pn-portal.pn-shelled .pn-card { padding: 22px; }
.pn-cardHead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; } .pn-cardHead .pn-h { margin: 0; }
.pn-muted2 { font-size: 12.5px; color: var(--muted); }
.pn-rise { animation: pnRise .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes pnRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.pn-heroCard { position: relative; overflow: hidden; border-radius: 20px; background: radial-gradient(900px 300px at 85% -20%, rgba(59,91,219,.45), transparent 60%), radial-gradient(600px 260px at 0% 120%, rgba(122,90,248,.32), transparent 60%), var(--ink); box-shadow: 0 18px 40px rgba(10,10,10,.18); margin-bottom: 18px; }
.pn-heroCard::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%); pointer-events: none; animation: pnDrift 14s linear infinite; }
@keyframes pnDrift { to { background-position: 34px 34px, 34px 34px; } }
.pn-heroMain, .pn-heroQr { position: relative; z-index: 1; }
.pn-eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.pn-heroQr svg, .pn-heroQr img { box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s; } .pn-heroQr:hover svg { transform: scale(1.04) rotate(-1deg); }
.pn-heroCard .btn { display: inline-flex; align-items: center; gap: 7px; }

.pn-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.pn-kpi { position: relative; background: #fff; border: 1px solid #E6E6E2; border-radius: 16px; padding: 16px 18px 14px; box-shadow: 0 1px 2px rgba(10,10,10,.04); transition: transform .22s, box-shadow .22s; animation: pnRise .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); overflow: hidden; }
.pn-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--ink)); opacity: .9; }
.pn-kpi:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10,10,10,.1); }
.pn-kpiTop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; min-height: 34px; }
.pn-kpiIc { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.pn-kpi b { display: block; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pn-kpiL { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); font-weight: 500; } .pn-kpi small { display: block; margin-top: 2px; font-size: 12px; color: #8A8A85; }
.pn-spark { width: 96px; height: 30px; }
.pn-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pnDraw 1.3s .25s cubic-bezier(.4,.1,.2,1) forwards; }
@keyframes pnDraw { to { stroke-dashoffset: 0; } }
.pn-areafade { animation: pnFadeIn 1s .6s both; } @keyframes pnFadeIn { from { opacity: 0; } to { opacity: 1; } }

.pn-chart { position: relative; margin-top: 6px; } .pn-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.pn-grid { stroke: #ECECE8; stroke-width: 1; stroke-dasharray: 3 4; } .pn-axis { font-size: 11px; fill: #8A8A85; font-family: inherit; }
.pn-guide { stroke: #B8B8B2; stroke-width: 1; stroke-dasharray: 3 3; transition: opacity .15s; }
.pn-ser { transition: opacity .25s; } .pn-dot { opacity: 0; animation: pnFadeIn .4s both; animation-delay: calc(.9s + var(--i, 0) * 90ms); }
.pn-tip { position: absolute; top: 4px; pointer-events: none; background: var(--ink); color: #fff; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; box-shadow: 0 10px 24px rgba(0,0,0,.25); white-space: nowrap; z-index: 3; }
.pn-tip b { display: block; margin-bottom: 4px; } .pn-tip span { display: flex; align-items: center; gap: 7px; color: #D6D6D6; } .pn-tip em { margin-left: auto; padding-left: 14px; font-style: normal; color: #fff; font-weight: 600; }
.pn-tip i, .pn-lg i, .pn-keys i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.pn-chart-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 13.5px; color: var(--muted); padding: 0 28px; background: rgba(255,255,255,.55); border-radius: 12px; }
.pn-legend2 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pn-lg { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #E2E2DE; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; color: var(--text); cursor: pointer; font-family: inherit; transition: opacity .2s, border-color .2s; } .pn-lg:hover { border-color: var(--ink); } .pn-lg.off { opacity: .45; }

.pn-split { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; padding-top: 8px; }
.pn-donut { position: relative; width: 168px; height: 168px; flex: none; } .pn-donut svg { width: 100%; height: 100%; }
.pn-seg { stroke-linecap: butt; animation: pnSeg 1.1s cubic-bezier(.4,.1,.2,1) both; } @keyframes pnSeg { from { opacity: 0; stroke-width: 4; } to { opacity: 1; } }
.pn-donutC { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .pn-donutC small { font-size: 11.5px; color: var(--muted); } .pn-donutC b { font-size: 19px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pn-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 150px; flex: 1; } .pn-keys li { display: flex; align-items: center; gap: 9px; font-size: 14px; } .pn-keys b { margin-left: auto; font-variant-numeric: tabular-nums; }

.pn-funnel { display: grid; gap: 16px; padding-top: 6px; }
.pn-fRow { animation: pnRise .5s both; animation-delay: calc(.3s + var(--i, 0) * 90ms); }
.pn-fTop { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; } .pn-fTop b { font-variant-numeric: tabular-nums; }
.pn-fTrack { height: 10px; background: #EFEFEC; border-radius: 999px; overflow: hidden; } .pn-fTrack i { display: block; height: 100%; width: var(--w); border-radius: 999px; transform-origin: left; animation: pnGrow 1s .35s cubic-bezier(.3,.8,.2,1) both; }
@keyframes pnGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pn-fRow small { display: block; margin-top: 4px; color: #8A8A85; font-size: 12px; min-height: 14px; }

.pn-feed .pn-notif { display: flex; gap: 12px; padding: 12px 0; } .pn-feed .pn-notif b::before { display: none; }
.pn-dotN { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: #CFCFCA; } .pn-notif.unread .pn-dotN { background: #3B5BDB; box-shadow: 0 0 0 4px rgba(59,91,219,.16); animation: pnPulse 2s infinite; }
@keyframes pnPulse { 50% { box-shadow: 0 0 0 7px rgba(59,91,219,0); } }
.pn-empty svg { opacity: .5; margin-bottom: 6px; }
.pn-portal.pn-shelled .pn-stats { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pn-portal.pn-shelled .pn-stat { transition: transform .2s, box-shadow .2s; } .pn-portal.pn-shelled .pn-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,10,10,.08); }
.pn-portal.pn-shelled .pn-table tbody tr { transition: background .15s; } .pn-portal.pn-shelled .pn-table tbody tr:hover { background: #FAFAF8; }

@media (max-width: 1100px) { .pn-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .pn-shell { grid-template-columns: 1fr; gap: 16px; }
  .pn-side { position: sticky; top: 0; z-index: 20; flex-direction: row; align-items: center; padding: 8px; border-radius: 14px; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .pn-side::-webkit-scrollbar { display: none; }
  .pn-me, .pn-signout span { display: none; } .pn-me { border: 0; }
  .pn-nav { display: flex; gap: 4px; } .pn-nav a { padding: 9px 12px; white-space: nowrap; flex: none; } .pn-signout { margin: 0; border: 0; padding: 10px; border-radius: 10px; flex: none; }
}
@media (max-width: 560px) { .pn-kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .pn-kpi { padding: 14px; } .pn-spark { display: none; } .pn-head { align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) {
  .pn-rise, .pn-kpi, .pn-panel.pn-in, .pn-fRow, .pn-draw, .pn-areafade, .pn-dot, .pn-seg, .pn-fTrack i, .pn-heroCard::after, .pn-notif.unread .pn-dotN, .pn-skel i { animation: none !important; }
  .pn-draw { stroke-dashoffset: 0; } .pn-dot { opacity: 1; }
}

/* ---------- Standalone app mode: no marketing header or footer ---------- */
body:has(.pn-portal) { background: #F6F6F4; }
.pn-portal { min-height: 100vh; background: #F6F6F4; }
.pn-portal .pn-top { display: flex; justify-content: space-between; align-items: center; background: var(--ink); padding: 14px clamp(16px, 4vw, 40px); margin: 0 0 24px; }
.pn-portal .pn-top .pn-brand img { display: block; height: 30px; width: auto; }
.pn-portal > #pn-view { padding: 0 0 40px; }
.pn-portal:not(.pn-shelled) > #pn-view { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.pn-appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 clamp(16px, 4vw, 40px); background: var(--ink); color: #fff; border-bottom: 1px solid #1f1f1f; }
.pn-brand img { display: block; height: 30px; width: auto; }
.pn-appTag { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #A8A8A8; border: 1px solid #333; border-radius: 999px; padding: 3px 10px; }
.pn-site { color: #C9C9C9; text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 8px; } .pn-site:hover { color: #fff; background: #1B1B1B; }
.pn-av.sm { width: 34px; height: 34px; font-size: 13px; }
.pn-shell { max-width: 1320px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 0; }
.pn-side { top: 84px; }
.pn-tabbar, .pn-sheet { display: none; }

@media (max-width: 900px) {
  .pn-side { display: none; }
  .pn-shell { grid-template-columns: 1fr; padding-top: 18px; padding-bottom: 96px; }
  .pn-site, .pn-appTag { display: none; }
  .pn-portal > #pn-view { padding-bottom: 0; }
  .pn-tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid #E2E2DE; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(10,10,10,.08); }
  .pn-tabbar a, .pn-moreb { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border: 0; background: none; border-radius: 12px; color: #77776F; font: inherit; font-size: 11px; font-weight: 600; text-decoration: none; cursor: pointer; transition: color .15s, background .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
  .pn-tabbar a:active, .pn-moreb:active { transform: scale(.94); }
  .pn-tabbar a[aria-current="page"], .pn-moreb.on { color: var(--ink); background: #F0F0EC; }
  .pn-tabbar a[aria-current="page"] svg { color: #3B5BDB; }
  .pn-sheet { position: fixed; z-index: 50; inset: 0; display: flex; align-items: flex-end; background: rgba(10,10,10,.45); animation: pnFadeIn .2s both; }
  .pn-sheet[hidden] { display: none; }
  .pn-sheetBox { width: 100%; background: #fff; border-radius: 20px 20px 0 0; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 2px; animation: pnSlide .28s cubic-bezier(.2,.8,.2,1) both; }
  .pn-sheetBox::before { content: ""; width: 38px; height: 4px; border-radius: 4px; background: #D6D6D0; margin: 0 auto 10px; }
  .pn-sheetBox a { display: flex; align-items: center; gap: 14px; padding: 14px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; } .pn-sheetBox a:active { background: #F3F3F0; }
  @keyframes pnSlide { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .pn-head { margin-bottom: 14px; } .pn-head #pn-title { font-size: 26px; } .pn-hello { font-size: 13px; }
  .pn-heroCard { border-radius: 18px; } .pn-portal.pn-shelled .pn-heroCard { grid-template-columns: 1fr; padding: 22px 18px; gap: 18px; }
  .pn-heroQr { justify-self: center; } .pn-heroCard h2 { font-size: 22px; }
  .pn-link { flex-direction: column; } .pn-link .btn { width: 100%; justify-content: center; height: 44px; }
  .pn-heroCard .pn-actions { display: grid; grid-template-columns: 1fr 1fr; } .pn-heroCard .pn-actions .btn { justify-content: center; }
  .pn-grid2 { gap: 14px; margin-bottom: 14px; } .pn-portal.pn-shelled .pn-card { padding: 18px 16px; }
  .pn-split { justify-content: center; } .pn-keys { min-width: 100%; }
  .pn-chart-empty { font-size: 12.5px; } .pn-tip { font-size: 12px; padding: 8px 10px; }
  .pn-portal.pn-shelled .pn-stats { grid-template-columns: 1fr 1fr; gap: 10px; } .pn-stat b { font-size: 22px; }
  .pn-row { grid-template-columns: 1fr; }
  .pn-table { font-size: 13.5px; } .pn-table th, .pn-table td { padding: 10px 10px; white-space: nowrap; }
}
@media (max-width: 380px) { .pn-kpi b { font-size: 22px; } .pn-tabbar a span, .pn-moreb span { font-size: 10px; } }

.pn-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Sign-in / apply: standalone split layout ---------- */
body:has(.pn-auth) { background: #fff; }
.pn-auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; }
.pn-authSide { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 56px); color: #fff; background: radial-gradient(700px 360px at 90% -10%, rgba(59,91,219,.5), transparent 60%), radial-gradient(520px 300px at -10% 110%, rgba(122,90,248,.38), transparent 60%), var(--ink); }
.pn-authSide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%); animation: pnDrift 16s linear infinite; }
.pn-authSide > * { position: relative; z-index: 1; }
.pn-authBig { margin: 8px 0 26px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; max-width: 14em; }
.pn-authPts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 420px; }
.pn-authPts li { display: flex; gap: 14px; align-items: flex-start; animation: pnRise .6s both; animation-delay: calc(.2s + var(--i, 0) * 110ms); }
.pn-authPts li > span { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.pn-authPts b { display: block; font-size: 15.5px; } .pn-authPts small { display: block; margin-top: 2px; color: #B5B5B5; font-size: 13.5px; line-height: 1.45; }
.pn-authArt { position: relative; height: 150px; }
.pn-artCard { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); border-radius: 14px; padding: 12px 14px; animation: pnFloat 6s ease-in-out infinite; }
.pn-artCard.a1 { left: 0; top: 14px; width: 150px; height: 96px; display: flex; align-items: flex-end; gap: 8px; }
.pn-artCard.a1 i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #7C93F5, #3B5BDB); transform-origin: bottom; animation: pnBarGrow 1.2s cubic-bezier(.3,.8,.2,1) both; }
.pn-artCard.a1 i:nth-child(1) { height: 30%; animation-delay: .5s; } .pn-artCard.a1 i:nth-child(2) { height: 48%; animation-delay: .6s; } .pn-artCard.a1 i:nth-child(3) { height: 40%; animation-delay: .7s; } .pn-artCard.a1 i:nth-child(4) { height: 70%; animation-delay: .8s; } .pn-artCard.a1 i:nth-child(5) { height: 92%; animation-delay: .9s; }
.pn-artCard.a2 { left: 172px; top: 0; width: 170px; display: grid; gap: 8px; animation-delay: -2s; }
.pn-artCard.a2 span { display: block; height: 8px; width: 60%; border-radius: 6px; background: rgba(255,255,255,.35); } .pn-artCard.a2 b { display: block; height: 22px; border-radius: 8px; background: linear-gradient(90deg, #12B76A, #5FD6A0); }
.pn-artCard.a3 { left: 190px; top: 78px; display: flex; align-items: center; gap: 10px; color: #5FD6A0; animation-delay: -4s; } .pn-artCard.a3 b { display: block; width: 74px; height: 8px; border-radius: 6px; background: rgba(255,255,255,.3); }
@keyframes pnFloat { 50% { transform: translateY(-8px); } }
@keyframes pnBarGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.pn-authMain { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 5vw, 64px); background: #FAFAF8; }
.pn-authBox { width: 100%; max-width: 480px; animation: pnRise .55s .1s both; }
.pn-authBack { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 26px; } .pn-authBack svg { transform: rotate(180deg); } .pn-authBack:hover { color: var(--ink); }
.pn-authH { margin: 0 0 8px; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.1; }
.pn-authLead { margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.pn-authCard { border-radius: 18px; border: 1px solid #E6E6E2; box-shadow: 0 18px 44px rgba(10,10,10,.07); padding: clamp(20px, 3vw, 30px); background: #fff; }
.pn-authCard .pn-sih { display: none; }
.pn-authCard .pn-form > .muted:first-of-type { margin-top: 0; }
.pn-authCard #pn-g { margin: 6px 0 4px; min-height: 46px; }
.pn-authAlt { margin: 22px 0 0; text-align: center; font-size: 15px; color: var(--text); } .pn-authAlt a { font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
.pn-authFine { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); } .pn-authFine a { color: inherit; }

@media (max-width: 900px) {
  .pn-auth { grid-template-columns: 1fr; min-height: 0; }
  .pn-authSide { padding: 18px 20px 22px; gap: 14px; flex-direction: column; }
  .pn-authCopy, .pn-authArt { display: none; }
  .pn-authSide::before { content: "Advocate Partner Network"; position: relative; z-index: 1; order: 2; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #B5B5B5; }
  .pn-authMain { align-items: flex-start; padding: 22px 16px 40px; background: #FAFAF8; }
  .pn-authBack { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pn-authSide::after, .pn-artCard, .pn-artCard i, .pn-authPts li, .pn-authBox { animation: none !important; } }

/* ---------- Partners landing page ---------- */
.pnl-art { position: relative; width: 100%; max-width: 440px; min-height: 360px; }
.pnl-win { position: relative; z-index: 1; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 16px; backdrop-filter: blur(10px); box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.pnl-winH { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 12.5px; color: #D6D6D6; }
.pnl-winH i { width: 9px; height: 9px; border-radius: 50%; background: #4A4A4A; } .pnl-winH i:nth-child(1) { background: #FF5F57; } .pnl-winH i:nth-child(2) { background: #FEBC2E; } .pnl-winH i:nth-child(3) { background: #28C840; }
.pnl-winH span { margin-left: 8px; font-weight: 600; } .pnl-winH em { margin-left: auto; font-style: normal; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8F8F8F; }
.pnl-link { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 9px 10px; font-size: 13px; color: #fff; margin-bottom: 16px; }
.pnl-link span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(18,183,106,.25); color: #5FD6A0; flex: none; } .pnl-link b { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pnl-link u { text-decoration: none; background: #fff; color: var(--ink); font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 7px; }
.pnl-bars { display: grid; gap: 11px; margin-bottom: 14px; } .pnl-bar small { display: block; font-size: 12px; color: #BDBDBD; margin-bottom: 5px; } .pnl-bar > div { height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.pnl-bar i { display: block; height: 100%; width: var(--w); border-radius: 999px; transform-origin: left; animation: pnGrow 1.2s calc(.4s + var(--i, 0) * .15s) cubic-bezier(.3,.8,.2,1) both; }
.pnl-line { width: 100%; height: 90px; display: block; } .pnl-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pnDraw 1.8s .7s cubic-bezier(.4,.1,.2,1) forwards; }
.pnl-chip { position: absolute; z-index: 2; right: -6px; top: -14px; display: flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 12px; box-shadow: 0 16px 36px rgba(0,0,0,.35); } .pnl-chip svg { color: #12B76A; }
.pnl-qr { position: absolute; z-index: 2; left: -14px; bottom: -10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; width: 78px; height: 78px; padding: 9px; border-radius: 14px; background: #fff; box-shadow: 0 16px 36px rgba(0,0,0,.35); } .pnl-qr i { border-radius: 2px; background: #E8E8E5; } .pnl-qr i.on { background: var(--ink); }

.pnl-trust { background: #fff; border-bottom: 1px solid var(--line); }
.pnl-trust ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pnl-trust li { display: flex; align-items: center; gap: 14px; } .pnl-trust li > span { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #3B5BDB; background: #EEF1FD; }
.pnl-trust b { display: block; font-size: 15px; } .pnl-trust small { color: var(--muted); font-size: 13px; }

/* steps as a connected timeline */
.pn-steps { counter-reset: none; max-width: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; position: relative; }
.pn-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: linear-gradient(90deg, #3B5BDB, #7A5AF8, #12B76A); opacity: .35; }
.pn-steps li { flex-direction: column; gap: 12px; padding: 0; border: 0; position: relative; text-align: left; }
.pn-steps .pn-n { width: 44px; height: 44px; font-size: 16px; background: var(--ink); box-shadow: 0 0 0 6px #fff, 0 8px 20px rgba(10,10,10,.18); position: relative; z-index: 1; transition: transform .25s, background .25s; }
.pn-steps li:hover .pn-n { transform: translateY(-3px) scale(1.06); background: #3B5BDB; }
.pn-steps b { font-size: 16px; } .pn-steps p { font-size: 14px; line-height: 1.5; }

/* referral flow */
.pnl-flow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: f; }
.pnl-flow li { position: relative; background: #fff; border: 1px solid #E6E6E2; border-radius: 16px; padding: 20px 16px 18px; display: grid; gap: 6px; box-shadow: 0 1px 2px rgba(10,10,10,.04); transition: transform .22s, box-shadow .22s, border-color .22s; }
.pnl-flow li:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(10,10,10,.09); border-color: #C9D2F7; }
.pnl-flow li:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 50%; width: 16px; height: 2px; background: repeating-linear-gradient(90deg, #B9C3F2 0 4px, transparent 4px 7px); }
.pnl-fi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #3B5BDB; background: linear-gradient(135deg, #EEF1FD, #F3EEFF); margin-bottom: 6px; }
.pnl-flow b { font-size: 15px; } .pnl-flow small { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* categories, benefits, rewards polish */
.pn-cats .lg-tile, #pn-benefits .lg-tile { transition: transform .22s, box-shadow .22s, border-color .22s; }
.pn-cats .lg-tile:hover, #pn-benefits .lg-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(10,10,10,.09); border-color: #C9D2F7; }
.pn-cats .lg-tile-ic, #pn-benefits .lg-tile-ic { background: linear-gradient(135deg, #EEF1FD, #F3EEFF); color: #3B5BDB; }
#pn-rewards.pn-note { max-width: none; border: 1px solid #E6E6E2; border-left: 4px solid #3B5BDB; border-radius: 14px; background: #fff; padding: 22px 24px; box-shadow: 0 1px 2px rgba(10,10,10,.04); }

@media (max-width: 1000px) {
  .pn-steps { grid-template-columns: 1fr; gap: 0; } .pn-steps::before { left: 21px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: linear-gradient(180deg, #3B5BDB, #7A5AF8, #12B76A); }
  .pn-steps li { flex-direction: row; align-items: flex-start; gap: 16px; padding: 0 0 22px; } .pn-steps li:last-child { padding-bottom: 0; }
  .pnl-flow { grid-template-columns: 1fr 1fr; } .pnl-flow li:not(:last-child)::after { display: none; }
  .pnl-trust ul { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 560px) { .pnl-flow { grid-template-columns: 1fr; } .pnl-trust ul { grid-template-columns: 1fr; padding: 20px 0; } }
@media (prefers-reduced-motion: reduce) { .pnl-bar i, .pnl-draw { animation: none !important; stroke-dashoffset: 0; } }

/* ---------- Partner Terms and Privacy ---------- */
.pl-progress { position: fixed; z-index: 200; left: 0; right: 0; top: 0; height: 3px; background: transparent; pointer-events: none; }
.pl-progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #3B5BDB, #7A5AF8, #12B76A); }
.pl-meta { background: #fff; border-bottom: 1px solid #ECECE8; }
.pl-meta ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pl-meta li { display: flex; align-items: center; gap: 12px; }
.pl-meta li > span { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #3B5BDB; background: linear-gradient(135deg, #EEF1FD, #F3EEFF); }
.pl-meta small { display: block; color: var(--muted); font-size: 12.5px; } .pl-meta b { font-size: 15px; }

body[data-plegal] .post-section { position: relative; overflow: hidden; background: #FAFAF8; }
body[data-plegal] .post-section > .wrap { position: relative; z-index: 1; }
.pl-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pl-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: pnFloat 14s ease-in-out infinite; }
.pl-blob.b1 { width: 420px; height: 420px; right: -120px; top: -80px; background: radial-gradient(closest-side, rgba(59,91,219,.28), transparent); }
.pl-blob.b2 { width: 480px; height: 480px; left: -160px; bottom: 6%; background: radial-gradient(closest-side, rgba(122,90,248,.2), transparent); animation-delay: -6s; }
.pl-dots { position: absolute; inset: 0; background-image: radial-gradient(#CFCFC9 1.1px, transparent 1.2px); background-size: 26px 26px; opacity: .45; -webkit-mask-image: linear-gradient(180deg, #000, transparent 38%, transparent 70%, #000); mask-image: linear-gradient(180deg, #000, transparent 38%, transparent 70%, #000); }
.pl-rings { position: absolute; width: 520px; height: 520px; right: -150px; top: 18%; fill: none; stroke: #C9D2F7; stroke-width: 1; opacity: .7; animation: plSpin 90s linear infinite; }
.pl-rings circle:nth-child(2) { stroke-dasharray: 4 6; } .pl-rings circle:nth-child(4) { stroke-dasharray: 2 8; }
.pl-mark { position: absolute; width: 340px; height: 340px; left: -70px; bottom: 4%; color: #3B5BDB; opacity: .06; }
.pl-plus { position: absolute; font-size: 26px; font-weight: 300; color: #B9C3F2; animation: pnFloat 8s ease-in-out infinite; } .pl-plus.p1 { left: 8%; top: 14%; } .pl-plus.p2 { right: 12%; top: 46%; animation-delay: -3s; } .pl-plus.p3 { left: 46%; bottom: 7%; animation-delay: -5s; }
@keyframes plSpin { to { transform: rotate(360deg); } }

body[data-plegal] .lg-body { counter-reset: pls; }
body[data-plegal] .lg-sec { counter-increment: pls; position: relative; background: #fff; border: 1px solid #E6E6E2; border-radius: 18px; padding: 26px 28px 24px 28px; margin: 0 0 18px; box-shadow: 0 1px 2px rgba(10,10,10,.04); transition: box-shadow .25s, border-color .25s, transform .25s; }
body[data-plegal] .lg-sec:hover { box-shadow: 0 16px 36px rgba(10,10,10,.08); border-color: #C9D2F7; transform: translateY(-2px); }
body[data-plegal] .lg-sec h2 { display: flex; align-items: center; gap: 14px; margin-top: 0; }
body[data-plegal] .lg-sec h2::before { content: counter(pls, decimal-leading-zero); flex: none; display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 12px; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3B5BDB, #7A5AF8); box-shadow: 0 8px 18px rgba(59,91,219,.28); }
body[data-plegal] .lg-sec > :last-child { margin-bottom: 0; }
body[data-plegal] .lg-sec ul { padding-left: 20px; } body[data-plegal] .lg-sec li::marker { color: #3B5BDB; }
body[data-plegal] .lg-aside .toc-desktop { background: #fff; border: 1px solid #E6E6E2; border-radius: 16px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(10,10,10,.04); }
body[data-plegal] .toc-desktop a { display: block; padding: 3px 0 3px 10px; border-left: 2px solid transparent; transition: border-color .15s, color .15s; } body[data-plegal] .toc-desktop a:hover, body[data-plegal] .toc-desktop a.is-current { border-left-color: #3B5BDB; color: var(--ink); }
body[data-plegal] .toc-mobile { background: #fff; border-radius: 14px; }
body[data-plegal] .lg-aside .lg-nav, body[data-plegal] .lg-aside nav + nav { border-radius: 16px; }

@media (max-width: 900px) { .pl-meta ul { grid-template-columns: 1fr 1fr; } body[data-plegal] .lg-sec { padding: 20px 18px; border-radius: 16px; } .pl-rings, .pl-mark { opacity: .35; } }
@media (max-width: 480px) { .pl-meta ul { grid-template-columns: 1fr; gap: 12px; padding: 16px 0; } body[data-plegal] .lg-sec h2 { font-size: 20px; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .pl-blob, .pl-rings, .pl-plus { animation: none !important; } }
@media print { .pl-progress, .pl-deco, .pl-meta { display: none !important; } body[data-plegal] .lg-sec { box-shadow: none; border-color: #ddd; } }

/* ---------- Partners landing: graphics and motion on the white sections ---------- */
body[data-pview="landing"] .section { position: relative; overflow: hidden; isolation: isolate; }
body[data-pview="landing"] .section > .wrap { position: relative; z-index: 1; }
/* layer 1: drifting dot grid, soft colour glows and tiny plus marks */
body[data-pview="landing"] .section::before {
  content: ""; position: absolute; inset: -40px 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(520px 320px at 92% 8%, rgba(59,91,219,.13), transparent 70%),
    radial-gradient(460px 300px at 4% 96%, rgba(122,90,248,.11), transparent 70%),
    radial-gradient(#D3D3CD 1.1px, transparent 1.3px);
  background-size: auto, auto, 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  animation: plDrift 26s linear infinite;
}
/* layer 2: rotating dashed rings, alternating sides */
body[data-pview="landing"] .section::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 520px; height: 520px; right: -190px; top: -120px; border-radius: 50%;
  border: 1.5px dashed #C9D2F7; box-shadow: inset 0 0 0 56px rgba(59,91,219,.025), inset 0 0 0 57px #E3E8FB, inset 0 0 0 118px rgba(122,90,248,.02), inset 0 0 0 119px #E9E3FB;
  animation: plSpin 70s linear infinite;
}
body[data-pview="landing"] .section:nth-of-type(even)::after { right: auto; left: -200px; top: auto; bottom: -160px; animation-direction: reverse; border-color: #D8CFF6; }
body[data-pview="landing"] .section.tone-soft::before { opacity: .85; }
body[data-pview="landing"] .section.tone-soft { background: linear-gradient(180deg, #F7F7F4, #FAFAF8); }
@keyframes plDrift { to { background-position: 0 0, 0 0, 28px 28px; } }

/* floating shapes behind the "how it works" and "referral flow" sections */
body[data-pview="landing"] #how .wrap::before, body[data-pview="landing"] #flow .wrap::before {
  content: ""; position: absolute; z-index: -1; right: 4%; top: 26px; width: 120px; height: 120px; pointer-events: none;
  background:
    radial-gradient(circle at 18px 18px, #3B5BDB 5px, transparent 6px),
    radial-gradient(circle at 96px 30px, #12B76A 4px, transparent 5px),
    radial-gradient(circle at 60px 92px, #7A5AF8 6px, transparent 7px),
    linear-gradient(135deg, transparent 49%, #C9D2F7 49% 51%, transparent 51%);
  opacity: .8; animation: pnFloat 9s ease-in-out infinite;
}
body[data-pview="landing"] #flow .wrap::before { right: auto; left: 3%; animation-delay: -4s; transform: scaleX(-1); }

/* how it works: more air under the heading, flowing connector, pulsing step markers */
body[data-pview="landing"] .pn-steps { margin-top: 44px; }
body[data-pview="landing"] .pn-steps::before { height: 3px; border-radius: 3px; opacity: .55; background: linear-gradient(90deg, #3B5BDB, #7A5AF8, #12B76A, #3B5BDB); background-size: 200% 100%; animation: plFlow 6s linear infinite; }
@keyframes plFlow { to { background-position: -200% 0; } }
body[data-pview="landing"] .pn-steps .pn-n { animation: plPulse 3.2s ease-in-out infinite; }
body[data-pview="landing"] .pn-steps li:nth-child(2) .pn-n { animation-delay: .5s; } body[data-pview="landing"] .pn-steps li:nth-child(3) .pn-n { animation-delay: 1s; } body[data-pview="landing"] .pn-steps li:nth-child(4) .pn-n { animation-delay: 1.5s; } body[data-pview="landing"] .pn-steps li:nth-child(5) .pn-n { animation-delay: 2s; }
@keyframes plPulse { 0%, 100% { box-shadow: 0 0 0 6px #fff, 0 8px 20px rgba(10,10,10,.18), 0 0 0 6px rgba(59,91,219,0); } 50% { box-shadow: 0 0 0 6px #fff, 0 8px 20px rgba(10,10,10,.18), 0 0 0 14px rgba(59,91,219,.14); } }
/* faint oversized step numbers as background texture */
body[data-pview="landing"] .pn-steps { counter-reset: plst; }
body[data-pview="landing"] .pn-steps li { counter-increment: plst; }
body[data-pview="landing"] .pn-steps li::after { content: counter(plst); position: absolute; right: 6px; top: 46px; font-size: 92px; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px #E1E4F5; z-index: -1; pointer-events: none; }

/* referral flow: animated dashes travel along the connectors, icons gently bob */
body[data-pview="landing"] .pnl-flow li:not(:last-child)::after { background: repeating-linear-gradient(90deg, #6D83E8 0 4px, transparent 4px 8px); background-size: 16px 2px; animation: plMarch 1s linear infinite; }
@keyframes plMarch { to { background-position: 16px 0; } }
body[data-pview="landing"] .pnl-fi { animation: pnFloat 5s ease-in-out infinite; } body[data-pview="landing"] .pnl-flow li:nth-child(2) .pnl-fi { animation-delay: -1s; } body[data-pview="landing"] .pnl-flow li:nth-child(3) .pnl-fi { animation-delay: -2s; } body[data-pview="landing"] .pnl-flow li:nth-child(4) .pnl-fi { animation-delay: -3s; } body[data-pview="landing"] .pnl-flow li:nth-child(5) .pnl-fi { animation-delay: -4s; }

/* cards pick up a soft animated edge on hover */
body[data-pview="landing"] .pn-cats .lg-tile, body[data-pview="landing"] #pn-benefits .lg-tile { position: relative; background: #fff; }
body[data-pview="landing"] .pn-cats .lg-tile::after, body[data-pview="landing"] #pn-benefits .lg-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0 0 14px 14px; background: linear-gradient(90deg, #3B5BDB, #7A5AF8, #12B76A); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.3,.8,.2,1); }
body[data-pview="landing"] .pn-cats .lg-tile:hover::after, body[data-pview="landing"] #pn-benefits .lg-tile:hover::after { transform: scaleX(1); }

@media (max-width: 1000px) {
  body[data-pview="landing"] .pn-steps li::after { display: none; }
  body[data-pview="landing"] .section::after { width: 360px; height: 360px; right: -170px; opacity: .7; }
  body[data-pview="landing"] .pn-steps { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-pview="landing"] .section::before, body[data-pview="landing"] .section::after, body[data-pview="landing"] .wrap::before, body[data-pview="landing"] .pn-steps::before, body[data-pview="landing"] .pn-steps .pn-n, body[data-pview="landing"] .pnl-flow li::after, body[data-pview="landing"] .pnl-fi { animation: none !important; }
}

/* ---------- Graphics and motion on every other white background in the partner area ---------- */
@keyframes plDriftDots { to { background-position: 0 0, 0 0, 28px 28px; } }

/* dashboard canvas */
.pn-portal.pn-shelled { position: relative; isolation: isolate; }
.pn-portal.pn-shelled::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(640px 420px at 96% 6%, rgba(59,91,219,.12), transparent 70%), radial-gradient(560px 380px at 0% 100%, rgba(122,90,248,.10), transparent 70%), radial-gradient(#D6D6D0 1.1px, transparent 1.3px);
  background-size: auto, auto, 28px 28px; animation: plDriftDots 30s linear infinite; }
.pn-portal.pn-shelled::after { content: ""; position: fixed; z-index: -1; pointer-events: none; width: 560px; height: 560px; right: -220px; bottom: -200px; border-radius: 50%;
  border: 1.5px dashed #C9D2F7; box-shadow: inset 0 0 0 60px rgba(59,91,219,.025), inset 0 0 0 61px #E3E8FB; animation: plSpin 80s linear infinite; }
.pn-portal.pn-shelled .pn-shell { position: relative; z-index: 1; }

/* sign-in and apply: right-hand panel */
.pn-authMain { position: relative; overflow: hidden; isolation: isolate; }
.pn-authMain::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(520px 340px at 100% 0%, rgba(59,91,219,.13), transparent 70%), radial-gradient(460px 320px at 0% 100%, rgba(18,183,106,.09), transparent 70%), radial-gradient(#D6D6D0 1.1px, transparent 1.3px);
  background-size: auto, auto, 28px 28px; animation: plDriftDots 28s linear infinite; }
.pn-authMain::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 440px; height: 440px; right: -170px; bottom: -150px; border-radius: 50%;
  border: 1.5px dashed #C9D2F7; box-shadow: inset 0 0 0 52px rgba(122,90,248,.03), inset 0 0 0 53px #E6E2FA; animation: plSpin 60s linear infinite reverse; }
.pn-authBox::before { content: "+"; position: absolute; left: -34px; top: 40px; font-size: 28px; font-weight: 300; color: #B9C3F2; animation: pnFloat 7s ease-in-out infinite; }
.pn-authBox { position: relative; }

/* landing: facts strip and FAQ band */
.pnl-trust { position: relative; overflow: hidden; }
.pnl-trust::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(59,91,219,.07) 50%, transparent 70%); background-size: 220% 100%; animation: plSweep 7s ease-in-out infinite; }
.pnl-trust .wrap { position: relative; }
@keyframes plSweep { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.pnl-trust li > span { animation: pnFloat 6s ease-in-out infinite; } .pnl-trust li:nth-child(2) > span { animation-delay: -1.5s; } .pnl-trust li:nth-child(3) > span { animation-delay: -3s; } .pnl-trust li:nth-child(4) > span { animation-delay: -4.5s; }

/* shared: tidy on small screens, respect reduced motion, never print */
@media (max-width: 900px) { .pn-portal.pn-shelled::after { width: 380px; height: 380px; right: -190px; bottom: -150px; } .pn-authBox::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .pn-portal.pn-shelled::before, .pn-portal.pn-shelled::after, .pn-authMain::before, .pn-authMain::after, .pn-authBox::before, .pnl-trust::before, .pnl-trust li > span { animation: none !important; } }
@media print { .pn-portal.pn-shelled::before, .pn-portal.pn-shelled::after { display: none; } }

/* ---------- Fix: the background rings were rendering as thick filled bands. Thin hairline rings, quieter everything else. ---------- */
body[data-pview="landing"] .section::after,
.pn-portal.pn-shelled::after,
.pn-authMain::after {
  border: 1px dashed rgba(109,131,232,.35);
  box-shadow: none;
  background: repeating-radial-gradient(circle at center, transparent 0 62px, rgba(109,131,232,.2) 62px 63px);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 72%);
  mask-image: radial-gradient(circle, #000 25%, transparent 72%);
  opacity: .8;
}
/* lighter dot grid and glows */
body[data-pview="landing"] .section::before {
  background-image: radial-gradient(520px 320px at 92% 8%, rgba(59,91,219,.06), transparent 70%), radial-gradient(460px 300px at 4% 96%, rgba(122,90,248,.05), transparent 70%), radial-gradient(#E0E0DA 1px, transparent 1.2px);
}
.pn-portal.pn-shelled::before { background-image: radial-gradient(640px 420px at 96% 6%, rgba(59,91,219,.06), transparent 70%), radial-gradient(560px 380px at 0% 100%, rgba(122,90,248,.05), transparent 70%), radial-gradient(#E2E2DC 1px, transparent 1.2px); }
.pn-authMain::before { background-image: radial-gradient(520px 340px at 100% 0%, rgba(59,91,219,.07), transparent 70%), radial-gradient(460px 320px at 0% 100%, rgba(18,183,106,.05), transparent 70%), radial-gradient(#E2E2DC 1px, transparent 1.2px); }
/* remove the loose shapes and giant outline numbers that sat on top of the text */
body[data-pview="landing"] #how .wrap::before, body[data-pview="landing"] #flow .wrap::before { display: none; }
body[data-pview="landing"] .pn-steps li::after { display: none; }
.pn-authBox::before { display: none; }

/* ---------- Mobile fix: the referral card overflowed the screen (link box and buttons cut off) ---------- */
.pn-portal { overflow-x: clip; }
.pn-shell, .pn-main, .pn-heroMain, .pn-heroCard, .pn-kpis, .pn-grid2 { min-width: 0; }
.pn-heroMain { max-width: 100%; }
.pn-link input { min-width: 0; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .pn-shell { grid-template-columns: minmax(0, 1fr); }
  .pn-portal.pn-shelled .pn-heroCard { grid-template-columns: minmax(0, 1fr); }
  .pn-heroCard .pn-link { flex-direction: column; align-items: stretch; gap: 10px; }
  .pn-heroCard .pn-link input { flex: none; width: 100%; max-width: 100%; }
  .pn-heroCard .pn-link .btn { flex: none; width: 100%; }
  .pn-heroCard .pn-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .pn-heroCard .pn-actions .btn { min-width: 0; white-space: normal; text-align: center; line-height: 1.25; padding: 10px 8px; height: auto; }
}
@media (max-width: 480px) {
  .pn-heroCard .pn-actions { grid-template-columns: minmax(0, 1fr); }
  .pn-heroQr svg, .pn-heroQr img { width: 150px; height: 150px; }
}

/* Dashboard: the dark app bar sits flush with the top of the page (no light strip above it). */
.pn-portal.pn-shelled { padding-top: 0; }
body:has(.pn-portal) #main, body:has(.pn-portal) main { margin: 0; padding-top: 0; }
body:has(.pn-portal) { margin: 0; }
.pn-appbar { top: 0; margin-top: 0; }
