/* "Vyzkoušet" wizard. The steps on the left, the visitor's future widget on a storefront stage on the right, which repaints as
   we learn the brand. Tokens and shared components come from keliqo.css. */
body.wizard main { padding-block: var(--space-5) var(--space-6); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-6); align-items: start; }
@media (max-width: 960px) { .grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); } .stage { position: static !important; } }

/* Step indicator: a real sequence, so numbers are right here. */
.steps { display: flex; gap: 3px; margin: 0 0 var(--space-5); padding: 0; list-style: none; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); padding: 2px 8px 2px 2px; border-radius: var(--radius-pill); background: var(--card); border: 1px solid var(--line); }
[dir="rtl"] .steps li { padding: 2px 2px 2px 8px; }
.steps li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--muted); }
.steps li.now { color: var(--ink); font-weight: 600; border-color: var(--violet); }
.steps li.now b { background: var(--violet); border-color: var(--violet); color: var(--on-violet); }
.steps li.done b { background: var(--card); border-color: var(--mint); color: var(--mint); }
.steps li.done { color: var(--ink); }
.steps li > * { display: flex; align-items: center; gap: 8px; }
.steps li button { all: unset; display: flex; align-items: center; gap: 8px; cursor: pointer; border-radius: var(--radius-pill); }
.steps li button:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
@media (max-width: 560px) { .steps li span.name { display: none; } .steps li.now span.name { display: inline; } .steps li { padding-inline-end: 4px; } .steps li.now { padding-inline-end: 14px; } }

.flow h1 { font-size: clamp(1.7rem, 3.2vw, 2rem); margin: 0 0 8px; outline: none; }
.flow .lead { margin-block-end: var(--space-5); }
.big { display: flex; gap: 10px; flex-wrap: wrap; }
.big input { flex: 1 1 15rem; min-width: 0; max-width: none; font-size: 1.1rem; min-height: 54px; padding-inline: 18px; }
.big button { padding: 14px 26px; }
.row { display: flex; gap: 10px; }
.row input { flex: 1; min-width: 0; max-width: none; }
.row .ghost { flex: none; }
@media (max-width: 480px) { .row { flex-direction: column; } }
.skip-link { margin-block-start: 10px; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-block-start: var(--space-5); flex-wrap: wrap; }
.nav .hint { margin: 0; flex: 1 1 14rem; }

/* What we found on the site: each signal lands and the stage repaints. */
.found { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: 8px; }
.found li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); color: var(--muted); transition: color .3s, border-color .3s; }
.found li i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.found li span { margin-inline-start: auto; text-align: end; font-size: .95rem; min-width: 0; overflow-wrap: anywhere; display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.found li.wait i { animation: pulse 1.1s ease-in-out infinite; background: var(--muted); }
.found li.on { color: var(--ink); border-color: var(--mint); }
.found li.on i { background: var(--mint); }
.found li.on span { color: var(--ink); font-weight: 500; }
.found li.miss i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.found .dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(23, 19, 59, .25); display: inline-block; }
@keyframes pulse { 50% { opacity: .25; } }

.mailpanel { margin-block-start: var(--space-4); }
.where { font-size: .92rem; color: var(--muted); }
.feedhelp { background: var(--violet-soft); border-radius: var(--radius-md); padding: 12px 16px; font-size: .95rem; }
.feedhelp:empty { display: none; }
.feedhelp ol { margin: 6px 0 0; padding-inline-start: 1.2rem; display: grid; gap: 2px; }
.feedhelp p { margin: 0; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; margin-block: var(--space-3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wide { width: 100%; }
.progress { height: 6px; border-radius: var(--radius-pill); background: var(--violet-soft); overflow: hidden; position: relative; margin-block-start: 10px; }
.progress i { display: block; height: 100%; width: 40%; background: var(--violet); border-radius: var(--radius-pill); animation: slide 1.2s ease-in-out infinite; }
.progress.full i { width: 100%; animation: none; }
@keyframes slide { 0% { margin-inline-start: -40%; } 100% { margin-inline-start: 100%; } }
.state { margin: 6px 0 0; min-height: 1.4em; }
.state.bad { color: var(--danger); font-weight: 500; }
.state.good { color: var(--mint); font-weight: 500; }

.counter { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; padding: 4px 14px; border-radius: var(--radius-pill); background: var(--card); border: 1px solid var(--line); color: var(--mint); font-weight: 600; justify-self: start; }
.counter.out { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.qs { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--space-4) 0 10px; }
.q { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius-pill); padding: 9px 18px; text-align: start; font-size: .98rem; max-width: 100%; overflow-wrap: anywhere; }
.q:hover { border-color: var(--violet); }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; margin: 0; }
.check input { margin-block-start: .25rem; }
.check small { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; }
.logorow { align-items: center; }
.logoname { flex: 1 1 8rem; min-width: 0; color: var(--muted); font-size: .92rem; }

/* Plans as choice cards. */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 10px; }
.plan { border: 1.5px solid var(--line); background: var(--card); border-radius: var(--radius-lg); padding: 14px; text-align: start; display: grid; gap: 4px; align-content: start; overflow-wrap: anywhere; }
.plan:hover { border-color: var(--violet); }
.plan[aria-checked="true"] { border-color: var(--violet); background: var(--violet-soft); }
.plan b { font-size: 1.05rem; font-weight: 700; }
.plan strong { font: 700 1.2rem/1.2 var(--display); letter-spacing: -0.02em; }
.plan small { color: var(--muted); line-height: 1.4; font-size: .9rem; }
.tagline { justify-self: start; font-size: .8rem; font-weight: 600; background: var(--violet); color: var(--on-violet); border-radius: var(--radius-pill); padding: 1px 12px; }

.done { display: grid; gap: 12px; justify-items: start; }
.done .check { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--mint); color: var(--mint); display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; background: var(--card); }

/* Stage: the live preview in a card frame. */
.stage { position: sticky; top: 84px; display: grid; gap: 10px; }
.stagebar { display: flex; justify-content: flex-end; }
.screen { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-stage); padding: var(--space-4); }
.shop { background: #fff; height: 34rem; border-radius: var(--radius-lg); overflow: hidden; position: relative; border: 1px solid var(--line); }
.shop iframe { position: absolute; top: 0; right: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.shop iframe.left { right: auto; left: 0; }
@media (max-width: 960px) { .shop { height: 32rem; } }
@media (max-width: 480px) { .screen { padding: 8px; } }
.stagecap { color: var(--muted); font-size: .92rem; }

/* Compact live preview for narrow screens, where the stage sits far below the list. */
.mini { display: none; margin-block-start: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; --mr: .55rem; --mbg: #5e5a78; --mfg: #fff; }
.minibar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--mbg); color: var(--mfg); transition: background .4s, color .4s; }
.minibar b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minimark { width: 26px; height: 26px; border-radius: 6px; background: rgba(255, 255, 255, .3) center / contain no-repeat; flex: none; }
.minimark.has { background-color: #fff; }
.minilauncher { display: inline-block; margin: 14px; padding: 9px 18px; border-radius: var(--mr); background: var(--mbg); color: var(--mfg); font-weight: 600; transition: background .4s, color .4s; }
@media (max-width: 960px) { .mini:not([hidden]) { display: block; } }
body.wizard .linkbtn { margin-block-start: 0; }
/* Empty launcher text = icon-only button, the same chat bubble the widget draws. */
.minilauncher:empty { padding: .55rem .7rem; }
.minilauncher:empty::before { content: ""; display: block; width: 1.3rem; height: 1.3rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
