*, *::before, *::after { box-sizing: border-box; }
:root {
  color-scheme: light; --bg: oklch(97.02% 0 251.4); --surface: oklch(100% 0 0);
  --surface-hover: oklch(95.24% 0 251.4); --border: oklch(90% 0 251.4);
  --text: oklch(21.03% 0 251.4); --text-muted: oklch(55.17% 0 251.4);
  --accent: oklch(54.04% 0.1498 251.4); --accent-hover: oklch(48% 0.1498 251.4);
  --accent-foreground: oklch(99% 0 0); --shadow-soft: 0 1px 2px rgb(19 24 35 / .07); --radius: .125rem;
}
:root[data-theme="dark"] {
  color-scheme: dark; --bg: oklch(20.5% 0.008 251.4); --surface: oklch(24.5% 0.01 251.4);
  --surface-hover: oklch(28.5% 0.012 251.4); --border: oklch(34% 0.014 251.4);
  --text: oklch(96% 0 251.4); --text-muted: oklch(72% 0.01 251.4); --accent: oklch(66% 0.1498 251.4);
  --accent-hover: oklch(72% 0.1498 251.4); --accent-foreground: oklch(16% 0.02 251.4); --shadow-soft: 0 1px 2px rgb(0 0 0 / .4);
}
html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.nav { position: sticky; top: 0; z-index: 50; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 48px); background: color-mix(in oklab, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-brand img { width: auto; height: 21px; display: block; }
.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.btn-ghost, .btn-primary { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--radius); text-decoration: none; font-size: 13px; font-weight: 500; transition: color .15s, background .15s, transform .15s, box-shadow .15s; }
.btn-ghost { color: var(--text-muted); background: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface-hover); }
.btn-primary { gap: 6px; padding-inline: 16px; color: var(--accent-foreground); background: var(--accent); font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 5px 16px rgb(19 24 35 / .13); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-soft); }
.blog-shell, .article-shell { flex: 1 0 auto; }
.blog-shell, .article-shell { width: min(100% - 40px, 1040px); margin: 0 auto; }
.blog-shell { padding: clamp(70px, 10vw, 120px) 0 110px; }
.blog-header { max-width: 760px; margin-bottom: 64px; }
.eyebrow, time { color: var(--text-muted); font-size: 13px; }
.blog-header h1 { max-width: 720px; margin: 14px 0 0; font-size: clamp(40px, 6vw, 66px); font-weight: 500; letter-spacing: -.05em; line-height: 1.04; }
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.post-card, .empty-state { min-height: 245px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.post-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: background .15s, transform .15s; }
.post-card:hover { background: var(--surface-hover); transform: translateY(-2px); }
.post-card h2 { margin: 18px 0 10px; font-size: 25px; line-height: 1.15; letter-spacing: -.025em; }
.post-card p { margin: 0; color: var(--text-muted); line-height: 1.65; }
.post-card > span { margin-top: auto; padding-top: 24px; color: var(--accent); font-size: 13px; font-weight: 600; }
.empty-state { grid-column: 1 / -1; color: var(--text-muted); min-height: 150px; display: grid; place-items: center; }
.article-shell { max-width: 760px; padding: clamp(64px, 9vw, 108px) 0 120px; }
.article-header { padding-bottom: 42px; border-bottom: 1px solid var(--border); }
.article-header h1 { margin: 16px 0 0; font-size: clamp(40px, 7vw, 68px); line-height: 1.03; letter-spacing: -.05em; font-weight: 500; }
.article-content { padding-top: 42px; font-size: 17px; line-height: 1.78; overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; } .article-content > :last-child { margin-bottom: 0; }
.article-content h2, .article-content h3, .article-content h4 { margin: 2em 0 .7em; line-height: 1.2; letter-spacing: -.025em; }
.article-content h2 { font-size: 30px; } .article-content h3 { font-size: 23px; }
.article-content p, .article-content ul, .article-content ol, .article-content blockquote, .article-content pre { margin: 0 0 1.35em; }
.article-content a { color: var(--accent); text-underline-offset: 3px; }
.article-content img { display: block; max-width: 100%; height: auto; margin: 2em auto; border: 1px solid var(--border); border-radius: var(--radius); }
.article-content blockquote { margin-left: 0; padding-left: 20px; border-left: 2px solid var(--accent); color: var(--text-muted); }
.article-content pre, .article-content code { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.article-content code { padding: .12em .35em; font-size: .9em; } .article-content pre { padding: 18px; overflow-x: auto; } .article-content pre code { padding: 0; border: 0; }
.article-content hr { margin: 3em 0; border: 0; border-top: 1px solid var(--border); }

/* ---- Rich blog components (comparison pages, galleries, cards) ---- */
/* Multi-column layouts */
.article-content .fb-cols { display: grid; gap: 20px; margin: 2em 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-content .fb-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-content .fb-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-content .fb-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.article-content .fb-col > :first-child { margin-top: 0; }
.article-content .fb-col > :last-child { margin-bottom: 0; }

/* Versus layout: two sides split by a divider */
.article-content .fb-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; margin: 2em 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.article-content .fb-vs-side { padding: 24px; }
.article-content .fb-vs-side > :first-child { margin-top: 0; }
.article-content .fb-vs-side > :last-child { margin-bottom: 0; }
.article-content .fb-vs-divider { display: flex; align-items: center; justify-content: center; padding: 0 14px; background: var(--surface); border-inline: 1px solid var(--border); color: var(--text-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Cards */
.article-content .fb-card-grid { display: grid; gap: 16px; margin: 2em 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.article-content .fb-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.article-content .fb-card > :first-child, .article-content .fb-card-body > :first-child { margin-top: 0; }
.article-content .fb-card > :last-child, .article-content .fb-card-body > :last-child { margin-bottom: 0; }
.article-content .fb-card-head { margin: 0 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

/* Pros / cons */
.article-content .fb-proscons { display: grid; gap: 16px; margin: 2em 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-content .fb-pros, .article-content .fb-cons { list-style: none; margin: 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.article-content .fb-pros li, .article-content .fb-cons li { position: relative; padding-left: 26px; margin: 0 0 .6em; }
.article-content .fb-pros li:last-child, .article-content .fb-cons li:last-child { margin-bottom: 0; }
.article-content .fb-pros li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: oklch(62% 0.16 150); font-weight: 700; }
.article-content .fb-cons li::before { content: "\2715"; position: absolute; left: 0; top: 0; color: oklch(62% 0.18 25); font-weight: 700; }

/* Comparison tables */
.article-content .fb-compare { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 16px; display: table; }
.article-content .fb-compare th, .article-content .fb-compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.article-content .fb-compare thead th { background: var(--surface); font-weight: 600; }
.article-content .fb-compare tbody tr:hover { background: var(--surface-hover); }
.article-content .fb-compare .fb-compare-highlight { background: color-mix(in oklab, var(--accent) 12%, transparent); }
.article-content .fb-compare thead .fb-compare-highlight { background: color-mix(in oklab, var(--accent) 20%, var(--surface)); }

/* Image galleries */
.article-content .fb-gallery { display: grid; gap: 12px; margin: 2em 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.article-content .fb-gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-content .fb-gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-content .fb-gallery img { margin: 0; width: 100%; }

/* Media helpers */
.article-content img.fb-media-full, .article-content .fb-media-full img { max-width: none; width: 100%; }
.article-content img.fb-media-round, .article-content .fb-media-round img { border-radius: 12px; }
.article-content .fb-caption { display: block; margin: -1em 0 2em; text-align: center; color: var(--text-muted); font-size: 14px; }
.article-content .fb-center { text-align: center; }

/* Badges / pills */
.article-content .fb-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600; line-height: 1.7; }
.article-content .fb-badge-good { color: oklch(52% 0.16 150); border-color: color-mix(in oklab, oklch(52% 0.16 150) 40%, var(--border)); }
.article-content .fb-badge-bad { color: oklch(55% 0.18 25); border-color: color-mix(in oklab, oklch(55% 0.18 25) 40%, var(--border)); }
.article-content .fb-badge-accent { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 40%, var(--border)); }

/* Callouts */
.article-content .fb-callout { margin: 2em 0; padding: 18px 20px; border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius); background: var(--surface); }
.article-content .fb-callout > :first-child { margin-top: 0; }
.article-content .fb-callout > :last-child { margin-bottom: 0; }
.article-content .fb-callout-info { border-left-color: var(--accent); }
.article-content .fb-callout-warn { border-left-color: oklch(70% 0.15 75); }

.footer { flex-shrink: 0; border-top: 1px solid var(--border); padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-left, .footer-right { display: flex; align-items: center; }
.footer-left { gap: 16px; }
.footer-right { gap: 6px; color: var(--text-muted); font-size: 12px; }
.footer-right p { margin: 0; }
.footer-links { display: flex; gap: 14px; }
.footer-links a, .footer-right a { color: var(--text-muted); font-size: 12px; text-decoration: none; transition: color .15s; }
.footer-links a:hover, .footer-right a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 12px; }
.footer-wordmark { display: block; height: 16px; opacity: .5; }
.encoded-wordmark { display: block; height: 13px; margin-left: 4px; opacity: .5; filter: brightness(0); }
:root[data-theme="dark"] .encoded-wordmark { filter: brightness(0) invert(1); }
@media (max-width: 680px) {
  .blog-shell, .article-shell { width: min(100% - 32px, 1040px); }
  .post-list { grid-template-columns: 1fr; } .post-card { min-height: 220px; padding: 23px; }
  .article-shell { padding-top: 58px; } .article-header { padding-bottom: 34px; }
  .article-content { padding-top: 34px; font-size: 16px; }
  .article-content .fb-cols, .article-content .fb-cols-2, .article-content .fb-cols-3, .article-content .fb-cols-4,
  .article-content .fb-proscons, .article-content .fb-gallery-2, .article-content .fb-gallery-3 { grid-template-columns: 1fr; }
  .article-content .fb-vs { grid-template-columns: 1fr; }
  .article-content .fb-vs-divider { border-inline: 0; border-block: 1px solid var(--border); padding: 8px; }
  .article-content .fb-compare { display: block; overflow-x: auto; white-space: nowrap; }
  .footer { padding: 20px; }
}
@media (max-width: 520px) {
  .footer { flex-direction: column; align-items: flex-start; }
  .nav-link-pricing { display: none; }
}
@media (max-width: 400px) {
  .nav { padding-inline: 16px; }
  .nav-actions .btn-ghost { display: none; }
}

.footer-quote {
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: 12px;
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.7;
}

@media (min-width: 900px) {
    .footer:has(> .footer-quote) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .footer:has(> .footer-quote) > .footer-right {
        justify-self: end;
    }
}

@media (max-width: 899px) {
    .footer > .footer-quote {
        flex: 0 0 100%;
        width: 100%;
        order: 1;
    }
}
