/* =========================================================
   LOYALSON INC. — HOMEPAGE
   File: assets/css/home.css

   Load AFTER assets/css/site.css.

   White base, soft-blue hero, blue/teal/slate accents,
   and a contrasting navy closing CTA.

   Shared button dimensions and primary styling remain
   controlled by site.css.
   ========================================================= */


/* ---------------------------------------------------------
   1. SHARED ELEMENTS — HOMEPAGE COLOR TREATMENT
   --------------------------------------------------------- */

body,
.site-header,
.site-footer {
    background: #ffffff;
    color: #0f172a;
}

.utility {
    background: #eef3fa;
    color: #334155;
    border-bottom: 1px solid #dce6f2;
}

.utility a {
    color: #0f172a;
}

.site-header {
    border-bottom-color: #e4e8ee;
}

.site-footer {
    background: #ffffff;
    color: #0f172a;
    border-top: 3px solid #e1eaf8;
    padding-top: 38px;
}

.footer-top {
    padding-bottom: 30px;
}

.footer-top h2,
.footer-brand p {
    color: #0f172a;
}

.footer-top > div:not(:first-child) > a,
.footer-brand > span,
.footer-contact p,
.footer-bottom p {
    color: #526173;
}

.footer-brand img {
    filter: none;
}

.footer-contact,
.footer-bottom {
    border-color: #e4e8ee;
}


/* ---------------------------------------------------------
   2. HOMEPAGE FOUNDATION
   --------------------------------------------------------- */

.wx-home {
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.75;
}

.wx-home * {
    box-sizing: border-box;
}

.wx-home .wx-wrap {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

.wx-home h1,
.wx-home h2,
.wx-home h3 {
    color: #0f172a;
    font-weight: 600;
}

.wx-home h1 {
    max-width: 560px;
    margin: 0 0 18px;
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: -0.8px;
}

.wx-home h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.wx-home h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: -0.2px;
}

.wx-home p {
    margin: 0 0 18px;
    color: #526173;
    font-size: 15px;
    line-height: 1.75;
}

.wx-home .wx-label {
    margin: 0 0 14px;
    color: #155eef;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.6px;
}

.wx-home .wx-small {
    font-size: 14px;
    line-height: 1.7;
}

.wx-home .wx-muted {
    color: #526173;
}


/* ---------------------------------------------------------
   3. BUTTON CONTRAST

   Keep existing button sizes, labels, and primary colors.
   Only adapt secondary buttons to the light backgrounds.
   --------------------------------------------------------- */

.wx-home .button.outline,
.wx-home .button.white {
    background: #ffffff;
    color: #0f172a;
    border-color: #8998aa;
}

.wx-home .button.outline:hover,
.wx-home .button.white:hover {
    background: #f5f7fa;
}


/* ---------------------------------------------------------
   4. HERO
   --------------------------------------------------------- */

.wx-home .wx-hero {
    margin-top: 24px;
    padding-top: 34px;
    padding-bottom: 28px;

    background: linear-gradient(
        135deg,
        #f0f6ff 0%,
        #f7faff 55%,
        #ffffff 100%
    );

    border: 1px solid #dce7f5;
    border-radius: 12px;
}

.wx-home .wx-hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 72px;
    align-items: center;
}

.wx-home .wx-intro {
    max-width: 580px;
    font-size: 16px;
    line-height: 1.8;
}

.wx-home .wx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

/* Service/software explanation beside the introduction. */
.wx-home .wx-position {
    padding: 22px 24px;
    background: #ffffff;

    border: 1px solid #dce7f5;
    border-left: 3px solid #155eef;
    border-radius: 6px;
}

.wx-home .wx-position strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
}

.wx-home .wx-position p:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   5. DASHBOARD PREVIEW
   --------------------------------------------------------- */

.wx-home .wx-preview {
    margin: 32px 0 0;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #cbd9ec;
    border-radius: 6px;

    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.wx-home .wx-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 14px 20px;
    background: #eaf1fc;
    border-bottom: 1px solid #d5e1f2;
    font-size: 14px;
}

.wx-home .wx-preview-head strong {
    color: #153b76;
    font-weight: 600;
}

.wx-home .wx-preview-head span {
    color: #526173;
}

.wx-home .wx-preview a {
    display: block;
}

.wx-home .wx-preview img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1408 / 768;
    object-fit: contain;
    background: #ffffff;
}

.wx-home .wx-preview figcaption {
    padding: 15px 20px;

    background: #ffffff;
    color: #526173;
    border-top: 1px solid #e4e8ee;

    font-size: 14px;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   6. SECTION STRUCTURE
   --------------------------------------------------------- */

.wx-home .wx-section {
    padding-top: 44px;
    padding-bottom: 44px;
    border-top: 1px solid #e4e8ee;
}

.wx-home .wx-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 26px;
}

.wx-home .wx-heading h2 {
    margin-bottom: 0;
}

.wx-home .wx-heading p {
    max-width: 570px;
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   7. WORKSPACE CAPABILITY CARDS
   --------------------------------------------------------- */

.wx-home .wx-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 32px;
}

.wx-home .wx-feature {
    padding: 22px;

    background: #f2f6fd;
    border: 1px solid #dce6f4;
    border-top: 3px solid #155eef;
    border-radius: 6px;
}

.wx-home .wx-feature:nth-child(3n + 2) {
    background: #f1f7f6;
    border-color: #d6e7e3;
    border-top-color: #0f766e;
}

.wx-home .wx-feature:nth-child(3n) {
    background: #f5f6f9;
    border-color: #dfe3eb;
    border-top-color: #334155;
}

.wx-home .wx-feature p {
    margin-bottom: 0;
    font-size: 14px;
}


/* ---------------------------------------------------------
   8. CORE SERVICE CARDS
   --------------------------------------------------------- */

.wx-home .wx-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.wx-home .wx-service {
    display: flex;
    flex-direction: column;
    padding: 26px;

    background: #ffffff;
    border: 1px solid #dce3eb;
    border-top: 3px solid #155eef;
    border-radius: 6px;
}

.wx-home .wx-service:nth-child(2) {
    border-top-color: #0f766e;
}

.wx-home .wx-service:nth-child(3) {
    border-top-color: #334155;
}

.wx-home .wx-service p {
    margin-bottom: 18px;
    font-size: 14px;
}

.wx-home .wx-service .text-link {
    justify-content: space-between;
    margin-top: auto;
}


/* ---------------------------------------------------------
   9. SERVICES AND OPTIONAL SOFTWARE
   --------------------------------------------------------- */

.wx-home .wx-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.wx-home .wx-choice > div {
    padding: 26px;

    background: #f8fafc;
    border: 1px solid #dce3eb;
    border-radius: 6px;
}

.wx-home .wx-choice > div:nth-child(2) {
    background: #eef5ff;
    border-color: #ccddf7;
}

.wx-home .wx-choice p:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   10. PLATFORM LOGOS
   --------------------------------------------------------- */

.wx-home .wx-platforms {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    border-top: 1px solid #dce3eb;
    border-left: 1px solid #dce3eb;
}

.wx-home .wx-platform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 82px;
    padding: 18px 12px;

    background: #f7f9fc;
    border-right: 1px solid #dce3eb;
    border-bottom: 1px solid #dce3eb;
}

.wx-home .wx-platform:nth-child(even) {
    background: #eef3fa;
}

.wx-home .wx-platform img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.wx-home .wx-platform span {
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.wx-home .wx-platform-note {
    margin: 16px 0 0;
    font-size: 14px;
}


/* ---------------------------------------------------------
   11. NAVY CLOSING CTA
   --------------------------------------------------------- */

.wx-home .wx-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    margin-top: 12px;
    margin-bottom: 40px;
    padding-top: 34px;
    padding-bottom: 34px;

    background: #0f172a;
    border: 0;
    border-radius: 10px;
}

.wx-home .wx-close h2 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 24px;
}

.wx-home .wx-close .wx-label {
    color: #acc9ff;
}

.wx-home .wx-close p:last-child {
    margin-bottom: 0;
    color: #c5d2e3;
}

.wx-home .wx-close .button {
    flex-shrink: 0;
}


/* ---------------------------------------------------------
   12. TABLET
   --------------------------------------------------------- */

@media (max-width: 1000px) {
    .wx-home .wx-wrap {
        padding-left: 30px;
        padding-right: 30px;
    }

    .wx-home .wx-hero-grid {
        gap: 38px;
    }

    .wx-home .wx-heading {
        gap: 36px;
    }

    .wx-home .wx-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .wx-home .wx-service {
        padding: 22px;
    }

    .wx-home .wx-platforms {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ---------------------------------------------------------
   13. MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {
    .wx-home .wx-wrap {
        padding-left: 22px;
        padding-right: 22px;
    }

    .wx-home h1 {
        font-size: 28px;
        line-height: 1.35;
        letter-spacing: -0.6px;
    }

    .wx-home h2,
    .wx-home .wx-close h2 {
        font-size: 22px;
    }

    .wx-home h3 {
        font-size: 18px;
    }

    .wx-home .wx-hero {
        margin-top: 16px;
        padding-top: 28px;
        padding-bottom: 28px;

        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .wx-home .wx-hero-grid,
    .wx-home .wx-heading,
    .wx-home .wx-choice {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .wx-home .wx-intro {
        font-size: 15px;
    }

    .wx-home .wx-position {
        padding: 20px;
    }

    .wx-home .wx-actions {
        gap: 12px;
        margin-top: 22px;
    }

    .wx-home .wx-actions .button {
        width: 100%;
        justify-content: space-between;
    }

    .wx-home .wx-preview {
        margin-top: 26px;
    }

    .wx-home .wx-preview-head {
        align-items: flex-start;
        gap: 12px;
        padding: 12px 14px;
    }

    .wx-home .wx-preview-head span {
        text-align: right;
    }

    .wx-home .wx-preview figcaption {
        padding: 14px;
        font-size: 14px;
    }

    .wx-home .wx-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .wx-home .wx-heading {
        margin-bottom: 22px;
    }

    .wx-home .wx-features {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .wx-home .wx-feature {
        padding: 20px;
    }

    .wx-home .wx-service-grid {
        grid-template-columns: 1fr;
    }

    .wx-home .wx-service,
    .wx-home .wx-choice > div {
        padding: 22px;
    }

    .wx-home .wx-platforms {
        grid-template-columns: repeat(2, 1fr);
    }

    .wx-home .wx-platform {
        justify-content: flex-start;
        gap: 10px;

        min-height: 74px;
        padding: 16px;
    }

    .wx-home .wx-platform img {
        width: 22px;
        height: 22px;
    }

    .wx-home .wx-close {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;

        margin-bottom: 24px;
        padding-top: 30px;
        padding-bottom: 30px;
        border-radius: 0;
    }

    .wx-home .wx-close .button {
        width: 100%;
        justify-content: space-between;
    }
}