html { scroll-behavior: smooth; }

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 40%, #059669 100%);
}

/* Score circles */
.score-circle {
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 5px solid currentColor;
  font-weight: 700;
}

/* Progress bar fill animation */
.bar-fill {
  transition: width 1s ease-out;
}

/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nav scroll state */
.nav-scrolled {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.nav-scrolled .nav-link { color: #374151 !important; }
.nav-scrolled .nav-logo { color: #1e3a5f !important; }
.nav-scrolled .nav-logo span { color: #059669 !important; }
.nav-scrolled #mobile-toggle { color: #374151 !important; }

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer.open {
  max-height: 500px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.faq-chevron {
  transition: transform 0.3s ease;
}
.faq-chevron.open {
  transform: rotate(180deg);
}

/* Print styles */
@media print {
  .no-print { display: none !important; }
  .page-break { page-break-before: always; }
  body { font-size: 11px; }
  .score-circle { border-width: 3px; width: 80px; height: 80px; }
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.mobile-menu.open {
  max-height: 300px;
}

/* Loading skeleton shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

/* ====== BLOG ARTICLE TYPOGRAPHY ====== */

.article-body {
  font-size: 1.125rem;
  line-height: 1.85;
  color: #374151;
  letter-spacing: -0.01em;
}

/* Lead paragraph — slightly larger and bolder */
.article-body > p:first-child {
  font-size: 1.25rem;
  line-height: 1.75;
  color: #1f2937;
  font-weight: 400;
}

/* Drop cap on first letter */
.article-body > p:first-child::first-letter {
  float: left;
  font-size: 3.6em;
  line-height: 0.8;
  padding-right: 0.08em;
  padding-top: 0.05em;
  font-weight: 800;
  color: #111827;
}

/* Headings */
.article-body h2 {
  font-size: 1.625rem;
  font-weight: 800;
  color: #111827;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid #e5e7eb;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 0.625rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

/* Paragraphs */
.article-body p {
  margin-bottom: 1.375rem;
}

/* Lists */
.article-body ul,
.article-body ol {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.article-body ul {
  list-style-type: disc;
}

.article-body ol {
  list-style-type: decimal;
}

.article-body li {
  margin-bottom: 0.625rem;
  padding-left: 0.375rem;
  line-height: 1.75;
}

.article-body li::marker {
  color: #9ca3af;
}

/* Nested lists */
.article-body li > ul,
.article-body li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Bold/strong */
.article-body strong {
  color: #111827;
  font-weight: 600;
}

/* Blockquotes */
.article-body blockquote {
  border-left: 4px solid #059669;
  padding: 1rem 1.5rem;
  margin: 1.75rem 0;
  background: #f8fafc;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #4b5563;
  line-height: 1.7;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Links */
.article-body a {
  color: #059669;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: #6ee7b7;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.article-body a:hover {
  color: #047857;
  text-decoration-color: #059669;
}

/* Horizontal rules */
.article-body hr {
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin: 2.5rem 0;
}

/* Images */
.article-body img {
  border-radius: 0.75rem;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Code inline */
.article-body code {
  background: #f1f5f9;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: #065f46;
}

/* Key stat callout */
.article-body .stat-callout {
  font-size: 1.375rem;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
  border-radius: 0.75rem;
  line-height: 1.5;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .article-body {
    font-size: 1.0625rem;
    line-height: 1.8;
  }

  .article-body > p:first-child {
    font-size: 1.125rem;
  }

  .article-body > p:first-child::first-letter {
    font-size: 3em;
  }

  .article-body h2 {
    font-size: 1.375rem;
    margin-top: 2.25rem;
  }

  .article-body h3 {
    font-size: 1.125rem;
    margin-top: 1.75rem;
  }
}

/* ====== QUICK AUDIT ====== */

@keyframes audit-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.audit-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: audit-spin 0.8s linear infinite;
}

/* Scrolling feed */
.audit-feed::-webkit-scrollbar {
  width: 4px;
}
.audit-feed::-webkit-scrollbar-track {
  background: transparent;
}
.audit-feed::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}
.audit-feed {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

@keyframes slide-up-fade {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
#hero-results > div {
  animation: slide-up-fade 0.5s ease-out;
}

#audit-url-input {
  font-size: 1rem;
  background: white;
}
#audit-url-input::placeholder {
  color: #9ca3af;
}
