/* Product pages: /web-panel, /api, /mcp (scripts/build.py build_landings) */
.lp-hero { position: relative; padding: 64px 0 88px; overflow: hidden; }
.lp-hero::before { content: ""; position: absolute; inset: -40% -10% auto 40%; height: 120%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 22%, transparent), transparent); opacity: .7; }
.lp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.lp-hero--stack .lp-hero-grid { grid-template-columns: minmax(0, 1fr); }
.lp-hero--stack .lp-copy { max-width: 840px; }
.lp-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 5px 12px 5px 8px; border-radius: 999px;
    background: var(--lime-soft); color: var(--lime-ink); font-size: 13.5px; font-weight: 700; }
.lp-kicker svg { width: 16px; height: 16px; }
.lp-hero h1 { margin: 0; font-size: clamp(40px, 6vw, 76px); line-height: .98; letter-spacing: -.035em; }
.lp-lead { margin: 22px 0 28px; max-width: 34em; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-2); }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lp-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--muted); }
.lp-facts li { display: flex; align-items: center; gap: 7px; }
.lp-facts svg { width: 15px; height: 15px; color: var(--lime-ink); }
.lp-hero .cmd { max-width: 560px; }
.lp-visual { min-width: 0; }
.lp-hero--stack .lp-visual { margin-top: 40px; }

/* numbers band */
.lp-band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-2, color-mix(in srgb, var(--ink) 3%, var(--paper))); }
.lp-band ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-band li { padding: 26px 24px; border-left: 1px solid var(--rule); }
.lp-band li:first-child { border-left: 0; padding-left: 0; }
.lp-band b { display: block; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.02em; line-height: 1; }
.lp-band span { display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.4; }

/* sections */
.lp-sec { padding: 104px 0; border-top: 1px solid var(--rule); }
.lp-band + .lp-sec { border-top: 0; }
.lp-head { max-width: 760px; margin-bottom: 44px; }
.lp-head h2 { margin: 0 0 12px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.025em; }
.lp-head p { margin: 0; font-size: 18.5px; color: var(--muted); max-width: 60ch; line-height: 1.55; }

/* feature grid */
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-card { padding: 24px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); }
.lp-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 18px; }
.lp-card h3 svg { width: 22px; height: 22px; color: var(--lime-ink); flex: none; }
.lp-card p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: 15.5px; }
.lp-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.lp-card li { margin: 4px 0; }
.lp-card a.more { display: inline-block; margin-top: 14px; font-size: 14.5px; font-weight: 600; }
.lp-card code, .lp-split code, .lp-head code { font-size: .9em; }

/* split rows */
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.lp-split + .lp-split { margin-top: 88px; }
.lp-split--rev > :first-child { order: 2; }
.lp-split h3 { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; line-height: 1.1; }
.lp-split p { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.lp-checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.lp-checks li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.5; }
.lp-checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
    background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F6212' stroke-width='3'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/10px no-repeat; }
.lp-shot { margin: 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(20, 32, 26, .45); background: #0e1411; }
.lp-shot img { display: block; width: 100%; height: auto; }
.lp-shot .shot-dark { display: none; }
[data-theme="dark"] .lp-shot .shot-light { display: none; }
[data-theme="dark"] .lp-shot .shot-dark { display: block; }

/* architecture */
.lp-arch { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; align-items: stretch; }
.lp-arch > div { position: relative; padding: 20px 18px; border: 1px solid var(--rule-2); border-left-width: 0; background: var(--paper); }
.lp-arch > div:first-child { border-left-width: 1px; border-radius: 12px 0 0 12px; }
.lp-arch > div:last-child { border-radius: 0 12px 12px 0; background: var(--lime-soft); border-color: color-mix(in srgb, var(--lime) 45%, var(--rule-2)); }
.lp-arch small { display: block; font: 700 11.5px var(--f-mono); color: var(--muted); text-transform: none; }
.lp-arch b { display: block; margin-top: 6px; font-size: 16px; }
.lp-arch span { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }

/* security table */
.lp-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.lp-table th, .lp-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.lp-table th { width: 30%; font-weight: 700; }
.lp-table td { color: var(--ink-2); }

/* code cards */
.lp-code { border-radius: 12px; overflow: hidden; background: var(--term, #0D1310); border: 1px solid #1f2a24; }
.lp-code-h { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: #141b17; color: #9fb0a6; font: 500 12.5px var(--f-mono); }
.lp-code pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: #dfe7e2; font: 13.5px/1.65 var(--f-mono); }
.lp-code .c { color: #7f9187; } .lp-code .k { color: #a5d86e; } .lp-code .s { color: #f0c987; } .lp-code .p { color: #a5d86e; user-select: none; }

/* endpoint chips */
.lp-endpoints { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lp-ep { padding: 16px; border: 1px solid var(--rule); border-radius: 12px; }
.lp-ep b { display: block; margin-bottom: 8px; font-size: 15.5px; }
.lp-ep code { display: block; margin: 3px 0; font-size: 12.5px; background: none; padding: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-ep code i { font-style: normal; font-weight: 700; color: var(--lime-ink); margin-right: 4px; }

/* chat */
.lp-chat { border: 1px solid #1f2a24; border-radius: 14px; overflow: hidden; background: #0e1411; color: #dfe7e2; box-shadow: 0 30px 70px -36px rgba(13, 19, 16, .7); }
.lp-chat-h { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #141b17; color: #9fb0a6; font: 500 12.5px var(--f-mono); }
.lp-chat-h .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(132, 204, 22, .15); }
.lp-chat-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 420px; }
.lp-msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.lp-msg.on { opacity: 1; transform: none; }
.lp-msg.you { align-self: flex-end; background: #2a3a30; border-bottom-right-radius: 4px; }
.lp-msg.ai { align-self: flex-start; background: #172019; border: 1px solid #243128; border-bottom-left-radius: 4px; }
.lp-tool { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 6px; background: rgba(132, 204, 22, .14); color: #b7e07f; font: 500 12px var(--f-mono); }
.lp-msg code { background: rgba(255, 255, 255, .07); color: #f0c987; }
.lp-noscript .lp-msg, .no-js .lp-msg { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .lp-msg { opacity: 1; transform: none; transition: none; } }

/* two-up compare */
.lp-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-duo .lp-card { padding: 28px; }
.lp-duo .lp-card:first-child { border-color: color-mix(in srgb, var(--lime) 55%, var(--rule)); background: color-mix(in srgb, var(--lime) 6%, var(--paper)); }
.lp-duo dl { margin: 16px 0 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 14px; font-size: 14.5px; }
.lp-duo dt { color: var(--muted); }
.lp-duo dd { margin: 0; color: var(--ink-2); }

/* docs links */
.lp-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-docs a { display: flex; flex-direction: column; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.lp-docs a:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.lp-docs small { color: var(--lime-ink); font-weight: 700; font-size: 12.5px; }
.lp-docs b { margin-top: 4px; font-size: 16.5px; }
.lp-docs span { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* install steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.lp-steps > div { padding: 22px; border: 1px solid var(--rule); border-radius: 14px; counter-increment: st; }
.lp-steps > div::before { content: counter(st); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 13px var(--f-mono); }
.lp-steps h3 { margin: 0 0 8px; font-size: 17px; }
.lp-steps p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.lp-steps .cmd { font-size: 13px; }

/* cross links to sibling pages */
.lp-siblings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-siblings a { padding: 22px; border-radius: 14px; background: var(--term, #0D1310); color: #e8efe9; text-decoration: none; transition: transform .15s; }
.lp-siblings a:hover { transform: translateY(-2px); }
.lp-siblings a[aria-current="page"] { display: none; }
.lp-siblings small { color: #a5d86e; font: 700 12px var(--f-mono); }
.lp-siblings b { display: block; margin-top: 6px; font-size: 19px; }
.lp-siblings span { display: block; margin-top: 6px; color: #a9b8ae; font-size: 14.5px; line-height: 1.45; }

@media (max-width: 1000px) {
    .lp-hero-grid, .lp-split, .lp-duo { grid-template-columns: minmax(0, 1fr); }
    .lp-split--rev > :first-child { order: 0; }
    .lp-grid, .lp-docs, .lp-steps, .lp-siblings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-endpoints { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-arch { grid-template-columns: minmax(0, 1fr); }
    .lp-arch > div, .lp-arch > div:first-child, .lp-arch > div:last-child { border-left-width: 1px; border-top-width: 0; border-radius: 0; }
    .lp-arch > div:first-child { border-top-width: 1px; border-radius: 12px 12px 0 0; }
    .lp-arch > div:last-child { border-radius: 0 0 12px 12px; }
    .lp-band ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-band li:nth-child(3) { border-left: 0; padding-left: 0; }
    .lp-sec { padding: 72px 0; }
}
@media (max-width: 620px) {
    .lp-grid, .lp-docs, .lp-steps, .lp-siblings, .lp-endpoints { grid-template-columns: minmax(0, 1fr); }
    .lp-duo dl { grid-template-columns: minmax(0, 1fr); }
    .lp-table th { width: auto; display: block; padding-bottom: 0; border: 0; }
    .lp-table td { display: block; }
    .lp-table tr { display: block; border-bottom: 1px solid var(--rule); }
}
.lp-hero--stack .lp-copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0 56px; max-width: none; align-items: end; }
.lp-hero--stack .lp-copy > .lp-kicker, .lp-hero--stack .lp-copy > h1 { grid-column: 1 / -1; justify-self: start; }
.lp-hero--stack .lp-copy > .lp-lead { grid-column: 1; grid-row: 3 / span 3; margin-bottom: 0; }
.lp-hero--stack .lp-copy > .cmd, .lp-hero--stack .lp-copy > .lp-ctas, .lp-hero--stack .lp-copy > .lp-facts { grid-column: 2; }
.lp-hero--stack h1 { max-width: 16ch; }
@media (max-width: 1000px) { .lp-hero--stack .lp-copy { display: block; } }

/* MCP prompt examples */
.ai-ic { width: 15px; height: 15px; color: var(--lime); flex: none; }
.pr-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--paper); }
.pr-switch button { font: inherit; text-align: left; padding: 8px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; }
.pr-switch button b { display: block; font-size: 15px; }
.pr-switch button span { display: block; font-size: 12.5px; color: var(--muted); }
.pr-switch button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.pr-switch button[aria-selected="true"] span { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.pr-set { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 18px; align-items: start; }
.pr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pr-list button { width: 100%; font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; padding: 11px 14px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; }
.pr-list button:hover { border-color: var(--ink-2); }
.pr-list button[aria-pressed="true"] { border-color: var(--ink); background: var(--lime-soft); box-shadow: inset 3px 0 0 var(--ink); }
.pr-stage .lp-chat-body { min-height: 0; }
.pr-stage .lp-msg { opacity: 1; transform: none; }
.pr-in .lp-msg.you { animation: prIn .3s ease both; }
.pr-in .lp-msg.ai { animation: prIn .35s .25s ease both; }
@keyframes prIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pr-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 820px) {
    .pr-set { grid-template-columns: minmax(0, 1fr); }
    .pr-list { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
    .pr-list li { flex: none; }
    .pr-list button { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .pr-in .lp-msg { animation: none; } }
.pr-set[hidden], .pr-chat[hidden] { display: none !important; }
