:root {
    --bg: #f5f0e8;
    --surface: #ffffff;
    --text: #2d2b28;
    --text-secondary: #6b6560;
    --text-tertiary: #9b9590;
    --border: #e8e0d4;
    --accent: #c96442;
    --accent-soft: #f0e6df;
    --accent-bg: #faf6f1;
    --avatar: #c96442;
    --user-bg: #ede7dd;
    --tag-bg: #f0ebe3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── Header (mimics Claude top bar) ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    width: 100%;
    max-width: 800px;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.header-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}

.header-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.header-links a:hover {
    color: var(--text);
}

.header-links .cta {
    background: var(--text);
    color: var(--bg);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
}

.header-links .cta:hover {
    opacity: 0.85;
}

/* ── Chat Container ── */
.chat {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 1.5rem 6rem;
}

/* ── User Message ── */
.user-msg {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.user-bubble {
    background: var(--user-bg);
    border-radius: 20px 20px 4px 20px;
    padding: 1rem 1.4rem;
    max-width: 520px;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

/* ── Assistant Message ── */
.assistant-msg {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--avatar);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.avatar svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.msg-body {
    flex: 1;
    min-width: 0;
}

.msg-body p {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.75;
}

.msg-body p:last-child {
    margin-bottom: 0;
}

.msg-body strong {
    font-weight: 600;
    color: var(--text);
}

.msg-body em {
    font-style: normal;
    color: var(--text-secondary);
}

/* ── Headline Treatment ── */
.msg-body h1 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: var(--text);
}

/* ── Beat List ── */
.beats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1rem 0;
}

.beats li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.beat-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--tag-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 1px;
}

.beat-text {
    flex: 1;
}

.beat-text .label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.15rem;
}

.beat-text .title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.beat-text .desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Inline Pill ── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    background: var(--tag-bg);
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
}

.pill i {
    font-size: 0.75rem;
    color: var(--accent);
}

/* ── Action Buttons Row ── */
.actions-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.action-btn.primary {
    background: var(--text);
    color: var(--bg);
}

.action-btn.primary:hover {
    opacity: 0.85;
}

.action-btn.secondary {
    background: var(--tag-bg);
    color: var(--text);
}

.action-btn.secondary:hover {
    background: var(--border);
}

/* ── Divider ── */
.divider {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 2.5rem 0;
}

/* ── Arrow connector ── */
.arrow-connector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.82rem;
    margin: 0.5rem 0 0.5rem 2.5rem;
}

.arrow-connector i {
    font-size: 0.65rem;
}

/* ── Code Block (Claude-style) ── */
.code-block {
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #1e1e2e;
    border: 1px solid #2a2a3c;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: #181825;
    border-bottom: 1px solid #2a2a3c;
}

.code-block-header span {
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.75rem;
    color: #6c7086;
}

.code-block-header .copy-btn {
    background: none;
    border: none;
    color: #6c7086;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: inherit;
    transition: color 0.15s;
}

.code-block-header .copy-btn:hover {
    color: #a6adc8;
}

.code-block pre {
    padding: 1.25rem 1.5rem;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.82rem;
    line-height: 1.85;
    overflow-x: auto;
    color: #cdd6f4;
}

.code-block .c-e  { color: #f38ba8; font-weight: 500; }
.code-block .c-k  { color: #cba6f7; }
.code-block .c-p  { color: #89b4fa; }
.code-block .c-s  { color: #a6e3a1; }
.code-block .c-t  { color: #f9e2af; }
.code-block .c-cm { color: #585b70; font-style: italic; }

/* ── Generated Output Tags ── */
.output-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.output-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background: var(--tag-bg);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.output-tag i {
    font-size: 0.7rem;
    color: var(--accent);
}

/* ── Footer ── */
footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .copyright {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

footer .social {
    display: flex;
    gap: 1rem;
}

footer .social a {
    color: var(--text-tertiary);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.15s;
}

footer .social a:hover {
    color: var(--text);
}

/* ── Generated List ── */
.gen-list {
    list-style: none;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gen-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text);
}

.gen-list li i {
    color: var(--accent);
    font-size: 0.75rem;
    margin-top: 0.35rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.gen-list li span {
    color: var(--text-secondary);
}

/* ── Tech Stack Row ── */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    background: var(--tag-bg);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.tech-item i {
    color: var(--accent);
    font-size: 0.85rem;
}

/* ── Steps (Getting Started) ── */
.steps-list {
    list-style: none;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 1px;
}

.step-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

.step-content .code-block {
    margin: 0.5rem 0 0;
}

.step-content .code-block pre {
    padding: 0.85rem 1.2rem;
    font-size: 0.78rem;
    line-height: 1.7;
}

/* ── Sample Links ── */
.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.sample-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    background: var(--tag-bg);
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.15s;
    border: 1px solid transparent;
}

.sample-link:hover {
    background: var(--user-bg);
    border-color: var(--border);
}

.sample-link > i:first-child {
    color: var(--accent);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.sample-arrow {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    transition: transform 0.15s;
}

.sample-link:hover .sample-arrow {
    transform: translateX(2px);
    color: var(--accent);
}

/* ── Doc Links ── */
.doc-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1rem 0;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    background: var(--tag-bg);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.doc-link:hover {
    background: var(--user-bg);
    border-color: var(--border);
}

.doc-link .doc-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.doc-link .doc-text {
    flex: 1;
}

.doc-link .doc-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.doc-link .doc-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.doc-link .doc-arrow {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    transition: transform 0.15s;
}

.doc-link:hover .doc-arrow {
    transform: translateX(3px);
    color: var(--accent);
}

/* ── Tooltip ── */
.has-tooltip {
    position: relative;
    cursor: help;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--text-tertiary);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    transition: text-decoration-color 0.15s;
}

.has-tooltip:hover {
    text-decoration-color: var(--accent);
}

.tooltip-card {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    width: 360px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    z-index: 50;
    pointer-events: none;
}

.has-tooltip:hover .tooltip-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.tooltip-card::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}

.tooltip-card .tooltip-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.tooltip-card .tooltip-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tooltip-card .tooltip-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: var(--tag-bg);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.tooltip-card .tooltip-list li i {
    color: var(--accent);
    font-size: 0.65rem;
}

@media (max-width: 640px) {
    .tooltip-card {
        width: 280px;
        left: -10px;
    }
}

/* ── CTA Section ── */
.cta-section {
    text-align: center;
    padding: 3rem 0 2rem;
}

.cta-section .tagline {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.cta-section .tagline-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cta-section .actions-row {
    justify-content: center;
}

/* ── Scroll Reveal ── */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger children inside assistant messages */
.js .reveal.visible .msg-body > *,
.js .reveal.visible .beats > li,
.js .reveal.visible .gen-list > li,
.js .reveal.visible .steps-list > li {
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}

.js .reveal.visible .msg-body > *:nth-child(1) { animation-delay: 0.15s; }
.js .reveal.visible .msg-body > *:nth-child(2) { animation-delay: 0.3s; }
.js .reveal.visible .msg-body > *:nth-child(3) { animation-delay: 0.45s; }
.js .reveal.visible .msg-body > *:nth-child(4) { animation-delay: 0.6s; }
.js .reveal.visible .msg-body > *:nth-child(5) { animation-delay: 0.75s; }

.js .reveal.visible .beats > li:nth-child(1) { animation-delay: 0.3s; }
.js .reveal.visible .beats > li:nth-child(2) { animation-delay: 0.5s; }
.js .reveal.visible .beats > li:nth-child(3) { animation-delay: 0.7s; }
.js .reveal.visible .beats > li:nth-child(4) { animation-delay: 0.9s; }

.js .reveal.visible .gen-list > li:nth-child(1) { animation-delay: 0.2s; }
.js .reveal.visible .gen-list > li:nth-child(2) { animation-delay: 0.3s; }
.js .reveal.visible .gen-list > li:nth-child(3) { animation-delay: 0.4s; }
.js .reveal.visible .gen-list > li:nth-child(4) { animation-delay: 0.5s; }
.js .reveal.visible .gen-list > li:nth-child(5) { animation-delay: 0.6s; }
.js .reveal.visible .gen-list > li:nth-child(6) { animation-delay: 0.7s; }
.js .reveal.visible .gen-list > li:nth-child(7) { animation-delay: 0.8s; }

.js .reveal.visible .steps-list > li:nth-child(1) { animation-delay: 0.2s; }
.js .reveal.visible .steps-list > li:nth-child(2) { animation-delay: 0.45s; }
.js .reveal.visible .steps-list > li:nth-child(3) { animation-delay: 0.7s; }
.js .reveal.visible .steps-list > li:nth-child(4) { animation-delay: 0.95s; }

.js .reveal.visible .doc-links > a {
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}

.js .reveal.visible .doc-links > a:nth-child(1) { animation-delay: 0.2s; }
.js .reveal.visible .doc-links > a:nth-child(2) { animation-delay: 0.35s; }
.js .reveal.visible .doc-links > a:nth-child(3) { animation-delay: 0.5s; }
.js .reveal.visible .doc-links > a:nth-child(4) { animation-delay: 0.65s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .chat { padding: 72px 1rem 4rem; }

    .header-links .desktop-only { display: none; }

    .user-bubble { max-width: 85%; }

    .msg-body h1 { font-size: 1.35rem; }

    .beats li { flex-direction: column; gap: 0.4rem; }

    footer { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ══════════════════════════════════════════════════════════
   jfaster.ai additions
   ══════════════════════════════════════════════════════════ */
:root { --code-bg: #1e1e2e; --code-head: #181825; --code-border: #2a2a3c; --ok: #3f7d4e; }
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1f1e1c; --surface: #292725; --text: #ece7df; --text-secondary: #b2aaa0;
        --text-tertiary: #857e76; --border: #3a3733; --accent: #e07a55; --accent-soft: #3b2a22;
        --accent-bg: #262422; --avatar: #c96442; --user-bg: #33302c; --tag-bg: #2e2b28; --ok: #7fc28f;
    }
}
html { -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
.msg-body a { text-underline-offset: 3px; }
.msg-body h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; margin: 1.5rem 0 0.6rem; }
.msg-body ul.plain { margin: 0.5rem 0 1rem 1.2rem; font-size: 0.93rem; }
.msg-body ul.plain li { margin-bottom: 0.35rem; }
.msg-body code, .doc code { font-family: 'Fira Code', 'SF Mono', Menlo, Consolas, monospace; font-size: 0.86em; background: var(--tag-bg); padding: 0.1em 0.35em; border-radius: 5px; }
.code-block pre code, .doc pre code { background: none; padding: 0; font-size: inherit; }
.logo .dot { color: var(--accent); }

/* Human notice (top of every page) */
.human-bar {
    position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
    background: var(--accent-soft); border-bottom: 1px solid var(--border);
    font-size: 0.8rem; color: var(--text-secondary); text-align: center; padding: 0.35rem 1rem;
}
.human-bar a { color: var(--accent); font-weight: 600; text-decoration: none; }
.human-bar a:hover { text-decoration: underline; }
.chat { padding-top: 112px; }

/* Agent quick path card */
.agent-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 1.1rem 1.25rem; margin: 0 0 2.5rem;
}
.agent-card .kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.agent-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.agent-card ol { list-style: none; display: grid; gap: 0.45rem; counter-reset: q; }
.agent-card li { counter-increment: q; display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.88rem; align-items: baseline; }
.agent-card li::before { content: counter(q); flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; background: var(--tag-bg); color: var(--text-secondary); font-size: 0.7rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.agent-card li a { white-space: nowrap; font-family: 'Fira Code', monospace; font-size: 0.85rem; font-weight: 500; }
.agent-card li span { flex: 1 1 200px; color: var(--text-secondary); }

/* Stats table (production scale) */
.stats { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.86rem; }
.stats th, .stats td { text-align: right; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.stats th:first-child, .stats td:first-child { text-align: left; }
.stats th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); font-weight: 600; }

/* Fit / no-fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1rem 0; }
.fit > div { background: var(--tag-bg); border-radius: 12px; padding: 0.9rem 1rem; }
.fit h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.fit .yes h4 { color: var(--ok); }
.fit .no h4 { color: var(--text-tertiary); }
.fit ul { list-style: none; font-size: 0.86rem; display: grid; gap: 0.35rem; color: var(--text-secondary); }
.fit li::before { margin-right: 0.4rem; }
.fit .yes li::before { content: "✓"; color: var(--ok); }
.fit .no li::before { content: "–"; }

/* Quotes */
.quote-note { font-size: 0.85rem !important; color: var(--text-secondary) !important; }
.quotes { display: grid; gap: 0.6rem; margin: 1rem 0; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1.1rem; }
.quote .who { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.3rem; }
.quote blockquote { font-size: 0.9rem; line-height: 1.65; color: var(--text); }

/* Compare row */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1rem 0; }
.compare > div { border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem 1rem; background: var(--surface); }
.compare .num { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; }
.compare .lbl { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }

/* Footer inside flow */
footer .links { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; }
footer .links a { color: var(--text-tertiary); text-decoration: none; }
footer .links a:hover { color: var(--text); }

/* Doc pages */
.doc { max-width: 820px; margin: 0 auto; padding: 112px 1.5rem 4rem; }
.doc .crumbs { font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.doc .crumbs a { color: var(--text-secondary); text-decoration: none; }
.doc .crumbs a:hover { color: var(--accent); }
.doc h1 { font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1.25; margin-bottom: 1rem; }
.doc h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 2.2rem 0 0.8rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.doc h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
.doc h4 { font-size: 0.95rem; margin: 1.2rem 0 0.4rem; }
.doc p, .doc li { font-size: 0.95rem; }
.doc p { margin-bottom: 0.9rem; }
.doc ul, .doc ol { margin: 0 0 1rem 1.4rem; }
.doc li { margin-bottom: 0.3rem; }
.doc hr { border: none; height: 1px; background: var(--border); margin: 2rem 0; }
.doc blockquote { border-left: 3px solid var(--accent); padding: 0.4rem 1rem; margin: 1rem 0; background: var(--accent-bg); border-radius: 0 8px 8px 0; }
.doc blockquote p { margin: 0; }
.doc pre.code { background: var(--code-bg); color: #cdd6f4; border: 1px solid var(--code-border); border-radius: 10px; padding: 1rem 1.2rem; overflow-x: auto; font-family: 'Fira Code', Menlo, Consolas, monospace; font-size: 0.8rem; line-height: 1.7; margin: 0.8rem 0 1.2rem; }
.doc .table-wrap { overflow-x: auto; margin: 0.8rem 0 1.2rem; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.86rem; }
.doc th, .doc td { border-bottom: 1px solid var(--border); padding: 0.45rem 0.6rem; text-align: left; vertical-align: top; }
.doc th { background: var(--tag-bg); font-weight: 600; }
.doc .raw-link { font-family: 'Fira Code', monospace; }

@media (max-width: 640px) {
    .fit, .compare { grid-template-columns: 1fr; }
    .human-bar { font-size: 0.74rem; }
    .chat { padding-top: 104px; }
    .doc { padding: 104px 1rem 3rem; }
    .stats { font-size: 0.78rem; }
    .stats th, .stats td { padding: 0.4rem 0.3rem; }
}
