/* The landing hero demo (task #3769): the product's own screens, played by static/demo-voks.js on the kit's
   demo engine. The idea card, the post, the badges and the buttons are the product's own classes (render.mjs
   CSS); this file only places them on a stage and gives the form its own vkd-* names (the gate reads a real
   .mx-field / .mx-table as page structure, so a demo copy never wears them).
   Frameless: the sign, the phone and the browser window stand on the page itself. Keep what is drawn about
   40px clear of the stage's sides and bottom - the frame clips.
   The finished state is the markup's own; the tour resets to the start. */

.vkd { margin-top: clamp(1.5rem, 4vw, 3rem); }
.vkd-stage {
  width: 1160px;
  height: 620px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--c-ink);
}

/* The product's own zone colours, under the names its stylesheet uses on the zone pages. */
.vkd .z-idea,
.vkd .z-manager {
  --accent: var(--c-accent);
  --accent-ink: var(--c-accent-strong);
  --accent-soft: var(--c-accent-soft);
  --accent-line: color-mix(in srgb, var(--c-accent) 38%, transparent);
}

/* ── the sign on the wall: black on white, like the printed poster (.sheet) ───────────────────── */
.vkd-sheet {
  position: absolute;
  left: 40px;
  top: 60px;
  width: 250px;
  padding: 22px 20px 20px;
  border-radius: 6px;
  background: #fff;
  color: #000;
  text-align: center;
  transform: rotate(-1.5deg);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.08), var(--lp-demo-shadow);
}
.vkd-sheet p { margin: 0; color: #000; }
.vkd-sheet__brand { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.vkd-sheet__ws { font-size: 14px; font-weight: 650; margin-bottom: 14px !important; }
.vkd-sheet__qr { width: 170px; margin: 0 auto 14px; color: #000; }
.vkd-sheet__qr svg { display: block; width: 100%; height: auto; }
.vkd-sheet__say { font-size: 13px; line-height: 1.4; font-weight: 600; margin-bottom: 8px !important; }
.vkd-sheet__url { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; letter-spacing: -0.02em; white-space: nowrap; }

/* ── the phone ───────────────────────────────────────────────────────────────────────────────── */
.vkd-phone {
  left: 430px;
  top: 20px;
  width: 300px;
  height: 580px;
  transition: left 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.vkd-phone.is-scan { left: 140px; top: 70px; }
.vkd-phone.is-away { transform: translateY(660px); }
.vkd-scr { position: absolute; inset: 0; display: none; padding: 46px 12px 16px; }
.vkd-scr.is-on { display: block; }

.vkd-cam { background: #0b0d10; padding: 0; }
.vkd-cam.is-on { display: grid; place-items: center; }
.vkd-cam__frame { position: relative; width: 190px; height: 190px; }
.vkd-cam__qr { position: absolute; inset: 22px; padding: 10px; background: #fff; border-radius: 4px; color: #000; }
.vkd-cam__qr svg { display: block; width: 100%; height: 100%; }
.vkd-cam__frame span { position: absolute; width: 28px; height: 28px; border: 3px solid #fff; transition: border-color 0.25s; }
.vkd-cam__frame span:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.vkd-cam__frame span:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.vkd-cam__frame span:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.vkd-cam__frame span:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.vkd-cam__frame.is-found span { border-color: var(--c-accent, #3ecf8e); }

.vkd-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.vkd-title { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; color: var(--c-ink); }
.vkd-h2 { font-size: 14px; font-weight: 700; color: var(--c-ink); }
.vkd-phone .mx-panel { margin: 0; }
.vkd-phone .mx-panel__body, .vkd-win .mx-panel__body { padding: 12px; }

/* the compose form's own copies of label / textarea (never .mx-field in a demo) */
.vkd-form { display: flex; flex-direction: column; gap: 12px; }
.vkd-field { display: flex; flex-direction: column; gap: 5px; }
.vkd-label { font-size: 12px; font-weight: 650; color: var(--c-ink); }
.vkd-input {
  display: block;
  min-height: 78px;
  padding: 8px 10px;
  border: 1px solid var(--c-line-strong);
  border-radius: 8px;
  background: var(--c-canvas);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--c-ink);
}
.vkd-input.is-focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.vkd-phone .mx-hint { margin: 0; font-size: 11.5px; }
.vkd-phone .mx-actions { display: flex; }
.vkd-phone .mx-btn { font-size: 12.5px; height: 34px; padding-inline: 12px; }

/* the wall */
.vkd-wall { padding: 0; }
.vkd-wall__scroll { position: absolute; inset: 40px 0 0; overflow-y: auto; padding: 8px 12px 16px; scrollbar-width: none; }
.vkd-wall__scroll::-webkit-scrollbar { display: none; }
.vkd-budget { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.vkd-budget .vk-budget__big { font-size: 15px; }
.vkd-budget .mx-sub { font-size: 12px; }
.vkd-phone .vk-sectionhead { margin: 0 0 8px; }
.vkd-ideas { display: flex; flex-direction: column; gap: 10px; }
.vkd-phone .vk-idea__head { gap: 10px; }
.vkd-phone .vk-score { padding: 4px 9px; }
.vkd-phone .vk-score b { font-size: 17px; }
.vkd-phone .vk-score span { font-size: 11.5px; }
.vkd-phone .vk-byline b { font-size: 12.5px; }
/* On a phone the problem and its fix stack (the product's two columns start at 60rem of viewport). */
.vkd-phone .vk-pair { display: block; }
.vkd-phone .vk-pair dt:nth-of-type(2), .vkd-phone .vk-pair dd:nth-of-type(2) { grid-column: auto; grid-row: auto; }
.vkd-phone .vk-pair dt { font-size: 10px; margin: 10px 0 3px; }
.vkd-phone .vk-pair dd p { font-size: 12.5px; line-height: 1.45; margin: 0; }
.vkd-phone .vk-votebar { margin-top: 10px; padding-top: 10px; }
.vkd-ideas .vk-idea { transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s; }
.vkd-ideas .vk-idea.is-new { animation: vkd-in 0.5s ease both; }
.vkd-ideas .vk-idea.is-raised { box-shadow: 0 0 0 2px var(--c-accent); }
.vkd-score-bump { animation: vkd-bump 0.35s ease; }

@keyframes vkd-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes vkd-bump { 50% { transform: scale(1.18); } }

/* ── the browser window: the managers' board, answered under a name ───────────────────────────── */
.vkd-win {
  position: absolute;
  left: 770px;
  top: 90px;
  width: 350px;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--c-canvas);
  box-shadow: inset 0 0 0 1px var(--lp-hair-strong, var(--c-line-strong)), var(--lp-demo-shadow);
}
.vkd-win__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-line);
}
.vkd-win__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line-strong); }
.vkd-win__url {
  flex: 1;
  min-width: 0;
  margin-inline-start: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-canvas);
  font-size: 11px;
  color: var(--c-ink-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vkd-win__body { padding: 16px; }
.vkd-win .vk-sectionhead { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.vkd-win .vk-post { margin: 0; }
.vkd-win .vk-post__meta { font-size: 12.5px; }
.vkd-win .vk-post__body p { font-size: 13px; line-height: 1.55; margin: 8px 0 0; }
.vkd-win .mx-empty { font-size: 13px; margin: 0; }
.vkd-win .vk-post.is-new { animation: vkd-in 0.6s ease both; }



/* ── The pictures on the landing's cards (render.mjs VIZ) ───────────────────────────────────────────────────────
   Each is a miniature of its own feature, in the product's tokens (accent, dark and light follow); a printed
   poster is black on white in either palette. */
.lp-viz--scene { height: 8.25rem; }
.vkv { direction: ltr; color: var(--c-ink); font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.8rem; position: relative; }
.vkv, .vkv * { box-sizing: border-box; }
.vkv i, .vkv u, .vkv b, .vkv em { font-style: normal; text-decoration: none; display: block; }

/* ideas ranked by points: one climbs past the one above */
.vkv-wall { flex-direction: column; gap: 5px; width: 12rem; align-items: stretch; }
.vkv-wall > span { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 9px; background: var(--c-surface); border: 1px solid var(--c-line); }
.vkv-wall > span > u { flex: 1; height: 5px; border-radius: 3px; background: var(--c-line-strong); }
.vkv-wall > span:nth-child(3) > u { margin-inline-end: 30%; }
.vkv-wall > span > b { min-width: 2rem; text-align: center; padding: 2px 6px; border-radius: 999px; background: var(--c-surface-2); font-weight: 700; }
.vkv-wall > span.is-top { animation: vkv-down 6s infinite; }
.vkv-wall > span.is-rising { border-color: var(--c-accent); animation: vkv-up 6s infinite; }
.vkv-wall > span.is-rising > u { background: var(--c-ink); }
.vkv-wall > span.is-rising > b { position: relative; display: grid; background: var(--c-accent); color: var(--c-accent-ink); }
.vkv-wall > span.is-rising > b > i { grid-area: 1 / 1; animation: vkv-count 6s infinite; }
.vkv-wall > span.is-rising > b > i:nth-child(2) { animation-name: vkv-count2; }
@keyframes vkv-count { 0%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes vkv-count2 { 0%, 30% { opacity: 0; } 36%, 100% { opacity: 1; } }
@keyframes vkv-up { 0%, 42% { transform: none; } 56%, 100% { transform: translateY(calc(-100% - 5px)); } }
@keyframes vkv-down { 0%, 42% { transform: none; } 56%, 100% { transform: translateY(calc(100% + 5px)); } }

/* management posts, and answers under it */
.vkv-board { flex-direction: column; gap: 6px; width: 12rem; align-items: stretch; }
.vkv-board > div { display: grid; grid-template-columns: auto 1fr; gap: 5px 9px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--c-surface); border: 1px solid var(--c-line-strong); }
.vkv-board i { grid-row: span 2; width: 20px; height: 20px; border-radius: 6px; background: var(--c-ink); }
.vkv-board u { height: 5px; border-radius: 3px; background: var(--c-line-strong); } .vkv-board__post > u:nth-of-type(2) { width: 65%; }
.vkv-board__reply { margin-inline-start: 2rem; border-color: var(--c-accent) !important; animation: vkv-answer 5s infinite; }
.vkv-board__reply > i { grid-row: auto; width: 16px; height: 16px; background: var(--c-accent); }
.vkv-board__reply > u { background: var(--c-ink); width: 70%; }
@keyframes vkv-answer { 0%, 20% { opacity: 0; transform: translateY(-8px); } 34%, 100% { opacity: 1; transform: none; } }

/* whoever writes has no name */
.vkv-anon__who { position: relative; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--c-surface); border: 2px dashed var(--c-line-strong); overflow: hidden; }
.vkv-anon__who::before { content: ''; position: absolute; left: 50%; top: 20%; width: 34%; height: 34%; margin-left: -17%; border-radius: 50%; background: var(--c-line-strong); }
.vkv-anon__who::after { content: ''; position: absolute; left: 16%; right: 16%; top: 62%; height: 60%; border-radius: 50% 50% 0 0; background: var(--c-line-strong); }
.vkv-anon__who > i { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 5px, var(--c-surface) 5px 8px); z-index: 1; animation: vkv-veil 4s linear infinite; }
@keyframes vkv-veil { to { background-position: 22px 0; } }
.vkv-anon__name { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 9px; background: var(--c-surface); border: 1px solid var(--c-line-strong); }
.vkv-anon__name > u { width: 3.4rem; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--c-ink) 0 6px, transparent 6px 10px); }
.vkv-anon__name > em { width: 18px; height: 18px; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); display: grid; place-items: center; font-weight: 700; }

/* ten minutes to a poster on the wall */
.vkv-fast__clock { position: relative; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--c-surface); border: 2px solid var(--c-ink); }
.vkv-fast__clock::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--c-ink); }
.vkv-fast__clock > i { position: absolute; left: 50%; bottom: 50%; width: 2px; height: 40%; margin-left: -1px; border-radius: 1px; background: var(--c-accent); transform-origin: 50% 100%; animation: vkv-hand 5s linear infinite; }
@keyframes vkv-hand { 0% { transform: rotate(0); } 60%, 100% { transform: rotate(60deg); } }
.vkv-fast > b { font-size: 1.15rem; font-weight: 700; }
.vkv-fast__poster { width: 3rem; padding: 10px 6px 6px; border-radius: 4px; background: white; color: black; position: relative; box-shadow: 0 1px 0 var(--c-line-strong); animation: vkv-pinup 5s infinite; }
.vkv-fast__poster::before { content: ''; position: absolute; left: 50%; top: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--c-accent); }
.vkv-fast__poster > svg { display: block; width: 100%; height: auto; }
@keyframes vkv-pinup { 0%, 55% { opacity: 0; transform: translateY(10px) rotate(-4deg); } 68%, 100% { opacity: 1; transform: rotate(-2deg); } }

/* ten points a month, spent one by one */
.vkv-points__pool { display: grid; grid-template-columns: repeat(5, 14px); gap: 6px; }
.vkv-points__pool > i { width: 14px; height: 14px; border-radius: 50%; background: var(--c-accent); animation: vkv-spend 8s infinite; }
.vkv-points__pool > i:nth-child(1) { animation-delay: 0.6s; } .vkv-points__pool > i:nth-child(2) { animation-delay: 1.2s; } .vkv-points__pool > i:nth-child(3) { animation-delay: 1.8s; } .vkv-points__pool > i:nth-child(4) { animation-delay: 2.4s; } .vkv-points__pool > i:nth-child(5) { animation-delay: 3s; }
.vkv-points__pool > i:nth-child(6) { animation-delay: 3.6s; } .vkv-points__pool > i:nth-child(7) { animation-delay: 4.2s; } .vkv-points__pool > i:nth-child(8) { animation-delay: 4.8s; } .vkv-points__pool > i:nth-child(9) { animation-delay: 5.4s; } .vkv-points__pool > i:nth-child(10) { animation-delay: 6s; }
@keyframes vkv-spend { 0% { background: var(--c-accent); transform: none; } 4%, 86% { background: var(--c-line-strong); transform: scale(0.7); } 92%, 100% { background: var(--c-accent); transform: none; } }
.vkv-points > b { height: 1.9rem; line-height: 1.9rem; overflow: hidden; font-size: 1.25rem; font-weight: 700; min-width: 2.6rem; text-align: center; border-radius: 8px; background: var(--c-surface); border: 1px solid var(--c-line-strong); }
.vkv-points > b > span { display: block; height: 1.9rem; animation: vkv-left 8s steps(1) infinite; }
@keyframes vkv-left { 0% { transform: translateY(0); } 25% { transform: translateY(-100%); } 50% { transform: translateY(-200%); } 78%, 100% { transform: translateY(-300%); } }

/* the idea's +1 / +2 / +3 chips (voteControl, 2026-11-14): the first point is the card's own button, the chips
   come after it - each shows only in its turn, whatever display the product's classes give them */
.vkd-phone .vk-votebar [hidden] { display: none !important; }
.vkd-phone .vk-chip { display: inline-flex; align-items: center; justify-content: center; }
