/* Brand palette shared with the marketing site (front-desk.info) so the app reads as the same product.
   These variables are the intended hook for further styling work. */
:root {
    --fd-midnight: #0e1826;
    --fd-cream: #f4ede4;
    --fd-ink: #172033;
    --fd-teal: #0f766e;
    --fd-teal-bright: #2dd4bf;
    --fd-amber: #f59e0b;
    --fd-slate: #64748b;
}

/* Same face the marketing site uses, served from our own static assets */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/static/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/static/fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* {
    box-sizing: border-box;
}

html {
    font-family: 'Space Grotesk', 'Segoe UI', Arial, Helvetica, sans-serif;
    color: var(--fd-ink);
    background: var(--fd-cream);
}

body {
    margin: 0;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

a {
    color: #0f766e;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
    max-width: 780px;
}

h2 {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.page-header {
    padding: 2rem 0;
}

.home-hero {
    align-items: center;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
}

.page-kicker {
    color: #0f766e;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.lede {
    color: #475569;
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 760px;
}

.page-header p:not(.lede),
.section p {
    color: #475569;
    line-height: 1.6;
}

.section {
    border-top: 1px solid #d6dce5;
    padding: 2rem 0;
}

.section-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.split-section {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
}

.plain-list {
    color: #475569;
    line-height: 1.6;
    margin: 0;
    padding-left: 1.2rem;
}

.placeholder-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.placeholder-panel {
    background: #ffffff;
    border: 1px solid #d6dce5;
    border-radius: 6px;
    padding: 1rem;
}

.placeholder-panel h2,
.placeholder-panel h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.placeholder-panel p {
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0;
}

.feature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-panel,
.callout-panel,
.pricing-panel {
    background: #ffffff;
    border: 1px solid #d6dce5;
    border-radius: 6px;
    padding: 1.15rem;
}

.feature-panel h3,
.callout-panel h2,
.pricing-panel h2 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.feature-panel p,
.callout-panel p,
.pricing-panel p {
    margin-bottom: 0;
}

.hero-image-panel {
    background: #ffffff;
    border: 1px solid #d6dce5;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.hero-image-panel img,
.media-story img {
    display: block;
    height: auto;
    width: 100%;
}

.signal-row {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signal-row div {
    background: #ffffff;
    border-left: 4px solid #0f766e;
    border-radius: 6px;
    padding: 1rem;
}

.signal-row span,
.pricing-panel span {
    color: #0f766e;
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.signal-row strong {
    display: block;
    line-height: 1.35;
}

.flow-steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.flow-steps article {
    background: #ffffff;
    border: 1px solid #d6dce5;
    border-radius: 6px;
    padding: 1rem;
}

.flow-steps span {
    align-items: center;
    background: #0f766e;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    width: 2rem;
}

.flow-steps h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.flow-steps p {
    margin-bottom: 0;
}

.demo-band,
.media-story {
    align-items: center;
    background: #102033;
    border-radius: 8px;
    color: #ffffff;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.5rem;
}

.demo-band .page-kicker,
.media-story .page-kicker {
    color: #7dd3fc;
}

.demo-band p,
.media-story p {
    color: #dbeafe;
}

.media-story {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
}

.media-story.light {
    background: #ffffff;
    border: 1px solid #d6dce5;
    color: #172033;
}

.media-story.light .page-kicker {
    color: #0f766e;
}

.media-story.light p {
    color: #475569;
}

.media-story.reverse {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
}

.media-story.reverse img {
    order: 2;
}

.media-story img {
    border-radius: 6px;
}

.text-link {
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
}

.pricing-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pricing-panel.featured {
    border-color: #0f766e;
    box-shadow: 0 14px 36px rgba(15, 118, 110, 0.15);
}

.pricing-panel .plain-list {
    margin-top: 1rem;
}

.button-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.button-link {
    align-items: center;
    background: var(--fd-amber);
    border-radius: 999px;
    color: var(--fd-midnight);
    font-weight: 600;
    display: inline-flex;
    min-height: 2.75rem;
    padding: 0.65rem 1.25rem;
    text-decoration: none;
}

.button-link.secondary {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #172033;
    font-weight: 500;
}

.account-link {
    color: rgba(244, 237, 228, 0.85);
    font-size: 0.875rem;
    margin-left: auto;
    text-decoration: none;
}

.account-nav {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.account-nav a {
    color: rgba(244, 237, 228, 0.85);
    font-size: 0.875rem;
    text-decoration: none;
}

.account-nav .account-identity {
    color: rgba(244, 237, 228, 0.6);
    font-size: 0.875rem;
}

.account-nav .sign-out-form {
    display: inline-flex;
    margin: 0;
}

.account-nav .sign-out-form button {
    background: none;
    border: 0;
    color: rgba(244, 237, 228, 0.85);
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    padding: 0;
    text-decoration: underline;
}

.portal-tile {
    background: #ffffff;
    border: 1px solid #d6dce5;
    border-radius: 6px;
    color: #172033;
    display: block;
    padding: 1rem;
    text-decoration: none;
}

.portal-tile h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.portal-tile p {
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0;
}

.workspace-nav {
    border-top: 1px solid #d6dce5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0 0;
}

.workspace-nav a {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #172033;
    font-size: 0.875rem;
    padding: 0.45rem 0.7rem;
    text-decoration: none;
}

.ops-inventory-toolbar {
    align-items: end;
    display: grid;
    gap: 0.75rem 1rem;
    grid-template-columns: minmax(16rem, 1fr) auto auto;
    margin-bottom: 1rem;
}

.ops-filter {
    display: grid;
    font-weight: 700;
    gap: 0.35rem;
}

.ops-filter input {
    border: 1px solid #94a3b8;
    border-radius: 4px;
    font: inherit;
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    width: 100%;
}

.ops-filter input:focus-visible {
    border-color: #0f766e;
    outline: 2px solid #99f6e4;
    outline-offset: 1px;
}

.ops-count {
    color: #475569;
    padding-bottom: 0.75rem;
    white-space: nowrap;
}

.ops-table-scroll {
    overflow-x: auto;
}

.ops-id {
    color: #64748b;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.ops-state {
    border-radius: 4px;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.45rem;
}

.ops-state.online {
    background: #dcfce7;
    color: #166534;
}

.ops-state.offline {
    background: #f1f5f9;
    color: #475569;
}

.ops-state.revoked {
    background: #ffe4e6;
    color: #9f1239;
}

.ops-error {
    background: #fff1f2;
    border: 1px solid #fda4af;
    border-radius: 6px;
    color: #9f1239;
    padding: 0.75rem 1rem;
}

@media (max-width: 820px) {
    .ops-inventory-toolbar {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .ops-count {
        padding-bottom: 0;
    }
}
.data-table {
    border-collapse: collapse;
    width: 100%;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid #d6dce5;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: #475569;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-list {
    display: grid;
    gap: 0.5rem 1rem;
    grid-template-columns: max-content minmax(0, 1fr);
    margin: 0;
}

.detail-list dt {
    color: #475569;
    font-weight: 700;
}

.detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

button.button-link {
    border: 0;
    cursor: pointer;
    font: inherit;
}

button.button-link:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.ai-chat-panel {
    background: #ffffff;
    border: 1px solid #d6dce5;
    border-radius: 6px;
    padding: 1rem;
}

.ai-chat-panel label {
    color: #172033;
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ai-chat-panel textarea {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #172033;
    font: inherit;
    line-height: 1.5;
    max-width: 820px;
    min-height: 8rem;
    padding: 0.75rem;
    resize: vertical;
    width: 100%;
}

.ai-chat-status {
    color: #475569;
    margin: 1rem 0 0;
}

.ai-answer-block {
    border-top: 1px solid #d6dce5;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.ai-answer-block h2,
.ai-answer-block h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.ai-answer {
    color: #172033;
    line-height: 1.6;
    white-space: pre-wrap;
}

.inline-field {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
}

.approval-table {
    border-collapse: collapse;
    width: 100%;
}

.approval-table th,
.approval-table td {
    border-bottom: 1px solid #d6dce5;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.approval-table th {
    color: #475569;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.approval-table .button-link {
    margin: 0 0.35rem 0.35rem 0;
    min-height: 2.25rem;
    padding: 0.45rem 0.7rem;
}

@media (max-width: 820px) {
    .home-hero,
    .split-section,
    .demo-band,
    .media-story,
    .media-story.reverse,
    .signal-row {
        grid-template-columns: 1fr;
    }

    .media-story.reverse img {
        order: 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .demo-banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .demo-tiles {
        grid-template-columns: 1fr;
    }
}

/* Public demo lab */

.demo-tiles {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.demo-tile {
    background: #ffffff;
    border: 1px solid #d6dce5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
}

.demo-tile h3 {
    margin-bottom: 0;
}

.demo-tile__hardware {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.demo-tile p {
    margin-bottom: 0;
}

.demo-tile__meta {
    color: #4a5568;
    display: flex;
    font-size: 0.85rem;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.demo-tile__free {
    color: #0f766e;
}

.demo-tile__busy {
    color: #9a3412;
}

.demo-tile button {
    align-self: flex-start;
}

.demo-tile button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

/* Running demo session */

.demo-banner {
    align-items: center;
    background: #102033;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.demo-banner__identity,
.demo-banner__controls {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.demo-banner__badge {
    background: #f59e0b;
    border-radius: 4px;
    color: #102033;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    text-transform: uppercase;
}

.demo-banner__name {
    font-size: 0.95rem;
}

.demo-banner__clock {
    font-family: Consolas, "Courier New", monospace;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
    min-width: 4.5ch;
    text-align: right;
}

.demo-banner__clock.is-urgent {
    color: #fca5a5;
}

.demo-screen {
    background: #000000;
    border-radius: 6px;
    min-height: 60vh;
    overflow: hidden;
}

.demo-about {
    max-width: 780px;
}

.demo-ended {
    align-items: center;
    background: rgba(16, 32, 51, 0.85);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1.5rem;
    position: fixed;
    z-index: 40;
}

/* display:flex would otherwise beat the hidden attribute and show the overlay before the demo ends */
.demo-ended[hidden] {
    display: none;
}

.demo-ended__card {
    background: #ffffff;
    border-radius: 8px;
    max-width: 520px;
    padding: 1.75rem;
}
