.pi-content-card:has(.home-page) {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.home-page {
    color: #18202f;
    background: #f5f7fa;
}

body.pi-public .pi-main:has(.home-page) {
    padding-top: 0;
    padding-bottom: 0;
}

.home-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 68px 8% 78px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(10, 20, 32, .96), rgba(21, 45, 62, .86)),
        #101827;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 160px;
    background: linear-gradient(180deg, rgba(245, 247, 250, 0), #f5f7fa);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    flex: 0 1 680px;
    width: min(680px, 100%);
    color: #ffffff;
}

.hero-image {
    position: relative;
    z-index: 2;
    flex: 0 1 520px;
    min-width: 320px;
}

.hero-image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: zoom-in;
}

.hero-image-button:focus-visible {
    outline: 3px solid #78e0c4;
    outline-offset: 4px;
}

.hero-image-button img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.image-modal-open {
    overflow: hidden;
}

.image-modal[hidden] {
    display: none;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: start center;
    padding: 48px 28px 28px;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 12, 20, .82);
    cursor: zoom-out;
}

.image-modal-content {
    position: relative;
    z-index: 1;
    width: min(1120px, 94vw);
    max-height: 90vh;
    border-radius: 8px;
}

.image-modal-content img {
    display: block;
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

.image-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d8e0ea;
    border-radius: 50%;
    background: #ffffff;
    color: #172033;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.image-modal-close:focus-visible {
    outline: 3px solid #78e0c4;
    outline-offset: 3px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(47, 185, 149, .16);
    color: #78e0c4;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0 0;
    max-width: 760px;
    font-size: 4.25rem;
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 640px;
    margin: 22px 0 0;
    color: #d7dee8;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn-primary,
.btn-secondary,
.plan-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.btn-primary,
.plan-button {
    border: 1px solid #2fb995;
    background: #2fb995;
    color: #08251f;
}

.btn-primary:hover,
.plan-button:hover {
    background: #27a886;
    border-color: #27a886;
    color: #061c18;
}

.btn-secondary,
.plan-button.secondary {
    border: 1px solid rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.btn-secondary:hover,
.plan-button.secondary:hover {
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
}

.trust-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: -42px 8% 0;
    position: relative;
    z-index: 3;
    overflow: hidden;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #dfe5ed;
}

.trust-band div {
    min-height: 92px;
    padding: 20px;
    background: #ffffff;
}

.trust-band strong,
.workflow-list strong {
    display: block;
    color: #172033;
}

.trust-band span {
    display: block;
    margin-top: 6px;
    color: #667386;
}

.feature-section,
.workflow-section,
.pricing-section {
    padding: 20px 8%;
}

.section-heading {
    max-width: 800px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-heading-left {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.section-heading h2,
.workflow-copy h2 {
    margin: 16px 0 0;
    color: #172033;
    font-size: 2.4rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.section-heading p,
.workflow-copy p {
    margin: 14px 0 0;
    color: #667386;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-grid article,
.plan-card {
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #ffffff;
}

.feature-grid article {
    min-height: 230px;
    padding: 22px;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #eef7f4;
    color: #0f7661;
    font-size: .86rem;
    font-weight: 900;
}

.feature-grid h3,
.plan-card h3 {
    margin: 18px 0 0;
    color: #172033;
    font-size: 1.15rem;
}

.feature-grid p,
.plan-card p,
.workflow-list p {
    margin: 10px 0 0;
    color: #667386;
    line-height: 1.65;
}

.workflow-section {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
    gap: 32px;
    align-items: start;
    background: #ffffff;
    border-top: 1px solid #e4eaf1;
    border-bottom: 1px solid #e4eaf1;
}

.workflow-list {
    display: grid;
    gap: 14px;
}

.workflow-list div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px 18px;
    padding: 18px;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #f8fafc;
}

.workflow-list span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #172033;
    color: #ffffff;
    font-weight: 900;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 440px;
    padding: 22px;
}

.plan-card.featured {
    border-color: #2fb995;
    background: #F5F9FF;
    box-shadow: 0 18px 42px rgba(47, 185, 149, .14);
}

.plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 8px;
    background: #fff2d8;
    color: #92400e;
    font-size: .75rem;
    font-weight: 900;
}

.plan-header {
    min-height: 108px;
    padding-right: 94px;
}

.plan-header p {
    max-width: 260px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: 60px;
    margin-top: 10px;
}

.price-row strong {
    color: #172033;
    font-size: 2.35rem;
    line-height: 1;
}

.price-row span {
    color: #667386;
    font-weight: 700;
}

.plan-card ul {
    flex: 1;
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
}

.plan-card li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    color: #334155;
    line-height: 1.45;
}

.plan-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2fb995;
}

.plan-button {
    width: 100%;
}

@media (max-width: 1180px) {
    .home-hero {
        gap: 34px;
    }

    .hero-copy h1 {
        font-size: 3.35rem;
    }

    .feature-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .home-hero {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 72px 22px 96px;
    }

    .hero-copy h1 {
        font-size: 2.45rem;
    }

    .hero-image {
        width: 100%;
        min-width: 0;
    }

    .trust-band {
        grid-template-columns: 1fr;
        margin: -34px 22px 0;
    }

    .feature-section,
    .workflow-section,
    .pricing-section {
        padding: 68px 22px;
    }

    .workflow-section,
    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .workflow-copy h2 {
        font-size: 2rem;
    }

    .plan-card {
        min-height: auto;
    }
}

@media (max-width: 520px) {
    .hero-actions,
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .workflow-list div {
        grid-template-columns: 1fr;
    }

    .workflow-list span {
        grid-row: auto;
    }

    .plan-header {
        padding-right: 0;
    }

    .plan-badge {
        position: static;
        width: fit-content;
        margin-bottom: 12px;
    }
}
