.demo-cycle-page {
    min-height: 100vh;
    background:
        radial-gradient(640px circle at 20% 10%, rgba(132, 204, 22, .16), transparent 52%),
        radial-gradient(560px circle at 80% 90%, rgba(28, 25, 23, .08), transparent 55%),
        var(--bg);
}

.demo-nav {
    padding-bottom: 0;
}

.demo-cycle-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px 24px 80px;
}

.demo-cycle-head {
    text-align: center;
    margin-bottom: 28px;
}

.demo-cycle-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
    box-shadow: var(--shadow-sm);
    font-size: 12px;
}

.demo-cycle-head .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--a-500);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, .24);
}

.demo-cycle-head h1 {
    font-size: clamp(22px, 3.8vw, 42px);
    line-height: 1.1;
    letter-spacing: -.03em;
    margin: 16px auto 14px;
    max-width: none;
    white-space: nowrap;
}

.demo-cycle-head p {
    margin: 0 auto;
    color: var(--text-soft);
    max-width: 62ch;
}

.demo-stage {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    padding: 20px;
}

.demo-progress {
    width: 100%;
    border-radius: 999px;
    overflow: hidden;
    background: var(--c-150);
    height: 8px;
}

.demo-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--a-600), var(--a-500));
    transition: width .28s ease;
}

.demo-steps {
    list-style: none;
    margin: 12px 0 14px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.demo-steps li {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--c-50);
    color: var(--text-soft);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}

.demo-steps li.is-active {
    border-color: #65a30d;
    background: #ecfccb;
    color: #1c1917;
}

.demo-panel {
    min-height: 0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .3s ease, transform .3s ease;
}

.demo-panel[data-step="1"],
.demo-panel[data-step="2"],
.demo-panel[data-step="3"] {
    padding-bottom: 4px;
}

.demo-panel[data-step="1"] h2,
.demo-panel[data-step="2"] h2,
.demo-panel[data-step="3"] h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.demo-panel.is-hidden {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    position: absolute;
    width: calc(100% - 40px);
}

.demo-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: -.02em;
    text-align: center;
}

.demo-form {
    display: grid;
    gap: 10px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.demo-form label {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.demo-form input {
    margin-top: 4px;
    padding: 8px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .02em;
    background: var(--c-50);
}

.demo-form .primary {
    margin-top: 4px;
}

.demo-form button[disabled] {
    opacity: .55;
    cursor: default;
    pointer-events: none;
}

.demo-form button.is-done {
    background: var(--won);
    border-color: var(--won);
    color: #fff;
}

.onboarding-demo {
    max-width: 720px;
}

.demo-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-soft);
    font-weight: 700;
}

.demo-area-row,
.demo-trade-row {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--c-50);
    padding: 8px 10px;
}

.demo-area-list {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.demo-area-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    height: 26px;
    padding: 0 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 12px;
    color: var(--text-soft);
    opacity: .75;
}

.demo-area-pill.is-active {
    opacity: 1;
    border-color: #65a30d;
    background: #ecfccb;
    color: #1c1917;
}

.demo-area-pill.is-added {
    animation: reveal-row .25s ease forwards;
}

.demo-add-area {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.demo-add-area input {
    margin-top: 0;
}

.demo-add-area button[disabled] {
    opacity: .55;
    pointer-events: none;
}

.demo-trade-grid {
    margin-top: 8px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-trade-card {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 10px;
    text-align: left;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.demo-trade-card.is-selected {
    border-color: #65a30d;
    background: #ecfccb;
    color: #1c1917;
    transform: translateY(-1px);
}

.demo-trade-card.is-pulse {
    box-shadow: 0 0 0 3px rgba(132, 204, 22, .2);
}

.demo-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: auto;
    max-height: 200px;
    scroll-behavior: smooth;
}

.demo-results {
    width: 100%;
    border-collapse: collapse;
}

.demo-results th,
.demo-results td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 12px;
    vertical-align: middle;
}

.demo-results th {
    background: var(--c-50);
    color: var(--text-soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.demo-results tr:last-child td {
    border-bottom: 0;
}

.demo-results tbody tr {
    opacity: 0;
    transform: translateY(8px);
}

.demo-results tbody tr.is-visible {
    animation: reveal-row .35s ease forwards;
}

.demo-results tbody tr.is-focused {
    outline: 2px solid var(--a-500);
    outline-offset: -2px;
}

.pill-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 28px;
    border-radius: 999px;
    font-weight: 700;
    color: #1c1917;
    background: #d9f99d;
}

.pill-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    background: var(--c-100);
    color: var(--text-soft);
}

.pill-status.contacted {
    background: #fef3c7;
    color: #92400e;
}

.demo-foot {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--text-soft);
}

.demo-status {
    min-width: 116px;
}

.demo-note {
    min-width: 180px;
    max-height: 52px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.35;
    resize: none;
    background: var(--c-50);
}

.demo-panel[data-step="3"] {
    text-align: center;
}

.demo-panel[data-step="3"] h2 {
    margin-bottom: 10px;
}

.demo-loader-lead {
    margin: 0 auto 10px;
    max-width: 42ch;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-soft);
}

.demo-loader-progress {
    margin: 8px auto 0;
    max-width: 420px;
}

.demo-panel[data-step="3"] .progress-label {
    text-align: center;
    margin: 10px auto 0;
}

.demo-panel[data-step="3"] .muted.small {
    margin-top: 10px;
    font-size: 11px;
}

.demo-loader-counters {
    display: flex;
    justify-content: center;
    gap: clamp(28px, 8vw, 56px);
    margin: 20px auto 0;
    padding: 0;
    list-style: none;
    border-top: 0;
}

.demo-loader-counters li {
    text-align: center;
    min-width: 72px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-soft);
}

.demo-loader-counters strong {
    display: block;
    font-size: clamp(36px, 7vw, 52px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
    margin: 0 0 8px;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.demo-panel[data-step="4"] {
    position: relative;
}

.demo-panel[data-step="4"] h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

.demo-cursor {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #111;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    z-index: 30;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: left .45s ease, top .45s ease, transform .12s ease;
}

.demo-cursor.is-hidden {
    opacity: 0;
}

.demo-cursor.is-clicking {
    transform: translate(-50%, -50%) scale(.84);
}

@keyframes reveal-row {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 840px) {
    .demo-results th:nth-child(3),
    .demo-results td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 520px) {
    .demo-cycle-head h1 {
        font-size: clamp(15px, 3.6vw, 19px);
    }
}

@media (max-width: 680px) {
    .demo-cycle-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
    .demo-stage {
        padding: 14px;
    }
    .demo-table-wrap {
        max-height: 180px;
    }
    .demo-panel.is-hidden {
        width: calc(100% - 28px);
    }
    .demo-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .demo-results th:nth-child(4),
    .demo-results td:nth-child(4) {
        display: none;
    }
    .demo-results th:nth-child(6),
    .demo-results td:nth-child(6) {
        min-width: 190px;
    }
    .demo-trade-grid {
        grid-template-columns: 1fr;
    }
    .demo-add-area {
        grid-template-columns: 1fr;
    }
}
