/* ============================================
   BestEMRs Design System
   Playful quiz-app aesthetic, mobile-first
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e1b4b;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: #7c3aed;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #5b21b6;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Layout Helpers --- */
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1e1b4b;
  font-size: 1.2rem;
}

.nav-logo-icon {
  font-size: 1.4rem;
}

.nav-logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.nav-logo-text strong {
  color: #7c3aed;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #7c3aed;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1e1b4b;
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-micro {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 20px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* --- Buttons --- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #7c3aed;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  color: #5b21b6;
}

.btn-cta .btn-arrow {
  transition: transform 0.3s;
}

.btn-cta:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-small {
  font-size: 0.95rem;
  padding: 12px 28px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #7c3aed;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 100px;
  border: 2px solid #7c3aed;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #7c3aed;
  color: #ffffff;
}

.btn-quiz-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn-quiz-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.btn-quiz-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-quiz-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #6b7280;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid #d1d5db;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-quiz-secondary:hover {
  border-color: #7c3aed;
  color: #7c3aed;
}

/* --- How It Works --- */
.how-it-works {
  padding: 80px 20px;
  background: #f5f3ff;
}

.how-it-works h2, .featured-emrs h2, .testimonials h2, .seo-content h2, .faq-section h2, .bottom-cta h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.06);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.step-card p {
  color: #6b7280;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- Featured EMRs --- */
.featured-emrs {
  padding: 80px 20px;
}

.emr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.featured-emr-card {
  background: #ffffff;
  border: 2px solid #f3f4f6;
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: #1e1b4b;
  transition: all 0.3s;
}

.featured-emr-card:hover {
  border-color: #7c3aed;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.1);
  color: #1e1b4b;
}

.emr-card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.featured-emr-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.featured-emr-card p {
  color: #6b7280;
  font-size: 0.9rem;
}

.section-cta-text {
  text-align: center;
  color: #6b7280;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .emr-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .emr-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Testimonials --- */
.testimonials {
  padding: 80px 20px;
  background: #f5f3ff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: #1e1b4b;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- SEO Content --- */
.seo-content {
  padding: 80px 20px;
}

.seo-content h2 {
  text-align: left;
  margin-bottom: 16px;
}

.seo-content h3 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.seo-content p {
  color: #374151;
  margin-bottom: 16px;
  font-size: 1rem;
}

/* --- FAQ --- */
.faq-section {
  padding: 80px 20px;
  background: #f5f3ff;
}

.faq-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #1e1b4b;
}

.faq-item p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Bottom CTA --- */
.bottom-cta {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  color: #ffffff;
}

.bottom-cta h2 {
  color: #ffffff;
}

.bottom-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* --- Quiz Container --- */
.quiz-container {
  min-height: 80vh;
  padding: 0 20px;
  background: #f5f3ff;
}

/* Progress Bar */
.quiz-progress {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 0 8px;
}

.quiz-progress-bar-bg {
  height: 8px;
  background: #e5e7eb;
  border-radius: 100px;
  overflow: hidden;
}

.quiz-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 8px;
}

/* Quiz Card */
.quiz-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 0 60px;
  animation: quizSlideIn 0.4s ease;
}

@keyframes quizSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes quizSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-40px);
  }
}

.quiz-card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.quiz-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-align: left;
}

.quiz-card-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* Quiz Options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.quiz-option:hover {
  border-color: #c4b5fd;
  background: #faf5ff;
}

.quiz-option.selected {
  border-color: #7c3aed;
  background: #f5f3ff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.quiz-option-radio {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.quiz-option.selected .quiz-option-radio {
  border-color: #7c3aed;
  background: #7c3aed;
}

.quiz-option.selected .quiz-option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

/* Multi-select checkbox style */
.quiz-option-checkbox {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.quiz-option.selected .quiz-option-checkbox {
  border-color: #7c3aed;
  background: #7c3aed;
}

.quiz-option.selected .quiz-option-checkbox::after {
  content: '\2713';
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.quiz-option-content {
  flex: 1;
  min-width: 0;
}

.quiz-option-label {
  font-weight: 600;
  font-size: 1rem;
  color: #1e1b4b;
  display: block;
}

.quiz-option-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 2px;
}

/* Quiz Navigation */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.quiz-skip {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.2s;
}

.quiz-skip:hover {
  color: #6b7280;
}

/* --- Results --- */
.results-container {
  min-height: 80vh;
  padding: 0 20px;
  background: #f5f3ff;
}

.results-header {
  text-align: center;
  padding: 48px 0 32px;
  max-width: 640px;
  margin: 0 auto;
}

.results-header h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.results-header p {
  color: #6b7280;
  font-size: 1.05rem;
}

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -20px;
  opacity: 0;
  animation: confettiFall 3s ease-in forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

/* Result Cards */
.results-list {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.result-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
  animation: resultSlideUp 0.5s ease forwards;
  opacity: 0;
}

.result-card:hover {
  transform: translateY(-2px);
}

@keyframes resultSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }

.result-card.top-match {
  border: 2px solid #10b981;
}

.result-rank-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 0 16px 0 16px;
}

.result-card.top-match .result-rank-badge {
  background: linear-gradient(135deg, #10b981, #059669);
}

.result-top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.result-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.result-info h2 {
  font-size: 1.3rem;
  text-align: left;
  margin-bottom: 4px;
}

.result-info p {
  color: #6b7280;
  font-size: 0.9rem;
}

.result-match-score {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f5f3ff;
  border-radius: 12px;
}

.match-percentage {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #7c3aed;
  line-height: 1;
}

.result-card.top-match .match-percentage {
  color: #10b981;
}

.match-label {
  font-size: 0.85rem;
  color: #6b7280;
}

.match-bar-bg {
  flex: 1;
  height: 10px;
  background: #e5e7eb;
  border-radius: 100px;
  overflow: hidden;
}

.match-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card.top-match .match-bar-fill {
  background: linear-gradient(90deg, #10b981, #059669);
}

.result-factors {
  margin-bottom: 16px;
}

.result-factors h4 {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-factor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.factor-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

.factor-tag.strength {
  background: #d1fae5;
  color: #065f46;
}

.factor-tag.neutral {
  background: #fef3c7;
  color: #92400e;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.result-actions a {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  transition: all 0.2s;
}

.result-actions .btn-profile {
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
}

.result-actions .btn-profile:hover {
  background: #e5e7eb;
}

.result-actions .btn-website {
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #ffffff;
  text-decoration: none;
}

.result-actions .btn-website:hover {
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.results-retake {
  text-align: center;
  padding: 32px 0;
}

.results-loading {
  text-align: center;
  padding: 80px 20px;
}

.results-loading h2 {
  margin-bottom: 12px;
}

.results-loading p {
  color: #6b7280;
  margin-bottom: 24px;
}

/* Compare Table */
.compare-toggle {
  text-align: center;
  margin-bottom: 32px;
}

.compare-table-wrapper {
  overflow-x: auto;
  margin-bottom: 40px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th {
  background: #f5f3ff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: #1e1b4b;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-score {
  font-weight: 600;
}

.compare-score.high {
  color: #10b981;
}

.compare-score.medium {
  color: #f59e0b;
}

.compare-score.low {
  color: #ef4444;
}

/* --- EMR Profile Page --- */
.emr-profile {
  padding: 48px 20px 80px;
}

.emr-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.emr-profile-icon {
  font-size: 3.5rem;
}

.emr-profile-header h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.emr-profile-tagline {
  color: #6b7280;
  font-size: 1.1rem;
}

.emr-profile-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.emr-profile-main h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  margin-top: 32px;
  text-align: left;
}

.emr-profile-main h2:first-child {
  margin-top: 0;
}

.emr-profile-main p {
  color: #374151;
  font-size: 1rem;
  line-height: 1.8;
}

.emr-features-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.emr-features-list li {
  padding: 10px 16px 10px 36px;
  background: #f5f3ff;
  border-radius: 10px;
  font-size: 0.95rem;
  position: relative;
}

.emr-features-list li::before {
  content: '\2713';
  position: absolute;
  left: 12px;
  color: #10b981;
  font-weight: 700;
}

.best-for-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.best-for-tag {
  display: inline-block;
  padding: 6px 16px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
}

.emr-meta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.emr-meta p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.emr-profile-sidebar {
  position: sticky;
  top: 84px;
}

.scores-card {
  background: #ffffff;
  border: 2px solid #f3f4f6;
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 24px;
}

.scores-card h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.score-label {
  font-size: 0.8rem;
  color: #6b7280;
  width: 110px;
  flex-shrink: 0;
}

.score-bar-bg {
  flex: 1;
  height: 8px;
  background: #f3f4f6;
  border-radius: 100px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
  border-radius: 100px;
}

.score-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #1e1b4b;
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

.sidebar-cta {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  border-radius: 20px;
  padding: 28px 24px;
  color: #ffffff;
}

.sidebar-cta h3 {
  color: #ffffff;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .emr-profile-grid {
    grid-template-columns: 1fr;
  }

  .emr-profile-sidebar {
    position: static;
  }
}

/* --- Blog --- */
.blog-index {
  padding: 48px 20px 80px;
}

.blog-index h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 12px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  display: block;
  background: #ffffff;
  border: 2px solid #f3f4f6;
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: #1e1b4b;
  transition: all 0.3s;
}

.blog-card:hover {
  border-color: #7c3aed;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.08);
  color: #1e1b4b;
}

.blog-card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-category {
  background: #f5f3ff;
  color: #7c3aed;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-read-time {
  color: #9ca3af;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
}

.blog-card h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  text-align: left;
}

.blog-card p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-date {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* --- Blog Post --- */
.blog-post {
  padding: 48px 20px 80px;
}

.blog-post-inner {
  max-width: 720px;
}

.blog-post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-post-meta time {
  font-size: 0.85rem;
  color: #9ca3af;
}

.blog-post h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.blog-post-author {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.blog-post-content h3 {
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 16px;
}

.blog-post-content p {
  color: #374151;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.blog-post-content strong {
  color: #1e1b4b;
}

.blog-post-cta {
  background: #f5f3ff;
  border-radius: 16px;
  padding: 32px;
  margin-top: 40px;
  margin-bottom: 32px;
  text-align: center;
}

.blog-post-cta h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.blog-post-cta p {
  color: #6b7280;
  margin-bottom: 20px;
}

.back-link {
  display: inline-block;
  color: #7c3aed;
  font-weight: 500;
  font-size: 0.95rem;
}

/* --- Content & Legal Pages --- */
.content-page {
  padding: 48px 20px 80px;
}

.content-page h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.content-page h2 {
  font-size: 1.4rem;
  margin-top: 36px;
  margin-bottom: 16px;
  text-align: left;
}

.content-page h3 {
  font-size: 1.15rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.content-page p {
  color: #374151;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-updated {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.methodology-dimensions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.dimension-card {
  background: #ffffff;
  border: 2px solid #f3f4f6;
  border-radius: 16px;
  padding: 24px 20px;
}

.dimension-card h3 {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 8px;
  color: #7c3aed;
}

.dimension-card p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0;
}

.methodology-cta, .about-cta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.methodology-cta h3 {
  margin-top: 0;
}

.about-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
  background: #1e1b4b;
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 20px 32px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-brand .nav-logo-icon {
  display: inline;
}

.footer-brand .nav-logo-text {
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-tagline {
  margin-top: 8px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 80px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 640px) {
  .footer-links {
    flex-direction: column;
    gap: 32px;
  }
}

/* --- Not Found --- */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
