/* focalmap — marketing site + customer portal.
   Built on the brand guidelines (focalmap-logo/focalmap-brand-guidelines.md, v1.0):
   Paper grounds, white cards with 1px Mist borders and 16–20px radii, Ink text, Signal Deep for
   buttons/links, Signal (coral) reserved for "now" and the brand, activity colours only for the
   timeline — always paired with a label. No gradients, glows or heavy shadows.
   Fonts are self-hosted (no third-party requests from a privacy product); SIL OFL, see /fonts. */

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("fonts/bricolage-grotesque-latin-opsz.woff2") format("woff2-variations");
    font-weight: 200 800;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url("fonts/dm-sans-latin-opsz.woff2") format("woff2-variations");
    font-weight: 100 1000;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Mono";
    src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Mono";
    src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

:root {
    /* Core palette */
    --ink: #151B2B;
    --paper: #F6F4EF;
    --mist: #E3DFD5;
    --slate: #596070;
    --signal: #E4572E;        /* graphics only — never text */
    --signal-deep: #B83D1B;   /* buttons, links */
    --white: #FFFFFF;
    --ink-soft-on-dark: #B9BFCC;

    /* Activity colours (timeline categories) */
    --act-deep: #3358C4;
    --act-meet: #7A52C7;
    --act-comm: #11897A;
    --act-research: #D99A1E;
    --act-admin: #8B93A1;
    --act-break: #E3DFD5;

    /* Semantic tokens (light) */
    --bg: var(--paper);
    --bg-muted: #EFECE5;
    --surface: var(--white);
    --border: var(--mist);
    --text: var(--ink);
    --text-soft: var(--slate);
    --link: var(--signal-deep);
    --btn-bg: var(--signal-deep);
    --btn-bg-hover: #9E3316;
    --btn-text: var(--white);
    --focus: var(--act-deep);
    --ok-bg: #E4F1EE; --ok-text: #0B6155; --ok-border: #BFDDD7;
    --warn-bg: #FBEBD2; --warn-text: #7A4B06; --warn-border: #F0D3A4;
    --err-bg: #FBE7E1; --err-text: #8E2E13; --err-border: #F2C3B4;

    --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

    --radius: 16px;
    --radius-lg: 20px;
    --radius-sm: 12px;
    --maxw: 1140px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: var(--ink);
        --bg-muted: #10151F;
        --surface: #1C2335;
        --border: #2C3448;
        --text: var(--paper);
        --text-soft: var(--ink-soft-on-dark);
        --link: var(--paper);
        --btn-bg: var(--signal-deep);
        --btn-bg-hover: #C9481F;
        --btn-text: var(--white);
        --focus: #8FA8F0;
        --ok-bg: #12302C; --ok-text: #8ED7CB; --ok-border: #1E4A43;
        --warn-bg: #33270F; --warn-text: #F1C77A; --warn-border: #4E3B14;
        --err-bg: #3A1A12; --err-text: #F5B39E; --err-border: #5A2A1C;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* Blazor's FocusOnNavigate moves focus to the h1 for screen readers; don't draw a ring for it. */
h1:focus, h1:focus-visible { outline: none; }

h1, h2, h3 { font-family: var(--font-display); color: var(--text); margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.07; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }
code, .mono { font-family: var(--font-mono); font-size: .92em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .container { padding: 0 16px; } }

.site { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* Overline (IBM Plex Mono, uppercase, +12% tracking). `.pill` kept as an alias for existing pages. */
.overline, .pill {
    display: inline-block; margin: 0 0 1rem;
    font-family: var(--font-mono); font-size: .8125rem; line-height: 1.25; font-weight: 400;
    letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft);
    background: none; padding: 0; border-radius: 0;
}
h3 .pill { margin: 0 0 0 .5rem; font-size: .72rem; vertical-align: middle; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.2rem; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
    cursor: pointer; border: 1px solid transparent; text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    background: var(--surface); color: var(--text); border-color: var(--border);
}
.btn:hover { text-decoration: none; border-color: var(--text-soft); }
.btn--primary { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.btn--primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--text); }
.btn--lg { padding: .9rem 1.5rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

/* --- Header --- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 30px; width: auto; }
.brand--center { justify-content: center; margin: 0 auto 1.5rem; }
.brand--center img { height: 32px; }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a { color: var(--text-soft); font-weight: 500; font-size: .9375rem; text-decoration: none; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-header__actions { display: flex; gap: .6rem; margin-left: auto; align-items: center; }
.site-header__actions .btn { padding: .55rem 1rem; font-size: .9375rem; }
.header-signout { margin: 0; }

/* --- Hero --- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero__lead { font-size: 1.1875rem; line-height: 1.55; color: var(--text-soft); margin: 0 0 1.8rem; max-width: 34rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__note { margin: 1.3rem 0 0; color: var(--text-soft); font-size: .875rem; }
.hero__note span + span::before { content: "·"; margin: 0 .5rem; }

/* --- Day timeline illustration (hero) --- */
.daymap {
    margin: 0; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem;
}
.daymap__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.1rem; gap: 1rem; }
.daymap__day { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.daymap__total { font-family: var(--font-mono); font-size: .875rem; color: var(--text-soft); }
.daymap__track { position: relative; display: flex; gap: 2px; height: 44px; }
.daymap__seg { border-radius: 6px; min-width: 4px; }
.daymap__now {
    position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--signal); border-radius: 1px;
}
.daymap__now::before {
    content: ""; position: absolute; top: -6px; left: -5px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--signal);
}
.daymap__axis {
    display: flex; justify-content: space-between; margin-top: .55rem;
    font-family: var(--font-mono); font-size: .75rem; color: var(--text-soft);
}
.daymap__legend { list-style: none; margin: 1.3rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.5rem; }
.daymap__legend li { display: flex; align-items: center; gap: .55rem; font-size: .9375rem; }
.daymap__legend .dur { margin-left: auto; font-family: var(--font-mono); font-size: .875rem; color: var(--text-soft); }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
.daymap__caption { margin: 1rem 0 0; font-size: .875rem; color: var(--text-soft); }

.c-deep { background: var(--act-deep); }
.c-meet { background: var(--act-meet); }
.c-comm { background: var(--act-comm); }
.c-research { background: var(--act-research); }
.c-admin { background: var(--act-admin); }
.c-break { background: var(--act-break); }
@media (prefers-color-scheme: dark) { .c-break { background: #3A4258; } }

/* --- Bands / sections --- */
.band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.band--flush { padding-top: 1rem; }
.band__more { margin: 1.75rem 0 0; }
.band--muted { background: var(--bg-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink h2, .band--ink h3 { color: var(--paper); }
.band--ink p, .band--ink li { color: var(--ink-soft-on-dark); }
.band--ink .overline { color: var(--ink-soft-on-dark); }
.band--ink a { color: var(--paper); }
@media (prefers-color-scheme: dark) { .band--ink { background: #0E1320; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); } }

.section-head { max-width: 44rem; margin: 0 0 2.5rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { text-align: center; }
.section-sub, .section-head p { color: var(--text-soft); font-size: 1.0625rem; }
.section-sub { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card, .feature {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
}
.card h3, .feature h3 { margin-bottom: .4rem; }
.card p, .feature p { color: var(--text-soft); margin: 0; }
.card--pad { padding: 2rem; }
.card > p + p { margin-top: .8rem; }

.icon {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem;
    border-radius: 12px; background: var(--bg-muted); border: 1px solid var(--border); color: var(--text);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* --- Steps --- */
.steps { display: flex; flex-direction: column; gap: 1rem; max-width: 820px; margin: 0 auto; }
.step {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem 1.75rem;
}
.step__num {
    font-family: var(--font-mono); font-size: .875rem; color: var(--text-soft);
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
    display: grid; place-items: center;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--text-soft); margin: 0; }

/* --- Privacy promises --- */
.promise { border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--border); background: var(--surface); }
.promise ul { margin: 0; padding: 0; list-style: none; }
.promise li { margin: .6rem 0 0; padding-left: 1.6rem; position: relative; color: var(--text-soft); }
.promise li::before { position: absolute; left: 0; top: 0; font-family: var(--font-mono); color: var(--text); }
.promise--never li::before { content: "×"; }
.promise--only li::before { content: "✓"; }
.band--ink .promise { background: rgba(246, 244, 239, .04); border-color: rgba(246, 244, 239, .14); }
.band--ink .promise li::before { color: var(--paper); }
.band--ink .section-head p, .band--ink .promise li { color: var(--ink-soft-on-dark); }

/* --- Page head --- */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { max-width: 20ch; }
.page-head__lead { color: var(--text-soft); font-size: 1.1875rem; line-height: 1.55; max-width: 40rem; margin: 0; }

/* --- Packs --- */
.pack { display: flex; flex-direction: column; }
.pack ul { margin: .9rem 0 0; padding-left: 1.1rem; color: var(--text-soft); }
.pack li { margin: .3rem 0; }

/* --- Support --- */
.support { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 3rem; align-items: start; }
.support__toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: .55rem; }
.support__toc a { color: var(--text-soft); text-decoration: none; font-weight: 500; }
.support__toc a:hover { color: var(--text); }
.support__body { min-width: 0; }
.support__contact h2, .support__heading { font-size: 1.5rem; }
.support__heading { margin: 2.5rem 0 1rem; scroll-margin-top: 96px; }
.support__contact { scroll-margin-top: 96px; }
.faq { display: flex; flex-direction: column; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.25rem; }
.faq summary {
    cursor: pointer; list-style: none; padding: 1rem 1.75rem 1rem 0; position: relative;
    font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 0; top: .85rem;
    font-family: var(--font-mono); font-size: 1.25rem; color: var(--text-soft);
}
.faq details[open] summary::after { content: "−"; }
.faq details > :not(summary) { color: var(--text-soft); margin: 0 0 1rem; }
.faq ol { padding-left: 1.25rem; }
.faq li { margin: .3rem 0; }
@media (max-width: 860px) {
    .support { grid-template-columns: 1fr; gap: 1.5rem; }
    .support__toc { position: static; flex-direction: row; flex-wrap: wrap; gap: .5rem 1.2rem; }
}

/* --- Pricing --- */
.pricing { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.plan__head h2 { margin-bottom: .15rem; font-size: 1.75rem; }
.plan__tag { color: var(--text-soft); margin: 0 0 1.25rem; }
.plan__price { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .35rem; }
.plan__amount { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.plan__per { color: var(--text-soft); font-weight: 500; }
.plan__trial { font-family: var(--font-mono); font-size: .875rem; color: var(--text-soft); margin-bottom: 1.4rem; }
.plan__features { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.plan__features li { padding: .6rem 0 .6rem 1.7rem; position: relative; border-top: 1px solid var(--border); }
.plan__features li:first-child { border-top: none; }
.plan__features li::before { content: "✓"; position: absolute; left: 0; font-family: var(--font-mono); color: var(--text-soft); }
.plan__foot { color: var(--text-soft); font-size: .875rem; text-align: center; margin: 1rem 0 0; }
.pricing-aside { padding: .5rem 0; }
.pricing-aside h3 { margin-top: 1.6rem; }
.pricing-aside h3:first-child { margin-top: 0; }
.pricing-aside p { color: var(--text-soft); }

/* --- CTA band --- */
.cta { padding: clamp(3.5rem, 8vw, 5.5rem) 0; text-align: center; border-top: 1px solid var(--border); }
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta p { color: var(--text-soft); font-size: 1.0625rem; margin-bottom: 1.5rem; }

/* --- Footer (Ink) --- */
.site-footer { background: var(--ink); color: var(--paper); padding: 3.5rem 0 1.75rem; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.site-footer__brand { max-width: 380px; }
.site-footer__brand img { height: 30px; width: auto; display: block; }
.site-footer__brand p { color: var(--ink-soft-on-dark); font-size: .9375rem; margin-top: 1.1rem; }
.site-footer__cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.site-footer__links { display: flex; flex-direction: column; gap: .55rem; }
.site-footer__links .overline { color: var(--ink-soft-on-dark); margin-bottom: .4rem; }
.site-footer__links a { color: var(--paper); text-decoration: none; font-size: .9375rem; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__legal {
    margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(246, 244, 239, .14);
    color: var(--ink-soft-on-dark); font-size: .8125rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.site-footer__legal a { color: var(--ink-soft-on-dark); }
@media (prefers-color-scheme: dark) { .site-footer { background: #0E1320; border-top: 1px solid var(--border); } }

/* --- Download page --- */
.download { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.download-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.download-card h3 { margin-bottom: .3rem; }
.download-card .btn { margin: .9rem 0; }
.download-meta { font-family: var(--font-mono); font-size: .8125rem; color: var(--text-soft); margin: 0; }
.download-portable { margin-top: .2rem; }
.download-aside { padding: .5rem 0; }
.download-aside h3 { margin-top: 1.4rem; }
.download-aside h3:first-child { margin-top: 0; }
.promise-list { margin: 0 0 1rem; padding-left: 1.1rem; }
.promise-list li { margin: .45rem 0; color: var(--text-soft); }
.muted { color: var(--text-soft); font-size: .9375rem; }

/* --- Auth pages --- */
.auth-page { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 3rem 1rem; }
.auth-card {
    width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2.25rem 2rem; text-align: center;
}
.auth-card h1 { font-size: 1.875rem; margin-bottom: .35rem; }
.auth-sub { color: var(--text-soft); margin-bottom: 1.5rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; margin-top: .5rem; }
.auth-form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 500; font-size: .875rem; }
.auth-form label em { color: var(--text-soft); font-weight: 400; font-style: normal; }
.auth-form input, .seat-field input, .onboard-form select, .onboard-form input[type=number] {
    padding: .7rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
}
.auth-form input:focus, .seat-field input:focus, .onboard-form select:focus, .onboard-form input:focus {
    outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus);
}
.auth-form button { margin-top: .4rem; }
.auth-alt { margin-top: 1.4rem; color: var(--text-soft); font-size: .9375rem; }
.auth-sub, .auth-alt { text-align: center; }
.auth-error {
    background: var(--err-bg); color: var(--err-text); border: 1px solid var(--err-border);
    border-radius: var(--radius-sm); padding: .75rem .95rem; font-size: .9375rem; margin-bottom: 1rem; text-align: left;
}
.auth-note { color: var(--text-soft); }
.auth-ms { margin-bottom: .4rem; }
.ms-logo {
    width: 16px; height: 16px; display: inline-block; flex: 0 0 auto;
    background:
        linear-gradient(#f25022 0 0) 0 0 / 7px 7px no-repeat,
        linear-gradient(#7fba00 0 0) 9px 0 / 7px 7px no-repeat,
        linear-gradient(#00a4ef 0 0) 0 9px / 7px 7px no-repeat,
        linear-gradient(#ffb900 0 0) 9px 9px / 7px 7px no-repeat;
}
.auth-divider { display: flex; align-items: center; gap: .8rem; color: var(--text-soft); margin: 1.1rem 0; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* --- Customer dashboard --- */
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.dash-signout { margin-top: 1rem; }
.badge {
    display: inline-block; padding: .25rem .65rem; border-radius: 999px;
    font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; border: 1px solid transparent;
}
.badge--trial { background: #E6ECFA; color: #26449A; border-color: #C9D5F3; }
.badge--ok { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-border); }
.badge--warn { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-border); }
.badge--muted { background: var(--bg-muted); color: var(--text-soft); border-color: var(--border); }
@media (prefers-color-scheme: dark) { .badge--trial { background: #1C2A52; color: #AFC2F4; border-color: #2B3D70; } }
.dash-cta { margin-top: .8rem; }
.seat-form { display: flex; align-items: flex-end; gap: .7rem; flex-wrap: wrap; }
.seat-field { display: flex; flex-direction: column; gap: .3rem; font-size: .8125rem; font-weight: 500; color: var(--text-soft); }
.seat-field input { width: 96px; }
.pack-opt { display: flex; align-items: center; gap: .45rem; font-size: .9375rem; width: 100%; }
.notice { padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.notice--ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-text); }
.code-box {
    font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; letter-spacing: .12em;
    text-align: center; padding: .9rem; margin: .6rem 0;
    background: var(--bg); border: 1px dashed var(--text-soft); border-radius: var(--radius-sm); color: var(--text);
}
.kv { list-style: none; padding: 0; margin: 0 0 1rem; }
.kv li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--border); }
.kv li:first-child { border-top: none; }
.kv span { color: var(--text-soft); }

/* --- Admin console --- */
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat__num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stat__label { color: var(--text-soft); font-size: .875rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.admin-table th, .admin-table td { text-align: left; padding: .75rem 1rem; white-space: nowrap; }
.admin-table thead th { color: var(--text-soft); font-family: var(--font-mono); font-weight: 400; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; border-bottom: 1px solid var(--border); }
.admin-table tbody tr { border-top: 1px solid var(--border); }
.admin-table tbody tr:first-child { border-top: none; }
.tag { display: inline-block; margin-left: .45rem; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; }
.tag--muted { background: var(--bg-muted); color: var(--text-soft); }
.admin-back { margin-top: 1.5rem; }
.onboard-panel, .onboard-result { margin-bottom: 1.25rem; }
.onboard-result { border-left: 4px solid var(--act-comm); }
.onboard-form { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; margin-top: .7rem; }
.onboard-form > label { display: flex; flex-direction: column; gap: .3rem; font-size: .875rem; font-weight: 500; }
.onboard-packs { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .45rem .85rem; display: flex; gap: 1rem; align-items: center; }
.onboard-packs legend { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-soft); padding: 0 .3rem; }
.onboard-packs label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 400; }

/* --- Responsive --- */
@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero h1 { max-width: none; }
}
@media (max-width: 860px) {
    .grid--2, .grid--3, .pricing, .download, .dash-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-nav { display: none; }
}
@media (max-width: 560px) {
    .site-header__actions .btn--ghost { display: none; }
    .daymap { padding: 1.1rem; }
    .daymap__legend { grid-template-columns: 1fr; }
    .brand img { height: 26px; }
    .step { grid-template-columns: 1fr; gap: .75rem; }
}

#blazor-error-ui {
    background: var(--err-bg); color: var(--err-text); bottom: 0; left: 0; right: 0;
    display: none; padding: .8rem 1.2rem; position: fixed; z-index: 1000; border-top: 1px solid var(--err-border);
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: .7rem; }
