/* ShopCheckr - Apple-clean white landing page */

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #f0f0f0;
}
.navbar-logo {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #111;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.navbar-logo span {
  color: #000;
}
.navbar-tag {
  font-size: 0.75rem;
  color: #999;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

/* HERO SECTION */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  text-align: center;
  background: #fff;
}

.hero-headline {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  color: #111;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 640px;
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #666;
  max-width: 480px;
  line-height: 1.65;
  font-weight: 400;
}

/* SEARCH BOX */
.search-container {
  margin-top: 2.5rem;
  width: 100%;
  max-width: 520px;
}

.search-input-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-row:focus-within {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.search-input {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
  border: none;
  outline: none;
  padding: 1rem 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  color: #111;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.search-input::placeholder {
  color: #aaa;
}

.search-input:disabled {
  background: #fafafa;
  cursor: not-allowed;
}

.search-btn {
  width: 100%;
  padding: 1rem;
  background: #111;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s, opacity 0.2s;
}

.search-btn:hover:not(:disabled) {
  background: #333;
}

.search-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hero-footnote {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #bbb;
  letter-spacing: 0.01em;
}

/* RESULTS PAGE */
.results-section {
  min-height: 100vh;
  padding: 7rem 1.5rem 4rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.results-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.result-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.result-source:last-child {
  border-bottom: none;
}

.source-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

.source-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}

.source-price.savings {
  color: #16a34a;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0f0f0;
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
}

.result-badge.best {
  background: #dcfce7;
  color: #16a34a;
}

.results-headline {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.results-sub {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 2rem;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: #000;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.back-link:hover {
  border-color: #000;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .navbar {
    padding: 1rem 1.25rem;
  }
  .navbar-tag {
    display: none;
  }
  .hero-section {
    padding: 6rem 1.25rem 3rem;
  }
  .results-section {
    padding: 6rem 1.25rem 3rem;
  }
  .results-card {
    padding: 1.5rem;
  }
}