/* Focused public trial, using the same brand and theme tokens as the workspace. */
.demo-page { min-height: 100dvh; background: var(--bg); }
.demo-header { height: 64px; padding: 0 clamp(24px,3.4vw,72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.demo-header-brand, .demo-header-actions { display: flex; align-items: center; gap: 24px; }
.demo-label { border-left: 1px solid var(--line); padding-left: 24px; color: var(--muted); font-size: 13px; }
.demo-header-actions { gap: 16px; }
.demo-home { display: inline-flex; align-items: center; gap: 8px; margin-right: 12px; color: var(--muted); font-size: 13px; }
.demo-home:hover { color: var(--link); }
.demo-home .icon { width: 15px; height: 15px; }
.demo-header .btn { min-height: 36px; border-radius: 6px; }
.demo-main { width: min(100%,1760px); padding: 36px clamp(24px,3.4vw,72px) 0; margin: 0 auto; }
.demo-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.demo-intro h1 { font-size: 28px; letter-spacing: -.6px; }
.demo-intro p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.demo-quota { display: flex; align-items: center; gap: 14px; flex-shrink: 0; text-align: right; }
.demo-quota strong { display: block; font-size: 22px; letter-spacing: -.4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-quota strong span { color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.demo-quota small { display: block; font-size: 13px; margin-top: 2px; }
.demo-workbench { display: grid; grid-template-columns: 1.08fr 1fr; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.demo-input-pane, .demo-output-pane { min-width: 0; }
.demo-input-pane { border-right: 1px solid var(--line); }
.demo-pane-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 56px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.demo-pane-heading h2 { font-size: 15px; font-weight: 600; }
.demo-pane-heading > span { font-size: 13px; color: var(--muted); }
.demo-input-body { padding: 24px; }
.demo-drop { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; border-color: var(--line-strong); border-radius: 8px; background: var(--subtle); transition: border-color .15s ease, background .15s ease; }
.demo-drop.dragover { border: 1px dashed var(--link); background: var(--blue-soft); }
.demo-upload-symbol { margin-bottom: 12px; color: var(--muted); }
.demo-upload-symbol > .icon { width: 26px; height: 26px; stroke-width: 1.5; }
.demo-drop h3 { font-size: 16px; font-weight: 600; }
.demo-drop > p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.demo-drop .btn { min-height: 38px; margin: 16px 0 14px; border-radius: 6px; padding-inline: 18px; }
.demo-drop > small { font-size: 13px; color: var(--muted); line-height: 1.6; }
.demo-workbench .file { margin-top: 12px; border-radius: 8px; background: var(--subtle); }
.demo-workbench .file .name b { font-size: 13px; }
.demo-run { margin-top: 20px; }
.demo-service { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.demo-service > .icon { width: 15px; height: 15px; margin-top: 3px; color: var(--green); }
.demo-service strong { font-weight: 550; }
.demo-service.unavailable { padding: 11px 12px; border: 1px solid var(--amber-border); border-radius: 8px; background: var(--amber-bg); color: var(--amber); }
.demo-service.unavailable > .icon { color: currentColor; }
.demo-run .error { margin: 10px 0; }
.demo-run .error:empty { display: none; }
.demo-submit { width: 100%; min-height: 42px; margin-top: 16px; border-radius: 6px; }
.demo-submit > .icon:last-child { margin-left: auto; }
.demo-submit > .icon:first-child { margin-right: auto; }
.demo-submit:disabled { opacity: 1; background: var(--subtle); border-color: var(--line); color: var(--faint); }
.demo-run-hint { text-align: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.demo-output-pane { display: flex; flex-direction: column; }
.demo-result-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 44px 40px; min-height: 320px; }
.demo-result-empty h3 { font-size: 16px; font-weight: 600; }
.demo-result-empty > p { max-width: 360px; margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.demo-output-features { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.demo-output-features > span { display: flex; gap: 6px; align-items: center; }
.demo-output-features .icon { width: 14px; height: 14px; }
.demo-tip { display: flex; gap: 10px; margin: 0 24px 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--muted); }
.demo-tip > .icon { width: 16px; height: 16px; margin-top: 2px; }
.demo-tip strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.demo-next { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 20px 0 40px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.demo-next-copy { display: flex; align-items: center; gap: 14px; }
.demo-next h2 { font-size: 15px; font-weight: 600; }
.demo-next p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.demo-next > a { font-size: 14px; flex-shrink: 0; }
.demo-back { margin-bottom: 24px; font-size: 13px; }
.demo-main .document-layout { gap: 24px; }
.demo-main .document-layout > .card { border-radius: 12px; min-width: 0; }
@media (min-width: 1600px) { .demo-main { padding-top: 56px; } .demo-drop { min-height: 310px; } }
@media (max-width: 1000px) {
  .demo-main { padding-top: 32px; }
  .demo-pane-heading { padding-inline: 20px; }
  .demo-pane-heading > span { display: none; }
  .demo-input-body { padding: 20px; }
  .demo-result-empty { padding: 32px 24px; }
  .demo-tip { margin-inline: 20px; }
  .demo-next { align-items: flex-start; }
  .demo-next > a { max-width: 160px; }
}
@media (max-width: 720px) {
  .demo-header { height: 72px; padding-inline: 20px; gap: 12px; }
  .demo-label, .demo-home { display: none; }
  .demo-header-actions { gap: 10px; }
  .demo-header .brand { gap: 7px; }
  .demo-header .brand-symbol { width: 30px; height: 30px; }
  .demo-header .brand-wordmark { font-size: 19px; }
  .demo-intro { flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 24px; }
  .demo-quota { padding: 12px 16px; gap: 12px; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .demo-quota > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 1; }
  .demo-quota small { max-width: 130px; }
  .demo-quota strong { white-space: nowrap; font-size: 20px; }
  .demo-workbench { grid-template-columns: minmax(0,1fr); }
  .demo-input-pane { border-right: 0; }
  .demo-output-pane { border-top: 1px solid var(--line); }
  .demo-result-empty { min-height: 260px; }
  .demo-next { flex-direction: column; gap: 16px; }
  .demo-next { align-items: flex-start; }
  .demo-next > a { max-width: none; }
  .demo-main .document-layout { flex-direction: column; }
}
@media (max-width: 400px) {
  .demo-header { padding-inline: 14px; }
  .demo-header .btn { padding-inline: 12px; font-size: 12px; }
  .demo-header .btn .icon { display: none; }
  .demo-header-actions { gap: 8px; }
  .demo-main { padding-inline: 16px; }
  .demo-quota small { display: none; }
  .demo-input-body { padding: 16px; }
  .demo-drop { padding-inline: 12px; }
  .demo-output-features { gap: 12px; }
  .demo-next > a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .demo-drop { transition: none; } }

/* Màu nhận diện: OCR toàn văn mang sắc cyan như trong workspace. */
.hue-cyan { --hue: var(--hue-cyan); } .hue-green { --hue: var(--hue-green); } .hue-amber { --hue: var(--hue-amber); } .hue-violet { --hue: var(--hue-violet); } .hue-teal { --hue: var(--hue-teal); }
.demo-intro-title { display: flex; align-items: center; gap: 16px; }
.demo-intro .title-icon { --page-hue: var(--hue); width: 52px; height: 52px; border-radius: 12px; }
.demo-intro .title-icon .icon { width: 26px; height: 26px; }
.demo-intro p { margin-top: 4px; }
.pane-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; color: var(--hue); background: color-mix(in srgb, var(--hue) var(--tint), var(--surface)); }
.pane-icon .icon { width: 16px; height: 16px; }
.demo-pane-heading h2 { display: flex; align-items: center; gap: 10px; }
.demo-quota { padding: 12px 18px 12px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; }
.demo-quota .pane-icon { width: 40px; height: 40px; border-radius: 10px; }
.demo-quota .pane-icon .icon { width: 20px; height: 20px; }
.demo-workbench { box-shadow: var(--elev-1); }
.demo-drop { background: color-mix(in srgb, var(--hue-cyan) 6%, var(--surface)); border-color: color-mix(in srgb, var(--hue-cyan) 40%, var(--line)); }
.demo-upload-symbol { color: var(--hue-cyan); }
.demo-submit:not(:disabled) { box-shadow: none; }
