/*
 * pn-system.css: the PostNext page design system (2026-11-18), the /pricing look applied to every marketing page.
 * Source of the look: /pricing (theme-2026-pricing-cf.css), itself ported from CreatorFlow's Ink and Lime
 * (~/Desktop/creatorflow-frontend app/public/css/frontend/ink/home.css + ink/pricing.css).
 *
 * Linked in common/v3/frontend_style.pug AND frontend_style_slim.pug, after pn-header.css, outside the usemin
 * build blocks. Every edit: bump ?v= in BOTH includes (files are served immutable).
 *
 * Three layers:
 *   1. Tokens (custom properties on :root). New templates use these, never copied hex values.
 *   2. Components (.pns-*): hero band, light sheet, card, eyebrow, headings, lead, buttons, chips. For new markup.
 *   3. Legacy normalisation: the type scale, text weights, buttons and section rhythm on the existing templates.
 *      Scoped to main:not(.cp3) so the rebuilt channel pages (main.cp3, channel-page-v3.css) are untouched, and
 *      never reaching the header (.navigation-section, .tab-bar, .pn-mega*), the footer (#footerElem), the
 *      auth pages (body.pn-auth) or the plan cards' pricing.js hooks.
 * Family files (theme-2026-*.css, tools-hub.css, frontend-templates*.css, page <style> blocks) map their own
 * sections onto these tokens; this file holds only what every page shares.
 */

/* ===================================================================================================== */
/* 1. Tokens                                                                                              */
/* ===================================================================================================== */
:root {
    /* Ink (dark) surfaces: page, hero bands, value bands */
    --pns-ink: #1b1b1b;
    --pns-ink-2: #232323;
    --pns-ink-3: #2a2a2a;
    --pns-ink-line: #333333;
    --pns-on-ink: #ffffff;
    --pns-on-ink-2: #bdbdc2;
    --pns-on-ink-3: #8a8a93;

    /* Light surfaces: sheets and cards */
    --pns-mist: #f4f4f5;
    --pns-card: #ffffff;
    --pns-line: #e4e4e7;
    --pns-line-soft: #efeff1;
    --pns-field: #d4d4d8;
    --pns-text: #141414;
    --pns-text-2: #52525b;
    --pns-text-3: #71717a;

    /* The one accent. Lime is a fill (buttons, chips, badges) with ink text on it; never lime text on white. */
    --pns-lime: #81ff3c;
    --pns-lime-hover: #74f02f;
    --pns-on-lime: #0d0d1f;
    --pns-lime-tint: #eafdd9;
    --pns-lime-deep: #2f6b0a;
    /* Focus ring: ink on light surfaces; the dark containers below switch it to white. Never the old purple-blue. */
    --pns-focus: #1b1b1b;
    /* Errors (form fields, failed actions): a calm red that passes AA on white and on mist. */
    --pns-danger: #b42318;
    --pns-danger-tint: #fef3f2;

    /* Shape */
    --pns-r-btn: 12px;
    --pns-r-field: 10px;
    --pns-r-card: 24px;
    --pns-r-sheet: 32px;
    --pns-r-chip: 999px;

    /* Rhythm and width (CreatorFlow: section clamp(40px, 4.2vw, 64px); edge clamp(40px, 5vw, 92px) in 1400px) */
    --pns-y: clamp(40px, 4.2vw, 64px);
    --pns-y-tight: clamp(32px, 3.4vw, 48px);
    --pns-gap: 16px;
    --pns-edge: clamp(40px, 5vw, 92px);
    --pns-inset: 12px;
    /* ONE left edge on every page: header, hero, sheet content, footer.
     * --pns-w        content width in a full-width band (header, hero, dark bands, footer).
     * --pns-w-sheet  content width INSIDE a sheet (the sheet is --pns-inset in from each side, so its content
     *                adds that back; without it the sheet content sits 12px off the header edge under 1424px).
     * --pns-sheet-pad  the same edge as padding-inline, for a sheet that pads itself instead of wrapping its
     *                content (percentages in padding read the PARENT width, which must be the full page width). */
    --pns-w: calc(min(1400px, 100%) - 2 * var(--pns-edge));
    --pns-w-sheet: calc(min(1400px, 100% + 2 * var(--pns-inset)) - 2 * var(--pns-edge));
    --pns-sheet-pad: calc((100% - var(--pns-w)) / 2 - var(--pns-inset));

    /* Type scale (the site font comes from pn-font.css: General Sans since 2026-11-18). Phone sizes below 640px. */
    --pns-h1: clamp(40px, 4.4vw, 64px);
    --pns-h2: clamp(30px, 3.2vw, 46px);
    --pns-h2-sm: clamp(26px, 2.4vw, 34px);
    --pns-h3: 20px;
    --pns-h4: 17px;
    --pns-lead: 18px;
    --pns-body: 16px;
    --pns-small: 14px;
    --pns-micro: 13px;
    --pns-track-h1: -0.045em;
    --pns-track-h2: -0.035em;
    --pns-track-h3: -0.015em;

    --pns-ease: cubic-bezier(.32, .72, 0, 1);
}

@media (max-width: 1023px) {
    :root {
        --pns-edge: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --pns-edge: 20px;
        --pns-inset: 8px;
    }
}

/* Phones: everything one step smaller (the 2026-11-18 review: type was far too large on phones). */
@media (max-width: 640px) {
    :root {
        --pns-y: 40px;
        --pns-y-tight: 32px;
        --pns-h1: 34px;
        --pns-h2: 27px;
        --pns-h2-sm: 23px;
        --pns-h3: 18px;
        --pns-h4: 16px;
        --pns-lead: 16px;
        --pns-body: 15px;
        --pns-small: 13.5px;
        --pns-r-sheet: 24px;
        --pns-r-card: 20px;
    }
}

/* ===================================================================================================== */
/* 2. Components (new markup)                                                                             */
/* ===================================================================================================== */
.pns-w {
    box-sizing: border-box;
    width: var(--pns-w);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.pns-sheet .pns-w {
    width: var(--pns-w-sheet);
}

/* Dark band: the hero and any value band. */
.pns-band {
    padding: var(--pns-y) 0;
    background: var(--pns-ink);
    color: var(--pns-on-ink);
}

.pns-hero {
    padding: clamp(40px, 3.6vw, 56px) 0 clamp(32px, 3vw, 44px);
    background: var(--pns-ink);
    color: var(--pns-on-ink);
    text-align: center;
}

/* Light sheet: 12px in from the edges, rounded, on the ink page. */
.pns-sheet {
    margin: var(--pns-inset) var(--pns-inset) 0;
    padding: var(--pns-y) 0;
    border-radius: var(--pns-r-sheet);
    background: var(--pns-mist);
    color: var(--pns-text);
}

.pns-sheet--white {
    background: var(--pns-card);
}

.pns-sheet--lime {
    background: var(--pns-lime);
    color: var(--pns-on-lime);
}

.pns-card {
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid var(--pns-line);
    border-radius: var(--pns-r-card);
    background: var(--pns-card);
    color: var(--pns-text);
}

.pns-card--ink {
    border-color: var(--pns-ink-line);
    background: var(--pns-ink-2);
    color: var(--pns-on-ink);
}

html body .pns-eyebrow {
    margin: 0 0 16px;
    color: var(--pns-lime);
    font-size: var(--pns-micro);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

html body .pns-sheet .pns-eyebrow,
html body .pns-card:not(.pns-card--ink) .pns-eyebrow {
    color: var(--pns-text-3);
}

.pns-h1 {
    margin: 0 auto;
    font-size: var(--pns-h1);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: var(--pns-track-h1);
    text-wrap: balance;
}

.pns-h2 {
    margin: 0;
    font-size: var(--pns-h2);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: var(--pns-track-h2);
    text-wrap: balance;
}

.pns-h2--sm {
    font-size: var(--pns-h2-sm);
}

.pns-h3 {
    margin: 0;
    font-size: var(--pns-h3);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: var(--pns-track-h3);
}

.pns-lead {
    max-width: 620px;
    margin: 16px 0 0;
    color: var(--pns-text-2);
    font-size: var(--pns-lead);
    font-weight: 400;
    line-height: 1.55;
    text-wrap: pretty;
}

.pns-hero .pns-lead,
.pns-band .pns-lead {
    color: var(--pns-on-ink-2);
}

.pns-hero .pns-lead {
    margin-left: auto;
    margin-right: auto;
}

.pns-p {
    margin: 0;
    color: var(--pns-text-2);
    font-size: var(--pns-body);
    line-height: 1.6;
}

.pns-band .pns-p,
.pns-card--ink .pns-p {
    color: var(--pns-on-ink-2);
}

.pns-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 32px;
    text-align: center;
}

.pns-head .pns-lead {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons: one size, three fills. */
.pns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--pns-r-btn);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s var(--pns-ease), border-color .15s var(--pns-ease), color .15s var(--pns-ease);
}

.pns-btn--lime {
    border-color: var(--pns-lime);
    background: var(--pns-lime);
    color: var(--pns-on-lime);
}

.pns-btn--lime:hover {
    border-color: var(--pns-lime-hover);
    background: var(--pns-lime-hover);
    color: var(--pns-on-lime);
}

.pns-btn--ink {
    border-color: var(--pns-ink);
    background: var(--pns-ink);
    color: #ffffff;
}

.pns-btn--ink:hover {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.pns-btn--line {
    border-color: var(--pns-field);
    background: var(--pns-card);
    color: var(--pns-text);
}

.pns-btn--line:hover {
    border-color: var(--pns-text);
    color: var(--pns-text);
}

.pns-hero .pns-btn--line,
.pns-band .pns-btn--line {
    border-color: rgba(255, 255, 255, 0.28);
    background: transparent;
    color: #ffffff;
}

.pns-hero .pns-btn--line:hover,
.pns-band .pns-btn--line:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

/* app-critical.css a:focus {color:#4645c9} turned a focused button's label purple. */
html body a.pns-btn--lime:is(:focus, :active) {
    color: var(--pns-on-lime);
}

html body a.pns-btn--ink:is(:focus, :active),
html body :is(.pns-hero, .pns-band) a.pns-btn--line:is(:focus, :active) {
    color: #ffffff;
}

html body a.pns-btn--line:is(:focus, :active) {
    color: var(--pns-text);
}

.pns-btn:focus-visible,
.pns-card a:focus-visible,
.pns-sheet a:focus-visible {
    outline: 2px solid var(--pns-focus);
    outline-offset: 2px;
}

.pns-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--pns-r-chip);
    background: var(--pns-lime-tint);
    color: var(--pns-lime-deep);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.pns-chip--lime {
    background: var(--pns-lime);
    color: var(--pns-on-lime);
}

.pns-grid {
    display: grid;
    gap: var(--pns-gap);
}

.pns-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pns-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pns-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1023px) {
    .pns-grid--3,
    .pns-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .pns-grid--2,
    .pns-grid--3,
    .pns-grid--4 { grid-template-columns: minmax(0, 1fr); }

    .pns-card {
        padding: 20px;
    }

    .pns-btn {
        min-height: 46px;
        padding: 11px 18px;
        font-size: 15px;
    }
}

/* ===================================================================================================== */
/* 3. Legacy normalisation (existing templates)                                                           */
/*    Selectors measured on 2026-11-18 at 1440 and 390 (h1 32-60px in five weights, h2 22-48px with line   */
/*    heights down to 0.71, body text in weights 300/400/500, buttons at 8/10/999px radius and 45-61px).   */
/* ===================================================================================================== */

/* ---------- Text weight: no light (300) body text anywhere in page bodies ----------
 * The legacy bundles set weight 300 on body and on many divs and spans. Page bodies start at 400, and the light
 * leftovers the scanner found (scripts/qa/pn-scan.js) are listed by name: add a selector here when it reports one. */
html body:not(.pn-auth) main:not(.cp3) {
    font-weight: 400;
}

html body:not(.pn-auth) main:not(.cp3) :is(
    .badge-text,
    .ideal,
    .price-pro-price,
    .price-business-price,
    .price-teams-price,
    .price-basic-price,
    .learn-index-card-descr,
    .content-grey,
    .linkTextDescription
) {
    font-weight: 400;
}

html body:not(.pn-auth) main:not(.cp3) :is(p, li, dd, td, th, label, blockquote):not([class*="pns-"]) {
    font-weight: 400;
}

html body:not(.pn-auth) main:not(.cp3) :is(p, li, dd, blockquote):not([class*="pns-"]) {
    line-height: 1.6;
}

/* Emphasis keeps its weight (a strong inside a light paragraph was 600-700). */
html body:not(.pn-auth) main:not(.cp3) :is(p, li) :is(strong, b) {
    font-weight: 600;
}

/* ---------- H1: one size, one weight on every page ---------- */
html body:not(.pn-auth) main:not(.cp3) h1,
html body:not(.pn-auth) main:not(.cp3) h1.main-title,
html body:not(.pn-auth) main:not(.cp3) h1.head-main,
html body:not(.pn-auth) main:not(.cp3) h1.loadtesting {
    font-size: var(--pns-h1) !important;
    font-weight: 600 !important;
    line-height: 1.04 !important;
    letter-spacing: var(--pns-track-h1) !important;
    text-wrap: balance;
}

/* Hero subtitles: several families use an h2 or a p for the line under the H1. */
html body:not(.pn-auth) main:not(.cp3) :is(h2.header-descr-speed, h2.header-descr, p.header-descr, .run-test-container-top > h2, .pricingcontainer > p.offer-description) {
    font-size: var(--pns-lead) !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
    text-wrap: pretty;
}

/* ---------- Section titles (h2) ---------- */
html body:not(.pn-auth) main:not(.cp3) :is(
    h2.head-main,
    h2.main-title,
    h2.hero-heading,
    h2.pn-shot-title,
    h2.lp-planners-title,
    h2.lp-trust-title,
    h2.ssp-title,
    h2.pp-section-title,
    .row.columns > h2,
    .channels-content > h2,
    section.solution > h2,
    .mcp-section-head > h2,
    .fifteen-channels > h2,
    .pi-container > h2,
    .compare-page .small-12.columns > h2,
    .pp-final-card > h2,
    .pricing-plans-questions h2,
    a.radius.cta > h2
) {
    font-size: var(--pns-h2) !important;
    font-weight: 500 !important;
    line-height: 1.08 !important;
    letter-spacing: var(--pns-track-h2) !important;
    text-wrap: balance;
}

/* Group titles inside a hub (features hub groups, tools categories, alternatives directory) */
html body:not(.pn-auth) main:not(.cp3) :is(.features-hub__group > h2, h2.tools-directory__category, h2.alternatives-directory__heading) {
    font-size: var(--pns-h2-sm) !important;
    font-weight: 500 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em !important;
}

/* Sub-section titles on simple pages (about, contact, terms) */
html body:not(.pn-auth) main:not(.cp3) :is(.pn-simple-page > h2, .pn-simple-page > h3) {
    font-size: var(--pns-h3) !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    letter-spacing: var(--pns-track-h3) !important;
}

/* ---------- Card titles (h3): one size per role ---------- */
html body:not(.pn-auth) main:not(.cp3) h3:not([class*="pns-"]) {
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: var(--pns-track-h3);
}

/* ---------- Buttons in page bodies: one size, 12px radius, no pills, no shouting ---------- */
html body:not(.pn-auth) main:not(.cp3) a.button:not(.tiny):not(.small):not(.pn-btn--icon),
html body:not(.pn-auth) main:not(.cp3) a.pn-btn,
html body:not(.pn-auth) main:not(.cp3) a.cta.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    height: auto !important;
    min-height: 48px;
    padding: 12px 22px !important;
    border-radius: var(--pns-r-btn) !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
}

html body:not(.pn-auth) main:not(.cp3) a.button:not(.tiny):not(.small) > span {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

/* ---------- Section rhythm: no 96px bands (2026-11-18: "sections not too high") ---------- */
html body:not(.pn-auth) main.pn-page:not(.cp3) > section:not(.hero):not(.overlayall),
html body:not(.pn-auth) main.landing-page:not(.cp3) > section.services {
    padding-top: var(--pns-y) !important;
    padding-bottom: var(--pns-y) !important;
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
    html body:not(.pn-auth) main:not(.cp3) :is(p, li, dd):not([class*="pns-"]) {
        font-size: min(1em, var(--pns-body));
    }

    html body:not(.pn-auth) main:not(.cp3) h3:not([class*="pns-"]) {
        font-size: min(1em, var(--pns-h3));
    }

    html body:not(.pn-auth) main:not(.cp3) a.button:not(.tiny):not(.small):not(.pn-btn--icon),
    html body:not(.pn-auth) main:not(.cp3) a.pn-btn,
    html body:not(.pn-auth) main:not(.cp3) a.cta.button {
        min-height: 46px;
        padding: 11px 18px !important;
        font-size: 15px !important;
        white-space: normal;
    }
}

/* ===================================================================================================== */
/* 4. Shared sections: FAQ and the closing panel (one look on every page)                                 */
/* ===================================================================================================== */

/* ---------- FAQ: title left, questions right, on a white sheet ----------
 * Markup (the legacy accordion, toggled by theme_v3.js): .pns-faq > .pns-faq__head (h2, optional lead) +
 * .faq-container > .faq-item > .faq-question (h3 + i.svg-icon-chevron-*) + .faq-answer. */
html body .pns-faq {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
    text-align: left;
}

html body .pns-faq .pns-faq__head h2 {
    margin: 0 !important;
    text-align: left !important;
}

html body .pns-faq .pns-faq__head p {
    margin: 14px 0 0 !important;
    text-align: left !important;
}

html body .pns-faq .faq-container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid var(--pns-line);
    background: transparent !important;
}

html body .pns-faq .faq-container .faq-item {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--pns-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body .pns-faq .faq-container .faq-item .faq-question,
html body .pns-faq .faq-container .faq-item .faq-question:hover,
html body .pns-faq .faq-container .faq-item.active .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 !important;
    padding: 18px 0 !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer;
}

html body .pns-faq .faq-container .faq-question h3 {
    margin: 0 !important;
    color: var(--pns-text) !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
    text-align: left !important;
}

html body .pns-faq .faq-container .faq-answer {
    margin: 0 !important;
    padding: 0 0 18px !important;
    border: 0 !important;
    background: transparent !important;
}

html body .pns-faq .faq-container .faq-answer :is(p, .content-grey, .faq-answer-content) {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--pns-text-2) !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

/* ---------- Closing panel: lime, ink text, ink button (common/v3/frontend_services.pug) ---------- */
html body main > section.services-deserve.services-deserve,
html body main section.services-deserve.services-deserve {
    margin: var(--pns-inset) var(--pns-inset) 0 !important;
    padding: clamp(56px, 6vw, 88px) 20px clamp(60px, 6.4vw, 96px) !important;
    border: 0 !important;
    border-radius: var(--pns-r-sheet) !important;
    background: var(--pns-lime) !important;
    box-shadow: none !important;
    color: var(--pns-on-lime) !important;
    text-align: center;
    /* A legacy width:100% plus the side margins pushed the panel 12px past the right edge. */
    box-sizing: border-box;
    width: auto !important;
    max-width: none !important;
    float: none !important;
}

html body main section.services-deserve :is(a.cta-primary, a.cta-secondary):focus-visible {
    outline: 2px solid var(--pns-ink);
    outline-offset: 2px;
}

html body main section.services-deserve::before,
html body main section.services-deserve::after {
    display: none !important;
}

html body main section.services-deserve .container-deserve-centered {
    max-width: 920px;
    margin: 0 auto !important;
    padding: 0 !important;
}

html body main section.services-deserve h2.hero-heading {
    max-width: 920px;
    margin: 0 auto 16px !important;
    color: var(--pns-on-lime) !important;
    font-size: clamp(32px, 4.2vw, 56px) !important;
    font-weight: 600 !important;
    line-height: 1.04 !important;
    letter-spacing: -0.04em !important;
    text-wrap: balance;
}

html body main section.services-deserve .hero-subheading {
    max-width: 640px;
    margin: 0 auto 28px !important;
    color: #26301c !important;
    font-size: var(--pns-lead) !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-wrap: balance;
}

html body main section.services-deserve .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

html body main section.services-deserve a.cta-primary,
html body main section.services-deserve a.cta-secondary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 24px !important;
    border: 1px solid var(--pns-ink) !important;
    border-radius: var(--pns-r-btn) !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transform: none !important;
}

html body main section.services-deserve a.cta-primary {
    background: var(--pns-ink) !important;
    color: #ffffff !important;
}

html body main section.services-deserve a.cta-primary:hover {
    border-color: #000000 !important;
    background: #000000 !important;
}

html body main section.services-deserve a.cta-secondary {
    background: transparent !important;
    color: var(--pns-on-lime) !important;
}

html body main section.services-deserve a.cta-secondary:hover {
    background: rgba(13, 13, 31, 0.08) !important;
    color: var(--pns-on-lime) !important;
}

html body main section.services-deserve .stats-badge {
    display: inline-flex;
    margin: 22px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #26301c !important;
    font-size: var(--pns-small) !important;
}

html body main section.services-deserve .stats-badge strong {
    color: var(--pns-on-lime) !important;
    font-weight: 600;
}

@media (max-width: 1024px) {
    html body .pns-faq {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 640px) {
    html body .pns-faq .faq-container .faq-question h3 {
        font-size: 16px !important;
    }

    html body .pns-faq .faq-container .faq-answer :is(p, .content-grey, .faq-answer-content) {
        font-size: 15px !important;
    }

    html body main section.services-deserve a.cta-primary,
    html body main section.services-deserve a.cta-secondary {
        width: 100%;
    }
}

/* ---------- Closing row of feature, learn and old channel pages (section.final-cta-section) ---------- */
/* Same lime panel as above, everything centred. The paragraph kept a left-aligned 62ch block from the row rules. */
html body .pn-page section.services.final-cta-section.final-cta-section :is(.align-left, .action-button) {
    text-align: center !important;
}

html body .pn-page section.services.final-cta-section.final-cta-section p.content-grey.content-grey {
    max-width: 640px !important;
    margin: 0 auto !important;
    color: #26301c !important;
    font-size: var(--pns-lead) !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

/* ---------- Related pages band (common/v3/_related_links.pug): a mist sheet on the shared edge ---------- */
html body nav.related-links.related-links {
    box-sizing: border-box;
    float: none !important;
    width: auto !important;
    margin: var(--pns-inset) var(--pns-inset) 0 !important;
    padding: var(--pns-y-tight) 0 !important;
    border: 0 !important;
    border-radius: var(--pns-r-sheet) !important;
    background: var(--pns-mist) !important;
    box-shadow: none !important;
}

html body nav.related-links.related-links > .row {
    box-sizing: border-box;
    float: none !important;
    width: var(--pns-w-sheet) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

html body nav.related-links .related-links__heading {
    margin: 0 0 20px !important;
    color: var(--pns-text) !important;
    font-size: var(--pns-h3) !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    letter-spacing: var(--pns-track-h3) !important;
    text-align: left !important;
}

html body nav.related-links a.related-links__link {
    min-height: 48px;
    box-sizing: border-box;
    padding: 12px 16px !important;
    border: 1px solid var(--pns-line) !important;
    border-radius: 16px !important;
    background: var(--pns-card) !important;
    box-shadow: none !important;
    color: var(--pns-text) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transform: none !important;
}

html body nav.related-links a.related-links__link::after {
    color: var(--pns-text-3) !important;
}

html body nav.related-links a.related-links__link:hover,
html body nav.related-links a.related-links__link:focus-visible {
    border-color: var(--pns-text) !important;
}

html body nav.related-links a.related-links__link:hover::after,
html body nav.related-links a.related-links__link:focus-visible::after {
    color: var(--pns-text) !important;
}

/* ---------- Phone header: "Sign in" and the menu button only (owner, 2026-11-18) ---------- */
/* The lime button stays in the markup for wider bars; on phones it is in the menu panel and on the page. */
@media (max-width: 640px) {
    html body nav.tab-bar.pn-frame a.mobile-button-header2 {
        display: none !important;
    }
}

html body .pn-mobile-menu .pn-mobile-menu__cta {
    padding: 20px 0 8px;
}

html body .pn-mobile-menu .pn-mobile-menu__cta a.pns-btn {
    display: flex;
    width: 100%;
    text-decoration: none;
}

/* =====================================================================================================
   5. Shared page parts picked by the owner on 2026-11-18 (the Postiz and Buffer layouts he sent).
      docs/revamp-2026-11-18/PAGE-PATTERN.md says where each is used. One picture and one idea per part.
   ===================================================================================================== */
:root {
    --pns-tint-sky: #e2ecfd;
    --pns-tint-peach: #fde7da;
    --pns-tint-mint: #def4e7;
    --pns-tint-sand: #f5eed9;
    --pns-tint-lime: var(--pns-lime-tint);
}

/* ---- .pns-feature: a wide card, picture on one side and words on the other (Postiz channel pages) ---- */
html body .pns-features {
    display: grid;
    gap: 16px;
}

html body .pns-feature {
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    gap: clamp(24px, 3.4vw, 56px);
    align-items: center;
    box-sizing: border-box;
    min-height: 420px;
    padding: clamp(20px, 2.2vw, 32px);
    border-radius: var(--pns-r-card);
    background: var(--pns-mist);
    color: var(--pns-text);
}

html body .pns-feature--sky { background: var(--pns-tint-sky); }
html body .pns-feature--peach { background: var(--pns-tint-peach); }
html body .pns-feature--mint { background: var(--pns-tint-mint); }
html body .pns-feature--sand { background: var(--pns-tint-sand); }
html body .pns-feature--lime { background: var(--pns-tint-lime); }
html body .pns-feature--ink { background: var(--pns-ink-2); color: var(--pns-on-ink); border: 1px solid var(--pns-ink-line); }

/* The picture: a white stage that holds one drawn visual, centred. */
html body .pns-feature__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    min-height: 340px;
    padding: clamp(18px, 2.4vw, 36px);
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

html body .pns-feature--ink .pns-feature__visual { background: var(--pns-ink); }
html body .pns-feature__visual > .pnv { width: min(100%, 440px); }
html body .pns-feature--flip .pns-feature__visual { order: 2; }

html body .pns-feature__copy {
    min-width: 0;
    padding: 8px clamp(4px, 1.4vw, 24px);
}

html body :is(h2, h3).pns-feature__title {
    margin: 0 0 12px !important;
    color: inherit !important;
    font-size: clamp(24px, 2.3vw, 34px) !important;
    font-weight: 500 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em !important;
    text-align: left !important;
    text-wrap: balance;
}

html body p.pns-feature__text {
    max-width: 52ch;
    margin: 0 !important;
    color: var(--pns-text-2) !important;
    font-size: var(--pns-lead) !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

html body .pns-feature--ink p.pns-feature__text { color: var(--pns-on-ink-2) !important; }

html body a.pns-feature__more {
    display: inline-block;
    margin-top: 18px;
    color: inherit;
    font-size: 16px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 899px) {
    html body .pns-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        min-height: 0;
        padding: 14px 14px 24px;
    }

    html body .pns-feature--flip .pns-feature__visual { order: 0; }
    html body .pns-feature__visual { min-height: 0; padding: 18px; }
    html body .pns-feature__visual > .pnv { width: min(100%, 320px); }
    html body .pns-feature__copy { padding: 0 8px; }
}

/* ---- .pns-tile: a card with a tinted picture panel on top, then label, title, text, link (Buffer) ---- */
html body .pns-tiles {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

html body a.pns-tile,
html body div.pns-tile {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 12px 24px;
    border: 1px solid var(--pns-line);
    border-radius: var(--pns-r-card);
    background: var(--pns-card);
    color: var(--pns-text);
    text-decoration: none;
}

html body .pns-tile--lg { grid-column: span 3 !important; }
html body a.pns-tile:is(:hover, :focus-visible) { border-color: var(--pns-text); color: var(--pns-text); }

html body .pns-tile__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 250px;
    margin: 0 0 22px;
    padding: 24px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--pns-mist);
}

html body .pns-tile--lg .pns-tile__panel { height: 300px; padding: 32px; }
html body .pns-tile__panel > .pnv { width: min(100%, 300px); }
html body .pns-tile--lg .pns-tile__panel > .pnv { width: min(100%, 400px); }
html body .pns-tile__panel--sky { background: var(--pns-tint-sky); }
html body .pns-tile__panel--peach { background: var(--pns-tint-peach); }
html body .pns-tile__panel--mint { background: var(--pns-tint-mint); }
html body .pns-tile__panel--sand { background: var(--pns-tint-sand); }
html body .pns-tile__panel--lime { background: var(--pns-tint-lime); }

html body .pns-tile__eyebrow,
html body :is(h2, h3).pns-tile__title,
html body .pns-tile__text,
html body .pns-tile__more { padding: 0 12px; text-align: left !important; }

html body .pns-tile__eyebrow { margin-bottom: 8px; color: var(--pns-text-3); font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; }
html body :is(h2, h3).pns-tile__title { margin: 0 !important; color: var(--pns-text) !important; font-size: 22px !important; font-weight: 500 !important; line-height: 1.18 !important; letter-spacing: -0.02em !important; }
html body .pns-tile--lg :is(h2, h3).pns-tile__title { font-size: 26px !important; }
html body .pns-tile__text { margin-top: 8px; color: var(--pns-text-2); font-size: 16px; line-height: 1.5; }
html body .pns-tile__more { margin-top: auto; padding-top: 18px; color: var(--pns-text); font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1023px) {
    html body a.pns-tile, html body div.pns-tile { grid-column: span 3; }
}

@media (max-width: 640px) {
    html body a.pns-tile, html body div.pns-tile, html body .pns-tile--lg { grid-column: 1 / -1 !important; }
    html body .pns-tile__panel, html body .pns-tile--lg .pns-tile__panel { height: auto; min-height: 180px; margin-bottom: 18px; padding: 20px; }
    html body .pns-tile__panel > .pnv, html body .pns-tile--lg .pns-tile__panel > .pnv { width: min(100%, 290px); }
    html body :is(h2, h3).pns-tile__title, html body .pns-tile--lg :is(h2, h3).pns-tile__title { font-size: 20px !important; }
    html body .pns-tile__text { font-size: 15px; }
}

/* ---- .pns-pagehero: the calm hero of every inner page. Words left, one picture right. ---- */
html body .pns-pagehero {
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
    width: var(--pns-w);
    /* No min-height: a tall hero around small content read as an empty void (owner, 2026-11-18: "super ugly"). */
    margin: 0 auto;
    padding: clamp(32px, 3.4vw, 56px) 0 clamp(44px, 4.4vw, 72px);
}

html body h1.pns-pagehero__title {
    max-width: 18ch;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: clamp(32px, 3.5vw, 52px) !important;
    font-weight: 600 !important;
    line-height: 1.06 !important;
    letter-spacing: -0.04em !important;
    text-align: left !important;
    text-wrap: balance;
}

html body p.pns-pagehero__sub {
    max-width: 56ch;
    margin: 18px 0 0 !important;
    color: var(--pns-on-ink-2) !important;
    font-size: var(--pns-lead) !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    text-align: left !important;
}

html body .pns-pagehero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
html body .pns-pagehero__visual { min-width: 0; }
html body .pns-pagehero__visual > .pnv { width: 100%; }

@media (max-width: 1023px) {
    html body .pns-pagehero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 28px; }
    html body h1.pns-pagehero__title { max-width: none; }
    html body .pns-pagehero__visual { max-width: 560px; }
}

@media (max-width: 640px) {
    html body .pns-pagehero__cta .pns-btn { flex: 1 1 100%; }
}

/* ---------- No green inside a hero's picture (owner, 2026-11-19) ----------
 * "dont use green it distracts from main cta in hero": the lime button beside the picture is the only green on a first
 * screen. Pictures paint their active parts with the lime tokens, so inside a hero picture those tokens resolve to ink
 * and mist: a lime "Approve" becomes an ink button, lime ticks and chips become ink and grey. One rule for every
 * family (all heroes use .pns-pagehero__visual; the homepage uses .pnh-hero__visual). */
html body .pns-pagehero__visual,
html body .pnh-hero__visual {
    --pns-lime: #1b1b1b;
    --pns-lime-hover: #000000;
    --pns-on-lime: #ffffff;
    --pns-lime-tint: #f4f4f5;
    --pns-lime-deep: #141414;
}


/* ---------- Focus ring colour by surface (2026-11-19) ----------
 * The ring was #5d5fef, a purple-blue the owner reads as the old theme (it showed on a focused menu row and on the
 * handle checker's input). One token, set per surface: white on the ink page, header, footer and bands; ink again on
 * the white parts that sit inside them (menu panels, cards, drawn product windows). */
.pns-band,
.pns-hero,
.pn-frame.navigation-section,
nav.tab-bar.pn-frame,
.pn-frame.tab-bar .pn-mobile-menu,
footer.pn-frame,
#cookie-banner.cookie-banner {
    --pns-focus: #ffffff;
}

.pn-frame .dropdown.pn-mega,
.pns-band .pns-card,
.pns-band .pnv,
.pns-band .pns-sheet,
.pns-pagehero__visual,
.pns-sheet {
    --pns-focus: #1b1b1b;
}


/* ---------- Japanese line breaks (2026-11-19) ----------
 * Japanese has no spaces, so a headline could break inside a word (the homepage H1 broke as 使 / える). Break between
 * phrases instead, and balance headings. Browsers without `auto-phrase` keep `line-break: strict` from pn-font.css. */
:root:lang(ja) :is(h1, h2, h3, h4, summary, button, .pns-btn, a.button, .pns-lead, .pnh-sub, .pns-pagehero__sub, .pns-tile__title, .pns-feature__title) {
    word-break: auto-phrase;
}

:root:lang(ja) :is(h1, h2, h3, h4) {
    text-wrap: balance;
}
