/* ===== Interactive pieces (same look as the rest of the page) ===== */
button { font: inherit; }

/* ---------- Hero: cost slider and live branch ---------- */
.flow { height: 510px; }
.cost-ctl { position: absolute; right: 18px; left: 18px; top: 300px; display: grid; grid-template-columns: auto 1fr 96px; gap: 14px; align-items: center; color: var(--muted); }
.cost-ctl b { color: var(--text); font-weight: 500; text-align: left; font-variant-numeric: tabular-nums; }
.cost-ctl input { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; outline: none; direction: rtl;
  background: linear-gradient(270deg, var(--lime) var(--p, 70%), rgba(255, 255, 255, 0.12) var(--p, 70%)); }
.cost-ctl input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(214, 178, 106, 0.18); cursor: grab; }
.cost-ctl input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--lime); cursor: grab; }
.flow-lines path { transition: stroke 0.3s; }
.flow-lines path.go { stroke: var(--lime); stroke-dasharray: 6 6; animation: dash 1s linear infinite; }
.flow-lines path.off { stroke: var(--line); animation: none; }
.node { transition: border-color 0.3s, box-shadow 0.3s, opacity 0.3s; }
.node.dim { opacity: 0.45; }
.node.lit { border-color: rgba(214, 178, 106, 0.55); box-shadow: 0 0 0 4px rgba(214, 178, 106, 0.06), 0 10px 40px rgba(214, 178, 106, 0.14); }
.n-ask { min-width: 160px; }
.ask-btn { margin-top: 8px; width: 100%; height: 28px; }
.n-ask.done .ask-btn, .n-ask.dim .ask-btn { display: none; }
.n-ask.done small { color: #8fd3c1; }

/* ---------- Approval card ---------- */
.ap-result { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 8px; font-size: 13px; animation: pop 0.4s ease both; }
.ap-result.ok { background: rgba(47, 165, 143, 0.18); color: #8fd3c1; }
.ap-result.hold { background: rgba(255, 255, 255, 0.06); color: var(--muted); }

/* ---------- Building: hover a floor ---------- */
#tower .floor { cursor: pointer; }
#tower .floor.hover .left { fill: #12685c; }
#tower .floor.hover .right { fill: #0d4b42; }
#tower .floor.hover .top { stroke: #f3e2bd; }
#tower .floor.hover .win { stroke: #f3e2bd; }
.floor-tip {
  position: absolute; z-index: 3; pointer-events: none; min-width: 190px; padding: 12px 14px; border-radius: 12px;
  background: rgba(10, 18, 16, 0.94); border: 1px solid rgba(214, 178, 106, 0.4); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -110%); font-size: 13px;
}
.floor-tip b { display: block; font-size: 15px; }
.floor-tip .ft-row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); margin-top: 4px; }
.floor-tip .ft-row span:last-child { color: var(--text); }
.floor-tip .ft-wo { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: #f0a27f; }
.floor-tip .ft-ok { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: #8fd3c1; }
.tower-hint { position: absolute; bottom: 4%; left: 0; color: var(--muted); font-size: 12px; }

/* ---------- Try it ---------- */
.try { display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: center; }
.try-copy h2 { margin: 0 0 16px; }
.try-copy > p { max-width: 460px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.chip-btn {
  padding: 9px 16px; border-radius: 999px; cursor: pointer; color: var(--text); font-size: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.chip-btn:hover { border-color: rgba(214, 178, 106, 0.6); background: rgba(214, 178, 106, 0.08); transform: translateY(-1px); }
.chip-btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.mini-dash { padding: 18px; position: relative; }
.md-head { display: flex; justify-content: space-between; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.md-head span:last-child { color: var(--lime); }
.md-list { list-style: none; display: grid; gap: 8px; margin-top: 12px; max-height: 236px; overflow: hidden; }
.md-empty { padding: 14px 0; font-size: 14px; }
.md-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); animation: pop 0.45s cubic-bezier(.2, 1.2, .3, 1) both; }
.md-item.new { border-color: rgba(214, 178, 106, 0.5); }
.md-id { color: var(--muted); font-size: 12px; }
.md-item b { display: block; font-weight: 500; font-size: 14px; }
.md-item small { color: var(--muted); font-size: 12px; }
.prio { padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.prio.p1 { background: #c2412d; color: #fff; }
.prio.p2 { background: #e07a4f; color: #fff; }
.prio.p3 { background: rgba(255, 255, 255, 0.1); color: var(--text); }

.phone-try { height: 600px; }
.phone-try .wa-body { overflow-y: auto; scrollbar-width: none; }
.phone-try .wa-body::-webkit-scrollbar { display: none; }
.phone-try .msg-w { display: block; }
.phone-try .msg-w.typing { display: flex; gap: 4px; }
.try-form { margin: 8px 6px 6px; }
.try-form input {
  flex: 1; min-width: 0; padding: 10px 16px; border-radius: 22px; border: 1px solid transparent; outline: none;
  background: #16211f; color: var(--text); font: 13.5px var(--sans);
}
.try-form input:focus { border-color: rgba(214, 178, 106, 0.5); }
.try-form button { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: #0f5a4e; cursor: pointer; display: grid; place-items: center; }
.try-form button span { width: 0; height: 0; border-right: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-right: 3px; }
.try-form button:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 960px) {
  .try { grid-template-columns: 1fr; justify-items: center; gap: 40px; }
  .try-copy { width: 100%; }
  .phone-try { width: min(340px, 92vw); height: 560px; }
}
@media (max-width: 600px) {
  .flow { height: 630px; }
  .cost-ctl { top: 400px; grid-template-columns: 1fr 86px; }
  .cost-ctl span { grid-column: 1 / -1; }
  .floor-tip { transform: translate(-50%, -115%); min-width: 170px; }
}
.try-form button span { flex: none; padding: 0; border-radius: 0; background: none; }
