/* No-signup demo, embedded in an iframe on the landing and on storenex.app (Claude Design review 31.10.2026). */
.demo-body { background: var(--paper); }
.demo { max-width: 920px; margin: 0 auto; padding: 24px 16px 28px; }
/* heading=0: the host gives the title; keep the tool off the iframe edges and at a readable width. */
.demo-flush .demo { max-width: 880px; margin: 0 auto; padding: 16px 24px 20px; }
.demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.demo-head .eyebrow { margin-bottom: 10px; }
.demo-title { margin: 0; font-family: var(--display); font-size: clamp(32px, 5vw, 46px); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.demo-lede { max-width: 620px; margin: 14px 0 18px; color: var(--muted-deep); font-size: 15px; text-wrap: pretty; }
.demo-lang { display: inline-flex; flex: none; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
/* Black active segment on purpose: the same switch as the Chat demo. */
.demo-lang button { min-width: 48px; min-height: 44px; border: 0; background: transparent; color: var(--muted-deep); font-size: 13px; font-weight: 700; }
.demo-lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.demo-lang.is-busy, .demo-form.is-busy .demo-tabs, .demo-form.is-busy .demo-models, .demo-form.is-busy .demo-file { pointer-events: none; }
.demo-banner { display: grid; gap: 10px; justify-items: start; padding: 14px 16px; border-radius: var(--radius-control); background: var(--teal-pale); color: var(--teal-dark); font-size: 14px; line-height: 1.5; }
.demo-banner p { margin: 0; }
.demo-subtitle { margin: 0; color: var(--muted-deep); font-size: 14px; line-height: 1.5; }
.demo-form { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface-card); }
.demo-tabs { display: flex; gap: 6px; }
.demo-tab { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--muted-deep); font-size: 14px; font-weight: 700; white-space: nowrap; }
.demo-tab[aria-selected="true"] { border-color: var(--teal); background: var(--teal); color: #fff; }
.demo-label { display: block; margin-bottom: 6px; padding: 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.demo-input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: #fff; color: var(--ink); font-size: 15px; }
.demo-input:focus { border-color: var(--teal); outline: var(--focus-ring); outline-offset: 1px; }
.demo-input[aria-invalid="true"], .demo-file.is-invalid .demo-file-button { border-color: #b0413e; }
.demo-input[readonly] { background: var(--surface-sunken); }
.demo-input:disabled { background: var(--surface-sunken); color: #5c584f; cursor: not-allowed; }
.demo-hint { margin: 6px 0 0; color: #5c584f; font-size: 13px; line-height: 1.5; }
/* Own file picker: the native control would speak the browser's language inside a UA page. */
.demo-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.demo-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.demo-file-button { min-height: 44px; cursor: pointer; }
.demo-file-input:focus-visible + .demo-file-button { outline: var(--focus-ring); outline-offset: 2px; }
.demo-file-input:disabled + .demo-file-button { color: #5c584f; cursor: not-allowed; }
.demo-file-name { min-width: 0; overflow: hidden; color: #5c584f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.demo-sample { display: inline-flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface-sunken); }
.demo-sample img { border-radius: 4px; object-fit: cover; }
.demo-sample span { display: grid; font-size: 13px; }
.demo-sample span span { color: #5c584f; }
.demo-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.demo-models legend { width: 100%; }
.demo-model { position: relative; display: grid; gap: 6px; min-width: 0; cursor: pointer; font-size: 13px; color: var(--muted-deep); }
.demo-models:disabled .demo-model { cursor: not-allowed; }
.demo-model input { position: absolute; opacity: 0; }
.demo-model-photo { position: relative; display: block; }
.demo-model img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; border: 2px solid transparent; border-radius: var(--radius-control); object-fit: cover; }
.demo-model input:checked + .demo-model-photo img { border-color: var(--teal); }
.demo-model input:focus-visible + .demo-model-photo img { outline: var(--focus-ring); outline-offset: 2px; }
.demo-model-label { overflow-wrap: anywhere; }
.demo-ai-tag { position: absolute; top: 6px; right: 6px; padding: 1px 6px; border-radius: 4px; background: rgb(255 255 255 / 92%); color: var(--teal-dark); font-size: 11px; font-weight: 700; }
.demo-captcha { min-height: 0; }
.demo-captcha:empty { display: none; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* One teal: hover only where hover exists, focus as a ring, so no darker shade sticks after a tap or submit. */
.demo .button-teal:hover { background: var(--teal); }
@media (hover: hover) { .demo .button-teal:hover { background: var(--teal-dark); } }
.demo .button:focus { outline: none; }
.demo .button:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.demo .button:disabled { border-color: #e6e2d8; background: #e6e2d8; color: #5c584f; opacity: 1; cursor: not-allowed; }
.demo .button[data-busy]:disabled { gap: 8px; border-color: transparent; background: var(--teal); color: #fff; opacity: 1; cursor: progress; }
.demo-button-spinner { flex: none; width: 16px; height: 16px; border: 2px solid rgb(255 255 255 / 45%); border-top-color: #fff; border-radius: 50%; animation: demo-spin .9s linear infinite; }
.demo-error { margin: 8px 0 0; color: #b0413e; font-size: 14px; line-height: 1.45; }
.demo-data { margin: 12px 0 0; color: #5c584f; font-size: 13px; line-height: 1.5; }
.demo-result { margin-top: 20px; scroll-margin-top: 12px; }
.demo-progress { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e6e2d8; border-radius: var(--radius-control); color: var(--muted-deep); font-size: 14px; }
.demo-progress[hidden], .demo-error[hidden], .demo-result[hidden] { display: none; }
.demo-spinner { flex: none; width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--teal); border-radius: 50%; animation: demo-spin .9s linear infinite; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .demo-spinner, .demo-button-spinner { animation-duration: 2.4s; } }
.demo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.demo-pair figure { margin: 0; }
.demo-error-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.demo-pair img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: var(--radius-panel); background: var(--surface-sunken); object-fit: cover; }
.demo-pair figcaption { margin-top: 6px; color: #5c584f; font-size: 13px; }
.demo-cta { display: grid; gap: 8px; margin-top: 16px; padding: 18px; border-radius: var(--radius-panel); background: var(--ink); color: #fff; }
.demo-cta p { margin: 0; color: rgb(255 255 255 / 78%); font-size: 14px; }
.demo-cta .button-outline { border-color: rgb(255 255 255 / 40%); color: #fff; }
.demo-cta .button-outline:hover { background: rgb(255 255 255 / 10%); }
.demo-cta .button:focus-visible { outline-color: #fff; }
.demo-note { padding: 16px; }
@media (max-width: 520px) {
  .demo { padding: 16px 12px 20px; }
  .demo-flush .demo { padding: 16px; }
  .demo-form { padding: 14px; }
  .demo-head { flex-direction: column-reverse; gap: 24px; }
  .demo-models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Tabs stay on one scrollable row instead of wrapping the third one. */
  .demo-tabs { overflow-x: auto; scrollbar-width: none; margin-inline: -2px; padding-inline: 2px; }
  .demo-tabs::-webkit-scrollbar { display: none; }
}

/* frame=0 (storenex.app module pages): the host card frames the tool. Last in the file and more specific,
   so the phone padding of .demo-flush above does not come back. */
html.demo-bare, body.demo-bare { background: transparent; }
body.demo-bare .demo { max-width: none; padding: 0; }
body.demo-bare .demo-form { padding: 0; border: 0; border-radius: 0; background: transparent; }
body.demo-bare .demo-form, body.demo-bare .demo-form > * { min-width: 0; box-sizing: border-box; }
@media (max-width: 520px) {
  /* Three equal tabs in the narrow host card: nothing scrolls out of sight. */
  body.demo-bare .demo-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
  body.demo-bare .demo-tab { min-width: 0; padding: 4px 8px; white-space: normal; line-height: 1.2; overflow-wrap: anywhere; }
}
