/* /demo: the sample-Mac demo. Uses styles.css for the page; this is the app window and its parts. */
.demo-page { padding: calc(var(--head) + 40px) 0 72px; }
.demo-page h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.02em; line-height: 1.08; margin: 10px 0 12px; }
.demo-page .lede { color: var(--muted); max-width: 640px; margin: 0 0 28px; font-size: 17px; line-height: 1.55; }

.demo-window { max-width: 860px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .35); overflow: hidden; }
.demo-titlebar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--stone); }
.demo-titlebar i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.demo-titlebar i:nth-child(1) { background: #FF5F57; } .demo-titlebar i:nth-child(2) { background: #FEBC2E; } .demo-titlebar i:nth-child(3) { background: #28C840; }
.demo-titlebar span { margin-left: 8px; font: 500 13px/1 var(--mono); color: var(--faint); }

.demo-head { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
#demo-dial { width: 132px; flex: none; }
#demo-dial svg { width: 100%; display: block; }
.d-track, .d-used, .d-free { fill: none; stroke-width: 14; }
.d-track { stroke: var(--chip); }
.d-used { stroke: var(--ink); }
.d-free { stroke: var(--accent); transition: d .3s var(--ease); }
.d-needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.d-hub { fill: var(--accent); }
.demo-disk .label { display: block; margin-bottom: 4px; }
#demo-free { font: 600 20px/1.2 var(--sans); }

#demo-body { padding: 20px; min-height: 280px; }
.demo-intro { display: grid; place-items: center; gap: 16px; text-align: center; padding: 48px 12px; color: var(--muted); }
.demo-status { color: var(--muted); margin: 24px 0 12px; }
.demo-bar { height: 6px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.demo-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }

.demo-cat { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--panel); }
.demo-cat summary { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.demo-cat summary::-webkit-details-marker { display: none; }
.demo-cat summary::before { content: "›"; color: var(--faint); margin-right: 8px; transition: transform .2s var(--ease); display: inline-block; }
.demo-cat[open] summary::before { transform: rotate(90deg); }
.demo-cat-name { flex: 1; }
.demo-cat-size, .demo-item-size { font: 500 13.5px/1.4 var(--mono); color: var(--muted); white-space: nowrap; }

.demo-item { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: start; padding: 12px 16px; border-top: 1px solid var(--line); cursor: pointer; }
.demo-item.is-locked { cursor: default; }
.demo-item input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--accent); }
.demo-item-text { display: grid; gap: 3px; min-width: 0; }
.demo-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.demo-item-name { font-weight: 600; }
.demo-item-why { color: var(--muted); font-size: 14px; line-height: 1.45; }
.demo-item-where { color: var(--faint); font: 400 12px/1.4 var(--mono); overflow-wrap: anywhere; }

/* Verdict badges, worded as in the app. */
.v { display: inline-block; font: 600 10.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 4px 6px; border-radius: 5px; border: 1px solid transparent; background: var(--chip); color: var(--ink); }
.v-decide { color: var(--accent-text); border-color: currentColor; background: none; }
.v-inuse { background: var(--ink); color: var(--ground); }
.v-explain { background: none; border-color: var(--line); color: var(--faint); }

.demo-foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin: 14px -20px -20px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--panel); }
.demo-foot p { margin: 0; color: var(--muted); }
.demo-foot strong { color: var(--ink); }
.demo-foot .btn[disabled] { opacity: .45; pointer-events: none; }

.demo-done h3 { font: 900 clamp(28px, 4vw, 40px)/1 var(--doto); margin: 8px 0 10px; }
.demo-done p { color: var(--muted); margin: 0 0 18px; max-width: 620px; }
.demo-shelf { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.demo-shelf .label { margin: 0 0 8px; }
.demo-shelf-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.demo-shelf-row:first-of-type { border-top: 0; }

.demo-receipt { max-width: 300px; margin: 0 auto 22px; padding: 20px 20px 16px; background: #FFFDF8; color: #1A1A18; border-radius: 4px;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .45); font: 400 13px/1.5 var(--mono); }
.demo-receipt .doto { font-size: 24px; text-align: center; margin: 0; }
.demo-receipt p { margin: 2px 0; }
.demo-receipt hr { border: 0; border-top: 1px dashed #B9B5AA; margin: 10px 0; }
.r-small { text-align: center; color: #5F5D57; font-size: 11.5px; }
.r-line { display: flex; justify-content: space-between; gap: 10px; }
.r-total { font-weight: 600; }

.demo-again { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.demo-after { max-width: 860px; margin-top: 28px; color: var(--muted); }

@media (max-width: 560px) {
  .demo-head { gap: 12px; padding: 14px 16px; }
  #demo-dial { width: 104px; }
  #demo-body { padding: 16px; }
  .demo-foot { margin: 14px -16px -16px; padding: 12px 16px; }
  .demo-item { padding: 12px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-bar span, .demo-cat summary::before { transition: none; }
}
