/* B2B DEMO. Tamsus iššūkio v2 stilius, specialisto spalva per --acc ir --acc2. */
:root {
  --bg: #000; --card: #1c1c1e; --card2: #2c2c2e; --line: #3a3a3c; --ink: #fff; --muted: #8e8e93;
  --acc: #8DBF4A; --acc2: #DDEFA0; --acc-ink: #1a1406; --warn: #FFD43B; --bad: #ff6b5a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro", Roboto, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
h3 { font-size: 1rem; font-weight: 700; }
a { color: var(--acc2); }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 560px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom)); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.stack > * + * { margin-top: 12px; }

/* DEMO žymė */
.demo { position: fixed; top: calc(8px + env(safe-area-inset-top)); right: 8px; z-index: 50; background: var(--warn); color: #1a1406; font-size: .68rem; font-weight: 900; letter-spacing: .14em; padding: 3px 8px; border-radius: 999px; pointer-events: none; }

/* Kortelės */
.card { background: var(--card); border-radius: 18px; padding: 16px; margin: 0 0 12px; }
.card.line { border: 2px solid var(--acc); }
.card h2 + p, .card h3 + p { margin-top: 4px; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin-bottom: 6px; }

/* Mygtukai */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 800; font-size: 1rem; background: var(--acc); color: var(--acc-ink); cursor: pointer; text-decoration: none; }
.btn.alt { background: var(--card2); color: #fff; }
.btn.ghost { background: transparent; color: var(--acc2); border: 1px solid var(--line); }
.btn.sm { width: auto; min-height: 38px; padding: 8px 14px; font-size: .9rem; border-radius: 12px; }
.btn:disabled { opacity: .45; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; }
.row > .btn { flex: 1; }

/* Laukai */
label.f { display: block; margin: 0 0 14px; }
label.f > span { display: block; font-size: .85rem; font-weight: 700; color: #d1d1d6; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], textarea, select {
  width: 100%; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 46px; outline: none;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--acc); }
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* Žymės (chips) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: #fff; font-weight: 600; font-size: .92rem; cursor: pointer; }
.chip[aria-pressed=true] { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.chip.add { background: transparent; color: var(--acc2); border-style: dashed; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--card2); font-size: .8rem; font-weight: 600; }

/* Vedlio antraštė ir eiga */
.wiz-top { position: sticky; top: 0; z-index: 10; background: rgba(0,0,0,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin: 0 -16px 14px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
.wiz-top .row { justify-content: space-between; }
.prog { display: flex; gap: 4px; margin-top: 10px; }
.prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--card2); }
.prog i.on { background: var(--acc); }
.stepno { font-size: .8rem; font-weight: 700; color: var(--muted); }
.back { background: none; border: 0; color: var(--acc2); font-weight: 700; padding: 6px 0; cursor: pointer; min-height: 40px; }
.wiz-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(0,0,0,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #1c1c1e; }
.wiz-foot .in { max-width: 560px; margin: 0 auto; }
.saved { font-size: .75rem; color: var(--muted); text-align: center; margin-top: 6px; min-height: 1em; }

/* Įkėlimas */
.drop { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; cursor: pointer; background: var(--card); }
.drop input { display: none; }
.drop img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--card2); }
.drop img.sq { border-radius: 14px; }
.ph { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); color: var(--muted); font-weight: 800; flex: none; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--card2); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x { background: var(--card2); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; flex: none; }

/* Parametrai (checkbox kortelės) */
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border-radius: 14px; margin-bottom: 8px; cursor: pointer; border: 2px solid transparent; }
.opt[aria-checked=true] { border-color: var(--acc); }
.opt .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.opt[aria-checked=true] .box { background: var(--acc); border-color: var(--acc); }
.opt[aria-checked=true] .box::after { content: ""; width: 10px; height: 6px; border: 3px solid var(--acc-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt .grow { flex: 1; }
.opt small { display: block; color: var(--muted); font-size: .8rem; }

/* Programų kortelės */
.prg { background: var(--card); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.prg .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prg .grid label.f { margin: 0; }
.seg { display: flex; background: var(--card2); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: #fff; font-weight: 700; cursor: pointer; font-size: .85rem; }
.seg button[aria-checked=true] { background: var(--acc); color: var(--acc-ink); }
.prg .sum { margin-top: 10px; font-size: .85rem; color: var(--muted); }

/* Spalvos */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; }
.sw[aria-checked=true] { border-color: #fff; }
.pick { display: flex; align-items: center; gap: 10px; }
.pick input[type=color] { width: 52px; height: 44px; border: 0; background: none; padding: 0; }

/* Įvertinimas (gilumas) */
.meter { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--acc); width: 0; transition: width .3s; }

/* Verslo plano santrauka */
.canvas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.canvas .c { background: var(--card2); border-radius: 14px; padding: 12px; font-size: .88rem; }
.canvas .c.w { grid-column: 1 / -1; }
.canvas .c b { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); margin-bottom: 4px; }
.big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
input[type=range] { width: 100%; accent-color: var(--acc); }
.kv { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; }
.kv + .kv { border-top: 1px solid var(--card2); }

/* Upsell */
.upsell { background: linear-gradient(0deg, var(--card), var(--card)); border: 1px solid var(--warn); }
.upsell .eyebrow { color: var(--warn); }

/* Erdvė */
.hero { display: flex; gap: 14px; align-items: center; margin: 8px 0 14px; }
.hero img.logo { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; background: var(--card2); }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--card2); flex: none; }
.phone { border: 8px solid #2c2c2e; border-radius: 34px; padding: 14px 12px; background: #000; max-width: 320px; margin: 0 auto; }
.task { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 12px; margin-bottom: 8px; }
.task .ic { width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--acc) 22%, #1c1c1e); display: grid; place-items: center; flex: none; }
.task .ic img { width: 24px; height: 24px; }
.task .ring { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); margin-left: auto; flex: none; }
.task.done .ring { background: var(--acc); border-color: var(--acc); }

/* Pradžia */
.role { display: block; text-decoration: none; color: inherit; }
.role .card { display: flex; gap: 14px; align-items: center; }
.role .n { width: 40px; height: 40px; border-radius: 12px; background: var(--card2); display: grid; place-items: center; font-weight: 800; color: var(--acc); flex: none; }
.msg { margin-top: 10px; padding: 10px 12px; border: 2px solid var(--warn); border-radius: 12px; font-size: .9rem; }

/* Specialisto panelė */
.ptabs { position: sticky; top: 0; z-index: 10; background: rgba(0,0,0,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin: 0 -16px 14px; padding: 8px 16px; }
.ptabs .seg button { font-size: .78rem; white-space: nowrap; padding: 0 4px; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--warn); color: #1a1406; font-size: .68rem; font-weight: 900; margin-left: 4px; }
.dots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: #2c2c2e; flex: none; }
.dot.f { background: var(--acc); }
.dot.p { background: linear-gradient(90deg, var(--acc) 50%, #2c2c2e 50%); }
.dot.n { background: #2c2c2e; box-shadow: inset 0 0 0 2px #5a2a24; }
.dot.a { background: #5a8f2a; box-shadow: inset 0 0 0 3px #e6efb0; }
.dot.t { background: transparent; box-shadow: inset 0 0 0 2px var(--acc2); }
.dot.wk { margin-right: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .75rem; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .dot { width: 11px; height: 11px; }
.sig { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #3a1d19; color: #ff9b8f; }
.sig.ok { background: #1d3319; color: #a9df8a; }
.sig.ai { background: #3a3214; color: var(--warn); }
.crow { display: block; width: 100%; text-align: left; border: 0; color: inherit; cursor: pointer; font: inherit; }
.crow .row { justify-content: space-between; }
.trow { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--card2); }
.trow:last-child { border-bottom: 0; }
.trow .ticon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--acc) 22%, #1c1c1e); color: var(--acc); flex: none; }
.trow .ticon span { width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.trow .grow { flex: 1; min-width: 0; }
.trow .why { font-size: .78rem; color: var(--warn); margin-top: 4px; }
.trow.sugg { background: color-mix(in srgb, var(--warn) 7%, transparent); margin: 0 -16px; padding: 12px 16px; }
.trow.rej { opacity: .45; }
.acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.blood { width: 100%; border-collapse: collapse; font-size: .88rem; }
.blood td { padding: 7px 0; border-bottom: 1px solid var(--card2); }
.blood td:nth-child(2) { text-align: right; font-weight: 700; white-space: nowrap; }
.blood td:last-child { text-align: right; color: var(--muted); font-size: .78rem; padding-left: 8px; }
.blood .hi { color: #ff9b8f; } .blood .lo { color: #8fc7ff; }
.frame { width: 100%; max-width: 340px; height: 680px; margin: 0 auto; display: block; border: 8px solid #2c2c2e; border-radius: 38px; background: #000; }
