/*
 * Landing pages on the v3 system (site-v3.css): problem, scenario, developer
 * and comparison pages. Only adds what long-form content needs — prose,
 * tables, code, callouts, FAQ, tool forms — using the same tokens as the
 * homepage. Load after site-v3.css.
 */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.lp-hero .li-hero-copy h1 { font-size: clamp(40px, 5vw, 72px); line-height: .96; }
.lp-hero .li-hero-copy > p:not(.li-kicker) { max-width: 600px; }
.lp-crumbs { margin: 0 0 18px; color: var(--li-muted); font-family: var(--li-mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lp-crumbs a { color: var(--li-muted); text-decoration: none; }
.lp-crumbs a:hover { color: var(--li-ink); }
.lp-hero .li-shot { border: 1px solid var(--li-ink); }
.lp-hero .li-code { align-self: center; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.lp-section { padding: 88px 0; border-top: 1px solid var(--li-ink); }
.lp-section.is-alt { background: #e9e6dd; }
.lp-section .li-section-head { margin-bottom: 28px; }
.lp-section .li-section-head > p { margin: 0; color: var(--li-muted); font-size: 15px; line-height: 1.6; }
.lp-lead { padding: 72px 0; border-top: 1px solid var(--li-ink); background: var(--li-panel); }
.lp-lead .li-shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
.lp-lead .lp-lead-mark { font-family: var(--li-mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--li-signal); }

/* ── Prose ────────────────────────────────────────────────────────────── */
.lp-prose { font-size: 17px; line-height: 1.7; }
.lp-prose > p, .lp-prose > ul, .lp-prose > ol { max-width: 860px; }
.lp-prose > :first-child { margin-top: 0; }
.lp-prose p { margin: 0 0 18px; }
.lp-prose a { color: var(--li-blue); text-decoration: underline; text-underline-offset: 3px; }
.lp-prose strong { font-weight: 750; }
.lp-prose ul, .lp-prose ol { margin: 0 0 22px; padding: 0; list-style: none; border-top: 1px solid var(--li-soft-line); }
.lp-prose li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--li-soft-line); }
.lp-prose ul li::before { position: absolute; left: 4px; top: 14px; color: var(--li-signal); content: "■"; font-size: 10px; line-height: 2.6; }
.lp-prose ol { counter-reset: lp; }
.lp-prose ol li::before { position: absolute; left: 0; top: 14px; color: var(--li-signal); font-family: var(--li-mono); font-size: 12px; font-weight: 800; line-height: 2.2; counter-increment: lp; content: counter(lp, decimal-leading-zero); }
.lp-prose code, .lp-faq code, .li-op code { padding: 1px 5px; border: 1px solid var(--li-soft-line); background: var(--li-panel); font-family: var(--li-mono); font-size: .86em; }

/* ── Steps (blog-steps → op cards) ───────────────────────────────────── */
.lp-steps { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 0 0 24px; }
.lp-steps .li-op { min-height: 0; gap: 14px; }
.lp-steps .li-op p { color: var(--li-ink); font-size: 15px; line-height: 1.6; }
.lp-steps .li-op p strong { display: block; margin-bottom: 6px; font-size: 18px; letter-spacing: -.02em; }
.lp-steps .li-op-number { color: var(--li-signal); }

/* ── Tables ───────────────────────────────────────────────────────────── */
.lp-table { margin: 0 0 24px; overflow-x: auto; border: 1px solid var(--li-ink); background: var(--li-panel); }
.lp-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.lp-table th { padding: 12px 16px; background: var(--li-ink); color: white; font-family: var(--li-mono); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.lp-table td { padding: 14px 16px; border-top: 1px solid var(--li-soft-line); line-height: 1.5; vertical-align: top; }
.lp-table tr:nth-child(even) td { background: #f7f4ec; }
.lp-table td:first-child { font-weight: 650; }

/* ── Code ─────────────────────────────────────────────────────────────── */
.lp-prose .li-code, .lp-code { margin: 0 0 24px; }
.li-code pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
/* On the homepage .li-code sits inside the dark .li-api section and inherits
   white text; on landing pages it sits on paper, so set it explicitly. */
.lp-hero .li-code, .lp-code { color: #e6e8ea; }
.lp-code pre { max-height: 520px; font-family: var(--li-mono); font-size: 13px; line-height: 1.65; }
.lp-hero .li-code pre { font-family: var(--li-mono); font-size: 13px; line-height: 1.65; }

/* ── Callout (blog-cta-inline) ────────────────────────────────────────── */
.lp-callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 24px; padding: 22px 24px; border: 1px solid var(--li-ink); border-left: 6px solid var(--li-signal); background: var(--li-panel); }
.lp-callout p { margin: 0; font-size: 16px; line-height: 1.55; }
.lp-callout a { color: var(--li-signal); font-weight: 800; white-space: nowrap; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.lp-faq { border: 1px solid var(--li-ink); background: var(--li-panel); }
.lp-faq details { border-top: 1px solid var(--li-soft-line); }
.lp-faq details:first-child { border-top: 0; }
.lp-faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 20px 24px; cursor: pointer; font-size: 18px; font-weight: 750; letter-spacing: -.02em; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { color: var(--li-signal); font-family: var(--li-mono); content: "+"; }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details p { margin: 0; padding: 0 24px 22px; color: var(--li-muted); font-size: 15px; line-height: 1.65; }

/* ── Related ──────────────────────────────────────────────────────────── */
.lp-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: 1px solid var(--li-ink); background: var(--li-panel); }
.lp-related a { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 120px; padding: 20px; border-right: 1px solid var(--li-soft-line); border-bottom: 1px solid var(--li-soft-line); text-decoration: none; }
.lp-related a span { font-family: var(--li-mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--li-signal); }
.lp-related a strong { font-size: 18px; letter-spacing: -.02em; line-height: 1.2; }
.lp-related a:hover { background: white; }

/* ── Tool forms (CSV → ZPL) ───────────────────────────────────────────── */
.lp-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--li-ink); background: var(--li-panel); }
.lp-tool-pane { padding: 24px; }
.lp-tool-pane + .lp-tool-pane { border-left: 1px solid var(--li-ink); background: var(--li-ink); color: white; }
.lp-field { display: grid; gap: 7px; margin-bottom: 16px; }
.lp-field label, .lp-label { font-family: var(--li-mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-input { width: 100%; padding: 11px 12px; border: 1px solid var(--li-ink); border-radius: 0; background: white; color: var(--li-ink); font: 14px/1.45 var(--li-sans); }
textarea.lp-input { font-family: var(--li-mono); font-size: 12px; resize: vertical; }
.lp-input:focus { outline: 2px solid var(--li-blue); outline-offset: 1px; }
.lp-check { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 13px; }
.lp-check input { width: 16px; height: 16px; accent-color: var(--li-signal); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-chips code { padding: 3px 7px; border: 1px solid var(--li-soft-line); background: white; font-family: var(--li-mono); font-size: 11px; }
.lp-tool-pane + .lp-tool-pane .lp-label { color: #9aa0a8; }
.lp-out { width: 100%; min-height: 360px; padding: 16px; border: 1px solid #34383d; background: #0b0d0f; color: #72d8a6; font: 12px/1.6 var(--li-mono); resize: vertical; }
.lp-status { margin: 10px 0 14px; color: #c6c9cd; font-size: 13px; }
.lp-tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.lp-tool-pane + .lp-tool-pane .li-button { border-color: #5f646b; color: white; background: transparent; }
.lp-tool-pane + .lp-tool-pane .li-button.primary { border-color: var(--li-signal); background: var(--li-signal); }
.lp-upsell { padding: 18px; border: 1px solid var(--li-signal); background: rgba(201, 54, 19, .12); }
.lp-upsell p { margin: 0 0 12px; color: white; font-size: 14px; line-height: 1.55; }
.lp-upsell strong { color: #ffb39f; }
.lp-privacy { margin: 14px 0 0; color: var(--li-muted); font-family: var(--li-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
    .lp-lead .li-shell { grid-template-columns: 1fr; gap: 24px; }
    .lp-tool { grid-template-columns: 1fr; }
    .lp-tool-pane + .lp-tool-pane { border-left: 0; border-top: 1px solid var(--li-ink); }
}
@media (max-width: 760px) {
    .lp-section { padding: 60px 0; }
    .lp-lead { padding: 48px 0; }
    .lp-prose { font-size: 16px; }
    .lp-callout { flex-direction: column; align-items: flex-start; }
    .lp-row { grid-template-columns: 1fr; }
    .lp-faq summary { font-size: 16px; padding: 16px 18px; }
    .lp-faq details p { padding: 0 18px 18px; }
}
