html { scroll-behavior: smooth; }

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #2563eb 100%);
  position: relative;
  overflow: hidden;
}

/* 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: #2563eb !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 #3b82f6;
  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: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: #93c5fd;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.article-body a:hover {
  color: #1d4ed8;
  text-decoration-color: #2563eb;
}

/* 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: #1e40af;
}

/* Key stat callout — use as <p class="stat-callout">...</p> */
.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, #eff6ff 0%, #f0fdf4 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;
  }
}

/* ====== VISUAL ENHANCEMENTS ====== */

/* Card hover lift + blue accent top border */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
}
.card-hover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 0.75rem 0.75rem 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-hover:hover::before {
  opacity: 1;
}

/* Hero floating shapes */
.hero-gradient::before,
.hero-gradient::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-gradient::before {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
.hero-gradient::after {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.1) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

/* How It Works step connectors (md+ only) */
@media (min-width: 768px) {
  .step-card {
    position: relative;
  }
  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -1.05rem;
    width: 2.1rem;
    border-top: 2px dashed #bfdbfe;
    z-index: 10;
  }
}

/* Gradient border for Most Popular pricing card */
.pricing-popular {
  border: 2px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #3b82f6, #2563eb, #7c3aed) border-box;
}

/* Subtle dot pattern for white sections */
.section-dots {
  background-image: radial-gradient(circle, #e2e8f0 0.75px, transparent 0.75px);
  background-size: 24px 24px;
}

/* Form focus animation */
.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1.5px solid #e5e7eb;
}
.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}
.form-field {
  position: relative;
}
.form-field::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 1px;
}
.form-field:focus-within::after {
  width: 100%; left: 0;
}

/* CTA pulse glow (blue) */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(37, 99, 235, 0.2); }
}
.cta-glow {
  animation: cta-pulse 3s ease-in-out infinite;
}
.cta-glow:hover {
  animation: none;
  box-shadow: 0 0 24px 4px rgba(37, 99, 235, 0.25);
}

/* CTA pulse glow (red variant) */
@keyframes cta-pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(185, 28, 28, 0.2); }
}
.cta-glow-red {
  animation: cta-pulse-red 3s ease-in-out infinite;
}
.cta-glow-red:hover {
  animation: none;
  box-shadow: 0 0 24px 4px rgba(185, 28, 28, 0.25);
}

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

/* Spinner */
@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;
}

/* Results card entrance */
@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;
}

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