/* ============================================================
   webweezl.io/demo — KI-Chatbot-Check
   Page-scoped styles. Builds on the tokens in /css/style.css
   (Plus Jakarta Sans + DM Sans, teal brand). Everything here is
   prefixed .demo-* so nothing leaks into other pages.
   ============================================================ */

.demo-page [hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.demo-page :focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.demo-hero {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 72px;
  background: linear-gradient(180deg, var(--color-bg-subtle) 0%, var(--color-bg) 100%);
}

.demo-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.demo-hero__copy { max-width: 560px; padding-top: 12px; }

.demo-hero__title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.demo-hero__lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.demo-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.demo-facts li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.demo-facts .check { color: var(--color-brand); font-weight: 700; }

/* ---------- Card (form / progress / result / errors) ---------- */
.demo-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 32px;
  min-width: 0;
}

.demo-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 8px;
}

.demo-eyebrow--warn { color: #b45309; }

.demo-card__title {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.demo-card__text {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.demo-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.demo-url-row {
  display: flex;
  gap: 10px;
}

.demo-input,
.demo-url-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 12px 16px;
  font: 500 1rem/1.4 var(--font-body);
  color: var(--color-text);
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-input:focus,
.demo-url-row input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgb(13 148 136 / 0.18);
}

.demo-input[aria-invalid="true"],
.demo-url-row input[aria-invalid="true"] { border-color: var(--color-danger); }

.demo-submit {
  justify-content: center;
  min-height: 52px;
  flex: 0 0 auto;
}

.demo-page .btn { min-height: 48px; justify-content: center; cursor: pointer; }
.demo-page .btn[disabled],
.demo-page .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.demo-hint {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 10px;
  line-height: 1.55;
}

.demo-turnstile { margin-top: 16px; min-height: 0; }

.demo-error {
  margin-top: 14px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.demo-success {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--color-brand-50);
  border: 1px solid var(--color-brand-100);
  border-radius: var(--radius-sm);
  color: var(--color-brand-800);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.demo-legal {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.demo-legal a,
.demo-hint a,
.demo-card__text a,
.demo-report a:not(.btn) { color: var(--color-brand-dark); text-decoration: underline; }

.demo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--color-brand-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-top: 4px;
}

/* Notice (report=sent / report=invalid) */
.demo-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-brand-100);
  background: var(--color-brand-50);
  color: var(--color-brand-800);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.demo-notice--warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }

.demo-notice__close {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  margin-top: -10px;
  margin-right: -10px;
  font-size: 1.25rem;
  line-height: 1;
  color: inherit;
  border-radius: var(--radius-sm);
}

/* ---------- Progress ---------- */
.demo-progress {
  height: 10px;
  background: var(--color-bg-muted);
  border-radius: 100px;
  overflow: hidden;
  margin: 8px 0 14px;
}

.demo-progress__bar {
  display: block;
  height: 100%;
  width: 4%;
  background: linear-gradient(90deg, var(--color-brand), #14b8a6);
  border-radius: 100px;
  transition: width 0.8s ease;
}

.demo-progress__line {
  font-weight: 600;
  color: var(--color-text);
  min-height: 1.7em;
}

.demo-progress__meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.demo-steps {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 20px 0 8px;
  counter-reset: demo-step;
}

.demo-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  counter-increment: demo-step;
}

.demo-steps li::before {
  content: counter(demo-step);
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  background: #fff;
}

.demo-steps li.is-active { color: var(--color-text); font-weight: 600; }
.demo-steps li.is-active::before {
  border-color: var(--color-brand);
  color: var(--color-brand);
  animation: demo-pulse 1.6s ease-in-out infinite;
}

.demo-steps li.is-done { color: var(--color-text-secondary); }
.demo-steps li.is-done::before {
  content: "\2713";
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

@keyframes demo-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(13 148 136 / 0.35); }
  50% { box-shadow: 0 0 0 6px rgb(13 148 136 / 0); }
}

/* ---------- Workspace (chat + report) ---------- */
.demo-workspace {
  padding: 24px 0 88px;
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

.demo-ws-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.demo-ws-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.demo-ws-head p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.demo-ws-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* ---------- Chat panel ---------- */
.demo-chat {
  --demo-brand: #0d9488;
  --demo-brand-ink: #ffffff;
  --demo-brand-text: #0f766e;
  --demo-brand-soft: rgb(13 148 136 / 0.08);
  display: flex;
  flex-direction: column;
  height: 660px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  min-width: 0;
}

.demo-chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--demo-brand);
  color: var(--demo-brand-ink);
}

.demo-chat__avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06);
}

.demo-chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.demo-chat__letter {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--demo-brand-text);
}

.demo-chat__who { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.demo-chat__who strong { font-family: var(--font-heading); font-size: 1rem; }
.demo-chat__who span {
  font-size: 0.8125rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-chat__badge {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
  opacity: 0.9;
}

.demo-chat__log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 18px 8px;
  background: var(--color-bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overscroll-behavior: contain;
}

.demo-msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.demo-msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
  color: var(--color-text);
}

.demo-msg--user {
  align-self: flex-end;
  background: var(--demo-brand);
  color: var(--demo-brand-ink);
  border-bottom-right-radius: 4px;
}

.demo-msg--notice {
  align-self: stretch;
  max-width: none;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.demo-msg p + p,
.demo-msg p + ul,
.demo-msg p + ol,
.demo-msg ul + p,
.demo-msg ol + p { margin-top: 8px; }
.demo-msg ul, .demo-msg ol { padding-left: 20px; margin: 6px 0; }
.demo-msg li { margin: 3px 0; }
.demo-msg a { color: var(--demo-brand-text); text-decoration: underline; }
.demo-msg--user a { color: inherit; }
.demo-msg .demo-msg__h { font-weight: 700; margin-top: 6px; }

.demo-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.demo-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: demo-dot 1.2s infinite ease-in-out;
}
.demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes demo-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 4px;
}

.demo-chip {
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 100px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  font: 500 0.9rem/1.35 var(--font-body);
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.demo-chip:hover { border-color: var(--demo-brand); background: var(--demo-brand-soft); }

.demo-limit {
  margin: 0 14px 10px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-brand-50);
  border: 1px solid var(--color-brand-100);
}

.demo-limit strong { display: block; font-family: var(--font-heading); margin-bottom: 4px; }
.demo-limit p { font-size: 0.9rem; color: var(--color-text-secondary); margin-bottom: 12px; }
.demo-limit .btn { width: 100%; white-space: normal; text-align: center; }

.demo-chat__form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--color-border);
  background: #fff;
}

.demo-chat__form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}

.demo-chat__form input:focus { outline: none; border-color: var(--demo-brand-text); box-shadow: 0 0 0 3px var(--demo-brand-soft); }
.demo-chat__form input:disabled { background: var(--color-bg-muted); }

.demo-chat__send {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--demo-brand);
  color: var(--demo-brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.demo-chat__send:disabled { opacity: 0.45; cursor: not-allowed; }
.demo-chat__send svg { width: 20px; height: 20px; }

.demo-chat__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 0 16px 12px;
  background: #fff;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.demo-chat__foot strong { color: var(--color-text-secondary); font-weight: 600; }

/* ---------- Report panel ---------- */
.demo-report {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 26px;
  min-width: 0;
}

.demo-report__title {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.demo-report__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.demo-report__summary {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.demo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  list-style: none;
}

.demo-legend li { display: inline-flex; align-items: center; gap: 6px; }

.demo-pending {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 14px;
}

.demo-spinner {
  flex: 0 0 20px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2.5px solid var(--color-border);
  border-top-color: var(--color-brand);
  animation: demo-spin 0.9s linear infinite;
}

@keyframes demo-spin { to { transform: rotate(360deg); } }

.demo-findings { list-style: none; display: grid; gap: 10px; }

.demo-finding {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.demo-light {
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.demo-light--green { background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
.demo-light--amber { background: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
.demo-light--red   { background: #dc2626; box-shadow: 0 0 0 3px #fee2e2; }
.demo-light--info  { background: #3b82f6; box-shadow: 0 0 0 3px #dbeafe; }

.demo-finding__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
}

.demo-finding__title {
  font-size: 1rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.demo-level {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.demo-level--green { color: #15803d; }
.demo-level--amber { color: #b45309; }
.demo-level--red   { color: #b91c1c; }
.demo-level--info  { color: #1d4ed8; }

.demo-finding__summary {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.demo-finding details { margin-top: 6px; }

.demo-finding summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand-dark);
}

.demo-finding details p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  padding: 2px 0 4px;
  overflow-wrap: anywhere;
}

.demo-vendor,
.demo-disclaimer {
  margin-top: 14px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  overflow-wrap: anywhere;
}

.demo-disclaimer {
  padding-top: 14px;
  border-top: 1px dashed var(--color-border);
}

.demo-pdf { margin-top: 16px; }

.demo-mail {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
}

.demo-mail__title { font-size: 1.0625rem; margin-bottom: 4px; }
.demo-mail > p { font-size: 0.9rem; color: var(--color-text-secondary); margin-bottom: 14px; }

.demo-field { display: block; margin-bottom: 12px; }
.demo-field > span { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.demo-field .demo-input { width: 100%; min-height: 48px; }

.demo-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  cursor: pointer;
}

.demo-checkbox input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--color-brand);
  cursor: pointer;
}

.demo-mail .btn,
.demo-waitlist .btn { width: 100%; }

/* Claim CTA + note shown when this browser has no claim token */
.demo-claim-col { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 100%; }
.demo-claim-note { font-size: 0.8125rem; color: var(--color-text-secondary); line-height: 1.5; max-width: 340px; text-align: right; }
.demo-limit .demo-claim-note { margin: 8px 0 0; max-width: none; text-align: left; }

/* Keep CTA under the grid */
.demo-keep {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(13,148,136,0.02));
  border: 1px solid rgba(13,148,136,0.18);
}

.demo-keep h3 { font-size: 1.25rem; margin-bottom: 4px; }
.demo-keep p { color: var(--color-text-secondary); font-size: 0.9375rem; max-width: 620px; }

/* ---------- How it works ---------- */
.demo-how { padding: 80px 0; background: var(--color-bg-subtle); }

.demo-how__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.demo-how__step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.demo-how__num {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--color-brand-50);
  color: var(--color-brand);
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 14px;
}

.demo-how__step h3 { font-size: 1.125rem; margin-bottom: 8px; }
.demo-how__step p { color: var(--color-text-secondary); font-size: 0.9375rem; }

/* ---------- FAQ (mirrors /pages/faq) ---------- */
.demo-faq { padding: 80px 0; }
.demo-faq__list { max-width: 800px; margin: 40px auto 0; }

.faq-page-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-page-item:hover { border-color: var(--color-brand); }
.faq-page-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  gap: 16px;
}
.faq-page-item__icon {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  color: var(--color-text-muted);
  transition: transform 0.3s;
}
.faq-page-item.open .faq-page-item__icon { transform: rotate(45deg); color: var(--color-brand); }
.faq-page-item__a { padding: 0 20px 20px; }
.faq-page-item__a p { font-size: 0.9375rem; line-height: 1.75; color: var(--color-text-secondary); }

/* Desktop: keep the chat in view while the (longer) report scrolls */
@media (min-width: 1025px) {
  .demo-chat {
    position: sticky;
    top: calc(var(--nav-height) + 16px);
    height: min(660px, calc(100vh - var(--nav-height) - 32px));
    min-height: 480px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .demo-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .demo-hero__copy { max-width: none; padding-top: 0; }
  .demo-ws-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-how__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
  .demo-hero { padding-top: calc(var(--nav-height) + 32px); padding-bottom: 48px; }
  .demo-facts { grid-template-columns: minmax(0, 1fr); }
  .demo-card { padding: 20px; }
  .demo-url-row { flex-direction: column; }
  .demo-submit { width: 100%; }
  .demo-chat { height: min(82vh, 640px); min-height: 500px; border-radius: var(--radius-md); }
  .demo-chat__log { padding: 14px 12px 6px; }
  .demo-msg { max-width: 94%; }
  .demo-report { padding: 18px; }
  .demo-ws-head .btn { width: 100%; white-space: normal; text-align: center; }
  .demo-claim-col { align-items: stretch; width: 100%; }
  .demo-claim-note { text-align: left; max-width: none; }
  .demo-keep { padding: 20px; }
  .demo-keep .btn { width: 100%; white-space: normal; text-align: center; }
  .demo-how, .demo-faq { padding: 56px 0; }
  .faq-page-item__q { font-size: 0.9375rem; padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-progress__bar,
  .demo-steps li.is-active::before,
  .demo-typing span,
  .demo-spinner { animation: none; transition: none; }
}
