/* Self-hosted web fonts (OFL, see ../fonts/LICENSES.md). Same families and weights as before; no request leaves for a font host. */
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../fonts/geologica-cyrillic-ext.woff2") format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../fonts/geologica-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../fonts/geologica-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../fonts/geologica-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/onest-cyrillic-ext.woff2") format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/onest-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/onest-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/onest-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-cyrillic-ext-400.woff2") format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-cyrillic-400.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-400.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-cyrillic-ext-500.woff2") format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-cyrillic-500.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-500.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Letflow Front Door — component styles. Every value comes from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--current); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--current-strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lf-muted { color: var(--ink-muted); }
.lf-faint { color: var(--ink-faint); }
.eyebrow, .mono { font-variant-numeric: tabular-nums; }
.eyebrow { text-transform: uppercase; }
.lf-icon { flex: none; }

/* Night band: any container that sits on --night */
.lf-night { background: var(--night); color: var(--on-night); }
.lf-on-night, .lf-night { --ink: var(--on-night); --ink-muted: var(--on-night-muted); --ink-faint: var(--on-night-muted); --current-line: var(--current-on-night); }

/* ---------- Wordmark ---------- */
.lf-wordmark { display: inline-flex; align-items: center; gap: 0.28em; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--ink); white-space: nowrap; }
.lf-mark { width: 1.2em; height: 1.2em; flex: none; overflow: visible; }
.lf-mark__line { fill: none; stroke: var(--current); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.lf-mark__token { fill: var(--ember); }
.lf-on-night .lf-mark__line, .lf-night .lf-mark__line { stroke: var(--current-on-night); }
.lf-wordmark.lf-on-night { color: var(--on-night); }

/* ---------- Button ---------- */
.lf-btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--h); padding: 0 var(--space-6); border-radius: var(--radius-md); border: 1px solid transparent; font: 600 15px/1 var(--font-sans); text-decoration: none; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); white-space: nowrap; }
.lf-btn--s { --h: 34px; padding: 0 var(--space-4); font-size: 13px; }
.lf-btn--l { --h: 54px; padding: 0 var(--space-8); font-size: 16px; }
.lf-btn:active { transform: translateY(1px); }
.lf-btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.lf-btn:hover .lf-btn__arrow { transform: translateX(3px); }
.lf-btn--primary { background: var(--current); color: var(--on-current); }
.lf-btn--primary:hover { background: var(--current-strong); color: var(--on-current); }
.lf-btn--secondary { background: var(--paper-raised); color: var(--ink); border-color: var(--line-strong); }
.lf-btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.lf-btn--ghost { background: transparent; color: var(--current); padding-inline: var(--space-3); }
.lf-btn--ghost:hover { background: var(--current-tint); color: var(--current-strong); }
.lf-btn--danger { background: var(--paper-raised); color: var(--danger); border-color: var(--danger); }
.lf-btn--danger:hover { background: var(--danger-tint); color: var(--danger); }
.lf-btn--night { background: var(--on-night); color: var(--night); }
.lf-btn--night:hover { background: var(--current-on-night); color: var(--night); }
.lf-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- StatusPill ---------- */
.lf-pill { justify-self: start; width: fit-content; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: var(--radius-full); font: 600 12px/1 var(--font-sans); letter-spacing: .01em; white-space: nowrap; }
.lf-pill--info { background: var(--info-tint); color: var(--info); }
.lf-pill--warning { background: var(--warning-tint); color: var(--warning); }
.lf-pill--success { background: var(--success-tint); color: var(--success); }
.lf-pill--danger { background: var(--danger-tint); color: var(--danger); }
.lf-pill--neutral { background: var(--paper-sunken); color: var(--ink-muted); }
.lf-pill__glyph { width: 8px; height: 8px; flex: none; background: currentColor; border-radius: 50%; }
.lf-glyph--lead { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.lf-glyph--trial, .lf-glyph--onboarding { background: linear-gradient(90deg, currentColor 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px currentColor; }
.lf-glyph--at-risk { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 9px; }
.lf-glyph--churned { border-radius: 1px; width: 8px; height: 2px; }

/* ---------- Field ---------- */
.lf-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); align-content: start; }
.lf-label { font: 600 13px/18px var(--font-sans); letter-spacing: .01em; color: var(--ink); }
.lf-control { position: relative; display: flex; align-items: stretch; min-height: 44px; background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.lf-control:hover { border-color: var(--ink-muted); }
.lf-control:focus-within { border-color: var(--current); box-shadow: 0 0 0 1px var(--current); }
.lf-control input, .lf-control select, .lf-control textarea { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 16px/24px var(--font-sans); padding: 9px var(--space-3); outline: none; appearance: none; }
.lf-control textarea { resize: vertical; }
.lf-control ::placeholder { color: var(--ink-faint); opacity: 1; }
.lf-control--select select { padding-right: 36px; cursor: pointer; }
.lf-control__chev { position: absolute; right: 12px; top: 50%; translate: 0 -50%; color: var(--ink-muted); pointer-events: none; }
.lf-affix { display: flex; align-items: center; padding: 0 var(--space-3); color: var(--ink-muted); font: 400 13px/20px var(--font-mono); background: var(--paper-sunken); border-right: 1px solid var(--line); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.lf-affix--end { border-right: 0; border-left: 1px solid var(--line); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.lf-hint { font: 400 13px/18px var(--font-sans); color: var(--ink-faint); }
.lf-error { font: 500 13px/18px var(--font-sans); color: var(--danger); }
.lf-error::before { content: "! "; font-weight: 700; }
.lf-field--error .lf-control { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }

/* ---------- FlowLine ---------- */
.lf-flow { --current-line: var(--current); position: relative; padding: var(--space-4) 0 var(--space-2); }
.lf-flow--night { --current-line: var(--current-on-night); color: var(--on-night); }
.lf-flow__nodes { position: relative; z-index: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; }
.lf-node { display: grid; justify-items: center; align-content: start; text-align: center; gap: var(--space-2); padding: 0 var(--space-1); }
.lf-node__dot { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--paper-raised); border: 2px solid var(--current-line); color: var(--current-line); }
.lf-flow--night .lf-node__dot { background: var(--night); }
.lf-node--agent .lf-node__dot { background: var(--current-line); color: var(--paper-raised); }
.lf-flow--night .lf-node--agent .lf-node__dot { color: var(--night); }
.lf-node__ring { position: absolute; inset: -7px; border-radius: inherit; border: 2px solid var(--ember); opacity: 0; pointer-events: none; }
.lf-node.is-lit .lf-node__ring { opacity: 1; }
.lf-node__label { font: 600 13px/18px var(--font-sans); color: inherit; }
.lf-node__meta { font: 400 12px/16px var(--font-mono); color: var(--ink-muted); }
.lf-flow--night .lf-node__meta { color: var(--on-night-muted); }
.lf-flow__track { position: absolute; left: 0; right: 0; top: calc(var(--space-4) + 14px); height: 0; }
.lf-flow__rule { position: absolute; left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); top: -1px; height: 2px; z-index: 0; background: var(--current-line); transform-origin: left center; transition: transform var(--dur-draw) var(--ease-out); }
.lf-flow.is-pending .lf-flow__rule { transform: scaleX(0); }
.lf-flow__token { position: absolute; z-index: 2; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: var(--radius-full); background: var(--ember); box-shadow: 0 0 0 3px var(--paper-raised); opacity: 0; }
.lf-flow--night .lf-flow__token { box-shadow: 0 0 0 3px var(--night); }
.lf-flow__track { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .lf-flow__rule { transition: none; transform: none; } }

/* ---------- Eyebrow + SectionHead ---------- */
.lf-eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font: 500 12px/16px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ember-ink); }
.lf-on-night .lf-eyebrow, .lf-night .lf-eyebrow { color: var(--ember); }
.lf-eyebrow__node { width: 10px; height: 10px; border-radius: var(--radius-full); border: 2px solid currentColor; }
.lf-eyebrow__index { color: var(--ink); }
.lf-sechead { display: grid; gap: var(--space-4); max-width: 820px; }
.lf-sechead--center { justify-items: center; text-align: center; margin-inline: auto; }
.lf-sechead__lede { color: var(--ink-muted); max-width: var(--measure); }
.lf-sechead h1, .lf-sechead h2 { text-wrap: balance; }

/* ---------- Hero ---------- */
.lf-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: center; }
.lf-hero__copy { display: grid; gap: var(--space-6); justify-items: start; }
.lf-hero__title { text-wrap: balance; }
.lf-hero__lede { color: var(--ink-muted); max-width: 34ch; }
.lf-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.lf-hero__proof { color: var(--ink-faint); }
.lf-hero__aside { min-width: 0; }
@media (max-width: 860px) {
  .lf-hero { grid-template-columns: 1fr; gap: var(--space-8); }
  .lf-hero__title { font-size: 44px; line-height: 50px; }
}

/* ---------- FeatureList ---------- */
.lf-features { display: grid; grid-template-columns: repeat(var(--lf-cols, 2), minmax(0, 1fr)); column-gap: var(--space-12); }
.lf-feature { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--space-4); row-gap: var(--space-2); padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.lf-feature > :not(.lf-feature__n) { grid-column: 2; }
.lf-feature__n { grid-row: 1 / span 3; color: var(--ember-ink); font: 500 13px/28px var(--font-mono); }
.lf-feature__meta { color: var(--ink-faint); }
@media (max-width: 720px) { .lf-features { grid-template-columns: 1fr; } }

/* ---------- FactSheet ---------- */
.lf-facts { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.lf-facts__title { font: 500 12px/16px var(--font-mono); letter-spacing: .12em; color: var(--ember-ink); margin-bottom: var(--space-3); }
.lf-facts__row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.lf-facts__row dt { color: var(--ink-muted); }
.lf-facts__updated { color: var(--ink-faint); margin-top: var(--space-3); }
@media (max-width: 520px) { .lf-facts__row { grid-template-columns: 1fr; gap: var(--space-1); } }

/* ---------- FaqList ---------- */
.lf-faq { border-top: 1px solid var(--line-strong); }
.lf-faq__item { border-bottom: 1px solid var(--line); }
.lf-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) 0; cursor: pointer; list-style: none; }
.lf-faq__item summary::-webkit-details-marker { display: none; }
.lf-faq__item summary h2, .lf-faq__item summary h3, .lf-faq__item summary h4 { margin: 0; }
.lf-faq__icon { flex: none; color: var(--current); transition: transform var(--dur-base) var(--ease-out); }
.lf-faq__item[open] .lf-faq__icon { transform: rotate(45deg); }
.lf-faq__a { max-width: var(--measure); color: var(--ink-muted); padding: 0 0 var(--space-6); }
.lf-faq__item[open] .lf-faq__a { animation: lf-rise var(--dur-base) var(--ease-out); }
@keyframes lf-rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- PricingPlan ---------- */
.lf-plan { position: relative; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8) var(--space-6) var(--space-6); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.lf-plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); }
.lf-plan--rec { border: 2px solid var(--current); background: var(--paper-raised); }
.lf-plan__rec { position: absolute; top: -13px; left: var(--space-6); height: 26px; display: inline-flex; align-items: center; padding: 0 var(--space-3); background: var(--ember); color: var(--on-ember); border-radius: var(--radius-full); }
.lf-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1); font-variant-numeric: tabular-nums; }
.lf-plan__price .display-l { white-space: nowrap; font-size: 40px; line-height: 46px; }
.lf-plan__list { display: grid; align-content: start; gap: var(--space-2); flex: 1; }
.lf-plan__list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.lf-plan__list svg { color: var(--current); margin-top: 3px; flex: none; }
.lf-plan__cta { display: grid; }

/* ---------- Stepper ---------- */
.lf-stepper { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.lf-step .label { overflow-wrap: anywhere; }
.lf-step { position: relative; display: grid; justify-items: center; gap: var(--space-2); text-align: center; color: var(--ink-muted); }
.lf-step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line-strong); z-index: 0; }
.lf-step:first-child::before { display: none; }
.lf-step.is-done::before, .lf-step.is-current::before { background: var(--current); }
.lf-step__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--paper-raised); border: 2px solid var(--line-strong); font: 500 12px/1 var(--font-mono); color: var(--ink-muted); }
.lf-step.is-done .lf-step__dot { background: var(--current); border-color: var(--current); color: var(--on-current); }
.lf-step.is-current { color: var(--ink); }
.lf-step.is-current .lf-step__dot { border-color: var(--current); color: var(--current); box-shadow: 0 0 0 4px var(--paper-raised), 0 0 0 6px var(--ember); }

/* ---------- StatTile ---------- */
.lf-stat { display: grid; gap: var(--space-2); padding: var(--space-6); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.lf-stat__value { font-variant-numeric: tabular-nums; font-size: 36px; line-height: 42px; }
.lf-stat__foot { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 28px; }
.lf-stat__delta { white-space: nowrap; }
.lf-stat__delta.is-up { color: var(--success); }
.lf-stat__delta.is-down { color: var(--danger); }
.lf-stat__delta.is-flat { color: var(--ink-muted); }
.lf-stat__spark path { fill: none; stroke: var(--current); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- DataTable ---------- */
.lf-table-wrap { overflow-x: auto; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.lf-table { width: 100%; border-collapse: collapse; }
.lf-table th { text-align: left; padding: var(--space-3) var(--space-4); color: var(--ink-muted); border-bottom: 1px solid var(--line-strong); white-space: nowrap; background: var(--paper-raised); position: sticky; top: 0; }
.lf-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.lf-table tr:last-child td { border-bottom: 0; }
.lf-table .is-end { text-align: right; }
.lf-table td.mono { font: 400 13px/20px var(--font-mono); }
.lf-table tbody tr { transition: background var(--dur-fast) var(--ease-out); }
.lf-table tbody tr:hover { background: var(--paper); }
.lf-table tr.is-selected { background: var(--current-tint); box-shadow: inset 2px 0 0 var(--current); }
.lf-table tr.is-clickable { cursor: pointer; }

/* ---------- PipelineBoard ---------- */
.lf-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: var(--space-4); overflow-x: auto; padding-bottom: var(--space-2); }
.lf-lane { display: grid; grid-template-rows: auto 1fr; gap: var(--space-3); min-width: 0; }
.lf-lane__head { position: relative; display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-1); height: 28px; }
.lf-lane__node { width: 12px; height: 12px; border-radius: var(--radius-full); border: 2px solid var(--current); background: var(--paper); position: relative; z-index: 1; flex: none; }
.lf-lane__link { position: absolute; left: 16px; right: calc(-1 * var(--space-4) - 4px); top: 13px; height: 2px; background: var(--current); opacity: .35; }
.lf-lane__head .label { position: relative; z-index: 1; background: var(--paper); padding-right: var(--space-2); }
.lf-lane__count { position: relative; z-index: 1; margin-left: auto; background: var(--paper); padding-left: var(--space-2); color: var(--ink-muted); }
.lf-lane__cards { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-2); background: var(--paper-sunken); border-radius: var(--radius-md); min-height: 120px; }
.lf-deal { width: 100%; display: grid; gap: 2px; text-align: left; padding: var(--space-3); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); font-family: var(--font-sans); cursor: pointer; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-fast); }
.lf-deal:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); border-color: var(--line-strong); }
.lf-deal__value { color: var(--current); margin-top: var(--space-1); }

/* ---------- Timeline ---------- */
.lf-timeline { position: relative; display: grid; gap: var(--space-4); }
.lf-timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.lf-tl { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); }
.lf-tl__node { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--paper-raised); border: 2px solid var(--line-strong); color: var(--ink-muted); }
.lf-tl--agent .lf-tl__node { border-color: var(--ember); color: var(--ember-ink); }
.lf-tl--human .lf-tl__node { border-color: var(--current); color: var(--current); }
.lf-tl__body { display: grid; gap: 2px; padding-top: 3px; }

/* ---------- SideNav ---------- */
.lf-sidenav { display: flex; flex-direction: column; gap: var(--space-6); width: 240px; min-height: 100%; padding: var(--space-6) var(--space-3); background: var(--night); color: var(--on-night); }
.lf-sidenav__brand { display: grid; gap: var(--space-1); padding: 0 var(--space-3); }
.lf-sidenav__ws { color: var(--on-night-muted); font-size: 12px; }
.lf-sidenav ul { display: grid; gap: 2px; }
.lf-sidenav__item { position: relative; display: flex; align-items: center; gap: var(--space-3); height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-md); color: var(--on-night-muted); text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast); }
.lf-sidenav__item:hover { color: var(--on-night); background: rgba(239, 233, 221, 0.06); }
.lf-sidenav__item.is-active { color: var(--on-night); background: rgba(76, 192, 173, 0.14); }
.lf-sidenav__item.is-active::before { content: ""; position: absolute; left: -6px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: var(--radius-full); background: var(--ember); }
.lf-sidenav__item.is-active svg { color: var(--current-on-night); }
.lf-sidenav__count { margin-left: auto; font-size: 12px; color: var(--on-night-muted); }
.lf-sidenav__foot { margin-top: auto; padding: 0 var(--space-3); }

/* ---------- NavBar ---------- */
.lf-navbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--z-nav); display: flex; align-items: center; gap: var(--space-8); height: var(--nav-height); padding: 0 var(--space-6); background: var(--paper-glass); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lf-navbar__home { text-decoration: none; display: inline-flex; }
.lf-navbar__links { display: flex; gap: var(--space-6); }
.lf-navbar__links a { color: var(--ink-muted); text-decoration: none; font-weight: 500; }
.lf-navbar__links a:hover, .lf-navbar__links a[aria-current="page"] { color: var(--ink); }
.lf-navbar__links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.lf-navbar__actions { margin-left: auto; display: flex; gap: var(--space-2); }
@media (max-width: 760px) { .lf-navbar nav { display: none; } .lf-navbar { padding: 0 var(--space-4); gap: var(--space-4); } }
@media (max-width: 600px) { .lf-navbar__actions .lf-btn--ghost { display: none; } }
@media (max-width: 480px) { .lf-navbar__actions .lf-btn--primary { display: none; } .lf-navbar__actions { margin-left: auto; } }

/* ---------- Page layout primitives ---------- */
.lf-wrap { max-width: var(--content-max-width); margin-inline: auto; padding-left: max(var(--space-6), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-6), env(safe-area-inset-right, 0px)); }
.lf-band { padding-block: var(--space-24); }
.lf-band--tight { padding-block: var(--space-12); }
.lf-spine { position: relative; padding-left: 56px; }
.lf-spine::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: var(--line-strong); }
.lf-spine .lf-sechead { position: relative; }
.lf-spine .lf-sechead .lf-eyebrow__node { position: absolute; left: -51px; top: 3px; width: 14px; height: 14px; background: var(--paper); color: var(--current); }
.lf-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.lf-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: start; }
.lf-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.lf-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.lf-code { margin: 0; padding: var(--space-4); background: var(--paper-sunken); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); font: 400 13px/20px var(--font-mono); overflow-x: auto; tab-size: 2; }
.lf-skip { position: absolute; left: var(--space-4); top: -60px; z-index: var(--z-toast); padding: var(--space-2) var(--space-4); background: var(--ink); color: var(--paper); border-radius: var(--radius-md); }
.lf-skip:focus { top: var(--space-2); }
@media (max-width: 860px) {
  .lf-band { padding-block: var(--space-16); }
  .lf-grid-3, .lf-split { grid-template-columns: 1fr; }
  .lf-spine { padding-left: 32px; }
  .lf-spine::before { left: 5px; }
  .lf-spine .lf-sechead .lf-eyebrow__node { left: -33px; }
  .lf-wrap { padding-left: max(var(--space-4), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-4), env(safe-area-inset-right, 0px)); }
}

/* ---------- LanguageSwitcher ---------- */
.lf-lang { position: relative; }
.lf-lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 var(--space-3); border-radius: var(--radius-md); color: var(--ink-muted); cursor: pointer; list-style: none; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.lf-lang__btn::-webkit-details-marker { display: none; }
.lf-lang__btn:hover, .lf-lang[open] .lf-lang__btn { background: var(--paper-sunken); color: var(--ink); }
.lf-on-night .lf-lang__btn:hover, .lf-on-night[open] .lf-lang__btn { background: rgba(239, 233, 221, 0.08); }
.lf-lang__chev { transition: transform var(--dur-base) var(--ease-out); }
.lf-lang[open] .lf-lang__chev { transform: rotate(180deg); }
.lf-lang__menu { position: absolute; top: calc(100% + 6px); z-index: var(--z-modal); min-width: 220px; padding: var(--space-1); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-float); display: grid; gap: 2px; animation: lf-rise var(--dur-base) var(--ease-out); }
.lf-lang--end .lf-lang__menu { right: 0; }
.lf-lang--start .lf-lang__menu { left: 0; }
.lf-lang--up .lf-lang__menu { top: auto; bottom: calc(100% + 6px); left: 0; }
.lf-lang__item { display: grid; grid-template-columns: 1fr auto 16px; align-items: center; gap: var(--space-3); min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font: 500 15px/20px var(--font-sans); }
a.lf-lang__item:hover { background: var(--paper-sunken); color: var(--ink); }
.lf-lang__item.is-current { background: var(--current-tint); }
.lf-lang__check { color: var(--current); grid-column: 3; }
.lf-lang__code { color: var(--ink-faint); font-size: 12px; grid-column: 2; }
.lf-lang__item.is-off { color: var(--ink-faint); cursor: not-allowed; grid-template-columns: 1fr auto auto; }
.lf-lang__soon { grid-column: 3; color: var(--ink-faint); }
.lf-lang__item.is-off .lf-lang__code { display: none; }
