/* blog.css: article layout for /blogs/ on the site design system (system.css tokens: --ink, --muted, --line, --accent).
   Header and footer come from partials/ via scripts/build_partials.py; this file styles only what sits between them. */

/* system.css makes every main > section one full screen: articles are plain flowing pages */
main.article-layout > section, main.blogs-layout > section { height: auto !important; min-height: 0 !important; padding: 0 !important; }
main.article-layout > section::before, main.article-layout > section::after,
main.blogs-layout > section::before, main.blogs-layout > section::after { content: none !important; }

.page-hero, .article-layout, .blogs-layout { width: min(100% - 48px, 1120px); margin-inline: auto; }
.page-hero { padding: calc(var(--nav, 72px) + clamp(40px, 8vh, 88px)) 0 clamp(32px, 5vh, 56px); border-bottom: 1px solid var(--line); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent, #3f51d1) 9%, transparent); color: var(--accent, #3f51d1); font-size: 13px; font-weight: 500; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.04em; max-width: 22ch; }
.hero-copy { margin-top: 20px; max-width: 64ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; }
.hero-byline { margin-top: 18px; color: var(--muted); font-size: 15px; }
.hero-byline strong { color: var(--ink); font-weight: 500; }
.hero-meta { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-tag, .blog-tag { display: inline-flex; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12.5px; font-weight: 500; background: var(--bg); }

.article-layout { padding: clamp(36px, 6vh, 64px) 0 clamp(64px, 10vh, 112px); display: grid; gap: 28px; }
.article-layout > *, .overview-grid > *, .blog-grid > *, .guide > *, .guide section > *, .platform-card > * { min-width: 0; }
.overview-card, .platform-card, .blog-card, .guide { overflow-wrap: break-word; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.overview-card, .blog-card, .platform-card, .stat, .question-box { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.overview-card { padding: 24px; }
.overview-card h2 { font: 500 13px/1.4 var(--font-text); letter-spacing: .04em; text-transform: uppercase; color: var(--accent, #3f51d1); margin-bottom: 10px; }
.overview-card p, .overview-card li { color: #3f3f46; font-size: 16px; line-height: 1.6; }

.guide { display: grid; gap: 40px; max-width: 760px; }
.guide section { display: grid; gap: 16px; }
.guide h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.03em; }
.guide h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; margin-top: 8px; }
.guide h4 { font-size: 16px; }
.guide p, .guide li { font-size: 17px; line-height: 1.7; color: #27272a; }
.guide .lede { font-size: 19px; color: var(--ink); }
.guide ul, .guide ol, .overview-card ul, .overview-card ol { padding-left: 1.3em; }
.guide ul, .overview-card ul { list-style: disc; }
.guide ol, .overview-card ol { list-style: decimal; }
.guide li + li { margin-top: 8px; }
.guide a, .overview-card a, .callout a, .quick a, .faq a { color: var(--accent, #3f51d1); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--accent, #3f51d1) 40%, transparent); }
.guide strong { font-weight: 600; color: var(--ink); }

.quick { border: 1px solid color-mix(in oklab, var(--accent, #3f51d1) 35%, transparent); background: color-mix(in oklab, var(--accent, #3f51d1) 5%, var(--bg)); border-radius: 16px; padding: 22px 24px; }
.quick strong { display: block; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--accent, #3f51d1); margin-bottom: 8px; }
.callout, .concept-example { border-left: 3px solid var(--accent, #3f51d1); padding: 16px 20px; background: var(--surface, #fafafa); border-radius: 0 12px 12px 0; }
.concept-example { display: grid; gap: 12px; }
.example-label, .question-box .label { font-size: 12.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--accent, #3f51d1); }
.question-box { padding: 20px; display: grid; gap: 10px; }

.comparison-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.comparison { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.comparison th, .comparison td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison tr:last-child td { border-bottom: 0; }
.comparison th { background: var(--surface, #fafafa); font-size: 13px; font-weight: 500; color: var(--muted); }
.comparison td { color: #27272a; line-height: 1.55; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 22px; }
.stat strong { display: block; font: 500 34px/1.05 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.platform-card { padding: 26px; display: grid; gap: 14px; }
.platform-card.featured { border-color: color-mix(in oklab, var(--accent, #3f51d1) 40%, transparent); }
.platform-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.platform-title h3 { margin-top: 0; font-size: 22px; }
.platform-subtitle { color: var(--muted); font-size: 15px; margin-top: 4px; }
.platform-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.platform-meta-block { background: var(--surface, #fafafa); border-radius: 12px; padding: 16px 18px; }
.platform-meta-block h4 { font-size: 12.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--accent, #3f51d1); margin-bottom: 8px; }
.platform-rank { display: inline-flex; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--muted); }

.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 17px; color: var(--ink); }
.faq details p { margin-top: 10px; }

.cta-card { border-radius: 20px; padding: clamp(28px, 4vw, 44px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--p-inv-bg, #09090b); color: #fff; }
.cta-card h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 10px; color: #fff; }
.cta-card p { color: #a1a1aa; max-width: 60ch; font-size: 16px; line-height: 1.6; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-dark, .btn-outline, .blog-link { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; }
.btn-dark { background: var(--accent, #3f51d1); color: #fff; }
.btn-dark:hover { background: color-mix(in oklab, var(--accent, #3f51d1) 86%, #000); }
.btn-outline { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.btn-outline:hover { border-color: rgba(255,255,255,.6); }

.blogs-layout { padding: clamp(36px, 6vh, 64px) 0 clamp(64px, 10vh, 112px); }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.blog-card { padding: 26px; display: grid; gap: 14px; align-content: start; transition: border-color .15s ease; }
.blog-card:hover { border-color: var(--line-strong); }
.blog-card h2 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.blog-card p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.blog-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-link { background: var(--ink); color: var(--bg); width: fit-content; margin-top: 4px; }

@media (max-width: 980px) {
  .overview-grid, .platform-meta, .blog-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .page-hero, .article-layout, .blogs-layout { width: min(100% - 32px, 1120px); }
}
