/* Extracted verbatim from the homepage's inline <style> (landing-page/index.html, lines
   51-586, checked at commit f5823c46) — the homepage embeds its whole stylesheet inline and
   has no external CSS file to link to, so this file exists purely for the blog: /blog pages
   link to it instead of re-embedding ~540 lines of CSS in every rendered article. The
   BLOG-ONLY section below extends it with classes the homepage doesn't need. Keep the
   COPIED FROM HOMEPAGE section byte-for-byte in sync if the homepage's own <style> changes. */

/* ============ COPIED FROM HOMEPAGE (index.html <style>) ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #7528F0;
    --primary-dark: #4A1A6B;
    --primary-light: #9B4DFF;
    --accent: #D4A0D0;
    --bg-dark: #0F0C29;
    --bg-card: #1A1440;
    --text: #FFFFFF;
    --text-muted: #B0A8C8;
    --gradient: linear-gradient(135deg, #4A1A6B 0%, #7528F0 50%, #D4A0D0 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============ NAVBAR ============ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s;
}
nav.scrolled {
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 18px;
}
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: white; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(117,40,240,0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(117,40,240,0.5);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* ============ FOOTER ============ */
footer {
    padding: 60px 24px 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 12px;
    max-width: 300px;
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
}

/* ============ BLOG ONLY (new, not on the homepage) ============ */
.blog-wrap { max-width: 760px; margin: 0 auto; padding: 140px 24px 80px; }
.blog-crumbs { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.blog-crumbs a { color: var(--text-muted); text-decoration: none; }
.blog-crumbs a:hover { color: white; }

.doc h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.doc .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.doc .lead { font-size: 18px; color: var(--text-muted); margin-bottom: 28px; }
.doc h2 { font-size: 26px; font-weight: 800; margin: 40px 0 16px; }
.doc h3 { font-size: 19px; font-weight: 700; margin: 28px 0 12px; }
.doc p { margin-bottom: 18px; font-size: 16px; line-height: 1.75; color: var(--text); }
.doc ul, .doc ol { margin: 0 0 18px 22px; }
.doc li { margin-bottom: 8px; line-height: 1.7; color: var(--text); }
.doc a { color: var(--primary-light); }
.doc table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.doc th, .doc td { text-align: left; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 14px; }
.doc th { color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: 12px; }
.doc .back-links { margin-top: 26px; }
.doc .back-links a { color: var(--primary-light); }

/* Engine-rendered CTA (1.6.0, seo_blog/cta.py's `article.cta.html`/`.body_html`) — replaces
   the old `.blog-cta`/`cta.html.j2` block; selectors are fixed by the engine (`.sb-cta`,
   `.sb-cta__text`, `.sb-cta__btn`, `.sb-cta__btn--android`, `.sb-cta__btn--ios`), rules ported
   from the old block above. */
.sb-cta { background: var(--gradient); border-radius: 24px; padding: 40px 32px; text-align: center; margin: 36px 0; }
.sb-cta__text { font-size: 24px !important; margin: 0 auto 24px !important; max-width: 46ch; color: rgba(255,255,255,0.9) !important; }
.sb-cta__btn { display: inline-block; min-height: 44px; box-sizing: border-box; padding: 14px 32px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; background: white; color: var(--primary); box-shadow: 0 4px 20px rgba(0,0,0,0.2); transition: transform 0.2s, box-shadow 0.2s; }
.sb-cta__btn:hover { transform: translateY(-2px); }
.sb-cta__btn--android { margin: 0 8px; }
.sb-cta__btn--ios { margin: 0 8px; }

.qa { background: var(--bg-card); border: 1px solid rgba(117,40,240,0.1); border-radius: 14px; margin-bottom: 12px; padding: 20px 24px; }
.qa summary { font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa p { color: var(--text-muted); margin: 12px 0 0; font-size: 15px; }

.blog-index-hero { max-width: 760px; margin: 0 auto; padding: 140px 24px 40px; text-align: center; }
.blog-index-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 16px; }
.blog-index-hero p { color: var(--text-muted); font-size: 17px; }
.blog-cards { max-width: 760px; margin: 0 auto; padding: 0 24px 100px; display: grid; gap: 20px; }
.blog-card { background: var(--bg-card); border: 1px solid rgba(117,40,240,0.1); border-radius: 20px; padding: 28px; }
.blog-card h3 { font-size: 19px; margin-bottom: 8px; }
.blog-card h3 a { color: white; text-decoration: none; }
.blog-card h3 a:hover { color: var(--primary-light); }
.blog-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0; }
