@font-face {
    font-family: "Stack Sans Headline";
    src: url('../fonts/StackSansHeadline-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Stack Sans Text";
    src: url('../fonts/StackSansText-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --color-bg: #08090d;
    --color-surface: #12151c;
    --color-border: #2b2e37;
    --color-text: #f0f1f5;
    --color-muted: #a4a8b5;
    --color-primary: #879fff;
    --font-body: "Stack Sans Text", system-ui, sans-serif;
    --font-heading: "Stack Sans Headline", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
    min-width: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    color: var(--color-text);
    font: 400 1rem/1.55 var(--font-body);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; color: inherit; background: none; border: 0; }
button:disabled { cursor: default; opacity: 0.6; }
button, a, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
::selection { background: #d7ddff; color: #141622; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 32px; }
.icon-xs { width: 14px; height: 14px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; flex-shrink: 0; }
.icon-md { width: 22px; height: 22px; flex-shrink: 0; }
.text-green { color: #82c5a5; }
.text-amber { color: #d7b575; }
.text-red { color: #e5a099; }
.text-dim { color: var(--color-muted); }
.ambient-canvas { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.ambient-glow--top {
    position: absolute;
    inset: 0 0 auto;
    height: 500px;
    background: radial-gradient(ellipse at 75% 0, #18142e 0, transparent 65%);
}

.site-header { background: #08090df5; border-bottom: 1px solid var(--color-border); }
.header-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand-link { display: flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand-logo { width: 145px; height: auto; }
.demo-nav-segmented { display: flex; padding: 4px; gap: 4px; background: #17191f; border: 1px solid var(--color-border); border-radius: 9px; }
.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.76rem;
    white-space: nowrap;
    color: var(--color-muted);
}
.tab-btn:hover { color: white; }
.tab-btn.active { color: #fff; background: #32364b; }
.mobile-label { display: none; }
.back-link { display: flex; align-items: center; gap: 5px; min-height: 44px; font-size: 0.72rem; color: var(--color-muted); }
.back-link:hover, .footer-links a:hover { color: white; }
.demo-main { flex-grow: 1; padding-block: 28px 64px; }
.demo-notice { display: flex; align-items: baseline; gap: 8px; color: var(--color-muted); font-size: 0.72rem; margin-bottom: 30px; }
.demo-dot { width: 6px; height: 6px; flex-shrink: 0; background: #bcad8f; border-radius: 50%; }
.route-notice { padding: 14px 16px; margin-bottom: 24px; border: 1px solid #6f6147; background: #262219; color: #e7d4b0; font-size: 0.82rem; }
.industry-entry-heading { max-width: 760px; margin-block: 12px 32px; }
.industry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.industry-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; padding: 28px; text-align: left; border: 1px solid #383d4b; border-radius: 7px; background: #13161e; }
.industry-card:hover { border-color: #8293cc; background: #1b2030; }
.industry-card-icon { color: #acb9e8; }
.industry-card-name { font: 500 1.3rem/1.3 var(--font-heading); }
.industry-card-description { max-width: 430px; font-size: 0.84rem; color: #bbc0ce; }
.industry-card-examples { font-size: 0.7rem; color: #9da9c9; }
.industry-card-link { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 0.77rem; color: #c4cffa; }
.industry-entry-note { margin-top: 24px; color: var(--color-muted); font-size: 0.74rem; }
.industry-context { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; border-bottom: 1px solid var(--color-border); padding-bottom: 20px; }
.industry-context > div { display: flex; flex-direction: column; gap: 3px; }
.industry-context-label { font-size: 0.66rem; color: var(--color-muted); }
.industry-context strong { font-size: 0.92rem; font-weight: 500; }
.pane-headline-row { display: flex; flex-direction: column; gap: 24px; margin-bottom: 24px; }
.sector-tag { display: block; margin-bottom: 9px; color: var(--color-primary); font-size: 0.7rem; }
.pane-main-title { font: 600 clamp(1.6rem, 3.2vw, 2.35rem)/1.16 var(--font-heading); letter-spacing: -0.025em; max-width: 850px; }
.pane-intro { max-width: 650px; color: var(--color-muted); font-size: 0.88rem; margin-top: 12px; }
.scenario-chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.scenario-chip { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 6px; color: var(--color-muted); font-size: 0.8rem; }
.scenario-chip.active { color: white; border-color: #8394d0; background: #1d2233; }
.interactive-stage { display: grid; grid-template-columns: 1fr 1.12fr; gap: 28px; align-items: start; }
.stage-pane { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pane-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; min-height: 36px; border-bottom: 1px solid var(--color-border); padding-bottom: 12px; }
.pane-title-group { display: flex; align-items: center; gap: 8px; }
.pane-indicator { width: 6px; height: 6px; background: #ba9d72; border-radius: 50%; }
.pane-indicator--success { background: #8fa4bf; }
.pane-label { font-size: 0.78rem; font-weight: 600; }
.pane-meta-pill, .status-badge { font-size: 0.68rem; color: var(--color-muted); }
.status-badge.ready { color: #b7c8f5; }
.raw-document-card { border: 1px solid var(--color-border); border-radius: 6px; overflow: hidden; }
.scenario-raw { min-width: 0; }
.mail-document { color-scheme: light; background: #fff; color: #282b30; font: 0.84rem/1.65 Arial, sans-serif; }
.mail-toolbar { display: flex; align-items: center; gap: 8px; background: #f1f2f4; border-bottom: 1px solid #dcdfe3; padding: 12px 20px; font-size: 0.72rem; color: #626770; }
.mail-toolbar span { margin-left: auto; }
.mail-subject { font: 600 1.1rem/1.35 Arial, sans-serif; padding: 20px 20px 12px; }
.mail-addresses { padding: 0 20px 18px; border-bottom: 1px solid #e8e8e8; font-size: 0.71rem; }
.mail-addresses div { display: flex; gap: 10px; }
.mail-addresses dt { width: 38px; flex-shrink: 0; color: #70747b; }
.mail-addresses dd { overflow-wrap: anywhere; }
.mail-body { padding: 20px; }
.mail-body p + p { margin-top: 18px; }
.mail-signature { color: #898c90; font-size: 0.75rem; }

.receipt-scan { padding: 16px 24px 32px; background: #373737; background-image: linear-gradient(130deg, #ffffff08, #00000018); }
.attachment-label { display: flex; gap: 7px; align-items: center; font-size: 0.68rem; color: #d0d0d0; margin-bottom: 20px; }
.receipt {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 28px 20px 24px;
    background: #f4f1e8;
    color: #33322e;
    color-scheme: light;
    font: 0.7rem/1.5 "Courier New", monospace;
    box-shadow: 2px 6px 12px #0005;
    transform: rotate(-1deg);
}
.receipt::after { content: ""; position: absolute; inset: auto 0 -7px; height: 8px; background: linear-gradient(135deg, #f4f1e8 5px, transparent 0) 0 0 / 10px 8px repeat-x; }
.receipt-heading { display: flex; flex-direction: column; text-align: center; padding-bottom: 15px; border-bottom: 1px dashed #838177; margin-bottom: 14px; gap: 5px; }
.receipt-heading strong { font-size: 1.1rem; line-height: 1.2; letter-spacing: 0.06em; }
.receipt p { margin-block: 14px; }
.receipt-lines { width: 100%; border-collapse: collapse; margin-block: 14px; }
.receipt-lines caption { text-align: left; font-size: 0.65rem; border-block: 1px dashed #838177; padding-block: 7px; margin-bottom: 6px; }
.receipt-lines td { vertical-align: top; padding-block: 5px; }
.receipt-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 8px; }
.receipt-lines small { display: block; font-size: inherit; color: #68665f; }
.receipt-totals { border-block: 1px dashed #838177; padding-block: 10px; }
.receipt-totals div { display: flex; justify-content: space-between; gap: 10px; }
.receipt-total { font-weight: bold; font-size: 0.88rem; margin-top: 8px; }
.receipt .receipt-note { font: italic 1.1rem Georgia, serif; text-align: right; color: #375274; transform: rotate(-4deg); margin: 18px 4px; }
.receipt-barcode { height: 28px; width: 75%; margin: 18px auto 10px; background: repeating-linear-gradient(90deg, #333 0 1px, transparent 1px 3px, #333 3px 6px, transparent 6px 8px, #333 8px 10px, transparent 10px 14px); }
.receipt footer { text-align: center; font-size: 0.59rem; }

.message-document { background: #e9e5dc; color: #24352e; padding: 0 20px 30px; font: 0.86rem/1.55 Arial, sans-serif; min-height: 370px; }
.message-contact { display: flex; align-items: center; gap: 10px; background: #fafafa; padding: 15px 20px; margin-inline: -20px; border-bottom: 1px solid #d0d5d0; }
.contact-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #d7e1d8; font-size: 0.75rem; }
.message-contact strong, .message-contact div > span { display: block; }
.message-contact div > span { color: #6b756d; font-size: 0.7rem; }
.message-day { display: block; text-align: center; color: #70746d; font-size: 0.68rem; margin-block: 20px; }
.message-bubble { background: white; padding: 12px 14px 8px; max-width: 93%; margin-bottom: 10px; border-radius: 0 7px 7px; box-shadow: 0 1px 1px #0002; }
.message-bubble time { display: block; text-align: right; color: #7c837e; font-size: 0.64rem; margin-top: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 16px; border: 1px solid transparent; border-radius: 6px; font-size: 0.8rem; font-weight: 600; line-height: 1.4; }
.btn-primary, .btn-action-magic, .btn-create-workorder, .btn-erp-push { background: #435bba; color: #fff; border-color: #5f75c7; }
.btn-primary:hover:not(:disabled), .btn-action-magic:hover:not(:disabled), .btn-create-workorder:hover:not(:disabled), .btn-erp-push:hover:not(:disabled) { background: #5169c6; }
.btn-ghost { background: #1b1e27; color: #c5c8d3; border-color: var(--color-border); }
.btn-ghost:hover { background: #272b36; }
.btn-sm { font-size: 0.75rem; }
.btn-block { width: 100%; }
.stage-placeholder-card, .copilot-placeholder-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 330px; padding: 32px; border: 1px dashed #3c404b; border-radius: 6px; text-align: center; background: #11131a; }
.placeholder-icon-wrap { color: #8d95ad; margin-bottom: 4px; }
.placeholder-title { font-size: 0.95rem; font-weight: 500; }
.placeholder-text { max-width: 320px; color: var(--color-muted); font-size: 0.8rem; }
.placeholder-ghost-lines { display: none; }
.structured-order-card, .digital-workorder-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.order-dispatch-row { display: flex; gap: 8px; }
.btn-erp-push { flex-grow: 1; }
.erp-success-toast, .wo-success-alert { display: flex; align-items: flex-start; gap: 8px; border: 1px solid #365a49; background: #16271f; border-radius: 5px; padding: 12px; color: #b3dbbf; font-size: 0.76rem; }
.erp-success-toast svg, .wo-success-alert svg { margin-top: 2px; }
.paper-document {
    --ink: #292b2e;
    --muted-ink: #676b70;
    color-scheme: light;
    color: var(--ink);
    background: #faf9f5;
    padding: 26px;
    font: 0.78rem/1.55 Arial, sans-serif;
    box-shadow: 0 2px 4px #0002;
    overflow-wrap: anywhere;
    scroll-margin-top: 16px;
}
.document-letterhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid #383d43; padding-bottom: 18px; margin-bottom: 20px; }
.document-letterhead strong { font-size: 0.8rem; letter-spacing: 0.04em; line-height: 1.4; }
.document-letterhead > span { text-align: right; color: var(--muted-ink); font-size: 0.65rem; }
.order-header-row, .workorder-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.order-type-tag, .card-super-label { display: block; font-size: 0.65rem; color: var(--muted-ink); }
.order-number, .workorder-title { font: 600 1.03rem/1.4 Arial, sans-serif; margin-top: 3px; scroll-margin-top: 24px; }
.document-stamp { display: inline-block; font: 600 0.64rem/1.4 Arial, sans-serif; color: #7d6750; border: 1px solid #b6a48b; padding: 3px 6px; letter-spacing: 0.06em; }
.document-address { font-size: 0.76rem; margin-bottom: 14px; }
.document-address p { margin-top: 3px; color: var(--muted-ink); }
.document-date { padding-block: 9px; border-top: 1px solid #d9d9d4; color: var(--muted-ink); font-size: 0.7rem; }
.document-lines { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.74rem; }
.document-lines caption { text-align: left; font-size: 0.66rem; color: var(--muted-ink); padding: 8px 0; }
.document-lines th { border-block: 1px solid #bfc2c3; padding: 8px 0; font-size: 0.66rem; color: var(--muted-ink); font-weight: 400; }
.document-lines th:first-child { width: 56%; text-align: left; }
.document-lines td { padding: 12px 0; border-bottom: 1px solid #ddded9; vertical-align: top; }
.document-lines td:first-child { padding-right: 10px; }
.document-lines td:not(:first-child), .document-lines th:not(:first-child) { text-align: right; white-space: nowrap; }
.document-lines strong { font-weight: 400; }
.document-lines small { display: block; color: var(--muted-ink); font-size: 0.64rem; margin-top: 4px; }
.document-totals { width: 100%; max-width: 340px; margin: 22px 0 22px auto; font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.document-totals div { display: flex; justify-content: space-between; gap: 16px; padding-block: 4px; }
.document-totals dt { color: var(--muted-ink); }
.document-totals dd { text-align: right; white-space: nowrap; }
.document-totals .grand-total { border-top: 1px solid #8a8c8d; padding-top: 9px; margin-top: 7px; font-weight: bold; }
.grand-total dt { color: var(--ink); }
.document-review { padding: 12px; background: #f0eadd; border-left: 2px solid #a48c63; font-size: 0.73rem; }
.document-review strong { color: #6b5431; }
.document-review p { margin-top: 5px; }
.document-footnote { border-top: 1px solid #deded8; margin-top: 20px; padding-top: 12px; font-size: 0.65rem; color: var(--muted-ink); }
.document-fields { display: grid; gap: 8px; margin-block: 18px; }
.document-fields > div { display: grid; grid-template-columns: minmax(80px, 30%) 1fr; gap: 12px; }
.document-fields dt { color: var(--muted-ink); font-size: 0.7rem; }
.document-fields dd { font-size: 0.75rem; }
.data-table-scroll { max-width: 100%; overflow-x: auto; }
.record-table { width: 100%; border-collapse: collapse; font-size: 0.72rem; text-align: left; }
.record-table caption { color: #676b70; font-size: 0.66rem; text-align: left; padding-block: 10px; }
.record-table th { color: #676b70; font-weight: 400; border-block: 1px solid #bbbebd; }
.record-table th, .record-table td { padding: 10px 8px; vertical-align: top; }
.record-table th:first-child, .record-table td:first-child { padding-left: 0; }
.record-table td { border-bottom: 1px solid #d6d8d5; }
.record-table--wide { min-width: 370px; }
.table-scroll-hint { display: none; color: #676b70; font-size: 0.64rem; margin-block: 8px; }
.source-document { box-shadow: none; }
.source-note { margin-top: 20px; border-left: 2px solid #8794ab; padding-left: 12px; color: #5c626d; font-size: 0.72rem; }
.source-message { white-space: pre-line; font: 0.82rem/1.8 Arial, sans-serif; color: #34383d; }
.source-data-file { padding: 14px 18px; display: flex; align-items: center; gap: 8px; font-size: 0.7rem; background: #e8ebee; color: #565e69; border-bottom: 1px solid #d2d7dc; overflow-wrap: anywhere; }
.source-data-body { background: #f7f8f9; color: #30363c; padding: 20px; color-scheme: light; }
.source-data-body .record-table { font: 0.7rem/1.5 ui-monospace, monospace; }
.industry-demo-pane .raw-document-card { border-radius: 5px; }
.industry-demo-pane .flow-note { margin-top: 2px; }
.industry-demo-pane .stage-pane--output { scroll-margin-top: 16px; }

.phone-device-frame { width: 100%; min-width: 0; border: 1px solid var(--color-border); border-radius: 6px; background: #101218; }
.phone-app-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--color-border); }
.phone-app-brand { display: flex; align-items: center; gap: 10px; }
.app-icon-badge { color: #a5b4ed; padding: 8px; background: #252b3e; border-radius: 4px; }
.app-name { font-size: 0.82rem; font-weight: 600; }
.app-user-meta, .phone-online-pill { font-size: 0.68rem; color: var(--color-muted); }
.phone-content-body { display: grid; grid-template-columns: 1fr 1.12fr; gap: 24px; align-items: start; padding: 24px; }
.voice-memo-card { display: flex; flex-direction: column; gap: 18px; padding: 20px; border: 1px solid var(--color-border); border-radius: 5px; min-width: 0; grid-column: 1; grid-row: 1; }
.phone-content-body > :not(.voice-memo-card) { grid-column: 2; grid-row: 1; min-width: 0; }
.memo-header { display: flex; align-items: center; gap: 10px; }
.memo-avatar { color: #aab9ec; }
.memo-title-meta strong { display: block; font-size: 0.84rem; font-weight: 500; }
.memo-title-meta span { font-size: 0.7rem; color: var(--color-muted); }
.audio-player-widget { display: flex; align-items: center; gap: 12px; padding-block: 8px; min-width: 0; }
.btn-audio-play { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; background: #435bba; border-radius: 50%; }
.waveform-container { display: flex; align-items: center; gap: 2px; height: 30px; min-width: 0; flex: 1; }
.wave-bar { flex: 1; height: var(--h); background: #656d82; min-width: 1px; border-radius: 1px; }
.waveform-container.playing .wave-bar { background: #a6b5ec; animation: waveform 650ms infinite alternate; }
.waveform-container.playing .wave-bar:nth-child(2n) { animation-delay: 200ms; }
.audio-timer { font: 0.65rem/1.4 ui-monospace, monospace; white-space: nowrap; color: #c4c8d3; }
.audio-error { font-size: 0.75rem; color: #ffc2b8; border-left: 2px solid #da9c92; padding-left: 10px; }
.btn-toggle-transcript { display: flex; align-items: center; gap: 7px; min-height: 44px; text-align: left; font-size: 0.75rem; color: #bbc1d3; }
.btn-toggle-transcript.open .chevron-icon { transform: rotate(180deg); }
.transcript-box { padding: 14px; border-left: 2px solid #444d68; background: #191d27; color: #c6cad5; font-size: 0.8rem; }
.flow-note { font-size: 0.72rem; color: var(--color-muted); }
.workorder-processing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; border: 1px dashed #3c404b; padding: 32px 16px; min-height: 330px; }
.loader-pulse { width: 28px; height: 28px; border: 2px solid #3c4355; border-top-color: #aab9ec; border-radius: 50%; animation: spin 850ms linear infinite; }
.processing-steps-text { display: flex; flex-direction: column; gap: 10px; font-size: 0.75rem; color: #9499ab; text-align: center; }
.step-line.active { color: white; }
.wo-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 12px 18px; border-bottom: 1px solid #c8c9c4; }
.wo-meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-lbl, .meta-sub { color: var(--muted-ink); font-size: 0.66rem; }
.meta-val { font-size: 0.78rem; }
.wo-section { margin-top: 18px; }
.wo-section-title { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted-ink); font-weight: 400; }
.wo-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-block: 10px; border-bottom: 1px solid #ddded9; font-size: 0.75rem; }
.wo-row-sub { color: var(--muted-ink); font-size: 0.66rem; margin-top: 3px; }
.wo-row-price { white-space: nowrap; }
.task-alert-box { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 22px; padding: 12px; background: #f0eadd; font-size: 0.72rem; }
.task-alert-box svg { margin-top: 3px; color: #896f42; }
.wo-action-strip { display: flex; gap: 8px; }
.wo-action-strip .btn-block:first-child { flex: 1; }
.wo-action-strip .btn-block:last-child { width: auto; }

.copilot-stage-card { display: flex; flex-direction: column; gap: 18px; }
.chips-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chip-btn { display: flex; gap: 12px; text-align: left; padding: 18px; min-width: 0; border: 1px solid var(--color-border); border-radius: 6px; background: #14161e; }
.chip-btn.active { border-color: #8394d0; background: #1d2233; }
.chip-icon-wrap { color: #a9b5df; margin-top: 3px; }
.chip-text strong { display: block; font-size: 0.78rem; margin-bottom: 3px; font-weight: 500; }
.chip-text span { display: block; font-size: 0.75rem; color: var(--color-muted); }
.copilot-input-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #414654; background: #12151c; border-radius: 6px; }
.input-icon { color: var(--color-muted); }
.copilot-input-field { color: #e5e8f1; background: none; border: none; flex: 1; width: 0; min-width: 0; font-size: 0.86rem; line-height: 1.5; resize: none; }
.copilot-input-field::placeholder { color: #a4a8b5; opacity: 1; }
.copilot-answers-view { min-width: 0; }
.copilot-placeholder-state { min-height: 250px; }
.answer-card { display: flex; flex-direction: column; gap: 20px; border: 1px solid var(--color-border); background: #12151c; border-radius: 6px; padding: 24px; min-width: 0; scroll-margin-top: 16px; }
.answer-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--color-border); padding-bottom: 14px; }
.answer-tag { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.latency-pill { color: var(--color-muted); font-size: 0.68rem; }
.answer-summary-box { font-size: 0.86rem; max-width: 820px; }
.answer-points-list { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.answer-points-list li { display: flex; align-items: flex-start; gap: 10px; }
.answer-points-list li svg { margin-top: 4px; }
.pdf-proof-card { border: 1px solid #343946; }
.pdf-proof-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: #20232c; padding: 14px 18px; }
.pdf-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pdf-meta strong { display: block; font-size: 0.75rem; font-weight: 500; overflow-wrap: anywhere; }
.pdf-meta span { display: block; font-size: 0.65rem; color: var(--color-muted); margin-top: 2px; }
.verified-source-badge { font-size: 0.65rem; color: #b9bfce; }
.pdf-snippet-body { padding: 28px; color-scheme: light; background: #f5f4ed; color: #34383c; font: 0.82rem/1.7 Georgia, serif; }
.source-document-title { font: 600 0.7rem/1.4 Arial, sans-serif; border-bottom: 1px solid #b8b9b2; padding-bottom: 16px; margin-bottom: 16px; letter-spacing: 0.06em; }
.pdf-snippet-body p + p { margin-top: 16px; }
.pdf-highlight { color: inherit; background: #eee2ab; padding-block: 2px; }
.source-document-note { font-size: 0.75rem; color: #6b6d67; }
.ai-typing { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 160px; }
.typing-dot { width: 5px; height: 5px; background: #a3b2e6; border-radius: 50%; animation: pulse 650ms infinite alternate; }
.typing-dot:nth-child(2) { animation-delay: 180ms; }
.typing-dot:nth-child(3) { animation-delay: 360ms; }
.typing-text { color: var(--color-muted); font-size: 0.78rem; margin-left: 8px; }
.chart-rows-list { display: flex; flex-direction: column; gap: 24px; }
.chart-label-group { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; }
.chart-hours-badge { font-size: 0.72rem; }
.badge-danger { color: #f2aba5; }
.badge-warning { color: #e3c18b; }
.badge-success { color: #9acfb5; }
.chart-bar-track { position: relative; height: 8px; background: #2c303b; margin-top: 8px; margin-right: 2px; }
.chart-bar-fill { height: 100%; }
.bar-danger { background: #b96d68; }
.bar-warning { background: #bb9c65; }
.bar-success { background: #6b9b83; }
.chart-budget-marker { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #d6dae4; transform: translateX(-1px); }
.mini-barchart-card .flow-note { margin-block: 20px; }
.chart-actions-footer { display: flex; justify-content: flex-end; }
.hours-drilldown-panel { overflow-x: auto; margin-top: 18px; }
.drilldown-table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 0.75rem; text-align: left; }
.drilldown-table th, .drilldown-table td { border-bottom: 1px solid #383d4b; padding: 12px; }
.drilldown-table th { color: #b7bece; font-weight: 400; }
.pricing-intel-card { display: flex; flex-direction: column; gap: 22px; }
.price-hero-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-val { font-size: 1.6rem; }
.price-unit { font-size: 0.82rem; color: var(--color-muted); }
.price-discount-pill { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: #9acfb5; }
.vendor-details-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.vendor-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v-label { color: var(--color-muted); font-size: 0.65rem; }
.v-val { font-size: 0.78rem; font-weight: 400; }
.hist-chips { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.7rem; color: #b2b8c8; }
.invoice-source { max-width: 700px; }
.invoice-source .order-header-row h3 { font-size: 1rem; font-weight: 500; }
.invoice-source .order-header-row > span { font-size: 0.7rem; }
.site-footer { margin-top: auto; padding-block: 24px; border-top: 1px solid var(--color-border); }
.footer-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 0.7rem; color: var(--color-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes waveform { to { height: 20%; } }
@keyframes pulse { from { opacity: 0.3; } to { opacity: 1; } }

@media (max-width: 1100px) {
    .header-container { flex-wrap: wrap; gap: 16px; padding-block: 18px; }
    .demo-nav-segmented { order: 3; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .container { padding-inline: 24px; }
    .interactive-stage, .phone-content-body { grid-template-columns: 1fr; gap: 28px; }
    .phone-content-body > :not(.voice-memo-card), .phone-content-body > .voice-memo-card { grid-column: 1; grid-row: auto; }
    .phone-content-body { padding: 20px; }
    .stage-placeholder-card { min-height: 220px; }
    .chips-list { grid-template-columns: 1fr; }
    .chip-btn { padding: 14px 16px; }
    .vendor-details-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .container { padding-inline: 16px; }
    .header-container { padding-block: 16px 12px; gap: 16px; }
    .brand-logo { width: 138px; }
    .back-link span { display: none; }
    .back-link::before { content: "Studio"; }
    .desktop-label { display: none; }
    .mobile-label { display: inline; }
    .demo-nav-segmented { gap: 2px; padding: 3px; }
    .tab-btn { padding-inline: 5px; font-size: 0.74rem; gap: 5px; }
    .demo-main { padding-top: 20px; padding-bottom: 40px; }
    .demo-notice { font-size: 0.65rem; margin-bottom: 24px; }
    .industry-entry-heading { margin-top: 0; margin-bottom: 24px; }
    .industry-grid { grid-template-columns: 1fr; gap: 14px; }
    .industry-card { padding: 22px; gap: 12px; }
    .industry-card-name { font-size: 1.17rem; }
    .industry-context { gap: 10px; align-items: flex-start; }
    .industry-context strong { font-size: 0.8rem; }
    .industry-context .btn { padding-inline: 10px; font-size: 0.7rem; flex-shrink: 0; }
    .source-data-body { padding: 16px; }
    .table-scroll-hint { display: block; }
    .pane-main-title { font-size: 1.75rem; }
    .pane-intro { font-size: 0.84rem; }
    .sector-tag { font-size: 0.66rem; }
    .scenario-chips-row { gap: 6px; }
    .scenario-chip { padding: 8px 10px; font-size: 0.74rem; }
    .scenario-chip .icon-xs { display: none; }
    .interactive-stage { gap: 26px; }
    .paper-document { padding: 20px 16px; }
    .document-letterhead { gap: 12px; }
    .document-letterhead strong { font-size: 0.72rem; }
    .document-letterhead > span { font-size: 0.6rem; }
    .document-lines { font-size: 0.69rem; }
    .document-lines th:first-child { width: 52%; }
    .document-lines small { font-size: 0.61rem; }
    .document-lines td:not(:first-child) { font-size: 0.66rem; }
    .order-dispatch-row { flex-wrap: wrap; }
    .order-dispatch-row .btn { flex: 1; }
    .order-dispatch-row .btn-erp-push { flex-basis: 100%; }
    .receipt-scan { padding: 14px 20px 30px; }
    .receipt { padding-inline: 14px; font-size: 0.66rem; }
    .phone-device-frame { border: 0; background: none; }
    .phone-app-header { padding: 12px 0 16px; }
    .phone-content-body { padding: 16px 0 0; }
    .voice-memo-card { padding: 16px; }
    .audio-player-widget { gap: 10px; }
    .waveform-container { gap: 1px; }
    .wo-action-strip { flex-wrap: wrap; }
    .wo-action-strip .btn-block:last-child { width: 100%; }
    .copilot-input-bar { padding: 12px; gap: 8px; align-items: flex-start; }
    .copilot-input-bar .input-icon { display: none; }
    .copilot-input-field { min-height: 100px; font-size: 1rem; }
    .copilot-input-bar .btn { padding-inline: 12px; }
    .answer-card { padding: 16px; }
    .answer-tag { font-size: 0.76rem; align-items: flex-start; }
    .answer-tag svg { margin-top: 3px; }
    .pdf-proof-header { padding: 12px; }
    .pdf-snippet-body { padding: 20px 16px; }
    .pdf-meta strong { font-size: 0.68rem; }
    .stage-placeholder-card, .copilot-placeholder-state { padding: 24px; }
    .footer-container { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
