/* ------------------------------------------------------------------
   Product tour additions (2026-11-08):
     .cp-combo            Time Clock & Crew Pay slide (macros/tour_crew_pay.html):
       .tc-*              a phone taking the clock-in photo and location, and
                          the people on the clock now (tour_time_clock.html)
       .cp-split          one job's money split into everyone's share
   Loaded on the homepage after the other feature stylesheets.
   ------------------------------------------------------------------ */

/* No one-word last lines under the headlines */
.ppc .ppc-panel__desc,
.ppc .ppc-mobile__desc { text-wrap: balance; }
.ppc .ppc-panel__headline,
.ppc .ppc-mobile__copy h3 { text-wrap: balance; }

/* ---------------- Time Clock & Crew Pay ----------------
   Desktop: the phone on the left at the stage's full height; beside it the
   three pay tiles (time clock, commission, lead cost) over the job split.
   --cp-1..6 are the colours of the split's parts, in order; the tiles wear
   the colour of the part they explain. */
.cp-combo {
    --tc-green: var(--invoice-paid, #2c7958);
    --tc-radius: var(--border-radius-double, 22px);
    --cp-1: var(--stage-gold, #ebcd91);
    --cp-2: var(--stage-route-violet, rgb(128 104 160));
    --cp-2-ink: var(--cp-fee-ink, #55407a);
    --cp-3: var(--primary-color, #123456);
    --cp-4: var(--stage-info, #315c74);
    --cp-5: color-mix(in srgb, var(--stage-info, #315c74) 45%, var(--ppc-surface, #fff));
    --cp-6: color-mix(in srgb, var(--ppc-ink, #112233) 18%, var(--ppc-surface, #fff));
    --cp-keep: var(--invoice-paid, #2c7958);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 3.5cqw, 56px);
    width: 100%;
    height: 100%;
    margin: 0;
    color: var(--ppc-ink, #112233);
}
.cp-combo__side { display: flex; flex: 1 1 0; flex-direction: column; gap: 20px; min-width: 0; max-width: 780px; }

.tc-phone {
    flex: 0 0 auto;
    height: min(100cqh, 620px);
    aspect-ratio: 9 / 18;
    padding: 8px;
    border-radius: 44px;
    background: var(--title-color, #112233);
    box-shadow: var(--ppc-lift, 0 24px 48px rgba(17, 34, 51, .24));
    box-sizing: border-box;
}

.tc-phone__screen {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding: 16px 12px 12px;
    border-radius: 36px;
    background: var(--ppc-surface, #fff);
    overflow: hidden;
    box-sizing: border-box;
}

.tc-phone__bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 16px;
}
.tc-phone__bar strong { font-weight: 600; }
.tc-phone__bar span { color: var(--ppc-ink-soft, #5b6873); font-size: 14px; }

.tc-phone__shot {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: var(--tc-radius);
    overflow: hidden;
}
.tc-phone__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

/* The clock-in screen is a grid so the place can sit over the photo's foot
   (desktop) or beside the photo (phone and tablet) from the same markup. */
.cp-combo .tc-phone__screen { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; }
.cp-combo .tc-phone__shot, .cp-combo .tc-phone__place { grid-area: 2 / 1; }

.tc-phone__place {
    position: relative;
    z-index: 1;
    align-self: end;
    margin: 0 8px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--ppc-surface, #fff);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.tc-phone__place > span { overflow: hidden; text-overflow: ellipsis; }
.tc-phone__place i { color: var(--tc-green); }

.tc-phone__job {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}
.tc-phone__job > i {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ppc-sunken, #f7f5f2);
    color: var(--ppc-ink-soft, #5b6873);
    font-size: 15px;
}
.tc-phone__job small { display: block; color: var(--ppc-ink-soft, #5b6873); font-size: 14px; font-weight: 400; }

.tc-phone__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    margin: 0;
    border-radius: 999px;
    background: var(--tc-green);
    color: var(--box-background, #fff);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    padding: 0 16px;
    border: 0;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 300ms ease-out, transform 100ms ease-out;
}
.tc-phone__button.is-ready { background: var(--primary-color, #1d4a72); }
.tc-phone__button:hover { filter: brightness(1.08); }
.tc-phone__button:active { transform: scale(.98); }
.tc-phone__button:focus-visible { outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc-green) 40%, transparent); }

/* The three kinds of pay, side by side. Each tile: a label and one big
   figure, nothing more; the time clock tile also carries the faces of
   the people on the clock now. */
.tc-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tc-pillar {
    --pillar: var(--cp-3);
    --pillar-ink: var(--cp-3);
    position: relative;
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    padding: 16px 16px 16px 20px;
    overflow: hidden;
    border: 1px solid var(--ppc-edge, #e7e7e7);
    border-radius: var(--border-radius, 11px);
    background: linear-gradient(180deg, color-mix(in srgb, var(--pillar) 10%, var(--ppc-surface, #fff)), var(--ppc-surface, #fff) 64%);
    line-height: 1.35;
}
.tc-pillar::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--pillar); content: ''; }
/* Depth, as on the other slides: each piece stands on a solid lower edge
   and casts a warm shadow, the phone the deepest, and the money you keep is
   the row that lifts off the card. */
.cp-combo .tc-pillar { box-shadow: 0 3px 0 var(--ppc-edge, #e7e7e7), 0 24px 24px -16px rgb(74 58 30 / 40%), 0 8px 16px -8px rgb(74 58 30 / 16%); }
.cp-combo .cp-split { box-shadow: 0 3px 0 var(--ppc-edge, #e7e7e7), 0 40px 40px -24px rgb(74 58 30 / 45%), 0 12px 24px -12px rgb(74 58 30 / 18%); }
.cp-combo .tc-phone { box-shadow: inset 0 0 0 2px rgb(255 255 255 / 10%), 0 48px 48px -28px rgb(40 32 18 / 55%), 0 16px 24px -12px rgb(40 32 18 / 30%); }
.cp-combo .tc-phone__place { box-shadow: 0 8px 16px -8px rgb(17 34 51 / 50%); }
.cp-combo .tc-phone__button { box-shadow: 0 12px 16px -8px color-mix(in srgb, var(--tc-green) 55%, transparent); }
.cp-combo .tc-phone__button.is-ready { box-shadow: 0 12px 16px -8px color-mix(in srgb, var(--primary-color, #1d4a72) 55%, transparent); }
.cp-combo .cp-split__part { box-shadow: inset 0 1px 0 rgb(255 255 255 / 32%), inset 0 -2px 0 rgb(17 34 51 / 14%), 0 4px 8px -4px rgb(17 34 51 / 30%); }
.cp-combo .cp-share__face { box-shadow: 0 0 0 2px var(--ppc-surface, #fff), 0 4px 8px -2px rgb(17 34 51 / 30%); }
.cp-combo .cp-share__face--icon { box-shadow: inset 0 0 0 1px var(--ppc-edge, #e7e7e7); }
.cp-combo .cp-share--keep { margin-top: 8px; padding-block: 8px; border: 1px solid color-mix(in srgb, var(--cp-keep) 28%, var(--ppc-surface, #fff)); box-shadow: 0 2px 0 color-mix(in srgb, var(--cp-keep) 28%, var(--ppc-surface, #fff)), 0 16px 16px -12px color-mix(in srgb, var(--cp-keep) 55%, transparent); }
.cp-combo .cp-share--keep .cp-share__face--icon { box-shadow: 0 4px 8px -2px color-mix(in srgb, var(--cp-keep) 45%, transparent); }
.cp-combo .cp-share--keep .cp-share__who strong { font-size: 17px; }
.tc-pillar--commission { --pillar: var(--cp-1); --pillar-ink: var(--cp-tag-ink, #6b4612); }
.tc-pillar--lead { --pillar: var(--cp-2); --pillar-ink: var(--cp-2-ink); }
.tc-pillar__label { display: flex; align-items: center; gap: 8px; color: var(--pillar-ink); font-size: 15px; }
.tc-pillar__label strong { font-weight: 700; letter-spacing: .01em; }
.tc-pillar__figure { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tc-pillar__figure strong { font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.tc-pillar__figure span { color: var(--ppc-ink-soft, #5b6873); font-size: 15px; font-weight: 600; }
.tc-pillar__faces { position: absolute; top: 12px; right: 12px; display: flex; }
.tc-pillar__face { width: 28px; height: 28px; margin-left: -10px; border: 2px solid var(--ppc-surface, #fff); border-radius: 50%; object-fit: cover; }
.tc-pillar__face:first-child { box-shadow: 0 0 0 2px var(--tc-green); }

/* ---------------- Crew Pay: one job, split into shares ---------------- */
.cp-split {
    display: grid;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--ppc-edge, #e7e7e7);
    border-radius: var(--border-radius-double, 22px);
    background: var(--ppc-surface, #fff);
    color: var(--ppc-ink, #112233);
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
}
.cp-split__job { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cp-split__title { display: grid; gap: 4px; min-width: 0; }
.cp-split__title strong { font-size: 20px; font-weight: 600; line-height: 1.2; }
.cp-split__title span { color: var(--ppc-ink-soft, #5b6873); font-size: 15px; }
.cp-split__in { display: grid; justify-items: end; gap: 4px; }
.cp-split__in small { color: var(--ppc-ink-soft, #5b6873); font-size: 14px; }
.cp-split__in strong { font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }

.cp-split__bar { display: flex; gap: 4px; height: 36px; }
.cp-split__part { flex: 1 1 0; min-width: 4px; border-radius: var(--border-radius-half, 6px); background: var(--cp-6); transform-origin: left center; }
.cp-split__part--1, .cp-share--1 .cp-share__swatch { background: var(--cp-1); }
.cp-split__part--2, .cp-share--2 .cp-share__swatch { background: var(--cp-2); }
.cp-split__part--3, .cp-share--3 .cp-share__swatch { background: var(--cp-3); }
.cp-split__part--4, .cp-share--4 .cp-share__swatch { background: var(--cp-4); }
.cp-split__part--5, .cp-share--5 .cp-share__swatch { background: var(--cp-5); }
.cp-split__part--6, .cp-share--6 .cp-share__swatch { background: var(--cp-6); }
.cp-split__part--keep, .cp-share__swatch--keep { background: var(--cp-keep); }

.cp-split__shares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.cp-share { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 4px 0; }
.cp-share__swatch { flex: none; width: 4px; height: 36px; border-radius: 2px; }
.cp-share__face { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.cp-share__face--icon { display: grid; place-items: center; background: var(--ppc-sunken, #f7f5f2); color: var(--ppc-ink-soft, #5b6873); font-size: 17px; }
.cp-share__who { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; line-height: 1.35; }
.cp-share__who strong { font-size: 16px; font-weight: 600; }
.cp-share__who span { overflow: hidden; color: var(--ppc-ink-soft, #5b6873); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.cp-share__amount { flex: none; font-size: 16px; font-weight: 600; }

/* The kind of pay behind a share. Commission and the admin fee are the two
   a reader looks for, so each carries the colour of its part of the bar:
   gold for commission, violet for the fee. */
.cp-share__tag { margin-left: 8px; padding: 2px 8px; border-radius: var(--border-radius-pill, 9999px); background: var(--ppc-sunken, #f7f5f2); color: var(--ppc-ink-soft, #5b6873); font-size: 12px; font-style: normal; font-weight: 600; line-height: 1.4; white-space: nowrap; vertical-align: middle; /* noqa: UI-002 - tag beside a name */ }
.cp-share__tag--1 { background: color-mix(in srgb, var(--stage-gold, #ebcd91) 45%, var(--ppc-surface, #fff)); color: var(--cp-tag-ink, #6b4612); }
.cp-share__tag--2 { background: color-mix(in srgb, var(--cp-2) 20%, var(--ppc-surface, #fff)); color: var(--cp-2-ink); }
.cp-share--keep { grid-column: 1 / -1; padding: 4px 8px; margin: 0 -8px; border-radius: var(--border-radius, 11px); background: color-mix(in srgb, var(--cp-keep) 10%, var(--ppc-surface, #fff)); }
.cp-share--keep .cp-share__face--icon { background: var(--ppc-surface, #fff); color: var(--cp-keep); }
.cp-share--keep .cp-share__amount { color: var(--cp-keep); font-size: 20px; }

/* A narrower stage (a laptop with the copy beside it): the tiles shrink to
   label, figure and its unit under it; the phone and the split tell the
   story on their own. */
@container (max-width: 900px) {
    .cp-combo .tc-pillars { gap: 8px; }
    .cp-combo .tc-pillar { padding: 8px 8px 8px 16px; gap: 0; }
    .cp-combo .tc-pillar__label > i { display: none; }
    .cp-combo .tc-pillar__figure { flex-direction: column; align-items: flex-start; gap: 0; }
    .cp-combo .tc-pillar__figure strong { font-size: 22px; }
    .cp-combo .tc-pillar__figure span { font-size: 14px; }
    .cp-combo .tc-pillar__faces { display: none; }
    .cp-combo .cp-split { gap: 12px; padding: 16px; }
    .cp-combo .cp-split__title strong { font-size: 18px; }
    .cp-combo .cp-split__in strong { font-size: 22px; }
    .cp-combo .cp-split__bar { height: 24px; gap: 3px; }
    .cp-combo .cp-split__shares { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .cp-combo .cp-share { gap: 8px; padding-block: 2px; }
    .cp-combo .cp-share__face { display: none; }
    .cp-combo .cp-share__swatch { height: 32px; }
    .cp-combo .cp-share__who { gap: 0; line-height: 1.3; }
    .cp-combo .cp-share__who strong, .cp-combo .cp-share__amount { font-size: 15px; }
    .cp-combo .cp-share--keep { margin: 2px -8px 0; }
    .cp-combo .cp-share--keep .cp-share__amount { font-size: 17px; }
}
@container (max-height: 520px) {
    .cp-combo .tc-pillar { padding-block: 8px; gap: 0; }
    .cp-combo .tc-pillar__faces { top: 50%; translate: 0 -50%; }
    .cp-combo .tc-phone__place { gap: 4px; padding-inline: 8px; }
    .cp-combo .tc-phone__button { padding-inline: 8px; white-space: nowrap; }
}
@container (min-width: 901px) and (max-height: 520px) {
    .cp-combo .tc-pillar__figure strong { font-size: 26px; }
}
/* A short and narrow stage (a small laptop): shares give way from the end,
   as they do on a phone, so the total and what you keep are never cut. */
@container (max-width: 900px) and (max-height: 550px) {
    .cp-combo .cp-share:nth-child(6) { display: none; }
}
@container (max-width: 900px) and (max-height: 520px) {
    .cp-combo .cp-share:nth-child(5) { display: none; }
}
@container (max-width: 900px) and (max-height: 480px) {
    .cp-combo .tc-phone__place { margin: 0 4px 4px; }
    .cp-combo .cp-share:nth-child(4) { display: none; }
}
/* A shorter stage: the same parts, a little closer together. */
@container (max-height: 600px) {
    .cp-combo__side { gap: 12px; }
    .cp-combo .cp-split { gap: 12px; padding: 16px 20px; }
    .cp-combo .cp-split__bar { height: 28px; }
    .cp-combo .cp-share { padding-block: 2px; }
}
/* A desktop stage with room to spare draws the whole pair larger, phone,
   tiles, card and lettering together (it is about 1140 x 620 at its own size). */
@media screen and (min-width: 1025px) {
    /* The tiles start level with the phone's top and the card ends level
       with its foot: the column is as tall as the phone (never shorter than
       its own content), and the card's rows share what that adds. */
    .ppc .ps-product .cp-combo__side { min-height: min(100cqh, 620px); }
    .ppc .ps-product .cp-split { flex: 1 1 auto; grid-template-rows: auto auto minmax(0, 1fr); }
    .ppc .ps-product .cp-split__shares { align-content: space-between; }
    /* With that height the rows are drawn larger, not just further apart. */
    @container (min-width: 1100px) and (min-height: 600px) {
        .ppc .ps-product .cp-share__face { width: 44px; height: 44px; }
        .ppc .ps-product .cp-share__face--icon { font-size: 20px; }
        .ppc .ps-product .cp-share__swatch { height: 44px; }
        .ppc .ps-product .cp-share__who strong, .ppc .ps-product .cp-share__amount { font-size: 17px; }
        .ppc .ps-product .cp-share__who strong { white-space: nowrap; }
        .ppc .ps-product .cp-split__shares { column-gap: 20px; }
        .ppc .ps-product .cp-share--keep .cp-share__who strong { font-size: 19px; }
        .ppc .ps-product .cp-share--keep .cp-share__amount { font-size: 24px; }
        .ppc .ps-product .cp-split__title strong { font-size: 22px; }
        .ppc .ps-product .cp-split__in strong { font-size: 32px; }
        .ppc .ps-product .cp-split__bar { height: 40px; }
    }
    @container (min-width: 1320px) and (min-height: 730px) { .ppc .ps-product .cp-combo { zoom: 1.15; } }
    @container (min-width: 1390px) and (min-height: 780px) { .ppc .ps-product .cp-combo { zoom: 1.2; } }
}
@media screen and (min-width: 1600px) {
    .cp-combo .tc-phone { height: min(100cqh, 680px); }
    .ppc .ps-product .cp-combo__side { min-height: min(100cqh, 680px); }
}

/* Phone and tablet: the clock-in card without the phone around it, then the
   split; its rows trim from the end to fit (data-fit-trim), the total, the
   bar and what you keep always show. The three tiles sit small between
   them: on a phone the figure over its unit, no faces.
   The clock-in card keeps every part of the desktop phone: the photo stays
   an upright selfie on the left, with the time, the place and the job
   beside it and the button under both. One gap (--cp-gap) separates the
   card, the tiles and the split. */
.cp-combo--mobile { --cp-gap: 12px; flex-direction: column; align-items: stretch; gap: var(--cp-gap); height: auto; }
.cp-combo--mobile .cp-combo__side { flex: none; gap: var(--cp-gap); max-width: none; }
.cp-combo--mobile .tc-phone { height: auto; aspect-ratio: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.cp-combo--mobile .tc-phone__screen {
    grid-template-columns: var(--cp-photo, clamp(104px, 26vw, 136px)) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 8px 16px;
    height: auto;
    padding: 16px;
    border: 1px solid var(--ppc-edge, #e7e7e7);
    border-radius: var(--tc-radius);
}
.cp-combo--mobile .tc-phone__shot { grid-area: 1 / 1 / 4 / 2; aspect-ratio: 4 / 5; border-radius: var(--border-radius, 11px); }
.cp-combo--mobile .tc-phone__photo { object-position: 50% 30%; }
.cp-combo--mobile .tc-phone__bar { grid-area: 1 / 2; align-self: end; padding: 0; }
.cp-combo--mobile .tc-phone__place { grid-area: 2 / 2; align-self: center; margin: 0; padding: 0; border-radius: 0; background: none; }
.cp-combo--mobile .tc-phone__place i, .cp-combo--mobile .tc-phone__job > i { flex: 0 0 16px; width: 16px; height: auto; background: none; font-size: 14px; text-align: center; }
.cp-combo--mobile .tc-phone__job { grid-area: 3 / 2; align-self: start; align-items: baseline; gap: 8px; padding: 0; font-size: 14px; }
.cp-combo--mobile .tc-phone__job > i { display: block; }
.cp-combo--mobile .tc-phone__button { grid-area: 4 / 1 / 5 / 3; margin-top: 4px; }
.cp-split--mobile .cp-split__bar { flex: none; }
.cp-combo--mobile .tc-pillars { flex: none; gap: 8px; }
.cp-combo--mobile .tc-pillar { padding: 8px 8px 8px 12px; gap: 0; }
.cp-combo--mobile .tc-pillar__label { font-size: 14px; white-space: nowrap; }
.cp-combo--mobile .tc-pillar__label > i, .cp-combo--mobile .tc-pillar__faces { display: none; }
.cp-combo--mobile .tc-pillar__figure { flex-direction: column; align-items: flex-start; gap: 0; }
.cp-combo--mobile .tc-pillar__figure strong { font-size: 20px; }
.cp-combo--mobile .tc-pillar__figure span { font-size: 14px; font-weight: 400; }
/* On a phone the tiles already say the commission and the admin fee, so the
   split keeps its total, its bar and what is left. */
@media screen and (max-width: 739px) {
    .ppc .cp-split--mobile .cp-share:not(.cp-share--keep) { display: none; }
    /* A tall phone has the room for who gets what (the rows trim from the end to fit). */
    @media (min-height: 900px) { .ppc .cp-split--mobile .cp-share:not(.cp-share--keep) { display: flex; flex: none; } }
}
.cp-combo--mobile .tc-phone__button { min-height: 48px; }
.cp-split--mobile { gap: 12px; padding: 16px; }
.cp-split--mobile .cp-split__title strong { font-size: 18px; }
.cp-split--mobile .cp-split__in strong { font-size: 22px; }
.cp-split--mobile .cp-split__bar { height: 28px; gap: 3px; }
.cp-split--mobile .cp-split__shares { grid-template-columns: 1fr; gap: 2px; }
.cp-split--mobile .cp-share--keep { margin: 4px 0 0; }
@media screen and (max-width: 1024px) and (min-height: 500px) {
    .ppc .ppc-mobile--roomy .cp-combo--mobile { flex: 1 1 0; min-height: 0; }
    .ppc .ppc-mobile--roomy .cp-combo--mobile .cp-combo__side { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; }
    .ppc .ppc-mobile--roomy .cp-split--mobile { display: flex; flex: 0 1 auto; flex-direction: column; min-height: 0; max-height: 100%; }
    .ppc .ppc-mobile--roomy .cp-split--mobile .cp-split__shares { display: flex; flex: 0 1 auto; flex-direction: column; min-height: 0; overflow: hidden; }
}
@media screen and (min-width: 740px) and (max-width: 1024px) {
    .ppc .cp-combo--mobile { width: 100%; }
}
/* A portrait tablet has the height: a taller photo and the split at its
   desktop sizes. */
@media screen and (min-width: 740px) and (max-width: 1024px) and (min-height: 900px) {
    .ppc .cp-combo--mobile { --cp-gap: 12px; --cp-photo: 128px; align-self: start; }
    .ppc .cp-combo--mobile .tc-phone__screen { gap: 8px 24px; padding: 20px; }
    .ppc .cp-combo--mobile .tc-phone__bar { font-size: 20px; }
    .ppc .cp-combo--mobile .tc-phone__place, .ppc .cp-combo--mobile .tc-phone__job { font-size: 16px; }
    .ppc .cp-combo--mobile .tc-pillars { gap: 12px; }
    .ppc .cp-combo--mobile .tc-pillar { padding: 8px 12px 8px 16px; }
    .ppc .cp-combo--mobile .tc-pillar__label > i { display: inline; }
    .ppc .cp-combo--mobile .tc-pillar__figure { flex-direction: row; align-items: baseline; gap: 8px; }
    .ppc .cp-combo--mobile .tc-pillar__figure strong { font-size: 24px; }
    .ppc .cp-split--mobile { gap: 12px; padding: 20px; }
    .ppc .cp-split--mobile .cp-split__title strong { font-size: 20px; }
    .ppc .cp-split--mobile .cp-split__in strong { font-size: 28px; }
    .ppc .cp-split--mobile .cp-split__bar { height: 28px; }
    .ppc .cp-split--mobile .cp-share { padding-block: 2px; }
    /* The tablet split is as tall as its rows: it never gives way to the room. */
    .ppc .ppc-mobile--roomy .cp-combo--mobile,
    .ppc .ppc-mobile--roomy .cp-combo--mobile .cp-combo__side,
    .ppc .ppc-mobile--roomy .cp-split--mobile,
    .ppc .ppc-mobile--roomy .cp-split--mobile .cp-split__shares { flex: none; max-height: none; overflow: visible; }
}
/* A smaller upright tablet: the last two shares give way, so nothing is shrunk. */
@media screen and (min-width: 740px) and (max-width: 1024px) and (min-height: 900px) and (max-height: 1099px) {
    .ppc .cp-split--mobile .cp-share:is(:nth-child(5), :nth-child(6)) { display: none; }
}
@media screen and (min-width: 740px) and (max-width: 1024px) and (min-height: 900px) and (max-height: 1039px) {
    .ppc .cp-split--mobile .cp-share:nth-child(4) { display: none; }
}
/* A narrow phone: a slimmer photo, so the address beside it stays whole. */
@media screen and (max-width: 379px) {
    .ppc .cp-combo--mobile { --cp-photo: 88px; }
    .ppc .cp-combo--mobile .tc-phone__screen { column-gap: 12px; }
    .ppc .cp-combo--mobile .tc-pillars { gap: 4px; }
    .ppc .cp-combo--mobile .tc-pillar { padding-inline: 8px 4px; }
}
/* A short phone: a small square photo so the split keeps its rows. */
@media screen and (max-width: 739px) and (max-height: 780px), screen and (max-width: 379px) and (max-height: 899px) {
    .ppc .cp-combo--mobile { --cp-gap: 8px; --cp-photo: 64px; }
    .ppc .cp-combo--mobile .tc-phone__shot { aspect-ratio: 1; }
    .ppc .cp-combo--mobile .tc-pillar { padding: 4px 4px 4px 12px; }
    .ppc .cp-combo--mobile .tc-phone__screen { gap: 0 12px; padding: 12px; }
    .ppc .cp-combo--mobile .tc-phone__button { margin-top: 8px; }
    .ppc .cp-split--mobile .cp-split__bar { height: 20px; }
    .ppc .cp-combo--mobile .tc-phone__job small { display: none; }
    .ppc .cp-split--mobile { gap: 8px; padding: 12px 16px; }
    .ppc .cp-split--mobile .cp-split__job { align-items: center; }
    .ppc .cp-split--mobile .cp-split__title > span,
    .ppc .cp-split--mobile .cp-split__in > small { display: none; }
    .ppc .cp-combo--mobile .tc-phone__button { min-height: 44px; }
    .ppc .cp-split--mobile .cp-share__face { width: 32px; height: 32px; }
    .ppc .cp-split--mobile .cp-share--keep { padding-block: 2px; }
}
/* The smallest phones: the photo, the time and the place. */
@media screen and (max-width: 379px) and (max-height: 660px) {
    .ppc .cp-combo--mobile { --cp-photo: 48px; }
    .ppc .cp-combo--mobile .tc-phone__job { display: none; }
}

/* ---------------- Checkbook ----------------
   macros/tour_checkbook.html. Two halves built the same way, side by side:
   a heading, a picture, and the line it leaves in the product.
     Issue checks    the check printing out of the check printer
     Collect checks  the client's phone paying with a photo of their check
   On a desktop the scene is staged in depth (see the end of this block).
   The halves are the same size and are built row for row alike: heading,
   device (printer / phone), tags (how it went out / the photos taken), line.
   Phone and tablet stack the halves flat; the phone frame gives way to the
   camera view alone. */
.ck {
    --ck-in: var(--invoice-paid, #2c7958);
    --ck-out: var(--primary-color, #123456);
    --tc-green: var(--ck-in);
    --ck-rule: color-mix(in srgb, var(--ppc-ink, #112233) 32%, transparent);
    --ck-paper-edge: var(--ck-edge, #cfc6ae);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    color: var(--ppc-ink, #112233);
    font-variant-numeric: tabular-nums;
}
.ck-half { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* A panel's heading: it names the direction and replays its part. */
.ck-action {
    display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 48px; margin: 0 -8px; padding: 4px 8px;
    border: 0; border-radius: var(--border-radius, 11px); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
/* Hover is told by the round mark alone: it grows a little. */
.ck-action > i { transition: scale 200ms ease-out; }
.ck-action:hover > i { scale: 1.1; }
.ck-action:focus-visible { outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ck-out) 35%, transparent); }
.ck-action > i { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ck-out); color: var(--text-brightest, #fff); font-size: 16px; }
.ck-action--in > i { background: var(--ck-in); }
.ck-action > span { display: grid; gap: 2px; min-width: 0; }
.ck-action strong { font-size: 20px; font-weight: 600; line-height: 1.2; }
.ck-action small { overflow: hidden; color: var(--ppc-ink-soft, #5b6873); font-size: 14px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }

/* The picture: centred in the room between the heading and the line. */
.ck-view { position: relative; display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-height: 0; }

/* The printer, and the check coming out of its slot (88.6% of the way down it). */
.ck-press { position: relative; width: min(92%, 480px); padding: 16px 0 8px; }
.ck-printer { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 16px rgb(74 58 30 / 28%)); }
.ck-feed { position: relative; z-index: 2; width: 88%; margin: -3.75% auto 0; padding: 0 0 24px; overflow: hidden; }
.ck-check {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 20px 12px;
    border: 1px solid var(--ck-paper-edge); border-top: 0; border-radius: 0 0 var(--border-radius-half, 5px) var(--border-radius-half, 5px);
    /* Safety paper, lit as a sheet leaving a slot: the slot's shadow across
       its top, a soft sheen where it bows forward, a fine two-way weave. */
    background:
        linear-gradient(180deg, rgb(24 34 44 / 34%), rgb(24 34 44 / 10%) 6px, rgb(24 34 44 / 0%) 20px),
        linear-gradient(180deg, rgb(255 255 255 / 0%) 45%, rgb(255 255 255 / 45%) 74%, rgb(24 34 44 / 7%) 100%),
        repeating-linear-gradient(60deg, rgb(52 116 98 / 5%) 0 1px, transparent 1px 6px),
        repeating-linear-gradient(-60deg, rgb(52 116 98 / 5%) 0 1px, transparent 1px 6px),
        linear-gradient(160deg, var(--ck-paper-warm, #f6f1df), var(--ck-paper-mint, #dfeee4));
    box-shadow: 0 1px 0 rgb(255 255 255 / 70%) inset, 0 -1px 0 rgb(74 58 30 / 18%) inset, 0 16px 16px -12px rgb(74 58 30 / 45%);
    font-size: 16px; line-height: 1.3; box-sizing: border-box;
}
.ck-check small {
    flex: none; color: var(--ppc-ink-soft, #5b6873);
    font-size: 11px; /* noqa: UI-002 - the printed field labels on a check */
    font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.ck-check__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ck-check__from { display: grid; gap: 2px; min-width: 0; }
.ck-check__from strong { font-size: 16px; font-weight: 600; }
.ck-check__from span { color: var(--ppc-ink-soft, #5b6873); font-size: 14px; }
.ck-check__ref { display: grid; flex: none; justify-items: end; gap: 4px; }
.ck-check__no { font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.ck-check__date { display: flex; align-items: baseline; gap: 8px; color: var(--ppc-ink-soft, #5b6873); font-size: 14px; }
.ck-check:not(.ck-check--client) { position: relative; }
.ck-check__words { justify-content: space-between; }
/* The bank's line along the bottom of a check: routing, account and check
   number between their marks, quiet and evenly spaced. */
.ck-check__micr {
    display: flex; align-items: center; gap: 4px; padding-top: 4px; overflow: hidden; color: var(--ppc-ink-soft, #5b6873);
    font-size: 13px; /* noqa: UI-002 - the bank's number line on a check */
    font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .18em; line-height: 1; white-space: nowrap;
}
.ck-check__micr > span { margin-left: 8px; }
.ck-check__micr > i,
.ck-check__micr > b {
    flex: none; width: 6px; height: 8px; opacity: .8;
    background:
        linear-gradient(currentColor, currentColor) 0 0 / 1px 100% no-repeat,
        linear-gradient(currentColor, currentColor) 100% 0 / 2px 2px no-repeat,
        linear-gradient(currentColor, currentColor) 100% 100% / 2px 2px no-repeat;
}
.ck-check__micr > b {
    background:
        linear-gradient(currentColor, currentColor) 0 0 / 1px 60% no-repeat,
        linear-gradient(currentColor, currentColor) 3px 100% / 1px 60% no-repeat,
        linear-gradient(currentColor, currentColor) 100% 0 / 2px 2px no-repeat;
}
.ck-check__pay, .ck-check__sign { display: flex; align-items: flex-end; gap: 12px; }
.ck-check__line { display: flex; flex: 1 1 0; align-items: baseline; gap: 8px; min-width: 0; min-height: 24px; padding-bottom: 4px; border-bottom: 1px solid var(--ck-rule); }
.ck-check__line > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ck-check__payee { font-size: 18px; font-weight: 600; }
.ck-check__amount {
    display: flex; flex: none; align-items: baseline; gap: 8px; padding: 4px 12px;
    border: 1px solid var(--ck-rule); border-radius: var(--border-radius-half, 5px); background: var(--ppc-surface, #fff);
    font-size: 18px; font-weight: 600; box-sizing: border-box;
}
.ck-check__amount small { font-size: 14px; }
.ck-check__words, .ck-check__memo { font-size: 14px; }
.ck-check__signature { align-items: flex-end; padding-bottom: 0; }
.ck-check__signature svg { display: block; width: 100%; height: 28px; }
.ck-check__signature path { stroke: var(--ck-out); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* The sheet bows as it comes out: a curved shadow under its lower edge. */
.ck-check:not(.ck-check--client)::after { position: absolute; z-index: -1; right: 6%; bottom: 4px; left: 6%; height: 16px; border-radius: 50%; box-shadow: 0 12px 12px rgb(74 58 30 / 45%); content: ''; pointer-events: none; }
/* The signature is pen, in blue ink; "Pay to the order of" sits in two short
   lines before the payee, as printed. */
.ck-check:not(.ck-check--client) .ck-check__signature path { stroke: var(--ck-pen, #23408f); stroke-width: 2; }
.ck-check:not(.ck-check--client) .ck-check__pay .ck-check__line > small { width: 80px; line-height: 1.15; white-space: normal; }
/* How the issued check went out: tags over its lower edge. */
.ck-send { position: relative; z-index: 3; display: flex; justify-content: center; gap: 8px; margin: -12px 0 0; padding: 0; list-style: none; }
.ck-send > li {
    display: flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid var(--ppc-edge, #e7e7e7); border-radius: var(--border-radius-pill, 9999px);
    background: var(--ppc-surface, #fff); box-shadow: 0 8px 16px -8px rgb(74 58 30 / 35%);
    font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.ck-send > li > i:first-child { color: var(--ck-out); }
.ck-send__done { color: var(--ck-in); }

/* The line a check leaves in the product. */
.ck-result {
    display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 16px;
    border: 1px solid var(--ppc-edge, #e7e7e7); border-radius: var(--border-radius, 11px); background: var(--ppc-surface, #fff);
}
/* The entry is a raised card on every screen, as the tags above it are. */
.ck-result { box-shadow: 0 3px 0 var(--ppc-edge, #e7e7e7), 0 24px 24px -16px rgb(74 58 30 / 40%), 0 8px 16px -8px rgb(74 58 30 / 16%); }
.ck-send > li { box-shadow: 0 12px 16px -10px rgb(74 58 30 / 45%); }
.ck-result > i { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ppc-sunken, #f7f5f2); color: var(--ppc-ink-soft, #5b6873); font-size: 14px; }
.ck-result__what { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; line-height: 1.35; }
.ck-result__what strong { font-size: 16px; font-weight: 600; white-space: nowrap; }
.ck-result__what span { overflow: hidden; color: var(--ppc-ink-soft, #5b6873); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.ck-result__value { flex: none; font-size: 18px; font-weight: 600; }
.ck-result--in > i { background: color-mix(in srgb, var(--ck-in) 12%, var(--ppc-surface, #fff)); color: var(--ck-in); }
.ck-result--in .ck-result__value { color: var(--ck-in); }

/* The client's phone, and the photos it takes tagged under it. */
.ck-capture { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ck-phone { position: relative; flex: none; align-self: stretch; width: 272px; height: auto; min-height: 0; aspect-ratio: auto; padding: 20px 8px 8px; border-radius: 36px; }
/* Its speaker slot, in the bezel. */
.ck-phone::before {
    position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: var(--border-radius-pill, 9999px);
    background: color-mix(in srgb, var(--text-brightest, #fff) 24%, transparent); content: '';
}
/* The screen is the camera: the view of the check, then the shutter. */
.ck-phone .tc-phone__screen { gap: 0; padding: 0; border-radius: 24px; background: var(--ck-cam-dark, #0b1722); overflow: hidden; }
/* The camera view: the check under its caption. */
.ck-cam { position: relative; display: grid; flex: 1 1 auto; align-content: center; gap: 12px; min-width: 0; min-height: 0; padding: 16px 12px; }
.ck-cam__label { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-brightest, #fff); font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.ck-check--client {
    gap: 8px; padding: 12px 12px 8px; border: 1px solid var(--ck-paper-edge); border-radius: var(--border-radius-half, 5px);
    background: linear-gradient(160deg, var(--ppc-surface, #fff), color-mix(in srgb, var(--ck-in) 12%, var(--ppc-surface, #fff)));
    box-shadow: 0 16px 24px -8px rgb(0 0 0 / 50%);
}
/* The camera's frame around the check. */
.ck-cam__shot { position: relative; margin: 8px; }
.ck--mobile .ck-cam__shot { margin: 4px; }
.ppc .ck-cam__corners { inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); pointer-events: none; }
.ck-check--client .ck-check__from strong, .ck-check--client .ck-check__no, .ck-check--client .ck-check__payee, .ck-check--client .ck-check__amount { font-size: 14px; }
.ck-check--client .ck-check__amount { padding: 2px 8px; gap: 4px; color: var(--ck-in); }
.ck-check--client .ck-check__line > small { display: none; }
.ck-check--client .ck-check__signature svg { height: 20px; }
.ck-check--client .ck-check__micr { gap: 2px; padding-top: 0; font-size: 11px; letter-spacing: .1em; /* noqa: UI-002 - the magnetic-ink line of a check in a photo */ }
.ck-check--client .ck-check__micr > span { margin-left: 4px; }
/* The upright phone's check is narrow: its line ends at the account number. */
.ck:not(.ck--mobile) .ck-check--client .ck-check__micr > span:last-child { display: none; }
.ck-check--client .ck-check__micr > i, .ck-check--client .ck-check__micr > b { scale: .8; }
.ck-check--client .ck-check__sign > .ck-check__line:first-child { flex: 0 0 auto; }
.ck-check--client .ck-check__payee { overflow: visible; white-space: normal; }
/* In the phone frame the payee takes a line of its own, the amount under it. */
.ck:not(.ck--mobile) .ck-check--client .ck-check__pay { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ck:not(.ck--mobile) .ck-check--client .ck-check__pay > .ck-check__line { flex: 1 1 100%; }
.ck-send--sides > li > i:first-child { color: var(--ck-in); }
/* The shutter: a round button with its caption, on a strip of its own. */
.ck-phone__cta {
    flex: none; flex-direction: column; gap: 4px; min-height: 0; padding: 12px 0 16px; border-radius: 0;
    background: color-mix(in srgb, var(--text-brightest, #fff) 8%, transparent); color: var(--text-brightest, #fff); cursor: default;
    font-size: 12px; /* noqa: UI-002 - the caption under the camera's shutter */
}
.ck-phone__cta > i {
    display: grid; place-items: center; width: 44px; height: 44px; margin: 4px; border-radius: 50%;
    background: var(--ppc-surface, #fff); color: var(--ck-in); font-size: 16px;
    box-shadow: 0 0 0 3px var(--ck-cam-dark, #0b1722), 0 0 0 5px var(--ppc-surface, #fff);
}

/* A narrower stage (a laptop with the copy beside it). */
@container (max-width: 860px) {
    .ck { gap: 16px; }
    .ck-cam { padding: 8px; }
    .ck-half { gap: 12px; }
    .ck-action small, .ck-check__from span, .ck-check__words, .ck-send__done, .ck-result .cp-share__tag, .ck-check--client .ck-check__sign { display: none; }
    .ck-action strong { font-size: 18px; }
    .ck-press { width: 92%; padding-top: 8px; }
    .ck-check { gap: 8px; padding: 16px 16px 8px; }
    /* The narrower sheet keeps one typed size, the plain figure, and a
       smaller magnetic-ink line; its date stays on wider stages. */
    .ck-check__date, .ck-check--client .ck-check__micr > span:last-child { display: none; }
    .ck-check:not(.ck-check--client) .ck-check__micr { gap: 2px; font-size: 12px; letter-spacing: .1em; /* noqa: UI-002 - the bank's number line on a check */ }
    .ck-check:not(.ck-check--client) .ck-check__micr > span { margin-left: 4px; }
    .ck-send { gap: 4px; }
    .ck-send > li { gap: 4px; padding: 4px 8px; }
    .ck-phone { width: 248px; }
    .ck-result__value { font-size: 16px; }
}
/* A short stage. */
@container (max-height: 540px) {
    .ck-check__words, .ck-check__from span { display: none; }
    .ck-check { gap: 8px; padding-top: 16px; }
    .ck-half { gap: 12px; }
}
@container (max-height: 460px) {
    .ck-check--client .ck-check__sign, .ck-check--client .ck-check__micr { display: none; }
}

/* Phone and tablet: the two parts stacked, without the panel chrome. */
.ck--mobile { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ck--mobile .ck-half { gap: 8px; }
.ck--mobile .ck-action { min-height: 44px; margin: 0; padding: 0; }
.ck--mobile .ck-action > i { width: 32px; height: 32px; font-size: 14px; }
.ck--mobile .ck-action strong { font-size: 16px; }
.ck--mobile .ck-action > span { display: flex; align-items: baseline; gap: 8px; }
.ck--mobile .ck-press { width: 100%; padding: 0; }
.ck--mobile .ck-check { gap: 8px; padding: 16px 20px 12px; }
.ck--mobile .ck-check__from span, .ck--mobile .ck-check__words { display: none; }
.ck--mobile .ck-send { gap: 4px; margin-top: -8px; }
.ck--mobile .ck-send > li { gap: 4px; padding: 4px 8px; }
.ck--mobile .ck-result { padding: 8px 12px; }
/* Here the client's phone is held sideways over the check: the same phone,
   with the shutter at its right-hand end and the speaker slot at its left. */
.ck--mobile .ck-capture { width: 100%; align-items: stretch; }
.ck--mobile .ck-phone { width: 100%; padding: 8px 8px 8px 20px; border-radius: 28px; box-shadow: 0 24px 32px -24px rgb(40 32 18 / 60%); }
.ck--mobile .ck-phone::before { top: 50%; left: 8px; width: 4px; height: 40px; margin: -20px 0 0; }
.ck--mobile .ck-phone .tc-phone__screen { flex-direction: row; align-items: stretch; height: auto; border-radius: 20px; }
.ck--mobile .ck-send--sides, .ck--mobile .ck-check--client .ck-check__sign { display: none; }
.ck--mobile .ck-cam { flex: 1 1 0; gap: 8px; padding: 12px 8px 16px 16px; }
.ck--mobile .ck-phone__cta { width: 76px; padding: 0; }
.ck--mobile .ck-phone__cta > i { margin: 0; }
@media screen and (max-width: 739px) {
    .ppc .ck--mobile .ck-action small, .ppc .ck--mobile .ck-half--out .ck-check__sign, .ppc .ck--mobile .ck-half--out .ck-result,
    .ppc .ck--mobile .ck-half--out .ck-check__pay .ck-check__line > small, .ppc .ck--mobile .ck-result .cp-share__tag { display: none; }
}
/* Below a tall phone the camera view is the check alone, and the shutter column is narrower. */
@media screen and (max-width: 739px) and (max-height: 999px) {
    .ppc .ck--mobile .ck-cam__label { display: none; }
    .ppc .ck--mobile .ck-cam { padding: 12px 8px 12px 12px; }
    .ppc .ck--mobile .ck-phone__cta { width: 64px; }
    .ppc .ck--mobile .ck-check--client { padding: 8px 12px; }
}
/* A phone where the whole does not fit keeps the check's main lines; its
   date and magnetic-ink line stay on roomier screens. */
@media screen and (max-width: 739px) {
    .ppc .ppc-mobile--compact .ck--mobile .ck-check__date, .ppc .ppc-mobile--compact .ck--mobile .ck-check__micr { display: none; }
}
@media screen and (max-width: 379px) {
    .ppc .ck--mobile .ck-send__done, .ppc .ck--mobile .ck-phone__cta > span { display: none; }
    .ppc .ck--mobile .ck-phone__cta { width: 56px; }
    .ppc .ck--mobile .ck-phone { padding-left: 16px; }
    .ppc .ck--mobile .ck-phone::before { left: 6px; }
    .ppc .ck--mobile .ck-check__payee, .ppc .ck--mobile .ck-check__amount { font-size: 14px; }
    .ppc .ck--mobile .ck-check__amount { padding: 4px 8px; }
    .ppc .ck--mobile .ck-result__what span { overflow: visible; white-space: normal; }
    .ppc .ck--mobile .ck-result__value { font-size: 16px; }
}
@media screen and (min-width: 740px) and (max-width: 1024px) {
    .ppc .ck--mobile { width: 100%; max-width: 560px; margin-inline: auto; gap: 24px; }
    .ppc .ck--mobile .ck-cam { padding-inline: 12% 10%; }
}
/* An upright tablet short of height: the printer shows its lower half, the
   check keeps its main lines and the gaps close, so the stack is drawn whole
   instead of being shrunk. */
@media screen and (min-width: 740px) and (max-width: 1024px) and (max-height: 1100px) and (max-aspect-ratio: 6/5) {
    .ppc .ck--mobile { gap: 12px; }
    .ppc .ck--mobile .ck-half { gap: 4px; }
    .ppc .ck--mobile .ck-printer { height: clamp(56px, calc(100svh - 880px), 184px); object-fit: cover; object-position: 50% 100%; }
    .ppc .ck--mobile .ck-check__date, .ppc .ck--mobile .ck-check--client .ck-check__micr, .ppc .ck--mobile .ck-cam__label { display: none; }
    .ppc .ck--mobile .ck-cam { padding-block: 12px; }
}
/* A sideways tablet: the copy above, and the two parts side by side under it
   across the slide's full width, as on a desktop. */
@media screen and (min-width: 740px) and (max-width: 1024px) and (min-aspect-ratio: 6/5) {
    .ppc .ppc-panel.ppc-panel--showcase-checkbook .ppc-mobile { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: 'copy' 'visual'; row-gap: 16px; padding-block: 24px; --feature-title: 32px; }
    .ppc .ck--mobile { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; max-width: 880px; gap: 32px; }
    .ppc .ck--mobile .ck-cam__label { display: none; }
    .ppc .ck--mobile .ck-cam { padding: 12px 8px 12px 16px; }
    /* The phone's side shows its two photo tags and the signed check, so
       the two columns end near the same level; a shorter screen sees less
       of the printer's top. */
    .ppc .ck--mobile .ck-send--sides, .ppc .ck--mobile .ck-check--client .ck-check__sign { display: flex; }
    .ppc .ck--mobile .ck-printer { height: clamp(48px, calc(100svh - 640px), 160px); object-fit: cover; object-position: 50% 100%; }
    .ppc .ck--mobile { gap: 24px 32px; }
    .ppc .ck--mobile .ck-half { gap: 8px; }
}
/* A phone still short of height (feature-mobile-fit.js adds --short): the
   check keeps its main lines, and the gaps close. */
@media screen and (max-width: 739px) {
    .ppc .ppc-mobile--short .ck--mobile { gap: 8px; }
    .ppc .ppc-mobile--short .ck--mobile .ck-half { gap: 4px; }
    .ppc .ppc-mobile--short .ck--mobile .ck-feed { padding-bottom: 12px; }
    .ppc .ppc-mobile--short .ck--mobile .ck-send, .ppc .ppc-mobile--short .ck--mobile .ck-check__top .ck-check__ref { display: none; }
    .ppc .ppc-mobile--short .ck--mobile .ck-half--in .ck-result__what span { display: none; }
    .ppc .ppc-mobile--short .ck--mobile .ck-check__top .ck-check__from { font-size: 14px; }
    .ppc .ppc-mobile--short .ck--mobile .ck-check { gap: 4px; padding: 12px 16px 8px; }
    .ppc .ppc-mobile--short .ck--mobile .ck-check--client { padding: 8px 12px; }
    .ppc .ppc-mobile--short .ck--mobile .ck-check--client .ck-check__micr { display: none; }
    .ppc .ppc-mobile--short .ck--mobile .ck-cam { padding-block: 8px; }
    .ppc .ppc-mobile--short .ck--mobile .ck-action { min-height: 36px; }
    .ppc .ppc-mobile--short .ck--mobile .ck-result { padding-block: 4px; }
}
/* A tall phone has the room for more of each part: the signed check, the
   two photos tagged under the phone, and the check's memo line in the camera. */
@media screen and (max-width: 739px) and (min-height: 1000px) {
    .ppc .ck--mobile { gap: 24px; }
    .ppc .ck--mobile .ck-half { gap: 12px; }
    .ppc .ck--mobile .ck-half--out .ck-check__sign, .ppc .ck--mobile .ck-send--sides, .ppc .ck--mobile .ck-check--client .ck-check__sign { display: flex; }
    .ppc .ck--mobile .ck-cam { padding-block: 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .ck-action > i { transition: none; }
}
/* Checkbook on a desktop. Two equal columns, each one box wide: the heading
   and the line share the box's edges, the device stands centred in it. The
   phone is as tall as the printer with its check, so the two devices, the
   two rows of tags and the two lines sit on the same levels. Everything
   faces the reader and nothing is turned: depth is layering and shadow only
   (Chrome draws text inside a perspective soft). */
@media screen and (min-width: 1025px) {
    .ppc .ps-product .ck { grid-template-columns: repeat(2, minmax(0, 504px)); justify-content: center; align-self: center; gap: 72px; max-width: none; height: auto; }
    /* A stage with room to spare draws the whole scene larger (the printer,
       the check, the phone and their lettering together), in steps: the
       scene is 1080 x 600 at its own size. */
    @container (min-width: 1196px) and (min-height: 676px) { .ppc .ps-product .ck { zoom: 1.1; } }
    @container (min-width: 1304px) and (min-height: 736px) { .ppc .ps-product .ck { zoom: 1.2; } }
    @container (min-width: 1392px) and (min-height: 784px) { .ppc .ps-product .ck { zoom: 1.28; } }
    .ppc .ps-product .ck-half { gap: 20px; }
    .ppc .ps-product .ck-action { margin: 0; padding: 0; }
    .ppc .ps-product .ck-view { align-items: stretch; padding: 0 0 4px; }
    /* A pool of light under each device. */
    .ppc .ps-product .ck-view::before {
        position: absolute; right: 8%; bottom: 0; left: 8%; height: 32%; border-radius: 50%;
        background: radial-gradient(closest-side, rgb(74 58 30 / 20%), rgb(74 58 30 / 0%)); content: ''; pointer-events: none;
    }
    .ppc .ps-product .ck-press { display: flex; flex: 1 1 auto; flex-direction: column; width: 100%; padding: 0; }
    .ppc .ps-product .ck-press > * { flex: none; }
    .ppc .ps-product .ck-printer { filter: drop-shadow(0 24px 20px rgb(74 58 30 / 32%)); }
    /* The check: its shadow stays inside the room the feed clips to. */
    .ppc .ps-product .ck-feed { margin-bottom: -16px; padding-bottom: 32px; }
    .ppc .ps-product .ck-feed .ck-check { padding-top: 28px; box-shadow: 0 24px 16px -16px rgb(74 58 30 / 55%); }
    /* The tags: under each device, on the floor of the picture, so the two
       rows are level whichever device is the taller. */
    .ppc .ps-product .ck-send { margin-top: auto; gap: 12px; }
    .ppc .ps-product .ck-send > li { padding: 8px 16px; box-shadow: 0 16px 24px -12px rgb(74 58 30 / 50%); }
    /* The two lines: one card each, the full width of its column. */
    .ppc .ps-product .ck-result {
        position: relative; z-index: 3; padding: 12px 20px; box-sizing: border-box; border-radius: var(--border-radius-double, 22px);
        box-shadow: 0 3px 0 var(--ppc-edge, #e7e7e7), 0 32px 32px -20px rgb(74 58 30 / 50%), 0 8px 16px -8px rgb(74 58 30 / 20%);
    }
    /* The phone stands upright, as tall as the printer and its check. */
    .ppc .ps-product .ck-capture { flex: 1 1 auto; }
    .ppc .ps-product .ck-phone {
        position: relative; z-index: 2; flex: 1 0 auto; align-self: center; width: 280px; min-height: 0; margin-bottom: 16px;
        box-shadow: 0 40px 40px -24px rgb(40 32 18 / 50%), 0 16px 24px -12px rgb(40 32 18 / 30%);
    }
    /* A laptop stage: the same scene, smaller. */
    @container (max-width: 860px) {
        .ppc .ps-product .ck { gap: 32px; }
        .ppc .ps-product .ck-half { gap: 12px; }
        .ppc .ps-product .ck-send { gap: 8px; }
        .ppc .ps-product .ck-send > li { padding: 4px 12px; }
        .ppc .ps-product .ck-result { padding: 8px 16px; }
        .ppc .ps-product .ck-result > i { display: none; }
        .ppc .ps-product .ck-phone { width: 248px; }
        .ppc .ps-product .ck-cam { padding: 12px 8px; gap: 8px; }
        .ppc .ps-product .ck-phone__cta { padding: 4px 0 8px; }
        .ppc .ps-product .ck-feed .ck-check__pay .ck-check__line > small { display: none; }
    }
    /* A short stage: the camera view tightens, as the check gives up lines. */
    @container (max-height: 540px) {
        .ppc .ps-product .ck-half { gap: 12px; }
        .ppc .ps-product .ck-cam { padding: 12px 8px; gap: 8px; }
        .ppc .ps-product .ck-phone__cta { padding: 4px 0 8px; }
    }
}

/* Job Site Camera on tablets: the photo record. The cut-out crew member and
   the picture under it belong to the phone layout (feature-mobile-phone.css)
   and were showing here at their full, unstyled size. */
.pm-camera__scene { display: none; }
/* An upright tablet has the height for the photo of the crew member taking
   the picture, over the record it lands in. */
@media screen and (min-width: 740px) and (max-width: 1024px) and (orientation: portrait) {
    /* The photo and the record share one width and one centre line; the
       photo's height follows the screen's, so the pair fits without being
       drawn smaller. */
    .ppc .pm-camera { width: 100%; max-width: 760px; margin-inline: auto; }
    .ppc .ppc-panel .ppc-mobile .pm-camera .pm-shots__pair img { height: clamp(140px, 30svh - 90px, 280px); }
    .ppc .pm-camera__scene {
        display: block; width: 100%; height: clamp(180px, 40svh - 170px, 420px); margin-bottom: 16px; object-fit: cover; object-position: 62% 40%;
        border-radius: var(--border-radius-double, 22px); box-shadow: 0 24px 40px -24px rgb(40 32 18 / 45%);
    }
}
/* Time Clock & Crew Pay on a sideways tablet: a wider photo and closer rows,
   so the whole split fits beside the copy at its reading size. */
@media screen and (min-width: 740px) and (max-width: 1024px) and (max-height: 850px) {
    .ppc .cp-combo--mobile { --cp-gap: 8px; --cp-photo: 80px; }
    .ppc .cp-combo--mobile .tc-phone__shot { aspect-ratio: 1; }
    .ppc .cp-combo--mobile .tc-phone__screen { gap: 0 16px; padding: 12px; }
    .ppc .cp-combo--mobile .tc-phone__button { min-height: 44px; }
    .ppc .cp-combo--mobile .tc-pillar { padding-block: 4px; }
    .ppc .cp-split--mobile { gap: 8px; padding: 12px 16px; }
    .ppc .cp-split--mobile .cp-share { padding: 0; }
    .ppc .cp-split--mobile .cp-share__face { width: 32px; height: 32px; }
    .ppc .cp-split--mobile .cp-split__bar { height: 20px; }
    .ppc .cp-split--mobile .cp-share:is(:nth-child(3), :nth-child(4)) { display: none; }
    .ppc .cp-split--mobile .cp-split__job { align-items: center; }
    .ppc .cp-split--mobile .cp-split__title > span,
    .ppc .cp-split--mobile .cp-split__in > small { display: none; }
}

