/* Taksi Hisob demo page: night asphalt, taxi yellow. The phone frame and the chat are in phone.css, the Mini App in
   webapp/app.css; this file is the page around them, the story and the «O'zingiz sinab ko'ring» box. */
:root { --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --sun: #f6c21a; --sun-ink: #231a00; --good: #58c98b; --weak: #f08a5d; }
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100dvh; overflow-x: hidden; color: #f1eee6; font: 15px/1.45 var(--font);
  background: radial-gradient(80% 50% at 12% 0%, #2a2d36 0%, transparent 60%), radial-gradient(60% 45% at 95% 20%, #2b2613 0%, transparent 55%), #0e1014;
}
button { cursor: pointer; font-family: inherit; }
.demo-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 20px; background: rgba(12, 13, 17, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.demo-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.2px; }
.demo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #1e2128; }
.demo-mark svg { width: 22px; height: 22px; }
.demo-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #cfcabb; }
.demo-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(246, 194, 26, .22); }
.demo-date { font-size: 13px; color: #cfcabb; font-variant-numeric: tabular-nums; }
.demo-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.demo-btn { border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; border-radius: 10px; padding: 6px 12px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.demo-btn.solid { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); }
.demo-btn:hover { background: rgba(255, 255, 255, .08); } .demo-btn.solid:hover { filter: brightness(1.06); background: var(--sun); }
.demo-btn:disabled { opacity: .5; cursor: default; }
.demo-intro { max-width: 980px; margin: 0 auto; padding: 24px 24px 4px; display: grid; gap: 8px; text-align: center; }
.demo-intro h1 { margin: 0; font-size: 33px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.demo-intro p { margin: 0 auto; max-width: 800px; color: #b9b5a8; text-wrap: pretty; }
.story { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 16px 16px 0; max-width: 1400px; margin: 0 auto; }
.story-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #f1eee6; border-radius: 999px; padding: 7px 14px 7px 8px; font-weight: 600; font-size: 13.5px; text-align: left; }
.story-btn b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); font-size: 12px; }
.story-btn.done { color: #a5a193; } .story-btn.done b { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); }
.story-btn.next, .story-btn.now { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(246, 194, 26, .18); }
.story-btn:disabled { opacity: .6; cursor: default; }
.story-live { position: sticky; top: 53px; z-index: 35; padding: 12px 16px 0; display: grid; gap: 8px; pointer-events: none; }
.story-live > * { pointer-events: auto; }
.story-cap { width: 100%; max-width: 940px; margin: 0 auto; padding: 10px 16px; border-radius: 12px; background: #2a2616; border: 1px solid rgba(246, 194, 26, .45); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8); color: #fbeebb; text-align: center; font-size: 14.5px; min-height: 44px; text-wrap: pretty; }
.who-switch { display: none; }
.demo-stage { display: flex; justify-content: center; align-items: flex-start; gap: 26px 34px; padding: 22px 18px 40px; max-width: 1480px; margin: 0 auto; }
.side { display: grid; justify-items: center; gap: 12px; min-width: 0; }
.side-label { display: flex; align-items: baseline; gap: 8px; font-size: 15px; } .side-label b { font-weight: 800; font-size: 18px; } .side-label span { color: #a5a193; }
.pane.app { background: #14161b; }
.tx-app .pressing { outline: 3px solid var(--sun); outline-offset: 2px; }
/* the chat in the house colours */
.tg-ava { background: #1e2128; } .ptab.on { background: #f3e7b5; color: #231a00; } .tg-input button { background: #1e2128; color: var(--sun); } .tg-input input:focus { border-color: #c79a00; }
.tg-scroll { background-color: #dcd8cb; } .kb-btn { background: rgba(30, 33, 40, .5); } .kb-btn:hover { background: rgba(30, 33, 40, .66); } .kb-btn.pressing { background: var(--sun); color: var(--sun-ink); }
.bubble i { color: #1c5f8a; font-style: normal; } .msg.me .bubble { background: #fbeebb; }
.phone.ring { box-shadow: 0 0 0 1.5px #5d6168, 0 0 0 3.5px #24262a, 0 0 0 4.5px #6e737b, inset 0 0 0 1px #1c1d20, 0 0 0 14px rgba(246, 194, 26, .45), 0 50px 90px -35px rgba(0, 0, 0, .7); }

.try { flex: 1 1 640px; max-width: 900px; justify-items: stretch; padding-top: 36px; }
.try-card { background: #f6f2e6; color: #1b1d22; border-radius: 22px; padding: 22px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); display: grid; gap: 12px; border-top: 6px solid var(--sun); }
.try-card, .try-card > *, .try-cols > * { min-width: 0; }
.try-card h2 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.01em; } .try-card h3 { margin: 6px 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; color: #6c6a60; }
.try-lead { margin: 0; color: #5c5a52; font-size: 14px; }
.try-card textarea { width: 100%; resize: vertical; min-height: 78px; border: 2px solid #d8d2bf; border-radius: 14px; padding: 12px 14px; font: 16px/1.4 var(--font); color: #1b1d22; background: #fff; }
.try-card textarea:focus { outline: none; border-color: #c79a00; }
.try-opts { display: flex; gap: 10px; flex-wrap: wrap; } .try-opts label { display: grid; gap: 3px; font-size: 12px; color: #6c6a60; flex: 1 1 110px; }
.try-opts select { border: 1.5px solid #d8d2bf; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 15px; background: #fff; color: #1b1d22; }
.try-examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .try-ex-label { font-size: 12.5px; color: #6c6a60; }
.try-ex { border: 1px solid #d8d2bf; background: #fffdf5; color: #3b3a34; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; text-align: left; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.try-ex:hover { border-color: #c79a00; }
.try-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.try-read { display: grid; gap: 3px; font-size: 14px; } .try-read p { margin: 0; white-space: pre-wrap; } .try-read .in b { color: #14683f; } .try-read .out b { color: #a2431b; }
.try-read .etc { color: #5c5a52; } .try-read .none { color: #8a877a; font-style: italic; } .try-read i { font-style: normal; color: #1c5f8a; }
.try-sum { background: #1b1d22; color: #f1eee6; border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.try-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; } .try-row span { color: #a5a193; font-size: 13.5px; } .try-row b { white-space: nowrap; }
.try-row.top b { color: var(--sun); } .try-row.net { border-top: 1px solid #343842; padding-top: 6px; } .try-row.net b { color: var(--good); font-size: 21px; } .try-row.net span { color: #f1eee6; font-weight: 650; }
.try-row.rate b { color: var(--sun); }
.try-map { background: #1b1d22; border-radius: 16px; padding: 12px; display: grid; gap: 8px; color: #f1eee6; margin-top: 6px; }
.try-map .tx-heat { --dim: #a5a193; } .try-map .tx-hh, .try-map .tx-wd { color: #a5a193; } .try-map .tx-cell { display: block; }
.try-map .tx-cell.mine { box-shadow: inset 0 0 0 2px #fff; } .try-map .tx-cell.off.mine { background: #3a3520; }
.try-yours { margin: 0; font-weight: 700; color: var(--sun); font-size: 14px; } .try-best { margin: 0; font-size: 13px; color: #a5a193; }
.demo-foot { text-align: center; color: #a5a193; font-size: 12.5px; padding: 0 20px 34px; max-width: 980px; margin: 0 auto; }

@media (max-width: 1180px) { .try-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  body { display: flex; flex-direction: column; }
  body > * { width: 100%; min-width: 0; max-width: 100%; margin-left: 0; margin-right: 0; flex: none; }
  .demo-bar { position: static; padding: 8px 12px; gap: 8px; order: -3; }
  .demo-badge { display: none; }
  .demo-tools { margin-left: 0; width: 100%; gap: 6px; }
  .demo-btn { padding: 5px 9px; font-size: 12.5px; }
  .demo-intro { padding: 14px 16px 0; order: -2; } .demo-intro h1 { font-size: 23px; } .demo-intro p { font-size: 14px; }
  .demo-foot { order: -1; padding: 8px 16px 0; font-size: 12px; text-align: left; max-width: none; margin: 0; }
  .story { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding: 10px 12px 2px; gap: 6px; }
  .story::-webkit-scrollbar { display: none; }
  .story-btn { flex: none; font-size: 12.5px; padding: 6px 10px 6px 6px; }
  .story-live { top: 0; padding: 8px 0 0; gap: 6px; background: #0c0d11; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .7); }
  .story-cap { margin: 0 10px; width: auto; font-size: 13px; text-align: left; padding: 8px 12px; min-height: 0; }
  .who-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); background: #0c0d11; }
  .who-switch button { border: 0; background: transparent; padding: 8px 4px; border-radius: 9px; font-weight: 700; color: #a5a193; font-size: 13px; }
  .who-switch button.on { background: var(--sun); color: var(--sun-ink); }
  .demo-stage { display: block; padding: 0; }
  .side { display: none; } .side.show { display: grid; } .side-label { display: none; }
  .try { padding: 12px 10px 24px; max-width: none; } .try-card { padding: 16px 14px; border-radius: 18px; }
  .phone { height: calc(100dvh - var(--live-h, 150px) - 4px); min-height: 440px; width: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .phone.ring { box-shadow: inset 0 0 0 3px rgba(246, 194, 26, .9); }
  .phone::before, .phone::after, .phone-island, .phone-status, .phone-homebar { display: none; }
  .phone-screen { border-radius: 0; }
  .tg-input { padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .push, .msg.new { transition: none; animation: none; } }
