/* blog.css — the blog's look, matched to the homepage tokens (index.html :root). */
:root {
  --bg: #FFF8EC; --shelf: #FAF1DD; --surface: #FFFCF5;
  --primary: #1D9E75; --primary-dark: #16805F; --primary-soft: rgba(29,158,117,0.12); --primary-tint: rgba(29,158,117,0.07);
  --accent: #FF7A59;
  --ink: #1F2A24; --ink-muted: #5F6B63; --ink-dim: #8A958E; --ink-deep: #16241D;
  --hair: rgba(31,42,36,0.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--primary-dark); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,248,236,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); }
.header-inner { max-width: 1180px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.logo img { border-radius: 9px; display: block; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-muted); font-weight: 700; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: var(--primary); color: #FFFDF7; font-weight: 800; font-size: 15.5px; height: 48px; padding: 0 22px; border-radius: 13px; box-shadow: 0 8px 18px rgba(29,158,117,0.24); white-space: nowrap; }
.btn:hover { filter: brightness(1.04); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 11px; }
@media (max-width: 560px) { .nav a[href="/#pricing"] { display: none; } .nav { gap: 14px; } }

/* article */
.post { padding: 36px 0 64px; }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-dim); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.post h1 { font-size: 40px; line-height: 1.1; letter-spacing: -1.1px; font-weight: 800; margin: 14px 0 12px; text-wrap: balance; }
.byline { font-size: 14px; font-weight: 700; color: var(--ink-dim); margin: 0 0 26px; }
.tldr { background: var(--primary-tint); border: 1.5px solid rgba(29,158,117,0.22); border-radius: 18px; padding: 18px 20px; }
.tldr-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary-dark); margin: 0 0 6px; }
.tldr p:last-child { margin: 0; font-size: 16.5px; line-height: 1.55; font-weight: 600; }
.toc { margin: 18px 0 0; background: var(--surface); border: 1.5px solid var(--hair); border-radius: 16px; }
.toc summary { cursor: pointer; padding: 14px 18px; font-weight: 800; font-size: 15px; }
.toc ol { margin: 0; padding: 0 18px 16px 38px; display: grid; gap: 7px; }
.toc a { text-decoration: none; font-weight: 700; font-size: 14.5px; }

.prose { font-size: 17px; line-height: 1.7; font-weight: 500; }
.prose h2 { font-size: 27px; line-height: 1.2; letter-spacing: -0.6px; font-weight: 800; margin: 46px 0 12px; text-wrap: balance; }
.prose h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.3px; font-weight: 800; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 0 0 7px; }
.prose strong { font-weight: 800; }
.prose blockquote { margin: 20px 0; padding: 14px 18px; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-size: 0.9em; background: rgba(31,42,36,0.06); padding: 2px 5px; border-radius: 5px; }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 36px 0; }
.table-scroll { overflow-x: auto; margin: 20px 0 24px; border: 1.5px solid var(--hair); border-radius: 16px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose thead th { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ink-muted); background: var(--shelf); white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 800; }

/* download box */
.cta { display: flex; align-items: center; gap: 16px; margin: 32px 0; padding: 20px 22px; background: var(--surface); border: 2px solid rgba(29,158,117,0.35); border-radius: 20px; box-shadow: 0 16px 34px rgba(29,158,117,0.1); }
.cta img { border-radius: 13px; flex-shrink: 0; }
.cta-copy { flex: 1; min-width: 0; }
.cta-title { margin: 0 0 3px; font-weight: 800; font-size: 17px; }
.cta-body { margin: 0; font-size: 14.5px; line-height: 1.5; font-weight: 600; color: var(--ink-muted); }
@media (max-width: 600px) { .cta { flex-wrap: wrap; } .cta-btns { width: 100%; } .cta-btns .btn { width: 100%; } }

.related { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--hair); }
.related h2 { font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related a { font-weight: 700; text-decoration: none; }

/* index */
.blog-head { padding: 48px 0 12px; }
.blog-head h1 { font-size: 42px; letter-spacing: -1.2px; font-weight: 800; margin: 0 0 10px; }
.blog-head p { font-size: 17.5px; line-height: 1.55; font-weight: 600; color: var(--ink-muted); margin: 0; }
.post-list { list-style: none; padding: 0; margin: 26px 0 72px; display: grid; gap: 14px; }
.post-list a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1.5px solid var(--hair); border-radius: 18px; padding: 20px 22px; transition: transform 160ms ease, box-shadow 160ms ease; }
.post-list a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31,42,36,0.07); }
.pl-title { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.3; }
.pl-desc { font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--ink-muted); }
.pl-meta { font-size: 13px; font-weight: 700; color: var(--ink-dim); }

/* footer */
.site-footer { background: var(--ink-deep); color: #E7E0D2; padding: 40px 0 32px; }
.footer-inner { max-width: 1180px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.logo-light { color: #FFFDF7; font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: rgba(231,224,210,0.8); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.footer-links a:hover { color: #FFFDF7; }
.footer-fine { width: 100%; margin: 6px 0 0; font-size: 13px; font-weight: 600; color: rgba(231,224,210,0.5); }

@media (max-width: 720px) {
  .post h1 { font-size: 31px; letter-spacing: -0.8px; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 23px; }
  .blog-head h1 { font-size: 33px; }
}
