.trial-strip {
    padding-block: 42px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(69, 227, 164, .045), transparent 65%);
}

.trial-strip-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
}

.trial-strip-status {
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 11px;
    border: 1px solid var(--line-bright);
    border-radius: 50%;
    color: #9deecf;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}

.trial-strip-status i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 7px rgba(69, 227, 164, .08);
}

.trial-strip .eyebrow {
    margin-bottom: 9px;
}

.trial-strip h2 {
    margin: 0;
    font-size: clamp(24px, 2.8vw, 36px);
    letter-spacing: -.035em;
    line-height: 1.15;
}

.trial-strip p:last-child {
    max-width: 690px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.demo-lab {
    padding-block: 48px 104px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 9% 11%, rgba(69, 227, 164, .07), transparent 25rem),
        rgba(5, 13, 11, .46);
}

.demo-heading {
    margin-bottom: 28px;
}

.demo-heading h2 {
    max-width: 650px;
    font-size: clamp(30px, 3.5vw, 44px);
}

.demo-workspace {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(112, 170, 149, .23);
    border-radius: 18px;
    background: #081310;
    box-shadow: 0 35px 100px rgba(0, 0, 0, .26);
}

.demo-controls {
    padding: 26px;
    border-right: 1px solid var(--line);
    background: linear-gradient(170deg, rgba(16, 36, 30, .94), rgba(8, 19, 16, .92));
}

.demo-controls fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.demo-controls legend,
.demo-control-group label {
    display: block;
    margin-bottom: 12px;
    color: #6e8d82;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.demo-style-options {
    display: grid;
    gap: 8px;
}

.demo-style-options button,
.demo-watchlist-grid button,
.demo-chart-switch button,
.demo-refresh {
    color: inherit;
    font: inherit;
}

.demo-style-options button {
    display: grid;
    gap: 2px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(5, 14, 11, .58);
    color: #bfd1ca;
    cursor: pointer;
    text-align: left;
}

.demo-style-options button:hover,
.demo-style-options button[aria-pressed="true"] {
    border-color: rgba(69, 227, 164, .42);
    background: rgba(69, 227, 164, .075);
}

.demo-style-options button[aria-pressed="true"] strong {
    color: var(--green-light);
}

.demo-style-options strong {
    font-size: 12px;
}

.demo-style-options span {
    color: #6f8b81;
    font-size: 10px;
}

.demo-control-group {
    margin-top: 28px;
}

.demo-control-group select {
    width: 100%;
    min-height: 44px;
    padding: 0 36px 0 12px;
    border: 1px solid rgba(132, 178, 161, .22);
    border-radius: 8px;
    background: #0a1814;
    color: #dcebe5;
    font: inherit;
    font-size: 11px;
}

.demo-control-group select:focus-visible,
.demo-style-options button:focus-visible,
.demo-watchlist-grid button:focus-visible,
.demo-chart-switch button:focus-visible,
.demo-refresh:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.demo-refresh {
    width: 100%;
    min-height: 43px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 0 14px;
    border: 1px solid rgba(69, 227, 164, .32);
    border-radius: 8px;
    background: rgba(69, 227, 164, .09);
    color: #aaf3d7;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.demo-refresh:disabled {
    cursor: progress;
    opacity: .65;
}

.demo-refresh.is-loading span {
    animation: demo-spin 1s linear infinite;
}

@keyframes demo-spin {
    to { transform: rotate(360deg); }
}

.demo-engine-scope {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.demo-engine-scope > span {
    color: #6e8d82;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.demo-engine-scope ul {
    display: grid;
    gap: 9px;
    margin: 14px 0 0;
    padding: 0;
    color: #8fa89e;
    font-size: 10px;
    list-style: none;
}

.demo-engine-scope li::before {
    margin-right: 8px;
    color: var(--green);
    content: "✓";
}

.demo-output {
    min-width: 0;
    padding: 28px;
}

.demo-output-topline,
.demo-symbol-line,
.demo-quote-state,
.demo-chart-header,
.demo-card-label,
.demo-watchlist > div:first-child {
    display: flex;
    align-items: center;
}

.demo-output-topline,
.demo-chart-header,
.demo-card-label,
.demo-watchlist > div:first-child {
    justify-content: space-between;
}

.demo-kicker {
    color: #54756a;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .14em;
}

.demo-symbol-line {
    gap: 10px;
    margin-top: 5px;
}

.demo-symbol-line strong {
    font-size: 25px;
    letter-spacing: -.035em;
}

.demo-symbol-line span {
    max-width: 390px;
    overflow: hidden;
    color: #769086;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-quote-state {
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(69, 227, 164, .2);
    border-radius: 99px;
    background: rgba(69, 227, 164, .06);
    color: #95e9c9;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.demo-quote-state i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.demo-quote-state[data-state="delayed"],
.demo-quote-state[data-state="stale"] {
    border-color: rgba(255, 190, 90, .2);
    background: rgba(255, 190, 90, .06);
    color: #f1c16f;
}

.demo-quote-state[data-state="unavailable"] {
    border-color: rgba(145, 170, 161, .18);
    background: rgba(145, 170, 161, .05);
    color: #91aaa1;
}

.demo-chart-panel {
    margin-top: 25px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #07110e;
}

.demo-chart-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.demo-chart-header > div:first-child {
    display: grid;
    grid-template-columns: auto auto;
    gap: 1px 10px;
    align-items: end;
}

.demo-chart-header > div:first-child span {
    grid-column: 1 / -1;
    color: #617d73;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.demo-chart-header > div:first-child strong {
    font-size: 22px;
}

.demo-chart-header small {
    padding-bottom: 3px;
    color: #7d988e;
    font-size: 10px;
    font-weight: 800;
}

.is-positive { color: var(--green) !important; }
.is-negative { color: var(--red) !important; }

.demo-chart-switch {
    display: flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #050c0a;
}

.demo-chart-switch button {
    padding: 6px 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #6f8b81;
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
}

.demo-chart-switch button[aria-pressed="true"] {
    background: rgba(69, 227, 164, .1);
    color: #adf2d7;
}

.demo-chart {
    position: relative;
    height: 285px;
    background:
        linear-gradient(rgba(132, 178, 161, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(132, 178, 161, .055) 1px, transparent 1px);
    background-size: 56px 56px;
}

.demo-chart svg {
    width: 100%;
    height: 100%;
}

#demo-chart-line {
    stroke: var(--green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
}

.demo-chart-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 17, 14, .74);
    color: #749087;
    font-size: 11px;
    text-align: center;
}

.demo-chart-loading[hidden] {
    display: none;
}

.demo-chart-range {
    display: flex;
    justify-content: space-between;
    padding: 9px 19px;
    border-top: 1px solid var(--line);
    color: #4e6a61;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.demo-decision-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr);
    gap: 12px;
    margin-top: 12px;
}

.demo-assessment,
.demo-evidence {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(12, 27, 23, .62);
}

.demo-card-label {
    color: #5f7c72;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

#demo-action {
    padding: 4px 8px;
    border-radius: 5px;
    background: rgba(145, 170, 161, .09);
    color: #b8cbc4;
}

#demo-action[data-action="BUY"] {
    background: rgba(69, 227, 164, .1);
    color: var(--green);
}

#demo-action[data-action="SELL"] {
    background: rgba(255, 107, 120, .1);
    color: var(--red);
}

.demo-assessment h3 {
    margin: 17px 0 8px;
    color: #e5f1ed;
    font-size: 18px;
    letter-spacing: -.02em;
}

.demo-assessment > p {
    min-height: 44px;
    margin: 0;
    color: #91aaa1;
    font-size: 11px;
}

.demo-validation-state {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin-top: 16px;
    padding: 10px 11px;
    border: 1px solid rgba(255, 190, 90, .18);
    border-radius: 7px;
    background: rgba(255, 190, 90, .055);
}

.demo-validation-state > i {
    width: 7px;
    height: 7px;
    margin-top: 3px;
    border-radius: 50%;
    background: #f1c16f;
    box-shadow: 0 0 0 4px rgba(241, 193, 111, .08);
}

.demo-validation-state > span {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.demo-validation-state strong {
    color: #e5c98e;
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.demo-validation-state small {
    color: #8d846e;
    font-size: 8px;
    line-height: 1.45;
}

.demo-validation-state[data-state="passed"] {
    border-color: rgba(69, 227, 164, .22);
    background: rgba(69, 227, 164, .06);
}

.demo-validation-state[data-state="passed"] > i {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(69, 227, 164, .08);
}

.demo-validation-state[data-state="passed"] strong {
    color: #9deecf;
}

.demo-validation-state[data-state="passed"] small {
    color: #718f84;
}

.demo-confidence {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 11px;
    align-items: center;
    margin-top: 19px;
    color: #69867c;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.demo-confidence > div {
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(132, 178, 161, .12);
}

.demo-confidence i {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--green);
    transition: width .35s ease;
}

.demo-confidence strong { color: #bcd0c8; }

.demo-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.demo-flags span {
    padding: 4px 7px;
    border: 1px solid rgba(132, 178, 161, .14);
    border-radius: 5px;
    color: #78948a;
    font-size: 8px;
    font-weight: 750;
    text-transform: capitalize;
}

.demo-evidence dl {
    display: grid;
    margin: 12px 0 0;
}

.demo-evidence dl > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-block: 9px;
    border-bottom: 1px solid var(--line);
}

.demo-evidence dl > div:last-child { border-bottom: 0; }
.demo-evidence dt { color: #718e84; font-size: 9px; }
.demo-evidence dd {
    margin: 0;
    color: #d1e0db;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 9px;
    font-weight: 800;
    text-align: right;
}

.demo-metrics {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-top: 12px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.demo-metrics > div {
    min-width: 0;
    padding: 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(8, 20, 17, .45);
}

.demo-metrics span {
    display: block;
    color: #5e7a70;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.35;
    text-transform: uppercase;
}

.demo-metrics strong {
    display: block;
    overflow: hidden;
    margin-top: 7px;
    color: #dce9e4;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12px;
    text-overflow: ellipsis;
}

.demo-watchlist { margin-top: 25px; }
.demo-watchlist > div:first-child { margin-bottom: 10px; }
.demo-watchlist > div:first-child small { color: #58756b; font-size: 8px; }

.demo-watchlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.demo-watchlist-grid button {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(10, 23, 19, .55);
    color: #bdcec8;
    cursor: pointer;
    text-align: left;
}

.demo-watchlist-grid button:hover,
.demo-watchlist-grid button.is-selected {
    border-color: rgba(69, 227, 164, .38);
    background: rgba(69, 227, 164, .055);
}

.demo-watchlist-top,
.demo-watchlist-bottom,
.demo-watchlist-identity { display: flex; }
.demo-watchlist-top,
.demo-watchlist-bottom { justify-content: space-between; gap: 10px; }
.demo-watchlist-identity { min-width: 0; flex-direction: column; }
.demo-watchlist-identity strong { font-size: 11px; }
.demo-watchlist-identity small {
    overflow: hidden;
    color: #627e74;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-watchlist-top em {
    flex-shrink: 0;
    color: #6c8a7f;
    font-size: 7px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.demo-watchlist-bottom { margin-top: 12px; }
.demo-watchlist-bottom strong,
.demo-watchlist-bottom small {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 9px;
}

.demo-status,
.demo-noscript {
    margin: 16px 0 0;
    color: #607e73;
    font-size: 9px;
    text-align: right;
}

.demo-conversion {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    align-items: center;
    margin-top: 24px;
    padding: 30px 32px;
    border: 1px solid rgba(69, 227, 164, .24);
    border-radius: 14px;
    background:
        radial-gradient(circle at 92% 0, rgba(69, 227, 164, .1), transparent 20rem),
        rgba(13, 28, 24, .74);
}

.demo-conversion .eyebrow {
    margin-bottom: 10px;
}

.demo-conversion h2 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -.04em;
    line-height: 1.12;
}

.demo-conversion p:last-child {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.demo-conversion .button {
    flex-shrink: 0;
}

@media (max-width: 1080px) {
    .demo-workspace { grid-template-columns: 238px minmax(0, 1fr); }
    .demo-controls { padding: 20px; }
    .demo-output { padding: 22px; }
    .demo-metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .trial-strip-inner { grid-template-columns: auto 1fr; }
    .trial-strip-inner > .button { grid-column: 2; width: fit-content; }
    .demo-workspace { grid-template-columns: 1fr; }
    .demo-controls { border-right: 0; border-bottom: 1px solid var(--line); }
    .demo-style-options { grid-template-columns: repeat(3, 1fr); }
    .demo-control-group,
    .demo-engine-scope { margin-top: 20px; }
    .demo-engine-scope ul { grid-template-columns: repeat(2, 1fr); }
    .demo-conversion {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .trial-strip { padding-block: 55px; }
    .trial-strip-inner { grid-template-columns: 1fr; }
    .trial-strip-status { width: 88px; height: 88px; }
    .trial-strip-inner > .button { grid-column: 1; width: 100%; }
    .demo-lab { padding-block: 36px 72px; }
    .page-demo .demo-heading { display: none; }
    .demo-style-options,
    .demo-engine-scope ul,
    .demo-watchlist-grid { grid-template-columns: 1fr; }
    .demo-output { padding: 16px; }
    .demo-output-topline,
    .demo-chart-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }
    .demo-symbol-line { align-items: flex-start; flex-direction: column; gap: 1px; }
    .demo-symbol-line span { max-width: calc(100vw - 62px); }
    .demo-chart-switch { width: 100%; }
    .demo-chart-switch button { flex: 1; }
    .demo-chart { height: 225px; }
    .demo-decision-grid { grid-template-columns: 1fr; }
    .demo-metrics { grid-template-columns: repeat(2, 1fr); }
    .demo-watchlist > div:first-child {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .demo-status { text-align: left; }
    .demo-conversion {
        gap: 24px;
        padding: 24px 20px;
    }
    .demo-conversion .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .demo-refresh.is-loading span { animation: none; }
}
