/* Home page A/B test variant (template: Views/HomeABTest.cshtml)
   Figma (KR file b2eZHG4iXM0aO4ypiUW7h5): Desktop 4973:26424 (1366), Tablet 4973:26890 (1024), Mobile 4973:26144 (390).
   Header and footer are the shared site partials. All rules are scoped to .hab / .hab-* so they do not affect other pages.

   Typography: Figma "FS Me" weights map to the @font-face families in custom.css -
   300 (Light) = 'FSMeWeb-Light', 400 (Regular) = 'FSMeWeb-Regular', 700 (Bold) = 'FSMeWeb-Bold'.
   font-weight matches Figma (300 / 700). Each @font-face is declared as a single "normal" weight, so
   font-synthesis: none stops the browser faking a heavier bold on top of FSMeWeb-Bold. Weight, size,
   line-height and colour use !important on page text so site-wide rules (custom.css p/h2/a/li) cannot change them. */

.hab, .hab *, .hab *::before, .hab *::after { box-sizing: border-box; }

.hab {
    font-family: 'FSMeWeb-Light';
    font-weight: 300;
    font-synthesis: none;
    font-style: normal;
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: 0;
    color: #333333;
    background: #FFFFFF;
}

.hab img { max-width: 100%; height: auto; }
.hab a:focus-visible { outline: 3px solid #B73764; outline-offset: 2px; }
.hab p, .hab ul, .hab li { margin: 0; }
.hab h1, .hab h2, .hab h3 { margin: 0; padding: 0 !important; text-transform: none; letter-spacing: 0; }
/* Bold runs inside light text (Figma "FS Me Bold" spans) */
.hab strong, .hab b { font-family: 'FSMeWeb-Bold'; font-weight: 700 !important; }

.hab-container { max-width: 1114px; margin: 0 auto; padding: 0 24px; }   /* 1066px content + 24px gutters */
.hab-section { padding-top: 50px; }

/* ---------- Typography (Desktop 1366 + Tablet 1024: same scale in Figma) ---------- */

/* Hero */
.hab .hab-hero__label { font-family: 'FSMeWeb-Light'; font-weight: 300 !important; font-size: 15px !important; line-height: 100% !important; color: #FFFFFF !important; }   /* FS Me Light 15 / 100% */
.hab .hab-hero__value { font-family: 'FSMeWeb-Bold'; font-weight: 700 !important; font-size: 96px !important; line-height: 100% !important; color: #FFFFFF !important; }   /* FS Me Bold 96 / 100% */
.hab .hab-hero__note { font-family: 'FSMeWeb-Light'; font-weight: 300 !important; font-size: 16px !important; line-height: 130% !important; color: #FFFFFF !important; }   /* FS Me Light 16 / 130% */
.hab .hab-hero__intro p { font-family: 'FSMeWeb-Light'; font-weight: 300 !important; font-size: 20px !important; line-height: 120% !important; color: #FFFFFF !important; }   /* FS Me Light/Bold 20 / 120% */
.hab .hab-hero__intro .hab-hero__ctas { font-size: 15px !important; line-height: 130% !important; }

/* Buttons and text links (CMS rich text: <a class="hab-btn"> / <a class="hab-link">): FS Me Light 15 / 130% */
.hab .hab-btn, .hab .hab-link { font-family: 'FSMeWeb-Light'; font-weight: 300 !important; font-size: 15px !important; line-height: 130% !important; }
.hab .hab-btn { color: #FFFFFF !important; }
.hab .hab-link { color: #333333 !important; }
.hab .hab-hero__ctas .hab-link { color: #FFFFFF !important; }

/* Product cards */
.hab .hab-card__title { font-family: 'FSMeWeb-Bold'; font-weight: 700 !important; font-size: 32px !important; line-height: 40px !important; color: #50213F !important; }   /* FS Me Bold 32 / 40px */
.hab .hab-card__text { font-family: 'FSMeWeb-Light'; font-weight: 300 !important; font-size: 15px !important; line-height: 130% !important; color: #333333 !important; }   /* FS Me Light 15 / 130% */

/* Trusted by */
.hab .hab-h2 { font-family: 'FSMeWeb-Bold'; font-weight: 700 !important; font-size: 32px !important; line-height: 40px !important; color: #50213F !important; }   /* FS Me Bold 32 / 40px */
.hab .hab-trust__head p { font-family: 'FSMeWeb-Light'; font-weight: 300 !important; font-size: 15px !important; line-height: 130% !important; color: #333333 !important; }   /* FS Me Light 15 / 130% */
.hab .hab-stats li > strong { font-family: 'FSMeWeb-Bold'; font-weight: 700 !important; font-size: 24px !important; line-height: 130% !important; color: #50213F !important; }   /* FS Me Bold 24 / 130% */
.hab .hab-stats li > span { font-family: 'FSMeWeb-Light'; font-weight: 300 !important; font-size: 15px !important; line-height: 130% !important; color: #333333 !important; }   /* FS Me Light 15 / 130% */
.hab .hab-stats a { font-family: 'FSMeWeb-Bold'; font-weight: 700 !important; font-size: 15px !important; line-height: 130% !important; color: #B73764 !important; text-decoration: underline; }   /* FS Me Bold 15 / 130%, #B73764 */

/* ---------- Layout ---------- */

/* Buttons and links */
.hab .hab-btn, .hab .hab-link { display: inline-flex; align-items: center; gap: 5px; }
.hab .hab-btn::after, .hab .hab-link::after {
    content: ''; flex: none; width: 16px; height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 12'%3E%3Cpath d='M1 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 5px 10px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 12'%3E%3Cpath d='M1 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 5px 10px no-repeat;
}
.hab .hab-btn {
    justify-content: center; min-height: 45px; padding: 1px 20px; border-radius: 5px;
    background: #B73764; text-decoration: none;
}
.hab .hab-btn:hover, .hab .hab-btn:focus { background: #50213F; text-decoration: none; }
.hab .hab-link { text-decoration: underline; text-underline-offset: 2px; }
.hab .hab-link:hover { color: #B73764 !important; }

/* Hero - runs up behind the transparent site nav, as .HomeBanner does elsewhere */
.hab-hero {
    margin-top: -75px;
    padding: 145px 0 60px;
    min-height: 424px;
    color: #FFFFFF;
    background-color: #50213F;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}
.hab-hero__inner { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 523px); grid-template-rows: auto auto; column-gap: 100px; align-items: center; }
.hab .hab-hero__label { grid-column: 1; grid-row: 1; }
.hab-hero__rate { grid-column: 1; grid-row: 2; padding-top: 16px; }
.hab .hab-hero__note { margin-top: 11px; }
.hab-hero__intro { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 10px; }
.hab .hab-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 10px; }
.hab-hero__ctas .hab-btn { min-width: 171px; }
.hab-hero__ctas .hab-link { min-height: 45px; }
.hab .hab-hero__ctas .hab-link:hover { color: #FFFFFF !important; text-decoration-thickness: 2px; }
.hab-mobile-only { display: none; }

/* Product cards (CMS: Pre content, first RTE block) */
.hab-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.hab-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #F9EFF3; }
.hab-card .hab-link { align-self: flex-start; margin-top: auto; }

/* Trusted by (CMS: Pre content, second RTE block) */
.hab-trust__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 408px); column-gap: 20px; align-items: start; }
.hab-trust__head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.hab-stats { grid-column: 1; margin: 0; padding: 0; list-style: none; border-bottom: 3px solid #F7F7F8; }
.hab-stats li { display: grid; grid-template-columns: 123px minmax(0, 1fr); column-gap: 25px; align-items: center; min-height: 71px; padding: 10px; border-top: 3px solid #F7F7F8; }
.hab-stats li > img { width: 38px; height: 51px; }
.hab-trust__img { grid-column: 2; grid-row: 2 / span 2; width: 100%; aspect-ratio: 408 / 215; object-fit: cover; }
p:has(> .hab-trust__img) { grid-column: 2; grid-row: 2 / span 2; }
.hab .hab-trust__cta { grid-column: 1; margin-top: 20px; }

/* Tablet - Figma 1024 (typography identical to desktop) */
@media (max-width: 1199px) {
    .hab-container { max-width: 1186px; padding: 0 60px; }   /* 1066px content + 60px gutters */
    .hab-hero { min-height: 334px; padding: 124px 0 50px; }
    .hab-hero__inner { column-gap: 25px; }
    .hab-trust__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 377px); column-gap: 40px; }
    .hab-trust__head p { max-width: 638px; }
}

/* Small tablet (768-991, no Figma frame): smaller hero type so the text stays clear of the photo */
@media (max-width: 991px) {
    .hab-container { max-width: 1146px; padding: 0 40px; }
    .hab-hero__inner { grid-template-columns: max-content minmax(0, 270px); }
    .hab .hab-hero__value { font-size: 64px !important; }
    .hab .hab-hero__note { font-size: 14px !important; }
    .hab .hab-hero__intro p { font-size: 16px !important; }
    .hab .hab-hero__ctas { gap: 10px 20px; }
    .hab .hab-card__title { font-size: 28px !important; line-height: 36px !important; }
    .hab-trust__inner { grid-template-columns: minmax(0, 1fr); }
    .hab-trust__img, p:has(> .hab-trust__img) { grid-column: 1; grid-row: auto; margin-top: 20px; }
}

/* Mobile - Figma 390 */
@media (max-width: 767px) {
    .hab-container { max-width: 1098px; padding: 0 16px; }
    .hab-section { padding-top: 30px; }

    /* Typography (Figma mobile) */
    .hab .hab-hero__label { font-size: 13px !important; line-height: 100% !important; }          /* FS Me Light 13 / 100% */
    .hab .hab-hero__value { font-size: 87px !important; line-height: 100% !important; }          /* FS Me Bold 87 / 100% */
    .hab .hab-hero__note { font-size: 13px !important; line-height: 100% !important; }           /* FS Me Light 13 / 100% */
    .hab .hab-hero__intro p { font-size: 13px !important; line-height: 120% !important; }        /* FS Me Light/Bold 13 / 120% */
    .hab .hab-card__title { font-size: 24px !important; line-height: 120% !important; }          /* FS Me Bold 24 / 120% */
    .hab .hab-card__text { font-size: 11px !important; line-height: 100% !important; }           /* FS Me Light 11 / 100% */
    .hab .hab-card .hab-link { font-size: 15px !important; line-height: 20px !important; }       /* FS Me Light 15 / 20px */
    .hab .hab-h2 { font-size: 24px !important; line-height: 40px !important; }                   /* FS Me Bold 24 / 40px */
    .hab .hab-stats li > strong { font-size: 18px !important; line-height: 130% !important; }    /* FS Me Bold 18 / 130% */

    /* Hero: purple, no photo (Figma annotation: removed for legibility) */
    .hab-hero { min-height: 0; padding: 103px 0 25px; background-image: none !important; }   /* overrides the inline CMS image */
    .hab-hero__inner { display: block; }
    .hab-hero__rate { padding-top: 10px; }
    .hab .hab-hero__note { margin-top: 0; }
    .hab-hero__intro { gap: 0; margin-top: 16px; }
    .hab .hab-hero__ctas { margin-top: 16px; }
    .hab-hero__ctas .hab-link { display: none; }
    .hab-mobile-only { display: inline; }

    .hab-products { padding-top: 16px; }
    .hab-products .hab-container { padding: 0; }
    .hab-cards { grid-template-columns: 1fr; gap: 0;}
    .hab-card {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto;
        column-gap: 16px; row-gap: 8px; align-items: center;
        padding: 20px 16px; border-bottom: 1px solid #50213F;
    }
    .hab-card:nth-child(even) { background: #FFFFFF; }
    .hab .hab-card__title, .hab .hab-card__text { grid-column: 1; }
    .hab-card .hab-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; text-decoration: none; }

    .hab-trust { padding-bottom: 30px; }
    .hab-trust__head { gap: 10px; }
    .hab-trust .hab-container { padding: 0; }
    .hab-trust__head, .hab-trust__cta, .hab-trust__img, p:has(> .hab-trust__img) { margin-left: 16px; margin-right: 16px; }
    .hab-stats li { grid-template-columns: 102px minmax(0, 1fr); column-gap: 16px; padding: 20px 16px; }
    .hab-trust__img { width: calc(100% - 32px); aspect-ratio: 358 / 213; }
    p:has(> .hab-trust__img) .hab-trust__img { width: 100%; margin: 0; }
    p.hab-trust__cta {
    margin-left: 15px;
}
}
