/* Blog styles. Section styling mirrors the original comparison page
   (Ploy build): centered hero, card quick picks, split "how we compared",
   bordered table with sticky first column, white review band, list-style
   "which fits", FAQ accordion and a dark closing CTA. */
:root {
  --brand: #C8432A;
  --brand-50: oklch(98% .008 24.78);
  --brand-100: oklch(93.7% .028 26.38);
  --brand-300: oklch(77.8% .118 29.58);
  --brand-700: oklch(48% .16 33.58);
  --ink: #1A1410;
  --ink-2: #4A3F38;
  --ink-3: #8C7D74;
  --surface: #FDFAF8;
  --white: #FFFFFF;
  --border: #E6E3E1;
  --border-strong: #C8C6C3;
  --chip-bg: oklch(95.1% .002 55.02);
  --chip-ink: oklch(37% .003 43.02);
  --inverse-ink: oklch(95.1% .002 55.02);
  --inverse-ink-2: oklch(95.1% .002 55.02 / .6);
  --shadow-card: 0 8px 40px 0 rgba(26,20,16,.1), 0 2px 8px 0 rgba(26,20,16,.06);
  --serif: 'Instrument Serif', serif;
  --sans: 'DM Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 400; line-height: 1.5; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
img { max-width: 100%; }

/* Layout */
.container { max-width: 1216px; margin: 0 auto; padding: 0 20px; }
.container-hero { max-width: 1024px; }
.container-faq { max-width: 704px; }
.band { padding: 58px 0; scroll-margin-top: 96px; }
.band-white { background: var(--white); }

/* Nav (matches the home page) */
nav.site-nav { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 100; }
nav.site-nav .container { max-width: 1120px; padding: 0 24px; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.logo { font-family: var(--serif); font-size: 22px; color: var(--brand); letter-spacing: -0.3px; text-decoration: none; display: flex; align-items: center; gap: 3px; }
.logo img { width: 26px; height: 26px; object-fit: contain; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn-primary, .nav-cta .btn-ghost { white-space: nowrap; height: auto; min-height: 0; padding: 10px 22px; font-size: 14px; }

/* Buttons */
.btn-primary, .btn-ghost, .btn-inverse { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 28px; border-radius: 8px; font-family: var(--sans); font-size: 15px; white-space: nowrap; text-decoration: none; cursor: pointer; transition: opacity .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; font-weight: 500; border: 0; }
.btn-primary:hover { opacity: .88; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-inverse { background: transparent; color: var(--surface); border: 1px solid currentColor; font-weight: 500; }
.btn-inverse:hover { opacity: .8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Shared type */
.h2 { font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1.13; letter-spacing: -0.015em; text-wrap: balance; }
.h2 em, .post-title em { color: var(--brand); }
.body { font-size: 1rem; line-height: 1.6563rem; color: var(--ink-2); }
.small { font-size: .8125rem; line-height: 1.125rem; color: var(--ink-2); }
.section-head { max-width: 680px; }
.section-head .body { margin-top: 16px; }
.badge { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 24px; border-radius: 8px; padding: 4px 8px; font-size: .8125rem; font-weight: 500; line-height: 1; background: var(--brand-100); color: var(--brand-700); }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }

/* Breadcrumbs */
.crumbs { font-size: 13px; color: var(--ink-3); padding-top: 24px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--border-strong); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 32px 0 58px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .updated { margin-bottom: 20px; }
h1.post-title { font-family: var(--serif); font-weight: 700; font-size: 2.5rem; line-height: 1.07; letter-spacing: -0.0222em; max-width: 760px; text-wrap: balance; }
.lede { margin-top: 24px; max-width: 620px; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); }
.hero .btn-row { margin-top: 32px; justify-content: center; }
.byline { margin-top: 24px; max-width: 520px; }

/* Short answer (AEO) */
.answer { margin: 40px auto 0; max-width: 760px; text-align: left; background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 14px; padding: 20px 24px; }
.answer h2 { font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.answer p { font-size: 1rem; line-height: 1.6563rem; color: var(--ink); }

/* Quick picks */
.quick-picks { margin-top: 56px; box-shadow: var(--shadow-card); border-color: color-mix(in srgb, var(--ink) 10%, transparent); text-align: left; scroll-margin-top: 96px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-family: var(--sans); font-size: 1.125rem; font-weight: 600; line-height: 1.13; }
.picks { list-style: none; }
.picks a { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 24px; border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none; transition: background-color .15s; }
.picks li:last-child a { border-bottom: 0; }
.picks a:hover { background: var(--surface); }
.pick-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pick-for { color: var(--ink-2); }
.pick-price { font-weight: 500; }

/* How we compared */
.split { display: grid; gap: 40px; }
.split-photo { display: block; margin-top: 32px; width: 100%; max-width: 420px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.split .body { margin-top: 20px; }
.criteria { display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.criteria dt { font-family: var(--serif); font-size: 1.375rem; line-height: 1.25; }
.criteria dd { margin-top: 6px; color: var(--ink-2); line-height: 1.5; }

/* Comparison table */
.table-card { margin-top: 40px; }
.table-scroll { position: relative; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 1040px; border-collapse: collapse; color: var(--ink); }
caption { caption-side: bottom; text-align: left; padding: 12px 20px; font-size: .8125rem; color: var(--ink-3); border-top: 1px solid var(--border); }
thead tr { background: var(--surface); border-bottom: 1px solid var(--border); }
thead th { padding: 16px 12px; text-align: left; vertical-align: middle; white-space: nowrap; font-weight: 500; }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: 0; }
tbody td, tbody th { padding: 16px 12px; text-align: left; vertical-align: top; font-size: .9375rem; color: var(--ink-2); }
th.col-crm, tbody th { position: sticky; left: 0; z-index: 1; width: 190px; padding-left: 20px; background: var(--white); }
thead th.col-crm { background: var(--surface); }
tbody th { font-size: 1rem; font-weight: 600; color: var(--ink); }
tbody th a { color: var(--ink); text-decoration: none; }
tbody th a:hover { text-decoration: underline; }
tbody th .ours-label { display: block; margin-top: 4px; font-size: .8125rem; font-weight: 400; color: var(--brand); }
td.price { font-weight: 500; color: var(--ink); }
tr.ours, tr.ours th { background: var(--brand-50); }

/* Each CRM, up close */
.reviews { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; }
.review { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px; scroll-margin-top: 112px; }
.review.ours { border-color: var(--brand); }
.review-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.review-title h3 { font-family: var(--serif); font-weight: 700; font-size: 1.625rem; line-height: 1.13; letter-spacing: -0.01em; }
.best-for { margin-top: 8px; font-weight: 500; line-height: 1.6563rem; }
.review-intro { margin-top: 16px; max-width: 760px; }
.pros-cons { margin-top: 32px; display: grid; gap: 32px; }
.pros-cons h4 { font-size: 1rem; font-weight: 600; line-height: 1.13; }
.pros-cons ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.pros-cons li { display: flex; gap: 10px; font-size: .9375rem; line-height: 1.625; color: var(--ink-2); }
.pros-cons svg { flex: none; width: 16px; height: 16px; margin-top: 4px; }
.pros svg { color: var(--brand); }
.cons svg { color: var(--ink-2); }
.pricing-line { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; border-radius: 8px; background: var(--surface); padding: 16px 20px; }
.pricing-line p { font-size: .9375rem; line-height: 1.6; color: var(--ink); }
.pricing-line strong { font-weight: 600; }
.pricing-links { display: flex; flex: none; align-items: center; gap: 16px; }
.pricing-links .text-link { font-size: .9375rem; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* Inbox illustration */
.inbox-wrap { margin-top: 28px; max-width: 560px; }
.inbox { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--white); }
.inbox-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.inbox-title { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; }
.count { border-radius: 999px; background: var(--brand); color: #fff; padding: 2px 8px; font-size: .75rem; font-weight: 400; }
.inbox ul { list-style: none; }
.lead { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.lead:last-child { border-bottom: 0; }
.avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--inverse-ink); font-size: .75rem; font-weight: 500; }
.lead-body { min-width: 0; flex: 1; }
.lead-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lead-who { display: flex; min-width: 0; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; }
.lead-who .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src { display: inline-flex; align-items: center; white-space: nowrap; min-height: 20px; border-radius: 8px; padding: 0 8px; font-size: .6875rem; font-weight: 500; background: var(--chip-bg); color: var(--chip-ink); }
.when { flex: none; font-size: .75rem; color: var(--ink-2); }
.lead-msg { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; color: var(--ink-2); }
.lead-status { margin-top: 6px; font-size: .75rem; font-weight: 500; color: var(--brand); }

/* Which one fits you */
.fit { margin-top: 40px; }
.fit-row { display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.fit-row:first-child { border-top: 1px solid var(--border); }
.fit-row dt { font-family: var(--serif); font-size: 1.375rem; line-height: 1.375; }
.fit-row .pick a { font-weight: 600; color: var(--brand); text-decoration: none; }
.fit-row .pick a:hover { text-decoration: underline; }
.fit-row dd { line-height: 1.6563rem; }
.fit-row dd.why { color: var(--ink-2); }

/* FAQ */
.faq-list { margin-top: 32px; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; list-style: none; cursor: pointer; font-size: 1rem; font-weight: 700; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: inherit; font-weight: inherit; }
.faq-list summary svg { flex: none; width: 16px; height: 16px; transition: transform .15s; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list details p { padding: 0 32px 16px 0; font-size: 1rem; line-height: 1.6563rem; color: var(--ink); }

/* Closing CTA */
.cta-dark { border-radius: 20px; background: var(--ink); color: var(--inverse-ink); text-align: center; padding: 64px 24px; }
.cta-dark .h2 { max-width: 640px; margin: 0 auto; }
.cta-dark .h2 em { color: var(--brand-300); }
.cta-dark .body { max-width: 520px; margin: 20px auto 0; color: var(--inverse-ink-2); }
.cta-dark .btn-row { margin-top: 32px; justify-content: center; }
.cta-dark .small { margin-top: 20px; color: var(--inverse-ink-2); }

/* Blog index */
.blog-hero { padding: 48px 0 32px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.blog-hero .eyebrow { font-size: .8125rem; color: var(--ink-2); margin-bottom: 20px; }
.post-list { list-style: none; display: grid; gap: 16px; padding-bottom: 24px; max-width: 760px; margin: 0 auto; }
.post-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 28px; text-decoration: none; color: inherit; transition: border-color .15s; }
.post-card:hover { border-color: var(--brand); }
.post-card h2 { font-family: var(--serif); font-weight: 700; font-size: 1.875rem; line-height: 1.13; letter-spacing: -0.01em; color: var(--ink); margin: 6px 0 10px; }
.post-card p { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin-bottom: 14px; }
.post-meta { font-size: 13px; color: var(--ink-3); }
.read-more { font-size: 14px; font-weight: 500; color: var(--brand); }

/* Footer (matches the home page) */
.footer-wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
footer.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 32px 0 40px; border-top: 1px solid var(--border); font-size: 13px; color: var(--ink-3); }
.footer-logo { font-family: var(--serif); font-size: 18px; color: var(--brand); text-decoration: none; display: flex; align-items: center; gap: 3px; }
.footer-logo img { width: 20px; height: 20px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink-3); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .band { padding: 96px 0; }
  .hero { padding: 48px 0 96px; }
  h1.post-title { font-size: 3.375rem; }
  .h2 { font-size: 2.5rem; }
  .quick-picks { margin-top: 80px; box-shadow: none; }
  .picks a { grid-template-columns: minmax(0,1.1fr) minmax(0,1.6fr) minmax(0,.9fr); align-items: center; gap: 24px; }
  .pick-price { text-align: right; }
  .split { grid-template-columns: minmax(0,.9fr) minmax(0,1.4fr); gap: 64px; }
  .split-photo { aspect-ratio: 4 / 5; }
  .review { padding: 36px; }
  .review-title h3 { font-size: 1.875rem; }
  .pros-cons { grid-template-columns: 1fr 1fr; }
  .pricing-line { flex-direction: row; align-items: center; justify-content: space-between; }
  .fit-row { grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr) minmax(0,1.2fr); align-items: baseline; gap: 32px; }
  .cta-dark { padding: 96px 64px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  footer.site-footer { flex-direction: column; align-items: flex-start; }
}

.hero-inner { margin-top: 32px; }
.section-head-narrow { max-width: 640px; }
