/* =============================================================================
   public-nx.css — the public (anonymous) New Experience shell and home page.

   WHAT THIS IS
   ------------
   The public marketing pages used to run three visual languages (fantasy
   marketing, plain Bootstrap, and the app's own New Experience). This sheet is
   the one the app already speaks: the warm-paper ground, the purple accent, the
   12px card and the system sans of themes.css / campaign-new.css /
   pf2e/sheet-new.css. No new colour is introduced — every value below is a
   theme token or a tint already used by a New Experience surface.

   SCOPE
   -----
   Everything is scoped under `body.public-nx` (the anonymous shell: nav and
   footer) or `body.pnx-page` (a page redrawn to the New Experience). Pages that
   have not been redrawn yet keep their own markup and their own CSS; nothing
   here reaches them beyond the shell.

   The two are independent: /pricing, the auth pages and the invitation page are
   `pnx-page` for everybody, including a signed-in visitor who keeps today's nav
   and footer, so the TOKENS are declared on both selectors and only the shell's
   own layout overrides (the navbar offset) stay on `body.public-nx`.

   Class prefix: `pnx-`. The two exceptions are `.proof-list` and `.stat-grid`,
   which are the count containers `tools/check_marketing_counts.py` looks for by
   their exact class attribute — the names are the guard's contract, so they are
   restyled here rather than renamed.
============================================================================= */

/* =============================================================================
   1. Tokens
============================================================================= */
body.public-nx,
body.pnx-page {
    /* Ground and ink — straight from themes.css */
    --pnx-paper: var(--bg-primary);          /* #f0ede8 */
    --pnx-card: var(--bg-elevated);          /* #faf8f5 */
    --pnx-line: var(--border-light);         /* #d4cec6 */
    --pnx-hairline: #e3ddd5;                 /* NX sheet hairline (sheet-new.css) */
    --pnx-ink: var(--text-primary);          /* #2c2825 */
    --pnx-ink-2: var(--text-secondary);      /* #6b6560 */
    --pnx-ink-3: var(--text-muted);          /* #9c948c */
    --pnx-fill: var(--bg-secondary);         /* #e8e3dc — bars, avatar grounds */

    /* Accent and its tints (campaign-new.css / sheet-new.css) */
    --pnx-accent: var(--brand-primary);      /* #6b46c1 */
    --pnx-accent-ink: var(--brand-primary-hover); /* #553494 */
    --pnx-accent-wash: #f1ecfb;
    --pnx-accent-edge: #ddd0f5;

    /* The amber turn band and the crest, where the app already uses gold */
    --pnx-amber-bg: #fdf3dc;
    --pnx-amber-edge: #f0c46a;
    --pnx-amber-ink: #92400e;
    --pnx-crest-bg: #2c2825;
    --pnx-crest-ink: #e8c77a;

    --pnx-green: #0f8a5f;
    /* The app's own success pair, for the one feature card that is neither the
       accent nor the turn band (messaging). No new colour: both are themes.css. */
    --pnx-green-wash: var(--status-success-bg);  /* #d6ebe0 */
    --pnx-green-ink: var(--status-success);      /* #1a7a4a */

    --pnx-radius: 12px;
    --pnx-gutter: 80px;
    --pnx-nav-h: 64px;

    --pnx-ease: cubic-bezier(.2, .8, .2, 1);
    --pnx-ease-enter: cubic-bezier(.22, 1, .36, 1);

    background: var(--pnx-paper);
}

/* Shell only. The shell's nav is in flow (sticky), so the fixed-navbar offset
   that site.css adds to every body must go; the custom property stays correct
   for anything that measures the bar (the pricing table's sticky head). A
   signed-in visitor on a redrawn page still has the app's FIXED navbar, so this
   pair must never reach `body.pnx-page` on its own. */
body.public-nx {
    --navbar-height: 64px;
    padding-top: 0;
}

@media (max-width: 991.98px) {
    body.public-nx,
    body.pnx-page {
        --pnx-gutter: 24px;
        --pnx-nav-h: 56px;
    }

    body.public-nx {
        --navbar-height: 56px;
    }
}

@media (max-width: 575.98px) {
    body.public-nx,
    body.pnx-page {
        --pnx-gutter: 16px;
    }
}

/* A redrawn page owns its own vertical rhythm; the shared 2rem content padding
   would sit between the nav and a hero that is meant to touch it. */
body.pnx-page .main-content {
    padding: 0;
}

/* =============================================================================
   2. Primitives
============================================================================= */
.pnx-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--pnx-gutter);
    box-sizing: border-box;
}

.pnx-h2 {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--pnx-ink);
}

.pnx-lead {
    margin: 12px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--pnx-ink-2);
    max-width: 60ch;
}

.pnx-card {
    background: var(--pnx-card);
    border: 1px solid var(--pnx-line);
    border-radius: var(--pnx-radius);
    box-sizing: border-box;
}

/* A card that is itself a link lifts; one that is not never moves. */
a.pnx-card,
.pnx-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 180ms var(--pnx-ease), border-color 180ms var(--pnx-ease),
                box-shadow 180ms var(--pnx-ease);
}

@media (hover: hover) and (pointer: fine) {
    a.pnx-card:hover,
    .pnx-card--link:hover {
        transform: translateY(-2px);
        border-color: var(--border-medium);
        box-shadow: 0 10px 24px rgba(44, 40, 37, 0.10);
    }
}

/* Buttons — one family, two looks. */
.pnx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 22px;
    border-radius: var(--pnx-radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 150ms var(--pnx-ease), background-color 150ms var(--pnx-ease),
                border-color 150ms var(--pnx-ease), color 150ms var(--pnx-ease);
}

.pnx-btn--p {
    background: var(--pnx-accent);
    color: var(--pnx-card);
    border: 1px solid var(--pnx-accent);
}

.pnx-btn--t {
    background: var(--pnx-accent-wash);
    color: var(--pnx-accent-ink);
    border: 1px solid var(--pnx-accent-edge);
}

.pnx-btn--s {
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.pnx-btn--xl {
    height: 56px;
    padding: 0 28px;
    font-size: 17px;
}

@media (hover: hover) and (pointer: fine) {
    .pnx-btn:hover {
        transform: translateY(-1px);
    }

    .pnx-btn--p:hover {
        background: var(--pnx-accent-ink);
        border-color: var(--pnx-accent-ink);
        color: var(--pnx-card);
    }

    .pnx-btn--t:hover {
        background: #e8dffa;
        border-color: #cdb9f0;
        color: var(--pnx-accent-ink);
    }
}

.pnx-btn:active {
    transform: translateY(1px) scale(0.985);
}

/* Links: nav and footer words rest bare and draw a line under them. */
.pnx-nl {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: var(--pnx-ink);
    text-decoration: none;
    transition: color 150ms var(--pnx-ease);
}

.pnx-nl::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 150ms var(--pnx-ease);
}

.pnx-nl:hover,
.pnx-nl:focus-visible {
    color: var(--pnx-accent);
}

.pnx-nl:hover::after,
.pnx-nl:focus-visible::after {
    transform: scaleX(1);
}

.pnx-nl[aria-current="page"] {
    color: var(--pnx-accent-ink);
}

.pnx-nl[aria-current="page"]::after {
    height: 2px;
    background: var(--pnx-accent);
    transform: scaleX(1);
}

/* A linked photograph zooms inside its frame, and only there. */
.pnx-zoom {
    display: block;
    overflow: hidden;
}

.pnx-zoom img {
    transition: transform 600ms var(--pnx-ease);
}

@media (hover: hover) and (pointer: fine) {
    .pnx-zoom:hover img,
    a:hover .pnx-zoom img {
        transform: scale(1.03);
    }
}

body.public-nx a:focus-visible,
body.public-nx button:focus-visible,
body.pnx-page a:focus-visible,
body.pnx-page button:focus-visible,
.pnx-btn:focus-visible {
    outline: 2px solid var(--pnx-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Small parts the drawn app UI uses. */
.pnx-ui {
    font-size: 10px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--pnx-ink-2);
    font-weight: 700;
}

.pnx-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--pnx-line);
    background: var(--pnx-paper);
    font-size: 12px;
    font-weight: 600;
    color: var(--pnx-ink);
}

/* The app window: a screenshot reads as a screen, not a floating rectangle. */
.pnx-win {
    background: var(--pnx-card);
    border: 1px solid var(--pnx-line);
    border-radius: var(--pnx-radius);
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(44, 40, 37, 0.05);
}

.pnx-win__bar {
    height: 40px;
    border-bottom: 1px solid var(--pnx-hairline);
    background: var(--pnx-paper);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 7px;
}

.pnx-win__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--pnx-line);
}

.pnx-win__name {
    margin-left: 12px;
    font-size: 12px;
    color: var(--pnx-ink-2);
}

.pnx-win__img {
    display: block;
    width: 100%;
    height: auto;
}

/* =============================================================================
   3. The shell — nav
============================================================================= */
.pnx-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--pnx-nav-h);
    border-bottom: 1px solid var(--pnx-line);
    background: var(--pnx-paper);
}

.pnx-nav__bar {
    height: var(--pnx-nav-h);
    display: flex;
    align-items: center;
    gap: 24px;
}

.pnx-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--pnx-ink);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pnx-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--pnx-crest-bg);
    color: var(--pnx-crest-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.pnx-nav__links {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 28px;
}

.pnx-nav__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pnx-nav__toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--pnx-line);
    background: var(--pnx-card);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--pnx-ink);
}

.pnx-nav__panel {
    border-bottom: 1px solid var(--pnx-line);
    background: var(--pnx-paper);
}

.pnx-nav__panel .pnx-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 8px;
    padding-bottom: 14px;
}

.pnx-nav__panel a.pnx-nl {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.pnx-nav__panel .pnx-btn {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 991.98px) {
    .pnx-nav__links,
    .pnx-nav__right {
        display: none;
    }

    .pnx-nav__toggle {
        display: flex;
    }

    .pnx-brand {
        font-size: 16px;
    }

    .pnx-mark {
        width: 28px;
        height: 28px;
    }
}

@media (min-width: 992px) {
    .pnx-nav__panel {
        display: none !important;
    }
}

/* =============================================================================
   4. The shell — footer
============================================================================= */
.pnx-footer {
    border-top: 1px solid var(--pnx-line);
    background: var(--pnx-card);
    padding: 36px 0 30px;
    margin-top: auto;
}

.pnx-footer__cols {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.pnx-footer__brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    color: var(--pnx-ink);
}

.pnx-footer__brand .pnx-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
}

.pnx-footer__year {
    font-size: 12px;
    font-weight: 400;
    color: var(--pnx-ink-3);
}

.pnx-footer__legal {
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--pnx-ink-3);
    max-width: 34ch;
}

.pnx-fcol h2 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pnx-ink);
}

.pnx-fcol a {
    position: relative;
    display: block;
    width: fit-content;
    margin-bottom: 9px;
    font-size: 14px;
    color: var(--pnx-ink-2);
    text-decoration: none;
    transition: color 150ms var(--pnx-ease);
}

.pnx-fcol a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 150ms var(--pnx-ease);
}

.pnx-fcol a:hover,
.pnx-fcol a:focus-visible {
    color: var(--pnx-accent);
}

.pnx-fcol a:hover::after,
.pnx-fcol a:focus-visible::after {
    transform: scaleX(1);
}

@media (max-width: 767.98px) {
    /* Board B: the links in two columns reading across, then the legal line.
       `display: contents` lifts every link out of its column so the grid can lay
       them out as one run; the headings are already hidden, so they leave the
       box tree with their column. */
    .pnx-footer__cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 10px;
    }

    .pnx-fcol {
        display: contents;
    }

    .pnx-footer__about {
        order: 2;
        grid-column: 1 / -1;
        margin-top: 14px;
    }

    .pnx-fcol h2 {
        display: none;
    }

    .pnx-fcol a {
        display: flex;
        align-items: center;
        min-height: 44px;
        margin-bottom: 0;
        font-size: 14px;
    }

    .pnx-footer__legal {
        max-width: none;
        font-size: 12px;
    }
}

/* =============================================================================
   5. Home — hero
============================================================================= */
.pnx-hero {
    position: relative;
    height: max(720px, calc(100vh - var(--pnx-nav-h)));
    overflow: hidden;
}

.pnx-hero__copy {
    padding-top: 56px;
    text-align: center;
}

.pnx-hero__title {
    margin: 16px auto 0;
    max-width: 640px;
    font-family: var(--font-primary);
    font-size: 72px;
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: -0.035em;
    color: var(--pnx-ink);
}

.pnx-hero__lead {
    margin: 16px auto 0;
    max-width: 620px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--pnx-ink-2);
}

.pnx-hero__actions {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pnx-hero__note {
    margin: 18px 0 0;
    font-size: 14px;
    color: var(--pnx-ink-3);
}

/* The sheet rising out of the hero's foot, its last 18% fading into the ground. */
.pnx-hero__stage {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 300px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 82%, transparent);
    mask-image: linear-gradient(#000 82%, transparent);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.pnx-hero__win {
    width: 880px;
    max-width: calc(100% - 2 * var(--pnx-gutter));
    margin: 0 auto;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -1px 0 var(--pnx-line), 0 18px 40px rgba(44, 40, 37, 0.10);
}

.pnx-hero__win .pnx-win__bar {
    height: 38px;
}

/* =============================================================================
   6. Home — sections
============================================================================= */
.pnx-s {
    padding: 0 0 84px;
}

.pnx-s--first {
    padding-top: 92px;
}

.pnx-s--statement {
    /* Pulled up tight under the plan comparison table: the statement is that
       table's conclusion, not a section standing on its own. */
    padding-top: 8px;
    padding-bottom: 96px;
}

.pnx-s--initiative {
    padding-bottom: 88px;
}

.pnx-s__win {
    margin-top: 28px;
}

/* The figures row — merged into the section above it, no ground of its own.
   `.proof-list` is the class tools/check_marketing_counts.py matches on. */
body.pnx-page .proof-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    margin: 72px 0 0;
    text-align: left;
}

body.pnx-page .proof-list dt {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--pnx-ink);
}

body.pnx-page .proof-list dd {
    margin: 2px 0 0;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--pnx-ink-2);
}

.pnx-figs__note {
    margin: 16px 0 0;
    font-size: 15px;
    color: var(--pnx-ink-2);
}

/* Both editions */
.pnx-eds {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.pnx-ed {
    padding: 24px 26px;
}

.pnx-ed__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pnx-ed__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    background: var(--pnx-accent-wash);
    color: var(--pnx-accent);
}

.pnx-ed--pf2e .pnx-ed__icon {
    background: var(--pnx-amber-bg);
    color: var(--pnx-amber-ink);
}

.pnx-ed h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    color: var(--pnx-ink);
}

.pnx-ed__copy {
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--pnx-ink);
}

/* The per-system counts. `.stat-grid` is the guard's container: the figures are
   dt/dd pairs so check_marketing_counts.py can read them, set as one running
   line so the card reads as the board draws it. */
body.pnx-page .stat-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 0;
    margin: 16px 0 0;
}

body.pnx-page .stat-grid > div {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    text-align: left;
    white-space: nowrap;
}

/* The separator trails its own figure, so a wrapped line never opens with a
   stray middot. */
body.pnx-page .stat-grid > div:not(:last-child)::after {
    content: "·";
    color: var(--pnx-line);
    margin: 0 9px 0 4px;
}

body.pnx-page .stat-grid dt {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--pnx-ink);
    font-variant-numeric: tabular-nums;
}

body.pnx-page .stat-grid dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
    color: var(--pnx-ink-2);
}

.pnx-ed__note {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--pnx-ink);
}

/* The statement (word-highlight) */
.pnx-statement {
    margin: 0;
    max-width: 980px;
    font-family: var(--font-primary);
    font-size: 50px;
    line-height: 1.16;
    font-weight: 500;
    letter-spacing: -0.025em;
    color: var(--pnx-ink);
}

.pnx-statement .pnx-w {
    color: rgba(44, 40, 37, 0.28);
    transition: color 160ms var(--pnx-ease);
}

.pnx-statement .pnx-w.is-on {
    color: var(--pnx-ink);
}

.pnx-statement strong {
    font-weight: inherit;
    color: var(--pnx-accent);
}

.pnx-statement strong .pnx-w,
.pnx-statement strong .pnx-w.is-on {
    color: var(--pnx-accent);
}

/* Campaign + initiative */
.pnx-s__note {
    margin: 20px 0 0;
    font-size: 16px;
    color: var(--pnx-ink-2);
    max-width: 62ch;
}

.pnx-split {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.pnx-side {
    padding: 18px 20px;
}

.pnx-side__copy {
    margin: 10px 0 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--pnx-ink);
}

.pnx-side__win {
    margin-top: 12px;
    border-radius: 10px;
}

/* The close (close-word) */
.pnx-close {
    border-top: 1px solid var(--pnx-line);
    padding: 72px 0 0;
}

.pnx-close__row {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
}

.pnx-close__copy {
    flex: 1;
    min-width: 380px;
}

.pnx-close__copy .pnx-h2 {
    font-size: 40px;
}

.pnx-close__word {
    margin-top: 40px;
    font-size: clamp(52px, 10.4vw, 150px);
    line-height: 0.86;
    font-weight: 600;
    letter-spacing: -0.045em;
    color: var(--pnx-ink);
    opacity: 0.1;
    white-space: nowrap;
    user-select: none;
}

/* The phone action bar — one action, kept off the first screen. */
.pnx-actionbar {
    display: none;
}

@media (max-width: 767.98px) {
    .pnx-actionbar {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1020;
        border-top: 1px solid var(--pnx-line);
        background: var(--pnx-card);
        padding: 10px 16px 14px;
        box-sizing: border-box;
        box-shadow: 0 -6px 18px rgba(44, 40, 37, 0.08);
        transform: translateY(110%);
        transition: transform 200ms var(--pnx-ease);
    }

    .pnx-actionbar.is-on {
        transform: none;
    }

    .pnx-actionbar .pnx-btn {
        width: 100%;
        height: 50px;
    }

    /* Nothing of the page ever lies under the bar — on every page that has
       one, not just the home page it was first written for. */
    body:has(.pnx-actionbar) {
        padding-bottom: 76px;
    }
}

/* =============================================================================
   7. Small screens
============================================================================= */
@media (max-width: 991.98px) {
    .pnx-hero__title {
        font-size: 56px;
    }

    .pnx-eds,
    .pnx-split {
        grid-template-columns: minmax(0, 1fr);
    }

    body.pnx-page .proof-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .pnx-hero {
        height: max(640px, calc(100vh - var(--pnx-nav-h)));
    }

    .pnx-hero__copy {
        padding-top: 26px;
        text-align: left;
    }

    .pnx-hero__title {
        margin: 0;
        max-width: none;
        font-size: 42px;
        line-height: 1.04;
        letter-spacing: -0.03em;
    }

    .pnx-hero__lead {
        margin: 12px 0 0;
        max-width: none;
        font-size: 16px;
        line-height: 1.55;
    }

    .pnx-hero__actions {
        margin-top: 18px;
        flex-direction: column;
        gap: 10px;
    }

    .pnx-hero__actions .pnx-btn {
        width: 100%;
        height: 50px;
    }

    .pnx-hero__note {
        margin: 14px 0 0;
        font-size: 13px;
        line-height: 1.5;
    }

    .pnx-hero__win {
        width: 342px;
        max-width: calc(100% - 2 * var(--pnx-gutter));
        border-radius: 12px 12px 0 0;
        box-shadow: 0 14px 30px rgba(44, 40, 37, 0.10);
    }

    .pnx-hero__win .pnx-win__bar {
        height: 32px;
        padding: 0 12px;
    }

    .pnx-hero__win .pnx-win__dot {
        display: none;
    }

    .pnx-hero__win .pnx-win__name {
        margin-left: 0;
        font-size: 11.5px;
    }

    .pnx-s {
        padding: 0 0 48px;
    }

    .pnx-s--first {
        padding-top: 48px;
    }

    .pnx-s--statement,
    .pnx-s--initiative {
        padding-bottom: 48px;
    }

    .pnx-h2 {
        font-size: 25px;
        line-height: 1.18;
    }

    .pnx-lead {
        margin: 10px 0 0;
        font-size: 15.5px;
    }

    .pnx-s__win,
    .pnx-eds,
    .pnx-split {
        margin-top: 18px;
    }

    .pnx-win__bar {
        height: 34px;
        padding: 0 12px;
    }

    /* A desktop screenshot shrunk to 342px is a picture of an app, not a
       readable one (inventory.md F44 says exactly that about today's page). On a
       phone the frame becomes a real window instead: the shot is drawn at a size
       its own type can be read at and the window shows the part that carries the
       section — the character and the ribbon, the armour-class breakdown, the
       campaign's counters, the turn order. --pnx-img-w is the drawn width and
       --pnx-img-x the part it starts at; the `sizes` attribute on each image
       names the same width, so the srcset still picks the right file. */
    .pnx-win__img {
        width: var(--pnx-img-w, 100%);
        max-width: none;
        margin-left: var(--pnx-img-x, 0);
    }

    .pnx-hero__win {
        --pnx-img-w: 1100px;
        --pnx-img-x: -180px;   /* past the sheet's own left nav, onto the character */
    }

    .pnx-s--first .pnx-win {
        --pnx-img-w: 760px;
        --pnx-img-x: -120px;
    }

    .pnx-s--campaign .pnx-win {
        --pnx-img-w: 760px;
        --pnx-img-x: -120px;
    }

    .pnx-s--initiative .pnx-split > .pnx-win {
        --pnx-img-w: 760px;
        --pnx-img-x: -230px;
    }

    .pnx-side__win {
        --pnx-img-w: 620px;
        --pnx-img-x: -40px;
    }

    .pnx-win__dot {
        display: none;
    }

    .pnx-win__name {
        margin-left: 0;
        font-size: 11.5px;
    }

    /* The figures: one per row, so none is orphaned. */
    body.pnx-page .proof-list {
        display: block;
        margin: 34px 0 0;
    }

    body.pnx-page .proof-list > div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        padding: 11px 0;
        border-top: 1px solid var(--pnx-line);
    }

    body.pnx-page .proof-list > div:first-child {
        border-top: 0;
    }

    body.pnx-page .proof-list dt {
        font-size: 28px;
    }

    body.pnx-page .proof-list dd {
        margin: 0;
        font-size: 14px;
    }

    .pnx-figs__note {
        margin: 14px 0 0;
        font-size: 14px;
        line-height: 1.55;
    }

    .pnx-ed {
        padding: 18px;
    }

    .pnx-ed h3 {
        font-size: 18px;
    }

    .pnx-ed__copy {
        margin: 10px 0 0;
        font-size: 14.5px;
        line-height: 1.55;
    }

    body.pnx-page .stat-grid dt,
    body.pnx-page .stat-grid dd {
        font-size: 14.5px;
    }

    .pnx-ed__note {
        font-size: 14.5px;
    }

    .pnx-statement {
        font-size: 30px;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .pnx-s__note {
        margin: 16px 0 0;
        font-size: 14.5px;
        line-height: 1.55;
    }

    .pnx-close {
        padding-top: 52px;
    }

    .pnx-close__row {
        display: block;
    }

    .pnx-close__copy {
        min-width: 0;
    }

    .pnx-close__copy .pnx-h2 {
        font-size: 28px;
    }

    .pnx-close .pnx-btn {
        width: 100%;
        margin-top: 18px;
    }

    .pnx-close__word {
        margin-top: 28px;
        line-height: 0.9;
        letter-spacing: -0.04em;
    }

    .pnx-footer {
        padding: 22px 0 20px;
    }
}

/* =============================================================================
   8. Motion — the hero's entrance and the four dealt moments

   Content is readable at rest, without script and under reduced motion: the
   motion layer only ever adds to a page that is already whole.
============================================================================= */

/* Before public-nx.js takes over (and for 700ms at most) the hero's words wait
   rather than flash. Without script, in print and under reduced motion the hero
   stands as written.

   The selectors name `[data-pnx-enter]`, not `.pnx-hero`: the home page's hero
   is a full screen with a window hanging off its foot, the pricing, auth and
   invitation pages open with a compact one, and all four enter the same way. */
html.pnx-enter:not(.pnx-enter-done) [data-pnx-enter] .pnx-enter-item {
    opacity: 0;
}

[data-pnx-enter] .pnx-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    /* room for descenders, so the mask never clips a letter */
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

[data-pnx-enter] .pnx-word > span {
    display: inline-block;
    will-change: transform;
}

[data-pnx-enter].is-entering .pnx-word > span {
    transform: translateY(105%);
}

/* public-nx.js puts pnx-line-in on the WORDS of a line, so the class is on the
   mask itself — not on an ancestor of it. */
[data-pnx-enter].is-entering .pnx-word.pnx-line-in > span {
    transform: none;
    transition: transform 700ms var(--pnx-ease-enter);
}

[data-pnx-enter].is-entering .pnx-enter-item {
    opacity: 0;
    transform: translateY(12px);
}

[data-pnx-enter].is-entering .pnx-enter-item.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 520ms var(--pnx-ease-enter), transform 520ms var(--pnx-ease-enter);
}

/* The window is never hidden: it settles from .98 as one block. */
[data-pnx-enter].is-entering .pnx-hero__win {
    transform: scale(0.98);
    transform-origin: 50% 100%;
}

[data-pnx-enter].is-entering.is-stage-in .pnx-hero__win {
    transform: none;
    transition: transform 900ms var(--pnx-ease-enter);
}

/* cursor-spotlight: a soft light on the hero's ground follows the pointer and
   drifts back to its resting spot. CSS gradients, no canvas. */
.pnx-spot {
    --pnx-x: 50%;
    --pnx-y: 34%;
    --pnx-r: 420px;
    position: relative;
    isolation: isolate;
}

/* The hero's stage is already positioned (it hangs off the hero's foot); the
   moment's own `position: relative` must not reset it — it did, and the window
   dropped into the flow and covered the hero's last line. */
.pnx-hero__stage.pnx-spot {
    position: absolute;
}

.pnx-spot__light {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(var(--pnx-r) circle at var(--pnx-x) var(--pnx-y),
                rgba(250, 248, 245, 0.92), transparent 72%);
}

.pnx-spot__light::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(44, 40, 37, 0.22) 1px, transparent 1.6px);
    background-size: 24px 24px;
    background-position: 12px 12px;
    -webkit-mask-image: radial-gradient(calc(var(--pnx-r) * 0.9) circle at var(--pnx-x) var(--pnx-y), #000, transparent 72%);
    mask-image: radial-gradient(calc(var(--pnx-r) * 0.9) circle at var(--pnx-x) var(--pnx-y), #000, transparent 72%);
}

.pnx-spot > :not(.pnx-spot__light) {
    position: relative;
    z-index: 1;
}

/* counter-rolls: each digit becomes a column one line tall clipping a strip of
   digits, moved by transform only. The strip starts and ends on the digit that
   is written in the HTML, so the figure on screen is always the authored one —
   the guard's number, never a zero. public-nx.js builds these; without it the
   dt is plain text. */
.pnx-cr {
    display: inline-flex;
    align-items: baseline;
    white-space: pre;
}

.pnx-cr__col {
    display: inline-block;
    /* One LINE tall, not one em: a column shorter than the figure's own line
       box would shrink the row by 4px the moment the script ran. public-nx.js
       moves the strip by 11em a turn to match (10 cells of 1.1em). */
    height: 1.1em;
    line-height: 1.1;
    overflow: hidden;
    vertical-align: top;
    font-variant-numeric: tabular-nums;
}

.pnx-cr__strip {
    display: block;
    will-change: transform;
}

.pnx-cr__strip > span {
    display: block;
    height: 1.1em;
    line-height: 1.1;
}

/* The figure in words, for a screen reader: off the screen, never off the
   accessibility tree (the digit columns beside it are aria-hidden). */
.pnx-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* The comma between the digits keeps its own width, not a digit's. */
.pnx-cr__ch {
    display: inline-block;
    line-height: 1;
    white-space: pre;
    font-variant-numeric: normal;
}

/* letters-assemble: /pricing's statement. Readable at rest — without script,
   under reduced motion and on a phone the line simply stands; public-nx.js
   splits it into words and letters and scrubs them into place as the line
   rises through the screen. */
.pnx-la {
    margin: 0;
    text-align: center;
    font-family: var(--font-primary);
    font-size: clamp(44px, 6vw, 84px);
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--pnx-ink);
}

.pnx-la.is-live {
    overflow-x: clip;
}

.pnx-la.is-live .pnx-lw {
    display: inline-block;
    white-space: nowrap;
}

.pnx-la.is-live .pnx-lc {
    display: inline-block;
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    body.public-nx *,
    body.public-nx *::before,
    body.public-nx *::after,
    body.pnx-page *,
    body.pnx-page *::before,
    body.pnx-page *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    [data-pnx-enter].is-entering .pnx-word > span,
    [data-pnx-enter].is-entering .pnx-hero__win {
        transform: none;
    }

    [data-pnx-enter].is-entering .pnx-enter-item {
        opacity: 1;
        transform: none;
    }

    /* Nothing is ever hidden waiting for a script that will not animate it:
       the head script's hold is lifted here, not 700ms later. */
    html.pnx-enter:not(.pnx-enter-done) [data-pnx-enter] .pnx-enter-item {
        opacity: 1;
    }

    .pnx-statement .pnx-w {
        color: var(--pnx-ink);
    }

    .pnx-la .pnx-lc {
        transform: none !important;
        opacity: 1 !important;
    }

    .pnx-actionbar {
        transform: none;
    }
}

@media print {
    .pnx-nav,
    .pnx-actionbar {
        display: none !important;
    }

    html.pnx-enter:not(.pnx-enter-done) [data-pnx-enter] .pnx-enter-item,
    [data-pnx-enter].is-entering .pnx-enter-item {
        opacity: 1;
        transform: none;
    }

    .pnx-statement .pnx-w {
        color: var(--pnx-ink);
    }

    .pnx-hero {
        height: auto;
    }

    .pnx-hero__stage {
        position: static;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* =============================================================================
   9. The page hero

   The compact hero every redrawn page but the home page opens with: /features,
   the six feature pages, /pricing, sign in / create an account and the
   invitation page. Not the home page's full-screen hero (section 5) — these
   pages start their own content under the fold, so the hero is one block of
   copy and the page follows it.

   M2 and M3 each drew one of these, so one block carries both: the only things
   that change between pages are the vertical rhythm, the title's scale and the
   lead's measure, all measured off the owner's boards.

     --centred   /features             board C: centred copy, 84/72, 62px title
     --split     /features/{slug}      board D: copy beside a window, 56/64, 56px
     --pricing   /pricing              board E: copy only, 68/36, 56px
     --auth      sign in / create      board F: copy only, 52/64, 44px
     --invite    /early-access         board G: copy only, 52/64, 52px

   The last three hold the page's own content inside the section (the two auth
   cards, the invitation form), which is what their deeper foot pays for. Every
   variant carries a modifier: the bare block declares no rhythm of its own.

   The entrance is section 8's: the section carries `data-pnx-enter`, the h1
   `data-pnx-title`, and everything that fades up `pnx-enter-item`.
============================================================================= */
.pnx-phero--centred {
    padding: 84px 0 72px;
}

.pnx-phero--split {
    padding: 56px 0 64px;
}

.pnx-phero--pricing {
    padding: 68px 0 36px;
}

.pnx-phero--auth,
.pnx-phero--invite {
    padding: 52px 0 64px;
}

/* ---- The copy ------------------------------------------------------------ */
.pnx-phero__copy {
    text-align: left;
}

.pnx-phero--centred .pnx-phero__copy {
    text-align: center;
}

.pnx-phero__title {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 56px;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--pnx-ink);
}

.pnx-phero--centred .pnx-phero__title {
    margin: 0 auto;
    max-width: 900px;
    font-size: 62px;
    letter-spacing: -0.035em;
}

.pnx-phero--split .pnx-phero__title {
    margin-top: 16px;
}

.pnx-phero--auth .pnx-phero__title {
    font-size: 44px;
    line-height: 1.08;
}

.pnx-phero--invite .pnx-phero__title {
    font-size: 52px;
}

.pnx-phero__lead {
    margin: 16px 0 0;
    max-width: 62ch;
    font-size: 18px;
    line-height: 1.6;
    color: var(--pnx-ink-2);
}

.pnx-phero--centred .pnx-phero__lead {
    margin: 18px auto 0;
    max-width: 620px;
    font-size: 19px;
    line-height: 1.55;
}

.pnx-phero--pricing .pnx-phero__lead {
    margin-top: 12px;
    max-width: 66ch;
}

.pnx-phero--auth .pnx-phero__lead {
    margin-top: 12px;
    max-width: 70ch;
    font-size: 17px;
}

.pnx-phero--invite .pnx-phero__lead {
    margin-top: 14px;
    max-width: 70ch;
}

.pnx-phero__actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pnx-phero--centred .pnx-phero__actions {
    margin-top: 26px;
    justify-content: center;
}

.pnx-phero__chips {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---- The split variant's window ------------------------------------------ */
.pnx-phero__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: center;
}

.pnx-phero__win {
    box-shadow: 0 18px 40px rgba(44, 40, 37, 0.10);
}

.pnx-phero__win .pnx-win__bar {
    height: 38px;
}

/* ---- The hero on a small screen ------------------------------------------
   A modifier that sets the title's size on a wide screen must be named again
   here, or its own rule outranks the breakpoint's. */
@media (max-width: 991.98px) {
    .pnx-phero__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .pnx-phero__title {
        font-size: 44px;
    }

    .pnx-phero--centred .pnx-phero__title {
        font-size: 48px;
    }

    .pnx-phero--invite .pnx-phero__title {
        font-size: 40px;
    }
}

@media (max-width: 767.98px) {
    .pnx-phero--centred {
        padding: 40px 0 36px;
    }

    .pnx-phero--split {
        padding: 28px 0 36px;
    }

    .pnx-phero--pricing {
        padding: 34px 0 26px;
    }

    .pnx-phero--auth,
    .pnx-phero--invite {
        padding: 30px 0 40px;
    }

    /* The centred hero reads from the left on a phone, like every other page. */
    .pnx-phero--centred .pnx-phero__copy {
        text-align: left;
    }

    .pnx-phero__title,
    .pnx-phero--centred .pnx-phero__title {
        margin: 0;
        max-width: none;
        font-size: 34px;
        line-height: 1.08;
        letter-spacing: -0.03em;
    }

    /* 34px — the size M2's CSS always read as intending, and which the owner
       confirmed (decisions.md MG-2, resolved in M4). Until then a detail page's
       phone title rendered at 44px, because M2's own `--split` rule at the 991
       breakpoint outranked the 34px here; the modifier is named explicitly so the
       cascade cannot take it back. Board D's 390 screenshots were shot at 44px
       and are superseded by nx-m4-feat-*-390.png. */
    .pnx-phero--split .pnx-phero__title {
        margin-top: 12px;
        font-size: 34px;
    }

    .pnx-phero--pricing .pnx-phero__title {
        line-height: 1.1;
    }

    .pnx-phero--auth .pnx-phero__title {
        font-size: 30px;
        line-height: 1.08;
    }

    .pnx-phero--invite .pnx-phero__title {
        font-size: 32px;
        line-height: 1.05;
    }

    .pnx-phero--centred .pnx-phero__lead,
    .pnx-phero--split .pnx-phero__lead {
        margin: 12px 0 0;
        max-width: none;
        font-size: 16px;
        line-height: 1.55;
    }

    .pnx-phero--pricing .pnx-phero__lead {
        margin-top: 10px;
        font-size: 15.5px;
    }

    .pnx-phero--auth .pnx-phero__lead {
        margin-top: 10px;
    }

    .pnx-phero--invite .pnx-phero__lead {
        font-size: 15.5px;
    }

    .pnx-phero__actions,
    .pnx-phero--centred .pnx-phero__actions {
        margin-top: 18px;
        flex-direction: column;
        gap: 10px;
        justify-content: flex-start;
    }

    .pnx-phero__actions .pnx-btn {
        width: 100%;
        height: 50px;
    }

    .pnx-phero__chips {
        margin-top: 16px;
        gap: 8px;
    }

    /* The window shows the part of the screen the hero is about, at a size its
       own type can be read at (M1-10). The sizes attribute on the image names
       the same 760px, so the srcset still picks the right file. */
    .pnx-phero__win {
        --pnx-img-w: 760px;
        --pnx-img-x: -120px;
    }

    .pnx-phero__win .pnx-win__bar {
        height: 34px;
    }
}

/* =============================================================================
   10. /features and /features/{slug}  (M2 — boards C and D)

   Two page shapes share one set of parts: the page hero of section 9 (centred
   on the index, split on a detail page), the catalogue card, the highlight
   band, the copy/screenshot block and the copy-only point card. Everything is
   built from the primitives in section 2 — .pnx-card, .pnx-btn, .pnx-win,
   .pnx-chip — so these pages carry no card, button or window of their own.
============================================================================= */
/* The breadcrumb: one step back to the index, no ornament. */
.pnx-crumb {
    font-size: 13.5px;
    color: var(--pnx-ink-2);
}

.pnx-crumb a {
    color: var(--pnx-accent-ink);
    text-decoration: none;
}

.pnx-crumb a:hover {
    color: var(--pnx-accent);
    text-decoration: underline;
}

.pnx-crumb__sep {
    margin: 0 8px;
    color: var(--pnx-ink-3);
}

/* ---- The catalogue card --------------------------------------------------
   The whole card is the link (board C draws no "Read more"), so the lift in
   section 2 is the affordance. */
.pnx-fgrid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pnx-fgrid--s {
    margin-top: 20px;
}

.pnx-fcard {
    padding: 24px 26px;
}

.pnx-fcard__ic {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.pnx-fcard__ic--accent {
    background: var(--pnx-accent-wash);
    color: var(--pnx-accent);
}

.pnx-fcard__ic--amber {
    background: var(--pnx-amber-bg);
    color: var(--pnx-amber-ink);
}

.pnx-fcard__ic--green {
    background: var(--pnx-green-wash);
    color: var(--pnx-green-ink);
}

.pnx-fcard h2,
.pnx-fcard h3 {
    margin: 14px 0 0;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--pnx-ink);
}

.pnx-fcard p {
    margin: 9px 0 0;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--pnx-ink-2);
}

.pnx-fcard--s {
    padding: 20px 22px;
}

.pnx-fcard--s .pnx-fcard__ic {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 15px;
}

.pnx-fcard--s h3 {
    margin: 12px 0 0;
    font-size: 18px;
}

.pnx-fcard--s p {
    margin: 8px 0 0;
    font-size: 14.5px;
    line-height: 1.5;
}

/* ---- The figures band (board C) -----------------------------------------
   The same guarded container the home page uses; here it opens the band under
   the cards, so it takes a rule of its own rather than the home page's 72px of
   air. The phone layout in section 7 stays in charge below 768. */
.pnx-s--figs {
    padding: 0 0 76px;
}

@media (min-width: 768px) {
    body.pnx-page.pnx-features .proof-list {
        margin: 0;
        padding-top: 40px;
        border-top: 1px solid var(--pnx-line);
    }

    body.pnx-page.pnx-features .proof-list dt {
        font-size: 42px;
        letter-spacing: -0.025em;
    }
}

/* ---- The per-system counts as rows (board C) -----------------------------
   The home page sets .stat-grid as one running line; on this page the board
   draws a two-column table. Same guarded dt/dd pairs, read as label then
   figure: the dd carries the label and is ordered first, the dt the number. */
body.pnx-page .stat-grid.pnx-rows {
    display: block;
    margin: 16px 0 0;
}

body.pnx-page .stat-grid.pnx-rows > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-top: 1px solid var(--pnx-hairline);
    white-space: normal;
}

body.pnx-page .stat-grid.pnx-rows > div::after {
    content: none;
}

body.pnx-page .stat-grid.pnx-rows dd {
    order: -1;
    font-size: 15px;
    color: var(--pnx-ink);
}

body.pnx-page .stat-grid.pnx-rows dt {
    font-size: 15px;
    font-weight: 700;
}

/* ---- The highlight band (board D) ---------------------------------------- */
.pnx-band {
    border-top: 1px solid var(--pnx-line);
    border-bottom: 1px solid var(--pnx-line);
    background: var(--pnx-card);
    padding: 20px 0;
}

.pnx-band__row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 36px;
    margin: 0;
    list-style: none;
}

.pnx-hl {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--pnx-ink);
}

.pnx-hl svg {
    flex: none;
    color: var(--pnx-green);
}

/* ---- A copy block beside the screen it describes ------------------------- */
.pnx-s--blocks {
    padding: 0;
}

.pnx-fblock {
    margin-top: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
}

/* The screenshot changes sides, and only on a wide screen: stacked, the copy
   always comes first. The wider column follows the window across, so a reversed
   block is the mirror of its neighbour rather than a narrower screenshot. */
.pnx-fblock--rev {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.pnx-fblock--rev .pnx-fblock__copy {
    order: 2;
}

.pnx-h2--s {
    font-size: 30px;
    line-height: 1.18;
}

.pnx-bd {
    margin: 12px 0 0;
    font-size: 17px;
    line-height: 1.62;
    color: var(--pnx-ink-2);
    max-width: 62ch;
}

.pnx-bul {
    margin: 16px 0 0;
    padding-left: 18px;
}

.pnx-bul li {
    margin: 0 0 8px;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--pnx-ink);
}

.pnx-bul li::marker {
    color: var(--pnx-ink-3);
}

/* ---- Copy-only sections --------------------------------------------------
   A run of catalogue sections with no screenshot, in the catalogue's own order,
   two to a row rather than several lonely paragraphs across 1120px. */
/* auto-fit, so a run of one, two or three fills its row rather than leaving an
   orphan beside a gap: one card takes the width, two halve it, three third it.
   The catalogue's longest run today is three. */
.pnx-points {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.pnx-point {
    padding: 24px 26px;
}

.pnx-point h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--pnx-ink);
}

.pnx-point p {
    margin: 10px 0 0;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--pnx-ink-2);
}

.pnx-point .pnx-bul {
    margin-top: 12px;
}

.pnx-point .pnx-bul li {
    font-size: 15px;
}

/* ---- The related pages --------------------------------------------------- */
.pnx-s--rel {
    padding: 72px 0 0;
}

/* =============================================================================
   11. /features and /features/{slug} on a small screen

   No board was drawn at 390 for these two; they follow the home page's phone
   patterns (M1-10): one column, the actions full width, and a screenshot drawn
   at a size its own type can be read at rather than scaled to 358px. The
   hero's own small-screen rules are in section 9, with the rest of it, and the
   clearance for the phone's action bar is in section 7.
============================================================================= */
@media (max-width: 991.98px) {
    .pnx-fblock,
    .pnx-fblock--rev,
    .pnx-points {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .pnx-fblock--rev .pnx-fblock__copy {
        order: 0;
    }

    .pnx-fgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .pnx-fgrid {
        margin-top: 28px;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .pnx-fcard,
    .pnx-point {
        padding: 18px;
    }

    .pnx-fcard h2,
    .pnx-fcard h3,
    .pnx-point h2 {
        margin-top: 12px;
        font-size: 18px;
    }

    .pnx-fcard p,
    .pnx-point p {
        font-size: 14.5px;
    }

    .pnx-s--figs {
        padding: 0 0 44px;
    }

    .pnx-band {
        padding: 14px 0;
    }

    .pnx-band__row {
        gap: 10px 20px;
    }

    .pnx-hl {
        font-size: 14px;
        gap: 8px;
    }

    .pnx-fblock,
    .pnx-points {
        margin-top: 44px;
        gap: 18px;
    }

    .pnx-h2--s {
        font-size: 25px;
    }

    .pnx-bd {
        margin: 10px 0 0;
        font-size: 15.5px;
        line-height: 1.55;
    }

    .pnx-bul li {
        font-size: 14.5px;
    }

    .pnx-s--rel {
        padding-top: 48px;
    }

    /* The window shows the part of the screen the block is about, at a size its
       own type can be read at (M1-10). The sizes attribute on each image names
       the same 760px, so the srcset still picks the right file. */
    .pnx-fblock__win {
        --pnx-img-w: 760px;
        --pnx-img-x: -120px;
    }
}

/* =============================================================================
   12. Forms — the one field family (auth and the invitation form)

   The real forms keep their ids, names, posts and validation; only the look
   changes, so these classes sit where Bootstrap's `form-control` used to.
   jQuery-unobtrusive adds `input-validation-error` / `field-validation-error`
   to the same elements, which is why both are styled here.
============================================================================= */
.pnx-fg {
    margin-bottom: 16px;
}

.pnx-fl {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pnx-ink);
    margin-bottom: 6px;
}

.pnx-fi {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    background: var(--input-bg);
    padding: 0 12px;
    font-size: 15px;
    font-family: var(--font-primary);
    color: var(--pnx-ink);
    box-sizing: border-box;
    transition: border-color 150ms var(--pnx-ease), box-shadow 150ms var(--pnx-ease);
}

textarea.pnx-fi {
    height: 104px;
    padding: 11px 12px;
    line-height: 1.5;
    resize: vertical;
}

.pnx-fi:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--input-focus-shadow);
}

.pnx-fi[readonly] {
    background: var(--pnx-fill);
    color: var(--pnx-ink-2);
}

.pnx-fi.input-validation-error {
    border-color: var(--status-danger);
}

.pnx-fh {
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--pnx-ink-2);
}

/* The field's own error, under the field it belongs to. */
.pnx-fe {
    display: block;
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--status-danger);
}

.pnx-fe:empty {
    display: none;
}

/* A password field and its reveal. */
.pnx-fwrap {
    position: relative;
}

.pnx-fwrap .pnx-fi {
    padding-right: 76px;
}

.pnx-rv {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    background: var(--pnx-paper);
    font-size: 12.5px;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--pnx-ink);
    cursor: pointer;
    transition: background-color 150ms var(--pnx-ease), border-color 150ms var(--pnx-ease);
}

@media (hover: hover) and (pointer: fine) {
    .pnx-rv:hover {
        background: var(--pnx-fill);
        border-color: var(--border-dark);
    }
}

.pnx-ck {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.45;
    color: var(--pnx-ink);
}

.pnx-ck input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex: none;
    accent-color: var(--pnx-accent);
}

.pnx-cks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Form-level messages. One family: an outline, a wash and a word. */
.pnx-msg {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.pnx-msg p,
.pnx-msg ul {
    margin: 0;
}

.pnx-msg ul {
    padding-left: 18px;
}

.pnx-msg--bad {
    border-color: var(--status-danger);
    background: var(--status-danger-bg);
    color: var(--status-danger-text);
}

.pnx-msg--good {
    border-color: var(--status-success);
    background: var(--status-success-bg);
    color: var(--status-success-text);
}

.pnx-msg--note {
    border-color: var(--pnx-amber-edge);
    background: var(--pnx-amber-bg);
    color: var(--pnx-amber-ink);
}

.pnx-msg--note a {
    color: var(--pnx-amber-ink);
    font-weight: 700;
}

/* The validation summary renders its own <ul>; when it is valid it must not
   leave an empty outlined box behind. */
.pnx-msg .validation-summary-valid {
    display: none;
}

/* =============================================================================
   13. /pricing
============================================================================= */
/* The cycle control — two real radios, the checked one filled. */
.pnx-seg {
    display: inline-flex;
    margin: 24px 0 0;
    padding: 4px;
    border: 1px solid var(--border-medium);
    border-radius: 999px;
    background: var(--pnx-card);
}

.pnx-seg__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--pnx-ink-2);
    cursor: pointer;
    transition: background-color 150ms var(--pnx-ease), color 150ms var(--pnx-ease);
}

.pnx-seg__opt input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--pnx-accent);
}

.pnx-seg__opt:has(input:checked) {
    background: var(--pnx-accent);
    color: var(--pnx-card);
}

.pnx-seg__opt:has(input:checked) input {
    accent-color: var(--pnx-card);
}

.pnx-seg__opt:has(input:focus-visible) {
    outline: 2px solid var(--pnx-accent);
    outline-offset: 2px;
}

/* The plan cards. */
.pnx-plans {
    display: grid;
    grid-template-columns: repeat(var(--pnx-plan-cols, 4), minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.pnx-plan {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 20px;
    position: relative;
}

.pnx-plan--hi {
    border-color: var(--pnx-accent);
    border-width: 2px;
    padding: 21px 21px 19px;
}

.pnx-plan--hi .pnx-ui {
    color: var(--pnx-accent-ink);
}

.pnx-plan__flag {
    position: absolute;
    top: -11px;
    left: 22px;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--pnx-accent);
    color: var(--pnx-card);
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.pnx-plan__price {
    margin-top: 10px;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--pnx-ink);
}

.pnx-plan__sub {
    margin: 6px 0 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--pnx-ink-2);
}

/* Whatever the plan's own FeaturesHtml holds: a list reads as the board draws
   it, a paragraph reads as a paragraph. The admin owns these words. */
.pnx-pf {
    margin: 18px 0 20px;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--pnx-ink);
}

.pnx-pf ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pnx-pf li {
    position: relative;
    margin: 0 0 9px;
    padding-left: 22px;
}

.pnx-pf li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--pnx-green);
}

/* The admin's own tick glyphs, where the stored HTML carries them: the rule
   above already draws one, so a second would double up. */
.pnx-pf li > i:first-child,
.pnx-pf li > svg:first-child {
    display: none;
}

.pnx-pf p {
    margin: 0 0 9px;
}

.pnx-plan__cta {
    margin-top: auto;
    width: 100%;
}

/* Not a button: the plan is this account's, or it cannot be bought yet. */
.pnx-plan__state {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border-radius: var(--pnx-radius);
    border: 1px dashed var(--border-medium);
    background: var(--pnx-paper);
    font-size: 15px;
    font-weight: 600;
    color: var(--pnx-ink-2);
    box-sizing: border-box;
}

.pnx-plan__state--mine {
    border-style: solid;
    border-color: var(--pnx-green);
    color: var(--pnx-green);
}

.pnx-plans__note {
    margin: 16px 0 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--pnx-ink-2);
}

/* The comparison. */
.pnx-ct__box {
    margin-top: 22px;
    overflow: hidden;
}

.pnx-ct {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    color: var(--pnx-ink);
}

.pnx-ct caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Not sticky. The card around the table is `overflow: hidden` so its corners
   stay round, which makes the box the sticky container: the head stuck to the
   BOX rather than the viewport and sat on top of the first row. The old page
   had the same fault from the same cause (its .table-responsive wrapper). */
.pnx-ct thead th {
    text-align: center;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 1px solid var(--pnx-line);
    vertical-align: bottom;
    background: var(--pnx-card);
}

.pnx-ct thead th:first-child {
    text-align: left;
    width: 34%;
}

.pnx-ct__flag {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pnx-accent-ink);
}

.pnx-ct td {
    padding: 11px 14px;
    border-top: 1px solid var(--pnx-hairline);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.pnx-ct tbody th {
    padding: 11px 14px;
    border-top: 1px solid var(--pnx-hairline);
    text-align: left;
    font-weight: 400;
}

.pnx-ct__note {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--pnx-ink-2);
}

.pnx-ct__cat th {
    background: var(--pnx-fill);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    border-top: 1px solid var(--pnx-line);
}

/* The highlighted plan's column, tinted from the accent itself. */
.pnx-ct__hi {
    background: rgba(var(--brand-primary-rgb), 0.05);
}

.pnx-no {
    color: var(--pnx-ink-3);
}

.pnx-yes {
    width: 15px;
    height: 15px;
    fill: var(--pnx-green);
    vertical-align: -2px;
}

/* Under 992px: one card a plan, its included rows only. A five-column table at
   390 is unreadable however it is handled, and a box that scrolls sideways
   hides the very columns being compared. */
.pnx-cc {
    display: none;
}

.pnx-cc__card {
    margin-top: 16px;
    padding: 0 0 12px;
    overflow: hidden;
}

.pnx-cc__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pnx-line);
    background: var(--pnx-fill);
    font-size: 16px;
    font-weight: 700;
}

.pnx-cc__card--hi .pnx-cc__head {
    background: var(--pnx-accent-wash);
    color: var(--pnx-accent-ink);
}

.pnx-cc__cat {
    padding: 10px 16px 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pnx-ink-2);
}

.pnx-cc__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    font-size: 14.5px;
}

.pnx-cc__row .pnx-yes {
    flex: none;
}

.pnx-cc__val {
    margin-left: auto;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pnx-cc__none {
    padding: 4px 16px 10px;
    font-size: 14px;
    color: var(--pnx-ink-3);
}

/* The FAQ: every answer on the page, no accordion to open. */
.pnx-faq {
    margin-top: 22px;
    border-bottom: 1px solid var(--pnx-line);
}

.pnx-faq__q {
    padding: 18px 0;
    border-top: 1px solid var(--pnx-line);
}

.pnx-faq__q h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--pnx-ink);
}

.pnx-faq__q p {
    margin: 8px 0 0;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--pnx-ink-2);
    max-width: 76ch;
}

/* =============================================================================
   14. Sign in / create an account, and the invitation page
============================================================================= */
.pnx-auth {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    /* Each card is as tall as what it holds. Stretching them to match left a
       quarter of a screen of empty card under the sign-in form, because the
       live register form carries two fields board F does not draw. */
    align-items: start;
}

.pnx-acard {
    display: flex;
    flex-direction: column;
    padding: 26px 28px;
}

.pnx-acard h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--pnx-ink);
}

.pnx-acard__sub {
    margin: 8px 0 22px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--pnx-ink-2);
}

/* The register card's submit sits at the foot of the card however short the
   sign-in card beside it is. */
.pnx-aform {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pnx-aform__end {
    margin-top: auto;
}

.pnx-acard__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.pnx-acard__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--pnx-accent-ink);
    text-decoration: none;
}

.pnx-acard__link:hover {
    color: var(--pnx-accent);
    text-decoration: underline;
}

.pnx-acard__foot {
    margin: auto 0 0;
    padding-top: 22px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--pnx-ink-3);
}

.pnx-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pnx-div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
}

.pnx-div::before,
.pnx-div::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--pnx-line);
}

.pnx-div span {
    font-size: 13px;
    color: var(--pnx-ink-2);
}

.pnx-soc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* The provider forms must post, so each button is its own form; display:contents
   keeps the button as a direct child of the grid. */
.pnx-soc form {
    display: contents;
}

.pnx-btn--o {
    background: var(--pnx-card);
    color: var(--pnx-ink);
    border: 1px solid var(--border-medium);
    font-size: 15px;
}

@media (hover: hover) and (pointer: fine) {
    .pnx-btn--o:hover {
        background: var(--pnx-fill);
        border-color: var(--border-dark);
        color: var(--pnx-ink);
    }
}

.pnx-turnstile {
    margin-bottom: 18px;
}

/* The invitation page. */
.pnx-inv {
    margin-top: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.pnx-inv__form {
    padding: 28px 30px;
}

.pnx-inv__side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pnx-inv__side .pnx-card {
    padding: 24px 26px;
}

.pnx-inv h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--pnx-ink);
}

.pnx-inv__side h2 {
    font-size: 19px;
}

.pnx-inv__sub {
    margin: 8px 0 22px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--pnx-ink-2);
}

.pnx-inv__foot {
    margin: 18px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--pnx-hairline);
    font-size: 14px;
    line-height: 1.55;
    color: var(--pnx-ink-2);
}

.pnx-gl {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.pnx-gl li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 11px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--pnx-ink);
}

.pnx-gl li:last-child {
    margin-bottom: 0;
}

.pnx-gl .pnx-yes {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex: none;
}

.pnx-steps {
    margin-top: 14px;
}

.pnx-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid var(--pnx-hairline);
}

.pnx-step:first-child {
    border-top: 0;
}

.pnx-step__n {
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 50%;
    background: var(--pnx-accent-wash);
    color: var(--pnx-accent-ink);
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pnx-step p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--pnx-ink);
}

.pnx-inv__not {
    background: var(--pnx-paper);
}

.pnx-inv__not p {
    margin: 8px 0 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--pnx-ink);
}

/* The answer after a request is sent. */
.pnx-done {
    margin-top: 34px;
    max-width: 640px;
    padding: 40px 36px;
    text-align: center;
}

.pnx-done__mark {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    display: block;
    fill: var(--pnx-green);
}

.pnx-done h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--pnx-ink);
}

.pnx-done p {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--pnx-ink-2);
}

/* =============================================================================
   15. /pricing, the auth pages and the invitation page on a small screen

   Their heroes' own small-screen rules are in section 9, with the rest of the
   hero.
============================================================================= */
@media (max-width: 1199.98px) {
    .pnx-plans {
        --pnx-plan-cols: 2;
    }
}

@media (max-width: 991.98px) {
    .pnx-ct__box {
        display: none;
    }

    /* Once the two auth cards stack, the one the visitor asked for comes first
       — /Account/Register must not open on a sign-in form. */
    .pnx-acard--active {
        order: -1;
    }

    .pnx-cc {
        display: block;
    }

    .pnx-auth,
    .pnx-inv {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .pnx-seg {
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }

    .pnx-seg__opt {
        flex: 1;
        justify-content: center;
        padding: 0 10px;
        font-size: 13.5px;
        text-align: center;
        line-height: 1.2;
    }

    .pnx-plans {
        --pnx-plan-cols: 1;
        gap: 14px;
    }

    .pnx-plan--hi {
        margin-top: 11px;
    }

    .pnx-auth,
    .pnx-inv {
        margin-top: 20px;
        gap: 14px;
    }

    .pnx-acard,
    .pnx-inv__form,
    .pnx-inv__side .pnx-card {
        padding: 20px 18px;
    }

    .pnx-pair {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .pnx-soc {
        grid-template-columns: minmax(0, 1fr);
    }

    .pnx-acard__foot {
        padding-top: 18px;
    }

    .pnx-faq__q p {
        font-size: 14.5px;
    }

    .pnx-done {
        margin-top: 20px;
        padding: 28px 20px;
    }

    /* Every control a thumb has to hit is a full-width 50px row. */
    .pnx-acard .pnx-btn,
    .pnx-inv__form .pnx-btn,
    .pnx-plan__cta,
    .pnx-plan__state {
        width: 100%;
        height: 50px;
    }
}
