/* Live Tilepane demo in the hero: glass panes over a Big Sur-like wall. */
.demo { position: absolute; inset: 0; overflow: hidden; font-family: var(--font); color: #f2f2f5; outline: none; cursor: default;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; --gap: 7px; --r: 9px; }
.hero-frame { position: relative; }
.demo-fallback { display: none; }

/* Our own soft wall in the Big Sur spirit: sky blue, coral, magenta, amber. */
.demo-wall { position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 8%, #3aa0f0 0%, transparent 60%),
    radial-gradient(55% 60% at 12% 18%, #ff4f6d 0%, transparent 62%),
    radial-gradient(70% 55% at 88% 70%, #ffae3d 0%, transparent 60%),
    radial-gradient(80% 70% at 30% 95%, #6b2bb8 0%, transparent 65%),
    linear-gradient(160deg, #d8264e 0%, #b0154e 45%, #5a1f8c 100%); }
.demo-lights { position: absolute; left: 12px; top: 9px; display: flex; gap: 7px; z-index: 3; }
.demo-lights span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.demo-lights span:nth-child(2) { background: #febc2e; } .demo-lights span:nth-child(3) { background: #28c840; }

.demo-tiles { position: absolute; left: var(--gap); right: var(--gap); top: 27px; bottom: var(--gap); }
.pane { position: absolute; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
  background: rgba(20, 8, 28, .30); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  transition: left .38s cubic-bezier(.2,.8,.2,1), top .38s cubic-bezier(.2,.8,.2,1), width .38s cubic-bezier(.2,.8,.2,1), height .38s cubic-bezier(.2,.8,.2,1), opacity .25s, box-shadow .2s; }
.pane.focused { box-shadow: inset 0 0 0 1.5px rgba(214, 150, 255, .85), 0 12px 40px -14px rgba(0,0,0,.5); }
.pane.hidden { opacity: 0; pointer-events: none; }
.pane.enter { animation: pane-in .38s cubic-bezier(.2,.8,.2,1); }
@keyframes pane-in { from { opacity: 0; transform: scale(.96); } }
.pane > header { height: 26px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 11.5px; white-space: nowrap; }
.pane > header .n { color: rgba(255,255,255,.4); font: 10px var(--mono); }
.pane > header b { font: 600 11.5px var(--mono); }
.pane > header em { font-style: normal; color: rgba(255,255,255,.5); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.pane > header .ico { color: #b2f2bb; font-size: 10px; } .pane > header .spark { color: #e599f7; } .pane > header .nt { color: #ffe066; }
.pane > header .dot { width: 6px; height: 6px; border-radius: 50%; background: #30d158; font-style: normal; }
.pane > header .dot.busy { background: #ff9f0a; animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .35; } }

.term-body, .note-body { flex: 1; min-height: 0; padding: 4px 12px 10px; font: 11px/1.55 var(--mono); overflow: hidden; display: flex; flex-direction: column; }
.term-body .dim, .dim { color: rgba(255,255,255,.5); }
.claude-banner { display: flex; gap: 10px; align-items: center; margin: 4px 0 8px; }
.crab { width: 30px; height: 18px; border-radius: 3px; background: #d97757; box-shadow: inset 6px -6px 0 -3px #d97757, inset -6px -6px 0 -3px #d97757; position: relative; }
.crab::before, .crab::after { content: ""; position: absolute; top: 5px; width: 3px; height: 4px; background: #1a0d12; }
.crab::before { left: 8px; } .crab::after { right: 8px; }
#curie-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.msg { background: rgba(0,0,0,.28); border-radius: 4px; padding: 5px 8px; margin: 4px 0; white-space: pre-wrap; }
.msg .h { color: #b8a8ff; } .msg .s { color: rgba(255,255,255,.55); }
.cl-step { margin: 3px 0; } .cl-step::before { content: "⏺ "; color: #ff9f6b; } .cl-step.ok::before { color: #30d158; }
.diff { margin: 2px 0 2px 16px; padding: 3px 6px; border-radius: 3px; background: rgba(0,0,0,.22); }
.diff .del { color: #ff8787; } .diff .add { color: #8ce99a; }
.claude-input { border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); padding: 3px 0; margin-top: 6px; display: flex; gap: 6px; }
#turing-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; white-space: pre-wrap; }
.term-body .p { color: #8ce99a; } .term-body .c { color: #66d9e8; font-weight: 600; } .term-body .g { color: #74c0fc; } .term-body .r { color: #ff8787; } .term-body .y { color: #ffd43b; }
.prompt { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.prompt input { flex: 1; min-width: 20px; background: none; border: 0; outline: none; color: inherit; font: inherit; padding: 0; caret-color: #fff; }
.note-body { outline: none; white-space: normal; color: #f5f5f7; }

/* The browser pane with a tiny Aurora. */
.web { background: #f6f4ef; }
.web-bar { background: #1c1426; gap: 8px !important; }
.web-bar .web-nav { color: rgba(255,255,255,.35); letter-spacing: 2px; }
.web-bar .url { flex: 1; min-width: 0; background: rgba(255,255,255,.08); border-radius: 5px; padding: 2px 8px; font: 10.5px var(--mono); color: rgba(255,255,255,.85); overflow: hidden; }
.web-bar .chip { font: 600 9.5px var(--mono); color: #1a1208; background: #ffd43b; border-radius: 4px; padding: 1px 5px; }
.pick { width: 22px; height: 20px; border-radius: 5px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: rgba(255,255,255,.8); }
.pick svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pick.on { background: rgba(160, 120, 255, .3); color: #d8c8ff; }
.pick.nudge { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: 0 0 0 4px rgba(160,120,255,.45); } }

.aurora { position: relative; flex: 1; min-height: 0; padding: 12px 16px; color: #16161a; overflow: hidden; font-family: var(--font); }
.aurora.picking, .aurora.picking * { cursor: crosshair; }
.a-top { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.a-logo { width: 14px; height: 14px; border-radius: 4px; background: conic-gradient(from 200deg, #5b5bf0, #b36bff, #ff8fb1, #5b5bf0); }
.a-tabs { margin-left: auto; display: flex; gap: 2px; background: #ecebe5; border-radius: 99px; padding: 2px; }
.a-tabs i { font-style: normal; font-size: 9.5px; color: #6e6d76; padding: 2px 7px; border-radius: 99px; } .a-tabs i.on { background: #fff; color: #16161a; }
.a-date { margin: 12px 0 0; font-size: 9.5px; color: #6e6d76; }
.a-greet { margin: 3px 0 2px; font-size: clamp(18px, 2.6vw, 32px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; transition: font-size .6s cubic-bezier(.2,.8,.2,1); }
.a-greet span { background: linear-gradient(90deg, #5b5bf0, #b36bff 60%, #ff7aa2); -webkit-background-clip: text; background-clip: text; color: transparent; transition: filter .6s; }
.a-greet.warm { font-size: clamp(15px, 2.15vw, 26px); }
.a-greet.warm span { background-image: linear-gradient(90deg, #f08a4b, #e2566e 70%); }
.a-sub { margin: 0; font-size: 10px; color: #6e6d76; }
.a-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.a-card { background: #fff; border: 1px solid #e9e6de; border-radius: 9px; padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; }
.a-card small { font-size: 8.5px; color: #6e6d76; } .a-card b { font-size: 13px; letter-spacing: -.02em; } .a-card em { font-style: normal; font-size: 8px; color: #1f9d6b; }
.a-chart { margin-top: 8px; height: 22%; background: #fff; border: 1px solid #e9e6de; border-radius: 9px; padding: 8px; display: flex; align-items: flex-end; gap: 4px; }
.a-chart i { flex: 1; border-radius: 3px; background: #e7e6f8; } .a-chart i.now { background: #5b5bf0; }
.pick-box { position: absolute; display: none; pointer-events: none; border: 1.5px solid #3b82f6; background: rgba(59,130,246,.10); border-radius: 3px; z-index: 2; }
.pick-box span { position: absolute; left: -1px; top: -17px; font: 600 9px var(--font); color: #fff; background: #3b82f6; border-radius: 3px; padding: 1px 5px; white-space: nowrap; }
.bubble { position: absolute; z-index: 3; display: flex; align-items: center; gap: 6px; width: min(300px, 80%); padding: 4px 4px 4px 11px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.bubble input { flex: 1; min-width: 0; border: 0; outline: none; font: 11px var(--font); color: #16161a; background: none; }
.bubble .to { font-size: 10px; color: #16161a; white-space: nowrap; }
.bubble button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: #16161a; color: #fff; font-size: 11px; cursor: pointer; }

/* ⌘K palette */
.palette { position: absolute; z-index: 5; left: 50%; top: 22%; width: min(380px, 70%); transform: translateX(-50%);
  background: rgba(40, 18, 44, .62); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%);
  border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 30px 60px -20px rgba(0,0,0,.6); padding: 6px; }
.palette input { width: 100%; background: none; border: 0; outline: none; color: #fff; font: 14px var(--font); padding: 8px 10px; }
.palette ul { list-style: none; margin: 4px 0 0; padding: 0; }
.palette li { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 8px; font-size: 12px; cursor: pointer; }
.palette li small { color: rgba(255,255,255,.55); font-size: 10.5px; }
.palette li.sel { background: rgba(190, 110, 230, .7); }

.toast { position: absolute; z-index: 6; left: 50%; bottom: 16px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  padding: 6px 12px; border-radius: 99px; font-size: 11.5px; color: #fff; background: rgba(12,12,16,.62);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Things to try, under the frame */
.demo-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px auto 0; max-width: 980px; padding: 0 16px; align-items: center; }
.demo-hints .try { color: var(--muted); font-size: 13px; margin-right: 4px; }
.demo-hints button { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 6px; border-radius: 99px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; font: 13px var(--font); transition: background .2s; }
.demo-hints button:hover { background: rgba(255,255,255,.12); }
.demo-hints kbd { min-width: 20px; height: 22px; padding: 0 5px; font-size: 11px; border-radius: 6px; }
.demo-hints em { font-style: normal; margin-left: 4px; }
.demo-hints .reset { padding: 0 14px; color: var(--soft); }

@media (max-width: 820px) {
  .demo, .demo-hints { display: none; }
  .demo-fallback { display: block; }
}

.demo { text-align: left; }
.bubble[hidden], .palette[hidden] { display: none; }
/* Keep the whole live window on screen while it's being used. */
.hero-frame { max-height: calc(100vh - 84px); }

/* Chart bar heights (inline styles are blocked by the CSP). */
.a-chart i:nth-child(1) { height: 42%; }
.a-chart i:nth-child(2) { height: 58%; }
.a-chart i:nth-child(3) { height: 37%; }
.a-chart i:nth-child(4) { height: 66%; }
.a-chart i:nth-child(5) { height: 51%; }
.a-chart i:nth-child(6) { height: 74%; }
.a-chart i:nth-child(7) { height: 48%; }
.a-chart i:nth-child(8) { height: 61%; }
.a-chart i:nth-child(9) { height: 39%; }
.a-chart i:nth-child(10) { height: 70%; }
.a-chart i:nth-child(11) { height: 55%; }
.a-chart i:nth-child(12) { height: 83%; }

/* ⌘I sessions sidebar: tiles move over to make room, like the app. */
.demo-tiles { transition: left .38s cubic-bezier(.2,.8,.2,1); }
.demo.sidebar-open .demo-tiles { left: 212px; }
.sidebar { position: absolute; z-index: 4; left: 7px; top: 27px; bottom: 7px; width: 198px; padding: 10px 8px; border-radius: 14px; overflow: hidden;
  background: rgba(40, 14, 40, .42); -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); animation: sb-in .3s cubic-bezier(.2,.8,.2,1); }
.sidebar[hidden] { display: none; }
@keyframes sb-in { from { opacity: 0; transform: translateX(-10px); } }
.sb-head { display: flex; align-items: baseline; gap: 6px; padding: 0 4px 8px; font-size: 12px; }
.sb-head small { color: rgba(255,255,255,.55); font-size: 10.5px; }
.sidebar input { width: 100%; height: 24px; border-radius: 7px; border: 0; outline: none; background: rgba(255,255,255,.1); color: #fff; font: 11px var(--font); padding: 0 8px; }
.sb-ws { margin: 10px 4px 4px; font-size: 10.5px; font-weight: 600; }
.sb-ws.dim { color: rgba(255,255,255,.55); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { display: flex; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 8px; cursor: pointer; }
.sidebar li:hover { background: rgba(255,255,255,.08); }
.sidebar li.on { background: rgba(255,255,255,.14); }
.sidebar li.empty { color: rgba(255,255,255,.5); font-size: 11px; cursor: default; }
.sidebar .si { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 10px; flex: none; }
.sidebar li b { display: block; font-size: 11px; } .sidebar li small { display: block; font-size: 9.5px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }

/* × in pane headers */
.pane > header .x { margin-left: auto; width: 18px; height: 18px; border-radius: 5px; border: 0; background: none; color: rgba(255,255,255,.45); font-size: 14px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.pane:hover > header .x, .pane.focused > header .x { opacity: 1; }
.pane > header .x:hover { background: rgba(255,255,255,.12); color: #fff; }
.web-bar .x { margin-left: 0 !important; }
.demo-hints .hint-note { flex-basis: 100%; text-align: center; margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
