/* Public pages (home, blog). Builds on the variables and components of app.css. */

.site { background: var(--surface); }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }

.site-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-nav .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.1rem; color: var(--text); }
.site-brand:hover { text-decoration: none; }
.site-brand img { max-height: 34px; max-width: 150px; }
.site-links { display: flex; gap: 22px; margin-left: 12px; }
.site-links a { color: var(--muted); font-weight: 550; }
.site-links a:hover, .site-links a.active { color: var(--text); text-decoration: none; }
.site-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) {
    .site-links { display: none; }
    .site-cta .btn-secondary { display: none; }
}

.hero { padding: 84px 0 70px; text-align: center; background:
    radial-gradient(800px 420px at 15% -10%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 62%),
    radial-gradient(700px 400px at 90% 0%, color-mix(in srgb, #22d3ee 16%, transparent), transparent 60%); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -.03em; line-height: 1.08; max-width: 820px; margin: 0 auto 18px; font-weight: 800; }
.hero h1 span { background: linear-gradient(90deg, var(--primary), #06b6d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.14rem; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .9rem; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; max-width: 760px; margin: 46px auto 0; }
.hero-stats div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.hero-stats strong { display: block; font-size: 1.35rem; }
.hero-stats span { color: var(--muted); font-size: .86rem; }

.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.02em; margin: 8px 0 10px; }
.section-head p { color: var(--muted); font-size: 1.04rem; margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature { padding: 24px; }
.feature .stat-icon { margin-bottom: 14px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; }
.step { position: relative; padding-left: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step h3 { margin-bottom: 4px; } .step p { color: var(--muted); margin: 0; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

.cta-band { background: linear-gradient(120deg, #4338ca, #0e7490); color: #fff; border-radius: 22px; padding: 44px 30px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-bottom: 22px; }
.cta-band .btn { background: #fff; color: #312e81; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; color: var(--text); transition: transform .15s, box-shadow .15s; margin: 0; }
.post-card:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 14px 34px rgba(16, 23, 41, .12); }
.post-cover { aspect-ratio: 1200 / 630; background: linear-gradient(135deg, var(--primary-soft), var(--info-soft)); display: grid; place-items: center; color: var(--primary); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 1.1rem; margin: 0; line-height: 1.35; }
.post-card p { color: var(--muted); margin: 0; font-size: .93rem; }
.post-meta { color: var(--muted); font-size: .82rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.blog-head { padding: 54px 0 30px; text-align: center; }
.blog-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
.blog-head p { color: var(--muted); font-size: 1.05rem; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 18px 0 0; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: .86rem; background: var(--surface); }
.chip:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.article { padding: 46px 0 70px; }
.article h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); letter-spacing: -.025em; line-height: 1.15; margin: 12px 0 14px; }
.article-cover { border-radius: 18px; overflow: hidden; margin: 26px 0 8px; border: 1px solid var(--border); }
.article-cover img { display: block; width: 100%; }
.prose { font-size: 1.08rem; line-height: 1.8; color: var(--text); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; } .prose h3 { font-size: 1.22rem; margin-top: 1.6em; } .prose h4 { font-size: 1.06rem; margin-top: 1.4em; }
.prose p { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4em; } .prose li + li { margin-top: .35em; }
.prose img { border-radius: 14px; margin: 0 auto; display: block; }
.prose blockquote { border-left: 4px solid var(--primary); margin-left: 0; margin-right: 0; padding: .3em 1.1em; color: var(--muted); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose th { background: var(--surface-2); }
.prose a { text-decoration: underline; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }

.site-foot { border-top: 1px solid var(--border); padding: 34px 0; color: var(--muted); font-size: .9rem; background: var(--surface); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
