/* Shared styles for the AI demo pages */

.upload-zone {
  display: block;
  background: var(--blue-50);
  border: 2px dashed var(--blue-500);
  border-radius: var(--radius-lg);
  padding: 36px 18px;
  text-align: center;
  cursor: pointer;
  margin: 12px 0;
  transition: background var(--dur-fast) var(--ease);
}
.upload-zone:hover { background: var(--blue-100); }
.upload-content { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.upload-icon { font-size: 42px; }
.upload-content strong { color: var(--navy-900); font-size: 16px; }
.upload-content span { color: var(--ink-500); font-size: 13px; }

#photo-preview img,
#analyzing-img,
#result-img {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.analyze-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.analyze-wrap .scan-line {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 5%;
  background: linear-gradient(180deg, rgba(46,134,224,0) 0%, rgba(46,134,224,0.85) 50%, rgba(46,134,224,0) 100%);
  filter: blur(2px);
  pointer-events: none;
  animation: scan-down 2.4s linear infinite;
  z-index: 5;
}
@keyframes scan-down { 0% { top: -5%; } 100% { top: 100%; } }

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (min-width: 720px) {
  .result-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.result-headline {
  font-size: 24px; font-weight: 900; color: var(--navy-900);
  letter-spacing: -0.01em;
}
.result-subline {
  color: var(--ink-700); font-size: 14px; margin-top: 6px;
}
.result-warning {
  background: var(--warn-bg); color: var(--warn);
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 12px; margin-top: 10px;
}
.result-stats {
  display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap;
}
.stat-pill {
  background: var(--blue-100); color: var(--navy-700);
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 13px;
}
.stat-pill strong { font-weight: 800; }

.features-list {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 4px 16px;
  margin-bottom: 18px;
}
.feature-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.feature-row:last-child { border-bottom: 0; }
.feat-key { font-weight: 700; color: var(--navy-900); flex-shrink: 0; }
.feat-val { color: var(--ink-700); text-align: right; }

/* Generic demo card grid for hub page */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.demo-card {
  display: flex; flex-direction: column;
  padding: 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none !important;
  color: inherit;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.demo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--blue-500);
}
.demo-card.is-mockup { opacity: 0.75; }
.demo-emoji {
  font-size: 32px;
  width: 56px; height: 56px;
  background: var(--blue-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.demo-card h3 {
  font-size: 16px; font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 6px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.demo-card p {
  font-size: 13px; color: var(--ink-500); margin: 0;
  line-height: 1.55;
}
.demo-cta {
  display: inline-block; margin-top: 12px;
  font-weight: 700; color: var(--blue-500); font-size: 13px;
}

/* Sample data toggle for review/profile/pricing demos */
.sample-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.sample-chip {
  background: var(--blue-50); border: 1px solid var(--blue-100);
  color: var(--navy-700);
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  cursor: pointer; border: 0;
}
.sample-chip:hover { background: var(--blue-100); }

.ai-result {
  background: var(--paper);
  border: 1px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 14px;
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 14px;
  color: var(--ink-900);
}
.ai-result h4 {
  margin: 12px 0 6px;
  font-size: 13px;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ai-result ul { padding-left: 22px; margin: 6px 0 10px; }
.ai-result li { margin-bottom: 4px; }

/* Verify completion — dual upload */
.verify-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
@media (max-width: 540px) {
  .verify-grid { grid-template-columns: 1fr; }
  .verify-arrow { display: none; }
}
.verify-slot { display: flex; flex-direction: column; gap: 6px; }
.verify-label {
  font-size: 10px; font-weight: 800; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: 0.08em; text-align: center;
}
.verify-slot img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.verify-arrow {
  font-size: 28px; color: var(--blue-500); font-weight: 800; text-align: center;
}
.upload-zone-mini {
  padding: 18px 12px; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.upload-zone-mini .upload-icon { font-size: 32px; }
.upload-zone-mini strong { font-size: 13px; }
.upload-zone-mini span { font-size: 11px; }
