/* Public /demo page — ClearLayer brand: Navy #0D1B2E, Blue #5078DC, Sky #64B4F0 */

.demo-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #0d1b2e;
  color: #e8eef7;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: 680px;
  margin: 0 auto;
}

.demo-header__end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.demo-lang-select {
  flex-shrink: 0;
  min-width: 6.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(100, 180, 240, 0.45);
  color: #ffffff;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 16px;
  min-height: 44px;
  -webkit-appearance: menulist;
  appearance: auto;
}

.demo-lang-select option {
  color: #0d1b2e;
  background-color: #ffffff;
}

.demo-sign-in {
  color: #64b4f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.demo-sign-in:hover {
  text-decoration: underline;
}

.demo-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.demo-hero h1 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: #fff;
}

.demo-hero__sub {
  margin: 0 0 1.5rem;
  color: #a8b8d0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.demo-dropzone {
  border: 2px dashed rgba(80, 120, 220, 0.65);
  border-radius: 14px;
  padding: 2rem 1.25rem;
  text-align: center;
  background: rgba(80, 120, 220, 0.06);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.demo-dropzone.is-dragover {
  border-color: #64b4f0;
  background: rgba(100, 180, 240, 0.12);
}

.demo-dropzone__label {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.demo-dropzone__hint {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: #8fa3be;
}

.demo-filename {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: #64b4f0;
  font-weight: 600;
}

.demo-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.demo-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-btn--primary {
  background: linear-gradient(135deg, #5078dc, #64b4f0);
  color: #0d1b2e;
}

.demo-btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e8eef7;
  border: 1px solid rgba(100, 180, 240, 0.4);
}

.demo-btn--ghost {
  background: transparent;
  color: #64b4f0;
  border: 1px solid rgba(100, 180, 240, 0.35);
}

.demo-btn--lg {
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
}

.demo-intake {
  display: flex;
  flex-direction: column;
}

#deskIntakeColumn.desk-intake-processing #deskIntakeUploadBlock {
  display: none;
}

.clearance-loading-card {
  display: none;
  min-height: 12rem;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(80, 120, 220, 0.35);
  background: linear-gradient(180deg, rgba(80, 120, 220, 0.12) 0%, rgba(13, 27, 46, 0.95) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  padding: 2rem 1.5rem;
  text-align: center;
}

.clearance-loading-card.is-active {
  display: flex;
}

.clearance-loading-card__inner {
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
}

.clearance-loading-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(100, 180, 240, 0.35);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: clearance-loading-pulse 2.4s ease-in-out infinite;
}

.clearance-loading-card__logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

@keyframes clearance-loading-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.92; }
}

.clearance-loading-card__message {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: #e8eef7;
  min-height: 2.75rem;
  transition: opacity 0.25s ease;
}

.clearance-loading-card__message.is-fading {
  opacity: 0.45;
}

.clearance-loading-card__progress-track {
  margin: 1.25rem auto 0;
  height: 0.375rem;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
}

.clearance-loading-card__progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #5078dc 0%, #64b4f0 100%);
  transition: width 0.45s ease;
}

.clearance-loading-card__hint {
  margin: 1rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: #8fa3be;
}

.demo-rate-limit {
  margin: 1.5rem 0;
  max-width: 36rem;
}

.demo-rate-limit__card {
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 12px;
  background: rgba(238, 242, 255, 0.92);
  padding: 1.5rem 1.75rem;
  text-align: center;
}

.demo-rate-limit__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.demo-rate-limit p {
  margin: 0 0 1rem;
}

.demo-upload-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}

.demo-summary {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #a8b8d0;
}

.demo-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(80, 120, 220, 0.25);
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.demo-table th,
.demo-table td {
  padding: 0.55rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-table th {
  color: #64b4f0;
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-field-low {
  color: #fbbf24;
}

.demo-verify-badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-cta {
  margin-top: 2.5rem;
}

.demo-conversion-card {
  padding: 2rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(80, 120, 220, 0.18), rgba(13, 27, 46, 0.9));
  border: 1px solid rgba(100, 180, 240, 0.25);
  text-align: left;
}

.demo-conversion-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.demo-conversion-card__intro,
.demo-conversion-card__lead {
  margin: 0 0 0.75rem;
  color: #a8b8d0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.demo-conversion-card__lead {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #c8d4e8;
}

.demo-conversion-card__features {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: #a8b8d0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.demo-conversion-card__features li {
  margin-bottom: 0.35rem;
}

.demo-footer {
  max-width: 680px;
  margin: 2rem auto 0;
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7f99;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .demo-table {
    font-size: 0.75rem;
  }
  .demo-upload-actions {
    flex-direction: column;
  }
  .demo-upload-actions .demo-btn {
    width: 100%;
  }
}
