.anpr-demo { margin-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.anpr-demo-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 32px; margin-bottom: 28px; }
.anpr-demo-intro .section-eyebrow { margin: 0 0 14px; color: var(--accent); }
.anpr-demo-intro h2 { max-width: 15ch; font-size: clamp(2.2rem, 4.3vw, 4.25rem); line-height: 1.02; letter-spacing: -.045em; }
.anpr-demo-intro > p { max-width: 45ch; margin: 0 0 4px; color: var(--muted); font-size: 1.0625rem; line-height: 1.55; }
.anpr-demo-workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.anpr-demo-stage { display: grid; min-width: 0; min-height: 520px; padding: 16px; background: #e8eef7; }
.anpr-demo-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 360px; padding: 40px 24px; border: 1.5px dashed #9eafc7; border-radius: 8px; background: #f5f8fc; text-align: center; transition: border-color .18s ease, background .18s ease; }
.anpr-demo-drop.is-dragging { border-color: var(--accent); background: #e5eff9; }
.anpr-demo-drop svg { margin-bottom: 24px; color: var(--accent); }
.anpr-demo-drop strong { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.2; letter-spacing: -.025em; }
.anpr-demo-drop p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.anpr-demo-file-label { margin-top: 26px; cursor: pointer; }
.anpr-demo-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.anpr-demo-drop input[type=file]:focus-visible + small { outline: 3px solid var(--accent); outline-offset: 5px; }
.anpr-demo-drop:focus-within .anpr-demo-file-label { outline: 3px solid var(--accent); outline-offset: 4px; }
.anpr-demo-drop small { margin-top: 16px; color: var(--muted); font-size: .8125rem; }
.anpr-demo-preview { display: flex; flex-direction: column; min-width: 0; }
.anpr-demo-preview[hidden], .anpr-demo-drop[hidden], .anpr-demo-results[hidden] { display: none; }
.anpr-demo-image-wrap { position: relative; display: grid; place-items: center; flex: 1; min-height: 340px; overflow: hidden; border-radius: 6px 6px 0 0; background: #142035; }
.anpr-demo-image-wrap img { display: block; width: auto; height: auto; max-width: 100%; max-height: 560px; object-fit: contain; }
.anpr-demo-boxes { position: absolute; pointer-events: none; }
.anpr-demo-box { position: absolute; border: 2px solid #bcf651; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.anpr-demo-box span { position: absolute; left: -2px; bottom: calc(100% + 2px); display: block; padding: 3px 6px; background: #bcf651; color: #101a2d; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.anpr-demo-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px 0; font-size: .8125rem; }
.anpr-demo-preview-bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.anpr-demo-change { flex: none; padding: 8px; border: 0; background: transparent; color: var(--accent); font-size: .8125rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.anpr-demo-panel { display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 3vw, 42px); }
.anpr-demo-panel-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 48px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.anpr-demo-step { color: var(--muted); }
.anpr-demo-live { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); }
.anpr-demo-live span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.anpr-demo-panel h3 { font-size: clamp(1.75rem, 2.7vw, 2.625rem); letter-spacing: -.035em; }
.anpr-demo-explainer { margin-top: 16px; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.anpr-demo-submit { align-self: flex-start; margin-top: 30px; }
.anpr-demo-submit:disabled { opacity: .48; cursor: not-allowed; }
.anpr-demo-status { min-height: 1.5em; margin-top: 18px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.anpr-demo-status[data-state=error] { color: #a52c28; font-weight: 600; }
.anpr-demo-status[data-state=success] { color: #23623d; font-weight: 600; }
.anpr-demo-status[data-state=loading]::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 9px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: anpr-spin .7s linear infinite; vertical-align: -1px; }
@keyframes anpr-spin { to { transform: rotate(360deg); } }
.anpr-demo-results { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.anpr-demo-results h4 { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.anpr-demo-results ol { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.anpr-demo-results li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); }
.anpr-demo-results li strong { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.125rem; letter-spacing: .08em; overflow-wrap: anywhere; }
.anpr-demo-results li span { color: var(--muted); font-size: .8125rem; }
.anpr-demo-privacy { margin-top: auto; padding-top: 28px; color: #536171; font-size: .8125rem; line-height: 1.55; }
@media (max-width: 900px) { .anpr-demo-workspace { grid-template-columns: 1fr; } .anpr-demo-stage { min-height: 420px; } .anpr-demo-panel-top { margin-bottom: 26px; } .anpr-demo-privacy { margin-top: 12px; } }
@media (max-width: 600px) { .anpr-demo-intro { grid-template-columns: 1fr; gap: 14px; } .anpr-demo-intro > p { font-size: .9375rem; } .anpr-demo-stage { min-height: 320px; padding: 10px; } .anpr-demo-drop { min-height: 300px; } .anpr-demo-image-wrap { min-height: 260px; } .anpr-demo-panel { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { .anpr-demo-status[data-state=loading]::before { animation-duration: 1.8s; } }
