* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0b1220;
  color: #e5e7eb;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 10px;
}

h2 {
  font-size: 28px;
  margin: 40px 0 10px;
}

h3 {
  font-size: 20px;
  margin: 20px 0 10px;
}

p {
  margin-bottom: 10px;
  color: #cbd5e1;
}

a {
  color: #ff8c2a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Accessible Context Links: Keeps text anchors clearly readable for screen filters */
p a,
li a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-weight: 500;
}

.page-hero {
  text-align: center;
  padding: 70px 20px 40px;
  background: radial-gradient(circle at top, #13203a, #0b1220);
}

.page-hero h1 {
  max-width: 750px;
  margin: 0 auto;
}

.hero-slogan {
  max-width: 700px;
  margin: 10px auto 20px;
  font-size: 16px;
  opacity: 0.85;
}

.featured-image {
  margin: 20px auto 10px;
  max-width: 850px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-fade {
  height: 60px;
  background: linear-gradient(to bottom, transparent, #0b1220);
}

.tool-content {
  margin-top: 10px;
}

.ai-summary {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 30px;
}

.category-image img {
  width: 100%;
  border-radius: 12px;
  margin: 10px 0 15px;
  transition: transform 0.25s ease;
}

.category-image img:hover {
  transform: scale(1.02);
}

ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 6px;
}

hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 30px 0;
}

.site-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav a {
  color: #cbd5e1;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 13px;
}

.nav a:hover {
  color: #ff8c2a;
}

.theme-toggle,
.hamburger {
  background: none;
  border: none;
  color: #e5e7eb;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  display: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.theme-toggle:hover,
.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  opacity: 0.7;
}

.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.site-footer .container {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4f8cff;
}

.site-footer p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.hero-section {
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    linear-gradient(135deg, #ff8c2a 0%, #e67e22 100%);
  color: white;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.7;
  padding: 0 20px;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.cta-primary,
.cta-secondary {
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.cta-primary {
  background: linear-gradient(135deg, #ff8c2a 0%, #ff7c1f 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(255, 140, 42, 0.5);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(255, 140, 42, 0.7);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hero-visual {
  min-height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  content-visibility: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  width: 200px;
  height: 200px;
}

.grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

body.loaded .grid-item {
  animation: float 6s ease-in-out infinite;
}

.grid-item:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.grid-item.writing {
  animation-delay: 0s;
}
.grid-item.marketing {
  animation-delay: 1s;
}
.grid-item.image {
  animation-delay: 2s;
}
.grid-item.research {
  animation-delay: 3s;
}
.grid-item.video {
  animation-delay: 4s;
}
.grid-item.productivity {
  animation-delay: 5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.categories-section,
.top-tools-section,
.comparisons-section,
.blog-section {
  padding: 80px 0;
}

.final-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: grid;
  place-items: center;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 20px;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff8c2a, #a855f7);
  border-radius: 2px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #e5e7eb;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 18px;
  color: #a0aec0;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.category-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff8c2a, #a855f7, #ff7c1f);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  border-color: #ff8c2a;
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.category-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1e293b;
}

.category-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.tool-count {
  color: #ff8c2a;
  font-size: 14px;
}

.arrow {
  color: #64748b;
  font-size: 18px;
  transition: all 0.3s ease;
}

.category-card:hover .arrow {
  color: #ff8c2a;
  transform: translateX(4px);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.tool-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  border-color: #ff8c2a;
}

.tool-card.featured {
  border: 2px solid #4f46e5;
  background: linear-gradient(135deg, #fefbff 0%, #f8f9ff 100%);
}

.tool-card.featured::before {
  content: "⭐ TOP RATED";
  position: absolute;
  top: -12px;
  left: 20px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tool-icon {
  font-size: 40px;
}

.tool-rating {
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 20px;
}

.rating {
  font-weight: 700;
  color: #1e293b;
  font-size: 14px;
}

.tool-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tool-card h3 a {
  color: #1e293b;
}
.tool-card h3 a:hover {
  color: #ff8c2a;
}

.tool-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.pricing {
  background: #dcfce7;
  color: #166534;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.developer {
  color: #64748b;
  font-weight: 500;
}

.tool-link {
  color: #b35100;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.tool-link:hover {
  color: #ff8c2a;
  text-decoration: underline;
}

.comparisons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.comparison-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.comparison-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  border-color: #ff8c2a;
}

.comparison-header {
  text-align: center;
  margin-bottom: 20px;
}

.vs-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.tool-a,
.tool-b {
  background: #f1f5f9;
  color: #475569;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
}

.vs {
  background: linear-gradient(135deg, #ff8c2a 0%, #ff7c1f 100%);
  color: #fff;
  padding: 8px 12px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
}

.comparison-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
  color: #1e293b;
}

.comparison-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.comparison-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.read-time {
  color: #64748b;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.blog-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  gap: 20px;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  border-color: #ff8c2a;
}

.blog-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff8c2a 0%, #ff7c1f 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-icon {
  font-size: 24px;
}
.blog-content {
  flex: 1;
}

.blog-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-content h3 a {
  color: #1e293b;
}
.blog-content h3 a:hover {
  color: #ff8c2a;
}

.blog-content p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #64748b;
}

.tools-cta,
.comparisons-cta,
.blog-cta {
  text-align: center;
}

.final-cta-section {
  display: grid !important;
  place-items: center !important;
}

.final-cta-section .container {
  width: 100% !important;
  max-width: 620px !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.final-cta-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 520px !important;
  background: #fff !important;
  border-radius: 32px !important;
  padding: 44px 32px !important;
  box-sizing: border-box !important;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.final-cta-content h2,
.final-cta-content p {
  width: 100% !important;
  margin: 0 auto !important;
}

.final-cta-content h2 {
  margin-bottom: 16px !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.final-cta-content p {
  margin-bottom: 32px !important;
  font-size: 18px !important;
  color: #475569 !important;
}

.final-ctas {
  display: grid !important;
  place-items: center !important;
  gap: 16px !important;
  margin: 0 auto !important;
}

.final-ctas a {
  display: inline-flex !important;
}

/* Desktop-First Baseline Grid Layout Profiles */
.tool-page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding: 60px 0;
  align-items: start;
}

.toc-sticky {
  position: sticky;
  top: 100px;
}

.toc-sidebar h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ff8c2a;
  margin-bottom: 20px;
}

.tool-content img {
  width: 100%;
  border-radius: 12px;
  margin: 30px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section.tool-hero {
  padding: 50px 0 30px;
  background: radial-gradient(circle at top, #1a2a4a, #0b1220);
}

.tool-hero-content {
  max-width: 100% !important;
  padding: 0;
  text-align: center;
}

.tool-hero-content h1 {
  font-size: 46px;
  line-height: 1.2;
  margin-bottom: 15px;
  -webkit-text-fill-color: #fff;
}

.tool-hero .hero-subtitle {
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  font-size: 19px;
  margin-bottom: 30px;
}

.tool-page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  padding: 60px 0;
  align-items: start;
}

#dynamic-toc {
  list-style: none;
  padding: 0;
}

#dynamic-toc li {
  margin-bottom: 12px;
}

#dynamic-toc a {
  color: #a0aec0;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

#dynamic-toc a:hover,
#dynamic-toc a.active {
  color: #ff8c2a;
}

.hero-container.tool-hero-full {
  display: block !important;
  max-width: 1200px;
  text-align: center;
}

.tool-hero-content {
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tool-hero-content h1 {
  font-size: 52px;
  max-width: 1000px;
  margin: 0 auto 20px;
}

.tool-hero .hero-subtitle {
  font-size: 20px;
  max-width: 850px;
  margin: 0 auto 35px;
  line-height: 1.6;
}

.hero-section.tool-hero {
  padding: 60px 0 40px;
}

.hero-section.blog-hero {
  padding: 60px 0 40px;
  background: radial-gradient(circle at top, #1e293b, #0b1220);
}

.blog-section .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.blog-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  border-color: #ff8c2a;
}

.blog-content h3 a {
  color: #1e293b !important;
}

.author-bio-section {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.author-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
}

.author-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff8c2a;
}

.author-text strong {
  display: block;
  color: #fff;
}

.author-text span {
  font-size: 13px;
  color: #ff8c2a;
}

.author-text p {
  margin: 5px 0 0;
  font-size: 14px;
}

.recent-posts-sidebar {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-link {
  display: block;
  font-size: 14px;
  margin-bottom: 15px;
  color: #cbd5e1;
  line-height: 1.4;
}

.recent-link:hover {
  color: #ff8c2a;
  text-decoration: none;
}

.tool-content h2 {
  scroll-margin-top: 100px;
}
.intro-text {
  margin-top: 40px;
}

@media (min-width: 768px) {
  .intro-text {
    margin-top: 60px;
  }
}
@media (min-width: 1024px) {
  .intro-text {
    margin-top: 80px;
  }
}

.intro-intent {
  padding: 60px 0;
  background: #0b1220;
}

.intent-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.intent-problem {
  padding: 50px;
  background: rgba(255, 140, 42, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.intent-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 140, 42, 0.15);
  color: #ff8c2a;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.intent-problem h2 {
  font-size: 32px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}

.intent-problem h2 strong {
  color: #ff8c2a;
}

.intent-solution {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intent-solution h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 25px;
}

.intent-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.intent-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.5;
}

.list-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.intent-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-style: italic;
  font-size: 14px;
  color: #94a3b8;
}

.tool-page-layout .featured-image {
  display: block;
  width: 100%;
  margin: 0 auto 40px;
}

.comparison-chart-wrapper {
  margin: 40px auto;
  max-width: 1200px;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.comparison-chart {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

.comparison-chart th {
  background: rgba(255, 140, 42, 0.1);
  color: #ff8c2a;
  padding: 20px 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(255, 140, 42, 0.2);
}

.comparison-chart td {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.comparison-chart td strong {
  color: #fff;
  font-weight: 600;
}

.comparison-chart tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
#comparison-table {
  scroll-margin-top: 120px;
}
.tool-content figure.content-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.comparison-table {
  overflow-x: auto;
  margin: 40px 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

.comparison-table th {
  background: rgba(255, 140, 42, 0.15);
  color: #ff8c2a;
  padding: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(255, 140, 42, 0.3);
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  vertical-align: middle;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table tr:hover {
  background: rgba(255, 255, 255, 0.04);
}
.comparison-table a {
  color: #ff8c2a;
  font-weight: 600;
}
.comparison-table td:contains("⭐") {
  color: #ff8c2a;
}

.long-context-chart {
  max-width: 1200px;
  width: 100%;
  margin: 40px auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(148, 163, 184, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.long-context-chart .comparison-chart {
  min-height: 630px;
}
.long-context-chart .comparison-chart thead th {
  background: rgba(255, 140, 42, 0.12);
  color: #ff8c2a;
}

.long-context-chart .comparison-chart td strong {
  color: #2ecc71;
}
.long-context-chart .comparison-chart tbody tr:hover {
  background: rgba(46, 204, 113, 0.05);
}
.tool-content .comparison-chart-wrapper {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  box-sizing: border-box;
  overflow-x: auto;
}

.content-image figcaption {
  margin-bottom: 2rem;
}

/* Global Review Page Layout Structuring Overrides (Desktop Monitors) */
.tool-main-content {
  display: block !important;
  width: 100% !important;
}

/* Responsive Structural Media Queries */
@media (min-width: 993px) {
  .tool-page-layout .tool-main-content {
    padding-right: 20px;
    padding-left: 40px;
    box-sizing: border-box;
  }
  .toc-sidebar {
    display: block !important;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .tool-page-layout {
    display: block !important;
    width: 100% !important;
    padding: 40px 24px !important;
  }
  .tool-main-content,
  .tool-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }
  .category-body,
  .comparison-chart-wrapper {
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .featured-image {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto 30px !important;
  }
  .toc-sidebar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .tool-page-layout {
    display: block !important;
    padding: 40px 16px !important;
  }
  /* Explicitly isolate and collapse the sidebar completely on mobile screens */
  .toc-sidebar,
  aside.toc-sidebar,
  #toc {
    display: none !important;
  }
  .tool-main-content {
    width: 100% !important;
    margin: 0 auto !important;
  }
  .tool-content,
  .blog-content,
  .comparison-review-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .tool-content p,
  .tool-content li,
  .tool-content h2,
  .tool-content h3 {
    word-break: break-word;
  }
  h1 {
    font-size: 26px;
    line-height: 1.3;
  }
  h2 {
    font-size: 22px;
  }
  h3 {
    font-size: 18px;
  }
  .page-hero {
    padding: 50px 15px 30px;
  }
  .featured-image {
    max-width: 100% !important;
    margin: 15px auto !important;
    border-radius: 12px;
  }
  .hero-slogan {
    font-size: 15px;
  }
  .header-inner {
    padding: 12px 0;
  }
  .logo img {
    height: 32px;
  }
  .nav-wrapper {
    gap: 12px;
  }
  .nav {
    display: none;
    gap: 15px;
    flex-direction: column;
    width: 100%;
  }
  .nav.open {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .site-footer {
    padding: 40px 0 20px;
    margin-top: 40px;
  }
  .footer-links {
    gap: 15px;
    margin-bottom: 15px;
  }
  .footer-links a {
    font-size: 12px;
  }
  .site-footer p {
    font-size: 12px;
  }
  .comparison-chart-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px auto;
    border-radius: 12px;
  }
  .comparison-chart {
    min-width: 700px;
  }
  .comparison-chart th,
  .comparison-chart td {
    padding: 14px 16px;
    font-size: 14px;
    white-space: normal;
  }
  .long-context-chart {
    margin: 30px auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
  }
  .long-context-chart .comparison-chart {
    width: 720px;
    min-width: 720px;
    min-height: auto;
  }
  .long-context-chart .comparison-chart th,
  .long-context-chart .comparison-chart td {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    vertical-align: top;
  }
  .blog-card {
    flex-direction: column;
    text-align: center;
  }
  .section-header {
    margin-bottom: 50px;
  }
  .section-header h2 {
    font-size: 28px;
    padding: 0 15px;
  }
  .final-ctas {
    flex-direction: column;
    align-items: center;
  }
  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ==========================================================================
   FINAL UNIVERSAL HIGH-SPEED PERFORMANCE & ACCESSIBILITY ENGINE
   Smashes main thread blocking times while maintaining full element views
   ========================================================================== */

/* Performance Isolation: Defer rendering workloads for elements below the fold line */
.site-footer,
.recent-posts-sidebar,
.author-bio-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* Central Page Isolation Layer: Locks in a strict 0.000 CLS across all landing zones */
#flamica-hero-wrapper {
  overflow: hidden !important;
  contain: paint !important;
}

/* Dashboard Metric Element Tracking Nodes */
.flamica-dashboard-card,
.grid-item {
  contain: content;
  display: block;
  will-change: transform;
}

/* Brand Logo Stabilization: Maps 1:1 with natural structural layout dimensions */
.logo img,
.site-header .logo img,
.site-footer .logo img {
  width: 155px !important;
  height: 35px !important;
  aspect-ratio: 155 / 35 !important;
  display: block !important;
  object-fit: contain !important;
}

/* Explicit Navigation Height Container: Eliminates all font-loading shifts */
.site-header {
  height: 60px !important;
  contain: strict !important;
}

/* Balanced Viewport Alignment Adjustments for Header Inner Layout elements */
.header-inner {
  padding: 12px 0 !important;
  height: 100% !important;
}

/* Review Page Image Core Container Layout Adjustments */
.tool-main-content .featured-image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Accessible Link Isolation Layer: Ensures all textual review hyperlinks remain 
   perfectly distinguishable without relying on color filtering arrays */
p a,
li a,
.tool-content a,
.ai-summary a,
.intent-card a,
.pros-cons a {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  font-weight: 500 !important;
}
