/* Shared styles for the content pages (/ai, /vs-bugherd).
 *
 * index.html, docs.html, changelog.html and privacy.html predate this file
 * and still carry their own inline <style>; they were left alone on purpose.
 * Any page added from now on should link this instead of copying a fifth
 * block.  The tokens are the ones docs.html established:
 *   background #F6F2FF, ink #1A1A2E, accent #9841F7, card #fff.
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #F6F2FF;
    color: #1A1A2E;
    min-height: 100vh;
    padding: 40px 24px 64px;
    line-height: 1.6;
}

.container {
    max-width: 820px;
    margin: 0 auto;
}

/* -- Nav -- */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.brand img {
    width: 32px;
    height: 32px;
}

.brand a {
    color: #1A1A2E;
    text-decoration: none;
}

.nav-links a {
    color: #6b5aa0;
    text-decoration: none;
    font-size: 14px;
    margin-left: 18px;
}

.nav-links a:hover {
    color: #9841F7;
}

/* -- Header -- */
h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

h1 span {
    color: #9841F7;
}

.subtitle {
    color: #5a5a72;
    font-size: 15px;
    margin-bottom: 28px;
}

/* -- Table of contents -- */
.toc {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 20px 24px;
    margin-bottom: 28px;
}

.toc h2 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9841F7;
    margin-bottom: 10px;
}

.toc ol {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 32px;
}

.toc li {
    margin-bottom: 4px;
    break-inside: avoid;
}

.toc a {
    color: #3d3d5c;
    text-decoration: none;
    font-size: 14px;
}

.toc a:hover {
    color: #9841F7;
    text-decoration: underline;
}

/* -- Cards -- */
.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 28px 32px;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 14px;
    scroll-margin-top: 20px;
}

.card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 22px 0 8px;
    color: #3d3d5c;
}

.card p {
    margin-bottom: 12px;
    font-size: 15px;
}

.card ul,
.card ol {
    margin: 0 0 14px 20px;
    font-size: 15px;
}

.card li {
    margin-bottom: 6px;
}

a {
    color: #9841F7;
}

strong {
    font-weight: 700;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    background: #F3EFFC;
    color: #5B3BA8;
    padding: 1px 6px;
    border-radius: 5px;
}

kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    background: #fff;
    border: 1px solid #d9d2ec;
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 6px;
}

pre {
    background: #1E1B2E;
    color: #E9E4F8;
    border-radius: 10px;
    padding: 16px 18px;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 14px;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* -- Tables -- */
.table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    min-width: 480px;
}

th,
td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #ece7f8;
    vertical-align: top;
}

th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #8a7fb0;
    font-weight: 700;
}

td:first-child {
    white-space: nowrap;
}

/* -- Callout -- */
.note {
    background: #F6F2FF;
    border-left: 3px solid #9841F7;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 14px;
}

.note--warn {
    background: #FFF7ED;
    border-left-color: #F59E0B;
}

.footer {
    text-align: center;
    font-size: 13px;
    color: #8a7fb0;
    margin-top: 32px;
}

.footer a {
    color: #6b5aa0;
    text-decoration: none;
}

@media (max-width: 640px) {
    .toc ol {
        columns: 1;
    }

    .card {
        padding: 22px 20px;
    }
}

/* -- Call to action (added for /vs-bugherd; index.html has its own copy) -- */
.cta {
    display: inline-block;
    background: #9841F7;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(152, 65, 247, 0.35);
    transition: transform .12s ease, box-shadow .12s ease;
}

.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(152, 65, 247, 0.45);
}
