.sb-demo {
  color: var(--svs-ink, #1f0229);
  background: var(--svs-paper, #fffbf6);
  padding: clamp(50px, 6vw, 96px) var(--svs-gutter, 4vw);
  scroll-margin-top: 88px;
}
.sb-demo-inner { max-width: 1240px; margin: 0 auto; }
.sb-demo-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px 30px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.sb-demo .sb-demo-head h2,
.sb-demo .sb-demo-copy h3 {
  color: inherit;
  font-family: var(--svs-display, Georgia, serif);
  font-weight: 400;
  letter-spacing: -.045em;
  text-wrap: balance;
  line-height: 1.02;
  margin: 0;
}
.sb-demo .sb-demo-head h2 { font-size: clamp(34px, 4.7vw, 70px); }
.sb-demo-head h2 span { color: #784085; }
.sb-demo [hidden] { display: none !important; }
.sb-demo-switch {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  margin: 0;
  background: #eee6e1;
  border-radius: 999px;
}
.sb-demo-switch button {
  padding: 10px clamp(13px, 2vw, 23px);
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 600 14px/1.25 var(--svs-body, Arial, sans-serif);
  cursor: pointer;
}
.sb-demo-switch button[aria-selected="true"] { background: #2c1134; color: #fffaf5; }
.sb-demo :is(button, summary, a):focus-visible { outline: 3px solid #8462ad; outline-offset: 3px; }
.sb-demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  isolation: isolate;
  border-radius: 24px;
  overflow: hidden;
  background: #f6e8ec;
}
.sb-demo-panel + .sb-demo-panel:not([hidden]) { margin-top: 20px; }
.sb-demo-panel[hidden] + .sb-demo-panel { margin-top: 0; }
.sb-demo-trade { background: #e9f0e4; }
.sb-demo-art { position: relative; isolation: isolate; min-height: 324px; overflow: hidden; }
.sb-demo-shop {
  display: grid;
  align-items: center;
  justify-items: end;
  padding: 15px clamp(20px, 5vw, 80px) 15px 20px;
  background: #974c68;
}
.sb-demo-campaign { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 42% 42%; }
.sb-demo-shop::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 15%, #4e244056); }
.sb-demo-phone {
  position: relative;
  width: clamp(132px, 13vw, 182px);
  aspect-ratio: 390 / 844;
  padding: 5px;
  border-radius: 24px;
  box-sizing: border-box;
  background: #241421;
  box-shadow: inset 0 0 0 1px #ffffff55, 3px 8px 9px #32102733, 6px 16px 24px #32102744;
  transform: rotate(4deg);
}
.sb-demo-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; border-radius: 19px; }
.sb-demo-copy {
  padding: clamp(26px, 4.5vw, 66px);
  align-self: center;
  font: 400 clamp(15px, 1.25vw, 18px)/1.55 var(--svs-body, Arial, sans-serif);
}
.sb-demo .sb-demo-copy h3 { font-size: clamp(29px, 3.2vw, 48px); max-width: 16ch; }
.sb-demo-copy > p { margin: 14px 0 0; max-width: 42ch; }
.sb-demo-copy > .sb-demo-context, .sb-demo-thread .sb-demo-thread-label {
  margin: 0 0 15px;
  font: 550 12px/1.35 var(--svs-mono, monospace);
  letter-spacing: .025em;
}
.sb-demo-reveal { margin-top: 20px; }
.sb-demo-reveal summary {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 44px; padding: 8px 16px;
  border: 1px solid #463449; border-radius: 99px;
  font: 600 14px/1.35 var(--svs-body, Arial, sans-serif);
  cursor: pointer; list-style: none;
}
.sb-demo-reveal summary::-webkit-details-marker { display: none; }
.sb-demo-reveal summary > span { position: relative; width: 14px; height: 14px; }
.sb-demo-reveal summary > span::before, .sb-demo-reveal summary > span::after {
  content: ""; position: absolute; top: 6px; left: 1px;
  width: 12px; height: 2px; background: currentColor; border-radius: 1px;
}
.sb-demo-reveal summary > span::after { transform: rotate(90deg); }
.sb-demo-reveal[open] summary > span::after { display: none; }
.sb-demo-answer { margin-top: 17px; }
.sb-demo-answer p, .sb-demo-answer dl { margin: 0 0 12px; }
.sb-demo-answer dl > div { padding: 8px 0; border-top: 1px solid #242d2229; }
.sb-demo-answer dt { font-weight: 650; }
.sb-demo-answer dd { margin: 0; font-size: .94em; }
.sb-demo-answer a { display: inline-block; color: inherit; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.sb-demo-matches { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; padding: 0; list-style: none; }
.sb-demo-matches a { padding: 7px 12px; background: #fffaf6; border: 1px solid #d6bfca; border-radius: 8px; font-size: 14px; text-decoration: none; }
.sb-demo-matches a:hover { text-decoration: underline; }
.sb-demo-messages {
  display: grid; place-items: center; padding: clamp(22px, 4vw, 64px);
  background-color: #cce7c9;
  background-image: radial-gradient(ellipse at 9% 8%, #eaf6c8, transparent 45%), radial-gradient(ellipse at 98% 88%, #a2cbb8, transparent 54%);
}
.sb-demo-thread { display: grid; gap: 12px; width: min(100%, 380px); }
.sb-demo-thread .sb-demo-thread-label { margin: 0 0 5px; color: #274932; }
.sb-demo-thread .sb-demo-bubble {
  margin: 0; max-width: 85%; padding: 15px 18px;
  color: #233627; background: #f9fff7; border-radius: 18px 18px 18px 3px;
  box-shadow: 0 3px 10px #355b2f0e;
  font: 500 clamp(15px, 1.3vw, 19px)/1.4 var(--svs-body, Arial, sans-serif);
}
.sb-demo-thread .sb-demo-reply { justify-self: end; border-radius: 18px 18px 3px; color: #fff; background: #315741; }
@media (hover: hover) {
  .sb-demo-reveal summary:hover { background: #ffffff6b; }
  .sb-demo-switch button[aria-selected="false"]:hover { background: #fff9; }
}
@media (prefers-reduced-motion: no-preference) {
  .sb-demo-reveal summary, .sb-demo-switch button { transition: background-color .18s ease; }
}
@media (max-width: 720px) {
  .sb-demo-head { align-items: flex-start; flex-direction: column; }
  .sb-demo-panel { grid-template-columns: minmax(0,1fr); border-radius: 18px; }
  .sb-demo-art { min-height: 0; }
  .sb-demo-shop { height: 235px; padding: 12px 14% 0; }
  .sb-demo-phone { align-self: start; width: 121px; }
  .sb-demo-messages { min-height: 235px; padding: 24px; }
  .sb-demo-copy { padding: 25px; }
}
