/* ------------------------------------------------------------------
   LIME landing page and design system.

   A modern SaaS page in a light theme, set in the app's own face
   (Darker Grotesque): small precise controls, hairlines at low alpha,
   and the product itself as the imagery (the app window in the hero,
   product details in bento panels).  Teal is the one accent.

   Everything is scoped under body.lx.  Product fragments carried over
   from landing.css keep their own classes and are restyled at the end
   of this file.  The other pages take the same look from lime-pages.css.
   ------------------------------------------------------------------ */

.lx {
  --ink: #0c1211;
  --ink-2: #56625f;
  --ink-3: #87918f;
  --line: rgba(12, 18, 17, 0.08);
  --line-2: rgba(12, 18, 17, 0.13);
  --panel: #f6f8f8;
  --wash: #f0f9fa;
  --tint: #d7f2f4;
  --dot: #b2e3e8;
  --teal: #0f766e;
  --teal-deep: #115e59;
  --wrap: 75rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --sec: clamp(4rem, 8vw, 6.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: 'Darker Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --app: 'Darker Grotesque', system-ui, sans-serif;
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html:has(> .lx) { scroll-behavior: smooth; scroll-padding-top: 5rem; }

/* A reset with no specificity, so the carried-over product styles still win. */
:where(.lx) :where(*, *::before, *::after) { box-sizing: border-box; border: 0 solid; }
:where(.lx) :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
:where(.lx) :where(h1, h2, h3, h4) { font-size: inherit; font-weight: inherit; }
:where(.lx) :where(ul, ol) { padding: 0; list-style: none; }
:where(.lx) :where(a) { color: inherit; text-decoration: none; }
:where(.lx) :where(img, svg) { display: block; max-width: 100%; }
:where(.lx) :where(button, input) { margin: 0; padding: 0; background: transparent; color: inherit; font: inherit; }
:where(.lx) :where(button) { cursor: pointer; }
.lx [hidden] { display: none !important; }
.lx ::selection { background: var(--teal); color: #ffffff; }
.lx :focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 0.375rem; }

.lx-wrap { width: min(100%, calc(var(--wrap) + 2 * var(--gutter))); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------------------------------------------------------- */
/* Type                                                              */
/* ---------------------------------------------------------------- */
.lx-h1,
.lx-h2 { font-weight: 700; text-wrap: balance; }
.lx-h1 { max-width: 60rem; margin-top: 1.5rem; font-size: clamp(2.75rem, 1.3rem + 4.6vw, 4.5rem); letter-spacing: -0.022em; line-height: 0.92; }
.lx-h2 { max-width: 36rem; font-size: clamp(2.25rem, 1.4rem + 2.7vw, 3.375rem); letter-spacing: -0.02em; line-height: 0.94; }
.lx-h1 em,
.lx-h2 em { color: var(--ink-3); font-style: normal; }
.lx-h1 em { display: block; }
.lx-lead { max-width: 33rem; color: var(--ink-2); font-size: clamp(1.25rem, 1.1875rem + 0.24vw, 1.375rem); line-height: 1.42; }
.lx-p { max-width: 33rem; color: var(--ink-2); font-size: 1.25rem; line-height: 1.45; }
.lx-p strong { color: var(--ink); font-weight: 700; }
.lx-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--teal-deep); font-weight: 600; }
.lx-link svg { width: 1rem; height: 1rem; transition: transform 240ms var(--ease); }
.lx-link:hover svg { transform: translateX(3px); }
.lx-p .lx-link { text-decoration: underline; text-decoration-color: rgba(15, 118, 110, 0.3); text-underline-offset: 0.25em; }

.lx-cite {
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
  border-radius: 0.3125rem;
  background: var(--tint);
  color: var(--teal-deep);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
}

/* ---------------------------------------------------------------- */
/* Buttons                                                           */
/* ---------------------------------------------------------------- */
.lx-btn {
  display: inline-flex;
  height: 2.25rem;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.875rem;
  border-radius: 0.5rem;
  background: var(--teal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(15, 60, 58, 0.24);
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 140ms var(--ease);
}
.lx-btn svg { width: 1rem; height: 1rem; transition: transform 240ms var(--ease); }
.lx-btn:active { transform: scale(0.98); }
.lx-btn-sm { height: 2rem; padding-inline: 0.75rem; }
.lx-btn-lg { height: 2.75rem; padding-inline: 1.125rem; border-radius: 0.625rem; font-size: 1.125rem; }
.lx-btn-ghost { background: #ffffff; box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(12, 18, 17, 0.05); color: var(--ink); }
.lx-btn-quiet { background: transparent; box-shadow: none; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .lx-btn:hover { background: var(--teal-deep); }
  .lx-btn:hover svg { transform: translateX(2px); }
  .lx-btn-ghost:hover { background: var(--panel); }
  .lx-btn-quiet:hover { background: rgba(12, 18, 17, 0.05); color: var(--ink); }
}
.lx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.lx-ms { display: flex; align-items: center; gap: 0.4rem; color: var(--ink-3); font-size: 0.9375rem; }
.lx-ms svg { width: 0.875rem; height: 0.875rem; }
.lx-ms .lx-ms-word { width: auto; height: 0.5rem; color: rgba(0, 0, 0, 0.7); }
.lx-actions .lx-ms { margin-left: 0.75rem; }
/* On a phone the mark does not fit beside the two buttons: it takes a line of its own and starts
   at the first button's edge, not indented as when it sits after them. */
@media (max-width: 520px) {
  .lx-actions .lx-ms { flex-basis: 100%; margin-left: 0; }
}

/* ---------------------------------------------------------------- */
/* Header                                                            */
/* ---------------------------------------------------------------- */
.lx-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 transparent;
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  transition: box-shadow 240ms ease;
}
.lx-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.lx-header-in { display: flex; height: 3.75rem; align-items: center; gap: 2rem; }
.lx-logo { display: inline-flex; flex: none; }
.lx-logo img { width: auto; height: 1.625rem; }
.lx-nav,
.lx-header-actions { display: none; }
.lx-nav a { padding: 0.375rem 0.625rem; border-radius: 0.5rem; color: var(--ink-2); font-size: 1.0625rem; font-weight: 600; transition: background-color 160ms ease, color 160ms ease; }
.lx-nav a:hover { background: rgba(12, 18, 17, 0.05); color: var(--ink); }
.lx-nav a.is-active { color: var(--ink); }
.lx-burger { display: grid; width: 2.25rem; height: 2.25rem; margin-left: auto; place-content: center; gap: 0.3125rem; border-radius: 0.5rem; }
.lx-burger span { width: 1.125rem; height: 1.5px; border-radius: 1px; background: var(--ink); transition: transform 240ms var(--ease); }
.lx-burger[aria-expanded='true'] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.lx-burger[aria-expanded='true'] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.lx-menu { border-top: 1px solid var(--line); background: #ffffff; }
.lx-menu nav { display: grid; padding-block: 0.5rem 1.5rem; }
.lx-menu nav > a { padding: 0.875rem 0; border-bottom: 1px solid var(--line); font-size: 1.25rem; font-weight: 600; }
.lx-menu-actions { display: grid; gap: 0.625rem; padding-top: 1.25rem; }
.lx-menu-actions .lx-btn { height: 2.75rem; font-size: 1.125rem; }
@media (min-width: 960px) {
  .lx-nav { display: flex; align-items: center; gap: 0.125rem; margin-inline: auto; }
  .lx-header-actions { display: flex; align-items: center; gap: 0.375rem; }
  .lx-burger,
  .lx-menu { display: none !important; }
}

/* ---------------------------------------------------------------- */
/* Hero                                                              */
/* ---------------------------------------------------------------- */
/* Room below the window, so its shadow and rounded foot are not cut by the section's edge. */
.lx-hero { overflow: hidden; padding-block: clamp(2.5rem, 5.5vw, 4.5rem) clamp(4rem, 8vw, 6.5rem); }
.lx-hero .lx-h1 { margin-top: 0; }
.lx-hero + .lx-sec { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
/* Clip the glow sideways only, so the window's shadow can fall past the section's edge. */
@supports (overflow: clip) {
  .lx-hero { overflow: visible; overflow-x: clip; }
}

/* The next step sits directly under the sentence that asks for it, at the same left edge.
   Side by side on a wide screen the buttons ended up far to the right, away from the message. */
.lx-hero-row { display: grid; justify-items: start; gap: 1.75rem; margin-top: 1.75rem; }

/* Load-in: the copy settles, then the exchange in the window plays once. */
@keyframes lx-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.lx-h1,
.lx-hero-row,
.lx-stage { animation: lx-rise 700ms var(--ease) both; animation-delay: var(--d, 0ms); }
.lx-h1 { --d: 0ms; }
.lx-hero-row { --d: 60ms; }
.lx-stage { --d: 160ms; animation-duration: 1000ms; }
/* The stage: a soft teal light behind the window, and the window fading into the page. */
.lx-stage { position: relative; margin-top: clamp(3rem, 6vw, 4.5rem); }
.lx-stage::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: -12% -8% 20%;
  background:
    radial-gradient(55% 60% at 30% 10%, rgba(125, 206, 215, 0.42), transparent 70%),
    radial-gradient(45% 55% at 80% 0%, rgba(178, 227, 232, 0.6), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
/* ---------------------------------------------------------------- */
/* The product window: the app itself, with its own measures.        */
/* Colours, sizes and icons are taken from the running app            */
/* (frontend/chat.html), so the window shows what a lawyer will see.  */
/* ---------------------------------------------------------------- */
.lx-window {
  --a-ink: #0f172a;
  --a-600: #475569;
  --a-500: #64748b;
  --a-400: #94a3b8;
  --a-line: rgba(226, 232, 240, 0.9);
  --a-100: #f1f5f9;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: 0.875rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line-2), 0 2px 4px rgba(12, 18, 17, 0.04), 0 24px 48px -12px rgba(15, 60, 58, 0.16), 0 60px 110px -30px rgba(15, 118, 110, 0.24);
  color: var(--a-ink);
  font-family: var(--app);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}
.lx-window svg { width: 1rem; height: 1rem; flex: none; }

.app-side { display: none; min-width: 0; flex-direction: column; border-right: 1px solid var(--a-line); background: #ffffff; }
.app-side-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem; color: var(--a-400); }
.app-side-head img { width: auto; height: 1.75rem; }
.app-new { display: flex; align-items: center; justify-content: space-between; margin: 0 0.75rem; padding: 0.55rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); cursor: pointer; font-size: 0.8125rem; font-weight: 600; transition: background-color 160ms ease, border-color 160ms ease; }
.app-new:hover { border-color: #cbd5e1; background: #f8fafc; }
.app-new span { display: flex; align-items: center; gap: 0.5rem; }
.app-new svg { width: 0.875rem; height: 0.875rem; color: var(--a-400); }
.app-new kbd { padding: 0 0.375rem; border: 1px solid rgba(226, 232, 240, 0.8); border-radius: 0.25rem; background: #f8fafc; color: var(--a-400); font-family: var(--mono); font-size: 0.625rem; line-height: 1.5; }
.app-row { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0.75rem 0; padding: 0.5rem 0.75rem; color: var(--a-600); font-size: 0.8125rem; font-weight: 600; }
.app-row svg { width: 0.875rem; height: 0.875rem; }
.app-search { display: flex; height: 2.0625rem; align-items: center; gap: 0.5rem; margin: 0.75rem 0.75rem 0.25rem; padding: 0 0.6rem; border: 1px solid var(--a-line); border-radius: 0.55rem; background: #f8fafc; color: var(--a-400); font-size: 0.875rem; }
.app-search svg { width: 0.875rem; height: 0.875rem; }
.app-label { margin-top: 1.1rem; padding: 0 1.5rem 0.3rem; color: var(--a-400); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.app-project,
.app-session { margin: 0 0.75rem; padding: 0.45rem 0.75rem; overflow: hidden; border-radius: 0.5rem; color: var(--a-600); font-size: 0.9375rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.app-project { display: flex; align-items: center; gap: 0.55rem; }
.app-project span { overflow: hidden; text-overflow: ellipsis; }
.app-session.is-on { background: var(--a-100); color: var(--a-ink); }
.app-profile { display: flex; align-items: center; gap: 0.625rem; margin-top: auto; padding: 1rem 1.25rem; border-top: 1px solid var(--a-line); color: var(--a-400); }
.app-profile i { display: grid; width: 1.75rem; height: 1.75rem; flex: none; place-items: center; border-radius: 50%; background: #d9f1ef; color: var(--teal); }
.app-profile div { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.app-profile b { overflow: hidden; color: var(--a-ink); font-size: 0.8125rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.app-profile span { color: var(--a-500); font-family: var(--mono); font-size: 0.6875rem; }

.app-main { display: grid; min-width: 0; grid-template-rows: auto 1fr auto auto; }
.app-top { display: flex; height: 3.5rem; align-items: center; gap: 1rem; padding: 0 1.5rem; border-bottom: 1px solid var(--a-line); color: var(--a-400); }
.app-thread { display: grid; width: 100%; max-width: 44rem; min-height: 21rem; align-content: start; margin-inline: auto; padding: 1.5rem 1.5rem 1rem; }
.app-user { display: flex; justify-content: flex-end; margin-bottom: 1.75rem; }
.app-user p { max-width: 82%; padding: 0.8125rem 1.125rem; border: 1px solid rgba(226, 232, 240, 0.7); border-radius: 1.25rem 0.375rem 1.25rem 1.25rem; background: rgba(241, 245, 249, 0.8); font-size: 1.0625rem; font-weight: 500; line-height: 1.62; }
.app-reason-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.55rem; }
.app-reason-sum svg { width: 0.95rem; height: 0.95rem; align-self: center; fill: var(--a-ink); }
.app-reason-sum b { color: #1e293b; font-size: 0.875rem; font-weight: 650; }
.app-reason-sum span { color: var(--a-500); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.app-reason ol { display: grid; margin: 0.6rem 0 0 0.42rem; padding-left: 1.05rem; border-left: 1px solid #e2e8f0; }
.app-reason li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; padding: 0.22rem 0; color: #334155; font-size: 0.84375rem; }
.app-reason li::before { content: ''; position: absolute; top: 0.72em; left: calc(-1.05rem - 2.5px); width: 5px; height: 5px; border-radius: 50%; background: #cbd5e1; }
.app-reason li:last-child::before { background: var(--a-ink); }
.app-reason time { color: var(--a-500); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.app-answer { margin-top: 1rem; color: #273548; font-size: 1.125rem; font-weight: 500; line-height: 1.7; }
.app-cites { display: grid; gap: 0.55rem; margin-top: 1.25rem; padding-top: 0.75rem; border-top: 1px solid rgba(226, 232, 240, 0.7); }
.app-cites a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.45rem; color: var(--a-600); font-size: 0.75rem; line-height: 1.45; }
.app-cites span { margin-right: 0.2rem; color: var(--teal); font-family: var(--mono); font-size: 0.625rem; font-weight: 500; }
.app-cites b { color: #1e293b; font-weight: 600; }
.app-cites b,
.app-cites u { text-decoration: underline; text-decoration-color: rgba(15, 118, 110, 0.28); text-underline-offset: 0.22em; transition: text-decoration-color 160ms ease; }
.app-cites a:hover b,
.app-cites a:hover u { text-decoration-color: var(--teal); }
.app-actions { display: flex; align-items: center; gap: 0.4rem; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid rgba(226, 232, 240, 0.6); color: var(--a-400); font-size: 0.6875rem; font-weight: 500; }
.app-actions svg { width: 0.875rem; height: 0.875rem; }

.app-composer { display: grid; width: calc(100% - 2rem); max-width: 42rem; gap: 0.5rem; margin: 0 auto; padding: 0.75rem; border: 1px solid var(--a-line); border-radius: 1rem; background: #ffffff; box-shadow: 0 10px 32px -12px rgba(15, 23, 42, 0.14), 0 2px 8px -3px rgba(15, 23, 42, 0.06); }
.app-input { min-height: 2.375rem; padding: 0.35rem 0.25rem; font-size: 1rem; font-weight: 600; line-height: 1.625; }
.app-input .app-ph { color: var(--a-400); font-weight: 400; }
.app-input.is-typing .app-ph { display: none; }
.app-input.is-typing [data-demo-input]::after { content: ''; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; background: var(--a-ink); vertical-align: -0.18em; animation: app-caret 1s steps(1) infinite; }
@keyframes app-caret {
  50% { opacity: 0; }
}
.app-tools { display: flex; align-items: center; gap: 0.75rem; padding-top: 0.5rem; border-top: 1px solid #f1f5f9; color: var(--a-500); }
.app-chip { display: inline-flex; align-items: center; gap: 0.35rem; margin-right: auto; padding: 0.2rem 0.5rem; border: 1px solid var(--a-line); border-radius: 0.5rem; color: var(--a-600); font-size: 0.75rem; white-space: nowrap; }
.app-chip b { color: var(--a-ink); font-weight: 700; }
.app-chip svg { width: 0.8125rem; height: 0.8125rem; color: var(--teal); }
.app-chip svg:last-child { color: var(--a-500); }
.app-ring { width: 0.875rem; height: 0.875rem; border: 1.5px solid #e2e8f0; border-top-color: var(--a-500); border-radius: 50%; }
.app-send { display: grid; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: 0.75rem; background: var(--teal); color: #ffffff; opacity: 0.25; transition: opacity 200ms ease, transform 160ms var(--ease); }
.app-send svg { width: 0.875rem; height: 0.875rem; }
.app-send.is-ready { opacity: 1; }
.app-send.is-pressed { transform: scale(0.9); }
.app-disclaimer { padding: 0.6rem 1rem 0.9rem; color: var(--a-400); font-size: 0.6875rem; text-align: center; }
.app-top-menu { color: var(--a-500); }
.app-top svg:nth-last-child(2) { margin-left: auto; }

/* Playback: the script hides the parts and brings them in the order the app does. */
[data-demo].is-playing [data-demo-part],
[data-demo].is-playing [data-demo-step] { opacity: 0; transform: translateY(6px); }
[data-demo] [data-demo-part],
[data-demo] [data-demo-step] { transition: opacity 360ms ease, transform 520ms var(--ease); }
[data-demo].is-playing .is-shown { opacity: 1; transform: none; }
[data-demo] .is-live { background: linear-gradient(90deg, #1e293b 30%, #94a3b8 50%, #1e293b 70%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: app-shimmer 1.6s linear infinite; }
@keyframes app-shimmer {
  to { background-position: -200% 0; }
}

@media (min-width: 760px) {
  .lx-window { grid-template-columns: 15rem minmax(0, 1fr); }
  .app-side { display: flex; }
  .app-top-menu { display: none; }
  .app-thread { padding: 2rem 1.5rem 1rem; }
}
@media (min-width: 1100px) {
  .lx-window { grid-template-columns: 16rem minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- */
/* Sections                                                          */
/* ---------------------------------------------------------------- */
.lx-sec { padding-block: var(--sec); scroll-margin-top: 3rem; }
.lx-sec-tint { background: linear-gradient(#ffffff, var(--panel) 14%, var(--panel) 86%, #ffffff); }
.lx-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 960px) {
  .lx-head-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: 4rem; }
}

[data-reveal] { transition: opacity 700ms ease, transform 900ms var(--ease); }
[data-reveal].lx-wait { opacity: 0; transform: translateY(14px); }

/* The four source rules: one row of columns divided by hairlines. */
.lx-rules { display: grid; border-top: 1px solid var(--line-2); }
.lx-rules li { padding: 1.25rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.lx-rules h3 { margin-top: 1.75rem; font-size: 1.25rem; font-weight: 700; letter-spacing: 0; line-height: 1.35; text-wrap: balance; }
.lx-rules p { margin-top: 0.3rem; color: var(--ink-2); font-size: 1.125rem; line-height: 1.4; }
@media (min-width: 640px) {
  .lx-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-rules li { padding-right: 1.5rem; }
  .lx-rules li:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
@media (min-width: 960px) {
  .lx-rules { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lx-rules li { padding-bottom: 0.5rem; border-bottom: 0; }
  .lx-rules li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
  .lx-rules h3 { margin-top: 2.25rem; }
}

/* ---------------------------------------------------------------- */
/* Panels                                                            */
/* ---------------------------------------------------------------- */
.lx-bento { display: grid; gap: 1rem; }
.lx-card { min-width: 0; padding: clamp(1rem, 2.6vw, 2rem); border-radius: 1rem; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
/* Product fragments keep the measures they have on the live page. */
.lx-product,
.lx-cap-stage { font-family: var(--app); font-size: 1rem; font-weight: 400; line-height: 1.5; }
/* The court form keeps its product styling; only its outer box is replaced. */
.lx .lx-product.cap-featured { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.lx .lx-product.cap-featured .cap-v-search { border: 1px solid var(--line-2); border-radius: 0.75rem; box-shadow: 0 1px 2px rgba(12, 18, 17, 0.04), 0 20px 40px -24px rgba(15, 60, 58, 0.22); }
.lx .cap-v-switch .is-on,
.lx .cap-v-cols .is-alt i { background-color: var(--teal-deep); }
.lx .cap-v-switch .is-on { box-shadow: none; }

.lx-list { display: grid; align-content: start; gap: 0.625rem; }
.lx-list li { display: grid; grid-template-columns: 1rem minmax(0, 1fr); column-gap: 0.625rem; color: var(--ink); font-size: 1.125rem; line-height: 1.4; }
.lx-list svg { width: 1rem; height: 1rem; margin-top: 0.2rem; color: var(--teal); }
.lx-card-form { display: grid; align-content: start; gap: 1.75rem; }
.lx-card-form .lx-link { font-size: 1.125rem; }

/* The map stands on the page itself: no panel, no caption. */
.lx-map { display: grid; place-items: center; min-width: 0; margin: 0; }
.lx-map-svg { width: min(100%, 19rem); height: auto; overflow: visible; }
.lx-map-dot { fill: var(--teal); opacity: 0; transition: opacity 500ms var(--ease); transition-delay: calc(var(--r) * 5ms); }
.lx-map.is-in .lx-map-dot { opacity: 1; }
.lx-city { cursor: pointer; outline: none; }
.lx-city-hit { fill: transparent; }
.lx-city-dot { fill: var(--ink); stroke: #ffffff; stroke-width: 0.7px; paint-order: stroke; opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity 420ms var(--ease) 380ms, transform 320ms var(--ease), fill 220ms ease; }
.lx-map.is-in .lx-city-dot { opacity: 1; }
.lx-city-ring { fill: none; stroke: var(--teal); stroke-width: 0.3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.lx-city-label { fill: var(--ink); font-family: var(--sans); font-size: 3.5px; font-weight: 700; letter-spacing: 0; opacity: 0; paint-order: stroke; stroke: #ffffff; stroke-width: 1.7px; stroke-linejoin: round; transition: opacity 320ms var(--ease); }
/* City names stay out of the way until a city is pointed at, selected or answering. */
.lx-map.is-in .lx-city:hover .lx-city-label,
.lx-map.is-in .lx-city:focus-visible .lx-city-label,
.lx-map.is-in .lx-city.is-active .lx-city-label,
.lx-map.is-in .lx-city.is-pinged .lx-city-label { opacity: 1; }
.lx-map.has-active .lx-city:not(.is-active) .lx-city-label,
.lx-map.has-active .lx-city:not(.is-active) .lx-city-dot { opacity: 0.4; }
.lx-city.is-active .lx-city-dot,
.lx-city:focus-visible .lx-city-dot { fill: var(--teal-deep); transform: scale(1.7); }
.lx-city:focus-visible .lx-city-ring { opacity: 1; }
.lx-city.is-active .lx-city-ring,
.lx-city.is-pinged .lx-city-ring { animation: lx-ping 1.6s var(--ease) infinite; }
.lx-city.is-pinged .lx-city-ring { animation-iteration-count: 1; }
@keyframes lx-ping {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.4); }
}
@media (hover: hover) and (pointer: fine) {
  .lx-city:hover .lx-city-dot { transform: scale(1.7); }
}
@media (min-width: 960px) {
  .lx-courts { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* Capabilities: six panels, wide and narrow alternating. */
.lx-caps { display: grid; gap: 1rem; }
.lx-cap { display: grid; min-width: 0; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line-2); border-radius: 1rem; background: #ffffff; }
.lx-cap-stage { display: grid; min-height: 17rem; place-items: center; padding: clamp(1.25rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line); background: var(--panel); font-family: var(--app); }
.lx .lx-cap-stage .cap-visual { width: min(100%, 23rem); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(12, 18, 17, 0.04), 0 18px 36px -22px rgba(15, 60, 58, 0.25); transition: transform 500ms var(--ease); }
.lx-cap-copy { padding: 1.375rem 1.5rem 1.625rem; }
.lx-cap-copy h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.lx-cap-copy p { max-width: 36rem; margin-top: 0.375rem; color: var(--ink-2); font-size: 1.125rem; line-height: 1.45; }
@media (hover: hover) and (pointer: fine) {
  .lx-cap:hover .cap-visual { transform: translateY(-4px); }
}
@media (min-width: 760px) {
  .lx-caps { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lx-cap { grid-column: span 6; }
}
@media (min-width: 1040px) {
  .lx-cap:nth-child(4n + 1),
  .lx-cap:nth-child(4n) { grid-column: span 7; }
  .lx-cap:nth-child(4n + 2),
  .lx-cap:nth-child(4n + 3) { grid-column: span 5; }
}

/* Workflows. */
.lx .lx-flows .flows-card { border: 1px solid var(--line-2); border-radius: 1rem; box-shadow: 0 1px 2px rgba(12, 18, 17, 0.04), 0 30px 60px -30px rgba(15, 60, 58, 0.25); }
.lx .flows-cta { background-color: var(--teal-deep); }
.lx-note { margin-top: 2rem; }

/* Example prompts, as the list the composer would offer. */
.lx-examples { display: grid; }
.lx-palette { overflow: hidden; border-radius: 1rem; background: #ffffff; box-shadow: 0 0 0 1px var(--line-2), 0 2px 4px rgba(12, 18, 17, 0.04), 0 30px 60px -24px rgba(15, 60, 58, 0.2); }
.lx-palette-input { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 1.1875rem; }
.lx-palette-input svg { width: 1rem; height: 1rem; }
.lx-palette-view { height: 27rem; overflow-y: auto; overscroll-behavior: contain; }
.lx-palette-view.is-auto { overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); }
.lx-palette-view.is-auto .lx-palette-track { animation: lx-scroll var(--scroll-time, 56s) linear infinite; }
.lx-palette-view.is-auto:hover .lx-palette-track,
.lx-palette-view.is-auto:focus-within .lx-palette-track { animation-play-state: paused; }
@keyframes lx-scroll {
  to { transform: translateY(-50%); }
}
.lx-palette ul { display: grid; padding: 0.5rem; }
.lx-palette a { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); align-items: baseline; column-gap: 0.75rem; padding: 0.7rem 0.75rem; border-radius: 0.5rem; color: var(--ink); font-size: 1.125rem; line-height: 1.36; transition: background-color 140ms ease; }
.lx-palette a span { justify-self: start; padding: 0.2rem 0.4rem; border-radius: 0.3125rem; background: var(--wash); color: var(--teal-deep); font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.04em; line-height: 1.2; text-transform: uppercase; }
.lx-palette a:hover,
.lx-palette a:focus-visible { background: var(--panel); }
@media (min-width: 960px) {
  .lx-examples { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; column-gap: 4rem; }
  .lx-examples .lx-head { position: sticky; top: 6rem; margin-bottom: 0; }
}

/* Plans. */
.lx-plans { display: grid; gap: 1rem; }
.lx-plan { display: grid; align-content: start; gap: 1.5rem; padding: clamp(1.5rem, 3.2vw, 2.25rem); border-radius: 1rem; background: #ffffff; box-shadow: inset 0 0 0 1px var(--line-2); }
.lx-plan-max { background: linear-gradient(180deg, var(--wash), #ffffff 62%); box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.28); }
.lx-plan header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; }
.lx-plan h3 { font-size: 1.0625rem; font-weight: 800; letter-spacing: 0.08em; }
.lx-plan header p { color: var(--ink-2); font-size: 1.0625rem; }
.lx-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.5rem; }
.lx-price b { font-size: clamp(2.9375rem, 2.375rem + 1.65vw, 3.6875rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.lx-price span { font-size: 1.0625rem; font-weight: 700; }
.lx-price small { color: var(--ink-2); font-size: 1.125rem; }
.lx-plan-text { max-width: 30rem; color: var(--ink-2); font-size: 1.125rem; line-height: 1.45; }
.lx-seats { display: flex; min-height: 3.75rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.625rem 0; border-block: 1px solid var(--line); font-size: 1.125rem; font-weight: 600; }
.lx-seats div { display: flex; align-items: center; gap: 0.625rem; }
.lx .lx-seats #max-user-count { min-width: 6.5rem; color: var(--ink); font-size: inherit; font-weight: inherit; text-align: center; font-variant-numeric: tabular-nums; }
.lx-seats button { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 0.5rem; background: #ffffff; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font-size: 1.125rem; font-weight: 500; line-height: 1; transition: background-color 160ms ease, opacity 160ms ease; }
.lx-seats button:hover:not(:disabled) { background: var(--panel); }
.lx-seats button:disabled { opacity: 0.4; cursor: default; }
.lx-plan .lx-btn { width: 100%; margin-top: 0.25rem; }
.lx-fine { max-width: 46rem; margin-top: 1.5rem; color: var(--ink-3); font-size: 0.9375rem; line-height: 1.45; }
@media (min-width: 760px) {
  .lx-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); }
  .lx-plan { grid-row: span 6; grid-template-rows: subgrid; row-gap: 1.5rem; }
  .lx-plan .lx-btn { align-self: end; }
}

/* Questions. */
.lx-faq-grid { display: grid; }
.lx .lx-faq .faq-list { display: block; border-top: 1px solid var(--line-2); }
.lx .lx-faq .faq-item { border-bottom: 1px solid var(--line); }
.lx .lx-faq .faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.125rem 0; color: var(--ink); cursor: pointer; font-size: 1.1875rem; font-weight: 600; letter-spacing: 0; line-height: 1.36; list-style: none; transition: color 180ms ease; }
.lx .lx-faq .faq-item summary::-webkit-details-marker { display: none; }
.lx .lx-faq .faq-item summary::after {
  content: '';
  width: 0.75rem;
  height: 0.75rem;
  flex: none;
  background: linear-gradient(var(--ink-3), var(--ink-3)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) center / 1.5px 100% no-repeat;
  transition: transform 280ms var(--ease), background-size 200ms ease;
}
.lx .lx-faq .faq-item[open] summary { color: var(--teal-deep); }
.lx .lx-faq .faq-item[open] summary::after { background-size: 100% 1.5px, 1.5px 0; transform: rotate(90deg); }
.lx .lx-faq .faq-answer { max-width: 38rem; margin: 0; padding: 0 2rem 1.375rem 0; color: var(--ink-2); font-size: 1.125rem; line-height: 1.5; }
@media (min-width: 960px) {
  .lx-faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; column-gap: 4rem; }
  .lx-faq-grid .lx-head { margin-bottom: 0; }
}

/* Closing panel. */
.lx-close { padding-top: 0; }
.lx-close-panel {
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: 1.25rem;
  background: radial-gradient(70% 130% at 100% 0%, rgba(125, 206, 215, 0.4), transparent 62%), var(--wash);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}
.lx-close-panel .lx-h2 { max-width: none; }
.lx-close-panel .lx-h2 em { display: block; color: var(--teal); }
.lx-close-panel .lx-actions { margin-top: 1.5rem; }
@media (min-width: 960px) {
  .lx-close-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 4rem; }
}

/* Footer. */
.lx-footer { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 1.0625rem; }
.lx-footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.lx-footer-brand { grid-column: 1 / -1; }
.lx-footer-brand > p:not(.lx-ms) { max-width: 22rem; margin-block: 1.125rem; line-height: 1.45; }
.lx-footer-label { margin-bottom: 0.75rem; color: var(--ink); font-weight: 600; }
.lx-footer ul { display: grid; gap: 0.5rem; }
.lx-footer a { transition: color 160ms ease; }
.lx-footer a:hover { color: var(--ink); }
.lx-footer-base { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.9375rem; }
.lx-footer-base nav { display: flex; gap: 1.25rem; }
.lx-cards { margin-left: auto; }
.lx-cards img { width: 8.5rem; height: auto; mix-blend-mode: multiply; }
@media (min-width: 960px) {
  .lx-footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lx-footer-brand { grid-column: span 6; }
  .lx-footer-grid > :not(.lx-footer-brand) { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(> .lx) { scroll-behavior: auto; }
  .lx *,
  .lx *::before,
  .lx *::after { animation: none !important; transition: none !important; }
  [data-reveal].lx-wait { opacity: 1; transform: none; }
  .lx-map-dot,
  .lx-city-dot { opacity: 1; }
}

/* ---------------------------------------------------------------- */
/* Product fragments: wherever the live page's stylesheet asks for    */
/* its second display face, this page keeps Darker Grotesque, so the  */
/* page has one face.  The selector list is generated from            */
/* landing.css.                                                       */
/* ---------------------------------------------------------------- */
.lx .footer-cta h2,
.lx .cap-v-search-brand > span:last-child,
.lx .cap-item h3,
.lx .cap-v-week span,
.lx .cap-v-cols b,
.lx .flows-title,
.lx .deadline-node b,
.lx .company-mark,
.lx .flows-tab-kicker,
.lx .flows-ask span,
.lx .flows-output-head span,
.lx .flows-sources > span,
.lx .flows-output-head em,
.lx .flows-sources a,
.lx .case-tag,
.lx .company-top small,
.lx .company-facts dt,
.lx .closing-title { font-family: var(--app); }
/* Darker Grotesque runs smaller than the face these were sized for. */
.lx .cap-v-search-brand > span:last-child { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; }
.lx .cap-v-week span { font-size: 1.3125rem; font-weight: 700; }
.lx .cap-v-cols b { font-size: 1.5rem; font-weight: 700; }
.lx .flows-tab-kicker { font-size: 0.875rem; font-weight: 700; }
.lx .flows-ask span,
.lx .flows-output-head span,
.lx .flows-sources > span { font-size: 0.8125rem; font-weight: 700; }
.lx .flows-output-head em { font-size: 0.9375rem; }
.lx .flows-sources a { font-size: 1rem; font-weight: 600; }
.lx .deadline-node b { font-size: 1.5rem; font-weight: 700; }
.lx .case-tag { font-size: 0.8125rem; }
