/* The run demo, the editor mock and the platform output row. */

.track { position: relative; height: 72px; border-radius: 3px; background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden; }
  .seg { position: absolute; top: 6px; bottom: 6px; border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 2px; transition: left .5s ease, width .5s ease; }
  .seg span { position: absolute; top: -1px; left: -1px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 10px; padding: 1px 5px; border-radius: 2px 0 2px 0; white-space: nowrap; }
  .ruler { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }
  .clip-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .clip { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); display: grid; grid-template-rows: auto auto; }
  .clip:hover .frame-art { transform: scale(1.03); }
  .frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #0E1116; }
  .frame-art { position: absolute; inset: 0; transition: transform .4s ease; }
  .frame-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55) 0 30%, transparent 62%); }
  .clip-meta { padding: 9px 10px; display: grid; gap: 3px; border-top: 1px solid var(--line-soft); }
  .clip-title { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
  .clip-time { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
  .type-btn { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 13px; border: 1px solid var(--line); background: var(--raised); color: var(--muted); border-radius: 3px; cursor: pointer; }
  .type-btn:hover { color: var(--ink); border-color: var(--ink); }
  .type-btn[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
  .type-panel { margin-top: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--raised); box-shadow: var(--shadow); overflow: hidden; }
  .type-head { padding: 16px; display: grid; gap: 6px; border-bottom: 1px solid var(--line-soft); }
  .type-head p { color: var(--muted); font-size: 14.5px; max-width: 70ch; }
  .type-body { padding: 16px; display: grid; gap: 12px; }
  .out-row { display: flex; gap: 10px; flex-wrap: wrap; }
  /* editor window mock */
  .win { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--raised); box-shadow: var(--shadow); }
  .win-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
  .win-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
  .win-name { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-left: 6px; }
  .win-panes { display: grid; grid-template-columns: 1.15fr .85fr .7fr; gap: 1px; background: var(--line-soft); }
  .pane { background: var(--raised); padding: 14px; display: grid; gap: 10px; align-content: start; }
  .pane-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .win-timeline { border-top: 1px solid var(--line-soft); padding: 12px 14px; display: grid; gap: 8px; background: var(--surface); }
  /* phone mock */
  .phones { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
  .phone { width: 190px; flex: none; border: 1.5px solid var(--line); border-radius: 22px; background: var(--raised); padding: 9px; box-shadow: var(--shadow); }
  .phone-screen { border-radius: 15px; overflow: hidden; background: var(--surface); display: grid; gap: 7px; padding: 9px; }
  .phone-bar { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 9px; color: var(--muted); }
  .phone-clip { border: 1px solid var(--line-soft); border-radius: 5px; overflow: hidden; background: var(--raised); }
  .phone-still { height: 104px; width: 100%; position: relative; overflow: hidden; }
  .phone-still p { position: absolute; left: 7%; right: 7%; bottom: 8px; margin: 0; text-align: center; font-family: "Arial Black", var(--display); font-size: 8.5px; line-height: 1.2; color: #fff; text-transform: uppercase; text-shadow: 0 1px 0 rgba(0,0,0,.75);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .phone-meta { padding: 5px 6px; display: grid; gap: 2px; }
  .phone-meta b { font-size: 9.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .phone-meta span { font-family: var(--mono); font-size: 8px; color: var(--muted); }
  .phone-acts { display: flex; gap: 5px; }
  .phone-acts i { flex: 1; font-style: normal; text-align: center; font-family: var(--mono); font-size: 8px; padding: 4px 0; border-radius: 3px; border: 1px solid var(--line); color: var(--muted); }
  .phone-acts i.go { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
  .step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .step:last-child { border-bottom: 0; }
  .step-key { font-family: var(--mono); font-size: 12px; color: var(--accent); }
  .step h3 { font-size: 16.5px; }
  .step p { color: var(--muted); font-size: 14.5px; }
  /* seats */
  .panel { border: 1px solid var(--line); border-radius: 4px; background: var(--raised); overflow: hidden; box-shadow: var(--shadow); }
  .panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
  .panel-title { font-weight: 600; font-size: 15px; }
  .out-line { font-family: var(--mono); font-size: 12px; color: var(--ink); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .out-line i { color: var(--muted); font-style: normal; }
  .type-btn .soon-tag { font-size: 8.5px; margin-left: 6px; }
  .type-btn[aria-selected="true"] .soon-tag { color: var(--ground); }
  /* ---------- platform output row ---------- */
  .plat-row { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: center; align-items: flex-end; overflow-x: auto; padding: 30px 2px 6px; }
  /* a bare <figure> carries the browser's 40px side margins — inside a flex row that reads as a huge gap */
  .plat { flex: 0 0 auto; position: relative; border-radius: 6px; overflow: visible; margin: 0; }
  .plat-frame { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); width: 126px; height: 210px; }
  .plat-frame .frame-art { position: absolute; inset: 0; }
  .plat-badge {
    position: absolute; top: -17px; left: 50%; transform: translateX(-50%); z-index: 6;
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 15px; color: #fff; line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,.4); border: 2px solid var(--raised);
  }
  .plat-badge svg { width: 19px; height: 19px; display: block; }
  .plat:hover .plat-badge { transform: translateX(-50%) scale(1.08); }
  .plat-badge { transition: transform .18s ease; }
  .plat-time b { color: #fff; font-size: 13px; }
  .plat-score { position: absolute; left: 8px; bottom: 8px; z-index: 2; background: rgba(0,0,0,.6); border-radius: 3px; padding: 3px 6px; display: grid; gap: 1px; }
  .plat-score em { font-style: normal; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: rgba(255,255,255,.7); }
  .plat-score b { font-family: var(--display); font-size: 15px; color: #C8F169; line-height: 1; }
  .plat-shape { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 2; text-align: center; font-family: var(--mono); font-size: 8.5px; letter-spacing: .04em; color: rgba(255,255,255,.8); background: rgba(0,0,0,.45); border-radius: 2px; padding: 2px 4px; }
  .plat-cap { position: absolute; left: 7%; right: 7%; bottom: 28%; z-index: 2; text-align: center; font-family: "Arial Black", var(--display); text-transform: uppercase; color: #fff; font-size: 9.5px; line-height: 1.15; text-shadow: 0 2px 0 rgba(0,0,0,.6); }
  /* ---------- the run demo ---------- */
  .demo-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .demo-card { display: grid; }
  .stage-fill { position: absolute; inset: 0; display: grid; gap: 8px; padding: 34px 14px 14px; align-content: center; }
  .stage-files { display: grid; gap: 6px; max-width: 320px; margin: 0 auto; width: 100%; }
  .stage-files .filechip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #EDEBE6; }
  .stage-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 10px; }
  .stage-tile { aspect-ratio: 1; border-radius: 3px; border: 1px solid rgba(255,255,255,.2); }
  .stage-script { font-family: var(--mono); font-size: 11px; line-height: 1.6; color: rgba(255,255,255,.82); padding: 0 14px; }
  .out-single { max-width: 220px; }
  .out-posts { display: grid; gap: 8px; }
  .out-posts .post { background: var(--surface); }
  .demo { border: 1px solid var(--line); border-radius: 8px; background: var(--raised); box-shadow: var(--shadow); padding: 18px; }
  .demo-stage { position: relative; display: grid; place-items: center; padding: 10px 0 6px; }
  .demo-card { width: min(560px, 100%); aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); position: relative; background: #10131A; }
  .demo-card-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: rgba(0,0,0,.45); z-index: 2; }
  .demo-card-bar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); }
  .demo-card-bar em { font-family: var(--mono); font-style: normal; font-size: 10.5px; color: rgba(255,255,255,.75); margin-left: 6px; }
  .demo-card-art { position: absolute; inset: 0; background: radial-gradient(120% 90% at 42% 26%, #46567E 0%, #243049 44%, #0D1119 100%); }
  .demo-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; display: flex; align-items: flex-end; gap: 2px; padding: 0 8px 8px; }
  .demo-wave i { flex: 1; background: rgba(255,255,255,.35); border-radius: 1px; }
  .demo.running .demo-card-art { filter: saturate(.7) brightness(.8); }
  .demo-scan { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); box-shadow: 0 0 18px 3px color-mix(in srgb, var(--accent) 60%, transparent); opacity: 0; z-index: 2; }
  .demo.running .demo-scan { opacity: .9; animation: scan 1.6s linear infinite; }
  .dropbar.typing input { border-right: 2px solid var(--accent); }
  .dropbar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(600px, 96%); display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); box-shadow: 0 10px 30px rgba(0,0,0,.28); z-index: 3; }
  .dropbar-icon { color: var(--muted); font-size: 14px; }
  .dropbar input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 13px; outline: none; }
  .dropbar button { border-radius: 999px; padding: 10px 18px; }
  .demo-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  .step-chip { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
  .step-chip::before { content: "○"; font-size: 9px; }
  .step-chip.active { border-color: var(--accent); color: var(--accent); }
  .step-chip.active::before { content: "◍"; }
  .step-chip.done { border-color: var(--good); color: var(--good); }
  .step-chip.done::before { content: "●"; }
  .step-time { border-color: var(--ink); color: var(--ink); }
  .step-time::before { content: "✓"; }
  .demo-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
  .demo-out figure { opacity: 0; transform: translateY(10px); animation: clipin .45s ease forwards; }
  .demo-out figure:nth-child(2) { animation-delay: .12s; }
  .demo-out figure:nth-child(3) { animation-delay: .24s; }
