:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #f0f9ff;
  --primary-border: #bae6fd;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #0284c7;
  --accent-gold: #f59e0b;
  --accent-badge: #dbeafe;
  --accent-badge-text: #1e40af;
  --success: #10b981;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --line-height: 1.65;
  --container-max: 1160px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: var(--line-height);
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
}

/* Accessibility Focus */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Top Notification Banner */
.top-notice {
  background: #0369a1;
  color: #ffffff;
  font-size: 0.875rem;
  padding: 8px 16px;
  text-align: center;
  font-weight: 500;
}
.top-notice a {
  color: #e0f2fe;
  text-decoration: underline;
  margin-left: 6px;
  font-weight: 600;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 4px;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

.header-search {
  position: relative;
  width: 220px;
}
.header-search input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: #f1f5f9;
  outline: none;
  color: var(--text-main);
}
.header-search input:focus {
  background: #fff;
  border-color: var(--primary);
}
.header-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-light);
  pointer-events: none;
}
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 300px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  max-height: 360px;
  overflow-y: auto;
  z-index: 200;
  padding: 8px 0;
}
.search-result-item {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
  text-decoration: none;
}
.search-result-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  display: block;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li::after {
  content: "/";
  margin-left: 8px;
  color: #cbd5e1;
}
.breadcrumbs li:last-child::after {
  content: "";
}
.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  padding: 48px 0 24px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-badge);
  color: var(--accent-badge-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 28px;
}

/* Highlight Lowest Price Banner */
.lowest-price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
.lowest-price-info {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.lowest-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lowest-price-val {
  font-size: 1.65rem;
  font-weight: 800;
}
.lowest-price-desc {
  font-size: 0.9rem;
  color: #e0f2fe;
}
.lowest-cta-btn {
  background: #ffffff;
  color: #0369a1;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.lowest-cta-btn:hover {
  background: #f0f9ff;
  color: #0284c7;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Pricing Cards Front Grid */
.pricing-cards-front {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}
.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}
.price-header {
  margin-bottom: 16px;
}
.price-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.price-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
}
.price-amount-box {
  margin: 16px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-currency {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}
.price-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
}
.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.price-features {
  list-style: none;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.price-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.price-feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  margin-top: 2px;
  flex-shrink: 0;
}
.price-cta-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 44px;
  line-height: 20px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.price-cta-btn.primary {
  background: var(--primary);
  color: #fff;
}
.price-cta-btn.primary:hover {
  background: var(--primary-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.price-cta-btn.secondary {
  background: var(--primary-light);
  color: var(--primary-hover);
  border: 1px solid var(--primary-border);
}
.price-cta-btn.secondary:hover {
  background: #e0f2fe;
  text-decoration: none;
  transform: translateY(-1px);
}

.price-disclaimer {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: -20px;
  margin-bottom: 40px;
}

/* Sections General */
.section {
  padding: 44px 0;
  border-top: 1px solid var(--border-color);
}
.section-header {
  text-align: center;
  margin-bottom: 32px;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  scroll-margin-top: 80px;
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Full Table Comparison */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
.compare-table caption {
  padding: 14px 20px;
  font-weight: 700;
  text-align: left;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1rem;
}
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}
.compare-table thead th {
  background: #f1f5f9;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare-table tbody tr:hover {
  background: #f8fafc;
}
.table-plan-name {
  font-weight: 700;
  color: var(--text-main);
}
.table-action-link {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Steps - Quick Start */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}
.step-number {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Clients Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.client-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 6px;
}
.client-recommend {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}
.client-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
}
.client-link {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--primary-hover);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Feature Boxes / Node Knowledge */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
}
.feature-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.feature-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}
.feature-box-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Details */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-light);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-summary::after {
  content: "−";
  color: var(--primary);
}
.faq-content {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

/* Articles Section Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-entry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.article-entry-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.article-entry-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-hover);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  width: fit-content;
}
.article-entry-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}
.article-entry-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}
.article-entry-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Article Detail Page Layout */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  padding: 32px 0 60px;
}
.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}
.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.article-title {
  font-size: 1.9rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.article-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #1e293b;
}
.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  scroll-margin-top: 80px;
}
.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 22px 0 10px;
  scroll-margin-top: 80px;
}
.article-content p {
  margin-bottom: 16px;
}
.article-content ul,
.article-content ol {
  margin: 12px 0 18px 24px;
}
.article-content li {
  margin-bottom: 6px;
}
.article-content code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #0f172a;
}
.article-content pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 18px 0;
  font-size: 0.875rem;
}
.article-callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 0.95rem;
}
.article-callout strong {
  color: var(--primary-hover);
}
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}
.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.sidebar-links a:hover {
  color: var(--primary);
}

/* Footer (Only 4 strictly allowed entries) */
.site-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 36px 0 24px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-copyright {
  font-size: 0.825rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .pricing-cards-front,
  .steps-grid,
  .features-grid,
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }
  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    gap: 14px;
  }
  .header-search {
    order: 2;
    width: 180px;
  }
  .pricing-cards-front,
  .steps-grid,
  .features-grid,
  .articles-grid,
  .clients-grid {
    grid-template-columns: 1fr;
  }
  .lowest-price-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .lowest-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  .article-main {
    padding: 24px 20px;
  }
  .article-title {
    font-size: 1.5rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .header-search {
    width: 100%;
    order: 3;
    margin-top: 8px;
  }
  .site-nav {
    order: 2;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}
