.demo-body { background: var(--paper); }
.demo-head-note { margin: auto 0; color: var(--mute); font-size: 15px; }
.demo-shell { padding-block: clamp(24px, 4vw, 58px) var(--section); }
.demo-title { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px clamp(24px, 5vw, 74px); align-items: end; border-bottom: 1px solid var(--line-dark); padding-bottom: clamp(18px, 3vw, 34px); }
.demo-title h1 { margin: 4px 0 0; font-size: clamp(36px, 4.6vw, 66px); max-width: 18ch; }
.demo-title > p { max-width: 46ch; color: var(--mute); }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.demo-controls button { min-height: 44px; padding: 8px 15px; border: 1px solid var(--line-dark); border-radius: 7px; background: var(--white); color: var(--ink); font: 600 15px/1.2 var(--sans); cursor: pointer; }
.demo-controls button:hover { background: var(--soft); }
.demo-controls button[aria-pressed=true] { border-color: var(--accent); background: var(--accent); color: var(--white); }
.demo-controls span { margin-left: auto; color: var(--mute); font-size: 14px; font-variant-numeric: tabular-nums; }
.demo-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 56px); align-items: start; padding-block: clamp(18px, 3vw, 34px); }
.demo-stage > * { margin: 0; }
.demo-phone { display: grid; justify-items: center; gap: 10px; min-width: 0; }
.demo-browser { display: flex; align-items: center; gap: 5px; width: 100%; max-width: 360px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px 7px 0 0; background: var(--soft); }
.demo-browser span { width: 7px; height: 7px; border: 1px solid var(--line-dark); border-radius: 50%; }
.demo-browser b { margin-left: 6px; color: var(--mute); font: 400 12px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-cart { width: 100%; max-width: 320px; padding: 16px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 7px 7px; background: var(--white); overflow: hidden; }
.demo-shop { color: var(--mute); font-size: 13px; }
.demo-cart h2 { margin: 8px 0 12px; font-size: 26px; }
.demo-line, .demo-total { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; border-top: 1px solid var(--line); font-size: 15px; }
.demo-total { font-weight: 650; }
.demo-order { display: block; width: 100%; min-height: 46px; margin-top: 12px; border: 0; border-radius: 6px; background: var(--accent); color: var(--white); font: 600 16px/1.2 var(--sans); cursor: pointer; }
.demo-order:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
.demo-hint { margin-top: 9px; color: var(--mute); font-size: 13px; line-height: 1.4; }
.demo-cart[data-demo-state=before] .demo-order { width: 420px; max-width: none; }
.demo-cart[data-demo-state=after] .demo-order { width: 100%; }
.demo-cart[data-demo-state=before] .demo-hint { color: var(--danger); }
.demo-notes { display: grid; gap: 0; border-bottom: 1px solid var(--line); }
.demo-notes li { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); gap: 4px 18px; padding-block: 12px; border-top: 1px solid var(--line); }
.demo-notes b { font-weight: 650; }
.demo-notes span { color: var(--mute); }
.demo-foot { max-width: 76ch; color: var(--mute); }
.demo-foot .link { display: inline-flex; min-height: 44px; align-items: center; margin-left: 4px; color: var(--accent-dark); }
@media (max-width: 760px) {
  .demo-head-note { display: none; }
  .demo-title, .demo-stage { grid-template-columns: minmax(0, 1fr); }
  .demo-controls span { width: 100%; margin-left: 0; }
  .demo-title h1 { font-size: clamp(34px, 9vw, 52px); }
}
