/* =====================================================================
   Proclee homepage redesign - Phases 2-3 (navbar, hero, homepage sections)
   Loaded ONLY by front/index.php (via $pageHead). Every rule is scoped
   to "pn-" classes, so no other page or homepage section is affected.
   Fonts: Gilroy (already self-hosted by assets/css/style.css).
   ===================================================================== */

.pn-header,
.pn-hero,
.pn-home,
.pn-foot {
    /* Homepage palette - change colours here only */
    --pn-ink: #0a475f;          /* primary: deep teal (headings, icons, links) */
    --pn-deep: #174e43;         /* secondary: forest green (kickers, check marks, FREE) */
    --pn-base: #d2e6df;         /* navbar + top of hero: sea-glass green */
    --pn-hero-end: #e5f0ed;     /* bottom of the hero gradient */
    --pn-bar-hover: #bfd9cf;    /* navbar link hover on the green bar */
    --pn-page: #f7fafc;         /* page background */
    --pn-tint: #edf4f8;         /* tinted section (auctions & plans) */
    --pn-card: #ffffff;         /* cards */
    --pn-orange: #f28c28;       /* primary call to action */
    --pn-orange-hover: #f59d45;
    --pn-icon-bg: #e3f0f5;      /* tinted icon squares, subtle fills */
    --pn-border: rgba(10, 71, 95, 0.12);
    --pn-shadow: 0 1px 2px rgba(10, 40, 55, 0.04), 0 10px 24px -18px rgba(10, 40, 55, 0.28);
    --pn-radius: 16px;
    --pn-space: clamp(32px, 3.6vw, 52px);   /* section padding (top and bottom) */
    --pn-gutter: clamp(16px, 8vw - 20px, 150px);   /* ~6.5-7% of the width on large screens */
    --pn-text: #173746;         /* body text */
    --pn-muted: #5f6f77;
    --pn-ink-soft: #0f3446;     /* navbar link text */
    --pn-green: #174e43;
    --pn-cream: #eef6f9;        /* navbar "featured" dropdown tile (now light blue) */
    --pn-cream-deep: #e1eef4;
    --pn-line: rgba(10, 71, 95, 0.10);
    --pn-hover: #eef5f8;
    --pn-focus: #0b6e8a;
    font-family: 'Gilroy', 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Navbar ---------------------------------------------------- */
.pn-header {
    position: relative;
    z-index: 1030;
    background: var(--pn-base);
}

.pn-bar {
    position: relative;
    z-index: 1046;              /* stays above the mobile backdrop */
    max-width: 2000px;
    height: 120px;
    margin: 0 auto;
    padding: 0 var(--pn-gutter);
    display: flex;
    align-items: center;
    gap: 20px;
}

.pn-logo {
    flex: none;
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Logo: same widths as the legacy navbar on other pages (145 / 130 / 120 / 100px), so it
   looks the same size site-wide. The 500x500 logo file has empty transparent bands at the
   top and bottom (artwork spans rows 68-426); the box trims them so the bar stays compact. */
.pn-logo--img {
    display: block;              /* not flex: centring would shift the logo up inside the crop */
    width: 145px;
    aspect-ratio: 500 / 370;
    overflow: hidden;
}

.pn-logo--img img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: -13%;            /* % of the width: skips the top 65px of 500 */
}

.pn-logo-text {
    font-weight: 800;
    font-size: 20px;
    color: var(--pn-ink);
}

.pn-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-left: 8px;
}

.pn-menu,
.pn-sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pn-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.pn-item {
    position: relative;
}

/* header.php resets every <button> with "all: unset", so set everything here */
.pn-header .pn-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--pn-ink-soft);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pn-header .pn-link:hover,
.pn-header .pn-link[aria-expanded="true"] {
    background: var(--pn-bar-hover);
    color: var(--pn-ink);
}

.pn-header a:focus-visible,
.pn-header button:focus-visible {
    outline: 2px solid var(--pn-focus);
    outline-offset: 2px;
}

.pn-chev {
    flex: none;
    transition: transform 0.15s ease;
}

.pn-link[aria-expanded="true"] .pn-chev {
    transform: rotate(180deg);
}

.pn-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: #d8eadf;
    color: #1f5f45;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

@media (min-width: 992px) {
    .pn-header .pn-badge { background: #fff; }   /* stays visible on the green bar */
}

/* Dropdown panels */
.pn-sub {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1050;
    min-width: 260px;
    box-sizing: border-box;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--pn-line);
    border-radius: 16px;
    box-shadow: 0 24px 48px -18px rgba(16, 38, 47, 0.28);
}

.pn-sub::before {               /* hover bridge across the 10px gap */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.pn-sub-open > .pn-sub {
    display: block;
}

.pn-sub-checks { width: 540px; }
.pn-sub-how    { width: 360px; }
.pn-sub-plans  { width: 290px; }
.pn-sub-more   { width: 660px; left: auto; right: 0; }
.pn-sub-account { width: 230px; left: auto; right: 0; }

.pn-header .pn-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: var(--pn-cream);
    color: var(--pn-ink);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.pn-header .pn-feature:hover {
    background: var(--pn-cream-deep);
}

.pn-feature strong {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
}

.pn-feature small {
    display: block;
    margin-top: 3px;
    color: var(--pn-muted);
    font-size: 13.5px;
    line-height: 1.35;
}

.pn-feature-icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #c56f00;
    font-size: 18px;
}

.pn-header .pn-sub-label {
    margin: 14px 10px 6px;
    color: #7a8a91;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pn-more-grid > div > .pn-sub-label:first-child,
.pn-sub-how .pn-sub-list:first-child {
    margin-top: 4px;
}

.pn-header .pn-sub-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    color: #22363f;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pn-header .pn-sub-list a:hover {
    background: var(--pn-hover);
    color: var(--pn-ink);
}

.pn-sub-list i {
    flex: none;
    width: 18px;
    text-align: center;
    color: var(--pn-green);
    font-size: 14px;
}

.pn-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
}

.pn-ext {
    margin-left: auto;
    padding-left: 8px;
    color: #8a979d;
    font-size: 11.5px;
}

.pn-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 16px;
}

/* Right-hand actions */
.pn-actions {
    flex: none;
    display: flex;
    align-items: center;
}

.pn-header .pn-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 1.5px solid var(--pn-ink);
    border-radius: 10px;
    color: var(--pn-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pn-header .pn-btn-login:hover {
    background: var(--pn-ink);
    color: #fff;
}

.pn-avatar {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--pn-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* Hamburger + backdrop (mobile only) */
.pn-header .pn-burger,
.pn-backdrop {
    display: none;
}

/* Laptop widths: tighten spacing so the bar fits on one line */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Laptop: a tighter shared gutter so the one-line navbar fits (alignment kept) */
    .pn-header, .pn-hero, .pn-home, .pn-foot { --pn-gutter: 32px; }
    .pn-bar { height: 108px; gap: 12px; }
    .pn-nav { margin-left: 0; gap: 10px; }
    .pn-header .pn-link { padding: 10px 9px; font-size: 14.5px; }
    .pn-logo--img { width: 130px; }
    .pn-header .pn-btn-login { padding: 0 14px; font-size: 14px; }
}

/* Legacy navbar logo widths: 120px from 768-1023px, 100px below 768px (90px at 360) */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .pn-logo--img { width: 120px; }
}

/* Desktop: logo left, links centred on the full bar width, account right.
   Logo and nav share one grid cell; the nav's own 3 columns keep the links centred
   while there is room. Its first column never gets narrower than the logo, so at
   smaller desktop widths the links shift right instead of overlapping it. */
@media (min-width: 992px) {
    .pn-bar {
        --pn-logo-w: 145px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        padding-top: 14px;            /* breathing room inside the bar (same green) */
    }

    .pn-bar > .pn-logo {
        grid-area: 1 / 1;
        justify-self: start;
        position: relative;
        z-index: 2;                   /* above the nav's empty first column */
    }

    .pn-nav {
        grid-area: 1 / 1;
        display: grid;
        grid-template-columns: minmax(calc(var(--pn-logo-w) + 24px), 1fr) auto minmax(max-content, 1fr);
        align-items: center;
        column-gap: 16px;
        margin-left: 0;
    }

    .pn-nav > .pn-menu { grid-column: 2; }
    .pn-nav > .pn-actions { grid-column: 3; justify-self: end; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .pn-bar { --pn-logo-w: 130px; }
    .pn-nav {
        grid-template-columns: minmax(calc(var(--pn-logo-w) + 12px), 1fr) auto minmax(max-content, 1fr);
        column-gap: 6px;
    }
    .pn-header .pn-link { padding: 10px 7px; font-size: 14px; }
    .pn-header .pn-btn-login { padding: 0 12px; }
}

@media (min-width: 992px) and (max-width: 1023.98px) {
    .pn-bar { --pn-logo-w: 120px; }
    .pn-nav { column-gap: 12px; grid-template-columns: minmax(calc(var(--pn-logo-w) + 4px), 1fr) auto minmax(max-content, 1fr); }
    .pn-header .pn-link { padding: 10px 6px; }
}

/* 1200-1365px: full-size text, slightly tighter link padding so logo, links and account fit */
@media (min-width: 1200px) and (max-width: 1365.98px) {
    .pn-nav {
        grid-template-columns: minmax(calc(var(--pn-logo-w) + 12px), 1fr) auto minmax(max-content, 1fr);
        column-gap: 10px;
    }
    .pn-header .pn-link { padding: 10px 9px; }
}

/* Mobile + tablet: hamburger drawer */
@media (max-width: 991.98px) {
    .pn-bar {
        height: 104px;
        justify-content: space-between;
    }

    .pn-header .pn-burger {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        box-sizing: border-box;
        border: 1px solid var(--pn-line);
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
    }

    .pn-burger span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--pn-ink);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .pn-open .pn-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .pn-open .pn-burger span:nth-child(2) { opacity: 0; }
    .pn-open .pn-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .pn-nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 12px;
        right: 12px;
        z-index: 1050;
        max-height: calc(100vh - 88px);
        margin: 0;
        padding: 10px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 24px 60px -12px rgba(9, 25, 32, 0.45);
    }

    .pn-open .pn-nav {
        display: block;
    }

    .pn-open .pn-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1045;
        background: rgba(9, 25, 32, 0.5);
    }

    .pn-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .pn-menu > .pn-item + .pn-item {
        border-top: 1px solid #eef1f2;
    }

    .pn-header .pn-link {
        width: 100%;
        justify-content: space-between;
        padding: 14px 12px;
        font-size: 16px;
    }

    .pn-header .pn-link:hover {
        background: transparent;
    }

    .pn-sub,
    .pn-sub-checks,
    .pn-sub-how,
    .pn-sub-more,
    .pn-sub-account {
        position: static;
        width: auto;
        min-width: 0;
        padding: 0 4px 10px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .pn-sub::before {
        display: none;
    }

    .pn-cols-2,
    .pn-more-grid {
        grid-template-columns: 1fr;
    }

    .pn-actions {
        display: block;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid #eef1f2;
    }

    .pn-header .pn-btn-login {
        display: flex;
        justify-content: center;
        height: 48px;
    }

    .pn-account .pn-link {
        justify-content: flex-start;
    }

    .pn-account .pn-chev {
        margin-left: auto;
    }

    html.pn-lock,
    body.pn-lock {
        overflow: hidden;
    }
}

@media (max-width: 767.98px) {
    .pn-bar { height: 88px; }
    .pn-logo--img { width: min(100px, 25vw); }
}

/* ---------- Hero: text (left ~40%) + four service cards (right ~60%) --- */
/* Starts in the navbar colour, so the two read as one surface. No photo. */
.pn-hero {
    position: relative;
    background: linear-gradient(180deg, var(--pn-base) 0%, var(--pn-hero-end) 100%);
}

.pn-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(32px, 4vw, 72px);
    padding-top: clamp(28px, 3.5vw, 56px);
    padding-bottom: clamp(40px, 4.5vw, 72px);
}

.pn-hero-copy {
    max-width: 600px;
}

.pn-hero .pn-eyebrow {
    display: inline-flex;
    margin: 0;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(10, 71, 95, 0.08);
    color: var(--pn-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pn-hero .pn-hero-title {
    margin: 20px 0 0;
    color: var(--pn-ink);
    font-family: inherit;
    font-size: clamp(2.05rem, 0.6rem + 2.8vw, 3.9rem);   /* two lines: "Before You Buy, / Check With Proclee." */
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.pn-hero-rule {
    display: block;
    width: 72px;
    height: 5px;
    margin: 24px 0;
    border-radius: 3px;
    background: var(--pn-orange);
}

.pn-hero .pn-hero-lead {
    max-width: 33em;
    margin: 0;
    color: var(--pn-text);
    font-family: inherit;
    font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.2rem);
    font-weight: 400;
    line-height: 1.6;
}

/* 2x2 card grid */
.pn-hcards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pn-hcards > li {
    display: flex;
}

.pn-hero .pn-hcard {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 210px;
    padding: 22px 24px 18px;
    border: 1px solid var(--pn-border);
    border-radius: var(--pn-radius);
    background: var(--pn-card);
    color: var(--pn-text);
    text-decoration: none;
    box-shadow: var(--pn-shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pn-hero .pn-hcard:hover {
    border-color: rgba(10, 71, 95, 0.3);
    box-shadow: 0 16px 32px -20px rgba(16, 38, 47, 0.45);
    color: var(--pn-text);
    transform: translateY(-2px);
}

.pn-hero .pn-hcard:focus-visible {
    outline: 3px solid var(--pn-focus);
    outline-offset: 3px;
}

.pn-hcard-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pn-hcard-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--pn-icon-bg);
    color: var(--pn-ink);
    font-size: 19px;
}

.pn-hcard-free {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--pn-deep);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pn-hcard-title {
    color: var(--pn-ink);
    font-size: clamp(1.1rem, 0.95rem + 0.35vw, 1.3rem);
    font-weight: 800;
    line-height: 1.25;
}

.pn-hcard-text {
    margin-top: 6px;
    margin-bottom: 16px;
    color: var(--pn-text);
    font-size: 15px;
    line-height: 1.5;
}

/* Thin separator + bottom-aligned CTA */
.pn-hcard-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--pn-border);
    color: var(--pn-ink);
    font-size: 15px;
    font-weight: 700;
}

.pn-hcard-arrow {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(242, 140, 40, 0.14);
    color: #b85f00;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.pn-hcard:hover .pn-hcard-arrow,
.pn-hcard:focus-visible .pn-hcard-arrow {
    background: var(--pn-orange);
    color: #10262f;
    transform: translateX(2px);
}

/* Laptop: slightly smaller cards so the hero stays compact */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .pn-hero-inner {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 32px;
    }

    .pn-hcards {
        gap: 14px;
    }

    .pn-hero .pn-hcard {
        min-height: 196px;
        padding: 18px 18px 14px;
    }

    .pn-hcard-text {
        font-size: 14px;
    }
}

/* Tablet + mobile: text first, then the cards */
@media (max-width: 991.98px) {
    .pn-hero-inner {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 32px;
        padding-bottom: 40px;
    }

    .pn-hero-copy {
        max-width: 640px;
    }

    .pn-hero-rule {
        margin: 18px 0;
    }

    .pn-hero .pn-hcard {
        min-height: 0;
    }
}

/* Phones: one column of compact cards */
@media (max-width: 575.98px) {
    .pn-hero .pn-eyebrow {
        font-size: 11.5px;
    }

    .pn-hero-inner {
        gap: 22px;
        padding-top: 24px;
    }

    .pn-hcards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pn-hero .pn-hcard {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 14px;
        padding: 16px;
        border-radius: 16px;
    }

    /* icon on the left, text on the right; the top row's number/badge moves beside the title */
    .pn-hcard-top {
        grid-row: 1 / span 3;
        margin: 0;
    }

    .pn-hcard-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .pn-hcard-top .pn-hcard-free {
        position: absolute;
        top: 14px;
        right: 14px;
    }

    .pn-hcards > li {
        position: relative;
    }

    .pn-hcard-title {
        padding-right: 52px;      /* room for the FREE badge */
    }

    .pn-hcard-text {
        margin-top: 2px;
        margin-bottom: 0;
        font-size: 14.5px;
    }

    .pn-hcard-cta {
        margin-top: 10px;
        padding-top: 10px;
    }

    .pn-hcard-arrow {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
}

/* ---------- Homepage sections: one design system ---------------------- */
/* Shared layout: navbar, hero and sections use the same width + gutter */
.pn-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pn-gutter);
    padding-right: var(--pn-gutter);
}

.pn-home {
    display: block;
    padding-bottom: 72px;
    background: linear-gradient(180deg, var(--pn-base) 0, var(--pn-page) 320px);
    color: var(--pn-text);
    font-family: 'Gilroy', 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.pn-home *,
.pn-home *::before,
.pn-home *::after {
    box-sizing: border-box;
}

.pn-section {
    padding-top: var(--pn-space);
}

.pn-section:first-child {
    padding-top: 8px;
}

/* Headings: one colour (primary teal), one scale */
.pn-head {
    max-width: 820px;
    margin: 0 0 24px;
}

.pn-home .pn-kicker {
    margin: 0 0 8px;
    color: var(--pn-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.pn-home .pn-h2 {
    margin: 0;
    color: var(--pn-ink);
    font-family: inherit;
    font-size: clamp(1.6rem, 1.15rem + 1.2vw, 2.3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.pn-home .pn-h2-sm {
    font-size: clamp(1.4rem, 1.15rem + 0.7vw, 1.85rem);
}

.pn-home .pn-h3 {
    margin: 0;
    color: var(--pn-ink);
    font-family: inherit;
    font-size: clamp(1.15rem, 1.02rem + 0.35vw, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
}

.pn-home .pn-lede {
    margin: 8px 0 0;
    color: var(--pn-muted);
    font-size: 16px;
    line-height: 1.55;
}

.pn-home .pn-text {
    margin: 10px 0 0;
    color: var(--pn-text);
    font-size: 15.5px;
    line-height: 1.55;
}

/* Cards: white, one border, one radius, one shadow */
.pn-panel {
    border: 1px solid var(--pn-border);
    border-radius: var(--pn-radius);
    background: var(--pn-card);
    box-shadow: var(--pn-shadow);
}

.pn-panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pn-panel-icon,
.pn-tile-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--pn-icon-bg);
    color: var(--pn-ink);
    font-size: 19px;
}

/* Buttons: orange only for primary actions; outline for the rest */
.pn-home .pn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 20px;
    border: 1.5px solid transparent;
    border-radius: 11px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pn-home .pn-btn-primary {
    background: var(--pn-orange);
    color: #10262f;
}

.pn-home .pn-btn-primary:hover {
    background: var(--pn-orange-hover);
    color: #10262f;
}

.pn-home .pn-btn-outline {
    border-color: rgba(10, 71, 95, 0.35);
    background: #fff;
    color: var(--pn-ink);
}

.pn-home .pn-btn-outline:hover {
    border-color: var(--pn-ink);
    background: var(--pn-icon-bg);
    color: var(--pn-ink);
}

.pn-home .pn-textlink {
    color: var(--pn-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(10, 71, 95, 0.3);
    text-underline-offset: 4px;
}

.pn-home .pn-textlink:hover {
    color: var(--pn-ink);
    text-decoration-color: currentColor;
}

.pn-home a:focus-visible {
    outline: 2px solid var(--pn-focus);
    outline-offset: 3px;
}

.pn-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: auto;
    padding-top: 20px;
}

.pn-go {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--pn-icon-bg);
    color: var(--pn-ink);
    transition: transform 0.15s ease;
}

a:hover > .pn-go {
    transform: translateX(2px);
}

/* ---------- Verification: individual checks + report ----------------- */
.pn-checks-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 20px;
}

.pn-checks-list,
.pn-report {
    padding: 24px;
}

.pn-check-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

/* odd item count: the last check spans the full row (no empty cell) */
.pn-check-items li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.pn-check-items a,
.pn-home .pn-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 13px 12px 13px 16px;
    border: 1px solid var(--pn-border);
    border-radius: 12px;
    background: var(--pn-card);
    color: var(--pn-ink);
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pn-check-items a {
    background: var(--pn-page);
}

.pn-check-items a:hover,
.pn-home .pn-tile:hover {
    border-color: rgba(10, 71, 95, 0.3);
    background: var(--pn-card);
    color: var(--pn-ink);
}

.pn-check-items i {
    flex: none;
    width: 22px;
    color: var(--pn-ink);
    font-size: 18px;
    text-align: center;
}

.pn-check-items strong,
.pn-tile strong {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.25;
}

.pn-check-items small,
.pn-tile small {
    display: block;
    margin-top: 3px;
    color: var(--pn-muted);
    font-size: 13.5px;
    line-height: 1.35;
}

.pn-report {
    display: flex;
    flex-direction: column;
}

.pn-report-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 16px 0 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--pn-page);
    list-style: none;
}

.pn-report-list li {
    position: relative;
    padding-left: 26px;
    color: var(--pn-text);
    font-size: 14.5px;
    font-weight: 600;
}

.pn-report-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--pn-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.pn-home .pn-report-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    color: var(--pn-muted);
    font-size: 14px;
}

.pn-report-meta i {
    color: var(--pn-ink);
}

/* ---------- Subscription plans (two equal cards) -------------------- */
.pn-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.pn-promo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.pn-promo .pn-panel-icon {
    margin-bottom: 16px;
}

/* ---------- Expert help tiles ---------------------------------------- */
.pn-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pn-home .pn-tile {
    padding: 16px;
    border-radius: var(--pn-radius);
    box-shadow: var(--pn-shadow);
}

/* ---------- Guidance: how it works, sample reports, chat + FAQs ------ */
/* (front/home_guide.php) */
.pn-home .pn-textlink-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pn-home .pn-textlink-icon i {
    color: #c4302b;               /* video play icon */
    font-size: 18px;
}

/* How it works */
.pn-how-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 22px;
}

.pn-how-head .pn-head {
    margin: 0;
}

.pn-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.pn-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 22px;
    border: 1px solid var(--pn-border);
    border-radius: var(--pn-radius);
    background: var(--pn-page);
}

/* connector arrow between steps (desktop row only) */
.pn-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 38px;
    right: -13px;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(10, 71, 95, 0.35);
    border-right: 2px solid rgba(10, 71, 95, 0.35);
    transform: rotate(45deg);
}

.pn-step-no {
    position: absolute;
    top: 16px;
    right: 18px;
    color: rgba(10, 71, 95, 0.16);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}

.pn-step-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--pn-ink);
    color: #fff;
    font-size: 18px;
}

.pn-steps strong {
    color: var(--pn-ink);
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.3;
}

.pn-steps small {
    margin-top: 6px;
    color: var(--pn-muted);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

/* Sample reports: featured comprehensive sample (~40%) + 2x2 grid of single checks */
.pn-samples {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 16px;
}

.pn-sample-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px;
    border: 1px solid #21735c;
    border-radius: var(--pn-radius);
    background: #eaf6f0;
}

.pn-sample-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #21735c;
    color: #fff;                  /* 5.7:1 */
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pn-sample-feature-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pn-sample-feature .pn-sample-ico {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(33, 115, 92, 0.18);
    color: #21735c;
}

.pn-home .pn-sample-feature .pn-text {
    margin-top: 10px;
    color: #3f5a52;               /* 6.8:1 on #eaf6f0 */
}

.pn-sample-feature .pn-actions-row {
    padding-top: 18px;
}

.pn-sample-feature .pn-btn i {
    font-size: 13px;
}

.pn-home .pn-sample-feature .pn-textlink {
    color: #1b5f4c;
}

.pn-sample-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pn-sample-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--pn-border);
    border-radius: 14px;
    background: #fff;
}

.pn-sample-ico {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--pn-icon-bg);
    color: var(--pn-ink);
    font-size: 18px;
}

.pn-sample-card strong {
    color: var(--pn-ink);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
}

.pn-sample-links {
    grid-column: 1 / -1;
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding-top: 8px;
    border-top: 1px solid var(--pn-line);
}

.pn-home .pn-sample-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    color: var(--pn-ink);
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
}

.pn-home .pn-sample-links a:hover {
    color: var(--pn-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pn-sample-links i {
    font-size: 13px;
}

/* Help: chat card (left) + FAQs (right) */
.pn-guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.pn-chat {
    padding: 24px;
    border-top: 3px solid var(--pn-ink);
}

.pn-home .pn-chat-desc {
    margin: 4px 0 0;
    color: var(--pn-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* Proclee AI Assistant (homepage help card) */
.pn-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.pn-ai-head {
    align-items: flex-start;
}

.pn-ai-head > div {
    flex: 1 1 auto;
    min-width: 0;
}

.pn-home .pn-ai-new {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--pn-border);
    border-radius: 999px;
    background: #fff;
    color: var(--pn-ink);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.pn-home .pn-ai-new[hidden] {
    display: none;
}

.pn-home .pn-ai-new:hover {
    background: #edf7fb;
}

.pn-ai-box {
    display: flex;
    flex-direction: column;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--pn-border);
    border-radius: 12px;
    background: #fff;
}

/* One scroll area (the conversation); fixed on tablet/desktop so the card never jumps */
.pn-ai-log {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 380px;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
}

.pn-ai-log:focus-visible {
    outline: 2px solid var(--pn-focus);
    outline-offset: -2px;
}

.pn-ai-msg {
    max-width: 92%;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

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

.pn-ai-msg p + p,
.pn-ai-msg p + ul,
.pn-ai-msg ul + p {
    margin-top: 8px;
}

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

.pn-ai-bot {
    align-self: flex-start;
    border-radius: 4px 14px 14px 14px;
    background: #edf7fb;
    color: var(--pn-text);
}

.pn-ai-user {
    align-self: flex-end;
    border-radius: 14px 4px 14px 14px;
    background: var(--pn-ink);
    color: #fff;
}

.pn-ai-error {
    background: #fff4e8;
}

/* Service recommendations: deterministic name, live price and link from the server */
.pn-home .pn-ai-cards {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

.pn-home .pn-chat a.pn-ai-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--pn-border);
    border-radius: 10px;
    background: #fff;
    color: var(--pn-text);
    font-weight: 400;
    text-decoration: none;
}

.pn-home .pn-chat a.pn-ai-card:hover {
    border-color: #21735c;
    background: #eaf6f0;
}

.pn-home .pn-chat a.pn-ai-card:focus-visible {
    outline: 2px solid var(--pn-focus);
    outline-offset: 2px;
}

.pn-ai-card-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.pn-ai-card-text {
    overflow-wrap: normal;
}

.pn-home .pn-chat .pn-ai-msg a:not(.pn-ai-card),
.pn-home .pn-chat .pn-chat-alt a {
    color: var(--pn-ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pn-ai-card-text strong {
    color: var(--pn-ink);
    font-size: 14.5px;
    font-weight: 700;
}

.pn-ai-card-text small {
    color: var(--pn-muted);
    font-size: 13px;
    line-height: 1.4;
}

.pn-ai-price {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eaf6f0;
    color: #1b5f4c;               /* 6.4:1 on #eaf6f0 */
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.pn-ai-chev {
    flex: 0 0 auto;
    color: var(--pn-ink);
    font-size: 12px;
}

.pn-home .pn-ai-samples,
.pn-home .pn-ai-sources,
.pn-home .pn-ai-handoff {
    font-size: 14px;
}

.pn-home .pn-ai-sources {
    color: var(--pn-muted);
}

.pn-ai-typing {
    display: flex;
    gap: 5px;
    padding: 14px 16px;
}

.pn-ai-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pn-ink);
    opacity: 0.35;
    animation: pnAiDot 1.2s infinite ease-in-out;
}

.pn-ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.pn-ai-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes pnAiDot {
    0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
    40% { opacity: 0.9; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .pn-ai-typing span { animation: none; opacity: 0.6; }
}

.pn-ai-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 0 0;
}

.pn-ai-suggest[hidden] {
    display: none;
}

.pn-home .pn-ai-chip {
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid rgba(10, 71, 95, 0.28);
    border-radius: 999px;
    background: #fff;
    color: var(--pn-ink);
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.pn-home .pn-ai-chip:hover {
    background: #edf7fb;
}

.pn-ai-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--pn-border);
    background: var(--pn-page);
}

.pn-home .pn-ai-form textarea {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    max-height: 120px;
    padding: 11px 12px;
    border: 1px solid rgba(10, 71, 95, 0.25);
    border-radius: 10px;
    background: #fff;
    color: var(--pn-text);
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
    resize: none;
}

.pn-home .pn-ai-form textarea:focus {
    border-color: var(--pn-focus);
    outline: 2px solid rgba(11, 110, 138, 0.25);
    outline-offset: 0;
}

.pn-home .pn-ai-send {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--pn-orange);
    color: #10202a;               /* 7.9:1 on the orange */
    font-size: 16px;
    cursor: pointer;
}

.pn-home .pn-ai-send:hover {
    background: var(--pn-orange-hover);
}

.pn-home .pn-ai-send:disabled {
    cursor: progress;
    opacity: 0.6;
}

.pn-home .pn-ai-fine {
    margin: 10px 0 0;
    color: var(--pn-muted);
    font-size: 13px;
    line-height: 1.45;
}

.pn-home .pn-faq summary:focus-visible,
.pn-home .pn-ai-chip:focus-visible,
.pn-home .pn-ai-new:focus-visible,
.pn-home .pn-ai-send:focus-visible {
    outline: 2px solid var(--pn-focus);
    outline-offset: 3px;
}

.pn-faq > .pn-h3 {
    margin-bottom: 12px;
}

.pn-faq details {
    border: 1px solid var(--pn-border);
    border-radius: 12px;
    background: #fff;
}

.pn-faq details + details {
    margin-top: 10px;
}

.pn-faq details[open] {
    border-color: rgba(10, 71, 95, 0.3);
    background: var(--pn-page);
}

.pn-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    color: var(--pn-ink);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

.pn-faq summary::-webkit-details-marker {
    display: none;
}

.pn-faq summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    margin-top: -4px;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.pn-faq details[open] summary::after {
    margin-top: 4px;
    transform: rotate(225deg);
}

.pn-home .pn-faq details p {
    margin: 0;
    padding: 0 18px 16px;
    color: var(--pn-text);
    font-size: 15px;
    line-height: 1.6;
}

.pn-faq details a {
    color: var(--pn-ink);
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    .pn-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pn-steps li:nth-child(2)::after {
        display: none;
    }

}

@media (max-width: 991.98px) {
    .pn-guide {
        grid-template-columns: 1fr;   /* chat first, FAQs beneath */
    }

    .pn-samples {
        grid-template-columns: 1fr;   /* featured sample first, then the 2x2 grid */
    }
}

@media (max-width: 575.98px) {
    .pn-steps {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pn-steps li {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: 14px;
        padding: 14px 16px;
    }

    .pn-steps li::after {
        display: none;
    }

    .pn-step-icon {
        grid-row: span 2;
        width: 40px;
        height: 40px;
        margin: 0;
        font-size: 16px;
    }

    .pn-step-no {
        top: 12px;
        right: 14px;
        font-size: 30px;
    }

    .pn-steps small {
        margin-top: 2px;
    }

    .pn-sample-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pn-sample-feature {
        padding: 18px;
    }

    .pn-sample-feature .pn-actions-row .pn-btn {
        width: 100%;
    }

    .pn-sample-card {
        row-gap: 4px;
        padding: 12px 14px;
    }

    .pn-sample-links {
        grid-column: 2;
        padding-top: 0;
        border-top: 0;
    }

    .pn-sample-links a {
        min-height: 30px;
    }

    .pn-chat {
        padding: 18px;
    }

    /* phones: compact until the visitor asks something, then the conversation grows up to ~60% of the screen */
    .pn-ai-log {
        height: auto;
        max-height: min(60vh, 440px);
        padding: 12px;
    }

    .pn-ai-started .pn-ai-log {
        min-height: min(45vh, 320px);
    }

    .pn-ai-msg {
        max-width: 96%;
    }

    .pn-home .pn-ai-chip {
        font-size: 13.5px;
    }

    .pn-home .pn-chat a.pn-ai-card {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .pn-ai-card-text {
        flex-basis: calc(100% - 24px);
    }

    .pn-ai-price {
        order: 3;
    }

    .pn-ai-chev {
        order: 2;
    }

    .pn-home .pn-ai-chip:nth-child(n+4) {
        display: none;            /* three suggestions keep the card short on phones */
    }

    .pn-faq summary {
        padding: 14px 15px;
        font-size: 15px;
    }

    .pn-home .pn-faq details p {
        padding: 0 15px 14px;
    }
}

/* ---------- Free auction alerts (front/home_alerts.php) ----------- */
.pn-alerts {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
    align-items: start;
}

.pn-alerts-points {
    display: grid;
    gap: 10px;
    margin: 18px 0 20px;
    padding: 0;
    list-style: none;
}

.pn-alerts-points li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    color: var(--pn-text);
    font-size: 15px;
    line-height: 1.5;
}

.pn-alerts-points i {
    width: 18px;
    color: #21735c;
}

.pn-home .pn-alerts-browse i {
    margin-left: 4px;
    font-size: 12px;
}

.pn-alerts-form {
    padding: 22px;
    border-top: 3px solid var(--pn-orange);
}

.pn-af-step {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.pn-af-step[hidden] {
    display: none;
}

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

.pn-af-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.pn-af-wide {
    grid-column: 1 / -1;
}

.pn-af-field > span {
    color: var(--pn-ink);
    font-size: 14px;
    font-weight: 600;
}

.pn-af-field > span b {
    color: #b45309;
}

.pn-af-field > span small {
    color: var(--pn-muted);
    font-size: 13px;
    font-weight: 400;
}

.pn-home .pn-af-field input,
.pn-home .pn-af-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(10, 71, 95, 0.25);
    border-radius: 10px;
    background: #fff;
    color: var(--pn-text);
    font: inherit;
    font-size: 15px;
}

.pn-home .pn-af-field input:focus,
.pn-home .pn-af-field select:focus {
    border-color: var(--pn-focus);
    outline: 2px solid rgba(11, 110, 138, 0.25);
    outline-offset: 0;
}

.pn-af-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0 16px;
    color: var(--pn-text);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.pn-af-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--pn-ink);
}

.pn-home .pn-af-cta {
    border: 0;
    cursor: pointer;
}

.pn-home .pn-af-cta:disabled,
.pn-home #pnAfVerify:disabled {
    cursor: progress;
    opacity: 0.7;
}

.pn-af-otp-note {
    margin: 0 0 12px;
    color: var(--pn-text);
    font-size: 15px;
}

.pn-af-otp-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.pn-af-otp-row .pn-af-field {
    max-width: 160px;
}

.pn-home #pnAfVerify {
    border: 0;
    cursor: pointer;
}

.pn-af-otp-actions {
    display: flex;
    gap: 18px;
    margin: 12px 0 0;
}

.pn-home .pn-af-link {
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--pn-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.pn-home .pn-af-link:disabled {
    color: var(--pn-muted);
    text-decoration: none;
    cursor: default;
}

.pn-af-status {
    margin: 12px 0 0;
    font-size: 14.5px;
    line-height: 1.5;
}

.pn-af-status:empty {
    display: none;
}

.pn-af-status.pn-af-error {
    color: #9a3412;
}

.pn-af-status.pn-af-ok {
    padding: 12px 14px;
    border-radius: 10px;
    background: #eaf6f0;
    color: #1b5f4c;
    font-weight: 600;
}

.pn-af-status a {
    color: var(--pn-ink);
    font-weight: 700;
}

.pn-home .pn-af-cta:focus-visible,
.pn-home #pnAfVerify:focus-visible,
.pn-home .pn-af-link:focus-visible,
.pn-af-consent input:focus-visible {
    outline: 2px solid var(--pn-focus);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .pn-alerts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 575.98px) {
    .pn-alerts-form {
        padding: 18px;
    }

    .pn-af-grid {
        grid-template-columns: 1fr;
    }

    .pn-home .pn-af-cta {
        width: 100%;
    }

    .pn-af-otp-row {
        flex-wrap: wrap;
    }

    .pn-af-otp-row .pn-af-field {
        max-width: none;
        flex: 1 1 100%;
    }

    .pn-home #pnAfVerify {
        width: 100%;
    }

    .pn-alerts-points {
        margin: 12px 0 14px;
    }
}

/* ---------- Footer (homepage only: front/home_footer.php) ----------- */
.pn-foot {
    --pf-text: #d6e9e8;          /* description / body text */
    --pf-link: #bfdad5;          /* navigation links */
    --pf-hi: #a8e0cc;            /* highlight text (company name, icons) */
    --pf-hover: #f8b35d;         /* link hover */
    --pf-copy: #a9cdca;          /* copyright strip text */
    background: #0a475f;
    color: var(--pf-text);
}

.pn-foot *,
.pn-foot *::before,
.pn-foot *::after {
    box-sizing: border-box;
}

.pn-foot-wrap {
    max-width: 2000px;
    margin: 0 auto;
    padding-left: var(--pn-gutter);
    padding-right: var(--pn-gutter);
}

.pn-foot-main {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 40px 48px;
    padding-top: 56px;
    padding-bottom: 48px;
}

.pn-foot a {
    color: var(--pf-link);
    text-decoration: none;
}

.pn-foot a:hover {
    color: var(--pf-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pn-foot a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* brand column */
.pn-foot .pn-foot-logo {
    display: block;
    width: 116px;
    padding: 6px 10px;
    border-radius: 12px;
    background: #fff;            /* dark logo artwork needs a light chip */
}

.pn-foot-logo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 500 / 370;     /* trims the empty bands above and below the artwork */
    object-fit: cover;
}

.pn-foot .pn-foot-desc {
    max-width: 34em;
    margin: 20px 0 0;
    color: var(--pf-text);
    font-size: 15px;
    line-height: 1.6;
}

.pn-foot .pn-foot-meta {
    margin: 12px 0 0;
    color: var(--pf-text);
    font-size: 14px;
    line-height: 1.5;
}

.pn-foot-meta strong {
    color: var(--pf-hi);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.pn-foot-creds {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.pn-foot-creds li {
    padding: 5px 11px;
    border: 1px solid rgba(168, 224, 204, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--pf-text);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
}

/* link columns */
.pn-foot .pn-foot-h {
    margin: 0 0 14px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pn-foot .pn-foot-h-social {
    margin-top: 28px;
}

.pn-foot-links,
.pn-foot-contact,
.pn-foot-social,
.pn-foot-legal {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pn-foot-links li + li {
    margin-top: 6px;
}

.pn-foot-links a {
    display: inline-block;
    padding: 3px 0;              /* ~27px tall targets */
    font-size: 14.5px;
    line-height: 1.45;
}

.pn-foot-contact li + li {
    margin-top: 10px;
}

.pn-foot-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
    font-size: 14.5px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.pn-foot-contact i {
    width: 16px;
    color: var(--pf-hi);
    text-align: center;
}

.pn-foot-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pn-foot .pn-foot-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(191, 218, 213, 0.5);
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font-size: 16px;
}

.pn-foot .pn-foot-social a:hover {
    border-color: var(--pf-hover);
    background: rgba(248, 179, 93, 0.1);
    color: var(--pf-hover);
    text-decoration: none;
}

/* copyright + legal links */
.pn-foot-bottom {
    background: #083b4e;
}

.pn-foot-bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.pn-foot .pn-foot-bottom p {
    margin: 0;
    color: var(--pf-copy);
    font-size: 13.5px;
    line-height: 1.5;
}

.pn-foot .pn-foot-bottom p a {
    color: var(--pf-copy);
    font-weight: 600;
}

.pn-foot .pn-foot-bottom p a:hover {
    color: var(--pf-hover);
}

.pn-foot-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.pn-foot .pn-foot-legal a {
    display: inline-block;
    padding: 3px 0;
    color: var(--pf-copy);
    font-size: 13.5px;
}

.pn-foot .pn-foot-legal a:hover {
    color: var(--pf-hover);
}

@media (max-width: 1199.98px) {
    .pn-foot-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px 32px;
    }

    .pn-foot-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .pn-foot-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 20px;
        padding-top: 40px;
        padding-bottom: 36px;
    }

    .pn-foot-brand,
    .pn-foot-main > .pn-foot-col:last-child {
        grid-column: 1 / -1;
    }

    .pn-foot .pn-foot-logo {
        width: 104px;
    }

    .pn-foot-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Responsive ----------------------------------------------- */
@media (max-width: 1199.98px) {
    .pn-checks-grid {
        grid-template-columns: 1fr;
    }

    .pn-promo {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        column-gap: 16px;
    }

    .pn-promo .pn-panel-icon {
        grid-row: span 3;
        margin: 0;
    }

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

@media (max-width: 575.98px) {
    .pn-home {
        padding-bottom: 48px;
    }

    .pn-head {
        margin-bottom: 18px;
    }

    .pn-home .pn-lede {
        font-size: 15px;
    }

    .pn-checks-list,
    .pn-report,
    .pn-promo {
        padding: 18px;
    }

    .pn-promo {
        display: flex;
    }

    .pn-promo .pn-panel-icon {
        margin-bottom: 12px;
    }

    .pn-check-items,
    .pn-tiles,
    .pn-report-list {
        grid-template-columns: 1fr;
    }

    .pn-check-items {
        gap: 8px;
    }

    .pn-check-items a {
        padding: 11px 10px 11px 14px;
    }

    .pn-check-items small {
        display: none;            /* names are self-explanatory; keeps the list short */
    }

    .pn-actions-row .pn-btn {
        width: 100%;
    }
}

/* ---------- Service colour identities -------------------------------- */
/* One accent per service. --svc: icons, arrows, top borders (graphics, >= 3:1).
   --svc-text: same hue, dark enough for small text (>= 4.5:1 on --svc-soft and white). */
.pn-svc-verify  { --svc: #0a475f; --svc-text: #0a475f; --svc-soft: #edf7fb; --svc-ring: rgba(10, 71, 95, 0.14); }
.pn-svc-gglv    { --svc: #21735c; --svc-text: #1b5f4c; --svc-soft: #eff8f3; --svc-ring: rgba(33, 115, 92, 0.15); }
.pn-svc-tncp    { --svc: #ae6518; --svc-text: #8a4a0e; --svc-soft: #fff5e9; --svc-ring: rgba(174, 101, 24, 0.15); }
.pn-svc-auction { --svc: #315d96; --svc-text: #2a5085; --svc-soft: #eff4fc; --svc-ring: rgba(49, 93, 150, 0.15); }

/* Hero cards: white card, coloured top border, tinted icon tile, accent arrow */
.pn-hero .pn-hcard {
    position: relative;
    border-top: 4px solid var(--svc);
    background: var(--pn-card);   /* white cards on the green hero */
    box-shadow: 0 1px 2px rgba(16, 48, 42, 0.06), 0 14px 28px -20px rgba(16, 48, 42, 0.42);
}

.pn-hero .pn-hcard:hover {
    border-color: var(--svc-ring);
    border-top-color: var(--svc);
    box-shadow: 0 2px 4px rgba(16, 48, 42, 0.06), 0 20px 34px -20px rgba(16, 48, 42, 0.5);
}

.pn-hero .pn-hcard:focus-visible {
    outline: 3px solid var(--svc);
    outline-offset: 3px;
}

.pn-hero .pn-hcard-top {
    margin-bottom: 12px;
}

.pn-hero .pn-hcard-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--svc-soft);   /* tinted tile on the white card */
    box-shadow: 0 0 0 1px var(--svc-ring);
    color: var(--svc);
    font-size: 21px;
}

.pn-hero .pn-hcard-cta {
    border-top-color: var(--svc-ring);
    color: var(--pn-ink);
}

.pn-hero .pn-hcard-arrow {
    background: #fff;
    box-shadow: 0 0 0 1px var(--svc-ring);
    color: var(--svc);
}

.pn-hero .pn-hcard:hover .pn-hcard-arrow,
.pn-hero .pn-hcard:focus-visible .pn-hcard-arrow {
    background: var(--svc);
    box-shadow: none;
    color: #fff;
}

.pn-hero .pn-hcard-free {
    background: #21735c;          /* white on #21735c = 5.7:1 */
}

/* Readability: Gilroy Regular renders thin at small sizes, so descriptions use Medium
   and never drop below 15px; titles get a touch more room. */
.pn-hero .pn-hcard-text {
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.55;
}

.pn-hero .pn-hcard-cta {
    font-size: 15px;
    letter-spacing: 0.005em;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .pn-hero .pn-hcard-text { font-size: 15px; }
}

@media (max-width: 575.98px) {
    .pn-hero .pn-hcard-title { font-size: 18px; line-height: 1.25; }
    .pn-hero .pn-hcard-text { font-size: 15px; line-height: 1.5; }
}

/* Supporting cards: same identities, quieter (white card, accent top line + icon) */
.pn-promo.pn-panel {
    border-top: 3px solid var(--svc);
}

.pn-promo .pn-panel-icon {
    background: var(--svc-soft);
    color: var(--svc);
}

.pn-promo .pn-btn-outline {
    border-color: var(--svc);
    color: var(--svc-text);
}

.pn-promo .pn-btn-outline:hover {
    border-color: var(--svc);
    background: var(--svc-soft);
    color: var(--svc-text);
}

.pn-promo .pn-textlink {
    color: var(--svc-text);
}

/* Individual checks: light blue-teal card, deep-teal accent, white link tiles */
.pn-checks .pn-checks-list.pn-panel {
    border-color: rgba(10, 71, 95, 0.16);
    border-top: 3px solid #0a475f;
    background: #eff7fb;
}

.pn-checks .pn-checks-list .pn-panel-icon {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(10, 71, 95, 0.12);
    color: #0a475f;
}

.pn-checks .pn-check-items a {
    border-color: rgba(10, 71, 95, 0.13);
    background: #fff;
}

.pn-checks .pn-check-items a:hover {
    border-color: rgba(10, 71, 95, 0.4);
    background: #fff;
}

.pn-checks .pn-check-items i {
    color: #0a475f;
}

/* Comprehensive report: soft emerald card, emerald accent; slightly lifted */
.pn-checks .pn-report.pn-panel {
    border-color: rgba(33, 115, 92, 0.22);
    border-top: 3px solid #21735c;
    background: #eaf6f0;
    box-shadow: 0 1px 2px rgba(16, 48, 42, 0.05), 0 16px 30px -22px rgba(16, 70, 52, 0.45);
}

.pn-checks .pn-report .pn-panel-icon {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(33, 115, 92, 0.16);
    color: #21735c;
}

.pn-checks .pn-report-list {
    background: #fff;
}

.pn-checks .pn-report-list li::before {
    background-color: #21735c;
}

.pn-checks .pn-report-meta,
.pn-checks .pn-report .pn-text {
    color: #3f5a52;               /* 6.8:1 on #eaf6f0 */
}

.pn-checks .pn-report-meta i {
    color: #21735c;
}


.pn-checks .pn-report .pn-textlink {
    color: #1b5f4c;
}

/* Comprehensive report: the one prominent orange action in this section */
.pn-report .pn-btn-primary {
    min-height: 52px;
    padding: 14px 26px;
    font-size: 16px;
    box-shadow: 0 12px 22px -14px rgba(214, 110, 10, 0.85);
}

/* ---------- Section background rhythm -------------------------------- */
.pn-home {
    padding-bottom: 0;
    background: var(--pn-page);
}

.pn-home .pn-section {
    padding-top: var(--pn-space);
    padding-bottom: var(--pn-space);
}

.pn-bg-page  { background: var(--pn-page); }
.pn-bg-white { background: #fff; }
.pn-bg-tint  { background: var(--pn-tint); }

/* hero (ends #e5f0ed) eases into the first section (#f7fafc): no hard edge */
.pn-home .pn-checks.pn-bg-page {
    padding-top: 8px;
    background: linear-gradient(180deg, var(--pn-hero-end) 0, var(--pn-page) 160px);
}

.pn-bg-tint .pn-panel {
    border-color: rgba(10, 71, 95, 0.1);
}

.pn-bg-tint .pn-promo.pn-panel {
    border-top-color: var(--svc);
}

@media (max-width: 575.98px) {
    /* phones: keep the colour cues small - thinner top border, same soft tints */
    .pn-hero .pn-hcard {
        border-top-width: 3px;
    }

    .pn-hero .pn-hcard-icon {
        width: 46px;
        height: 46px;
        font-size: 19px;
    }

    .pn-hero .pn-hcard {
        grid-template-columns: 46px minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .pn-plans { grid-template-columns: 1fr; gap: 14px; }
}


@media (prefers-reduced-motion: reduce) {
    .pn-header *,
    .pn-hero *,
    .pn-home * {
        transition: none !important;
    }
}
