/* ── SHARED STYLES ── */
html, body { overflow-x: hidden; }
:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #e0e0e0;
  --bg: #ffffff;
  --accent: #2c5f2e;
  --yes: #2c5f2e;
  --no: #c0392b;
  --partial: #7f6a00;
  --free-bg: #e8f5e9;
  --free-text: #2c5f2e;
  --nofree-bg: #f0f0ee;
  --nofree-text: #9a9a9a;
}
body { background: var(--bg); color: var(--ink); font-family: 'DM Sans', sans-serif; font-weight: 400; min-height: 100vh; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; }

/* ── NAV ── */
.site-nav { border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: white; z-index: 100; }
.nav-inner { max-width: 750px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; height: 64px; }
.wordmark { font-family: 'DM Serif Display', serif; font-size: 16px; color: var(--ink); letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav-links a { font-size: 13px; color: var(--muted); transition: color 0.15s; padding: 0 7px; }
.nav-links a:hover { color: var(--ink); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); }
.mobile-menu { display: none; border-top: 1px solid var(--rule); background: white; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 14px 24px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--rule); }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--rule); margin-top: 48px; padding: 20px 24px 24px; }
.footer-inner { max-width: 750px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
.footer-disclosure { font-size: 12px; color: #a0a0a0; line-height: 1.5; }
.footer-links { display: flex; gap: 8px; flex-wrap: nowrap; justify-content: flex-start; align-items: center; }
.footer-links a { font-size: 11px; color: #a0a0a0; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--ink); }
.footer-links span.dot { font-size: 11px; color: #c8c8c8; }
.footer-links span.footer-copy { font-size: 11px; color: #a0a0a0; }
.footer-copy { font-size: 11px; color: #a0a0a0; }

/* ── PAGE LAYOUT ── */
.page-body { flex: 1; padding: 56px 24px 72px; }
.wrap { max-width: 750px; margin: 0 auto; }
.wrap-mid { max-width: 750px; margin: 0 auto; }
.wrap-narrow { max-width: 750px; margin: 0 auto; }

/* ── HERO ── */
.hero { text-align: left; margin-bottom: 64px; }
.hero h1 { font-family: 'DM Serif Display', serif; font-size: clamp(28px, 5vw, 44px); line-height: 1.15; font-weight: 400; margin-bottom: 18px; text-wrap: balance; }
.hero p { font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 680px; }
.hero-sub { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 680px; }

/* ── TIER HEADERS ── */
.tier { margin-bottom: 56px; }
.tier-header { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.tier-title { font-family: 'DM Serif Display', serif; font-size: 20px; font-weight: 400; }
.tier-desc { font-size: 12px; color: var(--muted); }

/* ── TOOL ROWS ── */
.tool-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.tool-left { display: flex; align-items: baseline; gap: 14px; flex: 1; min-width: 0; }
.tool-name { font-size: 15px; font-weight: 500; min-width: 160px; flex-shrink: 0; }
.tool-name a { color: var(--accent); }
.tool-name a:hover { text-decoration: underline; }
.tool-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.badge { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.badge.reviewed a { color: var(--accent); }
.badge.reviewed a:hover { text-decoration: underline; }
.badge.coming { font-style: italic; }

/* ── CTA ROWS (homepage) ── */
.cta-list { max-width: 750px; margin: 0 auto; }
.home-hero { max-width: 750px; margin: 0 auto 32px; text-align: left; }
.cta-item { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--rule); color: var(--ink); transition: color 0.15s; font-weight: 400; }
.cta-item:first-child { border-top: 1px solid var(--rule); }
.cta-item:hover { color: var(--accent); }
.cta-title { font-size: 15px; font-weight: 400; font-family: 'DM Sans', sans-serif; }
.cta-arrow { font-size: 16px; color: var(--rule); transition: all 0.2s; flex-shrink: 0; margin-left: 16px; }
.cta-item:hover .cta-arrow { color: var(--accent); transform: translateX(4px); }

/* ── COMPARISON ARTICLES ── */
.section-title { font-family: 'DM Serif Display', serif; font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.section-sub { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.tool-group { margin-bottom: 48px; }
.group-header { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.group-name { font-family: 'DM Serif Display', serif; font-size: 19px; font-weight: 400; }
.group-count { font-size: 12px; color: var(--muted); }
.article-row { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink); transition: all 0.2s; }
.article-row.live { cursor: pointer; }
.article-row.live:hover .art-title { color: var(--accent); }
.article-row.live:hover .art-arrow { transform: translateX(4px); color: var(--accent); }
.article-row.coming .art-title { color: var(--muted); }
.art-left { display: flex; flex-direction: column; gap: 4px; }
.art-title { font-size: 15px; font-weight: 400; transition: color 0.2s; }
.art-sub { font-size: 12px; color: var(--muted); }
.art-arrow { font-size: 16px; color: var(--rule); transition: all 0.2s; flex-shrink: 0; margin-left: 16px; }
.coming-label { font-size: 11px; color: var(--muted); font-style: italic; flex-shrink: 0; margin-left: 16px; }

/* ── FEATURE TABLE ── */
.table-section { margin-bottom: 64px; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
thead th { font-family: 'DM Serif Display', serif; font-size: 13px; font-weight: 400; padding: 10px 8px; text-align: center; border-bottom: 2px solid var(--ink); white-space: nowrap; }
thead th.row-header { text-align: left; font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); min-width: 160px; }
td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--rule); vertical-align: middle; }
td.feature-label { text-align: left; font-size: 13px; }
tr:nth-child(even) td { background: #f8f8f7; }
tr.cat-row td { background: #efefec !important; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 7px 8px; text-align: left; }
.cell-yes { color: var(--yes); font-weight: 500; }
.cell-no { color: var(--no); }
.cell-partial { color: var(--partial); font-style: italic; font-size: 11px; }

/* ── PRICING CARDS ── */
.pricing-card { display: grid; grid-template-columns: 160px 1fr auto; gap: 0 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.pricing-name { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.free-tag { display: inline-block; font-size: 11px; padding: 2px 8px; }
.free-tag.yes { background: var(--free-bg); color: var(--free-text); }
.free-tag.no { background: var(--nofree-bg); color: var(--nofree-text); }
.detail { display: flex; gap: 8px; margin-bottom: 5px; font-size: 13px; line-height: 1.5; }
.detail-label { color: var(--muted); min-width: 140px; flex-shrink: 0; }
.pricing-cta { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; padding-top: 2px; }
.cta-primary { font-size: 13px; font-weight: 500; color: var(--accent); white-space: nowrap; transition: opacity 0.2s; }
.cta-primary:hover { opacity: 0.7; }
.cta-secondary { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cta-secondary:hover { color: var(--ink); }
.affiliate-note { font-size: 10px; color: var(--muted); font-style: italic; }

/* ── MIGRATION ── */
.mig-group { margin-bottom: 56px; }
.mig-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.mig-header-left { display: flex; align-items: baseline; gap: 12px; }
.mig-name { font-family: 'DM Serif Display', serif; font-size: 20px; font-weight: 400; }
.mig-desc { font-size: 12px; color: var(--muted); }
.mig-signup { font-size: 12px; font-weight: 500; color: var(--accent); transition: opacity 0.2s; }
.mig-signup:hover { opacity: 0.7; }
.guide-row { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink); transition: all 0.2s; }
.guide-row.live { cursor: pointer; }
.guide-row.live:hover .guide-title { color: var(--accent); }
.guide-row.live:hover .guide-arrow { transform: translateX(4px); color: var(--accent); }
.guide-row.coming .guide-title { color: var(--muted); }
.guide-left { display: flex; flex-direction: column; gap: 4px; }
.guide-title { font-size: 15px; font-weight: 400; transition: color 0.2s; }
.guide-sub { font-size: 12px; color: var(--muted); }
.guide-arrow { font-size: 16px; color: var(--rule); transition: all 0.2s; flex-shrink: 0; margin-left: 16px; }

/* ── PROSE PAGES ── */
.prose h1 { font-family: 'DM Serif Display', serif; font-size: clamp(26px, 4vw, 38px); font-weight: 400; margin-bottom: 32px; text-wrap: balance; }
.prose h2 { font-family: 'DM Serif Display', serif; font-size: clamp(20px, 3vw, 22px); font-weight: 400; margin-top: 48px; margin-bottom: 16px; max-width: 560px; text-wrap: balance; }
.prose p { font-size: 15px; line-height: 1.8; color: var(--ink); margin-bottom: 18px; }
.prose p a { color: var(--accent); text-decoration: underline; }
.prose ul { margin: 0 0 18px 24px; }
.prose ul li { font-size: 15px; line-height: 1.8; margin-bottom: 6px; }

/* ── DIVIDER ── */
hr.divider { border: none; border-top: 1px solid var(--rule); margin: 64px 0; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .tool-row { flex-direction: column; gap: 6px; }
  .tool-left { flex-wrap: wrap; }
  .tool-name { min-width: unset; }
  .pricing-card { grid-template-columns: 1fr; gap: 12px; }
  .pricing-cta { align-items: flex-start; }
  .mig-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .detail-label { min-width: unset; }
  .footer-links { flex-wrap: wrap; gap: 4px; }
  .footer-links a, .footer-links span { white-space: nowrap; }
  .footer-inner { max-width: 100%; }
  .wrap, .wrap-mid, .wrap-narrow { max-width: 100%; }
  .home-hero, .cta-list { max-width: 100%; }
}

.useful-links { border-top: 1px solid var(--rule); padding-top: 24px; margin-bottom: 32px; }
.useful-links-title { font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.link-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.link-row:last-child { border-bottom: none; }
.link-label { color: var(--muted); flex-shrink: 1; }
.link-url { color: var(--accent); font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.link-url:hover { text-decoration: underline; }
/* ── USEFUL LINKS SECTION ── */
.useful-links-section { border-top: 1px solid var(--rule); padding-top: 32px; margin-top: 48px; }
.useful-links-section-title { font-family: 'DM Serif Display', serif; font-size: 20px; font-weight: 400; margin-bottom: 24px; }
.useful-link-row { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.useful-link-label { color: var(--muted); }
.useful-link-url { color: var(--accent); font-weight: 500; text-decoration: none; flex-shrink: 0; margin-left: 16px; }
.useful-link-url:hover { text-decoration: underline; }
.useful-link-note { font-size: 10px; color: var(--muted); font-style: italic; margin-right: 4px; }
