:root {
    --bg: #020A0D;
    --bg1: #040E12;
    --bg2: #071318;
    --bg3: #0A1A20;
    --border: #0F2730;
    --border2: #163340;
    --text: #E9F7FF;
    --text2: #7AACBF;
    --text3: #5B727C;
    --text-accent: #C8DAF5;
    --accent: #1065e6;
    --orange: #f97316;
    --accent2: #154A99;
    --accent-dim: #1B5DC015;
    --green: #4ade80;
    --green-dim: #16653420;
    --cyan: #22d3ee;
    --cyan-dim: #0e749020;
    --purple: #a78bfa;
    --purple-dim: #6d28d920;
    --sans: 'DM Sans', system-ui, sans-serif;
    --display: 'DM Sans', system-ui, sans-serif;
    --mono: 'DM Mono', 'SF Mono', monospace;
    --max: 1320px;
    --r: 8px;
    --r2: 12px;
}

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) var(--bg);
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page scrollbar — matches terminal scrollbar style */
html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: var(--bg);
}

html::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 5px;
    border: 2px solid var(--bg);
}

html::-webkit-scrollbar-thumb:hover {
    background: var(--text3);
}

html::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

::selection {
    background: var(--accent);
    color: var(--text);
}

code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--text2);
}

/* Copyable install-command panel */
.copy-cmd {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    width: fit-content;
    max-width: 100%;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--r);
    padding: 10px 12px 10px 14px;
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 24px;
    overflow: hidden;
}

.hero-left .copy-cmd {
    opacity: 0;
    animation: fadeUp 0.6s 0.4s forwards;
}

.copy-cmd-prompt {
    color: var(--green);
    font-weight: 500;
    flex-shrink: 0;
}

.copy-cmd-text {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.copy-cmd-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text3);
    font-family: inherit;
    font-size: 0.58rem;
    padding: 3px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.03em;
}

.copy-cmd-btn:hover {
    color: var(--text);
    border-color: #2A72D6;
    background: #1B5DC025;
}

.copy-cmd-btn.is-copied {
    color: var(--green);
    border-color: #16653450;
    background: var(--green-dim);
}

.install-alt {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text3);
    line-height: 1.6;
}

.install-alt a {
    color: var(--text2);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.install-alt a:hover {
    color: var(--text);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 999;
}

.w {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 48px;
}

@media (max-width: 768px) {
    .w {
        padding: 0 20px;
    }
}

/* NAV */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 56px;
    display: flex;
    align-items: center;
    background: rgba(2, 10, 13, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.site-nav .w {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

.nav-logo-text {
    font-family: var(--display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-accent);
    letter-spacing: -0.01em;
}

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

.nav-links a {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text3);
    text-decoration: none;
    transition: color 0.15s;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--text2);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: var(--r);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--text);
    font-weight: 500;
}

.btn-primary:hover {
    background: #2A72D6;
    box-shadow: 0 0 24px #1B5DC040;
}

.btn-ghost {
    background: transparent;
    color: var(--text3);
    border: 1px solid var(--border2);
}

.btn-ghost:hover {
    color: var(--text2);
    background: var(--bg2);
}

.btn-dl {
    font-family: var(--mono);
    font-size: 0.75rem;
    padding: 9px 16px;
    background: var(--bg2);
    color: var(--text2);
    border: 1px solid var(--border2);
    border-radius: var(--r);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.15s;
    letter-spacing: 0.02em;
}

.btn-dl:hover {
    border-color: #2A72D6;
    color: #5B9CE8;
    background: #1B5DC025;
}

.btn-dl.primary-dl {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
    font-weight: 500;
}

.btn-dl.primary-dl:hover {
    background: #2A72D6;
}

/* HERO */
.hero {
    padding: 136px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse at center, #1B5DC010 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.25;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 0%, transparent 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 64px;
    align-items: center;
}

.hero-right {
    order: -1;
    min-width: 0;
}

.hero-left {
    min-width: 0;
}

/* Left col */
.hero-left {}

/* Centered headline above the two-column area. The H1 is the page's main
 * eye-magnet — pulling it center-stage gives it the attention it needs. */
.hero-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--display);
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 14px;
    opacity: 0;
    animation: fadeUp 0.6s 0.15s forwards;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero h1 .dim {
    color: var(--text3);
}

/* Right-column subhead — small bold "What's Kept?" label introducing the
 * two-paragraph stack below it. */
.hero-subhead {
    font-family: var(--display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 14px;
    letter-spacing: 0;
    line-height: 1.3;
    opacity: 0;
    animation: fadeUp 0.6s 0.55s forwards;
}

/* Two-paragraph subtitle stack in the right column. Both paragraphs share
 * the same style; only spacing separates them. */
.hero-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text2);
    max-width: 400px;
    margin: 0 0 14px;
    opacity: 0;
    animation: fadeUp 0.6s 0.3s forwards;
}

.hero-desc + .hero-desc {
    margin-bottom: 28px;
    animation-delay: 0.4s;
}

/* Terminal-style quick facts */
.hero-terminal {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--r);
    padding: 16px 20px;
    margin-top: 24px;
    margin-bottom: 0;
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 0.6s 0.4s forwards;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text2);
}

.terminal-line .t-key {
    color: var(--text3);
    min-width: 140px;
}

.terminal-line .t-val {
    color: var(--text);
}

.terminal-line .t-val.green {
    color: var(--green);
}

.terminal-line .t-val.accent {
    color: var(--accent);
}

.terminal-line .t-val.cyan {
    color: var(--cyan);
}

.hero-dl-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.6s 0.5s forwards;
}

.hero-links {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 0.6s 0.6s forwards;
}

.hero-links a {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text3);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
    letter-spacing: 0.02em;
}

.hero-links a:hover {
    color: var(--text2);
}

.hero-links .sep {
    color: var(--border2);
}

/* Right col - mockup */
.hero-right {
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
}

.app-window {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg1);
    border: 1px solid var(--border2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border), 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 60px #154A990A;
    width: 600px;
    height: 500px;
    min-width: 520px;
    max-width: 820px;
}

.fs-resize-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: ew-resize;
    user-select: none;
    touch-action: none;
    z-index: 2;
}

.fs-resize-handle--right {
    right: 0;
}

.app-titlebar {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.titlebar-dots {
    display: flex;
    gap: 5px;
}

.titlebar-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.titlebar-dot:nth-child(1) {
    background: #ff5f57
}

.titlebar-dot:nth-child(2) {
    background: #febc2e
}

.titlebar-dot:nth-child(3) {
    background: #28c840
}

.titlebar-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--text3);
    letter-spacing: 0.04em;
    margin-left: 4px;
}

.app-body {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 340px;
}

/* Terminal emulator (hero right) */
.term-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px 16px;
    font-family: var(--mono);
    font-size: 0.7rem;
    line-height: 1.7;
    background: var(--bg);
    color: var(--text2);
    cursor: text;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) transparent;
}

.term-body::-webkit-scrollbar {
    width: 8px;
}

.term-body::-webkit-scrollbar-track {
    background: transparent;
}

.term-body::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 4px;
}

.term-body::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.term-output>div {
    white-space: pre-wrap;
    word-break: break-word;
}

.term-prompt-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 2px;
}

.term-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    caret-color: var(--accent);
}

.term-input:disabled {
    cursor: default;
}

.term-error {
    color: #f87171;
}

.t-prompt {
    color: var(--green);
    font-weight: 500;
}

.t-cmd {
    color: var(--text);
}

.t-tree {
    color: var(--text3);
}

.t-dir {
    color: var(--accent);
    font-weight: 500;
}

.t-file {
    color: var(--text2);
}

.t-yaml-delim {
    color: var(--text3);
}

.t-yaml-key {
    color: var(--cyan);
}

.t-yaml-val {
    color: var(--text2);
}

.t-md-heading {
    color: var(--accent);
    font-weight: 500;
}

.t-md-subheading {
    color: var(--text);
    font-weight: 500;
}

.t-md-quote {
    color: var(--text3);
    font-style: italic;
}

.app-sidebar {
    border-right: 1px solid var(--border);
    padding: 10px 6px;
    background: var(--bg1);
}

.sidebar-label {
    font-family: var(--mono);
    font-size: 0.52rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text3);
    padding: 4px 8px 6px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    border-radius: 5px;
    margin-bottom: 1px;
}

.sidebar-item.active {
    background: var(--bg3);
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    font-size: 0.48rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.pb-gpt {
    background: #10a37f
}

.pb-claude {
    background: #cf7b53
}

.pb-gem {
    background: #4285f4
}

.sit-title {
    font-size: 0.64rem;
    color: var(--text2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.sit-meta {
    font-family: var(--mono);
    font-size: 0.5rem;
    color: var(--text3);
}

.app-main {
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.app-search-bar {
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
}

.search-input-mock {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 6px;
    padding: 6px 10px;
}

.search-input-mock svg {
    opacity: 0.3;
    flex-shrink: 0;
}

.search-text {
    font-family: var(--mono);
    font-size: 0.64rem;
    color: var(--text2);
}

.search-cursor {
    width: 1px;
    height: 11px;
    background: var(--accent);
    animation: blink 1.1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1
    }

    51%,
    100% {
        opacity: 0
    }
}

.app-results {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 10px 12px;
}

.result-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.entity-tag {
    font-family: var(--mono);
    font-size: 0.5rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.et-decision {
    background: #6d28d920;
    color: #a78bfa;
    border: 1px solid #6d28d940
}

.et-tool {
    background: #0e749020;
    color: #22d3ee;
    border: 1px solid #0e749040
}

.et-concept {
    background: #16653420;
    color: #4ade80;
    border: 1px solid #16653440
}

.result-text {
    font-size: 0.68rem;
    color: var(--text2);
    line-height: 1.5;
    margin-bottom: 5px;
}

.result-source {
    font-family: var(--mono);
    font-size: 0.5rem;
    color: var(--text3);
}

/* TRUST STRIP */
.trust-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    background: var(--bg1);
}

.trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text2);
    padding: 4px 24px;
    letter-spacing: 0.04em;
    border-right: 1px solid var(--border2);
}

.trust-item:last-child {
    border-right: none;
}

.trust-item .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green {
    background: var(--green);
}

.dot-cyan {
    background: var(--cyan);
}

.dot-accent {
    background: var(--accent);
}

.dot-orange {
    background: var(--orange);
}

.dot-purple {
    background: var(--purple);
}

.dot-text3 {
    background: var(--text3);
}

/* SECTION SHARED */
section {
    padding: 88px 0;
}

.section-eyebrow {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 16px;
    height: 1px;
    background: var(--accent);
}

.section-heading {
    font-family: var(--display);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--text);
    margin-bottom: 1ch;
}

.section-heading .dim {
    color: var(--text3);
}

.section-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text2);
    max-width: 480px;
    margin-top: 14px;
}

/* FEATURE TABLE */
.features-section {
    background: var(--bg1);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feat-table {
    margin-top: 48px;
    border: 1px solid var(--border);
    border-radius: var(--r2);
    overflow: hidden;
}

.feat-table-header {
    display: grid;
    grid-template-columns: 200px 1fr 120px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
}

.feat-th {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text3);
}

.feat-group {
    border-top: 1px solid var(--border);
}

.feat-group:first-child {
    border-top: none;
}

.feat-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
}

.feat-group-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

.feat-group-label.sovereignty {
    color: #10a37f;
}

.feat-group-label.knowledge {
    color: var(--accent);
}

.feat-group-label.workflows {
    color: var(--cyan);
}

.feat-row {
    display: grid;
    grid-template-columns: 200px 1fr 120px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
    align-items: start;
}

.feat-row:last-child {
    border-bottom: none;
}

.feat-row:hover {
    background: var(--bg2);
}

.feat-name {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text);
    letter-spacing: 0.01em;
    padding-top: 1px;
}

.feat-desc {
    font-size: 0.78rem;
    color: var(--text2);
    line-height: 1.6;
    padding-right: 20px;
}

.feat-badge {
    font-family: var(--mono);
    font-size: 0.58rem;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-self: start;
}

.badge-stable {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid #16653450;
}

.badge-included {
    background: var(--accent-dim);
    color: #60A5FA;
    border: 1px solid #1B5DC040;
}

.badge-responsibly {
    background: #92400e22;
    color: #fbbf24;
    border: 1px solid #fbbf2440;
}

/* SILO */
.gap-section {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.gap-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.gap-quote {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text2);
    margin-top: 24px;
    padding: 18px 20px;
    border-left: 2px solid var(--accent);
    background: var(--bg2);
    border-radius: 0 var(--r) var(--r) 0;
}

/* HOW IT WORKS */
.how-section {
    background: var(--bg1);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r2);
    overflow: hidden;
    margin-top: 48px;
}

.step-card {
    background: var(--bg1);
    padding: 28px 24px;
    transition: background 0.2s;
}

.step-card:hover {
    background: var(--bg2);
}

.step-verb {
    font-family: var(--mono);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 10px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.step-num-label {
    font-family: var(--mono);
    font-size: 0.55rem;
    color: var(--text3);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.step-title {
    font-family: var(--display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step-desc {
    font-size: 0.78rem;
    color: var(--text2);
    line-height: 1.65;
}

/* STACK */
.stack-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.stack-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-top: 48px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.stack-tag {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text2);
    padding: 5px 10px;
    border: 1px solid var(--border2);
    border-radius: 4px;
    letter-spacing: 0.02em;
    transition: all 0.15s;
    background: var(--bg2);
}

.stack-tag:hover {
    color: var(--accent);
    border-color: #154A9950;
    background: var(--accent-dim);
}

.stack-numbers {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: var(--r2);
    overflow: hidden;
}

.stack-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg1);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.stack-stat:last-child {
    border-bottom: none;
}

.stack-stat:hover {
    background: var(--bg2);
}

.stack-stat-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text3);
    letter-spacing: 0.02em;
}

.stack-stat-val {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.02em;
}

.stack-stat-val.accent {
    color: var(--accent);
}

.stack-stat-val.green {
    color: var(--green);
}

.stack-stat-val.cyan {
    color: var(--cyan);
}

/* WHO */
.persona-section {
    background: var(--bg1);
    border-top: 1px solid var(--border);
}

.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r2);
    overflow: hidden;
    margin-top: 48px;
}

.persona-card {
    background: var(--bg1);
    padding: 32px 28px;
    transition: background 0.2s;
}

.persona-card:hover {
    background: var(--bg2);
}

.persona-glyph {
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.persona-title {
    font-family: var(--display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 8px;
}

.persona-desc {
    font-size: 0.78rem;
    color: var(--text2);
    line-height: 1.65;
}

/* INSTALL */
.install-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.install-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r2);
    overflow: hidden;
    margin-top: 48px;
}

.install-card {
    background: var(--bg1);
    padding: 32px 28px;
}

.install-step-num {
    font-family: var(--mono);
    font-size: 0.58rem;
    color: var(--text3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.install-title {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 10px;
}

.install-desc {
    font-size: 0.8rem;
    color: var(--text2);
    line-height: 1.65;
    margin-bottom: 18px;
}

.install-code {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text2);
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    line-height: 1.8;
}

.install-code .cmd-line {
    display: flex;
    gap: 8px;
}

.install-code .cmd-num {
    color: var(--text3);
    min-width: 16px;
}

.install-code .cmd-text {
    color: var(--text);
}

.install-code .cmd-comment {
    color: var(--text3);
    font-style: italic;
}

/* SHARE */
.share-section {
    background: var(--bg1);
    border-top: 1px solid var(--border);
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.share-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r2);
    padding: 24px;
}

.share-audience {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.share-text {
    font-size: 0.78rem;
    color: var(--text2);
    line-height: 1.65;
    margin-bottom: 16px;
    font-style: italic;
}

.share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--text3);
    padding: 6px 10px;
    border: 1px solid var(--border2);
    border-radius: 4px;
    background: var(--bg2);
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.04em;
}

.share-copy-btn:hover {
    color: var(--accent);
    border-color: #154A9950;
}

.share-copy-btn.copied {
    color: var(--green);
    border-color: #16653450;
    background: var(--green-dim);
}

/* FAQ */
.faq-section {
    padding: 80px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

/* Two explicit columns instead of CSS multi-column. Items have a fixed
 * home so they never shuffle between columns when one is expanded. */
.faq-max {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
    align-items: start;
}

.faq-col {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-top: 1px solid var(--border);
}

.faq-col .faq-item:last-child {
    border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
    .faq-max {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-question-text {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
}

.faq-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.faq-icon svg {
    width: 9px;
    height: 9px;
    stroke: var(--text3);
    transition: stroke 0.2s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--accent-dim);
    border-color: #1B5DC040;
}

.faq-item.open .faq-icon svg {
    stroke: var(--accent);
}

/* Animated expand/collapse using the modern grid-template-rows trick.
 * The outer .faq-answer is a one-row grid that animates 0fr → 1fr; the
 * inner <p> has overflow: hidden so it can clip down to zero height. */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer p {
    overflow: hidden;
    margin: 0;
    padding-bottom: 18px;
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--text2);
    max-width: 640px;
}

/* CTA */
.cta-section {
    background: var(--bg1);
    border-top: 1px solid var(--border);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #1B5DC010 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
}

.cta-heading {
    font-family: var(--display);
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: var(--text);
    margin-bottom: 16px;
}

.cta-heading .accent {
    color: var(--accent);
}

.cta-sub {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text2);
    max-width: 560px;
    margin: 0 0 36px;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.cta-dl-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cta-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.cta-links a {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text3);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
}

.cta-links a:hover {
    color: var(--text2);
}

.cta-signal {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--text3);
    margin-top: 20px;
    letter-spacing: 0.04em;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding: 28px 0;
}

.foot-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.foot-left {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--text3);
    letter-spacing: 0.02em;
}

.foot-right {
    display: flex;
    gap: 24px;
}

.foot-right a {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text3);
    text-decoration: none;
    transition: color 0.15s;
}

.foot-right a:hover {
    color: var(--text2);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 200;
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--r2);
    padding: 14px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(244, 131, 34, 0.06);
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-text {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text2);
    flex: 1;
    min-width: 240px;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 8px;
}

.cookie-btn {
    font-family: var(--mono);
    font-size: 0.7rem;
    padding: 7px 14px;
    border-radius: var(--r);
    border: 1px solid var(--border2);
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text2);
}

.cookie-btn-decline:hover {
    color: var(--text);
    border-color: var(--text3);
    background: var(--bg3);
}

.cookie-btn-accept {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
    font-weight: 500;
}

.cookie-btn-accept:hover {
    background: #2A72D6;
}

@media (max-width: 540px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        justify-content: flex-end;
    }
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.rv {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* RESPONSIVE */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-right {
        display: none;
    }

    .gap-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .persona-grid,
    .install-grid {
        grid-template-columns: 1fr;
    }

    .share-grid {
        grid-template-columns: 1fr;
    }

    .stack-inner {
        grid-template-columns: 1fr;
    }

    .feat-table-header,
    .feat-row {
        grid-template-columns: 160px 1fr 100px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 110px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .foot-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    section {
        padding: 64px 0;
    }

    .feat-table-header {
        display: none;
    }

    .feat-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .feat-badge {
        margin-top: 4px;
    }

    .trust-item {
        padding: 4px 12px;
    }
}

/* ============================================================
 * DOCS SITE
 * Two-column layout: sticky sidebar + prose content.
 * Reuses landing-page color tokens and DM Sans / DM Mono fonts.
 * ============================================================ */

.site-nav .nav-links a.is-active-nav {
    color: var(--text);
}

.docs-layout {
    padding: 96px 0 96px;
    min-height: 100vh;
}

/* Override the landing page's 1320px max-width — docs read better at <1280px */
.docs-layout .w.docs-w {
    max-width: 1280px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 200px;
    gap: 48px;
    align-items: start;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) transparent;
    opacity: 0;
    animation: fadeUp 0.5s 0.05s ease forwards;
}

.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 3px;
}

.docs-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docs-section-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text3);
    margin: 24px 0 8px;
}

.docs-section-label:first-child {
    margin-top: 0;
}

.docs-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.docs-link {
    display: block;
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--text3);
    text-decoration: none;
    padding: 5px 10px 5px 8px;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: color 0.12s, background 0.12s, border-color 0.12s;
    line-height: 1.4;
}

.docs-link:hover {
    color: var(--text2);
    background: var(--bg2);
}

.docs-link.is-active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: var(--accent-dim);
    font-weight: 500;
}

/* Content column — prose */
/* Prose column — tuned for reading docs, not for marketing display.
 * - Narrower column (~68ch reading width)
 * - Brighter, less-saturated body color so eyes can dwell on it
 * - Headings smaller + slightly muted, so they section content rather than
 *   dominating it
 * - Generous space above each h2 to make sections feel bounded
 */
.docs-content {
    max-width: 680px;
    color: #9DB7C5;
    font-size: 0.92rem;
    line-height: 1.78;
    min-width: 0;
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 0.55s 0.15s ease forwards;
}

.docs-content h1 {
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 8px;
}

.docs-content h1 + p {
    /* "lead" paragraph right under h1 — slightly larger, muted */
    color: var(--text3);
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 32px;
}

.docs-content h2 {
    font-family: var(--display);
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--text);
    margin: 56px 0 14px;
    letter-spacing: -0.005em;
    line-height: 1.3;
}

.docs-content h3 {
    font-family: var(--sans);
    font-size: 0.98rem;
    font-weight: 500;
    color: #DCEBF2;
    margin: 36px 0 8px;
    line-height: 1.4;
}

.docs-content h4 {
    font-family: var(--sans);
    font-size: 0.86rem;
    font-weight: 500;
    color: #DCEBF2;
    margin: 24px 0 6px;
    letter-spacing: 0;
}

.docs-content p {
    margin: 0 0 18px;
}

.docs-content a {
    color: #7AB5F4;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(122, 181, 244, 0.35);
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.docs-content a:hover {
    color: #A3CDFA;
    text-decoration-color: rgba(163, 205, 250, 0.85);
}

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

.docs-content em {
    color: inherit;
    font-style: italic;
}

.docs-content ul,
.docs-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.docs-content li {
    margin: 0 0 8px;
    line-height: 1.72;
}

.docs-content li::marker {
    color: var(--text3);
}

.docs-content li > p {
    margin: 0 0 6px;
}

.docs-content li > ul,
.docs-content li > ol {
    margin-top: 8px;
}

.docs-content blockquote {
    border-left: 2px solid var(--border2);
    padding: 2px 0 2px 18px;
    margin: 0 0 18px;
    color: var(--text2);
    font-style: italic;
}

.docs-content blockquote p {
    margin: 0 0 8px;
}

.docs-content blockquote p:last-child {
    margin-bottom: 0;
}

/* `code` inline — slightly desaturated against the brighter body text so
 * inline identifiers don't yell. Overrides the global chip styling for
 * docs-prose context. */
.docs-content code {
    font-size: 0.85em;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: #DCEBF2;
}

/* Inline code is already styled by the global `code` rule.
 * Block code (multiline) needs a different treatment. */
.docs-content pre {
    position: relative;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px 18px;
    overflow-x: auto;
    margin: 0 0 20px;
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.65;
    color: #ADC4D0;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) transparent;
}

/* Copy button — sits in the top-right of each code block, fades in on hover */
.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--bg3);
    border: 1px solid var(--border2);
    color: var(--text3);
    font-family: var(--mono);
    font-size: 0.65rem;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.15s, color 0.15s, border-color 0.15s, background 0.15s;
    opacity: 0;
    letter-spacing: 0.04em;
}

.docs-content pre:hover .code-copy-btn,
.code-copy-btn:focus-visible {
    opacity: 1;
}

.code-copy-btn:hover {
    color: var(--text);
    border-color: var(--accent2);
    background: var(--accent-dim);
}

.code-copy-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.code-copy-btn.is-copied {
    opacity: 1;
    color: var(--green);
    border-color: #16653450;
    background: var(--green-dim);
}

.code-copy-btn svg {
    flex-shrink: 0;
}

/* Touch / no-hover devices: keep the button visible always */
@media (hover: none) {
    .code-copy-btn {
        opacity: 0.6;
    }
}

.docs-content pre::-webkit-scrollbar {
    height: 8px;
}

.docs-content pre::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 4px;
}

.docs-content pre code {
    /* override the global inline-code chip when it's inside <pre> */
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    color: inherit;
}

/* highlight.js — Kept-themed token colors. Mapped to site palette so code
 * blocks read at the same visual register as the prose. The base color is
 * inherited from `.docs-content pre` so it matches the un-highlighted
 * fallback (and stays soft enough not to fatigue eyes). */
.docs-content .hljs {
    color: inherit;
    background: transparent;
}

.docs-content .hljs-comment,
.docs-content .hljs-quote {
    color: var(--text3);
    font-style: italic;
}

.docs-content .hljs-keyword,
.docs-content .hljs-selector-tag,
.docs-content .hljs-section,
.docs-content .hljs-doctag,
.docs-content .hljs-name,
.docs-content .hljs-strong {
    color: #7AB5F4;
    font-weight: 500;
}

.docs-content .hljs-string,
.docs-content .hljs-regexp,
.docs-content .hljs-addition {
    color: var(--green);
}

.docs-content .hljs-number,
.docs-content .hljs-literal,
.docs-content .hljs-built_in,
.docs-content .hljs-builtin-name,
.docs-content .hljs-symbol,
.docs-content .hljs-bullet {
    color: var(--cyan);
}

.docs-content .hljs-title,
.docs-content .hljs-class .hljs-title,
.docs-content .hljs-title.class_,
.docs-content .hljs-title.function_ {
    color: #DCEBF2;
    font-weight: 500;
}

.docs-content .hljs-attr,
.docs-content .hljs-attribute,
.docs-content .hljs-property,
.docs-content .hljs-template-variable,
.docs-content .hljs-variable {
    color: #C8E0EC;
}

.docs-content .hljs-tag,
.docs-content .hljs-meta {
    color: var(--text3);
}

.docs-content .hljs-meta-keyword,
.docs-content .hljs-meta-string {
    color: #7AB5F4;
}

.docs-content .hljs-type,
.docs-content .hljs-params {
    color: var(--purple);
}

.docs-content .hljs-deletion {
    color: #f87171;
}

.docs-content .hljs-emphasis {
    font-style: italic;
}

.docs-content .hljs-link {
    color: #7AB5F4;
    text-decoration: underline;
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 0.86rem;
}

.docs-content thead {
    border-bottom: 1px solid var(--border2);
}

.docs-content th {
    text-align: left;
    padding: 10px 14px 10px 0;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}

.docs-content td {
    padding: 10px 14px 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text2);
    vertical-align: top;
}

.docs-content tr:last-child td {
    border-bottom: none;
}

.docs-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 36px 0;
}

/* Right rail — table of contents for the current page */
.docs-toc {
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-left: 8px;
    font-family: var(--sans);
    scrollbar-width: thin;
    scrollbar-color: var(--border2) transparent;
    opacity: 0;
    animation: fadeUp 0.5s 0.25s ease forwards;
}

.docs-toc::-webkit-scrollbar {
    width: 6px;
}

.docs-toc::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 3px;
}

.docs-toc-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text3);
    margin: 0 0 12px;
    padding-left: 12px;
}

.docs-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.docs-toc li {
    margin: 0;
    line-height: 1.4;
}

.docs-toc li.lvl-3 {
    padding-left: 14px;
}

.docs-toc a {
    display: block;
    padding: 4px 0 4px 12px;
    margin-left: -1px;
    border-left: 1px solid transparent;
    color: var(--text3);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.12s, border-color 0.12s;
}

.docs-toc a:hover {
    color: var(--text2);
}

.docs-toc a.is-active {
    color: var(--accent);
    border-left-color: var(--accent);
}

/* Collapse the TOC first on narrow screens (still keep the sidebar). */
@media (max-width: 1100px) {
    .docs-layout .w.docs-w {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .docs-toc {
        display: none;
    }
}

/* On small viewports, collapse the sidebar above content too. */
@media (max-width: 720px) {
    .docs-layout .w.docs-w {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .docs-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding: 16px 0 24px;
        border-bottom: 1px solid var(--border);
    }

    .docs-section-label {
        margin-top: 16px;
    }
}