/* Demos page (demos.html): one section per demo with a browser-framed screenshot, a phone view and thumbnails. */
.demo-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.demo-jump a {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 100px;
    background: var(--surface); border: 1px solid var(--glass-border); box-shadow: 0 2px 12px rgba(0,0,0,.05);
    font-size: .85rem; font-weight: 700; color: var(--text); transition: transform .3s var(--spring), box-shadow .3s var(--ease);
}
.demo-jump a:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,60,225,.15); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-store { background: #e8513d; }
.dot-contractor { background: #1F4D4A; }
.dot-mechanic { background: #2563eb; }
.dot-fence { background: #21b4a6; }
.dot-salon { background: #c49a6c; }
.dot-keystone { background: #22c55e; }
.dot-research { background: #4fd1c5; }
.dot-security { background: #e7b317; }

.demo { scroll-margin-top: 80px; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.demo-reverse .demo-copy { order: 2; }
.demo-num { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); margin-bottom: 10px; }
.demo-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.demo-lead { color: var(--text-dim); line-height: 1.7; margin-bottom: 18px; }
.demo-features { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }
.demo-features li { position: relative; padding-left: 30px; font-size: .92rem; line-height: 1.55; }
.demo-features li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--gradient);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E") center/contain no-repeat;
}
.demo-features li::after {
    content: ""; position: absolute; left: 6px; top: 7px; width: 8px; height: 5px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 24px 0 12px; }
.demo-url { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.demo-note { font-size: .85rem; color: var(--text-dim); line-height: 1.6; }
.demo-note a { color: var(--purple); font-weight: 700; }

.demo-media { position: relative; padding-right: 54px; }
.demo-reverse .demo-media { padding-right: 0; padding-left: 54px; }
.demo-window { margin: 0; border-radius: var(--radius-lg); overflow: hidden; padding: 0; }
.demo-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,.05); background: rgba(255,255,255,.7); }
.demo-bar .window-dots { margin: 0; padding: 0; border: 0; }
.demo-bar-url {
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: .75rem; color: var(--text-muted); background: var(--bg-alt); border-radius: 100px; padding: 5px 14px;
}
.demo-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: opacity .25s var(--ease); }
.demo-shot.is-swapping { opacity: .2; }
.demo-caption { padding: 12px 16px; font-size: .82rem; font-weight: 600; color: var(--text-dim); background: rgba(255,255,255,.75); border-top: 1px solid rgba(0,0,0,.05); }
.demo-phone {
    position: absolute; right: 0; bottom: 140px; width: 138px; height: auto; border-radius: 22px;
    border: 6px solid #1a1a2e; box-shadow: 0 20px 50px rgba(26,26,46,.28); background: #fff;
    aspect-ratio: 390 / 760; object-fit: cover; object-position: top;
}
.demo-reverse .demo-phone { right: auto; left: 0; }
.demo-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.demo-thumbs button {
    display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; cursor: pointer;
    background: var(--surface); border: 2px solid transparent; box-shadow: 0 2px 10px rgba(0,0,0,.05);
    font: inherit; font-size: .72rem; font-weight: 700; color: var(--text-dim); text-align: center;
    transition: border-color .2s var(--ease), transform .3s var(--spring);
}
.demo-thumbs button:hover { transform: translateY(-2px); }
.demo-thumbs button[aria-pressed="true"] { border-color: var(--purple); color: var(--purple); }
.demo-thumbs img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; }

.demo-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.demo-facts .glass { border-radius: var(--radius-lg); padding: 28px 26px; }
.demo-facts h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.demo-facts p { font-size: .9rem; color: var(--text-dim); line-height: 1.65; }

@media (max-width: 1024px) {
    .demo-grid { grid-template-columns: 1fr; }
    .demo-reverse .demo-copy { order: 0; }
    .demo-facts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .demo-media, .demo-reverse .demo-media { padding: 0; }
    .demo-phone { display: none; }
    .demo-thumbs { grid-template-columns: repeat(2, 1fr); }
    .demo-jump a { width: 100%; justify-content: center; }
}

/* Link from each demo to its product page (details and pricing) */
.demo-more { font-size: .85rem; font-weight: 700; color: var(--purple); white-space: nowrap; }
.demo-more:hover { text-decoration: underline; }
