/*
 * Landing page (/software/features). Colours come from css/tokens.css; the
 * brand bands (stats, "get the code", footer) stay navy in both themes.
 */
@font-face {
    font-family: "Bebas Neue";
    src: url("/static/fonts/bebas_neue/BebasNeue-Regular.afeaf6797b62.woff");
    font-display: swap;
}

:root {
    --landing-band: #163665;
    --landing-band-2: #234982;
    --landing-on-band: #ffffff;
    --landing-on-band-muted: #d5deeb;   /* 9.6:1 on the band */
    --landing-green: var(--wg-color-success);
    --landing-red: var(--wg-color-accent);
    --landing-yellow: var(--wg-color-warning);
}

html {
    overflow-x: hidden;
}

a {
    color: inherit;
}

.font-bebas-neue {
    font-family: "Bebas Neue", var(--wg-font-sans);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1;
}

.wg-landing-logo {
    height: 2.25rem;
    width: auto;
}

.text-dark-blue {
    color: var(--wg-color-primary);
}

ul.hex-bullet {
    padding-inline-start: 0;
}

ul.hex-bullet li {
    position: relative;
    margin-bottom: var(--wg-space-2);
    padding-inline-start: 1.75rem;
    list-style-type: none;
}

ul.hex-bullet li::before {
    content: '⬢';
    position: absolute;
    inset-inline-start: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

ul.bullet-red li::before { color: var(--landing-red); }
ul.bullet-dark-yellow li::before { color: var(--landing-yellow); }
ul.bullet-green li::before { color: var(--landing-green); }

/* Header */
header {
    background: linear-gradient(196deg, var(--wg-color-primary-subtle) 8%, var(--wg-color-bg) 92%);
}

header .navbar {
    --bs-navbar-color: var(--wg-color-text);
    --bs-navbar-hover-color: var(--wg-color-primary);
    padding-block: var(--wg-space-3);
}

header .navbar-toggler {
    width: var(--wg-touch-target);
    height: var(--wg-touch-target);
    border-color: var(--wg-color-border-strong);
}

[data-bs-theme="dark"] header .navbar-toggler-icon {
    filter: invert(1);
}

.header-hero-image {
    width: 100%;
    max-width: 450px;
    height: auto;
}

.header-community span { color: var(--wg-color-primary); display: block; }
.header-progress span { color: var(--landing-green); display: block; }
.header-meals span { color: var(--landing-yellow); display: block; }
.header-workout span { color: var(--landing-red); display: block; }

/* Main */
main {
    background-color: var(--wg-color-surface);
}

.main-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-block: var(--wg-space-6);
}

.bg-light-blue {
    background-color: var(--wg-color-primary-subtle);
}

.wg-landing-lead {
    font-size: var(--wg-font-size-lg);
    line-height: 1.7;
}

.sign-up-bg {
    min-height: 40rem;
    background-image: url("/static/images/sign-up-bg.64a02ce7026e.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.bg-bottom-menu {
    background: linear-gradient(182deg, var(--landing-band) 2%, var(--landing-band-2) 99%);
    color: var(--landing-on-band);
}

.bg-bottom-menu h2,
.bg-bottom-menu h3 {
    color: var(--landing-on-band);
}

.heading-h6 {
    font-family: "Bebas Neue", var(--wg-font-sans);
    letter-spacing: 2px;
}

.wg-landing-muted {
    color: var(--landing-on-band-muted);
}

.flex-reverse {
    display: flex;
    flex-direction: row-reverse;
}

/* Footer */
.wg-landing-footer {
    padding-block: var(--wg-space-7) var(--wg-space-5);
    background-color: var(--landing-band);
    color: var(--landing-on-band-muted);
}

.wg-landing-footer h2 {
    color: var(--landing-on-band);
}

.wg-landing-footer-links li {
    margin-bottom: var(--wg-space-1);
}

.wg-landing-footer-links a {
    display: inline-block;
    padding-block: var(--wg-space-1);
    color: var(--landing-on-band-muted);
    text-decoration: none;
}

.wg-landing-footer-links a:hover {
    color: var(--landing-on-band);
    text-decoration: underline;
}

/* The band is navy in both themes, but Bootstrap's "light" button follows the
   theme (dark text in dark mode, 1.4:1). Pin it to the band's own colours. */
.wg-landing-footer .btn-outline-light {
    --bs-btn-color: var(--landing-on-band);
    --bs-btn-border-color: rgb(255 255 255 / 0.6);
    --bs-btn-hover-color: var(--landing-band);
    --bs-btn-hover-bg: var(--landing-on-band);
    --bs-btn-hover-border-color: var(--landing-on-band);
    --bs-btn-active-color: var(--landing-band);
    --bs-btn-active-bg: var(--landing-on-band);
    --bs-btn-active-border-color: var(--landing-on-band);
}

.wg-landing-footer-bottom {
    border-top: 1px solid rgb(255 255 255 / 0.2);
}

.wg-landing-social {
    color: var(--landing-on-band);
}

.wg-landing-social:hover {
    background-color: rgb(255 255 255 / 0.1);
    color: var(--landing-on-band);
}

@media (max-width: 991.98px) {
    .flex-reverse {
        flex-direction: row;
    }
}
