.home-shell {
    position: relative;
}

.home-hero {
    position: relative;
    overflow: visible;
    color: var(--Base-White);
}

.home-hero:has(.home-hero-content) {
    width: 100vw;
    height: calc(100vh - 290px);
    min-height: 600px;
    max-height: 420px;
}

.home-hero:not(:has(.white)) {
    clip-path: ellipse(1000px 100% at 50% 0%);
    padding-bottom: 50px;
    background: linear-gradient(180deg, var(--portal-theme-color, #652ea6) 0%, var(--portal-theme-color, #652ea6) 100%);
}

.home-hero .container {
    position: relative;
    z-index: 1;
    padding-top: 0;
}

.home-hero .header-logo {
    height: 40px;
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero .home-hero-content {
    display: flex;
    justify-content: center;
    align-items: start;
    min-height: calc(755px - 120px);
    max-height: 420px;
    text-align: center;
    padding-top: 80px;
}

.home-hero .home-hero__title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 920px;
    margin: 0 auto;
}

.home-hero__eyebrow {
    color: var(--Base-White);
    text-align: center;

    font-family: var(--Font-Family-Body);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    /* 150% */
}

.home-hero__wordmark {
    width: min(580px, 82vw);
    height: auto;
    display: block;
    padding-top: 12px;
    padding-bottom: 16px;
}

.home-hero__subtitle {
    color: var(--Base-White);
    font-family: var(--Font-Family-Title);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 27.593px;
    /* 137.967% */
    text-transform: uppercase;
}

.amber .home-hero__subtitle,
.amber .home-hero__eyebrow {
    color: var(--Base-Black);
}

.home-agreement {
    background: var(--Base-White);
    z-index: 1;
}

.home-agreement .container {
    padding: 20px 16px 40px 16px;
    overflow: hidden;
}

.home-agreement .home-agreement-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}


.home-agreement .home-agreement-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 1.5vw, 22px);
    width: 100%;
    margin-left: 16px;
    margin-right: 16px;
    box-sizing: border-box;
}

.home-agreement .home-agreement-illustration>img {
    width: clamp(16px, 2vw, 30px);
    height: clamp(16px, 2vw, 30px);
}

@media (max-width: 360px) {
    .home-agreement .home-agreement-illustration {
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {

    .home-agreement .container {
        padding-bottom: 40px;
        padding-top: 28px;
    }
}

.home-agreement .home-agreement-illustration img {
    transform: translateY(-12px);
}

.home-agreement .home-agreement-illustration .illustration-item {
    display: flex;
    width: clamp(70px, 15vw, 110px);
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.5vw, 13px);
    flex-shrink: 1;
    min-width: 60px;
    align-self: baseline;
}

.home-agreement .home-agreement-illustration .illustration-item .icon-wrapper {
    display: flex;
    width: clamp(40px, 12vw, 130px);
    height: clamp(40px, 12vw, 130px);
    padding: clamp(2px, 1vw, 6.5px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(2px, 1vw, 6.5px);
}

.home-agreement .home-agreement-illustration .illustration-item img,
.home-agreement .home-agreement-illustration .illustration-item svg {
    width: clamp(10px, 8vw, 88px);
    height: clamp(10px, 8vw, 88px);
    aspect-ratio: 1 / 1;
}

.home-agreement .home-agreement-illustration .illustration-item p {
    color: var(--Base-Black);
    text-align: center;
    font-family: var(--Font-Family-Title);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;

    width: 10ch;
    max-width: 10ch;
    overflow-wrap: break-word;
}

.home-contracts {
    background: color-mix(in srgb, var(--portal-theme-color, #5C2B9C) 3%, white);
}

.home-contracts .container {
    max-width: 1440px;
}

.home-contracts .home-contracts-panel {
    border-radius: 16px;
    background: var(--Base-White, #FFF);
    padding: 20px;
    gap: 20px;
}

.home-contracts .home-contracts-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.home-contracts .home-contracts-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 760px;
}


.home-contracts .home-contracts-header h1 {
    margin: 0;
    color: var(--Base-Black);
}

.home-contracts .home-contracts-header h2 {
    margin: 0;
    margin-bottom: 5px;
    color: var(--Base-Black);
    line-height: 32px;
}

.home-contracts .home-contracts-header h3 {
    color: var(--Base-Black);
    line-height: 36.795px; /* 114.984% */
}

.home-contracts .home-contracts-header p {
    margin: 0;
    color: var(--Base-Black);
    font-family: var(--Font-Family-Body);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
}

.home-contracts .home-contract-types-grid {
    display: flex;
    overflow-x: scroll;
    gap: 16px;
    align-items: flex-start;
    padding-top: 4px;
    white-space: nowrap;
    max-width: 100%;
}

.home-contract-type-item {
    flex-shrink: 0;
    min-width: 0;
    /* Essential to break the intrinsic link */
    overflow: hidden;
}

.home-contracts .home-contract-folder {
    display: block;
    width: auto;
    text-decoration: none;
    transform-origin: center bottom;
    height: auto;
}

.home-contracts .home-contract-folder:hover {
    transform: translateY(-4px);
    filter: saturate(1.04);
    transition: 0.4s;
}

.home-contracts .home-contract-folder:focus-visible {
    outline: 3px solid var(--Primary-Mariner);
    outline-offset: 6px;
    border-radius: 16px;
}

.home-contracts .home-contract-folder svg {
    height: auto;
}

.home-contracts .home-contract-folder-art {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.home-contracts .home-contract-folder-art__label {
    font-family: var(--Font-Family-Title);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.home-contracts .home-contract-folder-art__label tspan {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.home-contracts .home-contracts-empty-state {
    display: flex;
    padding: 16px 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    align-self: stretch;

    --portal-theme-light-color-1: color-mix(in srgb, var(--portal-theme-color) 10%, white);
    --portal-theme-light-color-2: color-mix(in srgb, var(--portal-theme-color) 15%, white);
    --portal-theme-light-color-3: color-mix(in srgb, var(--portal-theme-color) 20%, white);
}

.home-contracts .home-contracts-empty-state__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-contracts .home-contracts-empty-state h3 {
    color: var(--Base-Cod-Gray);
    font-family: var(--Font-Family-Title);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 27px;
    margin: 6px 0 0;
}

.home-contracts .home-contracts-empty-state p {
    color: var(--Base-Cod-Gray);
    font-family: var(--Font-Family-Body);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    margin: 0;
}

.home-contracts .home-contracts-empty-state__icon {
    width: 82px;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(142, 92, 246, 0.12));
}

.existing-clients-date-input {
    border: none;
    color: var(--Grey-Abbey);
    font-family: var(--Font-Family-Body);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    padding: 5px 0px;
}

.existing-clients-date-input-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 170px;
    border-bottom: 1px solid #BFC3C3;
}

input.form-control.existing-clients-date-input {
    clip-path: inset(0 40px 0 0);
    width: calc(100% + 40px);
}

.existing-clients-date-input-icon svg {
    transform: translateX(-3px);
}

.existing-clients-date-hint {
    color: var(--Grey-Abbey);
    font-family: var(--Font-Family-Body);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 171.429% */
    margin: 0;
}

.home-contracts .home-contracts-footer {
    display: flex;
    flex-direction: column;
}

.home-contracts .home-contracts-footer p {
    margin: 0;
    color: var(--Base-Cod-Gray);
    font-family: var(--Font-Family-Body);
    font-size: 18px;
    line-height: 27px;
}

.home-contracts .home-contracts-footer__link {
    color: var(--portal-theme-color);
    font-size: 18px;
    line-height: 27px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.latest-updates {
    background: color-mix(in srgb, var(--portal-theme-color, #5C2B9C) 15%, white);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.latest-updates h2 {
    margin: 0;
    color: var(--Base-Black);
    margin-bottom: 40px;
}

.latest-updates .latest-updates__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.latest-updates .latest-updates__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(255, 255, 255, 0.40);
    border: 1px solid white;
    border-bottom: 0;
    border-radius: 10px;
    padding: 20px;
}

.latest-updates .latest-updates__document {
    min-width: 0;
    display: flex;
    gap: 16px;
}

.latest-updates .latest-updates__document a {
    flex: 1;
    min-width: 0;
    color: var(--Base-Black-Pearl);
    font-family: var(--Font-Family-Title);
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 36px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    overflow-wrap: anywhere;
}

.latest-updates .latest-updates__icon-wrapper {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 3.692px 6.154px;
    justify-content: center;
    align-items: center;
    gap: 2.462px;
    border-radius: 6px;
    /* TODO: THIS SHOULD BE DYNAMIC */
    border: 0.5px solid var(--Hibiscus-Hibiscus-50);
    background: linear-gradient(180deg, rgba(255, 239, 244, 0.90) -1.62%, rgba(255, 220, 230, 0.90) 100%);
}

.latest-updates .latest-updates__icon {
    width: 23.444px;
    height: 25.205px;
}

.latest-updates .latest-updates__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.latest-updates .latest-updates__type {
    color: #9a1759;
    font-family: var(--Font-Family-Title);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 27px;
    text-decoration-line: underline;
    text-decoration-style: solid;
}

.latest-updates .latest-updates__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3f4452;
    font-family: var(--Font-Family-Body);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
}

.latest-updates .latest-updates__status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #33BA00;
    display: inline-block;
    margin-right: 4px;
    margin-left: 8px;
    transform: translateY(-1px);
}

.latest-updates .latest-updates__status--new .latest-updates__status-dot {
    background: #35ad47;
}

.latest-updates .latest-updates__status--updated .latest-updates__status-dot {
    background: #33BA00;
}

/* @media (max-width: 768px) {

    .latest-updates .container {
        padding: 64px 24px;
    }

    .latest-updates .latest-updates__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .latest-updates .latest-updates__meta {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }
} */

.home-contracts .home-contracts-cards {
    display: flex;
    justify-content: start;
    align-items: start;
    gap: var(--line-height-24);
    align-self: stretch;
    overflow: visible;
    flex-wrap: wrap;
}

.home-contracts .home-contracts-cards .home-contracts-card {
    display: flex;
    padding: 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex: 1 0 0;
    border-radius: 40px;
    background: var(--Base-White);
}

.home-contracts .home-contracts-cards .home-contracts-card>img {
    width: 60px;
    height: 60px;
    aspect-ratio: 1/1;
}

.home-contracts .home-contracts-cards .home-contracts-card:nth-of-type(2)>img {
    scale: 1.1;
}

.home-contracts .home-contracts-cards .home-contracts-card>h3 {
    color: var(--Base-Black-Pearl);
    font-family: var(--Font-Family-Title);
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 36.795px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    cursor: pointer;
    margin: 0;
}

.home-contracts .home-contracts-cards .home-contracts-card>p {
    color: var(--Base-Black-Pearl);
    font-family: var(--Font-Family-Title);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    margin: 0;
}

.home-contracts .home-contracts-cards .home-contracts-card:hover {
    background: var(--Primary-Mariner);
    cursor: pointer;
    position: relative;
}

.home-contracts .home-contracts-cards .home-contracts-card:hover>img {
    filter: brightness(0) invert(1);
}


.home-contracts .home-contracts-cards .home-contracts-card:hover>h3 {
    color: var(--Base-White);
}

.home-contracts .home-contracts-cards .home-contracts-card:hover>p {
    color: var(--Base-White);
}

.home-contracts .home-contracts-cards .home-contracts-card:hover .cta {
    margin-right: auto;
    border-bottom: 2px solid var(--Base-White);
}

.home-contracts .home-contracts-cards .home-contracts-card:hover .cta span {
    color: var(--Base-White);
}

.home-contracts .home-contracts-cards .home-contracts-card:hover .cta img {
    filter: brightness(0) invert(1);
}

.home-contracts .home-contracts-cards .home-contracts-card:hover::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: -16px;
    top: -14.273px;
    border-radius: 40px;
    border: 3px solid var(--Hibiscus-Hibiscus);
}

.home-legal-notice {
    background: var(--Base-White);
}

.home-legal-notice .home-legal-notice-content {
    display: flex;
    max-width: 950px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    margin: auto;
}

.home-legal-notice .home-legal-notice-content h2 {
    color: var(--Base-Black, #000);
}

.home-legal-notice .home-legal-notice-content p {
    align-self: stretch;
    color: var(--Base-Code-Gray, #1A1A1A);
    font-family: var(--Font-Family-Body);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.home-legal-notice .home-legal-notice-content>*:last-child {
    margin-block-end: 0;
}

@media (max-width: 1235px) {
    .home-contracts .home-contracts-panel,
    .home-contracts .container {
        padding-right: 0px;
    }
}

@media (max-width: 768px) {
    .home-hero:not(:has(.white)) {
        padding-bottom: 0px;
        clip-path: ellipse(600px 100% at 50% 0%);
    }

    .home-hero:has(.home-hero-content) {
        width: 100vw;
        min-height: 420px;
        max-height: 420px;
    }

    .home-hero .home-hero-content {
        padding-top: 36px;
    }
}

@media (max-width: 576px) {

    .site-header .container {
        height: 68px;
        padding: 12px 16px;
    }

    .site-header .header-container {
        height: 100%;
    }

    .home-hero__eyebrow {
        margin-bottom: 0px;
    }

    .home-hero .header-logo {
        height: 40px;
        margin-top: auto;
        margin-bottom: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .home-hero:not(:has(.white)) {
        clip-path: ellipse(500px 100% at 50% 0%);
    }

    .home-hero:has(.home-hero-content) {
        width: 100vw;
        min-height: 340px;
        max-height: 340px;
    }

    .home-hero .home-hero-content {
        min-height: 360px;
    }

    .home-agreement {
        margin-top: -2px;
    }

    .home-agreement .home-agreement-illustration .illustration-item {
        min-width: 50px;
    }

    .home-contracts .home-contracts-panel {
        border-radius: 16px;
        padding: 20px 16px 18px;
        padding-right: 0px;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
    }

    .home-contracts .home-contract-folder-art__label {
        font-size: 15px;
    }

    .home-contracts .home-contracts-empty-state {
        min-height: 188px;
    }

    .home-contracts .home-contract-types-grid {
        height: auto;
    }
}

@media (min-width: 576px) {

    .home-agreement .container {
        padding: 40px;
    }

    .home-agreement .home-agreement-illustration .illustration-item p {
        font-size: 14px;
        line-height: 21px;
    }

    .home-contracts .home-contract-types-grid {
        gap: 20px;
    }

    .home-contracts .home-contract-folder svg {
        width: 149px;
    }

    .home-agreement .home-agreement-illustration {
        gap: clamp(3px, 4vw, 22px);
    }
}

@media (min-width: 768px) {

    .home-agreement .container {
        padding: 60px 120px 60px 120px;
    }

    .home-hero__wordmark {
        padding-top: 28px;
        padding-bottom: 32px;
    }

    .home-hero__eyebrow {
        font-size: 24px;
        line-height: 36px;
    }

    .home-hero__subtitle {
        font-size: 34px;
        line-height: 27px;
    }

    .home-contracts .home-contracts-content {
        gap: 20px;
    }

    .home-contracts .home-contracts-empty-state {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .home-agreement .home-agreement-illustration .illustration-item p {
        font-size: 16px;
        line-height: 21px;
    }

    .home-agreement .home-agreement-illustration {
        gap: clamp(3px, 6vw, 40px);
    }
}

@media (min-width: 1024px) {

    .home-agreement .home-agreement-illustration {
        gap: clamp(3px, 1.5vw, 22px);
        align-items: baseline;
    }

    .home-agreement .home-agreement-illustration img {
        transform: translateY(-22px);
    }

    .home-agreement .home-agreement-illustration .illustration-item p {
        font-size: 18px;
        line-height: 27px;
        width: 17ch;
        max-width: 17ch;
    }

    .home-agreement .home-agreement-illustration {
        gap: clamp(3px, 6vw, 60px);
    }
}


@media (min-width: 1280px) {

    .home-agreement .home-agreement-illustration {
        gap: clamp(3px, 1.5vw, 22px);
    }
}


@media (min-width: 1600px) {

    .home-hero:not(:has(.white)) {
        clip-path: ellipse(80vw 100% at 50% 0%);
    }
}
