/*
 * INSOVANT landing page (site.js renders it; everything is namespaced under .lp).
 *
 * A finance brand page in the logo's evergreen: a cool off-white canvas, deep forest ink, and the
 * logo green (#1c5232) as the single accent for actions and data. One typeface (Manrope, also the
 * app's heading face). Shape rule: buttons and chips are pills, cards and panels are 16px, inner
 * elements follow the nested-radius rule. Depth comes from hairlines and one soft tinted shadow.
 */
:root {
  color-scheme: light;
  --lp-page: #f4f6f4;
  --lp-surface: #fbfcfb;
  --lp-raised: #ffffff;
  --lp-tint: #e6efe8;
  --lp-tint-2: #d2e3d6;
  --lp-line: #dde5df;
  --lp-line-strong: #c4d1c8;
  --lp-ink: #102a1c;
  --lp-text: #3f5247;
  --lp-muted: #5f7166;
  --lp-ghost: rgba(16, 42, 28, 0.2);       /* tagline words before they light up */
  --lp-brand: #1c5232;                      /* logo green: buttons, active tabs, data */
  --lp-brand-hover: #163f27;
  --lp-on-brand: #f4f8f5;                   /* text on a brand fill */
  --lp-brand-soft: #6c9a7b;                 /* P&L subtotals */
  --lp-brand-strong: #0f2a1b;               /* hovered totals, tooltips */
  --lp-cost: #b5c5ba;
  --lp-cost-on: #8fa597;
  --lp-soft-on: #4f8462;
  --lp-tip-bg: #0f2a1b;
  --lp-tip-fg: #eaf3ec;
  --lp-panel: #0f2a1b;                      /* final call-to-action block */
  --lp-panel-head: #f1f7f2;
  --lp-panel-text: #c9dccf;
  --lp-panel-btn: #f4f8f5;
  --lp-panel-btn-ink: #0f2a1b;
  --lp-chip-on-sub: #cfe2d4;
  --lp-nav-bg: rgba(251, 252, 251, 0.8);
  --lp-sheet-bg: rgba(244, 246, 244, 0.96);
  --lp-shadow: 0 1px 2px rgba(16, 42, 28, 0.04), 0 12px 32px -12px rgba(16, 42, 28, 0.14);
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lp-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --lp-max: 1200px;
}

/* Dark theme: deep forest blacks, and the logo green lifted so it keeps contrast. site.js sets
   data-lp-theme from the saved choice or the device setting. */
:root[data-lp-theme="dark"] {
  color-scheme: dark;
  /* "Evergreen at night": green-black canvas, bone headings, luminous jade accent. */
  --lp-page: #070d09;
  --lp-surface: #0b130e;
  --lp-raised: #101a14;
  --lp-tint: #15241b;
  --lp-tint-2: #1e3527;
  --lp-line: #1b2b21;
  --lp-line-strong: #2a4434;
  --lp-ink: #f1eee4;
  --lp-text: #b4c4b8;
  --lp-muted: #869a8c;
  --lp-ghost: rgba(241, 238, 228, 0.16);
  --lp-brand: #58d68d;
  --lp-brand-hover: #74e0a2;
  --lp-on-brand: #04130a;
  --lp-brand-soft: #2f8a57;
  --lp-brand-strong: #a6ecc4;
  --lp-cost: #2b3f33;
  --lp-cost-on: #426352;
  --lp-soft-on: #46b073;
  --lp-tip-bg: #f1eee4;
  --lp-tip-fg: #070d09;
  --lp-panel: #58d68d;                      /* the final call to action turns to solid jade */
  --lp-panel-head: #04130a;
  --lp-panel-text: #133722;
  --lp-panel-btn: #04130a;
  --lp-panel-btn-ink: #f1eee4;
  --lp-chip-on-sub: #1d4a2f;
  --lp-nav-bg: rgba(11, 19, 14, 0.78);
  --lp-sheet-bg: rgba(7, 13, 9, 0.96);
  --lp-shadow: inset 0 1px 0 rgba(241, 238, 228, 0.05), 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 48px -24px rgba(0, 0, 0, 0.85);
}

body.lp-body { background: var(--lp-page); }
.lp {
  background: var(--lp-page);
  color: var(--lp-text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp h1, .lp h2, .lp h3, .lp h4 { font-family: 'Manrope', system-ui, sans-serif; color: var(--lp-ink); margin: 0; text-wrap: balance; letter-spacing: -0.025em; }
.lp p { margin: 0; text-wrap: pretty; }
:where(.lp) button { font: inherit; color: inherit; }
:where(.lp) a { color: inherit; text-decoration: none; }
.lp :focus-visible { outline: 2px solid var(--lp-brand); outline-offset: 3px; border-radius: 8px; }
.lp-wrap { width: min(100% - 48px, var(--lp-max)); margin-inline: auto; }

/* Named text styles (Tailwind scale steps) */
.lp .heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; }
.lp .heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; }
.lp .heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.lp .heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.lp .title-3 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--lp-ink); }
.lp .title-4 { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--lp-ink); }
.lp .body-lead { font-size: 18px; line-height: 28px; color: var(--lp-text); }
.lp .body-3 { font-size: 16px; line-height: 24px; }
.lp .body-6 { font-size: 14px; line-height: 20px; }
.lp .caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--lp-muted); }
.lp .eyebrow-lp { font-size: 12px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--lp-brand); }

/* Buttons */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  padding: 12px 24px; border-radius: 9999px; border: 1px solid transparent; cursor: pointer;
  font-size: 16px; line-height: 24px; font-weight: 600;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 140ms var(--lp-ease-out);
}
.lp-btn:active { transform: scale(0.97); }
.lp .lp-btn-primary { background: var(--lp-brand); color: var(--lp-on-brand); }
.lp .lp-btn-quiet { background: var(--lp-raised); color: var(--lp-ink); border-color: var(--lp-line-strong); }
.lp .lp-btn-light { background: var(--lp-panel-btn); color: var(--lp-panel-btn-ink); }
.lp-btn-sm { padding: 8px 16px; font-size: 14px; line-height: 20px; }
.lp-link { color: var(--lp-text); font-weight: 600; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .lp .lp-btn-primary:hover { background: var(--lp-brand-hover); }
  .lp .lp-btn-quiet:hover { border-color: var(--lp-brand-soft); }
  .lp .lp-btn-light:hover { filter: brightness(1.06); }
  .lp-link:hover { color: var(--lp-brand); }
}

.lp-skip { position: absolute; left: 16px; top: -64px; z-index: 30; background: var(--lp-brand); color: var(--lp-on-brand); border: 0; padding: 8px 16px; border-radius: 9999px; font-weight: 600; }
.lp-skip:focus { top: 16px; }

/* Brand lockup: tree mark + wide tracked wordmark, as in the logo */
.lp-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--lp-ink); }
.lp-brand img { width: 32px; height: 32px; border-radius: 9999px; display: block; }
.lp-brand b { font-weight: 600; font-size: 16px; letter-spacing: 0.28em; }

/* Navigation: compact floating bar over a blur */
.lp-nav { position: fixed; z-index: 20; top: 16px; left: 50%; transform: translateX(-50%); width: min(100% - 32px, 1160px); }
.lp-nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; padding: 0 12px 0 16px;
  background: var(--lp-nav-bg); border: 1px solid var(--lp-line); border-radius: 9999px; box-shadow: var(--lp-shadow);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.lp-nav-links { display: flex; gap: 4px; }
.lp-nav-links button { background: none; border: 0; padding: 8px 12px; border-radius: 9999px; cursor: pointer; color: var(--lp-text); font-size: 14px; line-height: 20px; font-weight: 600; transition: color 200ms ease, background-color 200ms ease; }
.lp-nav-actions { display: flex; align-items: center; gap: 8px; }
.lp-nav-actions .lp-link { font-size: 14px; padding: 8px 12px; }
.lp-menu-btn { display: none; width: 44px; height: 44px; border-radius: 9999px; border: 1px solid var(--lp-line-strong); background: var(--lp-raised); cursor: pointer; position: relative; }
.lp-menu-btn i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--lp-ink); border-radius: 2px; transition: transform 300ms var(--lp-ease); }
.lp-menu-btn i:first-child { top: 17px; }
.lp-menu-btn i:last-child { top: 25px; }
.lp-menu-btn[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.lp-menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (hover: hover) and (pointer: fine) { .lp-nav-links button:hover { color: var(--lp-brand); background: var(--lp-tint); } }

.lp-sheet {
  position: fixed; inset: 0; z-index: 19; padding: 104px 24px 32px; display: flex; flex-direction: column; gap: 8px;
  background: var(--lp-sheet-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; pointer-events: none; transition: opacity 300ms var(--lp-ease);
}
.lp-sheet.is-open { opacity: 1; pointer-events: auto; }
.lp-sheet > * { opacity: 0; transform: translateY(24px); transition: opacity 400ms var(--lp-ease), transform 400ms var(--lp-ease); }
.lp-sheet.is-open > * { opacity: 1; transform: none; }
.lp-sheet button.lp-sheet-link { background: none; border: 0; text-align: left; padding: 12px 0; font-size: 30px; line-height: 36px; font-weight: 600; color: var(--lp-ink); border-bottom: 1px solid var(--lp-line); cursor: pointer; }
.lp-sheet .lp-btn { margin-top: 16px; }

/* Hero: split, copy left, live P&L card right */
.lp-hero { padding: 144px 0 80px; }
.lp-hero .lp-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.lp-hero h1 { margin-top: 16px; max-width: 680px; }
.lp-hero h1 em { font-style: normal; color: var(--lp-brand); }
.lp-hero .body-lead { margin-top: 24px; max-width: 520px; }
.lp-hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.lp-pnl { background: var(--lp-raised); border: 1px solid var(--lp-line); border-radius: 16px; box-shadow: var(--lp-shadow); padding: 24px; }
.lp-pnl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.lp-pnl-head .value { margin-top: 4px; font-size: 36px; line-height: 40px; font-weight: 600; color: var(--lp-ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lp-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 9999px; background: var(--lp-tint); color: var(--lp-brand); font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.lp-chart { position: relative; margin-top: 16px; touch-action: none; cursor: crosshair; outline-offset: 4px; }
.lp-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.lp-chart .area { fill: var(--lp-tint); }
.lp-chart .line { fill: none; stroke: var(--lp-brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lp-chart .grid { stroke: var(--lp-line); stroke-width: 1; }
.lp-chart .mlabel { fill: var(--lp-muted); font-size: 11px; font-family: 'Manrope', system-ui, sans-serif; font-weight: 600; }
.lp-chart .cursor { stroke: var(--lp-brand-strong); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity 150ms ease; }
.lp-chart .dot { fill: var(--lp-raised); stroke: var(--lp-brand); stroke-width: 2; opacity: 0; transition: opacity 150ms ease; }
.lp-chart.scrubbing .cursor, .lp-chart.scrubbing .dot { opacity: 1; }
.lp-tip { position: absolute; top: 0; left: 0; pointer-events: none; background: var(--lp-tip-bg); color: var(--lp-tip-fg); border-radius: 8px; padding: 4px 8px; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 150ms ease; font-variant-numeric: tabular-nums; }
.lp-chart.scrubbing .lp-tip { opacity: 1; }
.lp-chart-hint { margin-top: 8px; }

.lp-fall { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--lp-line); }
.lp-fall-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.lp-fall-read { font-size: 14px; line-height: 20px; color: var(--lp-text); font-variant-numeric: tabular-nums; min-height: 20px; text-align: right; }
.lp-fall-read b { color: var(--lp-ink); }
.lp-bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; height: 148px; margin-top: 16px; }
.lp-bar { position: relative; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 4px; }
.lp-bar span { position: absolute; left: 0; right: 0; border-radius: 4px; transform-origin: bottom; transition: transform 700ms var(--lp-ease), opacity 700ms var(--lp-ease), background-color 200ms ease; }
.lp-bar.total span { background: var(--lp-brand); }
.lp-bar.sub span { background: var(--lp-brand-soft); }
.lp-bar.cost span { background: var(--lp-cost); }
.lp-bars.pending .lp-bar span { transform: scaleY(0.04); opacity: 0.4; }
.lp-bar.on.cost span { background: var(--lp-cost-on); }
.lp-bar.on.sub span { background: var(--lp-soft-on); }
.lp-bar.on.total span { background: var(--lp-brand-strong); }
.lp-bar-labels { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.lp-bar-labels span { font-size: 11px; line-height: 14px; color: var(--lp-muted); text-align: center; font-weight: 500; }
.lp-bar-labels b { font-weight: 500; }
.lp-bar-labels .lp-l-tiny { display: none; }
.lp-pnl-foot { margin-top: 20px; }

/* Facts row */
.lp-facts { border-block: 1px solid var(--lp-line); background: var(--lp-surface); }
.lp-facts .lp-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-fact { padding: 32px 24px; border-left: 1px solid var(--lp-line); }
.lp-fact:first-child { border-left: 0; padding-left: 0; }
.lp-fact b { display: block; color: var(--lp-ink); font-size: 20px; line-height: 28px; font-weight: 600; }
.lp-fact span { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; }

/* Sections */
.lp-section { padding: 96px 0; }
.lp-section-head { max-width: 680px; }
.lp-section-head .body-lead { margin-top: 16px; }
.lp-section-head.center { margin-inline: auto; text-align: center; }
.lp-section-head .eyebrow-lp + h2 { margin-top: 12px; }

.lp-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 9999px; background: var(--lp-raised); border: 1px solid var(--lp-line); }
.lp-tab { background: none; border: 0; color: var(--lp-text); padding: 8px 16px; border-radius: 9999px; cursor: pointer; font-size: 14px; line-height: 20px; font-weight: 600; transition: color 200ms ease, background-color 200ms ease; }
.lp-tab[aria-selected="true"] { background: var(--lp-brand); color: var(--lp-on-brand); }
@media (hover: hover) and (pointer: fine) { .lp-tab:not([aria-selected="true"]):hover { color: var(--lp-brand); background: var(--lp-tint); } }

/* KPI coverage */
.lp-cover { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; margin-top: 32px; align-items: stretch; }
.lp-ring-card, .lp-areas-card { background: var(--lp-raised); border: 1px solid var(--lp-line); border-radius: 16px; padding: 32px; }
.lp-ring-card { display: grid; place-items: center; align-content: center; text-align: center; }
.lp-ring { position: relative; width: min(100%, 260px); aspect-ratio: 1; }
.lp-ring svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.lp-ring circle { fill: none; stroke-width: 14; transition: stroke 400ms var(--lp-ease), opacity 200ms ease; }
.lp-ring .seg-off { stroke: var(--lp-tint-2); }
.lp-ring .seg-on { stroke: var(--lp-brand); }
.lp-ring .dim { opacity: 0.3; }
.lp-ring-center { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; }
.lp-ring-center b { font-size: 48px; line-height: 48px; font-weight: 600; color: var(--lp-ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.lp-ring-center span { font-size: 14px; line-height: 20px; }
.lp-ring-note { margin-top: 24px; max-width: 32ch; }
.lp-area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lp-area-row { width: 100%; display: grid; grid-template-columns: 120px 1fr 64px; gap: 16px; align-items: center; padding: 12px; border-radius: 12px; border: 0; background: none; cursor: pointer; text-align: left; transition: background-color 200ms ease; }
.lp-area-row b { font-weight: 600; color: var(--lp-ink); font-size: 14px; line-height: 20px; }
.lp-area-row[aria-expanded="true"] { background: var(--lp-tint); }
@media (hover: hover) and (pointer: fine) { .lp-area-row:hover { background: var(--lp-tint); } }
.lp-area-row .n { text-align: right; font-weight: 600; color: var(--lp-ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.lp-meter { display: flex; gap: 3px; height: 8px; }
.lp-meter i { flex: 1; border-radius: 2px; background: var(--lp-tint-2); transition: background-color 300ms var(--lp-ease-out); }
.lp-meter i.on { background: var(--lp-brand); }
.lp-area-detail { margin: 4px 12px 12px; padding: 12px 16px; border-radius: 12px; background: var(--lp-surface); border: 1px solid var(--lp-line); font-size: 14px; line-height: 20px; }
.lp-area-detail ul { margin: 8px 0 0; padding-left: 16px; display: grid; gap: 4px; }
.lp-area-detail b { color: var(--lp-ink); font-weight: 600; }

/* Messy to clean: a spreadsheet card */
.lp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.lp-split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.lp-sheetcard { background: var(--lp-raised); border: 1px solid var(--lp-line); border-radius: 16px; box-shadow: var(--lp-shadow); overflow: hidden; }
.lp-sheetcard-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--lp-line); background: var(--lp-surface); }
.lp-sheetcard-bar .file { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--lp-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lp-sheetcard-bar .file i { color: var(--lp-brand); font-size: 18px; flex: none; }
.lp-seg { display: inline-flex; padding: 4px; border-radius: 9999px; border: 1px solid var(--lp-line); background: var(--lp-raised); flex: none; }
.lp-seg button { background: none; border: 0; padding: 4px 12px; border-radius: 9999px; cursor: pointer; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--lp-text); transition: color 200ms ease, background-color 200ms ease; }
.lp-seg button[aria-pressed="true"] { background: var(--lp-brand); color: var(--lp-on-brand); }
.lp-rows { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.lp-rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 12px 16px; }
.lp-rows li + li { border-top: 1px solid var(--lp-line); }
.lp-cell { position: relative; display: block; min-height: 20px; }
.lp-cell > span { position: absolute; inset: 0; transition: opacity 220ms var(--lp-ease-out), transform 220ms var(--lp-ease-out); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-cell .raw { color: var(--lp-text); }
.lp-cell .clean { color: var(--lp-ink); font-weight: 600; opacity: 0; transform: translateY(4px); }
.lp-sheetcard[data-mode="clean"] .lp-cell .raw { opacity: 0; transform: translateY(-4px); }
.lp-sheetcard[data-mode="clean"] .lp-cell .clean { opacity: 1; transform: none; }
.lp-rows .key .raw, .lp-rows .key .clean { color: var(--lp-muted); font-weight: 500; }
.lp-sheetcard-note { padding: 12px 16px; border-top: 1px solid var(--lp-line); }

/* Product tour */
.lp-tour { margin-top: 32px; }
.lp-tour-copy { margin-top: 16px; min-height: 24px; }
.lp-frame { margin-top: 24px; background: var(--lp-raised); border: 1px solid var(--lp-line); border-radius: 16px; box-shadow: var(--lp-shadow); padding: 8px; }
.lp-frame-inner { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1199 / 823; background: var(--lp-surface); }
.lp-frame-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0; transition: opacity 300ms var(--lp-ease-out); }
.lp-frame-inner img.on { opacity: 1; }

/* KPI library */
.lp-lib { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin-top: 48px; align-items: start; }
.lp-areas { display: grid; gap: 4px; }
.lp-area { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: none; border: 0; border-radius: 9999px; padding: 8px 16px; cursor: pointer; color: var(--lp-text); font-size: 14px; line-height: 20px; font-weight: 600; text-align: left; transition: color 200ms ease, background-color 200ms ease; white-space: nowrap; }
.lp-area span { color: var(--lp-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.lp-area[aria-selected="true"] { color: var(--lp-on-brand); background: var(--lp-brand); }
.lp-area[aria-selected="true"] span { color: var(--lp-on-brand); opacity: 0.75; }
@media (hover: hover) and (pointer: fine) { .lp-area:not([aria-selected="true"]):hover { color: var(--lp-brand); background: var(--lp-tint); } }
.lp-libcard { background: var(--lp-raised); border: 1px solid var(--lp-line); border-radius: 16px; overflow: hidden; min-width: 0; }
.lp-search { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--lp-line); background: var(--lp-surface); }
.lp-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lp-search i { color: var(--lp-muted); font-size: 18px; }
.lp .lp-search input { flex: 1; -webkit-appearance: none; appearance: none; box-shadow: none; min-width: 0; background: var(--lp-raised); border: 1px solid var(--lp-line-strong); border-radius: 9999px; padding: 8px 16px; color: var(--lp-ink); font: 500 14px/20px 'Manrope', system-ui, sans-serif; }
.lp .lp-search input::placeholder { color: var(--lp-muted); }
.lp .lp-search input:focus-visible { outline: 2px solid var(--lp-brand); outline-offset: 1px; }
.lp-kpi-list { margin: 0; padding: 8px 0; list-style: none; max-height: 456px; overflow: auto; }
.lp-kpi-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 20px; }
.lp-kpi-list li + li { border-top: 1px solid var(--lp-line); }
.lp-kpi-list .nm { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--lp-ink); }
.lp-kpi-list .un { align-self: center; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--lp-brand); background: var(--lp-tint); padding: 2px 8px; border-radius: 9999px; }
.lp-kpi-list .fx { grid-column: 1 / -1; font-size: 14px; line-height: 20px; color: var(--lp-text); }
.lp-kpi-empty { padding: 24px 20px; color: var(--lp-muted); font-size: 14px; }

/* Tagline reveal */
.lp-tagline { padding: 128px 0; background: var(--lp-surface); border-block: 1px solid var(--lp-line); }
.lp-tagline p { max-width: 880px; font-size: 48px; line-height: 56px; font-weight: 600; letter-spacing: -0.025em; }
.lp-tagline .w { color: var(--lp-ghost); transition: color 500ms var(--lp-ease); }
.lp-tagline .w.on { color: var(--lp-ink); }
.lp-tagline .w.accent.on { color: var(--lp-brand); }

/* Market Analyst */
.lp-sources { background: var(--lp-raised); border: 1px solid var(--lp-line); border-radius: 16px; overflow: hidden; }
.lp-sources ul { list-style: none; margin: 0; padding: 0; }
.lp-sources li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 20px; transition: background-color 200ms ease; }
.lp-sources li + li { border-top: 1px solid var(--lp-line); }
.lp-sources li b { color: var(--lp-ink); font-weight: 600; }
.lp-sources li span { font-size: 14px; line-height: 20px; }
@media (hover: hover) and (pointer: fine) { .lp-sources li:hover { background: var(--lp-tint); } }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.lp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 9999px; background: var(--lp-raised); border: 1px solid var(--lp-line-strong); color: var(--lp-ink); font-size: 14px; line-height: 20px; font-weight: 600; }
.lp-chip i { color: var(--lp-brand); }

/* FAQ */
.lp-faq { max-width: 760px; margin: 48px auto 0; border-top: 1px solid var(--lp-line-strong); }
.lp-faq details { border-bottom: 1px solid var(--lp-line-strong); }
.lp-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; color: var(--lp-ink); font-size: 18px; line-height: 28px; font-weight: 600; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary i { flex: none; font-size: 20px; color: var(--lp-brand); transition: transform 300ms var(--lp-ease); }
.lp-faq details[open] summary i { transform: rotate(45deg); }
.lp-faq details p { padding: 0 48px 24px 0; }

/* Final CTA: the one brand-colour block on the page */
.lp-final { padding: 0 0 96px; }
.lp-final-card { background: var(--lp-panel); color: var(--lp-panel-text); border-radius: 24px; padding: 80px 32px; text-align: center; }
.lp-final-card img { width: 48px; height: 48px; border-radius: 9999px; margin: 0 auto 24px; display: block; }
.lp-final-card h2 { color: var(--lp-panel-head); max-width: 680px; margin: 0 auto; }
.lp-final-card .body-lead { color: var(--lp-panel-text); max-width: 560px; margin: 16px auto 0; }
.lp-final-card .lp-btn { margin-top: 32px; }

.lp-footer { border-top: 1px solid var(--lp-line); padding: 48px 0 32px; background: var(--lp-surface); }
.lp-footer .lp-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.lp-footer h4 { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.lp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 20px; }
.lp-footer ul button, .lp-footer ul a { background: none; border: 0; padding: 0; cursor: pointer; color: var(--lp-text); transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .lp-footer ul button:hover, .lp-footer ul a:hover { color: var(--lp-brand); } }
.lp-footer .body-6 { margin-top: 12px; max-width: 36ch; color: var(--lp-text); }
.lp-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--lp-line); grid-column: 1 / -1; }

/* Scroll reveal: rise and fade in once */
.lp [data-lp-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--lp-ease), transform 700ms var(--lp-ease); }
.lp [data-lp-reveal].is-in { opacity: 1; transform: none; }
.lp .lp-hero [data-lp-reveal] { transform: translateY(16px); transition-duration: 600ms; }

/* Tablet */
@media (max-width: 1023px) {
  .lp-nav-links { display: none; }
  .lp-menu-btn { display: inline-block; }
  .lp-nav-actions .lp-link, .lp-nav-actions .lp-btn { display: none; }
  .lp-hero { padding-top: 120px; }
  .lp-hero .lp-wrap, .lp-cover, .lp-split, .lp-split.reverse { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lp-split.reverse .lp-sources { order: 2; }
  .lp-lib { grid-template-columns: minmax(0, 1fr); }
  .lp-areas { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; }
  .lp-facts .lp-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .lp-fact:nth-child(n+3) { border-top: 1px solid var(--lp-line); }
}

/* Phone */
@media (max-width: 639px) {
  .lp-wrap { width: min(100% - 32px, var(--lp-max)); }
  .lp .heading-1 { font-size: 36px; line-height: 40px; }
  .lp .heading-2 { font-size: 30px; line-height: 36px; }
  .lp .body-lead { font-size: 16px; line-height: 24px; }
  .lp-hero { padding: 112px 0 56px; }
  .lp-section { padding: 64px 0; }
  .lp-pnl { padding: 16px; }
  .lp-pnl-head .value { font-size: 30px; line-height: 36px; }
  .lp-bars { height: 112px; gap: 4px; }
  .lp-bar-labels { gap: 4px; }
  .lp-bar-labels span { font-size: 10px; line-height: 12px; }
  .lp-ring-card, .lp-areas-card { padding: 20px; }
  .lp-area-row { grid-template-columns: 96px 1fr 48px; gap: 12px; padding: 12px 8px; }
  .lp-facts .lp-wrap { grid-template-columns: 1fr; }
  .lp-fact, .lp-fact:nth-child(3) { border-left: 0; padding: 20px 0; }
  .lp-fact + .lp-fact { border-top: 1px solid var(--lp-line); }
  .lp-rows li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; }
  .lp-sources li { grid-template-columns: 1fr; gap: 4px; }
  .lp-tagline { padding: 80px 0; }
  .lp-tagline p { font-size: 30px; line-height: 36px; }
  .lp-final-card { padding: 56px 20px; border-radius: 16px; }
  .lp-footer .lp-wrap { grid-template-columns: 1fr 1fr; }
  .lp-footer .lp-wrap > div:first-child { grid-column: 1 / -1; }
  .lp-faq details p { padding-right: 0; }
}

/* Reduced motion: no movement, final state shown */
@media (prefers-reduced-motion: reduce) {
  .lp [data-lp-reveal], .lp .lp-hero [data-lp-reveal] { opacity: 1; transform: none; transition: none; }
  .lp-bars.pending .lp-bar span { transform: none; opacity: 1; }
  .lp-bar span, .lp-cell > span, .lp-sheet > *, .lp-frame-inner img { transition: opacity 150ms ease; transform: none !important; }
  .lp-tagline .w { color: var(--lp-ink); transition: none; }
  .lp-tagline .w.accent { color: var(--lp-brand); }
  .lp-menu-btn i, .lp-faq summary i { transition: none; }
}

/* index.html forces every input dark with !important (an earlier dark retheme); the landing page
   is light, so its search field restores its own colours just as forcefully. */
.lp .lp-search input { background: var(--lp-raised) !important; color: var(--lp-ink) !important; border-color: var(--lp-line-strong) !important; border-radius: 9999px !important; }

/* Theme toggle in the nav bar */
.lp-theme { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 9999px; border: 1px solid var(--lp-line-strong); background: var(--lp-raised); color: var(--lp-ink); cursor: pointer; font-size: 18px; transition: border-color 200ms ease, transform 140ms var(--lp-ease-out); }
.lp-theme:active { transform: scale(0.94); }
.lp-theme .ph-sun { display: none; }
:root[data-lp-theme="dark"] .lp-theme .ph-sun { display: block; }
:root[data-lp-theme="dark"] .lp-theme .ph-moon { display: none; }
@media (hover: hover) and (pointer: fine) { .lp-theme:hover { border-color: var(--lp-brand); } }
/* Product screenshots are light UI; a hairline keeps them from glowing on the dark canvas. */
:root[data-lp-theme="dark"] .lp-frame-inner img { filter: brightness(0.9); }
:root[data-lp-theme="dark"] .lp-brand img, :root[data-lp-theme="dark"] .lp-final-card img { box-shadow: 0 0 0 1px var(--lp-line-strong); }

/* Fixed nav: jumping to a section must not hide its heading under the bar. */
.lp section[id] { scroll-margin-top: 96px; }
.lp .lp-tour-copy, .lp .lp-ring-note { color: var(--lp-text); }

/* Diagnosis: questions a dashboard leaves to you, answered from real KPIs */
.lp-diag { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; margin-top: 48px; align-items: start; }
.lp-questions { display: grid; gap: 4px; }
.lp-q { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-radius: 12px; padding: 16px; cursor: pointer;
  font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; color: var(--lp-muted); transition: color 200ms ease, background-color 200ms ease; }
.lp-q i { flex: none; font-size: 18px; color: var(--lp-brand); opacity: 0; transform: translateX(-8px); transition: opacity 200ms ease, transform 300ms var(--lp-ease-out); }
.lp-q[aria-selected="true"] { color: var(--lp-ink); background: var(--lp-raised); box-shadow: var(--lp-shadow); }
.lp-q[aria-selected="true"] i { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .lp-q:not([aria-selected="true"]):hover { color: var(--lp-ink); background: var(--lp-tint); } }
.lp-answer { background: var(--lp-raised); border: 1px solid var(--lp-line); border-radius: 16px; box-shadow: var(--lp-shadow); padding: 32px; min-height: 360px; position: sticky; top: 104px; }
.lp-answer-in { opacity: 0; transform: translateY(8px); transition: opacity 240ms var(--lp-ease-out), transform 240ms var(--lp-ease-out); }
.lp-answer-in.on { opacity: 1; transform: none; }
.lp-answer-q { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--lp-brand); }
.lp-answer-a { margin-top: 8px; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--lp-ink); letter-spacing: -0.015em; }
.lp-answer-note { margin-top: 32px; }
.lp-split-bar { display: flex; gap: 3px; height: 40px; margin-top: 32px; border-radius: 8px; overflow: hidden; }
.lp-split-bar span { transform-origin: left; transform: scaleX(0.02); opacity: 0.3; transition: transform 700ms var(--lp-ease), opacity 700ms var(--lp-ease); transition-delay: calc(var(--i) * 80ms); }
.lp-split-bar .cost { background: var(--lp-cost); }
.lp-split-bar .keep { background: var(--lp-brand); }
.lp-answer-in.on .lp-split-bar span { transform: none; opacity: 1; }
.lp-split-legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 24px; }
.lp-split-legend li { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; }
.lp-split-legend li b { margin-left: auto; color: var(--lp-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-split-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--lp-cost); flex: none; }
.lp-split-legend .keep i { background: var(--lp-brand); }
.lp-split-legend .keep { color: var(--lp-ink); font-weight: 600; }
.lp-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: end; height: 200px; margin-top: 32px; }
.lp-month { display: flex; flex-direction: column; align-items: stretch; gap: 8px; height: 100%; justify-content: flex-end; text-align: center; }
.lp-month b { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--lp-ink); font-variant-numeric: tabular-nums; }
.lp-month .col { display: block; height: calc(var(--h) * 140px); border-radius: 8px 8px 4px 4px; background: var(--lp-cost); transform-origin: bottom; transform: scaleY(0.04); transition: transform 700ms var(--lp-ease); transition-delay: calc(var(--i) * 90ms); }
.lp-month.last .col { background: var(--lp-brand); }
.lp-month em { font-style: normal; font-size: 14px; line-height: 20px; color: var(--lp-muted); }
.lp-answer-in.on .lp-month .col { transform: none; }
.lp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.lp-stat { border: 1px solid var(--lp-line); border-radius: 12px; padding: 16px; background: var(--lp-surface); opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--lp-ease), transform 400ms var(--lp-ease); transition-delay: calc(var(--i) * 60ms); }
.lp-answer-in.on .lp-stat { opacity: 1; transform: none; }
.lp-stat b { display: block; font-size: 30px; line-height: 36px; font-weight: 600; color: var(--lp-ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lp-stat span { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; }
@media (max-width: 1023px) {
  .lp-diag { grid-template-columns: minmax(0, 1fr); }
  .lp-questions { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; }
  .lp-q { font-size: 16px; line-height: 24px; padding: 12px 16px; border-radius: 9999px; }
  .lp-q i { display: none; }
  .lp-answer { position: static; min-height: 0; }
}
@media (max-width: 639px) {
  .lp-answer { padding: 20px; }
  .lp-answer-a { font-size: 20px; line-height: 28px; }
  .lp-stats { grid-template-columns: 1fr; }
  .lp-stat b { font-size: 24px; line-height: 32px; }
  .lp-months { height: 168px; gap: 12px; }
  .lp-month .col { height: calc(var(--h) * 112px); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-answer-in, .lp-split-bar span, .lp-month .col, .lp-stat { transition: opacity 150ms ease; transform: none !important; opacity: 1; }
  .lp-q i { transition: none; }
}

/* Phone refinements */
@media (max-width: 639px) {
  /* Tab rows: one line that scrolls sideways instead of wrapping inside a pill. */
  .lp-tabs { display: flex; flex-wrap: nowrap; width: 100%; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .lp-tabs::-webkit-scrollbar, .lp-questions::-webkit-scrollbar, .lp-areas::-webkit-scrollbar { display: none; }
  .lp-tab { flex: none; white-space: nowrap; scroll-snap-align: center; min-height: 44px; }
  .lp-questions, .lp-areas { scrollbar-width: none; }
  /* Cleaning card: file name on its own line, toggle full width below. */
  .lp-sheetcard-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .lp-sheetcard-bar .file { white-space: normal; word-break: break-all; }
  .lp-seg { display: flex; }
  .lp-seg button { flex: 1; min-height: 40px; font-size: 14px; }
  /* Product tour: a desktop screen is unreadable at 360px, so show it larger and let it pan. */
  .lp-frame { padding: 6px; }
  .lp-frame-inner { aspect-ratio: auto; height: 448px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .lp-frame-inner img { width: 652px; right: auto; }
  .lp-frame::after { content: "Swipe sideways to see the whole screen"; display: block; padding: 8px 4px 2px; text-align: center; font-size: 12px; line-height: 16px; color: var(--lp-muted); }
  .lp-nav-bar { height: 56px; }
  .lp-menu-btn { width: 40px; height: 40px; }
  .lp-menu-btn i { left: 12px; right: 12px; }
  .lp-menu-btn i:first-child { top: 15px; }
  .lp-menu-btn i:last-child { top: 23px; }
  .lp section[id] { scroll-margin-top: 80px; }
}

@media (max-width: 639px) {
  .lp-bar-labels span { font-size: 11px; line-height: 14px; white-space: nowrap; letter-spacing: -0.01em; }
  .lp-bar-labels .lp-l-full { display: none; }
  .lp-bar-labels .lp-l-tiny { display: inline; }
  .lp-bars { height: 128px; }
  /* Fade the edge of a sideways row that still has items beyond it. */
  .lp-tabs[data-more="end"], .lp-questions[data-more="end"], .lp-areas[data-more="end"] { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .lp-tabs[data-more="start"], .lp-questions[data-more="start"], .lp-areas[data-more="start"] { -webkit-mask-image: linear-gradient(270deg, #000 82%, transparent); mask-image: linear-gradient(270deg, #000 82%, transparent); }
  .lp-tabs[data-more="both"], .lp-questions[data-more="both"], .lp-areas[data-more="both"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
  .lp-area { min-height: 44px; }
  .lp-search input { font-size: 16px !important; }
  .lp-brand { min-height: 44px; }
  .lp-faq summary { min-height: 48px; }
  .lp-search input { min-height: 40px; }
  .lp-footer ul button, .lp-footer ul a { display: inline-flex; align-items: center; min-height: 40px; }
}
@media (max-width: 380px) { .lp-bar-labels span { font-size: 10px; } .lp-bars, .lp-bar-labels { gap: 3px; } }
@media (max-width: 400px) {
  .lp-pnl-head { flex-wrap: wrap; gap: 8px; }
  .lp-pnl-head .lp-badge { order: -1; font-size: 13px; padding: 2px 10px; }
  .lp-pnl-head > div { flex-basis: 100%; }
}
@media (max-width: 639px) { .lp-bar-labels { margin-bottom: 8px; } }
