:root {
  --hh-ink: #0f172a;
  --hh-muted: #64748b;
  --hh-brand: #0d9488;
  --hh-brand-dark: #0f766e;
  --hh-accent: #f59e0b;
  --hh-surface: #ffffff;
  --hh-bg: #f8fafc;
  --hh-border: #e2e8f0;
  --hh-radius: 14px;
  --hh-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  --hh-shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--hh-ink);
  background: var(--hh-bg);
}

:focus-visible {
  outline: 2px solid var(--hh-brand);
  outline-offset: 2px;
}

/* Cards */
.hh-card {
  background: var(--hh-surface);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-radius);
  box-shadow: var(--hh-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hh-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hh-shadow-lg);
  border-color: #cbd5e1;
}

.hh-card-active {
  border-color: var(--hh-brand) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Buttons */
.btn-primary {
  background: var(--hh-brand);
  color: white;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover { background: var(--hh-brand-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: white;
  color: var(--hh-ink);
  font-weight: 600;
  border: 1px solid var(--hh-border);
  border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover { background: #f1f5f9; border-color: #cbd5e1; }

.btn-accent {
  background: var(--hh-accent);
  color: white;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.btn-accent:hover { background: #d97706; }

/* Match badge */
.match-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
}

/* Progress bar */
.progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d9488, #14b8a6);
  transition: width 0.6s ease;
}

/* Market insight bars */
.insight-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}
.insight-fill {
  height: 100%;
  border-radius: 6px;
  background: #0d9488;
}

/* Mobile bottom safe */
.safe-pb {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* Subtle page enter */
.page-enter {
  animation: hhFade 0.28s ease;
}
@keyframes hhFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Line clamps */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal backdrop */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

/* Scrollbar */
.hh-scroll::-webkit-scrollbar { width: 5px; }
.hh-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Hero heading pop-in animation */
@keyframes heroPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(18px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-line {
  display: inline-block;
  opacity: 0;
  animation: heroPop 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-line-1 {
  animation-delay: 0.15s;
}

.hero-line-2 {
  animation-delay: 0.45s;
}

.hero-sub {
  opacity: 0;
  animation: heroPop 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}
