/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: #333;
  background: #f8f9ff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input { font-family: inherit; }
img { max-width: 100%; }

/* ========== CSS VARIABLES ========== */
:root {
  --primary: #667eea;
  --primary-dark: #764ba2;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --red: #e05577;
  --orange: #e8a030;
  --green: #22c55e;
  --blue: #667eea;
  --bg: #f8f9ff;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #333333;
  --text-light: #777777;
  --text-muted: #999999;
  --text-faint: #aaaaaa;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 8px 40px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --max-width: 1080px;
}

/* ========== ANIMATIONS ========== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tab panel visibility */
.tab-panel { display: none; }
.tab-panel.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--primary); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-slide-up { animation: slideUp 0.5s ease-out both; }
.animate-fade-scale { animation: fadeInScale 0.4s ease-out both; }
.animate-fade { animation: fadeIn 0.4s ease-out both; }

/* Staggered delays */
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }

/* ========== NAVIGATION ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.2s;
  border: none;
  background: none;
}
.nav-link:hover {
  color: var(--primary);
  background: #f0f0ff;
}
.nav-link.active {
  color: var(--primary);
  background: #f0f0ff;
  font-weight: 600;
}
.nav-cta {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  background: var(--gradient);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all 0.2s;
  margin-left: 8px;
}
.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text);
  padding: 4px;
}

/* ========== HERO HEADER (GRADIENT) ========== */
.hero-header {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 56px 24px 40px;
}
.hero-header .kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
}
.hero-header h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero-header p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto;
}

/* ========== SEARCH BAR ========== */
.search-bar {
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: white;
  max-width: 560px;
  margin: 0 auto;
}
.search-bar input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
  min-width: 0;
}
.search-bar input::placeholder { color: #bbb; }
.search-bar button {
  padding: 16px 28px;
  background: var(--gradient);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.search-bar button:hover { opacity: 0.9; }

.search-bar--outlined {
  box-shadow: none;
  border: 2px solid var(--primary);
}
.search-bar--outlined button {
  border-radius: 0;
}

.search-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ========== SECTION CONTAINERS ========== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
}
.section-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ========== CARDS ========== */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-padded {
  padding: 20px;
}

/* ========== GAP CARDS ========== */
.gap-card {
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gap-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.gap-card--critical { border-left-color: var(--red); }
.gap-card--high { border-left-color: var(--orange); }
.gap-card--medium { border-left-color: var(--blue); }
.gap-card--opportunity { border-left-color: var(--green); }

.gap-severity {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gap-severity--critical { color: var(--red); }
.gap-severity--high { color: var(--orange); }
.gap-severity--medium { color: var(--blue); }
.gap-severity--opportunity { color: var(--green); }

.gap-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}
.gap-detail {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.5;
}
.gap-action {
  margin-top: 10px;
  background: none;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.gap-action--critical { color: var(--red); border-color: rgba(224,85,119,0.2); }
.gap-action--high { color: var(--orange); border-color: rgba(232,160,48,0.2); }
.gap-action--medium { color: var(--blue); border-color: rgba(102,126,234,0.2); }
.gap-action--opportunity { color: var(--green); border-color: rgba(34,197,94,0.2); }

/* ========== QUESTION CARDS ========== */
.question-card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.question-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.question-num {
  background: #f0f0ff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.question-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.question-link {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

/* ========== STAT BADGES ========== */
.stat-badge {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}
.stat-badge--blue { background: #f0f0ff; color: var(--primary); }
.stat-badge--green { background: #f0fff4; color: var(--green); }

/* ========== TABS ========== */
.tabs {
  display: flex;
  gap: 0;
}
.tab-btn {
  padding: 10px 20px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: none;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.tab-btn.active {
  background: white;
  color: var(--primary);
}
.tab-btn:hover:not(.active) {
  color: white;
}
.tab-count {
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  color: white;
}
.tab-btn.active .tab-count { background: var(--primary); }
.tab-btn:not(.active) .tab-count { background: rgba(255,255,255,0.2); }

/* ========== BROWSER CHROME (DEMO) ========== */
.browser-chrome {
  background: #1a1a2e;
  border-radius: 12px 12px 0 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dot--red { background: #ff5f57; }
.browser-dot--yellow { background: #ffbd2e; }
.browser-dot--green { background: #28c840; }
.browser-url {
  flex: 1;
  background: #2a2a4e;
  border-radius: 6px;
  padding: 5px 12px;
  margin-left: 10px;
  font-size: 11px;
  color: #8888aa;
}
.browser-body {
  background: white;
  border-radius: 0 0 12px 12px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
}

/* ========== DEMO SEARCH BAR ========== */
.demo-search {
  display: flex;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.demo-search-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
}
.demo-search-input .cursor {
  border-right: 2px solid var(--primary);
  margin-left: 1px;
  height: 18px;
  animation: blink 0.8s infinite;
}
.demo-search-btn {
  padding: 14px 28px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}
.demo-search-btn--active {
  background: var(--gradient);
  color: white;
}
.demo-search-btn--inactive {
  background: #e5e7eb;
  color: var(--text-muted);
}

/* ========== DATABASE ICONS ========== */
.db-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
.db-icon {
  text-align: center;
}
.db-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
  margin: 0 auto 6px;
}
.db-icon-label {
  font-size: 10px;
  color: var(--text-muted);
}

/* ========== RESULT ITEMS ========== */
.result-item {
  padding: 12px 0;
  border-top: 1px solid #f0f0f5;
}
.result-item:first-child { border-top: none; }
.result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.result-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}
.result-citations { color: var(--primary); }

/* ========== GAP ANALYSIS GRID ========== */
.gap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gap-mini {
  background: #fafbff;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.04);
}
.gap-mini-label {
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 4px;
}
.gap-mini-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.gap-mini-detail {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========== BEFORE/AFTER ========== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 28px;
}
.compare-side {
  padding: 28px;
  position: relative;
  transition: transform 0.3s;
}
.compare-side:hover { transform: scale(1.01); }
.compare-side--before {
  background: #fff5f5;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  border-right: 2px dashed #ddd;
}
.compare-side--after {
  background: #f0f0ff;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.compare-badge {
  position: absolute;
  top: -12px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: white;
}
.compare-badge--before { left: 20px; background: #ef4444; }
.compare-badge--after { right: 20px; background: var(--gradient); }

/* ========== BAR CHART ========== */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.bar {
  flex: 1;
  background: var(--gradient);
  border-radius: 3px 3px 0 0;
  transition: opacity 0.3s;
  min-height: 2px;
}
.bar--dim { opacity: 0.35; }
.bar--bright { opacity: 1; }
.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #bbb;
  margin-top: 2px;
}

/* ========== DASHBOARD ========== */
.dashboard {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}
.dashboard-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #f0f0f5;
}
.dashboard-stat {
  padding: 16px;
  text-align: center;
  border-right: 1px solid #f0f0f5;
}
.dashboard-stat:last-child { border-right: none; }
.dashboard-stat-num {
  font-size: 22px;
  font-weight: 800;
}
.dashboard-stat-label {
  font-size: 11px;
  color: var(--text-muted);
}
.dashboard-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.dashboard-left {
  padding: 16px 20px;
  border-right: 1px solid #f0f0f5;
}
.dashboard-right {
  padding: 16px 20px;
}
.dashboard-export {
  padding: 12px 20px;
  border-top: 1px solid #f0f0f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafbff;
}
.export-btns {
  display: flex;
  gap: 8px;
}
.export-btn {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #e0e0e8;
  font-size: 11px;
  color: var(--text-muted);
  background: none;
  transition: all 0.2s;
}
.export-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ========== EMAIL GATE MODAL ========== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.2s ease-out;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  animation: fadeInScale 0.3s ease-out;
}
.modal-icon { font-size: 40px; margin-bottom: 12px; }
.modal h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.modal p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.5;
}
.modal input {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 2px solid #e0e0e8;
  font-size: 15px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.modal input:focus { border-color: var(--primary); }
.modal .btn-full {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--gradient);
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 600;
}
.modal-checks {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  color: white;
}
.cta-banner h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cta-banner p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 24px;
}
.cta-banner .search-bar {
  max-width: 480px;
}
.cta-banner .search-bar button {
  background: #ffd700;
  color: #333;
}

/* ========== FOOTER ========== */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.6);
  padding: 40px 24px;
  margin-top: 48px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.6;
}
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-link {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-link:hover { color: white; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  text-align: center;
}

/* ========== BLURRED TEASER ========== */
.blurred-teaser {
  filter: blur(3px);
  opacity: 0.4;
  pointer-events: none;
}

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.items-center { align-items: center; }

/* ========== AI BADGE ========== */
.ai-badge {
  background: var(--gradient);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* ========== SECTION HEADING ========== */
.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ========== REPLAY BUTTON ========== */
.replay-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.replay-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ========== FEATURE GRID (HOME) ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 14px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ========== LAUNCH WEEK BANNER ========== */
.launch-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
  color: #333;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.launch-banner a {
  color: var(--primary-dark);
  text-decoration: underline;
  font-weight: 700;
}
.launch-banner .banner-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  padding: 0 4px;
}
body.has-banner .nav {
  top: 36px;
}
body.has-banner {
  padding-top: 36px;
}

/* ========== SELECTION TOOLBAR ========== */
.select-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #f0f2ff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(99,91,255,0.15);
  flex-wrap: wrap;
  gap: 8px;
}
.select-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.select-btn {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}
.select-btn:hover, .select-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.analyze-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}
.analyze-btn:hover { opacity: 0.9; }
.selection-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== SCROLLABLE TABS ========== */
.tabs-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -24px;
  padding: 0 24px;
}
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-scroll .tabs {
  display: flex;
  gap: 0;
  min-width: max-content;
  padding-right: 24px;
}
.tabs-scroll .tab-btn {
  padding: 10px 14px;
  font-size: 12px;
  white-space: nowrap;
}

/* ========== SIGNUP PAGE ========== */
.signup-container {
  max-width: 480px;
  margin: 40px auto;
  padding: 0 24px;
}
.signup-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.signup-header {
  background: var(--gradient);
  color: white;
  padding: 32px;
  text-align: center;
}
.signup-header h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}
.signup-header p {
  font-size: 14px;
  opacity: 0.85;
}
.signup-form {
  padding: 32px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}
.signup-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
  margin-top: 8px;
}
.signup-submit:hover { opacity: 0.9; }
.signup-footer {
  text-align: center;
  padding: 16px 32px 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.signup-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* ========== RESULT LIST ========== */
.result-list-item {
  background: var(--card);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.result-list-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.result-list-item .result-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.result-list-item .result-body {
  flex: 1;
}
.result-list-item .result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}
.result-list-item .result-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.result-list-item .result-citations {
  color: var(--primary);
  font-weight: 600;
}

/* ========== FUNDING CARDS ========== */
.funding-card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.funding-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f5;
  font-size: 13px;
}
.funding-row:last-child { border-bottom: none; }
.funding-source { font-weight: 600; color: var(--text); }
.funding-amount { font-weight: 700; color: var(--orange); }
.funding-bar {
  height: 6px;
  background: var(--gradient);
  border-radius: 3px;
  margin-top: 4px;
}

/* ========== PICO FORM (RESULTS TAB) ========== */
.pico-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.pico-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.pico-field textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.pico-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}
.pico-preview {
  background: linear-gradient(135deg, #f0f0ff 0%, #f5f1ff 100%);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 4px solid var(--primary);
}

/* ========== STUDY DESIGN (RESULTS TAB) ========== */
.study-chart {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.chart-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}
.chart-label {
  min-width: 130px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}
.chart-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-bar-fill {
  height: 22px;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 0.3s;
}
.chart-value {
  min-width: 40px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
}

/* ========== EXPORT PANEL ========== */
.export-panel {
  text-align: center;
  padding: 40px 20px;
}
.export-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 400px;
  margin: 24px auto;
}
.export-option {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.export-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.export-option .export-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.export-option .export-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.export-option .export-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 12px;
    box-shadow: var(--shadow-md);
  }
  .hero-header h1 { font-size: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-side--before { border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-right: none; border-bottom: 2px dashed #ddd; }
  .compare-side--after { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .gap-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-content { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .pico-grid { grid-template-columns: 1fr; }
  .export-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .search-bar { flex-direction: column; }
  .search-bar button { border-radius: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr; }
}
