.home-v2,
.home-v2 * {
    box-sizing: border-box;
}

body:has(.home-v2) {
    overflow-x: hidden;
}

.home-v2 {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    overflow: hidden;
    background: #fff;
    color: #111827;
    font-family: "Segoe UI", Arial, sans-serif;
}

.home-v2 p {
    color: #475569;
    font-size: clamp(.98rem, 1.1vw, 1.08rem);
    line-height: 1.7;
}

.home-v2-hero {
    position: relative;
    display: grid;
    min-height: clamp(650px, calc(100vh - 72px), 860px);
    place-items: center;
    padding: 5rem 1.5rem;
    background: url("/SunsetTrack.jpg") center 60% / cover no-repeat;
    color: #fff;
    text-align: center;
}

.home-v2-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 12, 29, .16), rgba(4, 12, 29, .36) 55%, rgba(4, 12, 29, .22));
}

.home-v2-hero-content {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    transform: translateY(-4vh);
}

.home-v2 .home-v2-eyebrow,
.home-v2 .home-v2-kicker {
    margin: 0 0 .75rem;
    color: #f15a2b;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-v2 .home-v2-eyebrow {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.home-v2-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.75rem);
    font-weight: 650;
    letter-spacing: -.04em;
    line-height: 1.05;
    text-shadow: 0 3px 24px rgba(0, 0, 0, .42);
}

.home-v2-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem;
    margin-top: 2rem;
}

.home-v2-actions-left {
    justify-content: flex-start;
}

.home-v2-button {
    display: inline-flex;
    min-width: 175px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.home-v2-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.home-v2-button-primary {
    background: #f15a2b;
    color: #fff;
}

.home-v2-button-primary:hover {
    background: #d9471b;
    color: #fff;
}

.home-v2-button-ghost {
    border-color: rgba(255, 255, 255, .9);
    background: rgba(15, 23, 42, .22);
    color: #fff;
    backdrop-filter: blur(6px);
}

.home-v2-button-ghost:hover {
    background: rgba(15, 23, 42, .45);
    color: #fff;
}

.home-v2-button-outline {
    border-color: #172554;
    background: #fff;
    color: #172554;
}

.home-v2-button-outline:hover {
    background: #eff3f8;
    color: #172554;
}

.home-v2-section {
    display: grid;
    min-height: clamp(620px, 78vh, 820px);
    align-items: center;
    padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 6vw, 6rem);
    background: #fff;
}

.home-v2-product-muted {
    background: #f4f6f8;
}

.home-v2-section-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.home-v2-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
}

.home-v2-copy {
    max-width: 620px;
}

.home-v2-copy h2 {
    margin: 0 0 1.5rem;
    color: #101c4e;
    font-size: clamp(2.4rem, 4.25vw, 4.45rem);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.04;
}

.home-v2-product .home-v2-copy h2 {
    font-size: clamp(2.2rem, 3.7vw, 3.85rem);
}

.home-v2-copy > p:not(.home-v2-kicker) {
    max-width: 58ch;
    margin: 0 0 1.15rem;
}

.home-v2-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.home-v2-benefit {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    padding-right: .8rem;
    border-right: 1px solid #dbe3ee;
}

.home-v2-benefit:last-child {
    border-right: 0;
}

.home-v2-benefit-icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    place-items: center;
    border: 1px solid #172554;
    border-radius: 50%;
    color: #172554;
    font-weight: 800;
}

.home-v2-benefit strong,
.home-v2-benefit span {
    display: block;
}

.home-v2-benefit strong {
    margin-bottom: .25rem;
    color: #172554;
    font-size: .85rem;
}

.home-v2-benefit div > span {
    color: #64748b;
    font-size: .75rem;
    line-height: 1.45;
}

.home-v2-visual {
    margin: 0;
}

.home-v2-runner-visual {
    display: grid;
    place-items: center;
}

.home-v2-runner-visual img {
    width: min(82%, 470px);
    height: auto;
    mix-blend-mode: multiply;
}

.home-v2-device-stage {
    display: flex;
    min-height: 430px;
    align-items: center;
    justify-content: center;
    gap: clamp(.5rem, 2vw, 1.5rem);
}

.home-v2-device-stage img {
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 20px 22px rgba(15, 23, 42, .13));
}

.home-v2-scanner {
    width: min(38%, 245px);
}

.home-v2-printer {
    width: min(50%, 325px);
}

.home-v2-scheduler-grid {
    grid-template-columns: minmax(420px, 1.15fr) minmax(0, .85fr);
}

.home-v2-laptop {
    width: min(100%, 660px);
    justify-self: center;
}

.home-v2-laptop-screen {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    padding: 10px 10px 0;
    border: 5px solid #121820;
    border-bottom-width: 9px;
    border-radius: 14px 14px 5px 5px;
    background: #121820;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .13);
}

.home-v2-laptop-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    background: #fff;
}

.home-v2-laptop-base {
    width: 108%;
    height: 20px;
    margin-left: -4%;
    border-radius: 2px 2px 50% 50%;
    background: linear-gradient(180deg, #d9dde3 0, #707985 42%, #202833 82%, #121820 100%);
    box-shadow: 0 12px 18px rgba(15, 23, 42, .18);
}

.home-v2-phone-stage {
    position: relative;
    display: grid;
    min-height: 520px;
    place-items: center;
}

.jft-phone {
    position: relative;
    width: min(300px, 78vw);
    padding: 10px;
    border: 2px solid #3b4350;
    border-radius: 44px;
    background: #0d1117;
    box-shadow: 0 30px 54px rgba(15, 23, 42, .24);
}

.jft-phone-speaker {
    position: absolute;
    z-index: 2;
    width: 84px;
    height: 23px;
    margin: 7px 0 0 98px;
    border-radius: 20px;
    background: #0d1117;
}

.jft-phone-screen {
    min-height: 510px;
    padding: 18px 15px;
    border-radius: 34px;
    background: linear-gradient(180deg, #edf4fb, #fff 42%);
}

.jft-phone-status {
    display: flex;
    justify-content: space-between;
    padding: 0 7px 34px;
    color: #111827;
    font-size: .7rem;
    font-weight: 800;
}

.jft-phone-conversation {
    display: grid;
    justify-items: center;
    margin-bottom: 2rem;
    color: #0b2348;
}

.jft-phone-conversation > span {
    margin-top: .12rem;
    color: #64748b;
    font-size: .68rem;
}

.jft-phone-brand {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-bottom: .5rem;
    border-radius: 50%;
    background: #0b2348;
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
}

.jft-text-bubble {
    width: 92%;
    margin-left: auto;
    padding: .95rem;
    border-radius: 18px 18px 5px 18px;
    background: #dceaf8;
    color: #172554;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.jft-text-bubble p {
    margin: .45rem 0;
    color: #334155;
    font-size: .8rem;
    line-height: 1.5;
}

.jft-text-bubble > span {
    display: block;
    color: #64748b;
    font-size: .65rem;
    text-align: right;
}

.home-v2-phone-accent {
    position: absolute;
    right: 1%;
    bottom: 15%;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem 1rem;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    color: #0b2348;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .14);
}

.home-v2-phone-accent > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #e2f7ea;
    color: #167642;
    font-weight: 900;
}

.home-v2-phone-accent strong,
.home-v2-phone-accent small {
    display: block;
}

.home-v2-phone-accent small {
    margin-top: .12rem;
    color: #64748b;
    font-size: .7rem;
}

/* The homepage uses a light, product-site navigation without changing admin pages. */
body:has(.home-v2) .jft-nav {
    position: relative !important;
    z-index: 2000 !important;
    width: 100%;
    min-height: 72px;
    padding: .55rem clamp(1.25rem, 4vw, 4.5rem) !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: rgba(255, 255, 255, .98) !important;
    border-bottom: 1px solid #e3e8ef;
    box-shadow: 0 2px 14px rgba(15, 23, 42, .06);
    text-align: left;
}

body:has(.home-v2) .jft-nav::before {
    content: "";
    display: block;
    width: 150px;
    height: 54px;
    flex: 0 0 150px;
    position: absolute;
    left: clamp(1.25rem, 4vw, 4.5rem);
    background: url("/full_logo_color_large.png") left center / contain no-repeat;
}

body:has(.home-v2) .jft-nav-items {
    width: fit-content;
    max-width: calc(100% - 190px);
    margin-inline: auto;
    gap: clamp(.15rem, 1vw, 1.25rem);
    flex-wrap: wrap;
    justify-content: center;
}

body:has(.home-v2) .jft-nav .nav-link,
body:has(.home-v2) .jft-nav ._nav-link,
body:has(.home-v2) .jft-nav .nav-link.active,
body:has(.home-v2) .jft-nav ._nav-link.active {
    padding: .6rem .7rem;
    color: #172554 !important;
    font-size: .9rem;
    font-weight: 600;
    border-radius: 999px;
}

body:has(.home-v2) .jft-nav .nav-link:hover,
body:has(.home-v2) .jft-nav ._nav-link:hover,
body:has(.home-v2) .jft-nav .nav-link.active,
body:has(.home-v2) .jft-nav ._nav-link.active {
    color: #172554 !important;
    background: #eef2f7 !important;
}

body:has(.home-v2) .jft-nav ._submenu {
    background: #fff;
    border: 1px solid #e3e8ef;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
}

.home-v2-hero h1:focus {
    outline: none;
}

@media (max-width: 960px) {
    .home-v2-section {
        min-height: auto;
    }

    .home-v2-split,
    .home-v2-scheduler-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .home-v2-copy {
        max-width: 720px;
    }

    .home-v2-runner-visual img {
        width: min(62%, 390px);
    }

    .home-v2-device-stage {
        min-height: 350px;
    }

    .home-v2-scheduler-grid .home-v2-copy {
        grid-row: 1;
    }

    .home-v2-scheduler-grid .home-v2-laptop {
        grid-row: 2;
    }

    .home-v2-phone-stage {
        min-height: 490px;
    }
}

@media (max-width: 640px) {
    body:has(.home-v2) .jft-nav {
        min-height: 66px;
        padding: .4rem 1rem !important;
    }

    body:has(.home-v2) .jft-nav::before {
        width: 126px;
        height: 50px;
        flex-basis: 126px;
        position: static;
    }

    body:has(.home-v2) .jft-nav-toggle {
        display: flex;
        margin: 0 0 0 auto;
        padding: .55rem;
    }

    body:has(.home-v2) .jft-nav-items {
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 66px);
        overflow-y: auto;
        padding: .75rem 1rem 1rem;
        max-width: none;
        margin: 0;
        gap: .15rem;
        background: #fff !important;
        box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
    }

    body:has(.home-v2) .jft-nav-items.open {
        display: flex;
    }

    body:has(.home-v2) .jft-nav .nav-link,
    body:has(.home-v2) .jft-nav ._nav-link {
        width: 100%;
        justify-content: center;
    }

    .home-v2-hero {
        min-height: 680px;
        background-position: 53% center;
    }

    .home-v2-hero h1 br {
        display: none;
    }

    .home-v2-actions,
    .home-v2-actions-left {
        align-items: stretch;
        flex-direction: column;
    }

    .home-v2-button {
        width: 100%;
    }

    .home-v2-section {
        padding: 4.5rem 1.25rem;
    }

    .home-v2-copy h2 br {
        display: none;
    }

    .home-v2-benefits {
        grid-template-columns: 1fr;
    }

    .home-v2-benefit {
        padding: 0 0 .9rem;
        border-right: 0;
        border-bottom: 1px solid #dbe3ee;
    }

    .home-v2-benefit:last-child {
        border-bottom: 0;
    }

    .home-v2-device-stage {
        min-height: 280px;
    }

    .home-v2-scanner {
        width: 40%;
    }

    .home-v2-printer {
        width: 52%;
    }

    .home-v2-laptop-screen {
        padding: 6px 6px 0;
        border-width: 3px;
        border-bottom-width: 6px;
        border-radius: 9px 9px 4px 4px;
    }

    .home-v2-phone-accent {
        right: 0;
        bottom: 8%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-v2-button {
        transition: none;
    }
}
