/*
 * 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); }
/* site-v3 fixes every shot to 1240:666 and letterboxes anything else; use each image's own ratio. */
.lp-hero .li-shot img { aspect-ratio: auto; }
.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; }

/* Sub-headings inside a section (the old pages used h3 for "Marketplaces", "Connection paths"). */
.lp-prose h3 { margin: 40px 0 16px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.lp-prose h3:first-child { margin-top: 0; }

/* ── 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; }
}

/* ── Rich layout (pages migrated off the old blog template) ──────────── */
.lp-hero .li-hero-grid { align-items: start; }
.lp-hero-fig { position: relative; min-width: 0; }
.lp-hero-fig .li-shot { box-shadow: 12px 12px 0 #d8d4ca; }
.lp-chip { position: absolute; left: -28px; bottom: -28px; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--li-ink); background: var(--li-panel); box-shadow: 6px 6px 0 var(--li-ink); }
.lp-chip .li-mono { color: var(--li-muted); font-size: 10px; letter-spacing: .12em; }
.lp-chip strong { font-size: 19px; font-weight: 900; letter-spacing: -.03em; }

.lp-strip { padding: 20px 0; border-top: 1px solid var(--li-ink); background: var(--li-ink); color: white; }
.lp-strip .li-shell { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.lp-strip .li-mono { color: #9aa0a8; font-size: 10px; letter-spacing: .12em; }
.lp-strip strong { font-size: 21px; font-weight: 900; letter-spacing: -.04em; }
.lp-strip em { margin-left: auto; color: #72d8a6; font-style: normal; font-size: 10px; }

.lp-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--li-ink); background: var(--li-panel); }
.lp-trio figure { display: flex; flex-direction: column; margin: 0; border-right: 1px solid var(--li-soft-line); }
.lp-trio figure:last-child { border-right: 0; }
.lp-trio img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--li-ink); background: #1d4ed8; }
.lp-trio figcaption { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.lp-trio figcaption .li-mono { color: var(--li-signal); font-size: 10px; letter-spacing: .12em; }
.lp-trio figcaption strong { font-size: 22px; font-weight: 900; line-height: 1.1; letter-spacing: -.04em; }
.lp-trio figcaption p { margin: 0; color: var(--li-muted); font-size: 15px; line-height: 1.6; }

.lp-band { padding: 88px 0; border-top: 1px solid var(--li-ink); background: var(--li-ink); color: white; }
.lp-band-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.lp-band .li-kicker { margin: 0 0 18px; padding-top: 16px; border-top: 1px solid #5f646b; color: #ff7a5c; }
.lp-band h2 { margin: 0 0 20px; font-size: clamp(34px, 4vw, 54px); line-height: .98; letter-spacing: -.055em; }
.lp-band p:not(.li-kicker) { margin: 0; color: #c6c9cd; font-size: 18px; line-height: 1.65; }
.lp-band figure { margin: 0; border: 1px solid #5f646b; background: #1a1d20; }
.lp-band img { display: block; width: 100%; height: auto; }

@media (max-width: 1040px) {
    .lp-trio { grid-template-columns: 1fr; }
    .lp-trio figure { border-right: 0; border-bottom: 1px solid var(--li-soft-line); }
    .lp-band-grid { grid-template-columns: 1fr; gap: 36px; }
    .lp-chip { left: 12px; bottom: -22px; }
}
@media (max-width: 760px) {
    .lp-band { padding: 56px 0; }
    .lp-strip strong { font-size: 18px; }
    .lp-strip em { margin-left: 0; }
}
.lp-trio img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* Notes (old blog-tip / blog-warning), figures and quotes inside prose */
.lp-note { margin: 0 0 24px; padding: 20px 24px; border: 1px solid var(--li-ink); border-left: 6px solid var(--li-blue); background: var(--li-panel); }
.lp-note.is-warning { border-left-color: #f1ba2b; background: #fbeec2; }
.lp-note > strong { display: block; margin-bottom: 8px; font-family: var(--li-mono); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lp-note p { margin: 0 0 10px; font-size: 16px; line-height: 1.65; }
.lp-note p:last-child { margin-bottom: 0; }
.lp-prose figure { margin: 0 0 24px; border: 1px solid var(--li-ink); background: var(--li-panel); }
.lp-prose figure img, .lp-prose > img { display: block; max-width: 100%; height: auto; }
.lp-prose figcaption { padding: 12px 16px; border-top: 1px solid var(--li-ink); color: var(--li-muted); font-size: 13px; }
.lp-prose blockquote { margin: 0 0 22px; padding: 6px 0 6px 22px; border-left: 4px solid var(--li-signal); color: var(--li-muted); }

/* Locales without a section label: the lead paragraph runs on its own, left-aligned. */
.lp-lead--plain .li-shell { display: block; }
.lp-lead--plain .lp-prose { max-width: 860px; }
.lp-section .li-section-head:last-child { margin-bottom: 0; }

/* ── Free calculators (website/js/tools/calculators.js) on the v3 look ───────
   The script renders .calc-* markup into a [data-labelinn-calc] element. */
.lp-tool-section { padding: 56px 0 24px; border-top: 1px solid var(--li-ink); }
.calc-widget { margin: 0; padding: 28px; border: 1px solid var(--li-ink); background: var(--li-panel); box-shadow: 8px 8px 0 #d8d4ca; }
.calc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.calc-field { display: flex; flex-direction: column; gap: 7px; }
.calc-label { font-family: var(--li-mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.calc-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); }
.calc-input:focus { outline: 2px solid var(--li-blue); outline-offset: 1px; }
.calc-textarea { font-family: var(--li-mono); font-size: 13px; line-height: 1.5; resize: vertical; white-space: pre; overflow-x: auto; }
.calc-form:has(.calc-textarea) { grid-template-columns: 1fr; }
.calc-output { margin-top: 24px; }
.calc-results { width: 100%; border-collapse: collapse; border: 1px solid var(--li-ink); background: white; font-size: 14px; }
.calc-results th, .calc-results td { padding: 12px 16px; border-top: 1px solid var(--li-soft-line); text-align: left; vertical-align: top; }
.calc-results tr:first-child th, .calc-results tr:first-child td { border-top: 0; }
.calc-results th { width: 55%; font-weight: 650; }
.calc-results td { font-variant-numeric: tabular-nums; }
.calc-results .calc-strong { font-weight: 800; font-size: 1.05em; color: var(--li-signal); }
.calc-note { margin: 0; color: var(--li-muted); }
.calc-subhead { margin: 24px 0 8px; font-size: 16px; }
.calc-warnings { margin: 0; padding-left: 20px; }
.calc-warnings li { margin-bottom: 6px; }
.calc-privacy { margin: 16px 0 0; color: var(--li-muted); font-family: var(--li-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 640px) { .calc-widget { padding: 18px; } .calc-results th { width: 50%; } }

/* Hub pages: the old "how it works" grid of links becomes plain link cards. */
.lp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 0 0 28px; border: 1px solid var(--li-ink); background: var(--li-panel); }
.lp-cards a { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; border-right: 1px solid var(--li-soft-line); border-bottom: 1px solid var(--li-soft-line); color: var(--li-ink); text-decoration: none; }
.lp-cards a:hover { background: white; }
.lp-cards a strong { font-size: 20px; line-height: 1.15; letter-spacing: -.03em; }
.lp-cards a strong::after { content: " →"; color: var(--li-signal); }
.lp-cards a p { margin: 0; color: var(--li-muted); font-size: 14.5px; line-height: 1.6; }
.lp-table tbody th { background: transparent; color: var(--li-ink); font-family: inherit; font-size: 14px; font-weight: 650; letter-spacing: 0; text-transform: none; border-top: 1px solid var(--li-soft-line); }

/* ── Free barcode / QR generators (website/js/tools/barcode-generator.js) on the v3 look ───────
   The page script drives the .bgen-* markup by id; only the skin changes here. */
.lp-hero--tool .li-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 52px 0 36px; gap: 0; }
.lp-hero--tool h1 { max-width: 980px; }
.lp-hero--tool .li-hero-copy > p:not(.li-kicker) { max-width: 760px; }
.lp-badges { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; }
.lp-badges span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--li-mono); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--li-muted); }
.lp-badges span::before { content: ""; width: 8px; height: 8px; background: #147a55; }

.bgen-tool { max-width: none; margin: 0; padding: 0; }
.bgen-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: stretch; border: 1px solid var(--li-ink); background: var(--li-panel); box-shadow: 8px 8px 0 #d8d4ca; }
.bgen-panel { padding: 28px; }
.bgen-panel + .bgen-panel { border-left: 1px solid var(--li-ink); background: #fbf9f2; }
.bgen-panel h2 { margin: 0 0 20px; font-family: var(--li-mono); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--li-signal); }
.bgen-field { margin-bottom: 16px; }
.bgen-field > label, .bgen-slider-head label { display: block; margin-bottom: 7px; font-family: var(--li-mono); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bgen-hint { margin-left: 6px; color: var(--li-muted); font-weight: 600; letter-spacing: 0; text-transform: none; }
.bgen-input, .bgen-select, .bgen-textarea { width: 100%; box-sizing: border-box; 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); }
.bgen-textarea { min-height: 64px; resize: vertical; font-family: var(--li-mono); font-size: 13px; }
.bgen-input:focus, .bgen-select:focus, .bgen-textarea:focus { outline: 2px solid var(--li-blue); outline-offset: 1px; }
.bgen-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bgen-slider-head { display: flex; align-items: baseline; justify-content: space-between; }
.bgen-slider-head output { font-family: var(--li-mono); font-size: 12px; font-weight: 800; color: var(--li-signal); }
input[type="range"].bgen-range { width: 100%; accent-color: var(--li-signal); }
.bgen-color { display: flex; align-items: center; gap: 10px; }
.bgen-color input[type="color"] { width: 40px; height: 34px; padding: 0; border: 1px solid var(--li-ink); background: none; cursor: pointer; }
.bgen-color code { font-family: var(--li-mono); font-size: 12px; color: var(--li-muted); }
.bgen-check { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; user-select: none; }
.bgen-check input { width: 16px; height: 16px; accent-color: var(--li-signal); }
.bgen-preview-panel { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; min-height: 380px; }
.bgen-stage { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 290px; padding: 28px 18px; overflow: auto; border: 1px dashed var(--li-ink); background: #fff; background-image: linear-gradient(45deg, #f1eee6 25%, transparent 25%), linear-gradient(-45deg, #f1eee6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f1eee6 75%), linear-gradient(-45deg, transparent 75%, #f1eee6 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.bgen-stage.bgen-has-bg { background-image: none; }
.bgen-stage canvas, .bgen-stage svg { max-width: 100%; height: auto; background: transparent; }
.bgen-error { display: none; margin-top: 12px; padding: 11px 14px; border: 1px solid #c93613; background: #fbe9e3; color: #8c2a10; font-size: 13px; }
.bgen-error.show { display: block; }
.bgen-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bgen-actions .btn, .bgen-copy-embed { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto; min-width: 120px; min-height: 46px; padding: 0 18px; border: 1px solid var(--li-ink); border-radius: 0; background: transparent; color: var(--li-ink); font: 800 14px/1 var(--li-sans); cursor: pointer; }
.bgen-actions .btn:hover, .bgen-copy-embed:hover { background: var(--li-ink); color: white; }
.bgen-actions .btn-primary { border-color: var(--li-signal); background: var(--li-signal); color: white; }
.bgen-actions .btn-primary:hover { border-color: #a92c0e; background: #a92c0e; }
.bgen-dl-icon { margin-right: 6px; vertical-align: -2px; }
.bgen-copy-embed { flex: none; margin: 0 0 24px; min-height: 40px; font-size: 13px; }
.bgen-embed { margin: 0 0 12px; padding: 16px 18px; overflow-x: auto; border: 1px solid #34383d; background: #0b0d0f; color: #72d8a6; font: 12.5px/1.65 var(--li-mono); white-space: pre; }
@media (max-width: 900px) {
    .bgen-grid { grid-template-columns: 1fr; }
    .bgen-panel + .bgen-panel { border-left: 0; border-top: 1px solid var(--li-ink); }
    .bgen-preview-panel { position: static; order: -1; }
    .bgen-panel { padding: 20px; }
}
/* ?embed=1 — the generator is iframed on other sites: show the tool alone. */
html.bgen-embed-mode .li-nav, html.bgen-embed-mode .li-footer, html.bgen-embed-mode .lp-badges, html.bgen-embed-mode .lp-crumbs,
html.bgen-embed-mode .lp-hero--tool .li-hero-copy > p, html.bgen-embed-mode main > section:not(.lp-hero):not(.lp-tool-section) { display: none !important; }
html.bgen-embed-mode .lp-hero--tool .li-hero-grid { padding: 16px 0 0; }
html.bgen-embed-mode .lp-hero--tool h1 { font-size: 24px; }
html.bgen-embed-mode .lp-tool-section { padding: 16px 0; border-top: 0; }
html.bgen-embed-mode .bgen-preview-panel { position: static; }
.bgen-grid { background: linear-gradient(to right, var(--li-panel) 0, var(--li-panel) 400px, #fbf9f2 400px); }
@media (max-width: 900px) { .bgen-grid { background: var(--li-panel); } .bgen-panel + .bgen-panel { background: #fbf9f2; } }

/* Free tools -> app: the three funnel prompts (next to the downloads, under the tool, closing band). */
.bgen-print-cta { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--li-ink); background: var(--li-ink); color: white; font: 800 14px/1 var(--li-sans); text-decoration: none; }
.bgen-print-cta:hover { background: var(--li-signal); border-color: var(--li-signal); }
.lp-tool-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 28px; padding: 26px 30px; background: var(--li-ink); color: white; }
.lp-tool-cta strong { display: block; font-size: 24px; line-height: 1.12; letter-spacing: -.04em; }
.lp-tool-cta p { max-width: 720px; margin: 8px 0 0; color: #c6c9cd; font-size: 15px; line-height: 1.6; }
.lp-tool-cta .li-button { flex: none; white-space: nowrap; border-color: var(--li-signal); background: var(--li-signal); color: white; }
.lp-tool-cta .li-button:hover { border-color: white; background: white; color: var(--li-ink); }
@media (max-width: 760px) { .lp-tool-cta { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px; } .lp-tool-cta strong { font-size: 20px; } }
html.bgen-embed-mode .lp-tool-cta { display: none !important; }

/* Case studies: customer quotes and the results table */
.lp-quote { margin: 0 0 28px; padding: 24px 28px; border: 1px solid var(--li-ink); border-left: 6px solid var(--li-signal); background: var(--li-panel); }
.lp-quote p { margin: 0 0 14px; font-size: 18px; line-height: 1.65; }
.lp-quote p:last-child { margin-bottom: 0; }
.lp-table td.improvement { color: #147a55; font-weight: 800; white-space: nowrap; }

/* Case-studies index: story cards and the overall-impact row */
.lp-stories { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.lp-stories a { gap: 8px; padding: 26px 28px 28px; }
.lp-stories .lp-story-industry { font-family: var(--li-mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--li-signal); }
.lp-stories a strong { font-size: 24px; }
.lp-stories a strong::after { content: ""; }
.lp-stories em { font-style: normal; color: var(--li-muted); font-size: 14px; }
.lp-stories .lp-story-metric { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 2px; padding: 10px 0; border-top: 1px solid var(--li-soft-line); border-bottom: 1px solid var(--li-soft-line); font-family: var(--li-mono); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--li-muted); }
.lp-stories .lp-story-metric b { font-family: var(--li-sans); font-size: 34px; letter-spacing: -.05em; color: #147a55; text-transform: none; }
.lp-stories .lp-story-go { margin-top: auto; padding-top: 10px; color: var(--li-signal); font-weight: 800; font-size: 14px; }
.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--li-ink); background: var(--li-panel); }
.lp-stats div { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; border-right: 1px solid var(--li-soft-line); }
.lp-stats div:last-child { border-right: 0; }
.lp-stats b { font-size: 48px; line-height: 1; letter-spacing: -.06em; }
.lp-stats span { color: var(--li-muted); font-family: var(--li-mono); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Features page: bullet list beside the screenshot that belongs to it */
.lp-pill { display: inline-block; margin: 0 0 14px; padding: 5px 10px; border: 1px solid var(--li-ink); font-family: var(--li-mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lp-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; margin: 8px 0 8px; }
.lp-feature.is-reverse .lp-feature-text { order: 2; }
.lp-feature.is-reverse .lp-feature-shot { order: 1; }
.lp-feature-text > ul { margin-top: 0; }
.lp-feature-shot { margin: 0; border: 1px solid var(--li-ink); background: var(--li-panel); box-shadow: 8px 8px 0 #d8d4ca; }
.lp-feature-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 960px) { .lp-feature { grid-template-columns: 1fr; gap: 24px; } .lp-feature.is-reverse .lp-feature-text, .lp-feature.is-reverse .lp-feature-shot { order: 0; } }

/* Facts band and plan band (rich pages, EN/TR) */
.lp-facts { border-top: 1px solid var(--li-ink); background: var(--li-panel); }
.lp-facts .li-shell { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-facts .li-shell > div { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-right: 1px solid var(--li-soft-line); }
.lp-facts .li-shell > div:last-child { border-right: 0; }
.lp-facts strong { font-size: 17px; font-weight: 900; letter-spacing: -.03em; }
.lp-facts span { color: var(--li-muted); font-size: 13px; line-height: 1.45; }
.lp-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--li-ink); background: var(--li-panel); }
.lp-plan { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-right: 1px solid var(--li-soft-line); color: var(--li-ink); text-decoration: none; }
.lp-plan:last-child { border-right: 0; }
.lp-plan:hover { background: white; }
.lp-plan.is-mid { background: var(--li-ink); color: white; }
.lp-plan.is-mid:hover { background: #1b1e21; }
.lp-plan .li-mono { font-size: 11px; letter-spacing: .14em; color: var(--li-signal); }
.lp-plan b { font-size: 56px; font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.lp-plan b small { margin-left: 4px; font-size: 16px; font-weight: 700; letter-spacing: 0; opacity: .7; }
.lp-plan p { margin: 0; color: var(--li-muted); font-size: 15px; line-height: 1.6; }
.lp-plan.is-mid p { color: #c6c9cd; }
@media (max-width: 900px) {
    .lp-facts .li-shell { grid-template-columns: 1fr 1fr; }
    .lp-facts .li-shell > div:nth-child(2) { border-right: 0; }
    .lp-facts .li-shell > div:nth-child(-n+2) { border-bottom: 1px solid var(--li-soft-line); }
    .lp-plan-grid { grid-template-columns: 1fr; }
    .lp-plan { border-right: 0; border-bottom: 1px solid var(--li-soft-line); }
    .lp-plan:last-child { border-bottom: 0; }
}

/* DPP pages: closing "talk to us" band (the page's conversion is a conversation, not a download) */
.lp-contact .li-final-box h2 { max-width: 760px; font-size: clamp(34px, 4.4vw, 60px); }
.lp-contact .li-final-box p { max-width: 720px; line-height: 1.6; }
.lp-contact-actions { display: grid; gap: 14px; justify-items: start; align-self: end; }
.lp-contact-mail { color: white; font-size: 13px; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .lp-contact-actions { justify-items: stretch; } .lp-contact-mail { text-align: center; } }
/* A screenshot trio inside prose: the prose figure frame must not wrap each cell again */
.lp-prose .lp-trio { margin: 0 0 24px; }
.lp-prose .lp-trio figure { margin: 0; border: 0; border-right: 1px solid var(--li-soft-line); background: transparent; }
.lp-prose .lp-trio figure:last-child { border-right: 0; }
.lp-prose .lp-trio figcaption { padding: 22px 24px 26px; border-top: 0; color: inherit; font-size: inherit; }
.lp-prose .lp-trio figcaption p { margin: 0; }
@media (max-width: 960px) { .lp-prose .lp-trio figure { border-right: 0; border-bottom: 1px solid var(--li-soft-line); } }


/* ── Repairs: long headlines, "the problem" band picture, feature blocks, card grids ─────────────── */
.lp-hero .li-hero-copy h1.lp-h1-long { font-size: clamp(34px, 3.9vw, 54px); line-height: 1; letter-spacing: -.055em; text-wrap: balance; }
.lp-hero .li-hero-copy h1 { text-wrap: balance; }

/* "The problem": the left column was a kicker over 500px of nothing. It now carries a close crop of a real workstation. */
.lp-lead .lp-lead-fig { position: relative; margin: 26px 0 0; border: 1px solid var(--li-ink); background: var(--li-panel); box-shadow: 8px 8px 0 #d8d4ca; }
.lp-lead .lp-lead-fig img { display: block; width: 100%; height: auto; }


/* A list that follows its screenshot (the 13 integrations) reads as a grid of names, not a 13-row column. */
.lp-prose .lp-feature + ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 28px; margin-top: 28px; }
.lp-prose .lp-feature + ul li { padding-right: 8px; }
.lp-feature-text > ul li { padding-block: 11px; }


/* Card grids (compliance, steps): the number no longer floats to the top of a tall empty card, six cards make 3x2
   instead of 5+1, and every cell closes its own right/bottom edge so a short last row still looks finished. */
.lp-steps { border: 0; border-top: 1px solid var(--li-ink); border-left: 1px solid var(--li-ink); }
.lp-steps .li-op { border-right: 1px solid var(--li-ink); border-bottom: 1px solid var(--li-ink); }
.lp-steps .li-op:last-child { border-right: 1px solid var(--li-ink); }
.lp-steps .li-op-number { margin-bottom: 14px; }
.lp-steps:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-steps:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-steps:has(> :nth-child(9):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .lp-steps, .lp-steps:has(> :nth-child(n)) { grid-template-columns: minmax(0, 1fr); } }

/* ── Hands-on demos (js/lp-demos.js) ─────────────────────────────────────────────────────────────── */
.lp-demo { margin-top: 8px; }
.lp-demo-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border: 1px solid var(--li-ink); background: var(--li-panel); box-shadow: 8px 8px 0 #d8d4ca; }
.lp-demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 8px 14px; border-bottom: 1px solid var(--li-ink); background: var(--li-ink); color: #e6e8ea; font-family: var(--li-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.lp-demo-bar span:last-child, .lp-demo-bar button { color: var(--li-signal); }
.lp-demo-bar button { padding: 3px 10px; border: 1px solid currentColor; background: transparent; font: inherit; cursor: pointer; }
.lp-demo-bar button:hover { background: var(--li-signal); color: #fff; }
.lp-demo-out { margin: 0; padding: 14px 16px; border-top: 1px solid var(--li-ink); font-size: 14px; line-height: 1.5; min-height: 52px; background: #fff; }
.lp-demo-note { margin: 12px 0 0; color: var(--li-muted); font-size: 13px; }
.lp-labelsvg { display: block; width: calc(100% - 32px); height: auto; margin: 16px; border: 1px solid #cfcbc0; background: #fff; box-shadow: 4px 4px 0 #e2dfd6; }

/* sheet */
.lp-sheet-wrap { border-right: 1px solid var(--li-ink); min-width: 0; overflow-x: auto; }
.lp-sheet { width: 100%; border-collapse: collapse; font-size: 13px; }
.lp-sheet th { padding: 9px 10px; border-bottom: 1px solid var(--li-ink); background: #ece9e0; text-align: left; font-weight: 800; white-space: nowrap; }
.lp-sheet td { padding: 10px; border-bottom: 1px solid var(--li-soft-line); white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.lp-sheet tbody tr { cursor: pointer; }
.lp-sheet tbody tr:hover { background: #f4f2ea; }
.lp-sheet tbody tr.is-on { background: #fff1ea; box-shadow: inset 3px 0 0 var(--li-signal); }
.lp-sheet tbody tr.is-off td:not(:first-child) { opacity: .4; text-decoration: line-through; }
.lp-sheet input { accent-color: var(--li-signal); }
.lp-sheet-stage { min-width: 0; display: flex; flex-direction: column; }
.lp-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 16px 12px; }
.lp-map label { display: grid; gap: 4px; font-size: 11px; color: var(--li-muted); font-family: var(--li-mono); }
.lp-map select, .lp-mcp-key input { width: 100%; padding: 8px 8px; border: 1px solid var(--li-ink); background: #fff; font: 600 13px var(--li-sans); color: var(--li-ink); }
.lp-run { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px 16px; border-top: 1px solid var(--li-soft-line); }
.lp-run label { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--li-muted); }
.lp-step { display: inline-flex; align-items: center; border: 1px solid var(--li-ink); }
.lp-step button { width: 30px; height: 30px; border: 0; background: #fff; font-size: 16px; cursor: pointer; }
.lp-step button:hover { background: var(--li-ink); color: #fff; }
.lp-step b { min-width: 34px; text-align: center; font-family: var(--li-mono); }
.lp-total { margin: 0; flex: 1 1 100%; font-family: var(--li-mono); font-size: 13px; font-weight: 800; }
.lp-sheet-stage .lp-demo-out { margin-top: auto; }

/* flow */
.lp-flow-orders { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.lp-flow-orders > span { font-family: var(--li-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--li-muted); margin-right: 4px; }
.lp-flow-orders button { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--li-ink); background: var(--li-panel); text-align: left; cursor: pointer; font: inherit; }
.lp-flow-orders button b { font-size: 14px; }
.lp-flow-orders button small { color: var(--li-muted); font-size: 11px; }
.lp-flow-orders button:hover, .lp-flow-orders button.is-on { background: var(--li-ink); color: #fff; }
.lp-flow-orders button:hover small, .lp-flow-orders button.is-on small { color: #c9ccd0; }
[data-demo="flow"] { border: 1px solid var(--li-ink); background: var(--li-panel); padding: 16px 16px 0; box-shadow: 8px 8px 0 #d8d4ca; }
.lp-flow { display: block; width: 100%; height: auto; }
.lp-edge { fill: none; stroke: #b9b5a9; stroke-width: 2; transition: stroke .2s; }
.lp-edge.is-on { stroke: var(--li-signal); stroke-width: 3; }
.lp-node rect { fill: #fff; stroke: var(--li-ink); stroke-width: 1.5; transition: fill .2s; }
.lp-node .t { font: 800 13px var(--li-sans); fill: var(--li-ink); }
.lp-node .s { font: 500 11px var(--li-sans); fill: #67655f; }
.lp-node.is-on rect { fill: var(--li-ink); }
.lp-node.is-on .t { fill: #fff; }
.lp-node.is-on .s { fill: #c9ccd0; }
.lp-packet { fill: var(--li-signal); stroke: #fff; stroke-width: 2; }
[data-demo="flow"] .lp-demo-out { margin: 0 -16px; }

/* chat */
.lp-chat-tabs { display: inline-flex; border: 1px solid var(--li-ink); margin-bottom: 14px; background: #fff; }
.lp-chat-tabs button { padding: 9px 16px; border: 0; background: transparent; font: 800 13px var(--li-sans); cursor: pointer; }
.lp-chat-tabs button[aria-selected="true"] { background: var(--li-ink); color: #fff; }
.lp-chat-box { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--li-ink); }
.lp-chat-log { flex: 1 1 auto; min-height: 280px; max-height: 360px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #efede5; }
.lp-msg { max-width: 88%; padding: 10px 14px; font-size: 14px; line-height: 1.5; border: 1px solid var(--li-ink); background: #fff; }
.lp-msg.you { align-self: flex-end; background: var(--li-blue); border-color: var(--li-blue); color: #fff; }
.lp-chat-send { padding: 12px; border-top: 1px solid var(--li-ink); background: var(--li-panel); min-height: 64px; }
.lp-chat-chips button { width: 100%; padding: 11px 14px; border: 1px dashed var(--li-ink); background: #fff; text-align: left; font: 700 13px var(--li-sans); cursor: pointer; }
.lp-chat-chips button:hover { background: var(--li-ink); color: #fff; }
.lp-chat-view { min-width: 0; }
.lp-chat-view[hidden] { display: none; }
.lp-chat-grid:has(.lp-chat-view[hidden]) { grid-template-columns: 1fr; }
.lp-chat-grid:has(.lp-chat-view[hidden]) .lp-chat-box { border-right: 0; }

/* MCP generator */
.lp-mcp-controls { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; }
.lp-mcp-controls .lp-chat-tabs { margin-bottom: 0; }
.lp-mcp-key { display: grid; gap: 4px; flex: 1 1 260px; font-size: 12px; color: var(--li-muted); font-family: var(--li-mono); }
.lp-mcp-out { margin-top: 14px; border: 1px solid var(--li-ink); box-shadow: 8px 8px 0 #d8d4ca; }
.lp-mcp-out pre { margin: 0; padding: 16px; overflow-x: auto; background: #101214; color: #e6e8ea; font-family: var(--li-mono); font-size: 13px; line-height: 1.6; }
.lp-mcp-out pre code { background: none; border: 0; padding: 0; font: inherit; color: inherit; }

@media (max-width: 960px) {
    .lp-demo-grid { grid-template-columns: minmax(0, 1fr); }
    .lp-sheet-wrap, .lp-chat-box { border-right: 0; border-bottom: 1px solid var(--li-ink); }
    .lp-map { grid-template-columns: 1fr; }
}


/* Long plain-text sections: the text keeps a readable measure and a photo crop stays beside it while you read. */
.lp-prose--side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; align-items: start; max-width: none; }
.lp-prose--side .lp-prose-text { max-width: 760px; }
.lp-prose--side .lp-prose-text > :first-child { margin-top: 0; }
.lp-side-fig { position: sticky; top: 96px; margin: 0; border: 1px solid var(--li-ink); background: var(--li-panel); box-shadow: 8px 8px 0 #d8d4ca; }
.lp-prose .lp-side-fig { margin: 0; border: 1px solid var(--li-ink); background: var(--li-panel); }
.lp-prose .lp-side-fig img { display: block; width: 100%; max-width: none; height: auto; }
@media (max-width: 1100px) {
    .lp-prose--side { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .lp-side-fig { position: static; order: -1; }
}
