/* Reins — Editorial CSS
   Minimalist white editorial style
   Covers: blog articles, blog index, vs comparison pages
   ─────────────────────────────────────────── */

/* ── Reset ───────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Design tokens ──────────────────────── */
:root {
    --bg:      #fafaf8;
    --bg-sub:  #f2f2f0;
    --white:   #ffffff;
    --accent:  #ff6b35;
    --text:    #111111;
    --text-2:  #444444;
    --text-3:  #888888;
    --border:  #e2e2de;
    --green:   #16a34a;
    --red:     #dc2626;
    --purple:  #7c3aed;
}

/* ── Base ────────────────────────────────── */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    color: var(--text);
    letter-spacing: -0.025em;
}

/* ── Navigation ──────────────────────────── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 18px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.04em;
    text-decoration: none;
}
.logo-dot { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-link {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-3);
    text-decoration: none;
    letter-spacing: 0;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }

.nav-cta {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--border);
    letter-spacing: 0;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

/* ── Blog article ────────────────────────── */
.article {
    max-width: 680px;
    margin: 0 auto;
    padding: 120px 24px 96px;
}

.article-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.article-meta {
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Square min-read badges — thin border, small text */
.article-meta .tag,
.article-meta .read-time {
    background: transparent;
    border: 1px solid var(--border);
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-3);
    border-radius: 0;
}

.article h1 {
    font-size: clamp(24px, 4.5vw, 38px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    color: var(--text);
}
.article h1 .highlight { color: var(--accent); }

.article-sub {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.65;
    font-weight: 400;
}

/* ── Article content ─────────────────────── */
.article-content { font-size: 16px; }

.article-content h2 {
    font-size: 22px;
    font-weight: 300;
    margin: 52px 0 18px;
    letter-spacing: -0.025em;
    color: var(--text);
}

.article-content h3 {
    font-size: 17px;
    font-weight: 500;
    margin: 32px 0 12px;
    color: var(--text);
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-2);
    line-height: 1.75;
}

.article-content strong {
    color: var(--text);
    font-weight: 500;
}

.article-content ul {
    margin: 0 0 20px 20px;
    color: var(--text-2);
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content a:hover { opacity: 0.75; }

/* Code blocks — 1px border, light gray bg, monospace */
.article-content code {
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', monospace;
    font-size: 13px;
    background: var(--bg-sub);
    border: 1px solid var(--border);
    padding: 2px 5px;
    color: var(--text);
    border-radius: 0;
}

.article-content pre {
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', monospace;
    font-size: 13px;
    background: var(--bg-sub);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 24px 0;
    line-height: 1.65;
}

.article-content pre code {
    background: none;
    border: none;
    padding: 0;
}

/* ── Back/home link ──────────────────────── */
.back-link {
    display: inline-block;
    font-size: 12px;
    color: var(--text-3);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    margin-bottom: 32px;
}
.back-link:hover {
    color: var(--text);
    border-color: var(--text);
}

/* ── Callout block ───────────────────────── */
.callout {
    background: var(--bg-sub);
    border-left: 2px solid var(--accent);
    padding: 18px 22px;
    margin: 32px 0;
}
.callout p { margin: 0; font-size: 15px; color: var(--text-2); }
.callout strong { color: var(--text); }

/* ── Feature list ────────────────────────── */
.feature-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}
.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li .icon { font-size: 15px; flex-shrink: 0; margin-top: 2px; }

/* ── Comparison table (blog articles) ────── */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 14px;
    border: 1px solid var(--border);
}

.comparison-table thead tr { background: var(--bg-sub); }

.comparison-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}
.comparison-table thead th:last-child { border-right: none; }
.comparison-table thead th.col-helicone { color: var(--green); }
.comparison-table thead th.col-reins { color: var(--accent); }

.comparison-table tbody tr { border-bottom: 1px solid var(--border); }
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--bg-sub); }

.comparison-table td {
    padding: 11px 16px;
    color: var(--text-2);
    background: var(--white);
    border-right: 1px solid var(--border);
}
.comparison-table td:last-child { border-right: none; }
.comparison-table td:first-child {
    font-weight: 500;
    color: var(--text);
    background: var(--bg-sub);
}

/* ── Comparison grid (2-col side by side) ── */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    margin: 32px 0;
}
.comparison-cell {
    background: var(--white);
    padding: 22px;
    border-right: 1px solid var(--border);
}
.comparison-cell:last-child { border-right: none; }
.comparison-cell h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.comparison-cell.helicone h3 { color: var(--green); }
.comparison-cell.reins h3 { color: var(--accent); }
.comparison-cell p {
    font-size: 14px;
    color: var(--text-2);
    margin: 0;
    line-height: 1.65;
}

/* ── Check/cross/partial indicators ─────── */
.check { color: var(--green); }
.cross { color: var(--red); }
.partial { color: var(--text-3); font-size: 13px; }

/* ── Related comparisons ─────────────────── */
.related-comparisons {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.related-comparisons h2 {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* Article cards — thin bordered, no shadow, square */
.comparisons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

.comparison-card {
    display: block;
    background: var(--white);
    padding: 18px 20px;
    text-decoration: none;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.comparison-card:nth-last-child(-n+2) { border-bottom: none; }
.comparison-card:nth-child(even) { border-right: none; }
.comparison-card:hover { background: var(--bg-sub); }

.comparison-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 5px;
}
.comparison-card p {
    font-size: 12px;
    color: var(--text-3);
    margin: 0 0 8px 0;
    line-height: 1.5;
}
.comparison-card .arrow {
    display: inline-block;
    color: var(--text-3);
    font-size: 13px;
}

/* ── CTA section ─────────────────────────── */
.cta-section {
    padding: 44px 32px;
    text-align: center;
    background: var(--bg-sub);
    margin-top: 64px;
    border: 1px solid var(--border);
}
.cta-section h2 {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: -0.025em;
    position: relative;
}
/* strip any pseudo-element glow from vs pages */
.cta-section::before { display: none !important; }

.cta-section p {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 22px;
    position: relative;
}

.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    border: none;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0;
    position: relative;
}
.cta-btn:hover { opacity: 0.85; transform: none; }

/* ── Blog index ──────────────────────────── */
.page-header {
    padding: 140px 48px 48px;
    max-width: 720px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: clamp(26px, 4.5vw, 40px);
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.page-header h1 .highlight { color: var(--accent); }

.page-header p {
    font-size: 16px;
    color: var(--text-2);
    max-width: 480px;
    line-height: 1.65;
}

/* Article list — thin bordered, no shadow, square */
.posts-grid {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 48px 80px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.post-card {
    display: block;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
    text-decoration: none;
}
.post-card:last-child { border-bottom: none; }
.post-card:hover { background: var(--bg-sub); }

/* Tag/badge on post cards */
.post-card .tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-3);
    border: 1px solid var(--border);
    padding: 3px 7px;
    border-radius: 0;
    margin-bottom: 12px;
}

.post-card h2 {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--text);
}
.post-card h2 .highlight { color: var(--accent); }

.post-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 12px;
}

.post-card .meta {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── VS comparison pages ─────────────────── */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 140px 40px 72px;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
/* remove dark radial glow */
.hero::before { display: none !important; }

.hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.hero h1 .highlight { color: var(--accent); }

.hero-sub {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto;
}

.vs-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 28px auto 0;
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    font-size: 14px;
    border-radius: 0;
}
.vs-badge .product { font-weight: 500; color: var(--text); }
.vs-badge .vs { color: var(--text-3); }
.vs-badge .reins-text { color: var(--accent); }
.vs-badge .litellm-text { color: var(--purple); }
.vs-badge .portkey-text { color: #0284c7; }
.vs-badge .helicone-text { color: var(--green); }
.vs-badge .bifrost-text { color: #7c3aed; }

.comparison {
    padding: 56px 40px;
    max-width: 860px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 36px;
}
.section-header h2 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}
.section-header p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}

/* Comparison table on vs pages */
.comp-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    margin-bottom: 48px;
    font-size: 13px;
    border-radius: 0;
    overflow: hidden;
}

.comp-table thead th {
    font-size: 12px;
    font-weight: 500;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--bg-sub);
    color: var(--text-3);
    letter-spacing: 0;
}
.comp-table thead th:last-child { border-right: none; }

/* remove gradient from winner column */
.comp-table thead th.winner {
    background: var(--bg-sub);
    border-bottom: 2px solid var(--accent);
}

.comp-table thead th .th-product {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2px;
}
.comp-table thead th .th-tagline {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-3);
}
.comp-table thead th .th-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent);
    color: white;
    padding: 2px 7px;
    border-radius: 0;
    margin-top: 5px;
}

.comp-table tbody td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text-2);
    background: var(--white);
}
.comp-table tbody td:last-child { border-right: none; }
.comp-table tbody tr:last-child td { border-bottom: none; }
.comp-table tbody tr:hover td { background: var(--bg-sub); }
.comp-table .feature-name {
    color: var(--text);
    font-weight: 500;
    background: var(--bg-sub);
}

/* ── Why Reins cards ─────────────────────── */
.why-reins {
    padding: 56px 40px;
    max-width: 860px;
    margin: 0 auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--border);
}

.why-card {
    background: var(--white);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 22px;
    border-radius: 0;
}
.why-card:nth-child(even) { border-right: none; }
.why-card:nth-last-child(-n+2) { border-bottom: none; }

/* remove gradient from reins-highlighted cards */
.why-card.reins {
    background: var(--white);
    border: none;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.why-card.reins:nth-child(even) { border-right: none; }
.why-card.reins:nth-last-child(-n+2) { border-bottom: none; }

.why-card h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.why-card h3 .badge {
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent);
    color: white;
    padding: 2px 7px;
    border-radius: 0;
}

.why-card p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

.why-card ul {
    margin-top: 10px;
    padding-left: 16px;
}
.why-card li {
    font-size: 12px;
    color: var(--text-2);
    margin-bottom: 5px;
}

/* ── Back to top ─────────────────────────── */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 40px; height: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-3);
    font-size: 16px;
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0;
    box-shadow: none;
}
.back-to-top:hover { border-color: var(--accent); color: var(--accent); background: var(--white); }
.back-to-top.visible { opacity: 1; visibility: visible; }

/* ── Footer ──────────────────────────────── */
footer {
    padding: 64px 48px 80px;
    border-top: 1px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 860px;
    margin: 0 auto;
    font-size: 12px;
    color: #999;
    background: #fff;
}
footer a {
    color: #000;
    text-decoration: none;
    margin: 0 5px;
}
footer a:hover { text-decoration: underline; color: #000; }
.footer-credit {
    font-size: 11px;
    color: #bbb;
    font-weight: 300;
}

.vs-hidden { display: none; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
    nav { padding: 16px 20px; }
    .nav-links { gap: 14px; }

    .article { padding: 100px 20px 48px; }
    .comparison-grid { grid-template-columns: 1fr; }
    .comparison-cell { border-right: none; border-bottom: 1px solid var(--border); }
    .comparison-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .comparison-table td, .comparison-table th { padding: 9px 10px; font-size: 13px; }

    .page-header { padding: 120px 20px 36px; }
    .posts-grid { padding: 0 0 48px; margin: 0 20px; }

    .hero { padding: 120px 20px 52px; }
    .comparison, .why-reins { padding: 44px 20px; }
    .cta-section { padding: 44px 20px; }
    .why-grid { grid-template-columns: 1fr; }
    .why-card, .why-card.reins { border-right: none; }
    .why-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .why-card:last-child { border-bottom: none; }

    .comp-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    footer { padding: 40px 20px 60px; flex-direction: column; gap: 16px; text-align: center; align-items: center; }
}

@media (max-width: 414px) {
    .article { padding: 90px 16px 40px; }
    .comparison-grid { gap: 0; }
    .page-header { padding: 100px 16px 28px; }
    .posts-grid { margin: 0 16px; }
    .hero h1 { font-size: 26px; }
}

@media (max-width: 375px) {
    nav { padding: 14px 16px; }
    .article { padding: 80px 14px 32px; }
}
