/*
 * MLB brand stylesheet for the static public pages (worker hub, FAQ).
 * Same tokens as the app (mobile-app/src/app/globals.css): navy / orange /
 * silver / green, light by default, dark when the device prefers it.
 */
:root {
    --bg: #f5f7f9;
    --surface: #eceff3;
    --card: #ffffff;
    --ink: #122033;
    --muted: #515b6b;
    --line: #d8dee6;
    --navy: #184878;
    --navy-ink: #ffffff;
    --orange: #f07848;
    --wash: rgba(24, 72, 120, 0.08);
    --wash-ink: #184878;
    --shadow: 0 1px 2px rgba(18, 32, 51, .06), 0 1px 3px rgba(18, 32, 51, .08);
    --radius: 14px;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a121c;
        --surface: #0d1622;
        --card: #111c2a;
        --ink: #eef2f6;
        --muted: #a8b1bf;
        --line: #243142;
        --navy: #3b8fd9;
        --navy-ink: #0a121c;
        --wash: rgba(59, 143, 217, 0.14);
        --wash-ink: #9ccaf2;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 640px; margin: 0 auto; padding: 28px 16px 56px; }
.wrap-wide { max-width: 760px; }

/* Hero */
.hero { text-align: center; padding: 12px 0 8px; }
.hero-logo { width: 88px; height: 88px; border-radius: 50%; box-shadow: var(--shadow); }
.hero h1 { margin: 14px 0 2px; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.hero p { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 20px; margin: 16px 0; box-shadow: var(--shadow); }
.card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.card h2 { margin: 0; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.card .sub { margin: 3px 0 0; color: var(--muted); font-size: .95rem; }
.ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: var(--wash); color: var(--wash-ink);
       display: flex; align-items: center; justify-content: center; }
.ico svg, .list-row svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons (≥ 48px) */
.btn { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 16px;
       border-radius: 12px; font-weight: 600; font-size: 1.02rem; text-decoration: none; border: 1px solid transparent;
       transition: filter .15s, background-color .15s; }
.btn:active { transform: scale(.99); }
.btn-primary { background: var(--navy); color: var(--navy-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--wash); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { filter: brightness(1.08); }
.btn.disabled { opacity: .65; pointer-events: none; }

/* QR */
.qr-wrap { display: flex; gap: 16px; align-items: center; margin: 0 0 16px; }
.qr-wrap img { width: 112px; height: 112px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.qr-wrap p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Segmented control */
.seg { display: flex; gap: 4px; padding: 4px; margin: 18px 0 6px; background: var(--surface); border-radius: 12px; }
.seg-btn { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
           font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.seg-btn.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.os-panel { display: none; }
.os-panel.active { display: block; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; margin: 12px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 9px 0 9px 36px; border-bottom: 1px solid var(--line); font-size: .97rem; }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%;
                    background: var(--wash); color: var(--wash-ink); font-size: .78rem; font-weight: 700;
                    display: flex; align-items: center; justify-content: center; }

/* Link list */
.list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 14px;
            color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); font-weight: 500; }
.list-row:first-child { border-top: 0; }
.list-row:hover { background: var(--wash); }
.list-row svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }

/* Search */
.search { position: relative; margin: 18px 0 6px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
              fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; min-height: 50px; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 12px;
                background: var(--card); color: var(--ink); font: inherit; font-size: 1rem; }
.search input:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }

/* FAQ accordion */
.cat { margin: 26px 0 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.acc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.qa + .qa { border-top: 1px solid var(--line); }
.qa button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
             padding: 14px 16px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600;
             font-size: 1rem; text-align: left; cursor: pointer; }
.qa button:hover { background: var(--wash); }
.qa .chev { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform .15s; }
.qa.open .chev { transform: rotate(180deg); }
.qa .ans { display: none; padding: 0 16px 16px; color: var(--muted); line-height: 1.65; }
.qa.open .ans { display: block; }
.tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600;
       background: rgba(240, 120, 72, .14); color: #b4461a; vertical-align: middle; }
@media (prefers-color-scheme: dark) { .tag { color: #f7a17b; } }
.empty { color: var(--muted); text-align: center; padding: 28px; }

.foot { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 28px; line-height: 1.8; }
.foot a { color: var(--muted); }
.foot span { font-size: .82rem; }
