/* ============================================================================
   File: marketing.css
   Description: The public marketing surface — home, /features, /features/{slug},
                /pricing and /home/about. Loaded after public-nx.css on any view
                that sets ViewData["MarketingPage"], and only on those views.

   HOW THIS WORKS
   --------------
   public-nx.css paints almost everything through ~20 custom properties
   (--pnx-paper, --pnx-ink, --pnx-accent …) and hardcodes only two colours
   outside that block. So the night look is mostly a TOKEN FLIP: redefine those
   same names under body.mkt and the nav, footer, pricing cards, comparison
   table and FAQ all follow with no markup change. Everything below the token
   block is either (a) the handful of components that flip badly, or (b) the new
   components the redrawn pages need — the framed screenshot, the derivation
   card, the campaign collage.

   WHY DARK, WHEN THE APP IS A SINGLE LIGHT THEME
   ----------------------------------------------
   This sheet is scoped to the five marketing pages and loads nowhere else. The
   app itself, /docs and the auth pages keep the light NX surface they have.

   TYPE
   ----
   Display type is --font-heading (Georgia) and body is --font-primary, both from
   themes.css. The site self-hosts no webfonts and this sheet does not introduce
   any; a display face can be swapped in later by changing --mkt-display alone.
   ============================================================================ */

body.mkt {
    /* ---- the base theme tokens ----------------------------------------
       themes.css paints `body { background-color: var(--bg-primary) !important }`,
       so the page ground is only ours if this token is. Overriding the base
       names (rather than answering !important with !important) also carries
       anything else on these pages that paints from the theme. */
    --bg-primary: #0a090c;
    --bg-secondary: #100e15;
    --bg-tertiary: #1d1926;
    --bg-elevated: #16131d;
    --text-primary: #f0eae3;
    --text-secondary: #9b9289;
    --text-muted: #6b6560;
    --text-inverse: #0a090c;
    --border-light: rgba(255, 255, 255, .085);
    --border-medium: rgba(255, 255, 255, .14);

    /* Surfaces that themes.css paints directly, which the --pnx-* layer never
       passes through. A table inside a /docs article is the case that found
       these: `.table thead th` in themes.css outranks the component's own rule,
       so the header stayed a light band however dark --pnx-fill was. Flipping
       the family is what stops the next one being found by eye. */
    --card-bg: #16131d;
    --card-border: rgba(255, 255, 255, .085);
    --card-header-bg: #1d1926;
    --card-header-border: rgba(255, 255, 255, .085);
    --card-header-text: #f0eae3;
    --table-header-bg: #1d1926;
    --list-group-bg: #16131d;
    --list-group-border: rgba(255, 255, 255, .085);
    --list-group-hover: #1d1926;
    --input-bg: #14111b;
    --input-border: rgba(255, 255, 255, .16);
    --input-group-bg: #1d1926;
    --hr-color: rgba(255, 255, 255, .085);

    /* Status messages. A failed sign-in found these: the message box kept its
       pale-pink danger background while the text inside it followed
       --text-primary to near-white, so "Invalid login attempt." was light on
       light and all but unreadable. A fresh page load never shows these, which
       is why a page scan missed it and submitting the form did not. */
    --status-danger-bg: rgba(255, 143, 130, .13);
    --status-danger-text: #ffb3a8;
    --status-danger: #ff8f82;
    --status-success-bg: rgba(86, 227, 155, .12);
    --status-success-text: #8df0bd;
    --status-success: #56e39b;
    --status-warning-bg: rgba(227, 184, 90, .12);
    --status-warning-text: #f2d490;
    --status-warning: #e3b85a;
    --status-info-bg: rgba(139, 99, 255, .14);
    --status-info-text: #c3abff;
    --status-info: #8b63ff;

    /* ---- the night palette, in the names public-nx already paints with ---- */
    --pnx-paper: #0a090c;
    --pnx-card: #16131d;
    --pnx-line: rgba(255, 255, 255, .085);
    --pnx-hairline: rgba(255, 255, 255, .06);
    --pnx-ink: #f0eae3;
    --pnx-ink-2: #9b9289;
    --pnx-ink-3: #6b6560;
    --pnx-fill: #100e15;

    --pnx-accent: #8b63ff;
    --pnx-accent-ink: #a183ff;
    --pnx-accent-wash: rgba(139, 99, 255, .12);
    --pnx-accent-edge: rgba(139, 99, 255, .34);

    --pnx-amber-bg: rgba(227, 184, 90, .09);
    --pnx-amber-edge: rgba(227, 184, 90, .3);
    --pnx-amber-ink: #e3b85a;
    --pnx-crest-bg: #1d1926;
    --pnx-crest-ink: #f2d490;

    --pnx-green: #56e39b;
    --pnx-green-wash: rgba(86, 227, 155, .12);
    --pnx-green-ink: #56e39b;

    /* ---- this sheet's own ---- */
    --mkt-night-2: #100e15;
    --mkt-panel: #16131d;
    --mkt-gold: #e3b85a;
    --mkt-gold-2: #f2d490;
    --mkt-purple: #8b63ff;
    --mkt-purple-2: #6b46c1;
    --mkt-purple-glow: rgba(139, 99, 255, .45);
    --mkt-bad: #ff8f82;
    --mkt-display: var(--font-heading);
    --mkt-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --mkt-measure: 1320px;

    /* Native controls — checkboxes, scrollbars, date pickers — are painted by
       the browser, not by this sheet. Without this they keep their light
       chrome on a dark page. */
    color-scheme: dark;

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

/* ---------------------------------------------------------------- layout -- */
body.mkt .mkt-wrap {
    max-width: var(--mkt-measure);
    margin: 0 auto;
    padding: 0 40px;
}

/* Only this surface's own sections. A bare `body.mkt section` would also
   re-space the pricing page's existing .pnx-s sections, which are fine. */
body.mkt section:has(> .mkt-wrap) {
    padding: 104px 0;
}

body.mkt .mkt-sec--tight {
    padding: 80px 0;
}

/* ------------------------------------------------------------ typography --
   Scoped to .mkt-wrap, which is this surface's OWN container. The shared chrome
   (_PublicNav, _PublicFooter) uses .pnx-wrap and has headings of its own — a
   bare `body.mkt h2` turned the footer's column headings into 49px display
   serif. Element selectors on a page that renders someone else's partials are a
   trap; the named pricing headings below opt in explicitly instead. */
body.mkt .mkt-wrap h1,
body.mkt .mkt-wrap h2,
body.mkt .mkt-wrap h3,
body.mkt .pnx-phero__title,
body.mkt .pnx-h2,
body.mkt .pnx-faq__q,
body.mkt .dnx-head__title,
body.mkt .dnx-art__title {
    font-family: var(--mkt-display);
    font-weight: 400;
    letter-spacing: -.022em;
    line-height: 1.08;
    color: #fff;
}

body.mkt .mkt-wrap h1,
body.mkt .pnx-phero__title,
body.mkt .dnx-head__title {
    font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.6rem);
}

body.mkt .mkt-wrap h2,
body.mkt .pnx-h2 {
    font-size: clamp(1.9rem, 1.1rem + 2.2vw, 3.1rem);
}

body.mkt .mkt-wrap h1 i,
body.mkt .mkt-wrap h2 i {
    font-style: italic;
    color: var(--mkt-gold-2);
}

body.mkt .mkt-lede {
    font-size: 1.22rem;
    color: var(--pnx-ink-2);
    max-width: 58ch;
}

body.mkt .mkt-sub {
    font-size: 1.12rem;
    color: var(--pnx-ink-2);
    max-width: 58ch;
    margin-top: 16px;
}

body.mkt .mkt-eyebrow {
    display: block;
    font: 600 .69rem/1 var(--font-primary);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--mkt-gold);
    margin-bottom: 14px;
}

body.mkt .mkt-micro {
    font-size: .84rem;
    color: var(--pnx-ink-3);
}

body.mkt .mkt-crumb {
    font: 500 .78rem var(--mkt-mono);
    color: var(--pnx-ink-3);
    letter-spacing: .04em;
}

body.mkt .mkt-crumb a {
    color: var(--mkt-gold);
    text-decoration: none;
}

/* --------------------------------------------------------------- buttons -- */
body.mkt .mkt-btn {
    display: inline-block;
    border-radius: 999px;
    font: 600 .95rem var(--font-primary);
    text-decoration: none;
    padding: 13px 26px;
    border: 1px solid transparent;
    cursor: pointer;
}

body.mkt .mkt-btn--p {
    background: linear-gradient(180deg, #a183ff, var(--mkt-purple-2));
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .34) inset, 0 12px 38px rgba(139, 99, 255, .42);
}

body.mkt .mkt-btn--p:hover {
    filter: brightness(1.08);
    color: #fff;
}

body.mkt .mkt-btn--ghost {
    border-color: rgba(240, 234, 227, .26);
    color: var(--pnx-ink);
}

body.mkt .mkt-btn--ghost:hover {
    border-color: rgba(240, 234, 227, .55);
    color: #fff;
}

body.mkt .mkt-btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

body.mkt .mkt-ctarow {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin: 28px 0 16px;
}

/* ------------------------------------------------------------------ chips -- */
body.mkt .mkt-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body.mkt .mkt-chip {
    font: 500 .75rem var(--mkt-mono);
    letter-spacing: .04em;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--pnx-amber-edge);
    color: var(--mkt-gold-2);
    background: var(--pnx-amber-bg);
}

body.mkt .mkt-chip--p {
    border-color: var(--pnx-accent-edge);
    color: #c3abff;
    background: var(--pnx-accent-wash);
}

/* ----------------------------------------------------------------- lists -- */
body.mkt .mkt-list {
    margin-top: 24px;
    display: grid;
    gap: 11px;
    padding: 0;
    list-style: none;
    /* An EXPLICIT counter. The implicit `list-item` one does not increment here:
       the rule below gives each li `display: flex`, which drops `display:
       list-item`, so every marker rendered as "00". */
    counter-reset: mkt-step;
}

body.mkt .mkt-list li {
    display: flex;
    gap: 12px;
    font-size: .97rem;
    color: var(--pnx-ink-2);
    counter-increment: mkt-step;
}

body.mkt .mkt-list li::before {
    content: counter(mkt-step, decimal-leading-zero);
    color: var(--mkt-gold);
    font: 500 .78rem var(--mkt-mono);
    padding-top: 3px;
    flex: none;
}

/* ===========================================================================
   FRAMED SCREEN — public-nx already has the window frame (.pnx-win); this only
   adds the night treatment. Product UI is light and this page is not, so the
   dim plus the inner vignette is what stops a screenshot punching a white hole
   in the night. .pnx-win--dark opts out for UI that is already dark (the
   initiative share view).
   =========================================================================== */
body.mkt .pnx-win {
    background: #0d0b11;
    border-color: rgba(255, 255, 255, .13);
    border-radius: 15px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 50px 120px -36px #000,
                0 0 90px -40px var(--mkt-purple-glow);
}

body.mkt .pnx-win__bar {
    height: 34px;
    background: linear-gradient(180deg, #1a1622, #15121c);
    border-bottom-color: var(--pnx-line);
}

body.mkt .pnx-win__dot {
    background: #2c2637;
}

body.mkt .pnx-win__name {
    font: 500 .72rem var(--mkt-mono);
    color: var(--pnx-ink-3);
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The dim lives on a wrapper so the vignette can sit over the image. */
body.mkt .mkt-view {
    position: relative;
    line-height: 0;
}

body.mkt .mkt-view img {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(.84) contrast(1.04) saturate(1.04);
}

body.mkt .mkt-view::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(120% 90% at 50% 0%, transparent 42%, rgba(10, 9, 12, .5) 100%),
                linear-gradient(180deg, rgba(227, 184, 90, .05), rgba(139, 99, 255, .07));
}

body.mkt .pnx-win--dark .mkt-view img {
    filter: none;
}

body.mkt .pnx-win--dark .mkt-view::after {
    background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(10, 9, 12, .35) 100%);
}

/* =============================================================== HERO ===== */
body.mkt .mkt-hero {
    position: relative;
    text-align: center;
    padding: 64px 0 0;
    overflow: hidden;
}

body.mkt .mkt-hero__glow,
body.mkt .mkt-hero__vign,
body.mkt .mkt-hero__grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

body.mkt .mkt-hero__glow {
    inset: -120px 0 0;
    background: radial-gradient(34% 30% at 50% 2%, rgba(242, 212, 144, .26), transparent 66%),
                radial-gradient(52% 42% at 50% 30%, rgba(139, 99, 255, .34), transparent 70%),
                radial-gradient(90% 55% at 50% 86%, rgba(255, 138, 76, .09), transparent 72%);
}

body.mkt .mkt-hero__vign {
    background: radial-gradient(72% 58% at 50% 30%, transparent 38%, rgba(4, 3, 6, .9) 100%);
}

body.mkt .mkt-hero__grain {
    opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 3px 3px;
}

body.mkt .mkt-hero > .mkt-wrap,
body.mkt .mkt-hero > .mkt-stage {
    position: relative;
    z-index: 2;
}

body.mkt .mkt-hero h1 {
    margin: 20px auto 22px;
    max-width: 15ch;
}

body.mkt .mkt-hero .mkt-lede {
    margin: 0 auto 32px;
}

body.mkt .mkt-hero .mkt-ctarow {
    justify-content: center;
}

/* the hero stage: product UI tilted into the page, fading out at the bottom */
body.mkt .mkt-stage {
    position: relative;
    margin-top: 52px;
    perspective: 2400px;
}

body.mkt .mkt-stage .pnx-win {
    transform: rotateX(6deg);
    transform-origin: 50% 0;
    max-width: 1080px;
    margin: 0 auto;
    border-bottom: 0;
    border-radius: 15px 15px 0 0;
}

body.mkt .mkt-stage__fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 190px;
    z-index: 4;
    background: linear-gradient(180deg, transparent, var(--pnx-paper) 94%);
}

/* ===========================================================================
   DERIVATION CARD — the page's one dealt moment. It states the product's whole
   claim (every total is derived, and shows its working) as a worked example
   rather than a sentence.
   =========================================================================== */
body.mkt .mkt-proof {
    position: absolute;
    z-index: 5;
    right: 4%;
    bottom: 76px;
    width: 372px;
    text-align: left;
    background: linear-gradient(180deg, rgba(32, 27, 42, .97), rgba(18, 15, 24, .97));
    border: 1px solid var(--pnx-amber-edge);
    border-radius: 14px;
    padding: 20px 22px 18px;
    box-shadow: 0 36px 90px -24px #000, 0 0 0 1px rgba(0, 0, 0, .6);
}

body.mkt .mkt-proof__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

body.mkt .mkt-proof__head b {
    font: 600 .82rem var(--font-primary);
    color: var(--pnx-ink);
}

body.mkt .mkt-proof__head span {
    font: 500 .68rem var(--mkt-mono);
    color: var(--pnx-ink-3);
    letter-spacing: .06em;
}

body.mkt .mkt-proof__total {
    display: flex;
    align-items: flex-end;
    gap: 13px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pnx-amber-edge);
}

body.mkt .mkt-proof__n {
    font-family: var(--mkt-display);
    font-size: 3.9rem;
    line-height: .82;
    color: #fff;
}

body.mkt .mkt-proof__l {
    font: 600 .65rem var(--font-primary);
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--mkt-gold);
    padding-bottom: 7px;
}

body.mkt .mkt-proof__tag {
    margin-left: auto;
    font: 500 .62rem var(--mkt-mono);
    letter-spacing: .08em;
    color: #b5a789;
    border: 1px solid var(--pnx-amber-edge);
    border-radius: 5px;
    padding: 4px 7px;
}

body.mkt .mkt-ln {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--pnx-hairline);
    font-size: .85rem;
}

body.mkt .mkt-ln:last-of-type {
    border-bottom: 0;
}

body.mkt .mkt-ln__op {
    font: 500 .82rem var(--mkt-mono);
    color: var(--mkt-gold);
    opacity: .75;
}

body.mkt .mkt-ln__nm {
    color: var(--pnx-ink);
}

body.mkt .mkt-ln__nm small {
    display: block;
    color: var(--pnx-ink-3);
    font-size: .72rem;
    margin-top: 1px;
}

body.mkt .mkt-ln__v {
    font: 700 .88rem var(--mkt-mono);
    color: #fff;
}

body.mkt .mkt-ln--on {
    background: linear-gradient(90deg, rgba(139, 99, 255, .16), transparent);
    margin: 0 -22px;
    padding: 7px 22px;
}

body.mkt .mkt-ln--on .mkt-ln__nm small {
    color: #b49dff;
}

body.mkt .mkt-ln--neg .mkt-ln__v {
    color: var(--mkt-bad);
}

body.mkt .mkt-proof__foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
    font-size: .72rem;
    color: var(--pnx-ink-3);
}

body.mkt .mkt-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pnx-green);
    box-shadow: 0 0 9px var(--pnx-green);
    flex: none;
}

/* ============================================================== STRIP ===== */
body.mkt .mkt-strip {
    border-top: 1px solid var(--pnx-line);
    border-bottom: 1px solid var(--pnx-line);
    padding: 52px 0;
    background: var(--mkt-night-2);
}

body.mkt .mkt-strip__row {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 60px;
    align-items: center;
}

body.mkt .mkt-strip__q {
    font-family: var(--mkt-display);
    font-size: clamp(1.5rem, .9rem + 1.6vw, 2.25rem);
    line-height: 1.26;
    color: #fff;
    max-width: 24ch;
}

body.mkt .mkt-strip__a {
    color: var(--pnx-ink-2);
    font-size: 1.05rem;
}

/* =========================================================== SECTIONS ===== */
body.mkt .mkt-split {
    display: grid;
    grid-template-columns: .92fr 1.18fr;
    gap: 62px;
    align-items: center;
}

body.mkt .mkt-split--flip {
    grid-template-columns: 1.18fr .92fr;
}

body.mkt .mkt-split--flip > *:first-child {
    order: 2;
}

/* full-bleed dark feature — the initiative share view already belongs here */
body.mkt .mkt-bleed {
    background: linear-gradient(180deg, var(--mkt-night-2), #0d0b11);
    border-top: 1px solid var(--pnx-line);
    border-bottom: 1px solid var(--pnx-line);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

body.mkt .mkt-bleed::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(60% 50% at 50% 50%, rgba(139, 99, 255, .16), transparent 70%);
}

body.mkt .mkt-bleed > .mkt-wrap {
    position: relative;
    z-index: 2;
}

body.mkt .mkt-bleed__head {
    text-align: center;
    max-width: 46ch;
    margin: 0 auto 44px;
}

body.mkt .mkt-bleed__head .mkt-sub {
    margin: 16px auto 0;
}

body.mkt .mkt-bleed__head .mkt-chips {
    justify-content: center;
    margin-top: 24px;
}

/* two screens with real depth — three at this width are all sidebar, no signal */
body.mkt .mkt-collage {
    position: relative;
    height: 560px;
    margin-top: 10px;
}

body.mkt .mkt-collage .pnx-win {
    position: absolute;
}

body.mkt .mkt-collage__back {
    width: 66%;
    left: 0;
    top: 0;
    z-index: 2;
}

body.mkt .mkt-collage__back .mkt-view img {
    filter: brightness(.72) contrast(1.04) saturate(1.02);
}

body.mkt .mkt-collage__front {
    width: 46%;
    right: 0;
    bottom: 0;
    z-index: 4;
}

/* ====================================================== SYSTEM CARDS ====== */
body.mkt .mkt-systems {
    background: var(--mkt-night-2);
    border-top: 1px solid var(--pnx-line);
    padding: 96px 0;
}

body.mkt .mkt-sysgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-top: 42px;
}

body.mkt .mkt-sys {
    background: linear-gradient(180deg, var(--mkt-panel), #120f18);
    border: 1px solid var(--pnx-line);
    border-radius: 16px;
    padding: 30px 32px;
    position: relative;
    overflow: hidden;
}

body.mkt .mkt-sys::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: var(--mkt-purple);
}

body.mkt .mkt-sys--two::before {
    background: var(--mkt-gold);
}

body.mkt .mkt-sys h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

body.mkt .mkt-sys p {
    font-size: .97rem;
    color: var(--pnx-ink-2);
    margin-bottom: 22px;
}

body.mkt .mkt-sys dl {
    border-top: 1px solid var(--pnx-amber-edge);
    margin: 0;
}

body.mkt .mkt-sys div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--pnx-hairline);
}

body.mkt .mkt-sys dt {
    color: var(--pnx-ink-3);
    font-size: .9rem;
    font-weight: 400;
}

body.mkt .mkt-sys dd {
    font-family: var(--mkt-display);
    font-size: 1.6rem;
    color: var(--mkt-gold-2);
    margin: 0;
}

/* ============================================================ NUMBERS ===== */
body.mkt .mkt-numbers {
    padding: 88px 0;
    position: relative;
    overflow: hidden;
}

body.mkt .mkt-numbers::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(50% 70% at 50% 50%, rgba(227, 184, 90, .07), transparent 70%);
}

body.mkt .mkt-numbers > .mkt-wrap {
    position: relative;
    z-index: 2;
}

body.mkt .mkt-figs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin: 36px 0 0;
}

body.mkt .mkt-figs dt {
    font-family: var(--mkt-display);
    font-size: clamp(2rem, 1.2rem + 2vw, 3.6rem);
    line-height: 1;
    color: var(--mkt-gold-2);
    font-weight: 400;
}

body.mkt .mkt-figs dd {
    font: 600 .69rem var(--font-primary);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pnx-ink-3);
    margin: 10px 0 0;
}

body.mkt .mkt-figs__note {
    margin-top: 30px;
    font-size: .95rem;
    color: var(--pnx-ink-2);
    max-width: 64ch;
}

body.mkt .mkt-figs__note b {
    color: var(--pnx-ink);
}

/* ============================================================== CARDS ===== */
body.mkt .mkt-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

body.mkt .mkt-card {
    background: linear-gradient(180deg, var(--mkt-panel), #120f18);
    border: 1px solid var(--pnx-line);
    border-radius: 16px;
    padding: 26px 26px 28px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

body.mkt .mkt-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--mkt-purple), transparent);
}

body.mkt .mkt-card:hover {
    border-color: var(--pnx-amber-edge);
    color: inherit;
}

body.mkt .mkt-card__ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: .95rem;
    color: #c3abff;
    background: var(--pnx-accent-wash);
    border: 1px solid var(--pnx-accent-edge);
    margin-bottom: 16px;
}

body.mkt .mkt-card h3 {
    font-size: 1.5rem;
    margin-bottom: 9px;
}

body.mkt .mkt-card p {
    font-size: .95rem;
    color: var(--pnx-ink-2);
    margin: 0;
}

body.mkt .mkt-card__go {
    margin-top: auto;
    padding-top: 16px;
    font: 500 .78rem var(--mkt-mono);
    color: var(--mkt-gold);
    letter-spacing: .04em;
}

/* /features has four compact cards under the two lead ones; the default
   three-up left the fourth orphaned on a row of its own. */
body.mkt-features .mkt-cards {
    grid-template-columns: repeat(4, 1fr);
}

/* lead cards on /features carry a screenshot; equal aspect keeps them level */
body.mkt .mkt-lead {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

body.mkt .mkt-lead .mkt-card {
    padding: 0;
}

body.mkt .mkt-lead .mkt-card::before {
    display: none;
}

body.mkt .mkt-lead .pnx-win {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.mkt .mkt-lead .mkt-view {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

body.mkt .mkt-lead .mkt-view img {
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

body.mkt .mkt-lead .mkt-card__body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

body.mkt .mkt-lead .mkt-card h3 {
    font-size: 1.7rem;
}

/* ========================================== FEATURE DETAIL TEMPLATE ======= */
body.mkt .mkt-phead {
    position: relative;
    overflow: hidden;
    padding-bottom: 54px;
}

body.mkt .mkt-phead > .mkt-wrap {
    position: relative;
    z-index: 2;
    padding-top: 30px;
}

body.mkt .mkt-phero {
    display: grid;
    grid-template-columns: 1.02fr 1.18fr;
    gap: 58px;
    align-items: center;
}

body.mkt .mkt-phero h1 {
    margin: 14px 0 18px;
    max-width: 14ch;
    font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.6rem);
}

/* what the feature actually does, stated before any screenshot */
body.mkt .mkt-proofbar {
    border-top: 1px solid var(--pnx-line);
    border-bottom: 1px solid var(--pnx-line);
    background: var(--mkt-night-2);
    padding: 24px 0;
}

body.mkt .mkt-proofbar ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.mkt .mkt-proofbar li {
    display: flex;
    gap: 10px;
    font-size: .92rem;
    color: var(--pnx-ink-2);
}

body.mkt .mkt-proofbar li::before {
    content: '\2726';
    color: var(--mkt-gold);
    font-size: .72rem;
    padding-top: 3px;
    flex: none;
}

/* Three row shapes, alternated, so a long page never repeats itself. */
body.mkt .mkt-row {
    display: grid;
    gap: 58px;
    align-items: center;
    padding: 84px 0;
    border-bottom: 1px solid var(--pnx-line);
}

body.mkt .mkt-row--split {
    grid-template-columns: .92fr 1.18fr;
}

body.mkt .mkt-row--flip {
    grid-template-columns: 1.18fr .92fr;
}

body.mkt .mkt-row--flip > *:first-child {
    order: 2;
}

body.mkt .mkt-row--stack {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

body.mkt .mkt-row--stack .mkt-sub {
    margin-left: auto;
    margin-right: auto;
}

body.mkt .mkt-row--trio {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: start;
    border-bottom: 0;
}

body.mkt .mkt-pt h3 {
    font-size: 1.5rem;
    margin-bottom: 9px;
}

body.mkt .mkt-pt p {
    font-size: .97rem;
    color: var(--pnx-ink-2);
}

body.mkt .mkt-pt__n {
    font: 500 .75rem var(--mkt-mono);
    color: var(--mkt-gold);
    letter-spacing: .1em;
    margin-bottom: 12px;
}

body.mkt .mkt-callout {
    background: linear-gradient(180deg, rgba(227, 184, 90, .09), rgba(227, 184, 90, .03));
    border: 1px solid var(--pnx-amber-edge);
    border-radius: 16px;
    padding: 28px 32px;
    margin-top: 76px;
}

body.mkt .mkt-callout h3 {
    font-size: 1.65rem;
    margin-bottom: 9px;
}

body.mkt .mkt-callout p {
    color: var(--pnx-ink-2);
    max-width: 72ch;
    margin: 0;
}

/* ============================================================== ABOUT ===== */
body.mkt .mkt-story {
    max-width: 62ch;
    margin: 0 auto;
}

body.mkt .mkt-story p {
    font-size: 1.15rem;
    color: var(--pnx-ink-2);
    margin-bottom: 22px;
    line-height: 1.72;
}

body.mkt .mkt-story p.mkt-story__first {
    font-size: 1.32rem;
    color: var(--pnx-ink);
}

body.mkt .mkt-pull {
    margin: 46px 0;
    padding: 26px 0;
    border-top: 1px solid var(--pnx-amber-edge);
    border-bottom: 1px solid var(--pnx-amber-edge);
}

body.mkt .mkt-pull p {
    font-family: var(--mkt-display);
    font-size: clamp(1.4rem, .9rem + 1.3vw, 2rem);
    line-height: 1.3;
    color: #fff;
    margin: 0;
}

body.mkt .mkt-principles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--pnx-line);
    border: 1px solid var(--pnx-line);
    border-radius: 18px;
    overflow: hidden;
    margin-top: 44px;
}

body.mkt .mkt-principle {
    background: linear-gradient(180deg, var(--mkt-panel), #120f18);
    padding: 30px 32px;
}

body.mkt .mkt-principle h3 {
    font-size: 1.5rem;
    margin-bottom: 9px;
}

body.mkt .mkt-principle p {
    font-size: .97rem;
    color: var(--pnx-ink-2);
    margin: 0;
}

/* ================================================================ CTA ===== */
body.mkt .mkt-cta {
    position: relative;
    text-align: center;
    padding: 120px 0;
    overflow: hidden;
}

body.mkt .mkt-cta__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(52% 95% at 50% 105%, rgba(139, 99, 255, .38), transparent 70%),
                radial-gradient(30% 50% at 50% 100%, rgba(242, 212, 144, .14), transparent 70%);
}

body.mkt .mkt-cta > .mkt-wrap {
    position: relative;
    z-index: 2;
}

body.mkt .mkt-cta h2 {
    font-size: clamp(2.1rem, 1.2rem + 2.8vw, 4rem);
    margin-bottom: 16px;
}

body.mkt .mkt-cta p {
    color: var(--pnx-ink-2);
    font-size: 1.15rem;
    max-width: 48ch;
    margin: 0 auto 32px;
}

/* ===========================================================================
   SHARED CHROME — the nav and footer markup is _PublicNav / _PublicFooter and
   is not duplicated here; only the few places the token flip alone is not
   enough get a rule.
   =========================================================================== */
body.mkt .pnx-nav {
    background: rgba(10, 9, 12, .82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pnx-line);
}

body.mkt .pnx-brand,
body.mkt .pnx-nl:hover,
body.mkt .pnx-nl[aria-current] {
    color: #fff;
}

body.mkt .pnx-footer {
    background: var(--mkt-night-2);
    border-top: 1px solid var(--pnx-line);
}

/* The nav CTA and the in-page buttons must read as the same control. */
body.mkt .pnx-btn--p {
    background: linear-gradient(180deg, #a183ff, var(--mkt-purple-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .34) inset, 0 10px 30px rgba(139, 99, 255, .38);
}

/* ===========================================================================
   PRICING — structure untouched. Every price, limit and tier name on that page
   comes from PlanCopy / SubscriptionPlanFeature at request time, so this sheet
   only re-skins what is already there.
   =========================================================================== */
body.mkt .pnx-plan {
    background: linear-gradient(180deg, var(--mkt-panel), #120f18);
    border-color: var(--pnx-line);
}

body.mkt .pnx-plan--best,
body.mkt .pnx-plan--featured {
    border-color: var(--pnx-accent-edge);
    background: linear-gradient(180deg, #1f1930, #130f1c);
    box-shadow: 0 0 0 1px rgba(139, 99, 255, .2), 0 40px 90px -36px rgba(139, 99, 255, .5);
}

body.mkt .pnx-plan__price {
    font-family: var(--mkt-display);
    color: #fff;
}

body.mkt .pnx-card,
body.mkt .pnx-cc__card,
body.mkt .pnx-ct__box {
    background: linear-gradient(180deg, var(--mkt-panel), #120f18);
    border-color: var(--pnx-line);
}

body.mkt .pnx-ct,
body.mkt .pnx-ct table {
    color: var(--pnx-ink);
}

body.mkt .pnx-ct__cat,
body.mkt .pnx-cc__cat {
    background: var(--pnx-amber-bg);
    color: var(--mkt-gold);
}

body.mkt .pnx-faq__q {
    font-family: var(--mkt-display);
    color: #fff;
}

body.mkt .pnx-seg {
    background: var(--mkt-panel);
    border-color: var(--pnx-line);
}

/* ========================================================== RESPONSIVE ==== */
@media (max-width: 1080px) {
    body.mkt .mkt-figs {
        grid-template-columns: repeat(3, 1fr);
    }

    body.mkt .mkt-cards,
    body.mkt-features .mkt-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 980px) {
    body.mkt .mkt-proof {
        position: static;
        width: auto;
        margin: -40px 20px 0;
    }

    body.mkt .mkt-collage {
        height: auto;
        display: grid;
        gap: 16px;
    }

    body.mkt .mkt-collage .pnx-win {
        position: static;
        width: auto;
    }
}

@media (max-width: 860px) {
    body.mkt .mkt-wrap {
        padding: 0 20px;
    }

    body.mkt section,
    body.mkt .mkt-systems,
    body.mkt .mkt-numbers,
    body.mkt .mkt-bleed,
    body.mkt .mkt-sec--tight {
        padding: 56px 0;
    }

    body.mkt .mkt-hero {
        padding-top: 40px;
    }

    body.mkt .mkt-hero h1,
    body.mkt .mkt-phero h1 {
        max-width: none;
    }

    body.mkt .mkt-ctarow .mkt-btn {
        flex: 1 1 100%;
        text-align: center;
    }

    body.mkt .mkt-stage .pnx-win {
        transform: none;
    }

    body.mkt .mkt-strip {
        padding: 36px 0;
    }

    body.mkt .mkt-strip__row,
    body.mkt .mkt-split,
    body.mkt .mkt-split--flip,
    body.mkt .mkt-phero,
    body.mkt .mkt-sysgrid,
    body.mkt .mkt-cards,
    body.mkt-features .mkt-cards,
    body.mkt .mkt-lead,
    body.mkt .mkt-principles,
    body.mkt .mkt-row,
    body.mkt .mkt-row--split,
    body.mkt .mkt-row--flip,
    body.mkt .mkt-row--trio {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    body.mkt .mkt-split--flip > *:first-child,
    body.mkt .mkt-row--flip > *:first-child {
        order: 0;
    }

    body.mkt .mkt-row {
        padding: 52px 0;
    }

    body.mkt .mkt-figs {
        grid-template-columns: 1fr 1fr;
        gap: 26px 16px;
    }

    body.mkt .mkt-callout {
        margin-top: 44px;
        padding: 22px 20px;
    }

    body.mkt .mkt-cta {
        padding: 72px 0;
    }
}
