:root {
    --bpp-ink: #10243b;
    --bpp-navy: #08233e;
    --bpp-deep: #06192d;
    --bpp-red: #c72d3f;
    --bpp-red-dark: #a82033;
    --bpp-teal: #138979;
    --bpp-muted: #617184;
    --bpp-line: #dce4e9;
    --bpp-soft: #f3f6f7;
    --bpp-white: #fff;
    --bpp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--bpp-ink);
    background: #fff;
    font-family: var(--bpp-font);
    font-size: 16px;
    line-height: 1.7;
}

body.bpp-lock {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

.bpp-shell {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.bpp-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 750;
    line-height: 1.3;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.bpp-button:hover {
    transform: translateY(-2px);
}

.bpp-button-primary {
    color: #fff;
    background: var(--bpp-red);
}

.bpp-button-primary:hover {
    color: #fff;
    background: var(--bpp-red-dark);
}

.bpp-button-secondary {
    color: var(--bpp-navy);
    border-color: #c7d3db;
    background: #fff;
}

.bpp-button-secondary:hover {
    border-color: var(--bpp-teal);
}

.bpp-eyebrow {
    margin: 0 0 12px;
    color: var(--bpp-teal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.bpp-page-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: var(--bpp-deep);
}

.bpp-page-hero::before {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    content: "";
}

.bpp-page-hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 20, 35, .94), rgba(4, 20, 35, .68) 52%, rgba(4, 20, 35, .28));
    content: "";
}

.bpp-page-hero--insights::before {
    background-image: url("https://wxmanager-1258265833.cos.ap-nanjing.myqcloud.com/coipormanager/blog/071701.png");
    background-position: center 40%;
}

.bpp-page-hero--lawyers::before {
    background-image: url("https://wxmanager-1258265833.cos.ap-nanjing.myqcloud.com/static/assets/images/background/lawyers-team.jpg");
}

.bpp-page-hero--contact::before {
    background-image: url("../images/bplan-home-hero-v2.png");
    background-position: center 42%;
}

.bpp-page-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 74px;
    padding-bottom: 58px;
}

.bpp-page-hero .bpp-eyebrow {
    color: #6dd7c9;
}

.bpp-page-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 760;
    line-height: 1.16;
    letter-spacing: 0;
}

.bpp-insights-title .bpp-title-line {
    display: block;
}

.bpp-page-hero p:not(.bpp-eyebrow) {
    max-width: 700px;
    margin: 16px 0 0;
    color: #d5e1e9;
    font-size: 18px;
}

.bpp-section {
    padding: 88px 0;
}

.bpp-section--soft {
    background: var(--bpp-soft);
}

.bpp-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    align-items: end;
    gap: 70px;
    margin-bottom: 42px;
}

.bpp-section-heading h2 {
    margin: 0;
    color: var(--bpp-navy);
    font-size: clamp(32px, 3.3vw, 44px);
    line-height: 1.28;
    letter-spacing: 0;
}

.bpp-section-heading > p {
    margin: 0 0 4px;
    color: var(--bpp-muted);
}

.bpp-section-heading--lawyers {
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, .65fr);
    align-items: center;
    gap: 54px;
}

.bpp-section-heading--lawyers h2 {
    max-width: 760px;
    font-size: clamp(34px, 2.65vw, 40px);
    font-weight: 720;
    line-height: 1.34;
}

.bpp-section-heading--lawyers > p {
    max-width: 390px;
    justify-self: end;
    line-height: 1.85;
}

.bpp-section--insights-feed {
    padding-top: 64px;
}

.bpp-section-heading--feed {
    grid-template-columns: minmax(180px, .6fr) minmax(420px, 1.4fr);
    align-items: center;
    gap: 48px;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--bpp-line);
}

.bpp-section-heading--feed .bpp-eyebrow {
    margin-bottom: 0;
}

.bpp-section-heading--feed > p {
    max-width: 620px;
    justify-self: end;
    line-height: 1.8;
}

.bpp-service-strip {
    border-bottom: 1px solid var(--bpp-line);
    background: #fff;
}

.bpp-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.bpp-service-item {
    min-height: 116px;
    display: grid;
    grid-template-columns: 46px 1fr;
    align-content: center;
    gap: 16px;
    padding: 24px 30px;
    border-right: 1px solid var(--bpp-line);
}

.bpp-service-item:first-child {
    padding-left: 0;
}

.bpp-service-item:last-child {
    border-right: 0;
}

.bpp-service-item > span {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--bpp-teal);
    background: #e0f4f1;
    font-weight: 850;
}

.bpp-service-item strong {
    display: block;
    color: var(--bpp-navy);
}

.bpp-service-item small {
    display: block;
    margin-top: 2px;
    color: var(--bpp-muted);
    font-size: 13px;
}

/* Insights */
.bpp-insights-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 56px;
    align-items: start;
}

.bpp-feature-story {
    display: grid;
    grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr);
    min-height: 420px;
    overflow: hidden;
    border: 1px solid var(--bpp-line);
    border-radius: 8px;
    background: #fff;
}

.bpp-feature-media {
    min-height: 360px;
    overflow: hidden;
}

.bpp-feature-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bpp-feature-copy {
    display: flex;
    flex-direction: column;
    padding: 38px;
}

.bpp-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--bpp-teal);
    font-size: 13px;
    font-weight: 700;
}

.bpp-feature-copy h2 {
    margin: 22px 0 16px;
    color: var(--bpp-navy);
    font-size: 30px;
    line-height: 1.38;
}

.bpp-feature-copy p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--bpp-muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.bpp-feature-copy .bpp-button {
    width: fit-content;
    margin-top: auto;
}

.bpp-insights-side {
    border-top: 3px solid var(--bpp-red);
    padding-top: 22px;
}

.bpp-insights-side h3 {
    margin: 0 0 16px;
    color: var(--bpp-navy);
    font-size: 20px;
}

.bpp-category-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bpp-category-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--bpp-line);
    color: #40546a;
}

.bpp-category-list span {
    min-width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bpp-muted);
    background: var(--bpp-soft);
    font-size: 12px;
}

.bpp-insight-note {
    margin-top: 30px;
    padding: 22px;
    border-radius: 8px;
    color: #d4e2eb;
    background: var(--bpp-navy);
}

.bpp-insight-note strong {
    display: block;
    color: #fff;
}

.bpp-insight-note p {
    margin: 8px 0 0;
    font-size: 13px;
}

/* Lawyers */
.bpp-lawyer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.bpp-lawyer {
    overflow: hidden;
    border: 1px solid var(--bpp-line);
    border-radius: 8px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.bpp-lawyer:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(8, 35, 60, .12);
}

.bpp-lawyer-media {
    aspect-ratio: 4 / 3;
    display: block;
    overflow: hidden;
    background: #e9eef1;
}

.bpp-lawyer-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: transform .35s ease;
}

.bpp-lawyer:hover .bpp-lawyer-media img {
    transform: scale(1.025);
}

.bpp-lawyer-copy {
    padding: 24px;
}

.bpp-lawyer-copy h2 {
    margin: 0;
    color: var(--bpp-navy);
    font-size: 22px;
}

.bpp-lawyer-role {
    min-height: 48px;
    margin-top: 7px;
    color: var(--bpp-muted);
    font-size: 14px;
}

.bpp-lawyer-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--bpp-red);
    font-size: 14px;
    font-weight: 750;
}

.bpp-lawyer-link::after {
    margin-left: 8px;
    content: "→";
}

.bpp-empty-state {
    grid-column: 1 / -1;
    padding: 50px;
    border: 1px solid var(--bpp-line);
    text-align: center;
    color: var(--bpp-muted);
}

.bpp-lawyer-approach {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--bpp-line);
    background: var(--bpp-line);
    gap: 1px;
}

.bpp-lawyer-approach article {
    min-height: 230px;
    padding: 30px;
    background: #fff;
}

.bpp-lawyer-approach span {
    color: var(--bpp-red);
    font-size: 13px;
    font-weight: 800;
}

.bpp-lawyer-approach h3 {
    margin: 34px 0 10px;
    color: var(--bpp-navy);
    font-size: 21px;
}

.bpp-lawyer-approach p {
    margin: 0;
    color: var(--bpp-muted);
    font-size: 14px;
}

/* Contact */
.bpp-contact-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

.bpp-contact-details h2 {
    margin: 0;
    color: var(--bpp-navy);
    font-size: 34px;
    line-height: 1.3;
}

.bpp-contact-details > p {
    margin: 16px 0 30px;
    color: var(--bpp-muted);
}

.bpp-contact-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--bpp-line);
    list-style: none;
}

.bpp-contact-list li {
    padding: 19px 0;
    border-bottom: 1px solid var(--bpp-line);
}

.bpp-contact-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--bpp-navy);
    font-size: 14px;
}

.bpp-contact-list a,
.bpp-contact-list span {
    color: var(--bpp-muted);
    font-size: 14px;
}

.bpp-contact-list a:hover {
    color: var(--bpp-red);
}

.bpp-contact-hours {
    margin-top: 26px;
    padding: 20px;
    border-left: 3px solid var(--bpp-teal);
    background: var(--bpp-soft);
}

.bpp-contact-hours strong {
    display: block;
    color: var(--bpp-navy);
}

.bpp-contact-hours span {
    color: var(--bpp-muted);
    font-size: 14px;
}

.bpp-contact-form {
    padding: 38px;
    border: 1px solid var(--bpp-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(8, 35, 60, .08);
}

.bpp-contact-form h2 {
    margin: 0 0 8px;
    color: var(--bpp-navy);
    font-size: 28px;
}

.bpp-contact-form > p {
    margin: 0 0 28px;
    color: var(--bpp-muted);
}

.bpp-field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.bpp-field {
    display: grid;
    gap: 7px;
}

.bpp-field--full {
    grid-column: 1 / -1;
}

.bpp-field label {
    color: #34495e;
    font-size: 13px;
    font-weight: 750;
}

.bpp-field input,
.bpp-field textarea {
    width: 100%;
    border: 1px solid #cbd7de;
    border-radius: 5px;
    color: var(--bpp-ink);
    background: #fff;
    outline: none;
}

.bpp-field input {
    height: 50px;
    padding: 0 14px;
}

.bpp-field textarea {
    min-height: 150px;
    padding: 12px 14px;
    resize: vertical;
}

.bpp-field input:focus,
.bpp-field textarea:focus {
    border-color: var(--bpp-teal);
    box-shadow: 0 0 0 3px rgba(19, 137, 121, .1);
}

.bpp-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
}

.bpp-form-footer small {
    color: var(--bpp-muted);
}

.bpp-form-status {
    min-height: 24px;
    margin: 16px 0 0;
    color: var(--bpp-teal);
    font-size: 14px;
    font-weight: 700;
}

.bpp-form-status.is-error {
    color: var(--bpp-red);
}

.bpp-cta-band {
    padding: 64px 0;
    color: #fff;
    background: var(--bpp-red);
}

.bpp-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.bpp-cta-band h2 {
    margin: 0;
    font-size: 34px;
}

.bpp-cta-band p {
    margin: 8px 0 0;
    color: #ffe9ec;
}

.bpp-cta-band .bpp-button {
    flex: 0 0 auto;
    color: var(--bpp-red);
    background: #fff;
}

.bpp-footer {
    color: #b9c8d4;
    background: #061522;
}

.bpp-footer-main {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 56px;
    padding-top: 66px;
    padding-bottom: 52px;
}

.bpp-footer-brand img {
    width: 166px;
    filter: brightness(0) invert(1);
}

.bpp-footer-brand p {
    max-width: 350px;
    margin: 20px 0 0;
}

.bpp-footer h3 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 15px;
}

.bpp-footer-main > div:not(.bpp-footer-brand) {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.bpp-footer a,
.bpp-footer-main p {
    margin: 4px 0;
    font-size: 14px;
}

.bpp-footer a:hover {
    color: #fff;
}

.bpp-footer-bottom {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 12px;
}

.bpp-footer-bottom p {
    margin: 0;
}

@media (max-width: 900px) {
    .bpp-section {
        padding: 74px 0;
    }

    .bpp-section-heading,
    .bpp-contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bpp-section-heading--lawyers,
    .bpp-section-heading--feed {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bpp-section-heading--lawyers > p,
    .bpp-section-heading--feed > p {
        max-width: 680px;
        justify-self: start;
    }

    .bpp-insights-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .bpp-feature-story {
        grid-template-columns: 1fr;
    }

    .bpp-feature-media {
        aspect-ratio: 16 / 8;
        min-height: 0;
    }

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

    .bpp-footer-main {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .bpp-footer-main > div:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .bpp-shell {
        width: min(100% - 32px, 1200px);
    }

    .bpp-page-hero {
        min-height: 400px;
    }

    .bpp-page-hero::after {
        background: rgba(4, 20, 35, .74);
    }

    .bpp-page-hero h1 {
        font-size: 36px;
    }

    .bpp-page-hero .bpp-insights-title {
        font-size: 31px;
    }

    .bpp-insights-title .bpp-title-line {
        display: block;
    }

    .bpp-section-heading--lawyers h2 {
        font-size: 32px;
    }

    .bpp-section--insights-feed {
        padding-top: 54px;
    }

    .bpp-section-heading--feed {
        margin-bottom: 28px;
        padding-bottom: 18px;
    }

    .bpp-page-hero p:not(.bpp-eyebrow) {
        font-size: 16px;
    }

    .bpp-service-grid,
    .bpp-lawyer-grid,
    .bpp-lawyer-approach,
    .bpp-field-grid {
        grid-template-columns: 1fr;
    }

    .bpp-service-item,
    .bpp-service-item:first-child {
        min-height: 100px;
        padding: 20px 0;
        border-right: 0;
        border-bottom: 1px solid var(--bpp-line);
    }

    .bpp-service-item:last-child {
        border-bottom: 0;
    }

    .bpp-feature-copy,
    .bpp-contact-form {
        padding: 26px;
    }

    .bpp-feature-copy h2 {
        font-size: 25px;
    }

    .bpp-feature-copy .bpp-button {
        width: 100%;
        margin-top: 26px;
    }

    .bpp-field--full {
        grid-column: auto;
    }

    .bpp-form-footer,
    .bpp-cta-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .bpp-form-footer .bpp-button,
    .bpp-cta-band .bpp-button {
        width: 100%;
    }

    .bpp-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 34px 22px;
    }

    .bpp-footer-brand,
    .bpp-footer-main > div:last-child {
        grid-column: 1 / -1;
    }

    .bpp-footer-bottom {
        min-height: 92px;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
    }
}
