/* TPxi Go shared theme. Used by every public page (home page included).
   Tokens follow tpxiscan.com (its dark palette), so the two sites read as one family.
   The home page keeps its own page only styles inline; everything shared lives here. */
/* Tokens follow tpxiscan.com (its dark palette), so the two sites read as one family. */
:root {
    --c-bg: #0b1120;
    --c-bg-soft: #0e1526;
    --c-bg-tint: #131c33;
    --c-ink: #eef2f9;
    --c-muted: #a7b3c8;
    --c-soft: #8291ad;
    --c-border: #1e293f;
    --c-border-soft: #17203a;
    --c-card: #101a30;
    --c-primary: #6ea0ff;        /* text-on-dark primary (AA on navy) */
    --c-primary-dark: #8ab4ff;
    --c-brand: #2563eb;          /* fills: buttons, bars */
    --c-brand-dark: #1d4ed8;
    --c-secondary: #b794f6;
    --c-scan: #38bdf8;
    --c-present: #10b981;
    --c-present-text: #34d399;
    --c-flag: #f59e0b;
    --grad-brand: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --grad-text: linear-gradient(135deg, #6ea0ff 0%, #b794f6 100%);
    --shadow-card: 0 4px 22px -10px rgba(0,0,0,.5);
    --shadow-lift: 0 30px 70px -30px rgba(0,0,0,.7);
    --radius: 14px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--font); color: var(--c-ink); background: var(--c-bg);
    line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
strong { color: var(--c-ink); font-weight: 600; }
section[id], div[id] { scroll-margin-top: 80px; }

.kicker {
    font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
    color: var(--c-primary); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 9px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
.text-grad {
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px;
    padding: 13px 22px; border-radius: 11px; border: 1px solid transparent; cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease; white-space: nowrap;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 26px -12px rgba(37,99,235,.7); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 34px -12px rgba(37,99,235,.75); }
.btn-ghost { background: var(--c-card); color: var(--c-ink); border-color: var(--c-border); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }

.pill {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.5;
    padding: 1px 8px; border-radius: 999px; vertical-align: middle; white-space: nowrap;
}
.pill-beta { background: rgba(16,185,129,.14); color: var(--c-present-text); border: 1px solid rgba(16,185,129,.35); }
.pill-new { background: rgba(110,160,255,.14); color: var(--c-primary); border: 1px solid rgba(110,160,255,.35); }
.pill-soon { background: rgba(245,158,11,.13); color: #fbbf24; border: 1px solid rgba(245,158,11,.35); }

/* ---------- header ---------- */
header {
    position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--c-bg) 84%, transparent);
    backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--c-border-soft);
}
.nav { display: flex; align-items: center; gap: 20px; padding: 14px 24px; position: relative; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; font-size: 18px; color: var(--c-ink); }
.brand:hover { color: var(--c-ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--c-muted); font-weight: 500; font-size: 14.5px; }
.nav-links a:hover { color: var(--c-ink); }
.nav-links a.nav-admin { font-size: 12.5px; color: var(--c-soft); }
.nav-links .btn { padding: 10px 17px; font-size: 14px; color: #fff; }
.nav-toggle {
    display: none; margin-left: auto; background: var(--c-card); border: 1px solid var(--c-border);
    color: var(--c-ink); border-radius: 10px; width: 42px; height: 40px; cursor: pointer; padding: 0;
    align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 920px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none; position: absolute; top: calc(100% + 8px); right: 16px; left: 16px;
        flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
        background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius);
        box-shadow: var(--shadow-lift);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 14px; border-radius: 9px; font-size: 15px; }
    .nav-links a:hover { background: var(--c-bg-tint); }
    .nav-links a.nav-admin { font-size: 14px; }
    .nav-links .btn { margin-top: 6px; padding: 12px 17px; }
}


/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-head { max-width: 44rem; margin-bottom: 44px; }
.section-head p { color: var(--c-muted); font-size: 1.06rem; margin-top: 14px; }
.section-head .kicker { color: var(--c-primary); font-size: 12px; margin-top: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.soft { background: var(--c-bg-soft); border-top: 1px solid var(--c-border-soft); border-bottom: 1px solid var(--c-border-soft); }
.card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-card); }


/* icons */
.ico {
    width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
    background: rgba(110,160,255,.10); border: 1px solid rgba(110,160,255,.28); color: var(--c-primary);
}
.ico svg { width: 21px; height: 21px; }


/* faq */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); }
.faq details[open] { border-color: #2a3a5c; }
.faq summary {
    list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--c-soft); flex: none; transition: transform .15s ease; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--c-primary); }
.faq summary:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: var(--radius); }
.faq .ans { padding: 0 22px 20px; color: var(--c-muted); font-size: 15px; }


/* footer */
footer { padding: 40px 0 46px; border-top: 1px solid var(--c-border-soft); color: var(--c-soft); margin-top: 40px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; font-size: 13.5px; }
.foot a { color: var(--c-muted); }
.foot a:hover { color: var(--c-primary); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot .brand { font-size: 16px; }
.foot .brand img { width: 26px; height: 26px; }
.tm { font-size: 12.5px; color: var(--c-soft); margin-top: 8px; max-width: 40rem; }

/* lightbox */
#lightbox {
    display: none; position: fixed; inset: 0; background: rgba(3,6,14,.9); z-index: 9999; cursor: zoom-out;
    justify-content: center; align-items: center; padding: 20px;
}
#lightbox img { max-width: 100%; max-height: 92vh; border-radius: 12px; box-shadow: 0 8px 60px rgba(0,0,0,.6); }
#lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }


@media (max-width: 520px) {
    .container, .nav { padding-left: 16px; padding-right: 16px; }
    .section { padding: 64px 0; }
    .faq summary { padding: 16px 18px; }
    .faq .ans { padding: 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }


/* ==========================================================================
   Subpages (guide, guides, get-started, privacy, terms, changelog).
   Nothing below is used by the home page.
   ========================================================================== */
:root {
    --c-text: #c9d3e3;           /* long-form body text on navy, ~11:1 */
    --c-green-text: #34d399;
    --c-amber-text: #fbbf24;
}

/* current page in the nav and footer */
.nav-links a.active { color: var(--c-ink); position: relative; }
.nav-links a.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    border-radius: 2px; background: var(--grad-brand);
}
.nav-links a.btn.active { box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 4px #8ab4ff; }
.nav-links a.btn.active::after { display: none; }
.foot-links a.active { color: var(--c-ink); font-weight: 600; }
@media (max-width: 920px) {
    .nav-links a.active { background: var(--c-bg-tint); }
    .nav-links a.active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
}

/* page header */
.page-hero { padding: 64px 0 44px; position: relative; overflow: hidden; border-bottom: 1px solid var(--c-border-soft); }
.page-hero::before {
    content: ""; position: absolute; inset: -60% 40% auto -10%; height: 520px;
    background: radial-gradient(60% 60% at 30% 30%, rgba(37,99,235,.16), transparent 70%); pointer-events: none;
}
.page-hero::after {
    content: ""; position: absolute; inset: -30% -10% auto 55%; height: 460px;
    background: radial-gradient(55% 55% at 60% 40%, rgba(124,58,237,.12), transparent 70%); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 2.85rem); margin-bottom: 14px; }
.page-hero .lede { color: var(--c-muted); font-size: clamp(1.02rem, 1.5vw, 1.15rem); max-width: 40rem; }
.page-hero .meta { color: var(--c-soft); font-size: 13.5px; margin-top: 14px; }
.page-hero.center { text-align: center; }
.page-hero.center .lede { margin: 0 auto; }
.page-body { padding: 48px 0 24px; }
.container.narrow { max-width: 840px; }

/* long-form text */
.prose { max-width: 70ch; font-size: 16.5px; line-height: 1.75; color: var(--c-text); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
    font-size: 1.4rem; font-weight: 750; margin: 48px 0 14px; padding-top: 30px;
    border-top: 1px solid var(--c-border-soft); color: var(--c-ink); text-wrap: balance;
}
.prose h2:first-child { padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 30px 0 10px; color: var(--c-ink); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 9px; padding-left: 4px; }
.prose li::marker { color: var(--c-primary); }
.prose ol li::marker { font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: rgba(110,160,255,.45); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose a.btn { text-decoration: none; }
.prose .small { font-size: 14px; color: var(--c-muted); }
.prose .label { font-weight: 600; color: var(--c-ink); margin: 18px 0 6px; }
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em;
    background: var(--c-bg-tint); border: 1px solid var(--c-border); color: #dbe5f5;
    padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere;
}

/* tip and callout boxes */
.callout {
    background: rgba(110,160,255,.07); border: 1px solid rgba(110,160,255,.24); border-left: 3px solid var(--c-primary);
    border-radius: 12px; padding: 14px 18px; margin: 20px 0; font-size: 15px; line-height: 1.65; color: #d6e0f2;
}
.callout strong { color: #fff; }
.callout-warn { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.3); border-left-color: #f59e0b; }
.callout-green { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.3); border-left-color: var(--c-present); }
.callout-green a { color: var(--c-green-text); font-weight: 600; }

/* solid badge, e.g. OPEN BETA */
.badge-beta {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; line-height: 1.5;
    background: var(--c-present); color: #04231a; padding: 2px 9px; border-radius: 8px; vertical-align: middle;
}
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.title-row h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; }
a.link-green { color: var(--c-green-text); font-weight: 600; }
a.link-strong { font-weight: 600; }

/* staff guide: platform tabs */
.tabs {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin: 30px 0 34px;
    background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius);
}
.tab {
    flex: 1 1 auto; appearance: none; -webkit-appearance: none; background: transparent; border: 0; cursor: pointer;
    color: var(--c-muted); font: 600 14.5px/1.3 var(--font); padding: 10px 16px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
    transition: background .12s ease, color .12s ease;
}
.tab:hover { color: var(--c-ink); background: var(--c-bg-tint); }
.tab:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.tab.active { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(37,99,235,.8); }
.tab.active .pill-beta { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.4); }
.platform-content { display: none; }
.platform-content.active { display: block; }
@media (max-width: 520px) { .tab { flex: 1 1 40%; padding: 10px 10px; font-size: 14px; } }

/* staff guide: numbered steps */
.gstep { display: grid; grid-template-columns: 32px 1fr; gap: 14px; margin: 0 0 16px; }
.gstep-num {
    width: 32px; height: 32px; border-radius: 50%; background: var(--grad-brand); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 14px;
    box-shadow: 0 6px 16px -8px rgba(37,99,235,.9);
}
.gstep-body { padding-top: 3px; min-width: 0; }
.qr { margin-top: 14px; text-align: center; }
.qr img { display: inline-block; width: 160px; height: 160px; background: #fff; padding: 8px; border-radius: 14px; }

/* guides hub */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 520px) { .cards-grid { grid-template-columns: 1fr; } }
.guide-card { padding: 26px 24px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.guide-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-brand); }
.guide-card .pill { align-self: flex-start; margin-bottom: 14px; }
.guide-card h2 { font-size: 1.25rem; margin-bottom: 8px; }
.guide-card p { color: var(--c-muted); font-size: 15px; margin-bottom: 20px; flex: 1; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { padding: 10px 18px; font-size: 14.5px; }
.more { margin-top: 28px; padding: 26px 24px; }
.more h2 { font-size: 1.25rem; margin-bottom: 12px; }
.more ul { margin: 0; padding-left: 20px; color: var(--c-muted); font-size: 15px; }
.more li { margin-bottom: 8px; }
.more li::marker { color: var(--c-primary); }

/* get started */
.gs-step { padding: 28px 28px 28px 88px; margin-bottom: 20px; position: relative; }
.gs-num {
    position: absolute; left: 26px; top: 26px; width: 42px; height: 42px; border-radius: 12px;
    background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px;
    box-shadow: 0 10px 24px -12px rgba(37,99,235,.9);
}
.gs-step h2 { font-size: 1.3rem; margin-bottom: 8px; }
.gs-step p { color: var(--c-muted); font-size: 15px; }
.gs-step p + p { margin-top: 10px; }
.gs-step .fine { font-size: 13.5px; color: var(--c-soft); }
.gs-step .action { margin-top: 20px; }
.gs-step.done { border-color: rgba(16,185,129,.35); background: linear-gradient(160deg, rgba(16,185,129,.10), rgba(16,185,129,.02)), var(--c-card); }
.gs-step.done .gs-num { background: var(--c-present); color: #04231a; box-shadow: none; }
.plat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 18px; }
.plat-item { background: var(--c-bg-tint); border: 1px solid var(--c-border); border-radius: 12px; padding: 16px; }
.plat-item h3 { font-size: 15px; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.plat-item p { font-size: 13.5px !important; color: var(--c-muted); line-height: 1.5; }
.pill-staff { background: rgba(16,185,129,.14); color: var(--c-present-text); border: 1px solid rgba(16,185,129,.35); }
.pill-admin { background: rgba(245,158,11,.13); color: var(--c-amber-text); border: 1px solid rgba(245,158,11,.35); }
.help-box { text-align: center; padding: 34px 26px; margin-top: 36px; }
.help-box h3 { font-size: 1.25rem; margin-bottom: 8px; }
.help-box p { color: var(--c-muted); margin-bottom: 20px; }
@media (max-width: 520px) {
    .gs-step { padding: 22px 20px; }
    .gs-num { position: static; margin-bottom: 14px; width: 38px; height: 38px; font-size: 16px; }
    .help-box .btn { white-space: normal; }
}

/* changelog */
.releases { max-width: 840px; }
.release { margin-bottom: 16px; overflow: hidden; }
.release > summary {
    list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: flex-start;
    justify-content: space-between; gap: 16px; transition: background-color .15s;
}
.release > summary::-webkit-details-marker { display: none; }
.release > summary::marker { content: ''; }
.release > summary:hover { background: var(--c-bg-tint); }
.release > summary:focus-visible { outline: 2px solid var(--c-primary); outline-offset: -2px; }
.release .summary-text { flex: 1; min-width: 0; }
.release h2 { font-size: 1.22rem; letter-spacing: -.015em; }
.release .date { font-size: 12px; font-weight: 600; color: var(--c-soft); margin-top: 8px; text-transform: uppercase; letter-spacing: .1em; }
.release .chevron {
    flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--c-border); color: var(--c-soft); font-size: 20px; line-height: 1; transition: transform .2s;
}
.release[open] > summary .chevron { transform: rotate(90deg); color: var(--c-primary); border-color: rgba(110,160,255,.4); }
.release[open] > summary { border-bottom: 1px solid var(--c-border); }
.release-body { padding: 22px 26px 24px; }
.section-header {
    display: inline-flex; align-items: center; gap: 8px; margin: 26px 0 12px; padding: 5px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.release-body .section-header:first-child { margin-top: 0; }
.section-header.new { background: rgba(16,185,129,.12); color: var(--c-present-text); border: 1px solid rgba(16,185,129,.3); }
.section-header.fix { background: rgba(245,158,11,.11); color: var(--c-amber-text); border: 1px solid rgba(245,158,11,.3); }
.section-header.notice { background: rgba(110,160,255,.11); color: var(--c-primary-dark); border: 1px solid rgba(110,160,255,.3); }
.release ul { margin: 0 0 8px; padding-left: 22px; max-width: 72ch; }
.release li { margin-bottom: 12px; font-size: 15.5px; color: var(--c-text); line-height: 1.7; }
.release li::marker { color: var(--c-soft); }
.release li strong { color: var(--c-ink); }
.platform-pill {
    display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.7;
    margin: 0 6px 2px 0; vertical-align: middle; white-space: nowrap;
    background: rgba(110,160,255,.10); color: #a9c4ff; border: 1px solid rgba(110,160,255,.25);
}
@media (max-width: 520px) {
    .release > summary { padding: 18px 18px; }
    .release-body { padding: 18px 18px 20px; }
    .release ul { padding-left: 18px; }
    .page-hero { padding: 44px 0 32px; }
    .page-body { padding-top: 32px; }
    .prose { font-size: 16px; }
}
.back { display: flex; width: fit-content; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--c-muted); margin-bottom: 22px; }
.back:hover { color: var(--c-ink); }
