/* Reference-matched responsive homepage, layered after legacy styles. */
:root {
    --rf-green: #00684f;
    --rf-ink: #0b2328;
    --rf-card: #fff;
    --rf-border: #e0e7e3
}

[data-theme="dark"] {
    --rf-green: #29ae88;
    --rf-ink: #eef8f4;
    --rf-card: #192b2a;
    --rf-border: #38534c
}

.site-header {
    position: relative;
    z-index: 40;
    background: var(--surface);
    box-shadow: 0 4px 25px #152d2b0d
}

.site-header .bar {
    max-width: 1600px;
    width: calc(100% - 52px);
    gap: clamp(12px, 1.5vw, 28px)
}

.site-header .brand {
    min-width: 220px;
    gap: 10px
}

.site-header .brand .logo {
    width: 43px;
    height: 43px;
    object-fit: contain
}

.site-header .brand-text {
    font-weight: 800;
    letter-spacing: -.035em;
    font-size: 1.13rem
}

.site-header .nav {
    gap: clamp(12px, 1.65vw, 29px)
}

.site-header .nav a {
    font-size: .87rem;
    font-weight: 650;
    white-space: nowrap
}

.site-header .tools {
    gap: 10px
}

.header-search {
    font-size: 1.75rem;
    border: 0;
    background: transparent;
    line-height: 1
}

.header-search-panel {
    position: absolute;
    right: 4vw;
    top: calc(100% + 6px);
    z-index: 50;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px;
    background: var(--rf-card);
    border: 1px solid var(--rf-border);
    border-radius: 14px;
    box-shadow: 0 12px 36px #0002
}

.header-search-panel[hidden] {
    display: none
}

.header-search-panel label {
    font-weight: 650;
    font-size: .8rem
}

.header-search-panel input {
    padding: 10px;
    border: 1px solid var(--rf-border);
    border-radius: 9px;
    background: var(--rf-card);
    color: var(--rf-ink)
}

.header-search-panel button {
    background: #086c51;
    color: white;
    border: 0;
    border-radius: 9px;
    padding: 10px 16px;
    cursor: pointer
}

main.wrap>.reference-final-hero {
    width: calc(100vw - 24px);
    max-width: none;
    margin: 0 0 22px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    min-height: 480px;
    grid-template-columns: 39% 61%;
    border: 0;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    background: #e6f1eb
}

.reference-final-hero .hero-v4-backdrop {
    background: linear-gradient(90deg, #ffffff 0%, #fffffff2 25%, #ffffffb8 40%, #ffffff10 58%, transparent 72%), url('../img/hero-premium-v6.webp') center / cover no-repeat
}

.reference-final-hero .hero-v4-copy {
    padding: 35px 20px 42px clamp(32px, 3vw, 62px);
    justify-content: center
}

.reference-final-hero .hero-v4-eyebrow {
    font-size: .72rem;
    font-weight: 800;
    background: #eff8f3;
    color: #006549
}

.reference-final-hero h1 {
    font-size: clamp(3rem, 4.25vw, 4.9rem);
    letter-spacing: -.055em;
    line-height: 1.06;
    margin: 22px 0 15px;
    max-width: 11ch
}

.reference-final-hero .lead {
    max-width: 480px;
    font-size: clamp(.95rem, 1.15vw, 1.13rem);
    line-height: 1.65
}

.reference-final-hero .hero-v4-form {
    max-width: 530px;
    width: 100%;
    box-shadow: 0 8px 24px #233d3621
}

.reference-final-hero .hero-v4-form button {
    background: #006c51
}

.reference-final-hero .hero-v4-trust {
    font-size: .75rem;
    gap: clamp(8px, 1.3vw, 22px)
}

.reference-final-hero .hero-v4-experience {
    padding: 0 12px 10px 0;
    min-height: 470px
}

.reference-final-hero .hero-v4-scene {
    inset: 0
}

.reference-final-hero .hero-v4-scene>img {
    object-fit: cover;
    object-position: center center;
    transform: none !important;
    filter: none !important;
    transition: opacity .3s ease
}

.reference-final-hero .hero-v4-scene-shade {
    background: linear-gradient(0deg, #082c282b, transparent 36%)
}

.reference-final-hero .hero-v4-stage-menu {
    top: 26px;
    left: 6px;
    gap: 6px
}

.reference-final-hero .hero-v4-stage-menu button {
    min-width: 148px;
    font-size: .78rem;
    padding: 5px 14px 5px 6px;
    background: #ffffffc9;
    backdrop-filter: blur(9px)
}

.reference-final-hero .hero-v4-stage-menu button.active {
    background: #006c51;
    color: white
}

.reference-final-hero .hero-v4-play {
    top: 26px;
    right: 20px;
    border-radius: 14px;
    padding: 12px 16px;
    max-width: 205px;
    white-space: normal;
    line-height: 1.3;
    background: #062f38e8
}

.reference-final-hero .hero-v4-thumbs {
    margin: auto 0 0 0;
    padding: 9px;
    gap: 8px;
    background: #ffffffd9;
    border-radius: 16px;
    box-shadow: 0 7px 20px #0002
}

.reference-final-hero .hero-v4-thumbs button {
    font-size: .72rem
}

.reference-final-hero .hero-v4-thumbs button.active {
    border-color: #00775a;
    background: #e7f5ed
}

.reference-final-hero .hero-v4-thumbs img {
    filter: none !important
}

.reference-final-hero .hero-v4-thumbs .thumb-photo {
    aspect-ratio: 1.5
}

.reference-final-hero .hero-v4-progress {
    height: 3px;
    margin: 6px 2px 0
}

.reference-final-hero .hero-v4-stage-badge,
.reference-final-hero .hero-v6-stage-picture {
    display: none !important
}

.tools-v4 {
    padding: 15px 0 35px
}

.tools-v4-heading {
    margin-bottom: 16px
}

.tools-v4-heading h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.65rem);
    letter-spacing: -.04em;
    color: var(--rf-ink)
}

.tools-v4-heading h2:after {
    content: '';
    display: block;
    width: 45px;
    height: 3px;
    background: #007354;
    margin-top: 11px
}

.tools-v4 .premium-features {
    gap: 18px
}

.tools-v4 .premium-feature {
    background: var(--rf-card);
    border: 1px solid var(--rf-border);
    border-radius: 18px;
    box-shadow: 0 9px 20px #082c2612;
    transition: transform .25s, box-shadow .25s
}

.tools-v4 .premium-feature:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 38px #082c2630
}

.tools-v4 .premium-feature-image {
    height: clamp(165px, 13vw, 220px);
    position: relative;
    margin: 12px 12px 0;
    border-radius: 12px;
    overflow: hidden
}

.tools-v4 .premium-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s
}

.tools-v4 .premium-feature:hover img {
    transform: scale(1.05)
}

.tools-v4 .premium-feature .txt {
    padding: 12px 15px 16px;
    min-height: 88px
}

.tools-v4 .premium-feature .txt h3 {
    font-size: 1.12rem;
    font-weight: 800
}

.tools-v4 .premium-feature .txt p {
    font-size: .78rem
}

.feature-360,
.feature-4d-badge {
    position: absolute;
    right: 9px;
    bottom: 10px;
    border-radius: 8px;
    padding: 5px 8px;
    color: white;
    background: #062e2edb;
    font-weight: 800;
    font-size: .85rem
}

.feature-4d-badge {
    top: 9px;
    bottom: auto
}

.feature-styles {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 42%;
    background: #fffffff0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    color: #123a32;
    font-size: clamp(.55rem, .85vw, .79rem);
    font-weight: 700
}

.feature-styles span {
    padding: 5px;
    border-radius: 6px
}

.feature-styles span:first-child {
    background: #08785b;
    color: #fff
}

[data-theme="dark"] .reference-final-hero .hero-v4-backdrop {
    background: linear-gradient(90deg, #0d2728 0%, #0d2728f5 26%, #0d2728a8 44%, transparent 73%), url('../img/hero-premium-v6.webp') center/cover
}

[data-theme="dark"] .reference-final-hero {
    background: #102b2b
}

[data-theme="dark"] .header-search-panel {
    background: #192b2a
}

@media(max-width:1150px) {
    .site-header .bar {
        width: calc(100% - 26px)
    }

    .site-header .brand {
        min-width: 165px
    }

    .site-header .nav {
        gap: 11px
    }

    .site-header .nav a {
        font-size: .75rem
    }

    .reference-final-hero {
        grid-template-columns: 43% 57% !important
    }

    .reference-final-hero .hero-v4-stage-menu button {
        min-width: 115px
    }

    .tools-v4 .premium-features {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:850px) {
    .site-header .nav a:nth-child(n+4) {
        display: none
    }

    .site-header .brand {
        min-width: 0
    }

    .header-search-panel {
        left: 12px;
        right: 12px;
        flex-wrap: wrap
    }

    .reference-final-hero .hero-v4-form {
        flex-wrap: wrap
    }

    .reference-final-hero .hero-v4-form button {
        max-width: 100%
    }
}

@media(max-width:750px) {
    main.wrap>.reference-final-hero {
        display: flex;
        flex-direction: column;
        width: 100%;
        left: auto;
        transform: none;
        border-radius: 18px;
        margin: 12px 0 25px
    }

    .reference-final-hero .hero-v4-backdrop {
        background: #f6faf6
    }

    .reference-final-hero .hero-v4-copy {
        padding: 30px 20px 26px
    }

    .reference-final-hero h1 {
        font-size: clamp(2.8rem, 9vw, 4.2rem)
    }

    .reference-final-hero .hero-v4-experience {
        min-height: 425px;
        padding: 0 8px 10px
    }

    .reference-final-hero .hero-v4-stage-menu {
        top: 12px;
        left: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 270px
    }

    .reference-final-hero .hero-v4-stage-menu button {
        min-width: 0;
        font-size: .65rem
    }

    .reference-final-hero .hero-v4-play {
        top: 12px;
        right: 10px;
        max-width: 130px;
        font-size: .65rem
    }

    .reference-final-hero .hero-v4-thumbs {
        overflow-x: auto;
        grid-template-columns: repeat(6, minmax(92px, 1fr));
        scroll-snap-type: x mandatory
    }

    .reference-final-hero .hero-v4-thumbs button {
        scroll-snap-align: start
    }

    .reference-final-hero .hero-v4-scene>img {
        object-position: center
    }

    .tools-v4 .premium-feature-image {
        height: 185px
    }

    [data-theme="dark"] .reference-final-hero .hero-v4-backdrop {
        background: #0d2728
    }
}

@media(max-width:490px) {
    .site-header .brand-text {
        font-size: .92rem
    }

    .site-header .brand .logo {
        width: 33px;
        height: 33px
    }

    .header-search {
        display: none
    }

    .reference-final-hero .hero-v4-experience {
        min-height: 410px
    }

    .reference-final-hero .hero-v4-play {
        top: 108px
    }

    .reference-final-hero .hero-v4-form button {
        width: 100%
    }

    .tools-v4 .premium-features {
        grid-template-columns: 1fr
    }

    .tools-v4 .premium-feature-image {
        height: 205px
    }

    .header-search-panel input {
        width: 100%
    }
}

@media(prefers-reduced-motion:reduce) {

    .tools-v4 .premium-feature,
    .tools-v4 .premium-feature-image img {
        transition: none
    }
}