/* Scroll geometry is shared by mouse, keyboard and touch. svh keeps mobile
   browser chrome changes from moving the slide boundaries under the reader. */
.ppc { --ppc-viewport: 100vh; }
@supports (height: 100svh) { .ppc { --ppc-viewport: 100svh; } }
.ppc-mobile { display: none; }
.ppc--pinned .ppc-track { height: calc(var(--ppc-viewport) - var(--ppc-pin-top) + var(--ppc-slides) * var(--ppc-advance)); }
.ppc--pinned .ppc-pin { height: calc(var(--ppc-viewport) - var(--ppc-pin-top)); }
.ppc--pinned .ppc-panel { pointer-events: none; }
.ppc--pinned .ppc-panel.is-active { pointer-events: auto; }
.ppc--pinned .ppc-step.is-active { background: var(--ppc-surface); border-color: var(--ppc-edge); color: var(--ppc-accent); box-shadow: 0 1px 2px rgb(17 34 51 / 6%); }
.ppc--pinned .ppc-step.is-active .ppc-step__icon { opacity: 1; }
.ppc-progress__fill { transition: none; }

@media screen and (max-width: 1024px) {
    .ppc-panel > .ppc-comp, .ppc-panel > .container { display: none; }
    .ppc-mobile { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 620px; margin: auto; padding: 24px 20px; color: var(--ppc-ink); }
    .ppc--pinned .ppc-panel, .ppc--pinned .ppc-panel + .ppc-panel { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 0; gap: 0; overflow-y: auto; }
    /* Hide the outgoing mobile slide as soon as the stage changes. Keeping
       two text-heavy slides visible during a cross-fade makes a quick swipe
       look like duplicated copy; the incoming slide still fades in briefly. */
    .ppc--pinned .ppc-panel,
    .ppc--pinned .ppc-panel.is-active { transition: opacity 180ms ease-out, visibility 0s linear 0s; }
    .ppc--pinned .ppc-mobile { flex: 0 0 auto; }
    .ppc-rail__list { padding-top: 7px; padding-bottom: 7px; gap: 4px; }
    .ppc-step { font-size: 14px; padding: 10px 13px; }
    .ppc-step__icon { font-size: 14px; width: 16px; }
    .ppc-mobile__copy { display: grid; gap: 9px; }
    .ppc-mobile__kicker { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; color: var(--ppc-accent); }
    .ppc-mobile__kicker > span:first-child { display: flex; align-items: center; gap: 7px; }
    .ppc-mobile__count { flex: 0 0 auto; font-size: 11px; font-weight: 400; letter-spacing: .03em; color: var(--ppc-ink-soft); }
    .ppc-mobile h3 { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.18; letter-spacing: -.015em; color: inherit; }
    .ppc-mobile__desc { font-size: 14px; line-height: 1.45; color: var(--ppc-ink-soft); }
    .ppc-mobile__points { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin: 3px 0 0; padding: 0; list-style: none; }
    .ppc-mobile__points li { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 13px; line-height: 1.4; }
    .ppc-mobile__points i { flex: 0 0 auto; color: #186444; font-size: 11px; }
    .ppc-panel--showcase-ai-workforce .ppc-mobile__points i { color: #b4d8bd; }
    .pm-visual { min-width: 0; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
    .pm-visual p, .pm-visual figure, .pm-visual dl { margin: 0; }
    .pm-visual strong { font-weight: 600; }
    .pm-card { border: 1px solid #dce3e8; border-radius: 12px; padding: 16px; background: #fff; color: #112233; box-shadow: 0 8px 22px -16px rgb(17 34 51 / 25%); }
    .pm-card__head { padding-bottom: 12px; border-bottom: 1px solid #e4e8eb; }
    .pm-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
    .pm-muted { color: #5b6873; }
    .pm-meta { font-size: 12px; line-height: 1.4; color: #5b6873; }
    .pm-positive { color: #186444; }
    .pm-status { color: #186444; font-size: 12px; white-space: nowrap; }
    .pm-scene { display: block; width: 100%; height: clamp(105px, 17svh, 150px); object-fit: contain; }
    .pm-event { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding-top: 12px; }
    .pm-event > i { color: #315777; margin-top: 3px; }
    .pm-event p { margin-top: 3px; color: #5b6873; font-size: 13px; line-height: 1.4; }
    .pm-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 12px 0; text-align: center; color: #5b6873; }
    .pm-week > * { padding: 7px 0; }
    .pm-week strong { border-radius: 7px; color: #fff; background: #123456; }
    .pm-appointment { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 12px; background: #edf2f6; border-left: 3px solid #315777; border-radius: 5px; }
    .pm-appointment p { margin-top: 4px; font-size: 12px; }
    .pm-visual .pm-note { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-top: 12px; margin-top: 12px; border-top: 1px solid #e4e8eb; font-size: 12px; color: #5b6873; }
    .pm-document__terms { padding: 16px 0; }
    .pm-signature { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #a9b9c7; }
    .pm-signature > span:first-child { font: italic 24px Georgia, serif; }
    .pm-invoice { padding: 0; overflow: hidden; }
    .pm-invoice__top { display: flex; align-items: center; gap: 14px; padding: 14px; }
    .pm-invoice__top img { width: 72px; height: 82px; object-fit: cover; object-position: 18% center; border-radius: 7px; }
    .pm-invoice__top > div { display: grid; gap: 5px; }
    .pm-invoice__top strong { font-size: 26px; line-height: 1.1; }
    .pm-visual .pm-invoice__items { display: grid; gap: 6px; padding: 0 14px 12px; font-size: 12px; }
    .pm-invoice__items > div { display: flex; justify-content: space-between; gap: 8px; }
    .pm-invoice__items dt { color: #5b6873; }
    .pm-invoice__items dd { margin: 0; flex: 0 0 auto; }
    .pm-invoice__paid { display: grid; gap: 6px; padding: 12px 14px; background: #edf5ee; }
    .pm-invoice__paid .pm-line:first-child { color: #186444; font-size: 12px; }
    .pm-checkbook img { display: block; width: 100%; max-height: 235px; object-fit: contain; border-radius: 10px; }
    .pm-checkbook figcaption { display: flex; justify-content: space-around; gap: 8px; margin-top: 12px; font-size: 13px; }
    .pm-checkbook figcaption > span { display: flex; gap: 6px; align-items: center; }
    .pm-checkbook i { color: #186444; }
    .pm-ai { background: #203447; color: #f4f6f8; border-color: #526475; }
    .pm-ai .pm-card__head { border-color: #526475; }
    .pm-ai .pm-status, .pm-ai .pm-event > i { color: #b4d8bd; }
    .pm-ai .pm-event p { color: #c1cdd7; }
    .pm-shots > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
    .pm-shots img { display: block; width: 100%; height: clamp(125px, 21svh, 185px); object-fit: cover; border-radius: 7px; }
    .pm-shots figcaption { margin-top: 5px; font-size: 12px; }
    .pm-shots .pm-meta { margin-top: 10px; }
    .pm-portal__private { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; margin-top: 14px; padding: 12px; border-radius: 6px; background: #edf2f6; }
    .pm-portal__private p { margin: 4px 0; font-size: 13px; }
    .pm-services { display: flex; justify-content: space-around; padding: 16px 0; }
    .pm-services span { display: grid; gap: 5px; text-align: center; font-size: 12px; }
    .pm-services i { color: #315777; font-size: 18px; }
    .pm-site-health { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .pm-site-health dt { color: #5b6873; font-size: 12px; }
    .pm-site-health dd { margin: 4px 0 0; font-size: 18px; }
    .pm-metrics { display: grid; grid-template-columns: 1.3fr 1.15fr .65fr; gap: 8px; padding-top: 12px; }
    .pm-metrics dt { font-size: 12px; color: #5b6873; }
    .pm-metrics dd { margin: 4px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
    .pm-insights svg { display: block; width: 100%; height: 80px; margin-top: 12px; }
    .pm-chart-key { display: flex; justify-content: center; gap: 14px; font-size: 11px; color: #5b6873; }
    .pm-chart-key span::before { content: ''; display: inline-block; width: 12px; border-top: 2px solid #315777; margin-right: 4px; vertical-align: middle; }
    .pm-chart-key span:last-child::before { border-color: #a77432; border-top-style: dashed; }
    .pm-insights__sources { margin: 12px 0; font-size: 12px; }
    .pm-insights__sources > span { display: grid; gap: 2px; }
}

@media screen and (max-width: 1024px) and (max-height: 700px) {
    .ppc-mobile { padding-block: 14px; gap: 12px; }
    .ppc-mobile__copy { gap: 7px; }
    .ppc-mobile h3 { font-size: 21px; }
    .ppc-mobile__points { gap: 5px 10px; }
    .pm-card { padding: 12px; }
    .pm-card__head { padding-bottom: 8px; }
    .pm-event { padding-top: 9px; }
    .pm-scene { height: 105px; }
    .pm-checkbook img { max-height: 180px; }
    .pm-invoice { padding: 0; }
    .pm-insights svg { height: 60px; margin-top: 8px; }
    .pm-insights__sources { margin: 8px 0; }
    .pm-document__terms { padding-block: 12px; }
    .pm-shots img { height: 125px; }
}
@media screen and (max-width: 360px) {
    .ppc-mobile { padding-inline: 16px; }
    .ppc-mobile h3 { font-size: 20px; }
    .ppc-mobile__kicker { font-size: 11px; letter-spacing: .04em; }
    .ppc-mobile__points { gap: 5px 8px; font-size: 12px; }
    .pm-metrics dd { font-size: 16px; }
    .pm-scene { height: 90px; }
    .pm-note { line-height: 1.3; }
}
@media print { .ppc-mobile { display: none; } .ppc .ppc-track, .ppc .ppc-pin { height: auto; } }
