/* style.css — PhotoLookup PWA
   Mobile-first, clean, professional.
   No frameworks, no build step. */

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafafa;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-light: #666666;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e5e7eb;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --premium: #7c3aed;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== Landing Page — Hero ========== */
.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.logo {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 22px;
  font-weight: 600;
  margin: 8px 0;
  color: var(--text);
}

.subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 24px;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.cta-button:hover { background: var(--accent-hover); text-decoration: none; }

.free-note {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 12px;
}

/* ========== Features ========== */
.features, .pricing, .how-it-works, .trust {
  padding: 40px 0;
}

.features h2, .pricing h2, .how-it-works h2, .trust h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.feature-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.feature-card p { font-size: 14px; color: var(--text-light); }
.feature-icon { font-size: 28px; flex-shrink: 0; }

.premium-card { border-color: var(--premium); border-width: 2px; }
.premium-card h3 { color: var(--premium); }

/* ========== Pricing Cards ========== */
.price-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.price-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  position: relative;
}

.price-card.featured { border-color: var(--premium); }

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--premium);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }

.price {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.price span { font-size: 14px; font-weight: 400; color: var(--text-light); }

.price-card ul {
  list-style: none;
  text-align: left;
  margin: 16px 0;
  font-size: 13px;
}

.price-card li {
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-light);
}

.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.price-note { font-size: 12px; color: var(--text-light); }

/* ========== How It Works ========== */
.steps { display: flex; flex-direction: column; gap: 16px; }

.step {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step p { font-size: 15px; }

/* ========== Trust ========== */
.trust-points {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.trust-points p { padding: 6px 0; font-size: 14px; }

/* ========== Footer ========== */
footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }
.footer-links a { font-size: 13px; color: var(--text-light); }
.footer-copy { font-size: 12px; color: var(--text-light); }

/* ========== Check Page ========== */
.check-header {
  padding: 16px 0;
}

.back-link {
  font-size: 14px;
  color: var(--text-light);
}

.step-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }

/* Upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-area:hover, .upload-area.drag-over {
  border-color: var(--accent);
  background: #f0f7ff;
}

.upload-icon { font-size: 40px; display: block; margin-bottom: 8px; }
.upload-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* Photo previews */
.photo-previews {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-photo {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-count { font-size: 13px; color: var(--text-light); margin-top: 8px; }

/* Tier selector */
.tier-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.tier-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
}

.tier-option.selected { border-color: var(--accent); }
.tier-option input[type="radio"] { margin-top: 4px; }

.tier-name { font-size: 16px; font-weight: 700; }
.tier-price { font-size: 20px; font-weight: 800; color: var(--accent); margin: 2px 0; }
.tier-desc { font-size: 13px; color: var(--text-light); }

/* Total box */
.total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
}

#total-amount { color: var(--accent); font-size: 22px; }

/* Free check notice */
.free-notice {
  text-align: center;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  margin-top: 12px;
}

.free-notice p { font-size: 14px; color: var(--success); font-weight: 600; margin-bottom: 12px; }
.free-button { background: var(--success); }
.free-button:hover { background: #15803d; }

/* Processing */
.processing-animation {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

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

#processing-status { color: var(--text-light); font-size: 14px; margin-top: 12px; }

/* Results */
.results-container { margin: 20px 0; }

.result-photo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.result-photo h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.result-section { margin-bottom: 16px; }
.result-section h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.result-section p { font-size: 13px; color: var(--text-light); }

.match-count { color: var(--warning); font-weight: 600; margin-bottom: 6px; }
.no-matches { color: var(--success); }

.match-list {
  list-style: none;
  font-size: 13px;
}

.match-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.match-list li:last-child { border-bottom: none; }
.match-list a { word-break: break-all; }

.premium-result {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 8px;
  padding: 12px;
}

.results-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.secondary-button {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.secondary-button:hover { border-color: var(--accent); text-decoration: none; }

.results-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-light);
}

.results-footer p { margin: 4px 0; }

.results-link {
  margin-top: 12px;
  font-size: 11px;
  word-break: break-all;
}

/* ========== Responsive ========== */
@media (max-width: 480px) {
  .price-cards { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 30px; }
  .tagline { font-size: 20px; }
}
