/* Shell around the copied city site: MM Intelligence banner on top, the city
   pages in a frame, a voice widget in the corner, and a strip of sample lines
   that appears only while "Show steps" is on.
   Styles added inside the city pages themselves are in clone.css. */
:root { --bg: #0f0f0f; --card: #141414; --fg: #fafafa; --muted: #a6a6a6; --line: #1e1e30; --violet: #6335ed; --lav: #a78bfa; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; display: flex; flex-direction: column; height: 100dvh; background: var(--bg); color: var(--fg); font: 15px/1.4 Outfit, system-ui, sans-serif; overflow: hidden; }
button, input { font: inherit; }
a { color: var(--lav); }

.demo-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 0.56px solid var(--line); font-size: 14px; }
.demo-bar .brand img { display: block; height: 24px; width: auto; }
.demo-bar span { flex: 1 1 300px; min-width: 0; color: var(--muted); }
.demo-bar span b { color: var(--fg); font-weight: 600; }
.demo-bar a { white-space: nowrap; font: 13px "Space Mono", monospace; text-decoration: none; }
.demo-bar a:hover { color: #fff; }
.ghost { background: none; border: 0.56px solid var(--line); color: var(--muted); padding: 5px 10px; cursor: pointer; font: 12px "Space Mono", monospace; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.ghost:hover, .ghost[aria-expanded="true"] { color: var(--fg); border-color: rgba(99, 53, 237, .6); }

#site { flex: 1 1 auto; min-height: 0; width: 100%; border: 0; background: #fff; }

/* sample lines */
.guide { flex: none; border-top: 0.56px solid rgba(99, 53, 237, .4); background: var(--card); padding: 12px 250px max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; max-height: 40vh; overflow-y: auto; }
.guide[hidden] { display: none; }
.guide section { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.guide h2 { margin: 0 0 2px; font: 11px "Space Mono", monospace; letter-spacing: .15em; text-transform: uppercase; color: var(--lav); }
.say { max-width: 100%; text-align: left; background: none; border: 0.56px solid var(--line); color: var(--fg); padding: 5px 10px; cursor: pointer; font-size: 14px; font-style: italic; text-decoration: none; transition: border-color .3s, background-color .3s; }
.say:hover { border-color: rgba(99, 53, 237, .7); background: rgba(99, 53, 237, .12); }
.say.link { font-style: normal; color: var(--lav); border-color: transparent; padding-left: 0; }

/* voice widget: one pill in the corner; the conversation opens above it */
.widget { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: calc(100vw - 32px); }
.a-talk { display: flex; align-items: center; gap: 10px; background: #0f0f0f; color: #fff; border: 0.56px solid rgba(167, 139, 250, .6); border-radius: 9999px; padding: 7px 20px 7px 7px; cursor: pointer; font: 600 15px Outfit, system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: background-color .3s; }
.a-talk:hover { background: #1b1730; }
.a-talk:not([data-state="idle"]) { cursor: default; }
.a-row { display: flex; align-items: center; gap: 8px; }
.a-end { background: #c62f2f; color: #fff; border: 0; border-radius: 9999px; padding: 0 18px; height: 49px; cursor: pointer; font: 600 15px Outfit, system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.a-end:hover { background: #a82424; }
.a-end[hidden] { display: none; }
.orb { width: 34px; height: 34px; border-radius: 9999px; background: radial-gradient(circle at 35% 30%, #ff9ffc, #6335ed 60%, #2a1570); flex: none; }
.a-talk[data-state="connecting"] .orb { animation: pulse 1s infinite; opacity: .6; }
.a-talk[data-state="listening"] .orb { animation: pulse 1.6s infinite; }
.a-talk[data-state="speaking"] .orb { animation: pulse .5s infinite; }
@keyframes pulse { 50% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(99, 53, 237, .25); } }
.a-panel { width: 340px; max-width: 100%; background: var(--card); border: 0.56px solid rgba(99, 53, 237, .4); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column; }
.a-panel[hidden] { display: none; }
.a-head { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; border-bottom: 0.56px solid var(--line); font-size: 14px; }
.a-head span { flex: 1; font: 11px "Space Mono", monospace; color: var(--muted); }
.a-head button { background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.a-log { max-height: min(300px, 40vh); min-height: 60px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.4; }
.a-log .m { max-width: 90%; padding: 7px 10px; white-space: pre-line; overflow-wrap: anywhere; }
.a-log .agent { background: #1f1f1f; align-self: flex-start; }
.a-log .user { background: rgba(99, 53, 237, .35); align-self: flex-end; }
.a-log .note { align-self: center; font: 11px "Space Mono", monospace; color: #6e6e82; padding: 0; }
.a-form { display: flex; border-top: 0.56px solid var(--line); }
.a-form input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); padding: 10px 12px; }
.a-form input:focus { outline: 1px solid var(--violet); outline-offset: -1px; }
.a-form button { border: 0; background: rgba(99, 53, 237, .2); color: var(--fg); padding: 0 14px; cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 30; background: #0f0f0f; color: var(--fg); border: 0.56px solid rgba(99, 53, 237, .5); padding: 9px 16px; font-size: 14px; max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }

@media (max-width: 640px) {
  .demo-bar span { font-size: 12px; }
  .guide { padding-right: 16px; padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .orb { animation: none !important; } }
