/* ============================================================
   KELPARO — product chapters
   A pinned product window beside a step list. Each step is a scene:
   a live HTML copy of a real screen in our own apps. Scroll moves
   between scenes; inside a scene, .a elements arrive in order.
   ============================================================ */

.chapter { position: relative; padding: clamp(80px, 9vw, 130px) 0 0; }
.chapter + .chapter { padding-top: clamp(40px, 5vw, 70px); }
.chapter__head { max-width: 780px; margin-bottom: clamp(36px, 4vw, 56px); }
.chapter__head .h2 { margin: 14px 0 16px; }
.chapter__stage {
  display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.6fr); gap: clamp(28px, 4vw, 64px);
  align-items: center; min-height: 100vh; min-height: 100dvh; padding: 84px 0 40px;
}

/* ---- step list ---- */
.steps { position: relative; padding-left: 22px; }
.steps::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.steps__bar { position: absolute; left: 0; top: 6px; width: 1px; height: 0; background: var(--ink); transition: height .5s var(--ease-out); }
.step { list-style: none; padding: 13px 0; cursor: pointer; }
.step__t { display: flex; gap: 12px; align-items: baseline; font-size: 16px; font-weight: 500; color: var(--ink-4); letter-spacing: -0.015em; transition: color .35s; }
.step__t b { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; color: var(--ink-4); min-width: 18px; transition: color .35s; }
.step__d { font-size: 15px; color: var(--ink-2); line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; padding-left: 30px;
  transition: max-height .5s var(--ease-out), opacity .4s, margin .4s; }
.step.is-on .step__t, .step.is-on .step__t b { color: var(--ink); }
.step.is-on .step__d { max-height: 140px; opacity: 1; margin-top: 8px; }
.step:hover .step__t { color: var(--ink-2); }

.points { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; border-top: 1px solid var(--line); padding-top: 22px; }
.points div { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.points b { display: block; font-size: 12px; font-weight: 500; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.005em; }

/* ---- the window ---- */
.win {
  position: relative; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(17,17,16,.04), 0 40px 90px -40px rgba(17,17,16,.28), 0 0 0 6px rgba(17,17,16,.025);
  overflow: hidden;
}
.win__bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.win__bar > i { width: 10px; height: 10px; border-radius: 50%; background: #e3e0d9; }
.win__title { margin-left: 10px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.win__url { margin: 0 auto; width: min(360px, 50%); height: 26px; border-radius: 7px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 10px; font-size: 12px; color: var(--ink-3); }
.win__url::before { content: ''; width: 8px; height: 9px; border: 1.5px solid var(--ink-4); border-radius: 2px 2px 3px 3px; }
.win__tag { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); background: #fff; border-radius: 5px; padding: 3px 7px; }
.win__body { position: relative; height: clamp(440px, 44vw, 560px); display: grid; grid-template-columns: 188px 1fr; }
.win__body--full { grid-template-columns: 1fr; }

/* app sidebar */
.side { border-right: 1px solid var(--line); background: var(--paper-2); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.side__org { display: flex; align-items: center; gap: 9px; padding: 6px 8px 14px; font-size: 13px; font-weight: 500; color: var(--ink); }
.side__org i { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; }
.side a { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 7px; font-size: 13px; color: var(--ink-2); transition: background .3s, color .3s; }
.side a::before { content: ''; width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--ink-4); transition: border-color .3s; }
.side a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17,17,16,.06), 0 0 0 1px var(--line); }
.side a.on::before { border-color: var(--ink); }
.side small { margin-top: auto; font-size: 11px; color: var(--ink-3); padding: 8px 9px; }

/* scenes */
.scenes { position: relative; overflow: hidden; }
.scene { position: absolute; inset: 0; padding: 22px 24px; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-out), visibility .45s; }
.scene.is-on { opacity: 1; visibility: visible; transform: none; }
.scene .a { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--d, 0) * 1s); }
.scene.is-on .a { opacity: 1; transform: none; }

/* shared UI atoms */
.ui-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ui-h h4 { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.ui-h span { font-size: 12.5px; color: var(--ink-3); }
.ui-h .ui-btn { margin-left: auto; }
.ui-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500; border: 1px solid var(--line-2); background: #fff; color: var(--ink); white-space: nowrap; transition: background .25s, transform .15s, box-shadow .25s; }
.ui-btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.ui-btn.press { transform: scale(.96); box-shadow: 0 0 0 4px var(--accent-soft); }
.ui-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 14px; }
.ui-muted { color: var(--ink-3); font-size: 12px; }
.ui-label { font-size: 11.5px; color: var(--ink-3); margin-bottom: 6px; }
.ui-input { height: 36px; border: 1px solid var(--line-2); border-radius: 9px; display: flex; align-items: center; padding: 0 11px; font-size: 13px; color: var(--ink); background: #fff; }
.ui-input.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ui-input .caret { width: 1px; height: 15px; background: var(--ink); margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 500; background: var(--paper-3); color: var(--ink-2); white-space: nowrap; }
.pill--ok { background: #e7f6ee; color: #12753f; }
.pill--blue { background: var(--accent-soft); color: var(--accent); }
.pill--warn { background: #fdf1e2; color: #a2570c; }
.pill--grey { background: var(--paper-3); color: var(--ink-3); }
.dot-ok { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi2 { border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; }
.kpi2 span { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.3; min-height: 28px; }
.kpi2 b { font-size: 21px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 11.5px; padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.tbl td:first-child { color: var(--ink); font-weight: 500; }
.av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 600; color: #fff; background: var(--c, #8b8880); margin-right: 8px; vertical-align: middle; }
.toast { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; box-shadow: 0 18px 40px -16px rgba(17,17,16,.6); }
.wave { display: flex; gap: 3px; align-items: center; height: 28px; }
.wave i { width: 3px; border-radius: 2px; background: var(--ink); height: 30%; }
.scene.is-on .wave i { animation: wv 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -0.09s); }
@keyframes wv { 0%,100% { height: 22%; } 50% { height: 100%; } }
.ring2 { position: relative; width: 96px; height: 96px; }
.ring2 svg { transform: rotate(-90deg); }
.ring2 circle { fill: none; stroke-width: 8; }
.ring2 .bg { stroke: var(--paper-3); }
.ring2 .fg { stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 251; stroke-dashoffset: 251; transition: stroke-dashoffset 1.6s var(--ease-out) .3s; }
.scene.is-on .ring2 .fg { stroke-dashoffset: var(--off, 98); }
.ring2 b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.bar2 { height: 6px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.bar2 i { display: block; height: 100%; width: 0; background: var(--c, var(--ink)); border-radius: 3px; transition: width 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 1s + .2s); }
.scene.is-on .bar2 i { width: var(--w); }
.hl { background: #fff4c2; border-radius: 3px; padding: 0 2px; }
.hl--rival { background: #ffe1d6; }
.src { color: var(--accent); text-decoration: underline; text-decoration-color: #c9d4ff; text-underline-offset: 2px; }

/* the soft cursor */
.cursor { position: absolute; z-index: 20; left: 0; top: 0; width: 18px; height: 18px; pointer-events: none;
  transition: transform .9s var(--ease-out), opacity .3s; opacity: 0; }
.cursor svg { width: 18px; height: 18px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.cursor.click::after { content: ''; position: absolute; left: -9px; top: -9px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent); animation: clk .5s var(--ease-out) forwards; }
@keyframes clk { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.1); opacity: 0; } }

/* chapter-specific layouts */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.role { border: 1px solid var(--line); border-radius: 12px; padding: 14px; transition: border-color .3s, box-shadow .3s; }
.role i { width: 30px; height: 30px; border-radius: 8px; background: var(--paper-3); display: grid; place-items: center; font-style: normal; font-size: 14px; margin-bottom: 12px; }
.role b { display: block; font-size: 13.5px; font-weight: 500; }
.role span { font-size: 12px; color: var(--ink-3); line-height: 1.4; display: block; margin-top: 3px; }
.role.pick { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,16,.06); }
.wiz { display: grid; grid-template-columns: 170px 1fr; gap: 18px; }
.wiz__steps li { list-style: none; display: flex; gap: 9px; align-items: center; font-size: 12.5px; color: var(--ink-3); padding: 7px 0; }
.wiz__steps li::before { content: ''; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.wiz__steps li.ok { color: var(--ink-2); }
.wiz__steps li.ok::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.wiz__steps li.now { color: var(--ink); font-weight: 500; }
.wiz__steps li.now::before { border-color: var(--accent); }
.rules2 { display: grid; gap: 8px; margin-top: 12px; }
.rule2 { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.flow4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 6px; }
.flow4 > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 150px; transition: border-color .4s, background .4s; }
.flow4 h5 { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-bottom: 10px; display: flex; justify-content: space-between; }
.flow4 .lit { border-color: var(--ink); background: var(--paper-2); }
.flow4 .lit h5 { color: var(--ink); }
.callcard { font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.inbox { display: grid; grid-template-columns: 200px 1fr; height: 100%; margin: -22px -24px; }
.inbox__list { border-right: 1px solid var(--line); padding: 14px 0; }
.tabs { display: flex; gap: 4px; padding: 0 12px 12px; flex-wrap: wrap; }
.tabs span { font-size: 11.5px; padding: 4px 8px; border-radius: 6px; color: var(--ink-3); }
.tabs span.on { background: var(--paper-3); color: var(--ink); }
.tabs span.off { color: var(--ink-4); text-decoration: line-through; text-decoration-color: transparent; }
.thread-row { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.thread-row b { display: block; font-size: 12.5px; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.thread-row.on { background: var(--paper-2); box-shadow: inset 2px 0 0 var(--ink); }
.inbox__main { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 78%; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; }
.bub--in { background: var(--paper-3); color: var(--ink); border-bottom-left-radius: 4px; }
.bub--out { background: var(--ink); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bub small { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.summary { border: 1px solid #d8e0ff; background: var(--accent-soft); border-radius: 11px; padding: 11px 12px; font-size: 12.5px; color: #24366f; }
.summary b { font-weight: 500; color: var(--accent); display: block; font-size: 11.5px; margin-bottom: 3px; }

/* store + chat (concierge) */
.store { display: grid; grid-template-columns: 1fr 300px; height: 100%; margin: -22px -24px; }
.store__page { padding: 22px; background: #fbf8f4; }
.store__nav { display: flex; gap: 14px; font-size: 11.5px; color: #8a7a6a; margin-bottom: 18px; }
.store__nav b { color: #4a3426; font-weight: 600; letter-spacing: .1em; margin-right: auto; }
.plates { height: 190px; border-radius: 14px; background: radial-gradient(circle at 35% 45%, #efe6da 0 28%, #d9c7b2 29% 31%, #efe6da 32% 40%, transparent 41%), radial-gradient(circle at 66% 55%, #e8dccb 0 22%, #cfb89e 23% 25%, #e8dccb 26% 33%, transparent 34%), #f3ece2; }
.store__title { margin-top: 14px; font-size: 16px; font-weight: 500; color: #3b2a1f; }
.store__price { font-size: 13px; color: #8a7a6a; margin-top: 3px; }
.chat { border-left: 1px solid var(--line); display: flex; flex-direction: column; background: #fff; }
.chat__head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; background: var(--brand, var(--ink)); color: #fff; font-size: 13px; font-weight: 500; transition: background .6s; }
.chat__head i { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-style: normal; font-size: 11px; }
.chat__body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.chat .bub--out { background: var(--brand, var(--ink)); }
.pcard { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pcard div { border: 1px solid var(--line); border-radius: 10px; padding: 8px; font-size: 11.5px; color: var(--ink-2); }
.pcard div::before { content: ''; display: block; height: 52px; border-radius: 7px; margin-bottom: 7px; background: radial-gradient(circle at 50% 55%, #efe6da 0 30%, #d9c7b2 31% 34%, #efe6da 35% 44%, transparent 45%), #f6f0e8; }
.pcard b { display: block; color: var(--ink); font-weight: 500; }
.track3 { display: flex; justify-content: space-between; position: relative; margin: 12px 4px 6px; font-size: 10.5px; color: var(--ink-3); }
.track3::before { content: ''; position: absolute; left: 4px; right: 4px; top: 4px; height: 2px; background: var(--paper-3); }
.track3::after { content: ''; position: absolute; left: 4px; top: 4px; height: 2px; width: 0; background: var(--brand, var(--ink)); transition: width 1.6s var(--ease-out) .5s; }
.scene.is-on .track3::after { width: 62%; }
.track3 span { position: relative; padding-top: 14px; }
.track3 span::before { content: ''; position: absolute; top: 0; left: 50%; margin-left: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); }
.track3 span.done::before { border-color: var(--brand, var(--ink)); background: var(--brand, var(--ink)); }
.opt { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; }
.opt::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.opt.sel { border-color: var(--brand, var(--ink)); color: var(--ink); }
.opt.sel::before { border: 4px solid var(--brand, var(--ink)); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slots span { text-align: center; font-size: 11.5px; padding: 7px 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); }
.slots span.sel { background: var(--brand, var(--ink)); border-color: var(--brand, var(--ink)); color: #fff; }
.voice-sheet { border-radius: 14px; background: var(--ink); color: #fff; padding: 14px; display: flex; gap: 12px; align-items: center; }
.voice-sheet .wave i { background: #fff; }
.studio { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.mini-widget { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.swatches { display: flex; gap: 6px; margin-top: 10px; }
.swatches i { width: 22px; height: 22px; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.pages-read li { list-style: none; display: flex; justify-content: space-between; font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }

/* outbound + visibility specifics */
.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.filters .ui-input { height: 30px; font-size: 12px; }
.tier { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: 10.5px; font-weight: 600; background: var(--ink); color: #fff; }
.tier--b { background: var(--paper-3); color: var(--ink-2); }
.cmp { display: grid; grid-template-columns: 1fr 230px; gap: 16px; }
.email { border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.email p + p { margin-top: 8px; }
.claims li { list-style: none; font-size: 12px; color: var(--ink-2); padding: 9px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.checks2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 12px 0; }
.checks2 div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); transition: color .3s; }
.checks2 div::before { content: ''; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); flex: none; transition: all .3s; }
.checks2 div.ok { color: var(--ink); }
.checks2 div.ok::before { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px #fff; }
.verdict { display: flex; align-items: center; justify-content: space-between; border-radius: 12px; padding: 12px 14px; background: var(--paper-2); border: 1px solid var(--line); font-size: 13px; }
.verdict.ok { background: #e7f6ee; border-color: #c6ead6; color: #0e5f33; }
.fleet { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.box3 { border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 12.5px; }
.box3 h5 { font-size: 12.5px; font-weight: 500; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.ibx { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 12px; }
.ibx .bar2 { width: 70px; }
.dns { display: flex; gap: 6px; margin-top: 10px; }
.remind { display: flex; gap: 0; margin: 14px 0; }
.remind div { flex: 1; text-align: center; font-size: 11px; color: var(--ink-3); position: relative; padding-top: 18px; }
.remind div::before { content: ''; position: absolute; top: 0; left: 50%; margin-left: -6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; transition: all .3s; }
.remind div::after { content: ''; position: absolute; top: 5px; left: calc(50% + 8px); right: calc(-50% + 8px); height: 2px; background: var(--line); }
.remind div:last-child::after { display: none; }
.remind div.ok { color: var(--ink); }
.remind div.ok::before { background: var(--ink); border-color: var(--ink); }
.stagebar { display: flex; gap: 6px; }
.stagebar span { flex: 1; text-align: center; font-size: 12px; padding: 9px 0; border-radius: 9px; background: var(--paper-3); color: var(--ink-3); transition: all .4s; }
.stagebar span.on { background: var(--ink); color: #fff; }
.ai { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.ai__q { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.ai__q span { background: var(--paper-3); border-radius: 14px; padding: 9px 13px; font-size: 13px; max-width: 80%; }
.ai__a { font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.ai__a ol { padding-left: 18px; margin-top: 6px; }
.ai__a li { margin: 3px 0; }
.serp { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.serp__q { height: 34px; border-radius: 999px; border: 1px solid var(--line-2); display: flex; align-items: center; padding: 0 14px; font-size: 13px; margin-bottom: 12px; }
.mappack { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; margin-bottom: 10px; }
.map { border-radius: 10px; background: repeating-linear-gradient(35deg, #eef1ea 0 12px, #e6eae1 12px 24px); position: relative; min-height: 120px; }
.map i { position: absolute; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #d9534f; }
.res { font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.res b { display: block; color: #1a0dab; font-weight: 500; font-size: 12.5px; }
.dem td:last-child, .dem th:last-child { text-align: right; }
.stake { margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; padding: 14px; border-radius: 12px; background: var(--ink); color: #fff; }
.stake b { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.fixrow { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.fixrow b { color: var(--ink); font-weight: 500; display: block; }
.fixrow em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.doc { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.doc h6 { font-size: 18px; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 10px; color: var(--ink); }
.doc p { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 8px; }
.line { height: 8px; border-radius: 4px; background: var(--paper-3); margin: 7px 0; }

/* ---- phones: no pinning, tabs that play while visible ---- */
@media (max-width: 900px) {
  .chapter__stage { grid-template-columns: 1fr; min-height: 0; padding: 0; }
  .steps { padding-left: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; order: 2; }
  .steps::before, .steps__bar { display: none; }
  .step { flex: none; padding: 0; }
  .step__t { font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
  .step.is-on .step__t { background: var(--ink); color: #fff; border-color: var(--ink); }
  .step.is-on .step__t b { color: #fff; }
  .step__d { display: none; }
  .chapter__caption { order: 3; font-size: 15px; color: var(--ink-2); min-height: 48px; margin-top: 4px; }
  .points { order: 4; grid-template-columns: 1fr; }
  .win { order: 1; }
  .win__body { grid-template-columns: 1fr; height: 470px; }
  .side { display: none; }
  .scene { padding: 16px; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpis .kpi2:nth-child(n+4) { display: none; }
  .roles { grid-template-columns: 1fr 1fr; }
  .roles .role:nth-child(n+5) { display: none; }
  .wiz, .studio, .cmp, .mappack { grid-template-columns: 1fr; }
  .wiz__steps, .studio > :last-child, .cmp > :last-child { display: none; }
  .flow4 { grid-template-columns: 1fr 1fr; }
  .inbox { grid-template-columns: 1fr; margin: -16px; }
  .inbox__list { display: none; }
  .store { grid-template-columns: 1fr; margin: -16px; }
  .store__page { display: none; }
  .fleet { grid-template-columns: 1fr; }
  .fleet > :last-child { display: none; }
  .tbl th:nth-child(n+4), .tbl td:nth-child(n+4) { display: none; }
  .win__url { display: none; }
}
@media (min-width: 901px) { .chapter__caption { display: none; } }

/* heading size and the gap above the pinned stage */
.chapter__head { max-width: 860px; margin-bottom: 0; }
.chapter__head .h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.035em; }
.chapter__stage { padding: 76px 0 28px; align-items: center; }
@media (min-width: 901px) { .chapter { padding-top: clamp(70px, 7vw, 110px); } }

/* grid items size to their content by default; the window must not */
.chapter__stage > *, .win, .win__body, .scenes { min-width: 0; max-width: 100%; }
@media (max-width: 900px) {
  .chapter__stage { grid-template-columns: minmax(0, 1fr); }
  .scene { overflow: hidden; }
  .tbl td, .tbl th { white-space: normal; }
  .v3-hero__win { overflow: hidden; }
}
@media (max-width: 900px) { .chapter__head .h2 { font-size: 28px; } }
.ui-h .ui-btn + .ui-btn { margin-left: 0; }
@media (max-width: 900px) { .ui-h { flex-wrap: wrap; } .ui-h .ui-btn { margin-left: 0; } }
