/*
 * FitnezzVerze tokens — night-session palette (charcoal, red, orange).
 * Layout lives in the Vue partials. This file is colours, type, and font files only.
 */
:root {
    --brand-primary-color: #ff3f3f;
    --brand-primary-color-dark: #e03636;
    --brand-background-color: #2b2c31;
    --brand-secondary-background: #323339;
    --brand-text-color: #f4f4f5;
    --brand-card-color: #3a3b42;
    --brand-muted-color: #b4b5bb;
    --brand-line-color: #45464e;
    --highlight-color: #ff6a2b;

    --header-bg: #2b2c31;
    --header-text-color: #f4f4f5;
    --header-link-hover-bg: #3a3b42;
    --navbar-button-bg: #ff3f3f;
    /* Dark label on the red fill. #121212 on #ff3f3f is 5.38:1; white is 3.48:1. */
    --navbar-button-text: #121212;
    --brand-on-primary-text: #121212;
    --footer-bg: #2b2c31;

    --auth-page-bg: #2b2c31;
    --auth-submit-bg: #ff3f3f;
    --auth-submit-text: #121212;
    /* Deeper orange, same hue as #ff6a2b, for text on the white auth card (4.77:1). */
    --auth-link-color: #d13e00;
    --brand-login-background: #2b2c31;
    --brand-login-container-bg: #3a3b42;

    /* 404 wordmark and home button. Green #27ae60 with white text is 2.87:1. */
    --error-logo-text-color: #f4f4f5;
    --error-button-bg: #ff3f3f;
    --error-button-bg-hover: #ff3f3f;
}

body {
    background-color: var(--brand-background-color);
    color: var(--brand-text-color);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/*
 * Contrast locks. Hierarchy /brand/fitnezzverze.css re-sets several tokens
 * (navbar text stays white, highlight stays #ff6a2b), and the Vue partials
 * hard-code light labels on the red and orange fills. These selectors only
 * load with this brand sheet.
 *
 * Dark text #121212 on #ff3f3f is 5.38:1 and on #ff6a2b is 6.56:1.
 * #2b2c31 on #ff3f3f is only 4.00:1, so labels on the red fill use #121212.
 * Active "Fitness" is a lighter red of the same hue (#ff6666 on #2b2c31, 4.87:1).
 * Orange type on white uses #d13e00 (same hue as #ff6a2b, 4.77:1).
 */

.kinetic-auth-page .kinetic-auth-form-submit {
    background-color: #ff3f3f !important;
    color: #121212 !important;
    -webkit-text-fill-color: #121212 !important;
}

.kinetic-auth-page .kinetic-auth-form-submit:hover:not(:disabled) {
    background-color: #ff3f3f !important;
    color: #121212 !important;
    opacity: 1 !important;
}

.kinetic-auth-page .kinetic-auth-toggle a,
.kinetic-auth-page .kinetic-auth-toggle a:hover {
    color: #d13e00 !important;
    opacity: 1 !important;
}

.kinetic-auth-page input::placeholder {
    color: #4b5563 !important;
    opacity: 1 !important;
}

.marketing-header .marketing-nav a.marketing-nav-lead,
.marketing-header .marketing-nav a.marketing-nav-lead:visited {
    color: #ff6666 !important;
    -webkit-text-fill-color: #ff6666 !important;
}

.marketing-header .marketing-btn,
.marketing-header .marketing-btn:visited,
.marketing-header .marketing-btn:hover,
.marketing-header .marketing-btn:focus,
.marketing-home .marketing-btn,
.marketing-home .marketing-btn:visited,
.marketing-home .marketing-btn:hover,
.marketing-home .marketing-btn:focus {
    color: #121212 !important;
    -webkit-text-fill-color: #121212 !important;
    filter: none !important;
}

.marketing-home .marketing-btn.is-white,
.marketing-home .marketing-btn.is-white:visited,
.marketing-home .marketing-btn.is-white:hover,
.marketing-home .marketing-btn.is-white:focus {
    background: #ffffff !important;
    color: #d13e00 !important;
    -webkit-text-fill-color: #d13e00 !important;
}

.marketing-home .marketing-pill {
    background: #ff6a2b !important;
    color: #121212 !important;
    -webkit-text-fill-color: #121212 !important;
}

.marketing-home .marketing-pill::before {
    background: #121212 !important;
}

.marketing-home .marketing-card.is-highlight,
.marketing-home .marketing-card.is-highlight h3,
.marketing-home .marketing-card.is-highlight p,
.marketing-home .marketing-card.is-highlight .marketing-card-ic {
    color: #121212 !important;
    -webkit-text-fill-color: #121212 !important;
}

.marketing-home .marketing-faq-item.is-open .marketing-faq-a,
.marketing-home .marketing-faq-item.is-open .marketing-faq-a p {
    color: #f4f4f5 !important;
}

.marketing-home .marketing-faq-item.is-open .marketing-faq-ico {
    color: #121212 !important;
}

.marketing-home .marketing-cta h2,
.marketing-home .marketing-cta p {
    color: #121212 !important;
    -webkit-text-fill-color: #121212 !important;
}

.marketing-footer .marketing-footer-copy {
    color: #b4b5bb !important;
}

/* Activate / Yes, unsubscribe: shared rules force white on the red fill. */
.product-hub-portal-shell button.product-hub-service-btn,
.product-hub-portal-shell button.product-hub-service-btn:hover:not(:disabled),
.product-hub-portal-surface button.product-hub-service-btn,
.product-hub-portal-surface button.product-hub-service-btn:hover:not(:disabled) {
    color: #121212 !important;
    -webkit-text-fill-color: #121212 !important;
    background-color: #ff3f3f !important;
    opacity: 1 !important;
}

#unsubscribe-section button:not([class*="BBB"]) {
    color: #121212 !important;
    -webkit-text-fill-color: #121212 !important;
    background-color: #ff3f3f !important;
    opacity: 1 !important;
}

#unsubscribe-section button[class*="BBB"],
#unsubscribe-section button[class*="BBB"]:hover {
    background-color: #2b2c31 !important;
    color: #f4f4f5 !important;
    -webkit-text-fill-color: #f4f4f5 !important;
}

/* 404 blade paints the home link white; the wordmark follows --highlight-color. */
h2.error-logo-text {
    color: #f4f4f5 !important;
}

a.button,
a.button:hover {
    background: #ff3f3f !important;
    color: #121212 !important;
}

/*
 * Phone width: fixed Footer/3, the language switcher, and the geo badge
 * share the bottom edge. Padding lets the last card and the marketing
 * copyright scroll clear of them. The switcher stacks above the geo badge.
 */
@media (max-width: 767px) {
    body:has(#portal-nav) .product-hub-portal-shell {
        padding-bottom: calc(11rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    body:has(.marketing-footer) .marketing-footer {
        padding-bottom: calc(30px + 6.5rem) !important;
    }

    body:has(.marketing-footer) .geo-switcher {
        bottom: 0.75rem !important;
        left: 1rem !important;
    }

    body:has(.marketing-footer) .gtranslate_wrapper,
    body:has(.marketing-footer) #gt_float_wrapper {
        bottom: calc(0.75rem + 3rem) !important;
        left: 1rem !important;
    }
}
