/* ============================================
   SOP Rocket — Design tokens (BRAND-KIT aligned)
   ============================================ */
:root {
  /* Brand */
  --color-accent: #F53937;
  --color-accent-hover: #d62f2d;
  --color-accent-active: #c02a28;
  --color-secondary: #2F81FB;
  --color-on-accent: #fafafa; /* Almost-white (zinc-50) for text on accent/CTAs */

  /* Neutrals (light mode) */
  --color-primary: #18181b;
  --color-background: #ffffff;
  --color-muted-bg: #f4f4f5;
  --color-muted-text: #71717a;
  --color-border: #e4e4e7;

  /* Typography scale */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2.25rem;

  /* Spacing & layout */
  --max-width: 72rem;
  --section-padding-y: 5rem;
  --section-padding-x: 1.5rem;
  --gap: 1rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  color-scheme: light;
}

/* ============================================
   Base
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-primary);
  background-color: var(--color-background);
}

/* ============================================
   Typography hierarchy
   ============================================ */
h1, .h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h2, .h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 1rem;
}

h3, .h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn:hover {
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================
   Layout container
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* Header CTA uses almost-white per brand */
.site-header .btn-primary {
  color: var(--color-on-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.btn-primary:active {
  background-color: var(--color-accent-active);
  transform: scale(0.99);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  transform: scale(1.02);
}

.btn-secondary:active {
  transform: scale(0.99);
}

/* Buttons that should not scale or lift on hover (e.g. header/hero CTAs with no follow-up action) */
.btn-no-motion {
  transition: none;
}

.btn-no-motion:hover,
.btn-no-motion:active {
  transform: none;
}

.btn-no-motion.btn-primary:hover {
  box-shadow: var(--shadow-sm);
}

.btn-no-motion.btn-secondary:hover {
  box-shadow: none;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card p {
  font-size: var(--text-sm);
  color: var(--color-primary);
  margin: 0;
}

.template-card {
  margin-bottom: 1.5rem;
}

.template-card ul,
.template-card ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.template-card li {
  margin-bottom: 0.5rem;
}

/* ============================================
   Site header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-background);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.logo-img-footer {
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-links a.btn::after {
  display: none;
}

.nav-links a.btn-primary:hover {
  color: var(--color-on-accent);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Mobile nav trigger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================
   Sections (spacing)
   ============================================ */
section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section-heading {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-text);
  margin-bottom: 0.5rem;
}

.section-heading-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.section-heading-title h2 {
  margin-bottom: 0;
}

.section-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-muted-text);
  flex-shrink: 0;
}

.section-accent-line {
  display: block;
  width: 2.5rem;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
  margin: 1rem auto 0;
}

.section-heading .subhead {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-muted-text);
  margin-top: 1rem;
}

/* Alternate section background + soft divider */
.section-alt {
  background-color: var(--color-muted-bg);
  box-shadow: inset 0 1px 0 0 var(--color-border);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: var(--color-background);
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.hero-content h1 {
  margin: 0 0 0.5rem;
  font-size: var(--text-3xl);
}

.hero-content .hero-subhead {
  font-size: var(--text-lg);
  color: var(--color-muted-text);
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  color: var(--color-muted-text);
}

/* ============================================
   Screenshots showcase (Editor / PDF Output)
   ============================================ */
.screenshots {
  padding-top: 1rem;
  padding-bottom: 4rem;
  background: var(--color-background);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.screenshot-card {
  margin: 0;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.screenshot-label {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--color-muted-bg);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
}

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

  .screenshots {
    padding-bottom: 2.5rem;
  }
}

/* ============================================
   Feature grid (benefits)
   ============================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ============================================
   How it works (steps)
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-muted-bg);
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: var(--text-sm);
  color: var(--color-muted-text);
}

.steps-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--color-muted-bg);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--color-muted-text);
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Why SOP Rocket (comparison)
   ============================================ */
.comparison-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.comparison-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.comparison-list li:last-child {
  border-bottom: none;
}

.comparison-list strong {
  flex-shrink: 0;
  width: 10rem;
}

/* Comparison block: Typical SOP tools vs SOP Rocket */
.comparison-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 40rem;
  margin: 2rem auto 0;
  padding: 1.5rem;
  background: var(--color-muted-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.comparison-column h3 {
  font-size: var(--text-base);
  margin-bottom: 0.75rem;
}

.comparison-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comparison-column li {
  padding: 0.35rem 0;
  font-size: var(--text-sm);
  padding-left: 1.25rem;
  position: relative;
}

.comparison-column li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-muted-text);
}

.comparison-sop-rocket li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 700;
}

@media (max-width: 600px) {
  .comparison-block {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Use cases grid
   ============================================ */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.use-case-card {
  padding: 1.25rem;
  background: var(--color-muted-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.use-case-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
}

.use-case-card .card-icon {
  margin-bottom: 0.5rem;
}

.use-case-card p {
  font-size: var(--text-sm);
  margin: 0;
  color: var(--color-primary);
}

.use-cases-intro {
  text-align: center;
  margin-top: 1.5rem;
  font-size: var(--text-sm);
  color: var(--color-muted-text);
}

/* ============================================
   Resources section (homepage)
   ============================================ */
.resources {
  background: var(--color-background);
}

.resources .blog-grid {
  margin-top: 1.5rem;
}

.resources .blog-card {
  color: inherit;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 40rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0;
  padding: 1rem 0 0.25rem;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.faq-question::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -0.15rem;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.faq-answer {
  padding-bottom: 0;
  font-size: var(--text-sm);
  color: var(--color-muted-text);
  line-height: 1.6;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 20rem;
  opacity: 1;
  padding-top: 0.25rem;
  padding-bottom: 1rem;
}

/* ============================================
   Pricing / CTA
   ============================================ */
.pricing-card {
  max-width: 22rem;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.pricing-card .tagline {
  font-size: var(--text-sm);
  color: var(--color-muted-text);
  margin-bottom: 1rem;
}

.pricing-card .price {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: left;
}

.pricing-card li {
  padding: 0.5rem 0;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-card li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 700;
}

.pricing-support {
  font-size: var(--text-xs);
  color: var(--color-muted-text);
  margin-top: 1rem;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-muted-bg);
  border-top: 1px solid var(--color-border);
  padding: 2rem var(--section-padding-x) 1.5rem;
  margin-top: var(--section-padding-y);
}

.site-footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-muted-text);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-muted-text);
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-muted-text);
  max-width: 36rem;
  line-height: 1.5;
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(18rem, 100%);
    background: var(--color-background);
    flex-direction: column;
    align-items: stretch;
    padding: 4rem 1.5rem 1.5rem;
    gap: 0;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    z-index: 99;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links a,
  .nav-links .btn {
    display: block;
    padding: 1rem 0;
    width: 100%;
    text-align: left;
  }

  .nav-links .btn {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .section-padding-y {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Override section padding on small screens via class if needed */
@media (max-width: 768px) {
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* ============================================
   Scroll-triggered reveal
   ============================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.benefits-grid .reveal-on-scroll:nth-child(1) { transition-delay: 0ms; }
.benefits-grid .reveal-on-scroll:nth-child(2) { transition-delay: 50ms; }
.benefits-grid .reveal-on-scroll:nth-child(3) { transition-delay: 100ms; }
.benefits-grid .reveal-on-scroll:nth-child(4) { transition-delay: 150ms; }

.steps .reveal-on-scroll:nth-child(1) { transition-delay: 0ms; }
.steps .reveal-on-scroll:nth-child(2) { transition-delay: 60ms; }
.steps .reveal-on-scroll:nth-child(3) { transition-delay: 120ms; }
.steps .reveal-on-scroll:nth-child(4) { transition-delay: 180ms; }

.use-cases-grid .reveal-on-scroll:nth-child(1) { transition-delay: 0ms; }
.use-cases-grid .reveal-on-scroll:nth-child(2) { transition-delay: 50ms; }
.use-cases-grid .reveal-on-scroll:nth-child(3) { transition-delay: 100ms; }
.use-cases-grid .reveal-on-scroll:nth-child(4) { transition-delay: 150ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Blog / article pages
   ============================================ */
.blog-header {
  padding: 3rem 0 2rem;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
}

.blog-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: 0.5rem;
}

.blog-header .blog-meta {
  font-size: var(--text-sm);
  color: var(--color-muted-text);
  margin-bottom: 0;
}

.blog-header .blog-meta time {
  font-weight: 500;
}

.blog-body {
  padding: 3rem 0 4rem;
}

.blog-body .container {
  max-width: 48rem;
}

.blog-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-body p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.blog-body ul,
.blog-body ol {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
  line-height: 1.7;
}

.blog-body li {
  margin-bottom: 0.5rem;
}

.blog-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-muted-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--text-base);
  color: var(--color-muted-text);
}

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

/* Answer capsule — short summary for AI extraction */
.answer-capsule {
  padding: 1.25rem 1.5rem;
  background: var(--color-muted-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  font-size: var(--text-base);
  line-height: 1.7;
}

.answer-capsule strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted-text);
}

/* Comparison tables */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: var(--text-sm);
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table thead th {
  font-weight: 600;
  background: var(--color-muted-bg);
  border-bottom: 2px solid var(--color-border);
}

.comparison-table tbody tr:hover {
  background: var(--color-muted-bg);
}

.comparison-table .highlight-row {
  background: var(--color-muted-bg);
  font-weight: 500;
}

.comparison-table .highlight-row td:first-child {
  color: var(--color-accent);
  font-weight: 600;
}

/* CTA box inside blog posts */
.blog-cta {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: var(--color-muted-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.blog-cta h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.blog-cta p {
  font-size: var(--text-sm);
  color: var(--color-muted-text);
  margin-bottom: 1rem;
}

.blog-cta .btn {
  margin-top: 0.5rem;
}

/* Blog listing grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.blog-card .blog-card-category {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.blog-card p {
  font-size: var(--text-sm);
  color: var(--color-muted-text);
  flex-grow: 1;
}

.blog-card .blog-card-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  margin-top: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: var(--text-sm);
  color: var(--color-muted-text);
  margin-bottom: 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--color-border);
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--color-muted-text);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

/* Related articles section */
.related-articles {
  padding: 3rem 0;
  background: var(--color-muted-bg);
  border-top: 1px solid var(--color-border);
}

.related-articles h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .blog-body .container {
    max-width: 100%;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Pros / cons lists in comparisons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.pros-cons > div {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.pros-cons h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.pros-cons ul {
  margin: 0;
  padding: 0 0 0 1rem;
}

.pros-cons li {
  font-size: var(--text-sm);
  margin-bottom: 0.35rem;
}

@media (max-width: 600px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Reduced motion: disable non-essential animations
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  }

  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

  .btn-primary:active,
  .btn-secondary:active {
    transform: none;
  }

  .card,
  .use-case-card {
    transition: box-shadow 0.15s ease;
  }

  .card:hover,
  .use-case-card:hover {
    transform: none;
  }

  .nav-links a::after {
    transition: none;
  }

  .faq-answer {
    transition: none;
  }

  .faq-question::after {
    transition: none;
  }
}
