/* ===== VSS Expert Console — modern theme ===== */
:root {
    --brand-navy: #06203A;
    --brand-cyan: #15E0C8;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 6px 24px rgba(0, 0, 0, .28);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* Dark (default) */
[data-theme="dark"] {
    --bg: #0a1622;
    --bg-2: #0f2133;
    --surface: #122637;
    --surface-2: #16314a;
    --border: #21384f;
    --text: #e8f1f7;
    --text-dim: #93a9bd;
    --primary: var(--brand-cyan);
    --primary-ink: #042925;
    --danger: #ff5d6c;
    --accent-soft: rgba(21, 224, 200, .12);
}

/* Light */
[data-theme="light"] {
    --bg: #eef3f7;
    --bg-2: #e3ebf2;
    --surface: #ffffff;
    --surface-2: #f3f7fb;
    --border: #d6e0ea;
    --text: #0c2233;
    --text-dim: #5a7186;
    --primary: #0a9c8a;
    --primary-ink: #ffffff;
    --danger: #d63b4a;
    --accent-soft: rgba(10, 156, 138, .10);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 1.55rem; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin: 0 0 4px; }
h3 { font-size: 1rem; margin: 0; }
:is(h1, h2, h3, h4, h5, h6)[tabindex="-1"]:focus { outline: none; }

.muted { color: var(--text-dim); }
.small { font-size: .82rem; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.num { text-align: right; }

/* Shell */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 22px;
    height: 60px;
    background: linear-gradient(180deg, var(--bg-2), var(--bg));
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: inherit; }
.brand-mark {
    display: grid; place-items: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--brand-navy); color: var(--brand-cyan);
    font-weight: 800;
}
.brand-text small { color: var(--text-dim); font-weight: 500; font-size: .72rem; display: block; margin-top: -2px; }

.mainnav { display: flex; gap: 4px; margin-left: 8px; }
.navlink {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: var(--radius-sm);
    color: var(--text-dim); font-weight: 600; font-size: .92rem;
}
.navlink:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.navlink.active { color: var(--primary); background: var(--accent-soft); }
.navlink-icon { font-size: .85rem; }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.theme-toggle {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text); cursor: pointer; font-size: 1rem;
    display: grid; place-items: center; transition: background .15s;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-icon { display: none; }
[data-theme="dark"] .theme-icon-light { display: inline; }
[data-theme="light"] .theme-icon-dark { display: inline; }

.userbadge { display: flex; align-items: center; gap: 9px; }
.user-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-size: .8rem;
    background: var(--brand-navy); color: var(--brand-cyan);
}
.user-name { font-weight: 600; font-size: .9rem; }
.user-action { font-size: .82rem; color: var(--text-dim); }
.user-action-button { border: 0; padding: 0; background: transparent; cursor: pointer; font: inherit; }
.user-action.signin { color: var(--primary); font-weight: 600; }

/* Content */
.content { padding: 26px; max-width: 1240px; width: 100%; margin: 0 auto; flex: 1; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.head-actions { display: flex; align-items: center; gap: 12px; }
.back-link { font-size: .85rem; font-weight: 600; }

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.session-card { display: flex; flex-direction: column; gap: 8px; }
.session-card-top { display: flex; align-items: center; justify-content: space-between; }
.session-card h3 { margin-top: 2px; }
.session-card .subject { margin: 2px 0 0; font-size: .92rem; font-weight: 600; color: var(--accent, #6ea8fe); }
.session-card-actions { margin-top: auto; padding-top: 8px; }

/* Buttons */
.btn {
    border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
    padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
    cursor: pointer; transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }

/* Recording indicator (specialist call header) */
.rec-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--danger); font-weight: 600; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: rec-blink 1s steps(1, end) infinite; }
@keyframes rec-blink { 50% { opacity: 0.15; } }

/* Status pills */
.status-pill {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    background: var(--accent-soft); color: var(--primary);
}
.status-active { background: rgba(61, 220, 132, .16); color: #3ddc84; }
.status-ended { background: rgba(147, 169, 189, .16); color: var(--text-dim); }
.status-requesting, .status-ringing { background: rgba(255, 193, 7, .16); color: #ffc107; }
.status-failed { background: rgba(255, 93, 108, .16); color: var(--danger); }
.status-missed { background: rgba(255, 93, 108, .16); color: #ff8a5c; }

/* Empty states */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-icon { font-size: 2.4rem; color: var(--primary); opacity: .7; margin-bottom: 8px; }

/* Call page */
.call-grid {
    display: grid; gap: 16px;
    grid-template-columns: 1.5fr 1fr 300px;
    grid-template-areas: "pov chat snaps";
    align-items: start;
}
.pov { grid-area: pov; }
.steps { grid-area: steps; }
.chat { grid-area: chat; }
.snaps { grid-area: snaps; }
.snaps-list { display: flex; flex-direction: column; gap: 10px; max-height: 70vh; overflow-y: auto; padding: 2px; }
.snap-thumb { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); cursor: pointer; transition: border-color .12s, transform .12s; }
.snap-thumb:hover { border-color: var(--primary); transform: translateY(-1px); }
.snap-thumb img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.snap-thumb video { width: 100%; display: block; aspect-ratio: 4 / 3; background: #000; }
.snap-thumb figcaption { padding: 6px 8px; }
.pov-frame {
    position: relative;
    min-height: 360px; max-height: 78vh; border-radius: var(--radius-sm); overflow: hidden;
    background: #06121f; display: grid; place-items: center;
}
.pov-frame video,
.pov-frame img { max-width: 100%; max-height: 78vh; object-fit: contain; object-position: center; }

/* In native fullscreen the frame must fill the screen and let the POV letterbox to fit — otherwise
   the max-height:78vh cap (and the default lack of a size on the fullscreened element) leaves a tall
   High-quality (720x1280 portrait) frame overflowing off-screen. Vendor-prefixed selectors must
   stay in separate rules — browsers drop an entire selector list when any selector is unknown. */
.pov-frame:fullscreen {
    width: 100vw !important; height: 100vh !important; min-height: 0 !important; max-height: none !important;
    border-radius: 0 !important; background: #000 !important; display: flex !important; align-items: center; justify-content: center;
}
.pov-frame:-webkit-full-screen {
    width: 100vw !important; height: 100vh !important; min-height: 0 !important; max-height: none !important;
    border-radius: 0 !important; background: #000 !important; display: flex !important; align-items: center; justify-content: center;
}
.pov-frame:-moz-full-screen {
    width: 100vw !important; height: 100vh !important; min-height: 0 !important; max-height: none !important;
    border-radius: 0 !important; background: #000 !important; display: flex !important; align-items: center; justify-content: center;
}
.pov-frame:-ms-fullscreen {
    width: 100vw !important; height: 100vh !important; min-height: 0 !important; max-height: none !important;
    border-radius: 0 !important; background: #000 !important; display: flex !important; align-items: center; justify-content: center;
}
.pov-frame:fullscreen video, .pov-frame:fullscreen img {
    width: 100vw !important; height: 100vh !important; max-width: 100vw !important; max-height: 100vh !important; object-fit: contain !important;
}
.pov-frame:-webkit-full-screen video, .pov-frame:-webkit-full-screen img {
    width: 100vw !important; height: 100vh !important; max-width: 100vw !important; max-height: 100vh !important; object-fit: contain !important;
}
.pov-frame:-moz-full-screen video, .pov-frame:-moz-full-screen img {
    width: 100vw !important; height: 100vh !important; max-width: 100vw !important; max-height: 100vh !important; object-fit: contain !important;
}
.pov-frame:-ms-fullscreen video, .pov-frame:-ms-fullscreen img {
    width: 100vw !important; height: 100vh !important; max-width: 100vw !important; max-height: 100vh !important; object-fit: contain !important;
}
.pov-overlay {
    position: absolute; inset: 0; display: grid; place-items: center; background: #06121f;
    transition: opacity .35s ease;
}
.pov-overlay.faded { opacity: 0; pointer-events: none; }
.pov-placeholder { text-align: center; }

.conn-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.conn-dot.on { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .2); }
.conn-dot.off { background: #ffc107; box-shadow: 0 0 0 3px rgba(255, 193, 7, .2); }

.step-preview {
    background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px; margin-bottom: 14px; min-height: 120px;
}
.step-meta { color: var(--primary); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.step-heading { font-size: 1.15rem; font-weight: 700; margin: 6px 0; }
.step-body { color: var(--text-dim); line-height: 1.45; }
.step-actions { display: flex; gap: 8px; }
.step-actions .btn-primary { flex: 1; }

/* Chat */
.chat-log { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; padding: 4px; margin-bottom: 12px; }
.chat-log.static { max-height: 460px; }
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.theirs { align-self: flex-start; }
.chat-bubble {
    padding: 9px 13px; border-radius: 13px; line-height: 1.35;
    background: var(--surface-2); border: 1px solid var(--border);
}
.chat-msg.mine .chat-bubble { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.chat-time { margin-top: 3px; }
.chat-input { display: flex; gap: 8px; }
.chat-input input {
    flex: 1; padding: 10px 13px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font-size: .92rem;
}
.chat-input input:focus { outline: 2px solid var(--accent-soft); border-color: var(--primary); }

/* Tables */
.table-card { padding: 4px 4px; overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--text-dim); padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.row-clickable { cursor: pointer; transition: background .12s; }
.row-clickable:hover { background: var(--surface-2); }
.chevron { color: var(--text-dim); font-size: 1.2rem; }

/* History detail */
.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.diagnostics-log { margin: 0; max-height: 420px; overflow: auto; white-space: pre; font-family: Consolas, "SFMono-Regular", ui-monospace, monospace; font-size: .78rem; line-height: 1.45; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; color: var(--text); }
.settings-card { max-width: 760px; padding: 0; overflow: hidden; }
.settings-section { padding: 24px; }
.settings-section + .settings-section { border-top: 1px solid var(--border); }
.settings-section-head { margin-bottom: 18px; }
.settings-section-head h3 { margin-bottom: 5px; }
.settings-section-head p { margin: 0; line-height: 1.45; }
.settings-toggle-list { display: grid; gap: 12px; }
.settings-toggle {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
    padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface-2); cursor: pointer;
}
.settings-toggle input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--primary); }
.settings-toggle span { display: flex; flex-direction: column; gap: 4px; line-height: 1.4; }
.settings-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings-field { display: flex; flex-direction: column; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--text); }
.settings-field .input { width: 100%; margin: 0; }
.settings-field > .small { font-weight: 400; line-height: 1.4; }
.settings-field-wide { grid-column: 1 / -1; }
.settings-actions {
    display: flex; align-items: center; gap: 10px; padding: 18px 24px;
    border-top: 1px solid var(--border); background: var(--bg-2);
}
@media (max-width: 620px) {
    .settings-section { padding: 18px; }
    .settings-field-grid { grid-template-columns: 1fr; }
    .settings-field-wide { grid-column: auto; }
    .settings-actions { padding: 16px 18px; }
}
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery-item { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); cursor: pointer; transition: border-color .12s, transform .12s; }
.gallery-item:hover { border-color: var(--primary); transform: translateY(-1px); }
.gallery-item img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item video { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: contain; background: #000; }
.gallery-item.media-clip { cursor: default; }
.gallery-item figcaption { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; font-size: .85rem; }

/* Public document library */
.docs-page { max-width: 1000px; margin: 0 auto; padding: 64px 24px 80px; }
.docs-head { margin-bottom: 28px; }
.docs-head h1 { margin: 4px 0 8px; font-size: clamp(2rem, 5vw, 3.4rem); }
.docs-empty { padding: 32px; text-align: center; }
.docs-empty h2 { margin: 0 0 8px; }
.docs-empty p { margin: 0; }
.docs-grid { display: grid; gap: 12px; }
.doc-card {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 16px 18px; color: var(--text); text-decoration: none;
}
.doc-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.doc-type {
    min-width: 48px; padding: 7px 8px; border-radius: 8px; text-align: center;
    background: var(--primary-soft); color: var(--primary); font-size: .72rem; font-weight: 700;
}
.doc-details { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.doc-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-open { color: var(--primary); font-size: .84rem; font-weight: 600; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
    background: rgba(0, 0, 0, .82); padding: 32px; cursor: zoom-out;
}
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-sm); box-shadow: 0 12px 48px rgba(0, 0, 0, .5); cursor: default; }
.lightbox-close {
    position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
    font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { background: var(--primary); color: var(--primary-ink); }

@media (max-width: 900px) {
    .call-grid { grid-template-columns: 1fr; grid-template-areas: "pov" "chat" "snaps"; }
    .snaps-list { max-height: none; flex-direction: row; flex-wrap: wrap; }
    .snap-thumb { width: 150px; }
    .detail-grid { grid-template-columns: 1fr; }
    .mainnav .navlink span:last-child { display: none; }
}

/* ============================================================
   Marketing / landing page
   ============================================================ */
.btn-lg { padding: 13px 26px; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }

.marketing { min-height: 100vh; display: flex; flex-direction: column; }
.marketing main { overflow: hidden; width: 100%; }
.mkt-topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 5vw, 64px);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-2), var(--bg));
    position: sticky; top: 0; z-index: 10;
}
.mkt-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px clamp(14px, 2.5vw, 28px); }
.mkt-nav a { color: var(--text-dim); font-weight: 600; font-size: .92rem; }
.mkt-nav a:hover { color: var(--text); }
.mkt-nav a.btn-primary { color: var(--primary-ink); }
.mkt-nav a.btn-primary:hover { color: var(--primary-ink); filter: brightness(1.08); }

.mkt-hero {
    padding: clamp(36px, 6vw, 72px) clamp(18px, 5vw, 64px);
    background: radial-gradient(1200px 500px at 70% -10%, var(--accent-soft), transparent),
                linear-gradient(180deg, var(--bg-2), var(--bg));
    border-bottom: 1px solid var(--border);
}
.mkt-hero-inner {
    max-width: 1120px; margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 52px); align-items: center;
}
.mkt-hero-copy { max-width: 720px; }
.mkt-hero-media { display: flex; justify-content: center; }
.mkt-hero-media img {
    display: block; width: 100%; max-width: 340px; height: auto;
    border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow);
}
@media (max-width: 860px) {
    .mkt-hero-inner { grid-template-columns: 1fr; }
    .mkt-hero-media img { max-width: 260px; }
}
.mkt-eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .12em;
    font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: 16px;
}
.mkt-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; margin: 0 0 16px; }
.mkt-lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-dim); line-height: 1.6; max-width: 760px; }
.mkt-hero .mkt-lede { margin: 0; }
.mkt-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }
.mkt-cta-row .btn { display: inline-flex; align-items: center; justify-content: center; }
.mkt-outcome { font-weight: 600; color: var(--primary); letter-spacing: .02em; margin: 0; }

.mkt-section { padding: clamp(32px, 4.5vw, 56px) clamp(18px, 5vw, 64px); max-width: 1120px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.mkt-contrast {
    background: linear-gradient(180deg, var(--bg-2), var(--bg));
    max-width: none; border-block: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02), inset 0 -1px 0 rgba(0,0,0,.08);
}
.mkt-contrast > * { max-width: 1120px; margin-inline: auto; }
.mkt-section-head { margin-bottom: 20px; }
.mkt-section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 0 0 10px; }
.mkt-section-head p { margin: 0; }
.mkt-section-head .muted { max-width: 720px; font-size: 1.05rem; line-height: 1.6; }

.mkt-split {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(20px, 4vw, 40px); align-items: center; margin-bottom: 20px;
}
.mkt-split-media { display: flex; justify-content: center; }
.mkt-split-media img {
    display: block; width: 100%; max-width: 320px; height: auto;
    border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.mkt-split-copy { margin-bottom: 0; }
@media (max-width: 860px) {
    .mkt-split { grid-template-columns: 1fr; }
    .mkt-split-media img { max-width: 260px; }
}

.mkt-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.mkt-step {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 18px 20px; color: var(--text-dim); font-weight: 600; line-height: 1.45;
    min-height: 68px; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
}
.mkt-step-number {
    flex: 0 0 28px; width: 28px; height: 28px; display: inline-grid; place-items: center;
    border-radius: 50%; background: var(--accent-soft); color: var(--primary); font-weight: 700;
}
.mkt-quote {
    margin: 16px 0 0; padding: 18px 22px; border-left: 3px solid var(--primary);
    background: var(--accent-soft); border-radius: var(--radius-sm); font-size: 1.1rem; line-height: 1.6;
}

.mkt-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.mkt-compare-card { border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); min-height: 100%; box-shadow: var(--shadow); }
.mkt-compare-card h3 { margin: 0 0 14px; }
.mkt-compare-card p { line-height: 1.6; margin: 6px 0; }
.mkt-bad { background: rgba(255, 93, 108, .07); border-color: rgba(255, 93, 108, .3); }
.mkt-good { background: var(--accent-soft); border-color: rgba(21, 224, 200, .32); }
.mkt-bad-outcome { color: var(--danger); font-weight: 700; margin-top: 12px; }
.mkt-good-outcome { color: var(--primary); font-weight: 700; margin-top: 12px; }

.mkt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.mkt-role { padding: 24px; height: 100%; }
.mkt-role-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.mkt-role h3 { margin: 0 0 14px; }
.mkt-role ul { margin: 0; padding-left: 20px; line-height: 1.8; color: var(--text-dim); }
.mkt-role ul strong { color: var(--text); }

.mkt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: stretch; }
.mkt-feature { padding: 20px; min-height: 130px; transition: transform .12s ease, border-color .12s ease; }
.mkt-feature:hover { transform: translateY(-2px); border-color: var(--primary); }
.mkt-feature h4 { margin: 0 0 8px; }
.mkt-feature p { margin: 0; line-height: 1.5; }

.mkt-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.mkt-tag {
    background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
    padding: 10px 18px; font-weight: 600; color: var(--text-dim);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.mkt-final { text-align: center; }
.mkt-final h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.mkt-final .mkt-lede { margin: 14px auto 0; }

.mkt-demo-hero {
    display: grid; grid-template-columns: 1.3fr .9fr; gap: 18px; align-items: center;
    padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(135deg, rgba(21,224,200,.17), rgba(6,32,58,.86)); box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}
.mkt-demo-hero-copy h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin: 0 0 12px; }
.mkt-demo-hero-panel {
    border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 18px; background: rgba(7,20,31,.8); backdrop-filter: blur(10px);
}
.mkt-demo-pulse {
    width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, rgba(21,224,200,.95), rgba(21,224,200,0)); margin-bottom: 12px;
    animation: pulse 1.8s ease-in-out infinite;
}
.mkt-demo-rail {
    height: 10px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: 12px;
}
.mkt-demo-rail-fill {
    display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #8ffae4); animation: rail 3s ease-in-out infinite alternate;
}
.mkt-demo-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mkt-demo-chip {
    display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; background: rgba(21,224,200,.16); color: var(--text); font-size: .86rem; font-weight: 600;
}
.mkt-demo-card-glow { box-shadow: 0 0 0 1px rgba(21,224,200,.18), 0 18px 40px rgba(21,224,200,.14); }

.mkt-flyer {
    border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(135deg, rgba(21,224,200,.14), rgba(6,32,58,.96)); padding: 28px; box-shadow: var(--shadow);
}
.mkt-flyer-header, .mkt-flyer-footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.mkt-flyer-header h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin: 8px 0 10px; }
.mkt-flyer-badge {
    display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.16); font-weight: 700; color: var(--text);
}
.mkt-flyer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.mkt-flyer-card {
    background: rgba(7,20,31,.74); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 18px;
}
.mkt-flyer-card h3 { margin: 0 0 10px; font-size: 1.02rem; }
.mkt-flyer-card ul, .mkt-flyer-card ol { margin: 0; padding-left: 20px; line-height: 1.7; color: var(--text-dim); }
.mkt-flyer-footer { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
@media (max-width: 760px) { .mkt-flyer-grid { grid-template-columns: 1fr; } }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: .8; }
    50% { transform: scale(1.16); opacity: 1; }
}
@keyframes rail {
    from { transform: translateX(-6%); }
    to { transform: translateX(34%); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.mkt-footer {
    margin-top: auto; padding: 32px clamp(18px, 5vw, 64px);
    border-top: 1px solid var(--border); background: var(--bg-2);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.mkt-footer-link { font-weight: 600; }

/* ============================================================
   Admin tiles
   ============================================================ */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.admin-tile { padding: 24px; text-decoration: none; color: var(--text); transition: transform .1s ease, border-color .1s ease; display: block; }
.admin-tile:hover { transform: translateY(-2px); border-color: var(--primary); text-decoration: none; }
.admin-tile-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.admin-tile h3 { margin: 0 0 6px; }

@media (max-width: 760px) {
    .mkt-compare, .mkt-two { grid-template-columns: 1fr; }
    .mkt-footer { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    .mkt-topbar { position: static; padding: 12px 16px; gap: 10px 16px; flex-wrap: wrap; }
    .mkt-topbar .mkt-nav { width: 100%; justify-content: center; }
    .mkt-topbar .mkt-nav a[href^="#"] { display: none; }
    .mkt-hero { padding: 32px 18px; }
    .mkt-hero-inner { gap: 24px; }
    .mkt-hero-media img { max-width: 220px; }
    .mkt-section { padding: 32px 18px; }
    .mkt-cta-row .btn { width: 100%; }
    .mkt-step, .mkt-compare-card, .mkt-role, .mkt-feature { padding: 18px; }
}

/* ============================================================
   Admin form controls
   ============================================================ */
.input {
    width: 100%; box-sizing: border-box;
    background: var(--bg-2); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 9px 12px; font-size: .92rem; font-family: var(--font);
}
.input:focus { outline: none; border-color: var(--primary); }
.admin-form label { display: block; font-size: .85rem; color: var(--text-dim); font-weight: 600; margin-bottom: 4px; }
.admin-form label .input { margin-top: 4px; }
select.input { cursor: pointer; }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filter-bar > label { display: flex; flex-direction: column; font-size: .8rem; color: var(--text-dim); font-weight: 600; gap: 4px; }
/* Pagination control (shared Pager component) */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 4px 2px; }
.pager-info { font-size: .82rem; color: var(--text-dim); }
.pager-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pager-page { font-size: .82rem; color: var(--text-dim); min-width: 92px; text-align: center; }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.pager-size { width: auto; padding: 6px 10px; font-size: .82rem; }
.audio-diag { display: flex; flex-direction: column; gap: 3px; max-height: 40vh; overflow-y: auto; line-height: 1.35; }
.audio-diag > div { color: var(--text-dim); word-break: break-word; }
.diag-panel {
    position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(440px, 90vw);
    background: rgba(6, 18, 31, .96); border: 1px solid var(--border, #24384d); border-radius: 10px;
    padding: 10px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); backdrop-filter: blur(4px);
}
.diag-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.chart-card { padding: 20px 24px; }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 220px; padding-top: 10px; }
.chart-bar-wrap { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.chart-bar { width: 100%; max-width: 46px; background: var(--primary); border-radius: 6px 6px 0 0; min-height: 2px; transition: height .2s ease; }
.chart-bar-value { font-size: .8rem; font-weight: 700; color: var(--text); }
.chart-bar-label { font-size: .72rem; color: var(--text-dim); text-align: center; }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; flex: 1 1 160px; }
.stat-value { font-size: 1.8rem; font-weight: 700; }
.stat-label { font-size: .82rem; color: var(--text-dim); }

/* ============================================================
   Demo player — /demo "how a call works" walkthrough
   All frame switching is driven by data-* attributes that
   js/demo-player.js sets on the .demoplay root.
   ============================================================ */
/* The demo player is embedded via <iframe>; demo-player.js sizes it to content.
   min-height is a graceful fallback until the first height message arrives. */
.demo-frame {
    display: block; width: 100%; border: 0; overflow: hidden;
    min-height: 820px;
}
@media (max-width: 820px) { .demo-frame { min-height: 1180px; } }
@media (max-width: 560px) { .demo-frame { min-height: 1320px; } }

.demoplay {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(21,224,200,.10), rgba(6,32,58,.55));
    padding: clamp(18px, 3vw, 30px);
    box-shadow: var(--shadow);
}
.demoplay-stage {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 46px);
    align-items: center;
}
@media (max-width: 820px) {
    .demoplay-stage { grid-template-columns: 1fr; gap: 26px; }
}

/* Devices dim when they are not the focus of the current step. */
.demoplay-device { transition: opacity .45s ease, transform .45s ease; }
.demoplay[data-active="web"] .demoplay-phone-wrap,
.demoplay[data-active="phone"] .demoplay-browser {
    opacity: .42;
    transform: scale(.985);
}

/* ---- Phone ---- */
.demoplay-phone-wrap { display: flex; justify-content: center; }
.demoplay-phone {
    position: relative;
    width: 100%;
    max-width: 262px;
    aspect-ratio: 9 / 19.5;
    background: #05121f;
    border: 2px solid var(--border);
    border-radius: 36px;
    padding: 11px;
    box-shadow: var(--shadow);
    transition: border-color .45s ease, box-shadow .45s ease;
}
.demoplay[data-active="phone"] .demoplay-phone {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 20px 48px rgba(21,224,200,.24);
}
.demoplay-notch {
    position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
    width: 40%; height: 19px; background: #05121f; border-radius: 0 0 14px 14px; z-index: 4;
}
.demoplay-screen {
    position: relative; width: 100%; height: 100%;
    border-radius: 26px; overflow: hidden; background: var(--bg-2);
}
.demoplay-shot { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
/* Image is hidden until confirmed loaded (data-loadedN), so a broken/404 icon never flashes. */
.demoplay-shot img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s ease; }
.demoplay-ph-fallback {
    position: absolute; inset: 0; display: flex;
    flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    text-align: center; padding: 22px;
    background: radial-gradient(120% 80% at 50% 0%, var(--accent-soft), transparent), var(--bg-2);
}
.demoplay-ph-fallback .o { font-size: 2rem; }
.demoplay-ph-fallback .t { font-weight: 700; color: var(--text); font-size: .95rem; line-height: 1.3; }
.demoplay-ph-fallback .h { font-size: .74rem; color: var(--text-dim); }
/* Once an image is confirmed loaded (root data-loadedN, JS-owned), reveal it and drop the fallback. */
.demoplay[data-loaded1] .demoplay-shot[data-shot="1"] img,
.demoplay[data-loaded2] .demoplay-shot[data-shot="2"] img,
.demoplay[data-loaded3] .demoplay-shot[data-shot="3"] img,
.demoplay[data-loaded4] .demoplay-shot[data-shot="4"] img { opacity: 1; }
.demoplay[data-loaded1] .demoplay-shot[data-shot="1"] .demoplay-ph-fallback,
.demoplay[data-loaded2] .demoplay-shot[data-shot="2"] .demoplay-ph-fallback,
.demoplay[data-loaded3] .demoplay-shot[data-shot="3"] .demoplay-ph-fallback,
.demoplay[data-loaded4] .demoplay-shot[data-shot="4"] .demoplay-ph-fallback { display: none; }
.demoplay[data-phoneshot="1"] .demoplay-shot[data-shot="1"],
.demoplay[data-phoneshot="2"] .demoplay-shot[data-shot="2"],
.demoplay[data-phoneshot="3"] .demoplay-shot[data-shot="3"],
.demoplay[data-phoneshot="4"] .demoplay-shot[data-shot="4"] { opacity: 1; }
/* First-frame defaults before demo-player.js sets state (avoids a blank flash). */
.demoplay:not([data-phoneshot]) .demoplay-shot[data-shot="1"] { opacity: 1; }

/* ---- Browser (specialist console) ---- */
.demoplay-browser {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: border-color .45s ease, box-shadow .45s ease;
}
.demoplay[data-active="web"] .demoplay-browser {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 20px 48px rgba(21,224,200,.20);
}
.demoplay-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.demoplay-bar-dots { display: flex; gap: 6px; }
.demoplay-bar-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.demoplay-url {
    flex: 1; font-size: .76rem; color: var(--text-dim);
    background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
    padding: 5px 14px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demoplay-url-live { display: none; }
.demoplay[data-web="live"] .demoplay-url-sessions { display: none; }
.demoplay[data-web="live"] .demoplay-url-live { display: block; }
.demoplay-viewport { position: relative; min-height: 356px; padding: 18px; }
.demoplay-web { display: none; animation: demoFade .5s ease; }
.demoplay[data-web="idle"] .demoplay-web[data-web="idle"],
.demoplay[data-web="incoming"] .demoplay-web[data-web="incoming"],
.demoplay[data-web="live"] .demoplay-web[data-web="live"] { display: block; }
.demoplay:not([data-web]) .demoplay-web[data-web="idle"] { display: block; }
@keyframes demoFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.demoplay-console-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.demoplay-console-head h4 { margin: 0 0 2px; font-size: 1.05rem; }
.demoplay-cmuted { margin: 0; font-size: .8rem; color: var(--text-dim); }
.demoplay-live-pill, .demoplay-conn, .demoplay-rec {
    display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700;
    padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.demoplay-live-pill { background: var(--accent-soft); color: var(--primary); }
.demoplay-live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 1.8s ease-in-out infinite; }
.demoplay-conn { background: var(--accent-soft); color: var(--primary); }
.demoplay-conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.demoplay-rec { background: rgba(255,93,108,.12); color: var(--danger); }
.demoplay-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s ease-in-out infinite; }

/* Empty lobby */
.demoplay-empty {
    border: 1px dashed var(--border); border-radius: var(--radius);
    padding: 40px 22px; text-align: center; color: var(--text-dim); background: var(--bg-2);
}
.demoplay-empty .o { font-size: 1.9rem; display: block; margin-bottom: 10px; opacity: .7; }
.demoplay-empty p { margin: 0; font-size: .9rem; line-height: 1.5; }

/* Incoming session card */
.demoplay-session-card {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); box-shadow: 0 0 0 1px var(--primary), 0 14px 34px rgba(21,224,200,.16);
}
.demoplay-status {
    display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
    background: rgba(255,193,7,.16); color: #ffc107;
}
.demoplay-sc-title { font-weight: 700; font-size: 1rem; }
.demoplay-sc-meta { font-size: .8rem; color: var(--text-dim); margin-top: 3px; }
.demoplay-sc-ref { font-size: .74rem; color: var(--text-dim); margin-top: 6px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.demoplay-join { position: relative; }
.demoplay[data-web="incoming"] .demoplay-join::after {
    content: ""; position: absolute; inset: -4px; border-radius: 12px;
    border: 2px solid var(--primary); opacity: 0; animation: demoRing 1.6s ease-out infinite;
}
@keyframes demoRing {
    0% { opacity: .8; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.28); }
}

/* Live call grid */
.demoplay-call-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.demoplay-callgrid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
@media (max-width: 560px) { .demoplay-callgrid { grid-template-columns: 1fr; } }
.demoplay-pov {
    position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
    background: #05121f; min-height: 210px;
}
.demoplay-pov img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 210px; }
.demoplay-pov-tag {
    position: absolute; left: 10px; bottom: 10px; font-size: .72rem; font-weight: 700;
    padding: 4px 10px; border-radius: 999px; background: rgba(5,18,31,.72); color: #fff; backdrop-filter: blur(4px);
}
.demoplay-chat { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius); padding: 13px; background: var(--bg-2); }
.demoplay-chat-h { font-weight: 700; font-size: .88rem; margin-bottom: 2px; }
.demoplay-bubble { font-size: .8rem; line-height: 1.4; padding: 8px 11px; border-radius: 12px; max-width: 90%; }
.demoplay-bubble.tech { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.demoplay-bubble.spec { align-self: flex-end; background: var(--accent-soft); color: var(--text); border-bottom-right-radius: 3px; }
.demoplay-chat-input {
    margin-top: auto; display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); border-radius: 999px; padding: 5px 6px 5px 14px; background: var(--surface);
}
.demoplay-chat-input span { flex: 1; font-size: .78rem; color: var(--text-dim); }

/* Buttons used inside the mock console */
.demoplay-btn-primary {
    border: 0; cursor: default; font-weight: 700; font-size: .84rem;
    padding: 9px 16px; border-radius: 9px; background: var(--primary); color: var(--primary-ink);
}
.demoplay-btn-danger {
    border: 1px solid rgba(255,93,108,.5); cursor: default; font-weight: 700; font-size: .78rem;
    padding: 6px 13px; border-radius: 9px; background: rgba(255,93,108,.12); color: var(--danger);
}
.demoplay-btn-sm { padding: 6px 13px; font-size: .78rem; }

/* ---- Caption + controls ---- */
.demoplay-caption { margin-top: 24px; min-height: 84px; }
.demoplay-cap { display: none; animation: demoFade .5s ease; }
.demoplay[data-step="1"] .demoplay-cap[data-cap="1"],
.demoplay[data-step="2"] .demoplay-cap[data-cap="2"],
.demoplay[data-step="3"] .demoplay-cap[data-cap="3"],
.demoplay[data-step="4"] .demoplay-cap[data-cap="4"],
.demoplay[data-step="5"] .demoplay-cap[data-cap="5"],
.demoplay[data-step="6"] .demoplay-cap[data-cap="6"] { display: block; }
.demoplay:not([data-step]) .demoplay-cap[data-cap="1"] { display: block; }
.demoplay-cap .kick {
    display: inline-block; text-transform: uppercase; letter-spacing: .1em;
    font-size: .72rem; font-weight: 700; color: var(--primary); margin-bottom: 6px;
}
.demoplay-cap h3 { font-size: 1.2rem; margin: 0 0 6px; }
.demoplay-cap p { margin: 0; color: var(--text-dim); line-height: 1.55; max-width: 640px; }

.demoplay-controls { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.demoplay-ctrl {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font-size: .95rem; line-height: 1; transition: border-color .12s ease, background .12s ease;
}
.demoplay-ctrl:hover { border-color: var(--primary); }
.demoplay-play { width: 46px; height: 46px; background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.demoplay-play:hover { filter: brightness(1.08); border-color: var(--primary); }
.demoplay-play .i-play { display: inline; }
.demoplay-play .i-pause { display: none; }
.demoplay[data-playing="1"] .demoplay-play .i-play { display: none; }
.demoplay[data-playing="1"] .demoplay-play .i-pause { display: inline; }
.demoplay-progress { flex: 1; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.demoplay-progress-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #8ffae4); }
.demoplay-dots { display: flex; gap: 8px; }
.demoplay-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--border); transition: transform .15s ease, background .15s ease; }
.demoplay-dot:hover { transform: scale(1.2); }
.demoplay[data-step="1"] .demoplay-dot[data-dot="1"],
.demoplay[data-step="2"] .demoplay-dot[data-dot="2"],
.demoplay[data-step="3"] .demoplay-dot[data-dot="3"],
.demoplay[data-step="4"] .demoplay-dot[data-dot="4"],
.demoplay[data-step="5"] .demoplay-dot[data-dot="5"],
.demoplay[data-step="6"] .demoplay-dot[data-dot="6"] { background: var(--primary); transform: scale(1.15); }
@media (max-width: 560px) { .demoplay-dots { display: none; } }
