/* =========================================
   Live-Demos page (demos.html)
   Phone demo styles live in style.css (.demo-*), shared with index.html.
   ========================================= */

/* ---------- Page structure ---------- */
.dm-hero {
    min-height: 52vh;
    align-items: flex-end;
    padding-bottom: 3rem;
}

.dm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.dm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.25s, box-shadow 0.25s;
}

.dm-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.dm-chip span {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent-pink);
}

.dm-section {
    padding-top: 7rem;
    padding-bottom: 1rem;
    scroll-margin-top: 80px;
}

.dm-head {
    max-width: 760px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.dm-head p { margin-top: 1rem; }

.dm-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.dm-note {
    width: 100%;
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    text-align: center;
    color: var(--text-subtle);
    opacity: 0.8;
}

/* ---------- Shared app window ---------- */
.dm-window {
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #0E0C10;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 40px 80px -24px rgba(0, 0, 0, 0.7);
}

.dm-label {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.dm-ai-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.10);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent-petrol);
    white-space: nowrap;
}

.dm-ai-pill svg { width: 11px; height: 11px; fill: currentColor; }

.dm-avatar {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    font-weight: 700;
}

.dm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.dm-btn.is-primary { background: linear-gradient(135deg, #ff8a76, #ff5e7e); }
.dm-btn.is-pulse { animation: dmPulsePink 1.2s ease 2; }
.dm-btn.is-done { background: rgba(45, 212, 191, 0.14); color: var(--accent-petrol); }

.dm-caret::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 1px;
    vertical-align: -2px;
    background: var(--accent-petrol);
    animation: dmBlink 0.9s steps(1) infinite;
}

/* =========================================
   02 E-Mail: inbox with AI sorting + reply draft
   ========================================= */
.dm-mail-body {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1.15fr);
    height: 520px;
}

.dm-folders {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-folders .dm-label { padding: 0 10px 10px; }

.dm-folder {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.dm-folder.is-active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.dm-folder i {
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: var(--c, rgba(255, 255, 255, 0.4));
}

.dm-folder b {
    margin-left: auto;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
    transition: background 0.3s, color 0.3s;
}

.dm-folder b.is-bumped {
    background: var(--c);
    color: #0E0C10;
    animation: dmBump 0.45s ease;
}

.dm-inbox {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-pane-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 16px 16px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-mails {
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
}

.dm-mail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: dmSlideDown 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition: background 0.3s;
}

.dm-mail.is-selected {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 2px 0 0 var(--accent-pink);
}

.dm-mail-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dm-mail-top time {
    font-weight: 400;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.dm-mail-subject,
.dm-mail-preview {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dm-mail-subject { margin-top: 2px; font-size: 0.78rem; }
.dm-mail-preview { margin-top: 2px; font-size: 0.74rem; color: rgba(255, 255, 255, 0.45); }

.dm-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c) 16%, transparent);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--c);
    animation: dmPop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.4);
}

.dm-tag svg { width: 10px; height: 10px; fill: currentColor; }

.dm-tag.is-pending {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}

.dm-read {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 18px 20px;
    overflow: hidden;
}

.dm-read-empty {
    margin: auto;
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
}

.dm-read-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-read-head strong { display: block; font-size: 0.82rem; }
.dm-read-head small { font-size: 0.7rem; color: rgba(255, 255, 255, 0.45); }

.dm-read-subject {
    margin: 14px 0 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dm-read-text {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
}

.dm-draft {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(45, 212, 191, 0.06);
    box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.25);
    animation: dmFadeUp 0.4s ease;
}

.dm-draft-text {
    min-height: 8.5em;
    font-size: 0.78rem;
    line-height: 1.55;
    white-space: pre-line;
}

.dm-draft-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dm-draft-actions small {
    margin-left: auto;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
}

/* =========================================
   03 Interne Prozesse: document recognition
   ========================================= */
.dm-docs {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
}

.dm-paper {
    position: relative;
    padding: 34px 36px 30px;
    overflow: hidden;
    border-radius: 6px;
    background: #fbfaf7;
    color: #171519;
    font-size: 0.74rem;
    line-height: 1.5;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: rotate(-1.2deg);
}

.dm-paper-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 26px;
}

.dm-paper-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.dm-paper-logo i {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2f6f5e, #1f4a3f);
}

.dm-paper-from {
    font-size: 0.66rem;
    text-align: right;
    color: #6b7280;
}

.dm-paper-title {
    margin-bottom: 14px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dm-paper-meta {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 3px 18px;
    margin-bottom: 20px;
}

.dm-paper-meta span:nth-child(odd) { color: #6b7280; }

.dm-paper table {
    width: 100%;
    border-collapse: collapse;
}

.dm-paper th {
    padding: 6px 0;
    border-bottom: 1px solid #d9dce1;
    font-size: 0.64rem;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.dm-paper td {
    padding: 7px 0;
    border-bottom: 1px solid #eceef1;
}

.dm-paper th:last-child,
.dm-paper td:last-child { text-align: right; }

.dm-paper-total {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Highlight boxes around recognised fields */
.dm-hl {
    position: relative;
    border-radius: 3px;
    transition: background 0.4s, box-shadow 0.4s;
}

.dm-hl.is-found {
    background: rgba(45, 212, 191, 0.18);
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.75);
}

.dm-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: -10%;
    height: 70px;
    background: linear-gradient(180deg, transparent, rgba(45, 212, 191, 0.22) 85%, rgba(45, 212, 191, 0.9));
    opacity: 0;
    pointer-events: none;
}

.dm-docs.is-scanning .dm-scan {
    opacity: 1;
    animation: dmScan 2.4s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.dm-extract-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 20px;
}

.dm-extract-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.dm-fields {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dm-fields li {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

.dm-fields li:last-child { border-bottom: none; }
.dm-fields li > span:first-child { color: rgba(255, 255, 255, 0.5); }

.dm-field-val {
    min-height: 1.2em;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.dm-field-val:empty::before {
    content: '';
    display: block;
    width: 60%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
}

.dm-conf {
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--accent-petrol);
    opacity: 0;
    transition: opacity 0.3s;
}

.dm-fields li.is-filled .dm-conf { opacity: 1; }

.dm-extract-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.dm-ledger {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.75rem;
}

.dm-ledger li {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    gap: 10px;
    padding: 7px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}

.dm-ledger li.is-new {
    color: #fff;
    animation: dmSlideDown 0.45s ease;
}

.dm-ledger li span:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* =========================================
   04 Webdesign: website building itself
   ========================================= */
.dm-web {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 2rem;
}

/* the site's global text-shadow on p/headings would blur the light mock site */
.dm-site,
.dm-site *,
.dm-paper,
.dm-paper * { text-shadow: none !important; }

.dm-site {
    --ink: #2b2118;
    --accent: #c8553d;
    height: 470px;
    padding: 0 28px;
    overflow: hidden;
    background: #faf6f1;
    color: var(--ink);
    transition: background 0.8s;
}

.dm-site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 58px;
    font-size: 0.74rem;
}

.dm-site-logo {
    margin-right: auto;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dm-site-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 26px;
    padding: 26px 0 30px;
}

.dm-site-eyebrow {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.dm-site-h {
    margin: 10px 0 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.dm-site-p {
    max-width: 30ch;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #6d5b4c;
}

.dm-site-cta {
    display: inline-block;
    margin-top: 16px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--ink);
    font-size: 0.74rem;
    font-weight: 600;
    color: #faf6f1;
}

.dm-site-img {
    aspect-ratio: 4 / 3.4;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 56%, #f4e6d4 0 21%, #3a2417 22% 26%, transparent 27%),
        radial-gradient(circle at 50% 56%, #8a5a3b 0 31%, transparent 32%),
        radial-gradient(circle at 78% 22%, rgba(255, 214, 170, 0.9), transparent 40%),
        linear-gradient(160deg, #e8b98f, #c8553d 60%, #7a2f22);
    box-shadow: 0 20px 40px -20px rgba(122, 47, 34, 0.6);
    transition: opacity 0.8s, transform 0.8s;
}

.dm-site-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.dm-site-card {
    padding: 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 20px -12px rgba(43, 33, 24, 0.35);
    font-size: 0.72rem;
    transition: background 0.8s, box-shadow 0.8s;
}

.dm-site-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.dm-site-card span { color: #6d5b4c; }

/* Wireframe state: every text element becomes a grey bar */
.dm-site .dm-t {
    border-radius: 4px;
    transition: color 0.6s, background 0.6s, box-shadow 0.6s;
}

.dm-site.is-wire { background: #151317; }
.dm-site.is-wire .dm-t {
    color: transparent !important;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: none;
}
.dm-site.is-wire .dm-site-img {
    opacity: 1;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.dm-site.is-wire .dm-site-card {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Styled but no imagery yet */
.dm-site.is-styled .dm-site-img {
    opacity: 0.25;
    transform: scale(0.96);
}

.dm-build {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border-radius: 16px;
    background: #0E0C10;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -24px rgba(0, 0, 0, 0.7);
}

.dm-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
}

.dm-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #ff8a76, #ff5e7e);
    transition: width 0.8s ease;
}

.dm-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.4s;
}

.dm-steps li::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2);
    transition: background 0.3s, box-shadow 0.3s;
}

.dm-steps li.is-active { color: #fff; }
.dm-steps li.is-active::before {
    box-shadow: inset 0 0 0 1.5px var(--accent-pink);
    animation: dmPulsePink 1.2s infinite;
}

.dm-steps li.is-done { color: rgba(255, 255, 255, 0.85); }
.dm-steps li.is-done::before {
    background: var(--accent-petrol) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230c1424' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
    box-shadow: none;
}

.dm-scores {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.dm-ring {
    position: relative;
    width: 50px;
    height: 50px;
}

.dm-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.dm-ring circle {
    fill: none;
    stroke-width: 4;
}

.dm-ring circle:first-child { stroke: rgba(255, 255, 255, 0.07); }

.dm-ring circle:last-child {
    stroke: var(--accent-petrol);
    stroke-linecap: round;
    stroke-dasharray: 113.1;
    stroke-dashoffset: 113.1;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dm-ring b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* =========================================
   05 ERP/CRM: sales pipeline
   ========================================= */
.dm-crm-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 18px 20px 4px;
}

.dm-crm-kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dm-crm-kpi span { font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); }

.dm-crm-kpi strong {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    transition: color 0.4s;
}

.dm-crm-kpi strong.is-bumped { color: var(--accent-petrol); }

.dm-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(190px, 1fr));
    gap: 12px;
    padding: 16px 20px 22px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.dm-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 330px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dm-col-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 4px 6px;
    font-size: 0.74rem;
    font-weight: 600;
}

.dm-col-head i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
}

.dm-col-head b {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    font-variant-numeric: tabular-nums;
}

.dm-deal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 10px;
    background: #131115;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 6px 14px -8px rgba(0, 0, 0, 0.6);
    font-size: 0.76rem;
    will-change: transform;
}

.dm-deal-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-weight: 600;
}

.dm-deal-top span:last-child {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.8);
}

.dm-deal-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
}

.dm-deal-meta .dm-avatar {
    width: 20px;
    height: 20px;
    font-size: 0.55rem;
}

.dm-deal.is-hot {
    background: #19171B;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.55), 0 10px 30px -10px rgba(45, 212, 191, 0.45);
}

.dm-deal-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--accent-petrol);
}

.dm-deal-note svg { width: 11px; height: 11px; fill: currentColor; }

.dm-deal-note:empty { display: none; }

.dm-crm { position: relative; }

.dm-toast {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #0f2a2c;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.45), 0 20px 40px -12px rgba(0, 0, 0, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.dm-toast.is-visible { opacity: 1; transform: none; }

.dm-toast i {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-petrol);
}

.dm-toast i svg { width: 14px; height: 14px; fill: #0E0C10; }

/* ---------- Keyframes ---------- */
@keyframes dmBlink { 50% { opacity: 0; } }
@keyframes dmBump { 50% { transform: scale(1.25); } }
@keyframes dmPop { from { opacity: 0; transform: scale(0.7); } }
@keyframes dmFadeUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes dmSlideDown { from { opacity: 0; transform: translateY(-10px); } }
@keyframes dmScan { from { top: -10%; } to { top: 100%; } }
@keyframes dmPulsePink {
    0% { box-shadow: 0 0 0 0 rgba(255, 94, 126, 0.5); }
    100% { box-shadow: 0 0 0 10px rgba(255, 94, 126, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .dm-mail-body { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.1fr); }
    .dm-web { grid-template-columns: 1fr; }
    .dm-build { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .dm-build .dm-scores { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .dm-mail-body { grid-template-columns: minmax(0, 1fr); height: auto; }
    .dm-folders { display: none; }
    .dm-inbox { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
    .dm-mails { max-height: 310px; }
    .dm-read { min-height: 360px; }
    .dm-docs { grid-template-columns: 1fr; gap: 2.5rem; }
    .dm-paper { transform: none; }
    .dm-crm-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .dm-section { padding-top: 5rem; }
    .dm-paper { padding: 24px 20px; }
    .dm-fields li { grid-template-columns: 6.5rem minmax(0, 1fr) auto; }
    .dm-site { height: auto; padding: 0 16px 18px; }
    .dm-site-nav span:not(.dm-site-logo) { display: none; }
    .dm-site-hero { grid-template-columns: 1fr; }
    .dm-site-h { font-size: 1.6rem; }
    .dm-site-cards { grid-template-columns: 1fr; }
    .dm-build { display: flex; }
    .dm-board { grid-template-columns: repeat(4, 200px); }
    .dm-toast { left: 16px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .dm-section *,
    .dm-section *::before,
    .dm-section *::after { animation: none !important; transition: none !important; }
}

/* =========================================
   Polish shared by every demo: colour aura behind the stage, glass edge on windows
   ========================================= */
.dm-section {
    position: relative;
    isolation: isolate;
}

.dm-section::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 58%;
    width: min(1150px, 95%);
    height: 62%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(45% 60% at 28% 50%, rgba(255, 94, 126, 0.16), transparent 70%),
        radial-gradient(45% 60% at 74% 50%, rgba(45, 212, 191, 0.14), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.dm-window,
.dm-build {
    position: relative;
}

.dm-window::after,
.dm-build::after,
.demo-app::after {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    pointer-events: none;
}

.demo-app { position: relative; }

/* ---------- CRM extras: lead score + revenue sparkline ---------- */
.dm-spark {
    width: 100%;
    height: 26px;
    margin-top: 4px;
    overflow: visible;
}

.dm-spark path {
    fill: none;
    stroke: var(--accent-petrol);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.dm-leadscore {
    position: relative;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-left: auto;
}

.dm-leadscore svg {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.dm-leadscore circle {
    fill: none;
    stroke-width: 3;
    stroke: rgba(255, 255, 255, 0.08);
}

.dm-leadscore circle + circle {
    stroke: var(--accent-petrol);
    stroke-linecap: round;
    stroke-dasharray: 94.2;
    stroke-dashoffset: 94.2;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dm-deal.is-scored .dm-leadscore circle + circle { stroke-dashoffset: 7.5; }

.dm-leadscore b {
    font-size: 0.6rem;
    color: var(--accent-petrol);
}

/* =========================================
   05 ERP: order → stock → production plan → invoice
   ========================================= */
.dm-erp {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 22px;
}

.dm-erp-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.dm-erp-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-erp-flow li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.4s, background 0.4s, box-shadow 0.4s;
}

.dm-erp-flow i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 700;
    transition: background 0.4s, color 0.4s;
}

.dm-erp-flow li.is-active {
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 94, 126, 0.55);
    background: rgba(255, 94, 126, 0.07);
}

.dm-erp-flow li.is-active i { background: var(--gradient-btn); color: #fff; }

.dm-erp-flow li.is-done {
    color: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.3);
}

.dm-erp-flow li.is-done i { background: var(--accent-petrol); color: #0E0C10; }

.dm-erp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 12px;
}

.dm-erp-card {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dm-stock {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-stock li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    font-size: 0.76rem;
}

.dm-stock-qty {
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.4s;
}

.dm-stock-bar {
    position: relative;
    grid-column: 1 / -1;
    height: 7px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
}

.dm-stock-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 7px;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.55), var(--accent-petrol));
    transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s;
}

.dm-stock-incoming {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 7px;
    background: repeating-linear-gradient(135deg, rgba(245, 185, 66, 0.55) 0 4px, transparent 4px 8px);
    transition: width 1s ease;
}

.dm-stock-min {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
}

.dm-stock li.is-low .dm-stock-fill { background: linear-gradient(90deg, rgba(255, 94, 126, 0.6), #ff5e7e); }
.dm-stock li.is-low .dm-stock-qty { color: #ff8a9f; }

.dm-erp-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 11px;
    border-radius: 9px;
    background: rgba(245, 185, 66, 0.1);
    font-size: 0.72rem;
    line-height: 1.4;
    color: #f5c96a;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s, transform 0.4s;
}

.dm-erp-alert svg { flex-shrink: 0; width: 14px; height: 14px; fill: currentColor; }
.dm-erp-alert.is-visible { opacity: 1; transform: none; }

.dm-gantt {
    display: grid;
    grid-template-columns: 5.6rem repeat(5, minmax(0, 1fr));
    row-gap: 10px;
    font-size: 0.68rem;
}

.dm-gantt-day {
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.dm-gantt-row {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.dm-gantt-track {
    position: relative;
    grid-column: 2 / -1;
    height: 26px;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20% 100%;
}

.dm-gantt-bar {
    position: absolute;
    top: 3px;
    bottom: 3px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(139, 156, 246, 0.22);
    box-shadow: inset 0 0 0 1px rgba(139, 156, 246, 0.4);
    font-weight: 600;
    color: #c9d0ff;
    white-space: nowrap;
}

.dm-gantt-bar.is-new {
    background: linear-gradient(90deg, #ff8a76, #ff5e7e);
    box-shadow: 0 8px 20px -8px rgba(255, 94, 126, 0.7);
    color: #fff;
    transform-origin: left center;
    animation: dmGrow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dm-erp-order {
    position: absolute;
    top: 14px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 250px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(19, 17, 21, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
    transition: opacity 0.45s, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.dm-erp-order .dm-ai-pill { align-self: flex-start; margin-bottom: 6px; }
.dm-erp-order strong { font-size: 0.86rem; color: #fff; }
.dm-erp-order b { margin-top: 4px; font-size: 1.05rem; color: #fff; }
.dm-erp-order.is-visible { opacity: 1; transform: none; }

[data-dm="erp"] .dm-toast,
[data-dm="crm"] .dm-toast { z-index: 2; }

/* =========================================
   07 Apps: customer app + counter tablet
   ========================================= */
.dm-app {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
}

.dm-phone {
    position: relative;
    height: 660px;
    overflow: hidden;
    border-radius: 44px;
    background: #f6f2ec;
    color: #1f1a16;
    font-size: 0.8rem;
}

.dm-phone,
.dm-phone * { text-shadow: none !important; }

.dm-phone .demo-island { z-index: 6; }

.dm-phone-status {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
    padding: 0 26px 0 32px;
    font-size: 0.82rem;
    font-weight: 600;
}

.dm-phone-status svg { fill: #1f1a16; }
.dm-phone-status .demo-battery { border-color: rgba(31, 26, 22, 0.45); }
.dm-phone-status .demo-battery span { background: #1f1a16; }
.dm-phone-status .demo-battery::after { background: rgba(31, 26, 22, 0.45); }

.dm-phone-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 6px 20px 0;
}

.dm-phone-hello {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dm-phone-hello small { display: block; color: #8a7d70; }
.dm-phone-hello strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; letter-spacing: -0.01em; }

.dm-phone-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e8ddd0;
    font-weight: 700;
}

.dm-phone-chips { display: flex; gap: 8px; }

.dm-phone-chips span {
    padding: 7px 14px;
    border-radius: 999px;
    background: #ebe3d8;
    font-size: 0.74rem;
    font-weight: 600;
    color: #6d5b4c;
}

.dm-phone-chips span.is-active { background: #1f1a16; color: #f6f2ec; }

.dm-phone-promo {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 118px;
    padding: 14px 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 82% 30%, rgba(255, 214, 170, 0.75), transparent 45%),
        linear-gradient(135deg, #c8553d, #7a2f22);
    color: #fff;
}

.dm-phone-promo small { opacity: 0.8; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.dm-phone-promo strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.15rem; }

.dm-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-products li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto 30px;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px -8px rgba(31, 26, 22, 0.25);
}

.dm-products i {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background:
        radial-gradient(circle at 50% 50%, #f3e4d0 0 30%, var(--b) 31% 38%, transparent 39%),
        linear-gradient(140deg, var(--a), var(--b));
}

.dm-products strong { display: block; font-size: 0.82rem; }
.dm-products small { display: block; overflow: hidden; font-size: 0.68rem; color: #8a7d70; white-space: nowrap; text-overflow: ellipsis; }
.dm-products b { font-size: 0.78rem; }

.dm-products em {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1f1a16;
    font-style: normal;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    transition: background 0.3s, transform 0.2s;
}

.dm-products em.is-added { background: #c8553d; transform: scale(1.12); }

.dm-cartbar {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 22px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #1f1a16;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 18px 30px -12px rgba(31, 26, 22, 0.6);
    transform: translateY(140%);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dm-cartbar b { margin-left: auto; }
.dm-cartbar.is-visible { transform: none; }

.dm-cart-count {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #c8553d;
    font-size: 0.7rem;
}

.dm-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 22px 30px;
    border-radius: 26px 26px 0 0;
    background: #fff;
    box-shadow: 0 -20px 40px -10px rgba(31, 26, 22, 0.25);
    transform: translateY(105%);
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dm-sheet.is-visible { transform: none; }

.dm-sheet-grip {
    align-self: center;
    width: 38px;
    height: 5px;
    border-radius: 5px;
    background: #ddd3c7;
}

.dm-sheet strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.15rem; }

.dm-sheet-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0e9e0;
    color: #6d5b4c;
}

.dm-pay {
    margin-top: 6px;
    padding: 15px;
    border-radius: 16px;
    background: #1f1a16;
    font-weight: 600;
    text-align: center;
    color: #fff;
    transition: background 0.3s;
}

.dm-pay.is-busy { background: #6d5b4c; }

.dm-success {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 30px;
    background: #f6f2ec;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.dm-success.is-visible { opacity: 1; }

.dm-success-check {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #2f6f5e;
    box-shadow: 0 0 0 10px rgba(47, 111, 94, 0.12);
}

.dm-success.is-visible .dm-success-check { animation: dmPop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.5); }
.dm-success-check svg { width: 38px; height: 38px; fill: #fff; }
.dm-success strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.4rem; }
.dm-success small { color: #8a7d70; }

.dm-push {
    position: absolute;
    top: 50px;
    left: 10px;
    right: 10px;
    z-index: 7;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 30px -12px rgba(31, 26, 22, 0.4);
    font-size: 0.74rem;
    transform: translateY(-160%);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dm-push.is-visible { transform: none; }
.dm-push strong { display: block; font-size: 0.78rem; }
.dm-push small { align-self: start; color: #8a7d70; }

.dm-push-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #c8553d, #7a2f22);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    color: #fff;
}

/* Finger tap indicator */
.dm-tap {
    position: absolute;
    z-index: 8;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    background: rgba(31, 26, 22, 0.18);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
}

.dm-tap.is-visible { opacity: 1; }
.dm-tap.is-press { animation: dmTap 0.35s ease; }

.dm-board-3 { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
.dm-orders .dm-col { min-height: 360px; }

.dm-order-items {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
}

@keyframes dmGrow { from { transform: scaleX(0); opacity: 0; } }
@keyframes dmTap {
    0% { transform: scale(1); }
    50% { transform: scale(0.75); background: rgba(31, 26, 22, 0.32); }
    100% { transform: scale(1); }
}

@media (max-width: 1100px) {
    .dm-erp-order { position: static; width: auto; order: -1; display: none; }
    .dm-erp-order.is-visible { display: flex; }
    .dm-app { gap: 2rem; }
}

@media (max-width: 960px) {
    .dm-app { grid-template-columns: 1fr; }
    .dm-app-device { margin: 0 auto; }
    .dm-erp-grid { grid-template-columns: 1fr; }
    .dm-erp-kpis { grid-template-columns: repeat(2, 1fr); }
    .dm-orders .dm-col { min-height: 220px; }
}

@media (max-width: 600px) {
    .dm-erp { padding: 14px; }
    .dm-erp-flow { grid-template-columns: repeat(2, 1fr); }
    .dm-gantt { grid-template-columns: 4.4rem repeat(5, minmax(0, 1fr)); }
    .dm-app-device { width: min(320px, 100%); padding: 9px; border-radius: 46px; }
    .dm-phone { height: 600px; border-radius: 38px; }
    .dm-board-3 { grid-template-columns: repeat(3, 190px); }
}

@media (prefers-reduced-motion: reduce) {
    .dm-section *,
    .dm-section *::before,
    .dm-section *::after { animation: none !important; transition: none !important; }
}
