:root {
  --primary: #8B1A3A;
  --primary-dark: #6B1230;
  --primary-light: #FDF2F4;
  --accent: #C9A227;
  --text: #1A1A2E;
  --text-secondary: #4A4A68;
  --text-muted: #7C7C96;
  --border: #E8E8F0;
  --border-light: #F0F0F5;
  --bg: #F7F7FA;
  --surface: #FFFFFF;
  --footer: #1A1A2E;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.08);
  --max-content: 100%;
  --max-wide: 920px;
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.blog-list-section {
  width: 100%;
}

.blog-listing .blog-grid {
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.logo-accent {
  color: var(--text);
  font-weight: 600;
}

.logo-text-light {
  color: #fff;
}

.logo-accent-light {
  color: rgba(255, 255, 255, 0.95);
}

.header-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-btn {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.header-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.site-main {
  flex: 1;
  padding: 20px 0 36px;
}

.blog-listing {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.featured-blog {
  margin-bottom: 0;
}

.page-hero {
  text-align: center;
  margin-bottom: 32px;
}

.page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 8px;
  color: var(--text);
}

.page-hero p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-card {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.blog-card-featured {
  padding: 22px 22px;
  border-color: rgba(139, 26, 58, 0.25);
  background: linear-gradient(180deg, #fff 0%, var(--primary-light) 100%);
}

.blog-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  text-decoration: none;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.3;
}

.blog-card-featured h2 {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}

.blog-card-excerpt {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}

.article-wrap {
  width: 100%;
  padding: 0;
}

.article-card {
  width: 100%;
  max-width: var(--max-wide);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: none;
  overflow: hidden;
}

.article-header {
  padding: 20px 16px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
}

.article-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin: 0 0 10px;
  line-height: 1.25;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.article-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 16px !important;
}

.article-body a.internal-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(139, 26, 58, 0.35);
  text-underline-offset: 2px;
}

.article-body a.internal-link:hover {
  text-decoration-color: var(--primary);
}

.faq-list {
  margin: 8px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: var(--bg);
}

.faq-question {
  margin: 0 0 8px !important;
  font-size: 1rem !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 600;
  color: var(--text);
}

.faq-answer {
  margin: 0 !important;
  font-size: 14px;
  color: var(--text-secondary);
}

.related-links {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.related-links-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  margin: 0 0 14px;
  text-align: center;
  color: var(--text);
}

.related-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.related-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
}

.related-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  text-decoration: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.article-body {
  padding: 18px 16px 24px;
  max-width: var(--max-content);
  margin: 0;
}

.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  margin: 22px 0 10px;
  color: var(--text);
}

.article-body h3 {
  font-size: 1rem;
  margin: 16px 0 8px;
  color: var(--text);
}

.article-body p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 15px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 12px;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 15px;
}

.article-body li {
  margin-bottom: 4px;
}

.article-body a {
  color: var(--primary);
  font-weight: 500;
}

.article-body strong {
  color: var(--text);
}

.table-wrap {
  margin: 12px 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(139, 26, 58, 0.15);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(139, 26, 58, 0.06);
}

.compare-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 13px;
}

.compare-table th,
.compare-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.compare-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-bottom: none;
}

.compare-table th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.compare-table th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

.compare-table td:first-child,
.compare-table th:first-child {
  font-weight: 600;
  color: var(--text);
}

.compare-table td:not(:first-child):not(:last-child) {
  text-align: center;
  white-space: nowrap;
}

.compare-table td:last-child,
.compare-table th:last-child {
  white-space: normal;
  min-width: 110px;
}

.compare-table tbody tr:nth-child(even):not(.row-highlight) {
  background: #fafbfd;
}

.compare-table tbody tr.row-highlight {
  background: linear-gradient(90deg, var(--primary-light) 0%, #fff 100%);
  box-shadow: inset 3px 0 0 var(--primary);
}

.compare-table tbody tr.row-highlight td:first-child {
  color: var(--primary);
  font-weight: 700;
}

.compare-table tbody tr:hover:not(.row-highlight) {
  background: #f3f4f8;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius-md);
}

.compare-table tbody tr:last-child td:last-child {
  border-radius: 0 0 var(--radius-md) 0;
}

.cell-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cell-yes-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.35);
}

.cell-limited {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
}

.cell-no {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #b91c1c;
  background: #fee2e2;
}

.cell-free {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
}

.cell-premium {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #6B1230;
  background: linear-gradient(135deg, #fdf2f4 0%, #fce7f3 100%);
  border: 1px solid rgba(139, 26, 58, 0.2);
}

.cell-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
}

.cell-badge-primary {
  color: #166534;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #86efac;
  box-shadow: none;
}

.table-note {
  margin: -4px 0 16px !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: var(--text-muted) !important;
}

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
  margin: 16px 0;
}

.cta-box {
  margin-top: 22px;
  padding: 18px 16px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  text-align: center;
}

.cta-box h3 {
  margin: 0 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text);
}

.cta-box p {
  margin: 0 auto;
  max-width: 480px;
  color: var(--text-secondary);
  font-size: 15px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
  color: #fff;
}

.article-body .btn-primary,
.cta-box .btn-primary {
  color: #fff;
}

.article-body .btn-primary:hover,
.cta-box .btn-primary:hover {
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--primary-light);
  text-decoration: none;
}

.site-footer {
  background: var(--footer);
  color: #C7C7D1;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  max-width: 640px;
}

.footer-links a {
  color: #C7C7D1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-section {
  width: 100%;
  max-width: 900px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9CA3AF;
}

.footer-seo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  max-width: 720px;
  margin: 0 auto;
}

.footer-seo-grid a {
  color: #C7C7D1;
  font-size: 12px;
  text-decoration: none;
}

.footer-seo-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-view-all {
  display: inline-block;
  margin-top: 8px;
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.footer-view-all:hover {
  text-decoration: underline;
}

.footer-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-auth a {
  color: #C7C7D1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.footer-dot {
  color: #6B7280;
}

.footer-copy {
  margin: 8px 0 0;
  font-size: 12px;
  color: #9CA3AF;
}

.error-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 20px 16px;
  min-height: 50vh;
}

.error-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 36px 36px;
  text-align: center;
}

.error-code {
  margin: 0 0 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(4rem, 14vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  opacity: 0.18;
  letter-spacing: -2px;
  user-select: none;
}

.error-title {
  margin: 0 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  color: var(--text);
}

.error-message {
  margin: 0 auto 28px;
  max-width: 400px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.error-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

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

.error-dot {
  color: var(--border);
  font-size: 13px;
}

@media (max-width: 640px) {
  .header-inner {
    padding: 8px 10px;
  }

  .logo-text {
    font-size: 18px;
  }

  .blog-card,
  .blog-card-featured,
  .article-header,
  .article-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .blog-card,
  .blog-card-featured {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .compare-table {
    font-size: 12px;
  }

  .compare-table th,
  .compare-table td {
    padding: 9px 10px;
  }

  .cell-badge {
    font-size: 11px;
    padding: 3px 8px;
  }

  .error-card {
    padding: 28px 18px 24px;
  }

  .header-btn {
    padding: 7px 10px;
    font-size: 12px;
  }
}
