/*
 * TrueHandicap responsive home page
 * Version 1.5 - 8-Sep-2026
 * Promotes the login-first responsive design to production and removes its preview-status styling.
 * Version 1.4 - 8-Sep-2026
 * Removes duplicate left-side pricing and places the mobile course description above the login card.
 * Cache version is managed by $CSSVerHome in sharedheader.php.
 * Version 1.3 - 8-Sep-2026
 * Increases the wide header logo's vertical dimension to correct its flattened appearance.
 * Version 1.2 - 8-Sep-2026
 * Uses correctly proportioned square logo artwork in the mobile header.
 * Version 1.1 - 8-Sep-2026
 * Removes redundant Features and Log in links from the preview header.
 * Login-first responsive design.
 */

body.thc-home-preview {
    color: #172033;
    background: #fff;
}

.thc-preview-header {
    position: relative;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid #e8ebf2;
}

.thc-preview-header-inner {
    width: min(100% - 40px, 1280px);
    min-height: 106px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.thc-preview-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.thc-preview-brand picture {
    display: block;
    line-height: 0;
}

.thc-preview-brand img {
    display: block;
    width: 178px;
    height: 100px;
}

.thc-preview-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.thc-preview-nav a {
    min-height: 44px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #172033;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    white-space: nowrap;
}

.thc-preview-nav a:hover,
.thc-preview-nav a:focus {
    color: #2a419f;
    background: #f1f4ff;
}

.thc-preview-nav .thc-preview-signup-link {
    color: #2a419f;
}

.thc-preview-hero {
    position: relative;
    isolation: isolate;
    max-width: 1500px;
    min-height: 610px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #153b2a;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.thc-preview-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(5, 25, 46, .84) 0%, rgba(5, 25, 46, .55) 46%, rgba(5, 25, 46, .14) 100%);
}

.thc-preview-hero-inner {
    width: min(100% - 48px, 1280px);
    min-height: 610px;
    margin: 0 auto;
    padding: 50px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    align-items: center;
    gap: clamp(48px, 7vw, 110px);
}

.thc-preview-copy {
    max-width: 650px;
    color: #fff;
}

.thc-preview-copy h2 {
    max-width: 610px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(48px, 5.2vw, 76px);
    font-weight: 750;
    letter-spacing: -2px;
    line-height: 1.03;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .28);
}

.thc-preview-copy > p {
    margin-bottom: 28px;
    color: #fff;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.45;
}

.thc-preview-trial {
    display: inline-flex;
    min-height: 52px;
    padding: 13px 24px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 9px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    background: rgba(5, 25, 46, .22);
}

.thc-preview-trial:hover,
.thc-preview-trial:focus {
    color: #172033;
    background: #fff;
}

.thc-preview-photo-credit {
    position: absolute;
    left: 12px;
    bottom: 8px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 10px;
}

.thc-preview-photo-credit-mobile {
    display: none;
}

.thc-preview-login-card {
    width: 100%;
    padding: 34px 34px 30px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(5, 25, 46, .3);
}

.thc-preview-login-card h2 {
    margin: 0;
    color: #172033;
    font-size: 30px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
}

.thc-preview-login-intro {
    margin: 6px 0 24px;
    color: #5d6678;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.thc-preview-field {
    margin-bottom: 17px;
}

.thc-preview-field label {
    display: block;
    margin-bottom: 7px;
    color: #172033;
    font-size: 14px;
    font-weight: 700;
}

.thc-preview-field .form-control {
    width: 100%;
    height: 50px;
    padding: 12px 14px;
    border: 1px solid #bfc6d3;
    border-radius: 7px;
    color: #172033;
    background: #fff;
    box-shadow: none;
}

.thc-preview-field .form-control:focus {
    border-color: #2a419f;
    box-shadow: 0 0 0 3px rgba(42, 65, 159, .14);
}

.thc-preview-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 3px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    background: #2a419f;
    box-shadow: 0 8px 18px rgba(42, 65, 159, .2);
    cursor: pointer;
}

.thc-preview-submit:hover,
.thc-preview-submit:focus {
    background: #182e88;
}

.thc-preview-forgot {
    display: block;
    min-height: 44px;
    padding: 12px 4px 7px;
    color: #2a419f;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
}

.thc-preview-divider {
    margin: 8px 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #697386;
    font-size: 13px;
    white-space: nowrap;
}

.thc-preview-divider::before,
.thc-preview-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: #dce0e8;
}

.thc-preview-card-signup {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #328137;
    border-radius: 7px;
    color: #2b7831;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    background: #fff;
}

.thc-preview-card-signup:hover,
.thc-preview-card-signup:focus {
    color: #fff;
    background: #328137;
}

.thc-preview-card-price {
    margin: 8px 0 0;
    color: #697386;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.thc-preview-login-error {
    margin: 0 0 14px;
    padding: 9px 11px;
    border: 1px solid #df9aa0;
    border-radius: 6px;
    color: #9e1823;
    font-size: 14px;
    font-weight: 700;
    background: #fff1f2;
    text-align: center;
}

.thc-preview-environment {
    position: fixed;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 2147483647;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: .3px;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
    pointer-events: none;
}

.thc-preview-environment {
    right: max(12px, env(safe-area-inset-right));
    color: #fff;
}

.thc-preview-environment-test {
    background: #b66a0f;
}

.thc-preview-environment-dev {
    background: #7a1fa2;
}

@media (max-width: 900px) {
    .thc-preview-header-inner {
        width: min(100% - 28px, 760px);
        min-height: 86px;
        gap: 14px;
    }

    .thc-preview-brand img {
        width: 145px;
        height: 82px;
    }

    .thc-preview-nav {
        gap: 2px;
    }

    .thc-preview-nav a {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 14px;
    }

    .thc-preview-nav .thc-preview-home-link {
        display: none;
    }

    .thc-preview-hero-inner {
        width: min(100% - 34px, 620px);
        padding: 42px 0 55px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .thc-preview-copy {
        max-width: 560px;
        margin: 0 auto;
        text-align: center;
    }

    .thc-preview-copy h2 {
        margin-right: auto;
        margin-left: auto;
        font-size: clamp(38px, 8.5vw, 58px);
    }

    .thc-preview-copy > p {
        margin-bottom: 0;
        font-size: 20px;
    }

    .thc-preview-copy .thc-preview-trial {
        display: none;
    }

    .thc-preview-login-card {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .thc-preview-header-inner {
        width: calc(100% - 20px);
        min-height: 96px;
        gap: 6px;
    }

    .thc-preview-brand img {
        width: 84px;
        height: 84px;
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }

    .thc-preview-nav a {
        min-height: 44px;
        padding: 10px 7px;
        font-size: 13px;
    }


    .thc-preview-hero {
        overflow: visible;
        background-position: center top;
        background-size: auto 315px;
        background-color: #f7f8fb;
    }

    .thc-preview-hero::before {
        height: 315px;
        bottom: auto;
        background: rgba(5, 25, 46, .42);
    }

    .thc-preview-hero-inner {
        width: calc(100% - 28px);
        min-height: 0;
        padding: 50px 0 40px;
        gap: 0;
    }

    .thc-preview-copy h2 {
        margin-bottom: 14px;
        font-size: clamp(34px, 10vw, 46px);
        letter-spacing: -1px;
        line-height: 1.08;
    }

    .thc-preview-copy > p {
        font-size: 18px;
    }

    .thc-preview-copy {
        margin-bottom: 30px;
    }

    .thc-preview-photo-credit-mobile {
        display: block;
        margin: 0 0 8px 4px;
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        line-height: 16px;
        text-align: left;
        text-shadow: 0 1px 5px rgba(0, 0, 0, .8);
    }

    .thc-preview-login-card {
        padding: 28px 22px 24px;
        border-radius: 13px;
    }

    .thc-preview-login-card h2 {
        font-size: 27px;
    }

    .thc-preview-photo-credit {
        display: none;
    }

    .thc-preview-environment {
        bottom: max(8px, env(safe-area-inset-bottom));
        padding: 7px 9px;
        border-radius: 6px;
        font-size: 10px;
        line-height: 14px;
        letter-spacing: 0;
    }

    .thc-preview-environment {
        right: max(8px, env(safe-area-inset-right));
    }
}

@media (max-width: 390px) {
    .thc-preview-brand img {
        width: 80px;
        height: 80px;
    }

    .thc-preview-nav a {
        padding-right: 5px;
        padding-left: 5px;
        font-size: 12px;
    }

}
