/* ========================================
   Homepage additions: scroll story, bot comparison,
   data-flow diagram and FAQ. Scoped to .landing-biob sections.
   Uses the landing tokens from landing-v2.css.
   ======================================== */

.story-section,
.compare-section,
.mcp-section,
.home-faq-section {
    --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

.story-section .section-eyebrow,
.compare-section .section-eyebrow,
.mcp-section .section-eyebrow,
.home-faq-section .section-eyebrow {
    display: block;
    width: fit-content;
    margin: 0 auto 0.75rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--landing-muted);
}

.story-section .section-title,
.compare-section .section-title,
.mcp-section .section-title,
.home-faq-section .section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--landing-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.story-section .section-subtitle,
.compare-section .section-subtitle,
.mcp-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--landing-muted);
    max-width: 720px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

/* ---------- Scroll story ---------- */

.story-section {
    padding: 100px 0 40px;
    background: var(--bg-page);
}

.story-section .container {
    max-width: 1360px;
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr);
    gap: 3rem;
    align-items: start;
}

.story-steps {
    display: flex;
    flex-direction: column;
}

.story-step {
    min-height: 58vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5rem 0;
}

.story-step:last-child {
    min-height: 48vh;
}

.story-section.is-stage .story-step {
    opacity: 0.35;
    transition: opacity 0.4s ease;
}

.story-section.is-stage .story-step.is-active {
    opacity: 1;
}

.story-num {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--landing-accent);
    margin-bottom: 0.9rem;
}

.story-step h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--landing-text);
    margin-bottom: 0.9rem;
}

.story-step p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--landing-muted);
    max-width: 440px;
}

.story-chips {
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.story-chips li {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--landing-border);
    border-radius: 999px;
    background: var(--landing-bg-section);
    color: var(--landing-text);
}

.story-link {
    margin-top: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--landing-text);
    text-decoration: none;
    border-bottom: 1px solid var(--landing-border);
    padding-bottom: 2px;
    transition: gap 0.2s ease, border-color 0.2s ease;
}

.story-link:hover {
    gap: 0.65rem;
    border-bottom-color: var(--landing-accent);
}

.story-stage-col {
    position: sticky;
    top: max(110px, calc(50vh - 300px));
}

.story-stage {
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: 400px;
}

.story-progress {
    display: flex;
    gap: 6px;
    margin-top: 1rem;
}

.story-progress i {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: var(--landing-border);
    transition: background 0.3s ease;
}

.story-progress i.is-on {
    background: var(--landing-text);
}

.story-caption {
    margin-top: 0.75rem;
    min-height: 1.3em;
    font-size: 0.85rem;
    color: var(--landing-muted);
}

/* The visual for each chapter. It lives inside its chapter by default (mobile,
   no JS) and is moved onto the sticky stage on wide screens. */

.story-visual {
    position: relative;
    margin: 1.5rem 0 0;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-dark);
    border: 1px solid rgba(15, 17, 23, 0.14);
    box-shadow: 0 30px 70px -30px rgba(15, 17, 23, 0.45), 0 2px 6px rgba(15, 17, 23, 0.06);
    color: #e2e8f0;
}

.story-visual img {
    display: block;
    max-width: 100%;
    height: auto;
}

.story-stage .story-visual {
    position: absolute;
    inset: 0;
    margin: 0;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-stage .story-visual.is-active {
    opacity: 1;
    pointer-events: auto;
}

.story-stage .story-visual > img.vis-fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.story-stage .story-visual > img.vis-contain {
    object-fit: contain;
    background: #f4f4f5;
}

.story-stage .story-visual > img.vis-contain.vis-dark {
    background: #05070c;
}

/* Fake window chrome around real screenshots */

.vis-win {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #0a0d14;
}

.vis-bar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 30px;
    background: #161b27;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.vis-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.vis-bar .vis-logo {
    flex: none;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    color: #e2e8f0;
}

.vis-bar .vis-logo + span {
    margin-left: 0;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.8rem;
}

.vis-bar span {
    margin-left: 8px;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vis-img {
    width: 100%;
    flex: none;
}

.vis-crop {
    position: relative;
    max-height: 240px;
    overflow: hidden;
}

.vis-crop img {
    width: 100%;
}

.vis-mcp .vis-crop {
    max-height: 420px;
}

.story-stage .vis-mcp .vis-win {
    flex: 1;
    min-height: 0;
}

.story-stage .vis-mcp .vis-crop {
    flex: 1;
    min-height: 0;
    max-height: none;
}

.vis-pills {
    list-style: none;
    margin: 0;
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    background: var(--bg-dark);
}

.vis-pills li {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.4);
    background: rgba(96, 165, 250, 0.1);
    color: #bfdbfe;
}

.story-stage .vis-rules {
    justify-content: center;
}

/* Illustration built in HTML */

.vis-plat {
    padding: 1.1rem;
}

.vis-plat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.vis-plat-card {
    padding: 0.9rem 1rem 1rem;
    border-radius: 12px;
    background: #161b27;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.vis-plat-h {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.vis-plat-h b {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.vis-ic,
.vis-svg {
    font-size: 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.vis-ic--github {
    color: #fff;
}

.vis-ic--gitlab {
    color: #fc6d26;
}

.vis-svg--azure {
    color: #3b9eff;
}

.vis-svg--bitbucket {
    color: #4c8dff;
}

.vis-plat-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vis-plat-card li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.6rem;
    font-size: 0.84rem;
    color: #cbd5e1;
}

.vis-env {
    flex: none;
    min-width: 4.6rem;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
}

.vis-env.is-cloud {
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
}

.vis-env.is-prem {
    background: rgba(74, 222, 128, 0.14);
    color: #86efac;
}

.story-stage .vis-plat {
    justify-content: center;
}

@media (max-width: 1100px) {
    .story-section {
        padding: 72px 0 24px;
    }

    .story-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .story-stage-col {
        display: none;
    }

    .story-step,
    .story-step:last-child {
        min-height: 0;
        padding: 1.75rem 0 2.25rem;
        border-top: 1px solid var(--landing-border);
    }

    .story-step:first-child {
        border-top: 0;
    }

    .story-step p {
        max-width: 620px;
    }

    .story-visual {
        max-width: 760px;
    }
}

@media (max-width: 560px) {
    .vis-plat-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* ---------- Review bots vs ThinkReview ---------- */

.compare-section {
    padding: 80px 0 100px;
    background: var(--landing-bg-section);
    border-top: 1px solid var(--landing-border);
}

.vs {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.vs-pane {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px -40px rgba(15, 17, 23, 0.35);
}

.vs-pane.is-mine {
    border-color: var(--landing-accent);
    box-shadow: 0 24px 60px -34px rgba(59, 130, 246, 0.45);
}

.vs-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.75rem 1.1rem;
    background: #161b27;
    color: #cbd5e1;
    font-family: var(--mono);
    font-size: 0.78rem;
}

.vs-head b {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    color: #fff;
}

.vs-head .vs-who {
    margin-left: auto;
    color: #94a3b8;
}

.vs-logos {
    display: inline-flex;
    gap: 6px;
}

.vs-logo {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.vs-logo img {
    display: block;
    width: 18px;
    height: 18px;
}

.vs-logo--tr {
    background: transparent;
    border-color: rgba(96, 165, 250, 0.55);
}

.vs-logo--tr img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.vs-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0b0d12;
}

.vs-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vs-badge {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    z-index: 1;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.74rem;
    background: rgba(15, 17, 23, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
}

.vs-badge.is-bad {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.5);
}

.vs-badge.is-good {
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.6);
}

.vs-body {
    padding: 1.25rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.vs-body h3 {
    margin: 0;
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--landing-text);
}

.vs-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.vs-body li {
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr);
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #3f3f46;
}

.vs-body li::before {
    content: '\2212';
    font-family: var(--mono);
    font-weight: 700;
    color: #dc2626;
}

.is-mine .vs-body li::before {
    content: '+';
    color: #16a34a;
}

.vs-foot {
    max-width: 1120px;
    margin: 1.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.07);
    text-align: center;
    font-weight: 600;
    color: var(--landing-text);
}

.vs-foot span {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--landing-accent);
}

.compare-note {
    max-width: 1120px;
    margin: 1rem auto 0;
    font-size: 0.85rem;
    color: var(--landing-muted);
}

@media (max-width: 700px) {
    .compare-section {
        padding: 56px 0 72px;
    }

    .vs {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Where the diff goes (inside the dark data-privacy section) ---------- */

.fd-panel {
    margin: 0 0 1.25rem;
    padding: 1.75rem 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    position: relative;
    z-index: 1;
}

.fd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.fd-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.fd-seg {
    display: inline-flex;
    flex-wrap: wrap;
    padding: 3px;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.fd-seg button {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.fd-seg button:hover {
    color: #fff;
}

.fd-seg button[aria-pressed='true'] {
    background: #fff;
    color: #0f1117;
}

.fd-seg button:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.fd {
    position: relative;
    margin-top: 1.75rem;
    padding: 2.9rem 0 1.4rem;
    --reach: 0px;
    --t0: 0px;
    --tw: 0px;
    --n0: 0px;
    --nw: 0px;
}

.fd-net {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: var(--n0);
    width: var(--nw);
    border: 1.5px dashed rgba(74, 222, 128, 0.5);
    background: rgba(74, 222, 128, 0.05);
    border-radius: 18px;
    transition: left 0.6s ease, width 0.6s ease;
}

.fd-net span {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    font-family: var(--mono, ui-monospace, monospace);
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #86efac;
    white-space: nowrap;
}

.fd-track {
    position: absolute;
    z-index: 1;
    top: 5.2rem;
    left: var(--t0);
    width: var(--tw);
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 6px, transparent 6px 12px);
}

.fd-live {
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: var(--reach);
    background: repeating-linear-gradient(90deg, #60a5fa 0 6px, transparent 6px 12px);
    transition: width 0.6s ease;
}

.fd-packet {
    position: absolute;
    left: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.3), 0 0 18px rgba(96, 165, 250, 0.95);
    opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .fd-packet {
        animation: fdPacket 2.6s ease-in-out infinite;
    }
}

@keyframes fdPacket {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    82% {
        opacity: 1;
    }
    100% {
        transform: translateX(var(--reach));
        opacity: 0;
    }
}

.fd-nodes {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.fd-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding-inline: 6px;
    transition: opacity 0.45s ease;
}

.fd-ic {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 0.65rem;
    font-size: 1.35rem;
    background: #161b27;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    transition: border-color 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
}

.fd-node.is-on .fd-ic {
    border-color: #60a5fa;
    color: #93c5fd;
    background: #131b2e;
    box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.1), 0 0 28px -6px rgba(96, 165, 250, 0.55);
}

.fd-node.is-off {
    opacity: 0.38;
}

.fd-node b {
    font-size: 0.98rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
}

.fd-node small {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.fd-status {
    margin-top: 1.1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: #fff;
}

.fd-status i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.fd-status.is-out i {
    background: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

.fd-status small {
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 640px) {
    .fd-panel {
        padding: 1.25rem 1rem 1.1rem;
    }

    .fd-ic {
        width: 52px;
        height: 52px;
        border-radius: 15px;
        font-size: 1.1rem;
    }

    .fd-track {
        top: 4.7rem;
    }

    .fd-nodes {
        gap: 0.5rem;
    }

    .fd-node b {
        font-size: 0.85rem;
    }

    .fd-node small {
        font-size: 0.74rem;
    }
}

/* ---------- ThinkReview MCP ---------- */

.mcp-section {
    padding: 100px 0;
    background: var(--bg-page);
    border-top: 1px solid var(--landing-border);
}

.mcp-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3.5rem;
    align-items: start;
}

.mcp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

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

.mcp-step-n {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--landing-primary);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
}

.mcp-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--landing-text);
    margin: 0.3rem 0 0.3rem;
}

.mcp-step p,
.mcp-note p {
    font-size: 0.97rem;
    line-height: 1.65;
    color: var(--landing-muted);
}

.mcp-step code,
.mcp-prompt code,
.mcp-after code {
    font-family: var(--mono);
    font-size: 0.86em;
    padding: 0.1em 0.4em;
    border-radius: 5px;
    background: var(--bg-muted);
    color: var(--landing-text);
}

.mcp-note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    background: var(--landing-bg-section);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
}

.mcp-note i {
    margin-top: 0.2rem;
    color: var(--landing-accent);
}

.mcp-card {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 70px -36px rgba(15, 17, 23, 0.55);
    color: #e2e8f0;
}

.mcp-tabs {
    display: flex;
    overflow-x: auto;
    background: #161b27;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: none;
}

.mcp-tabs::-webkit-scrollbar {
    display: none;
}

.mcp-tabs button {
    appearance: none;
    flex-shrink: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #94a3b8;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.85rem 1.15rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.mcp-tabs button:hover {
    color: #fff;
}

.mcp-tabs button[aria-selected='true'] {
    color: #fff;
    border-bottom-color: var(--landing-accent);
}

.mcp-tabs button:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: -4px;
}

.mcp-panel {
    padding: 1.25rem 1.25rem 0.5rem;
}

.mcp-panel + .mcp-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mcp-card.is-enhanced .mcp-panel + .mcp-panel {
    border-top: 0;
}

.mcp-panel[hidden] {
    display: none;
}

.mcp-where {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 0.65rem;
}

.mcp-code {
    position: relative;
}

.mcp-code pre {
    margin: 0;
    padding: 1rem 1.1rem;
    background: #0a0d14;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 0.84rem;
    line-height: 1.7;
    color: #dbe4f3;
}

.mcp-code code {
    font-family: inherit;
    background: none;
    padding: 0;
    color: inherit;
    white-space: pre;
}

.mcp-copy {
    appearance: none;
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mcp-copy:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.mcp-copy:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.mcp-after {
    margin: 0.85rem 0 0.9rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
}

.mcp-after b {
    color: #e2e8f0;
    font-weight: 600;
}

.mcp-after code {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.mcp-prompt {
    margin: 0.4rem 1.25rem 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.9rem;
}

.mcp-prompt-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #60a5fa;
}

.mcp-prompt p {
    font-size: 0.92rem;
    color: #e2e8f0;
    overflow-wrap: anywhere;
}

.mcp-prompt code {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.mcp-returns {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.mcp-returns li {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--landing-border);
    border-radius: 999px;
    background: var(--landing-bg-section);
    color: var(--landing-text);
}

.mcp-links {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--landing-muted);
}

.mcp-links a {
    color: var(--landing-text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--landing-border);
    text-underline-offset: 3px;
    white-space: nowrap;
}

.mcp-links a:hover {
    text-decoration-color: var(--landing-accent);
}

@media (max-width: 900px) {
    .mcp-section {
        padding: 72px 0;
    }

    .mcp-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }
}

/* ---------- Ollama logo (mask, so it takes the surrounding colour) ---------- */

.ollama-mark {
    display: inline-block;
    width: 1.4em;
    height: 1.4em;
    background-color: currentColor;
    -webkit-mask: url('/media/logos/ollama.svg') center / contain no-repeat;
    mask: url('/media/logos/ollama.svg') center / contain no-repeat;
}

.zcr-card i.ollama-mark {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1.75rem;
    color: #fff;
}

/* ---------- FAQ ---------- */

.home-faq-section {
    padding: 100px 0;
    background: var(--bg-page);
    border-top: 1px solid var(--landing-border);
}

.home-faq-section .section-title {
    margin-bottom: 2.5rem;
}

.home-faq-wrap {
    max-width: 820px;
}

.home-faq-item {
    border-bottom: 1px solid var(--landing-border);
}

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

.home-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--landing-text);
}

.home-faq-item summary::-webkit-details-marker {
    display: none;
}

.home-faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--landing-muted);
    transition: transform 0.2s ease;
}

.home-faq-item[open] summary::after {
    content: '\2212';
}

.home-faq-item summary:focus-visible {
    outline: 2px solid var(--landing-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.home-faq-item p {
    padding: 0 2.5rem 1.4rem 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--landing-muted);
}

.home-faq-item p a {
    color: var(--landing-text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--landing-border);
    text-underline-offset: 3px;
}

.home-faq-item p a:hover {
    text-decoration-color: var(--landing-accent);
}

@media (max-width: 768px) {
    .home-faq-section {
        padding: 72px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-section.is-stage .story-step,
    .story-visual,
    .mcp-tabs button,
    .story-progress i,
    .fd-net,
    .fd-live,
    .fd-node,
    .fd-ic {
        transition: none;
    }
}
