/* MegaBite (69731), every page: self-hosted fonts (OFL; Anton preloaded on home), tokens, header, pill.
   All .mb-* scoped; the global footer is unstyled here. Fonts: approved MegaBite-only exception. */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../../fonts/megabite/anton-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../../fonts/megabite/anton-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: italic; font-weight: 700 800; font-display: swap;
    src: url('../../fonts/megabite/figtree-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: italic; font-weight: 700 800; font-display: swap;
    src: url('../../fonts/megabite/figtree-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
    src: url('../../fonts/megabite/instrument-serif-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
    src: url('../../fonts/megabite/instrument-serif-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --mb-y: #FFD400;
    --mb-y2: #FFE45C;
    --mb-yd: #E8BE00;
    --mb-k: #0B0B0B;
    --mb-ink-2: #333333;
    --mb-ink-3: #222222;
    --mb-g: #6b6b6b;          /* muted text — 5.3:1 on white (≥ 4.5:1, CLAUDE.md §8) */
    --mb-white: #ffffff;
    --mb-live: #18a957;
    --mb-hero-bg: #111111;
    --mb-display: 'Anton', Impact, sans-serif;
    --mb-body: 'Figtree', system-ui, sans-serif;
    --mb-serif: 'Instrument Serif', Georgia, serif;
    --mb-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--mb-body); color: var(--mb-k); background: var(--mb-white); -webkit-font-smoothing: antialiased; overflow-x: clip; }

#main-content { background: var(--mb-white); }
/* Fixed nav floats over the home hero; inner pages need room beneath it.
   Keyed on the nav actually being rendered — maintenance mode drops it. */
body:has(.mb-nav) #main-content { padding-top: 110px; }
body:has(.mb-nav) #main-content:has(.mb-page) { padding-top: 0; }
/* In-page anchors (#menu, #why) clear the fixed floating nav. */
.mb-page [id] { scroll-margin-top: 110px; }

.mb-wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.mb-nav a, .mb-pill, .mb-page a { color: inherit; text-decoration: none; }
.mb-nav :where(ul), .mb-page :where(ul) { list-style: none; margin: 0; padding: 0; }
.mb-nav img, .mb-page img { display: block; max-width: 100%; }

/* ── Header: floating glass bar ───────────────────────────────────────── */
.mb-nav {
    position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 1030;
    width: min(1160px, calc(100% - 24px));
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px 14px 28px; border-radius: 20px;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .6);
    transition: background .3s, box-shadow .3s;
}
.mb-nav.is-solid { background: rgba(255, 255, 255, .94); box-shadow: 0 6px 30px rgba(0, 0, 0, .06); }
.mb-brand { display: flex; align-items: center; gap: 10px; }
.mb-brand img { width: 44px; height: 44px; border-radius: 50%; }
.mb-brand__sep { width: 1px; height: 30px; background: var(--mb-k); opacity: .6; }
.mb-brand__tag { font-size: 11.5px; line-height: 1.1; font-weight: 600; }
.mb-brand__tag b { display: block; font-weight: 800; }
.mb-nav__list { display: flex; align-items: center; gap: 34px; font-weight: 500; font-size: 15.5px; }
.mb-nav__links { display: flex; gap: 34px; }
.mb-nav__links a:hover { opacity: .6; }
.mb-nav a:focus-visible, .mb-pill:focus-visible { outline: 2px solid var(--mb-k); outline-offset: 3px; }

.mb-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
    background: var(--mb-y); color: var(--mb-k); font-weight: 700;
    padding: 11px 20px; border-radius: 12px; transition: transform .2s, background .2s;
}
.mb-btn:hover { transform: translateY(-1px); background: var(--mb-y2); }
.mb-btn svg { width: 17px; height: 17px; }

@media (max-width: 720px) {
    .mb-nav { padding: 10px 10px 10px 16px; top: 12px; }
    .mb-nav__links { display: none; }
    .mb-brand img { width: 38px; height: 38px; }
    .mb-btn { padding: 10px 14px; }
    body:has(.mb-nav) #main-content { padding-top: 84px; }
}

/* ── Floating "Download the app" pill ─────────────────────────────────── */
.mb-pill {
    position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%); z-index: 1020;
    display: flex; align-items: center; gap: 12px; white-space: nowrap;
    background: var(--mb-y); color: var(--mb-k); font-weight: 700; font-size: 15.5px;
    padding: 14px 14px 14px 24px; border-radius: 40px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    transition: transform .25s, background .25s, color .25s;
}
.mb-pill:hover { transform: translateX(-50%) translateY(-2px); }
.mb-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mb-live); animation: mb-pulse 1.8s infinite; }
.mb-pill__ar { width: 26px; height: 26px; border-radius: 50%; background: var(--mb-k); color: var(--mb-y); display: grid; place-items: center; }
.mb-pill__ar svg { width: 12px; height: 12px; }
@keyframes mb-pulse { 0% { box-shadow: 0 0 0 0 rgba(24, 169, 87, .6); } 100% { box-shadow: 0 0 0 10px rgba(24, 169, 87, 0); } }
@media (max-width: 600px) { .mb-pill { bottom: 22px; font-size: 14px; } }
/* Below 768px the global footer docks its own fixed "Download App" bar on
   home (.footer-app-cta, same store link) — show one download bar, not two. */
@media (max-width: 767px) { body:has(.footer-app-cta) .mb-pill { display: none; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mb-pill__dot { animation: none; }
    .mb-nav, .mb-btn, .mb-pill { transition: none; }
}
