/* Page styles for single pages and lists (company, privacy, terms, etc.) */

.page {
    padding: calc(var(--nav-h) + 80px) 0 120px;
    min-height: 100vh;
    background: #fff;
}

.page-header {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Host Grotesk', sans-serif;
    font-size: clamp(40px, 5.5vw, 64px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text);
    margin: 0;
}

.page-description {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink-600);
}

.page-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-700);
}

.page-content h2 {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text);
}

.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text);
}

.page-content p {
    margin-bottom: 16px;
}

.page-content p strong {
    color: var(--text);
    font-weight: 600;
}

.page-content a {
    color: var(--blue-700);
    text-decoration: none;
    font-weight: 500;
}

.page-content a:hover {
    text-decoration: underline;
}

.page-content ul,
.page-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content code {
    background: var(--ink-100);
    padding: 2px 6px;
    border-radius: var(--r-sm);
    font-family: 'Geist Mono', monospace;
    font-size: 0.9em;
    color: var(--ink-700);
}

.page-content pre {
    background: var(--ink-900);
    color: #E5E7EB;
    padding: 20px;
    border-radius: var(--r-md);
    overflow-x: auto;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.page-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Content List (for blog, use-cases listings) */
.content-list {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.content-item:last-child {
    border-bottom: none;
}

.content-item h2 {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.content-item h2 a {
    color: var(--text);
    text-decoration: none;
}

.content-item h2 a:hover {
    color: var(--blue-700);
}

.content-item p {
    color: var(--ink-600);
    margin-bottom: 8px;
    line-height: 1.55;
}

.content-item time {
    font-size: 13px;
    color: var(--ink-500);
    font-family: 'Geist Mono', monospace;
}

/* =========================================================
 * Blog Listing — sidebar + featured card + 2-column grid
 * Matches blog-listing.svg spec
 * ========================================================= */
.blog-listing {
    padding: calc(var(--nav-h) + 64px) 0 0;
    min-height: 100vh;
    background: #fff;
}
.blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
    padding-top: 8px;
}
.blog-sidebar-title {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--text);
}
.blog-sidebar-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-500);
    margin-bottom: 24px;
}
.blog-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid var(--ink-200);
    padding-top: 16px;
}
.blog-filter {
    padding: 6px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-500);
    transition: color .12s;
}
.blog-filter:hover { color: var(--text); }
.blog-filter.is-active { color: var(--blue-600); }

/* Featured hero card */
.blog-featured {
    margin-bottom: 48px;
}
.blog-featured-image {
    display: block;
    border-radius: 12px;
    overflow: hidden;
}
.blog-featured-image img {
    width: 100%;
    aspect-ratio: 952 / 500;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.blog-featured-image:hover img { transform: scale(1.02); }
.blog-featured h2 {
    margin-top: 16px;
    font-family: 'Host Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.blog-featured h2 a { color: var(--text); }
.blog-featured h2 a:hover { color: var(--blue-700); }

/* Category pill (single primary tag above title) */
.blog-category { margin-top: 16px; }
.blog-category-pill {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(31, 124, 225, .1);
    color: var(--blue-600);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}
.blog-excerpt {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-500);
}

/* Author chip — avatar + name + role */
.blog-author-chip {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.blog-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--ink-100);
}
.blog-author-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-500);
    text-transform: uppercase;
}
.blog-author-meta { display: flex; flex-direction: column; line-height: 1.25; }
.blog-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.blog-author-role {
    font-size: 13px;
    color: var(--ink-500);
}

/* 2-column card grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
}
.blog-card-image {
    display: block;
    border-radius: 12px;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    aspect-ratio: 456 / 239;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.blog-card-image:hover img { transform: scale(1.02); }
.blog-card h3 {
    margin-top: 12px;
    font-family: 'Host Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--blue-700); }

.blog-empty {
    padding: 80px 0;
    text-align: center;
    color: var(--ink-500);
    font-size: 16px;
}

/* =========================================================
 * Blog Article — hero image + narrow body + related posts
 * Matches blog-article.svg spec
 * ========================================================= */
.blog-article {
    padding: calc(var(--nav-h) + 64px) 0 120px;
    min-height: 100vh;
    background: #fff;
}
.blog-article-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 64px;
    align-items: start;
}
.blog-article-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
    padding-top: 8px;
    font-size: 14px;
}
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-500);
    font-weight: 500;
    transition: color .12s;
}
.blog-back-link:hover { color: var(--text); }
.blog-back-link svg { display: block; }
.blog-read-time {
    margin-top: 32px;
    color: var(--text);
    font-weight: 500;
}
.blog-share {
    margin-top: 24px;
}
.blog-share-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-500);
    margin-bottom: 12px;
}
.blog-share-icons {
    display: flex;
    gap: 14px;
}
.blog-share-icon {
    color: var(--ink-500);
    transition: color .12s;
    display: inline-flex;
}
.blog-share-icon:hover { color: var(--text); }

.blog-article-main { min-width: 0; }
.blog-article-header {
    margin-bottom: 32px;
}
.blog-article-header h1 {
    margin-top: 16px;
    font-family: 'Host Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
}
.blog-article-desc {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink-500);
}
.blog-article-hero {
    margin: 0 0 48px;
}
.blog-article-hero img {
    width: 100%;
    aspect-ratio: 872 / 458;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.blog-article-body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-700);
}
.blog-share-footer {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--ink-200);
}
.blog-article-body h2 {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text);
}
.blog-article-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text);
}
.blog-article-body p { margin-bottom: 16px; }
.blog-article-body p strong { color: var(--text); }
.blog-article-body a { color: var(--blue-700); font-weight: 500; }
.blog-article-body a:hover { text-decoration: underline; }
.blog-article-body ul,
.blog-article-body ol { padding-left: 24px; margin-bottom: 16px; }
.blog-article-body li { margin-bottom: 8px; }
.blog-article-body code {
    background: var(--ink-100);
    padding: 2px 6px;
    border-radius: var(--r-sm);
    font-family: 'Geist Mono', monospace;
    font-size: 0.9em;
}
.blog-article-body pre {
    background: var(--ink-900);
    color: #E5E7EB;
    padding: 20px;
    border-radius: var(--r-md);
    overflow-x: auto;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}
.blog-article-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.blog-article-body img {
    max-width: 100%;
    border-radius: var(--r-md);
    margin: 24px 0;
}
.blog-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}
.blog-article-body th,
.blog-article-body td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ink-200);
    text-align: left;
}
.blog-article-body th {
    font-weight: 600;
    color: var(--text);
}

/* Keep Reading */
.blog-related {
    margin-top: 80px;
}
.blog-related h2 {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    color: var(--text);
}
.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
}

/* Responsive */
@media (max-width: 900px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; border-bottom: 1px solid var(--ink-200); padding-bottom: 24px; margin-bottom: 24px; }
    .blog-sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-article-layout { grid-template-columns: 1fr; gap: 32px; }
    .blog-article-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
    .blog-read-time, .blog-share { margin-top: 0; }
    .blog-related-grid { grid-template-columns: 1fr; }
}
