/* Interactive product tour: Call Review */
.tour { margin-top: 56px; display: grid; gap: 28px; }
@media (min-width: 1024px) { .tour { grid-template-columns: 300px 1fr; gap: 40px; align-items: start; } }

/* step rail */
.tour__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
@media (max-width: 1023px) { .tour__steps { grid-template-columns: repeat(4, 1fr); } }
.tour__step { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; border-radius: var(--radius-xl); border: 1px solid var(--line); padding: 16px 18px; transition: border-color 200ms, background-color 200ms; }
.tour__step:hover { border-color: var(--line-hover); }
.tour__step:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tour__step[aria-current="step"] { background: var(--bg-100); border-color: var(--brand); }
.tour__step b { display: flex; align-items: baseline; gap: 10px; font-size: 16px; font-weight: 600; }
.tour__step b i { font: italic 400 24px/1 var(--font-display); color: var(--brand); }
.tour__step span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
@media (max-width: 1023px) {
  .tour__step { padding: 10px 8px; text-align: center; border-radius: var(--radius-lg); }
  .tour__step b { justify-content: center; font-size: 13px; flex-direction: column; align-items: center; gap: 4px; }
  .tour__step span { display: none; }
}
.tour__say { margin-top: 20px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 1023px) { .tour__say { margin-top: 0; } }
.tour__ctrl { display: flex; gap: 8px; margin-top: 16px; }

/* app window */
.app { border-radius: var(--radius-frame); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-frame); background: var(--bg-300); }
.app__body { display: grid; grid-template-columns: 168px 1fr; min-height: 520px; background: var(--bg-000); color: var(--ink); font-size: 14px; }
@media (max-width: 720px) { .app__body { grid-template-columns: 1fr; min-height: 0; } .app__side { display: none; } }
.app__side { border-right: 1px solid var(--line); background: var(--bg-100); padding: 14px 10px; display: grid; align-content: start; gap: 2px; }
.app__brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 14px; font-weight: 600; font-size: 14px; }
.app__brand em { font-style: normal; font-size: 10px; font-weight: 600; color: var(--brand); border: 1px solid var(--brand); border-radius: 4px; padding: 1px 4px; }
.app__nav { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.app__nav:hover { background: var(--fill-ghost); }
.app__nav[aria-current="page"] { background: var(--brand-tint); color: var(--ink); font-weight: 500; }
.app__nav:focus-visible { outline: 2px solid var(--focus); }
.app__nav svg { width: 16px; height: 16px; }
.app__main { padding: 20px; min-width: 0; }
@media (max-width: 520px) { .app__main { padding: 14px; } }
.app__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.app__h h4 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.app__h p { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.pane { display: none; animation: paneIn 400ms cubic-bezier(0.22,1,0.36,1); }
.pane.is-on { display: block; }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* shared app pieces */
.box { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-100); padding: 12px 14px; }
.box small, .lbl { display: block; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); margin-bottom: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 500; background: var(--brand-tint); color: var(--brand); white-space: nowrap; }
.pill--pos { background: var(--positive-tint); color: var(--positive); }
.pill--cau { background: rgba(138,90,0,.1); color: var(--caution); }
.pill--neg { background: rgba(179,38,30,.08); color: var(--negative); }
.btn-call { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; background: var(--positive); color: #fff; }
.btn-call:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-call svg { width: 14px; height: 14px; }
.btn-call.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(19,122,69,.45); } 70% { box-shadow: 0 0 0 12px rgba(19,122,69,0); } 100% { box-shadow: 0 0 0 0 rgba(19,122,69,0); } }
.btn-end { background: var(--negative); }
.btn-soft { all: unset; cursor: pointer; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; border: 1px solid var(--line-hover); color: var(--ink-2); }
.btn-soft:hover { background: var(--fill-ghost); } .btn-soft:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* 1 leads */
.leads { width: 100%; border-collapse: collapse; font-size: 13px; }
.leads th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.leads td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.leads td:first-child b { display: block; font-weight: 500; }
.leads td:first-child span { font-size: 12px; color: var(--ink-3); }
.leads tr.hot { background: var(--brand-tint); }
@media (max-width: 520px) { .leads .hide-sm { display: none; } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpis .box b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* 2 call */
.call { display: grid; gap: 12px; }
@media (min-width: 860px) { .call { grid-template-columns: 1fr 230px; } }
.call__who { display: flex; align-items: center; gap: 12px; }
.ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-weight: 600; flex: none; }
.call__who b { display: block; font-size: 15px; }
.call__who span { font-size: 12px; color: var(--ink-3); }
.timer { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.timer i { width: 8px; height: 8px; border-radius: 50%; background: var(--negative); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.wave { display: flex; align-items: center; gap: 3px; height: 36px; }
.wave i { flex: 1; border-radius: 2px; background: var(--brand); opacity: .75; height: 20%; transition: height 180ms; }
.wave.is-idle i { height: 12% !important; opacity: .3; }
.tx { display: grid; gap: 8px; max-height: 260px; overflow: auto; padding-right: 4px; scroll-behavior: smooth; }
.tx__line { display: grid; grid-template-columns: 38px 48px 1fr; gap: 8px; font-size: 13px; line-height: 1.5; animation: paneIn 350ms cubic-bezier(0.22,1,0.36,1); }
.tx__line time { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; }
.tx__line b { font-weight: 600; font-size: 12px; padding-top: 1px; }
.tx__line .rep { color: var(--brand); } .tx__line .cli { color: var(--caution); }
.tx__empty { color: var(--ink-3); font-size: 13px; padding: 24px 0; text-align: center; }
.hint { border-radius: var(--radius-md); border: 1px solid rgba(42,95,184,.3); background: var(--brand-tint); padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.hint small { color: var(--brand); }
.hint.is-wait { opacity: .55; border-style: dashed; }
.hint.flash { animation: flash 900ms; }
@keyframes flash { 0% { transform: scale(.96); box-shadow: 0 0 0 0 rgba(42,95,184,.4); } 60% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(42,95,184,0); } 100% { transform: none; } }
.writing { display: grid; place-items: center; gap: 14px; padding: 64px 0; text-align: center; color: var(--ink-2); }
.bar { width: 220px; height: 6px; border-radius: 999px; background: var(--fill-hover); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width 1.8s cubic-bezier(0.22,1,0.36,1); }

/* 3 review */
.rev__top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.score { display: flex; align-items: baseline; gap: 4px; font-size: 44px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.score em { font: 400 18px/1 var(--font-display); color: var(--ink-3); font-style: normal; }
.coach { flex: 1; min-width: 220px; }
.line { position: relative; }
.line svg { width: 100%; height: auto; display: block; overflow: visible; margin-top: 6px; }
.line .off { fill: rgba(179,38,30,0.08); }
.line .off-t { font-size: 10px; fill: var(--negative); }
.line .mid { stroke: var(--line-hover); stroke-dasharray: 4 4; }
.line .lbl-t { font-size: 10px; fill: var(--ink-3); }
.line .curve { fill: none; stroke: var(--brand); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.pt { cursor: pointer; outline: none; }
.pt circle { stroke: var(--bg-100); stroke-width: 3; transition: r 150ms; }
.pt:hover circle, .pt:focus-visible circle, .pt.is-on circle { r: 9; }
.pt:focus-visible circle { stroke: var(--focus); }
.pt--on circle { fill: var(--positive); } .pt--off circle { fill: var(--negative); } .pt--mid circle { fill: var(--caution); }
.moment { margin-top: 8px; font-size: 13px; line-height: 1.5; min-height: 58px; }
.moment q { display: block; color: var(--ink); font-weight: 500; }
.moment span { color: var(--ink-3); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checks button { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.checks button:hover { background: var(--fill-ghost); }
.checks button:focus-visible { outline: 2px solid var(--focus); }
.checks .mk { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1.5px solid; }
.checks .yes .mk { color: var(--positive); } .checks .no .mk { color: var(--negative); }
.checks .chev { color: var(--ink-3); transition: rotate 200ms; }
.checks button[aria-expanded="true"] .chev { rotate: 90deg; }
.checks q { display: none; grid-column: 2 / 4; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.checks button[aria-expanded="true"] q { display: block; }
.said s { color: var(--ink-3); }
.said .try { margin-top: 8px; border-radius: 8px; background: var(--positive-tint); padding: 10px 12px; }
.said .try small { color: var(--positive); }
.drill { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* 4 manager */
.team { width: 100%; border-collapse: collapse; font-size: 13px; }
.team th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.team td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.team tr { cursor: pointer; } .team tr:hover td { background: var(--fill-ghost); }
.team tr.is-on td { background: var(--brand-tint); }
.team tr:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.spark { width: 64px; height: 20px; }
.spark path { fill: none; stroke-width: 2; }
.up path { stroke: var(--positive); } .down path { stroke: var(--negative); }
@media (max-width: 520px) { .team .hide-sm { display: none; } }
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--radius-md); border: 1px solid rgba(179,38,30,.25); background: rgba(179,38,30,.05); padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.alert b { color: var(--negative); }

.tour__note { margin-top: 12px; text-align: center; font-size: 12px; color: var(--ink-4); }
@media (prefers-reduced-motion: reduce) { .pane, .tx__line, .hint.flash, .btn-call.pulse, .timer i { animation: none !important; } }
.tour [hidden] { display: none !important; }
.hint small { display: block; font-size: 11px; font-weight: 600; margin-bottom: 4px; }
.moment q, .checks q { quotes: none; }
@media (max-width: 720px) { .app__body { grid-template-columns: 1fr; min-height: 0; } .app__side { display: none; } }
