/* Клиентская презентация ЗероСтек: промышленный тёмный стенд, без «AI-стекла». */

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url("../fonts/ibm-plex-sans-cyrillic.c352fb162d49.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url("../fonts/ibm-plex-sans-latin.d28498895ed7.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --pitch-bg: #070c16;
    --pitch-panel: #101827;
    --pitch-panel-2: #162033;
    --pitch-line: rgba(148, 163, 184, 0.16);
    --pitch-ink: #f1f5f9;
    --pitch-muted: #8ea0b5;
    --pitch-accent: #38bdf8;
    --pitch-accent-deep: #0284c7;
    --pitch-ok: #34d399;
    --pitch-warn: #fbbf24;
    --pitch-bad: #fb7185;
    --pitch-shadow: 0 24px 60px rgba(2, 8, 20, 0.45);
    --pitch-font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --pitch-chrome: 3.25rem;
    --pitch-controls: 4.25rem;
    --pitch-pad: clamp(1rem, 3vw, 3.25rem);
}

[data-theme="light"] {
    --pitch-bg: #eef3f8;
    --pitch-panel: #ffffff;
    --pitch-panel-2: #f8fafc;
    --pitch-line: rgba(15, 23, 42, 0.1);
    --pitch-ink: #0f172a;
    --pitch-muted: #4a5d73;
    --pitch-accent: #0284c7;
    --pitch-accent-deep: #0369a1;
    --pitch-ok: #059669;
    --pitch-warn: #d97706;
    --pitch-bad: #e11d48;
    --pitch-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
    background: var(--pitch-bg);
    color: var(--pitch-ink);
    font-family: var(--pitch-font);
    overflow: hidden;
}

.pitch-app {
    position: relative;
    display: grid;
    grid-template-rows: var(--pitch-chrome) minmax(0, 1fr) var(--pitch-controls);
    height: 100dvh;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 50% at 80% 0%, color-mix(in srgb, var(--pitch-accent) 16%, transparent), transparent 55%),
        radial-gradient(ellipse 45% 40% at 0% 100%, color-mix(in srgb, var(--pitch-accent-deep) 18%, transparent), transparent 50%),
        var(--pitch-bg);
}

.pitch-app::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--pitch-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--pitch-line) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
    opacity: 0.45;
}

.pitch-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 5;
    background: linear-gradient(90deg, var(--pitch-accent-deep), var(--pitch-accent));
    transition: width 0.35s ease;
}

.pitch-chrome,
.pitch-controls {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 clamp(0.75rem, 2vw, 1.5rem);
}

.pitch-chrome {
    justify-content: space-between;
    border-bottom: 1px solid var(--pitch-line);
    background: color-mix(in srgb, var(--pitch-bg) 78%, transparent);
    backdrop-filter: blur(10px);
}

.pitch-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    color: var(--pitch-ink);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: 1.05rem;
}

.pitch-brand span {
    color: var(--pitch-accent);
}

.pitch-chrome__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pitch-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid var(--pitch-line);
    border-radius: 0.65rem;
    background: color-mix(in srgb, var(--pitch-panel) 70%, transparent);
    color: var(--pitch-ink);
    cursor: pointer;
}

.pitch-icon-btn:hover,
.pitch-icon-btn:focus-visible {
    border-color: color-mix(in srgb, var(--pitch-accent) 55%, var(--pitch-line));
    outline: none;
}

.pitch-icon-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pitch-stage {
    position: relative;
    z-index: 2;
    overflow: hidden;
    min-height: 0;
}

.pitch-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.pitch-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: var(--pitch-pad);
    padding-bottom: 0.5rem;
}

.pitch-slide__inner {
    max-width: 72rem;
    margin: 0 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.85rem, 2vh, 1.5rem);
}

.pitch-kicker {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pitch-accent);
    font-weight: 600;
}

.pitch-title {
    margin: 0;
    font-size: clamp(1.65rem, 4.4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 700;
    max-width: 18ch;
}

.pitch-title--wide {
    max-width: 24ch;
}

.pitch-title--poster {
    max-width: 14ch;
}

.pitch-lead {
    margin: 0;
    max-width: 46ch;
    font-size: clamp(0.98rem, 1.6vw, 1.2rem);
    line-height: 1.5;
    color: var(--pitch-muted);
}

.pitch-cover {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 901px) {
    .pitch-cover {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: center;
    }
}

.pitch-brand-hero {
    margin: 0;
    font-size: clamp(2.8rem, 12vw, 6.2rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-weight: 700;
}

.pitch-brand-hero span {
    color: var(--pitch-accent);
}

.pitch-hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--pitch-muted);
}

.pitch-hint a {
    color: var(--pitch-accent);
    text-decoration: none;
}

.pitch-grid {
    display: grid;
    gap: 0.75rem;
}

.pitch-grid--2 {
    grid-template-columns: 1fr;
}

.pitch-grid--3,
.pitch-grid--4,
.pitch-grid--6 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .pitch-grid--2,
    .pitch-grid--3,
    .pitch-grid--4,
    .pitch-grid--6 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .pitch-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .pitch-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .pitch-grid--6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pitch-card {
    background: color-mix(in srgb, var(--pitch-panel) 92%, transparent);
    border: 1px solid var(--pitch-line);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    box-shadow: var(--pitch-shadow);
}

.pitch-card h3,
.pitch-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.pitch-card p {
    margin: 0;
    color: var(--pitch-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.pitch-card .pitch-row + p {
    margin-top: 0.55rem;
}

.pitch-card__num {
    display: inline-flex;
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--pitch-accent);
}

.pitch-stat {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.pitch-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pitch-pill--ok {
    background: color-mix(in srgb, var(--pitch-ok) 16%, transparent);
    color: var(--pitch-ok);
}

.pitch-pill--warn {
    background: color-mix(in srgb, var(--pitch-warn) 18%, transparent);
    color: var(--pitch-warn);
}

.pitch-pill--bad {
    background: color-mix(in srgb, var(--pitch-bad) 16%, transparent);
    color: var(--pitch-bad);
}

.pitch-module {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 7.5rem;
}

.pitch-module__tag {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pitch-accent);
}

.pitch-split {
    display: grid;
    gap: 1rem;
}

.pitch-split--start {
    align-items: stretch;
}

.pitch-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pitch-filter {
    padding: 0.22rem 0.55rem;
    border-radius: 0.5rem;
    border: 1px solid var(--pitch-line);
    font-size: 0.72rem;
    color: var(--pitch-muted);
}

.pitch-filter.is-on {
    border-color: color-mix(in srgb, var(--pitch-accent) 45%, var(--pitch-line));
    color: var(--pitch-accent);
    background: color-mix(in srgb, var(--pitch-accent) 12%, transparent);
}

.pitch-wo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: start;
    padding: 0.65rem 0.15rem;
    border-bottom: 1px solid var(--pitch-line);
}

.pitch-wo:last-of-type {
    border-bottom: 0;
}

.pitch-wo__icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid var(--pitch-line);
    background: var(--pitch-panel-2);
    color: var(--pitch-accent);
    border-color: color-mix(in srgb, var(--pitch-accent) 35%, var(--pitch-line));
}

.pitch-wo__icon svg {
    display: block;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pitch-wo__icon--ok {
    color: var(--pitch-ok);
    border-color: color-mix(in srgb, var(--pitch-ok) 35%, var(--pitch-line));
}

.pitch-wo b {
    display: block;
    font-size: 0.88rem;
}

.pitch-wo p {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    color: var(--pitch-muted);
}

.pitch-stock-list {
    border: 1px solid var(--pitch-line);
    border-radius: 0.75rem;
    overflow: hidden;
}

.pitch-stock {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: start;
    padding: 0.6rem 0.7rem;
    border-left: 4px solid transparent;
    background: var(--pitch-panel-2);
    border-bottom: 1px solid var(--pitch-line);
}

.pitch-stock:last-child {
    border-bottom: 0;
}

.pitch-stock--empty {
    border-left-color: var(--pitch-warn);
    background: color-mix(in srgb, var(--pitch-warn) 8%, var(--pitch-panel-2));
}

.pitch-stock--low {
    border-left-color: #f97316;
    background: color-mix(in srgb, #f97316 8%, var(--pitch-panel-2));
}

.pitch-stock b {
    display: block;
    font-size: 0.85rem;
}

.pitch-stock p {
    margin: 0.12rem 0 0;
    font-size: 0.7rem;
    color: var(--pitch-muted);
}

.pitch-stock .pitch-pill {
    flex-shrink: 0;
    white-space: nowrap;
}

.pitch-pill--new {
    background: color-mix(in srgb, var(--pitch-ink) 8%, transparent);
    color: var(--pitch-muted);
    border: 1px solid var(--pitch-line);
}

.pitch-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
}

.pitch-tab {
    padding: 0.28rem 0.55rem;
    border-radius: 0.5rem;
    border: 1px solid var(--pitch-line);
    font-size: 0.72rem;
    color: var(--pitch-muted);
}

.pitch-tab.is-on {
    color: var(--pitch-accent);
    border-color: color-mix(in srgb, var(--pitch-accent) 40%, var(--pitch-line));
    background: color-mix(in srgb, var(--pitch-accent) 12%, transparent);
}

@media (min-width: 901px) {
    .pitch-split {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .pitch-split--start {
        align-items: stretch;
    }
}

.pitch-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.pitch-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: start;
}

.pitch-list strong {
    display: block;
    margin-bottom: 0.15rem;
}

.pitch-dot {
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.4rem;
    border-radius: 50%;
    background: var(--pitch-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pitch-accent) 18%, transparent);
}

.pitch-mock {
    background: var(--pitch-panel);
    border: 1px solid var(--pitch-line);
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: var(--pitch-shadow);
}

.pitch-mock__bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--pitch-line);
    background: var(--pitch-panel-2);
}

.pitch-mock__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #64748b;
}

.pitch-mock__dot:nth-child(1) { background: #fb7185; }
.pitch-mock__dot:nth-child(2) { background: #fbbf24; }
.pitch-mock__dot:nth-child(3) { background: #34d399; }

.pitch-mock__title {
    margin-left: 0.4rem;
    font-size: 0.78rem;
    color: var(--pitch-muted);
}

.pitch-mock__body {
    padding: 0.85rem;
    display: grid;
    gap: 0.55rem;
}

.pitch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-radius: 0.7rem;
    background: var(--pitch-panel-2);
    border: 1px solid var(--pitch-line);
    font-size: 0.86rem;
}

.pitch-row span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pitch-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.pitch-flow__node {
    padding: 0.65rem 0.85rem;
    border-radius: 0.8rem;
    border: 1px solid var(--pitch-line);
    background: var(--pitch-panel);
    font-weight: 600;
    font-size: 0.88rem;
}

.pitch-flow__arrow {
    color: var(--pitch-accent);
    font-weight: 700;
}

.pitch-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.pitch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1.15rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.pitch-btn--primary {
    background: var(--pitch-accent-deep);
    color: #fff;
    border: 0;
}

.pitch-btn--ghost {
    border: 1px solid var(--pitch-line);
    color: var(--pitch-ink);
    background: color-mix(in srgb, var(--pitch-panel) 70%, transparent);
}

.pitch-btn:hover,
.pitch-btn:focus-visible {
    filter: brightness(1.08);
    outline: 2px solid color-mix(in srgb, var(--pitch-accent) 55%, transparent);
    outline-offset: 2px;
}

.pitch-controls {
    justify-content: space-between;
    border-top: 1px solid var(--pitch-line);
    background: color-mix(in srgb, var(--pitch-bg) 82%, transparent);
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
}

.pitch-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--pitch-line);
    background: var(--pitch-panel);
    color: var(--pitch-ink);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.pitch-nav-btn:disabled {
    opacity: 0.38;
    cursor: default;
}

.pitch-counter {
    font-variant-numeric: tabular-nums;
    color: var(--pitch-muted);
    font-size: 0.9rem;
}

.pitch-counter b {
    color: var(--pitch-ink);
    font-weight: 700;
}

.pitch-hidden-label {
    display: none;
}

@media (min-width: 640px) {
    .pitch-hidden-label {
        display: inline;
    }
}

@media (max-width: 639px) {
    .pitch-cover .pitch-mock .pitch-row:nth-child(n + 4) {
        display: none;
    }

    .pitch-hint {
        display: none;
    }

    .pitch-title {
        font-size: clamp(1.45rem, 7.2vw, 2rem);
        max-width: none;
    }

    .pitch-title--poster {
        max-width: none;
    }

    .pitch-scene {
        padding: 0.7rem 0.8rem;
    }

    .pitch-scene__text {
        font-size: 0.86rem;
    }

    .pitch-slide[data-id="pain"] .pitch-compare,
    .pitch-slide[data-id="pain"] .pitch-lead {
        display: none;
    }

    .pitch-slide[data-id="cost"] .pitch-grid--4 {
        grid-template-columns: 1fr 1fr;
    }

    .pitch-slide[data-id="cost"] .pitch-stat {
        font-size: 1.15rem;
    }

    .pitch-slide[data-id="modules"] .pitch-pain-card__now {
        display: none;
    }

    .pitch-brand-hero {
        font-size: clamp(2.35rem, 14vw, 3.1rem);
    }

    .pitch-card {
        padding: 0.75rem 0.9rem;
    }

    .pitch-card h3,
    .pitch-card h2 {
        font-size: 0.95rem;
    }

    .pitch-card p {
        font-size: 0.84rem;
    }

    .pitch-lead {
        font-size: 0.92rem;
    }

    .pitch-hide-sm {
        display: none;
    }

    .pitch-slide[data-id="maintenance"] .pitch-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.3rem;
    }

    .pitch-slide[data-id="maintenance"] .pitch-kpi {
        padding: 0.35rem 0.35rem 0.4rem;
    }

    .pitch-slide[data-id="maintenance"] .pitch-kpi span {
        font-size: 0.52rem;
        letter-spacing: 0.04em;
        line-height: 1.2;
    }

    .pitch-slide[data-id="maintenance"] .pitch-kpi b {
        font-size: 1.05rem;
        margin-top: 0.1rem;
    }

    .pitch-wo {
        padding: 0.35rem 0;
        gap: 0.4rem;
    }

    .pitch-wo b {
        font-size: 0.8rem;
    }

    .pitch-wo__icon {
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 0.5rem;
    }

    .pitch-mock__bar {
        padding: 0.5rem 0.7rem;
    }

    .pitch-mock__body {
        padding: 0.55rem;
        gap: 0.35rem;
    }

    .pitch-stock {
        padding: 0.4rem 0.5rem;
    }

    .pitch-title--sm {
        font-size: 1.2rem;
    }

    .pitch-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pitch-seat:nth-child(n + 5) {
        display: none;
    }

    .pitch-task {
        grid-template-columns: 1fr;
    }

    .pitch-task > span:last-child {
        grid-column: 1;
        grid-row: auto;
        justify-content: flex-start;
    }

    .pitch-ops .pitch-member:last-child .pitch-task--test {
        display: none;
    }

    .pitch-ops .pitch-member:last-child .pitch-section-label:last-of-type {
        display: none;
    }

    .pitch-slide[data-id="operations"] .pitch-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.3rem;
    }

    .pitch-slide[data-id="operations"] .pitch-kpi {
        padding: 0.35rem 0.3rem 0.4rem;
    }

    .pitch-slide[data-id="operations"] .pitch-kpi span {
        font-size: 0.52rem;
        letter-spacing: 0.04em;
        line-height: 1.2;
    }

    .pitch-slide[data-id="operations"] .pitch-kpi b {
        font-size: 1.05rem;
        margin-top: 0.1rem;
    }
}

.pitch-live {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
    .pitch-track,
    .pitch-progress {
        transition: none;
    }
}

.pitch-caption {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    color: var(--pitch-muted);
}

.pitch-caption--flush {
    margin-top: 0;
}

.pitch-lead--compact {
    max-width: none;
    font-size: 0.82rem;
}

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

@media (min-width: 720px) {
    .pitch-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.pitch-kpi {
    background: var(--pitch-panel-2);
    border: 1px solid var(--pitch-line);
    border-radius: 0.8rem;
    padding: 0.65rem 0.75rem;
}

.pitch-kpi span {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pitch-muted);
}

.pitch-kpi b {
    display: block;
    margin-top: 0.2rem;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    letter-spacing: -0.04em;
    font-weight: 700;
}

.pitch-kpi--bad b { color: var(--pitch-bad); }
.pitch-kpi--warn b { color: var(--pitch-warn); }
.pitch-kpi--ok b { color: var(--pitch-ok); }

.pitch-bars {
    display: grid;
    gap: 0.55rem;
}

.pitch-bar {
    display: grid;
    gap: 0.25rem;
}

.pitch-bar__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.78rem;
}

.pitch-bar__meta span:last-child {
    color: var(--pitch-muted);
    font-variant-numeric: tabular-nums;
}

.pitch-bar__track {
    height: 0.45rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pitch-muted) 18%, transparent);
    overflow: hidden;
}

.pitch-bar__fill {
    height: 100%;
    border-radius: inherit;
    background: var(--pitch-accent);
}

.pitch-bar__fill--warn { background: var(--pitch-warn); }
.pitch-bar__fill--bad { background: var(--pitch-bad); }
.pitch-bar__fill--ok { background: var(--pitch-ok); }

.pitch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.pitch-table th,
.pitch-table td {
    text-align: left;
    padding: 0.55rem 0.45rem;
    border-bottom: 1px solid var(--pitch-line);
    vertical-align: middle;
}

.pitch-table th {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pitch-muted);
    font-weight: 600;
}

.pitch-table td:first-child {
    font-weight: 600;
}

.pitch-table__sub {
    display: block;
    font-weight: 400;
    color: var(--pitch-muted);
    font-size: 0.72rem;
}

.pitch-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pitch-spark {
    width: 100%;
    height: 3.2rem;
    display: block;
    color: var(--pitch-accent);
}

.pitch-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.28rem;
}

.pitch-cal span {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    font-size: 0.68rem;
    color: var(--pitch-muted);
    background: var(--pitch-panel-2);
}

.pitch-cal .is-head {
    aspect-ratio: auto;
    background: transparent;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.pitch-cal .is-ok { background: color-mix(in srgb, var(--pitch-ok) 22%, transparent); color: var(--pitch-ok); font-weight: 700; }
.pitch-cal .is-warn { background: color-mix(in srgb, var(--pitch-warn) 24%, transparent); color: var(--pitch-warn); font-weight: 700; }
.pitch-cal .is-bad { background: color-mix(in srgb, var(--pitch-bad) 22%, transparent); color: var(--pitch-bad); font-weight: 700; }
.pitch-cal .is-today { outline: 1px solid var(--pitch-accent); color: var(--pitch-ink); }

.pitch-kanban {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

@media (min-width: 720px) {
    .pitch-kanban {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.pitch-kanban__col {
    background: var(--pitch-panel-2);
    border: 1px solid var(--pitch-line);
    border-radius: 0.8rem;
    padding: 0.55rem;
    display: grid;
    gap: 0.4rem;
}

.pitch-kanban__col h3 {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pitch-muted);
}

.pitch-ticket {
    background: var(--pitch-panel);
    border: 1px solid var(--pitch-line);
    border-radius: 0.6rem;
    padding: 0.5rem 0.55rem;
    font-size: 0.8rem;
}

.pitch-ticket small {
    display: block;
    margin-top: 0.2rem;
    color: var(--pitch-muted);
    font-size: 0.7rem;
}

.pitch-floor {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}

.pitch-desk {
    min-height: 3.4rem;
    border-radius: 0.65rem;
    border: 1px solid var(--pitch-line);
    background: var(--pitch-panel-2);
    padding: 0.4rem;
    font-size: 0.68rem;
}

.pitch-desk b {
    display: block;
    font-size: 0.78rem;
}

.pitch-desk--busy {
    border-color: color-mix(in srgb, var(--pitch-accent) 45%, var(--pitch-line));
    background: color-mix(in srgb, var(--pitch-accent) 12%, var(--pitch-panel-2));
}

.pitch-desk--free {
    color: var(--pitch-muted);
}

.pitch-phone {
    max-width: 17rem;
    margin: 0 auto;
    border: 6px solid color-mix(in srgb, var(--pitch-ink) 18%, var(--pitch-panel));
    border-radius: 1.4rem;
    overflow: hidden;
    background: var(--pitch-panel);
    box-shadow: var(--pitch-shadow);
}

.pitch-phone .pitch-mock {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.pitch-scenes {
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 720px) {
    .pitch-scenes {
        grid-template-columns: 1fr 1fr;
    }
}

.pitch-scene {
    background: color-mix(in srgb, var(--pitch-panel) 92%, transparent);
    border: 1px solid var(--pitch-line);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    box-shadow: var(--pitch-shadow);
}

.pitch-scene__who {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--pitch-accent);
}

.pitch-scene__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--pitch-ink);
}

.pitch-pain-card {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.pitch-pain-card h3 {
    margin: 0;
}

.pitch-pain-card__now {
    margin: 0;
    color: var(--pitch-muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.pitch-pain-card__then {
    margin: 0.15rem 0 0;
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
    background: color-mix(in srgb, var(--pitch-ok) 10%, var(--pitch-panel-2));
    border: 1px solid color-mix(in srgb, var(--pitch-ok) 28%, var(--pitch-line));
    color: var(--pitch-ink);
    font-size: 0.84rem;
    line-height: 1.4;
}

.pitch-pain-card__then strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--pitch-ok);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.pitch-slide[data-id="pain"] .pitch-slide__inner {
    justify-content: flex-start;
    gap: clamp(0.65rem, 1.6vh, 1.15rem);
}

@media (max-height: 820px) {
    .pitch-slide[data-id="pain"] .pitch-compare {
        display: none;
    }
}

.pitch-compare {
    display: grid;
    gap: 0.75rem;
}

.pitch-compare--compact .pitch-mock__body {
    gap: 0.4rem;
}

@media (min-width: 800px) {
    .pitch-compare {
        grid-template-columns: 1fr 1fr;
    }
}

.pitch-compare__label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 0 0.45rem;
}

.pitch-chat {
    display: grid;
    gap: 0.4rem;
}

.pitch-bubble {
    max-width: 92%;
    padding: 0.5rem 0.7rem;
    border-radius: 0.75rem;
    background: var(--pitch-panel-2);
    border: 1px solid var(--pitch-line);
    font-size: 0.8rem;
    color: var(--pitch-muted);
}

.pitch-bubble--me {
    justify-self: end;
    background: color-mix(in srgb, var(--pitch-accent) 14%, var(--pitch-panel));
    color: var(--pitch-ink);
}

.pitch-sheet {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--pitch-muted);
    background: var(--pitch-panel-2);
    border: 1px dashed var(--pitch-line);
    border-radius: 0.7rem;
    padding: 0.7rem 0.8rem;
}

.pitch-title--sm {
    max-width: 28ch;
    font-size: clamp(1.25rem, 3vw, 2rem);
}

.pitch-title--sm.pitch-title--wide {
    max-width: 22ch;
}

.pitch-pill--sky {
    background: color-mix(in srgb, #38bdf8 16%, transparent);
    color: #7dd3fc;
}

[data-theme="light"] .pitch-pill--sky {
    color: #0369a1;
}

.pitch-pill--test {
    background: color-mix(in srgb, #8b5cf6 18%, transparent);
    color: #c4b5fd;
}

[data-theme="light"] .pitch-pill--test {
    color: #6d28d9;
}

.pitch-member {
    display: grid;
    gap: 0.4rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--pitch-line);
}

.pitch-member:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pitch-member__head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.pitch-avatar {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    background: color-mix(in srgb, #8b5cf6 22%, transparent);
    color: #c4b5fd;
}

.pitch-avatar--sky {
    background: color-mix(in srgb, var(--pitch-accent) 22%, transparent);
    color: var(--pitch-accent);
}

.pitch-member__head span {
    display: block;
    font-size: 0.7rem;
    color: var(--pitch-muted);
}

.pitch-section-label {
    margin: 0.15rem 0 0.2rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--pitch-muted);
}

.pitch-task {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.12rem 0.55rem;
    align-items: center;
    padding: 0.5rem 0.6rem;
    border-radius: 0.7rem;
    border: 1px solid var(--pitch-line);
    background: var(--pitch-panel-2);
}

.pitch-task b {
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.25;
}

.pitch-task p {
    margin: 0;
    grid-column: 1;
    font-size: 0.68rem;
    color: var(--pitch-muted);
}

.pitch-task > span:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem;
}

.pitch-task--test {
    border-color: color-mix(in srgb, #8b5cf6 28%, var(--pitch-line));
    background: color-mix(in srgb, #8b5cf6 8%, var(--pitch-panel-2));
}

.pitch-task__meta {
    color: var(--pitch-muted);
    font-size: 0.7rem;
}

.pitch-mark-ok {
    color: var(--pitch-ok);
    font-weight: 700;
}

.pitch-mark-miss {
    color: var(--pitch-warn);
    font-weight: 700;
}

.pitch-chip {
    display: inline-flex;
    margin: 0.15rem 0.25rem 0 0;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--pitch-accent) 14%, transparent);
    color: var(--pitch-accent);
}

.pitch-chip--wo {
    background: color-mix(in srgb, var(--pitch-warn) 16%, transparent);
    color: var(--pitch-warn);
}

.pitch-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.pitch-attend {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 0.7rem;
    border: 1px solid var(--pitch-line);
    background: var(--pitch-panel-2);
}

.pitch-attend b {
    display: block;
    font-size: 0.85rem;
}

.pitch-attend span:not(.pitch-avatar):not(.pitch-pill) {
    display: block;
    font-size: 0.7rem;
    color: var(--pitch-muted);
}

.pitch-attend--miss {
    border-color: color-mix(in srgb, var(--pitch-warn) 40%, var(--pitch-line));
    background: color-mix(in srgb, var(--pitch-warn) 8%, var(--pitch-panel-2));
}

.pitch-report {
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
    background: var(--pitch-panel-2);
    border-left: 3px solid var(--pitch-accent);
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--pitch-ink);
}

.pitch-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    font-size: 0.7rem;
    color: var(--pitch-muted);
}

.pitch-legend i {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    margin-right: 0.28rem;
    vertical-align: middle;
}

.pitch-legend .is-working { background: #10b981; }
.pitch-legend .is-paused { background: #f59e0b; }
.pitch-legend .is-testing { background: #3b82f6; }
.pitch-legend .is-idle { background: #94a3b8; }
.pitch-legend .is-away { background: #64748b; }

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

.pitch-seat {
    min-height: 4.6rem;
    border-radius: 0.75rem;
    border: 1px solid var(--pitch-line);
    background: var(--pitch-panel-2);
    padding: 0.45rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pitch-seat b {
    font-size: 0.78rem;
}

.pitch-seat__role {
    font-size: 0.65rem;
    color: var(--pitch-muted);
}

.pitch-seat__hud {
    margin-top: auto;
    font-size: 0.68rem;
    line-height: 1.25;
}

.pitch-seat__hud em {
    font-style: normal;
    color: var(--pitch-muted);
}

.pitch-seat--working { box-shadow: inset 3px 0 0 #10b981; }
.pitch-seat--paused { box-shadow: inset 3px 0 0 #f59e0b; }
.pitch-seat--testing { box-shadow: inset 3px 0 0 #3b82f6; }
.pitch-seat--idle { box-shadow: inset 3px 0 0 #94a3b8; }
.pitch-seat--away { box-shadow: inset 3px 0 0 #64748b; opacity: 0.85; }

.pitch-ops {
    display: grid;
    gap: 0.75rem;
    align-items: stretch;
}

.pitch-ops .pitch-mock {
    min-width: 0;
}

.pitch-ops .pitch-mock__body {
    gap: 0.45rem;
}

.pitch-ops .pitch-member {
    padding-bottom: 0.45rem;
}

.pitch-ops .pitch-member:last-child {
    padding-bottom: 0;
}

.pitch-slide[data-id="operations"] .pitch-slide__inner {
    gap: 0.7rem;
}

@media (min-width: 720px) and (max-width: 1023px) {
    .pitch-ops {
        grid-template-columns: 1fr 1fr;
    }

    .pitch-ops__team {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .pitch-ops {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        min-height: 0;
    }

    .pitch-ops__team {
        grid-row: 1 / span 2;
    }

    .pitch-slide[data-id="operations"] .pitch-slide__inner {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .pitch-slide[data-id="operations"] .pitch-kpi {
        padding: 0.4rem 0.55rem;
    }

    .pitch-slide[data-id="operations"] .pitch-kpi b {
        font-size: 1.3rem;
    }

    .pitch-ops .pitch-mock__bar {
        padding: 0.5rem 0.75rem;
    }

    .pitch-ops .pitch-mock__body {
        padding: 0.6rem 0.7rem;
        gap: 0.35rem;
    }

    .pitch-ops .pitch-task {
        padding: 0.38rem 0.5rem;
    }

    .pitch-seat {
        min-height: 3.5rem;
        padding: 0.32rem 0.42rem;
    }
}

@media print {
    html,
    body,
    .pitch-app {
        height: auto;
        overflow: visible;
        background: #fff;
        color: #0f172a;
    }

    .pitch-chrome,
    .pitch-controls,
    .pitch-progress,
    .pitch-app::before {
        display: none !important;
    }

    .pitch-app {
        display: block;
        height: auto;
    }

    .pitch-stage {
        overflow: visible;
    }

    .pitch-track {
        display: block;
        transform: none !important;
        height: auto;
    }

    .pitch-slide {
        break-after: page;
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 1.5cm;
    }

    .pitch-btn {
        border: 1px solid #94a3b8;
        color: #0f172a;
    }
}
