:root {
  --seo-card: #ffffff;
}

.qs-seo {
  max-width: 900px;
}

.qs-seo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  /* Ensure it fills the nav-container */
}

.qs-seo-navbar {
  margin-bottom: 2rem;
}

.qs-seo-navbar .qs-seo-top {
  margin-bottom: 0;
  /* Remove margin when inside navbar */
}

/* Adjust brand link in navbar */
.qs-seo-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

/* Brand */
.qs-seo-brand {
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.25rem;
}

/* Primary Button - Matches .btn-primary */
.qs-seo-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff !important;
  /* Force white text */
  background-color: var(--primary);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.qs-seo-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.qs-seo-hero {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.qs-seo-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.qs-seo-title {
  margin: 12px 0 12px;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

.qs-seo-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.qs-seo-dot {
  margin: 0 8px;
  color: var(--border);
}

/* Metrics */
.qs-seo-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.qs-seo-intro {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.625;
}

.qs-seo-metric {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.qs-seo-metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.qs-seo-metric-value {
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.qs-seo-section {
  margin-top: 32px;
}

.qs-seo-section h2 {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Levels */
.qs-seo-levels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.qs-seo-level {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #fff;
}

.qs-seo-level.active {
  border-color: var(--primary-light);
  background: #f8fafc;
}

.qs-seo-level-title {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.qs-seo-level-salary {
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.qs-seo-level-range {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Charts Card */
.qs-seo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: #fff;
}

.qs-seo-chart {
  width: 100%;
  height: auto;
}

.qs-seo-muted {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 12px;
}

/* Pro Box */
.qs-seo-pro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border: 1px solid var(--primary-light);
  background: #eff6ff;
  /* Keep this as custom tint */
  border-radius: var(--radius-xl);
  padding: 24px;
}

.qs-seo-pro-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.qs-seo-pro-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-main);
}

.qs-seo-pro-list li {
  margin: 6px 0;
}

/* Pro CTA - Matches .btn-primary but with maybe a dark theme or just identical */
/* Making it identical to main CTA for consistency as requested */
.qs-seo-pro-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff !important;
  /* Force white text */
  background-color: var(--text-main);
  /* Dark dark blue/slate */
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.qs-seo-pro-cta:hover {
  background-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.qs-seo-pro-note {
  margin-top: 10px;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
}

.qs-seo-faq {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #fff;
  margin-bottom: 12px;
}

.qs-seo-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-main);
}

.qs-seo-faq-body {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.qs-seo-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.qs-seo-links-col {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: #fff;
}

.qs-seo-links-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.qs-seo-links-col ul {
  margin: 0;
  padding-left: 18px;
}

.qs-seo-links-col li {
  margin: 6px 0;
}

.qs-seo-links-col a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.qs-seo-links-col a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* Note: we use the global .qs-footer class now, so .qs-seo-footer is deprecated/unused unless structure differs */
.qs-seo-footer {
  display: none;
  /* Hide old footer definition if it exists anywhere else */
}

@media (min-width: 640px) {
  .qs-seo-levels {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .qs-seo-pro {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .qs-seo-links {
    grid-template-columns: 1fr 1fr;
  }
}