.demo { padding-block: 46px; border-bottom: 1px solid var(--line); }
.demo h2 { margin: 0 0 8px; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.18; letter-spacing: -.035em; }
.demo > p { margin: 0 0 24px; color: var(--muted); }
.demo-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.demo-panel { padding: clamp(16px, 2.5vw, 26px); border: 1px solid var(--line); border-radius: 18px; min-width: 0; }
.demo-panel-heading, .demo-summary > div, .demo-total, .demo-menu-item, .demo-order-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.demo h3 { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.demo-menu, .demo-order-list { list-style: none; padding: 0; margin: 12px 0 0; }
.demo-menu-item { padding: 11px 0; border-top: 1px solid var(--line); }
.demo-menu-item strong { line-height: 1.3; }
.demo-menu-item small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.demo-menu-item [data-low-stock] { color: var(--deep); font-weight: 750; }
.demo-stepper { display: grid; grid-template-columns: 44px 2ch 44px; gap: 6px; align-items: center; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
.demo button, .demo input { font: inherit; }
.demo button { cursor: pointer; }
.demo button:disabled { cursor: default; opacity: .5; }
.demo button:focus-visible, .demo input:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.demo-stepper button { height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--deep); background: var(--soft); font-size: 1.35rem; font-weight: 750; }
.demo .demo-text { border: 0; background: transparent; padding: 9px 0; color: var(--deep); font-size: .85rem; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.demo-order { background: var(--canvas); }
.demo-order p { color: var(--muted); margin: 14px 0 0; }
.demo-order-list li { padding: 3px 0; font-size: .9rem; }
.demo-order-list li strong { white-space: nowrap; }
.demo-total { margin: 12px 0; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 750; }
.demo-total strong { color: var(--deep); font-size: 1.45rem; white-space: nowrap; }
.demo form label { display: block; font-size: .86rem; font-weight: 750; }
.demo input { width: 100%; margin: 4px 0 12px; padding: 8px 12px; border: 1px solid #b7b7bd; border-radius: 9px; background: #fff; color: var(--ink); }
.demo .demo-save { width: 100%; line-height: 1.35; font-weight: 750; }
.demo-summary, .demo-receipt { margin-top: 16px; padding: 12px clamp(16px, 2.5vw, 26px); border: 1px solid var(--line); border-radius: 16px; }
.demo dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; }
.demo dt { font-size: .83rem; color: var(--muted); line-height: 1.35; }
.demo dd { margin: 4px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.demo-status { color: var(--muted); margin: 12px 0 0; font-size: .86rem; }
.demo-receipt summary { color: var(--deep); cursor: pointer; font-weight: 750; }
.demo .demo-app-link { margin: 17px 0 0; font-size: .9rem; font-weight: 750; }
@media (max-width: 760px) {
  .demo { padding-block: 32px; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
}

.article .app-walkthrough {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.article .app-walkthrough-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas);
}
.app-walkthrough-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.app-walkthrough-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.app-walkthrough-screen {
  display: block;
  width: min(100%, 226px);
  margin: auto auto 0;
  text-align: center;
  font-size: .82rem;
  font-weight: 750;
}
.app-walkthrough-screen img {
  width: 100%;
  height: auto;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
@media (max-width: 540px) {
  .article .app-walkthrough { grid-template-columns: minmax(0, 1fr); }
}
