/* Product pictures on the home page, version 4 (24 Nov 2026).
   Study: New project/output/card-design-study/card-design-study.md. Akshat's review of v3: everything inside
   was too big for its frame, the padding had no single rule, and the three feature windows differed in size.

   One system for all five pictures:
   - Type: Inter only, never the site's serif. Four sizes: 11 (meta, pills, table heads, labels) · 12 (rows,
     body, chips, buttons) · 14 (the typed request, detail titles) · 20 (window titles, figures). Weights 400/500.
   - One inner margin per window, --lx-pad (28px; 20px in narrow slots), used by every section, so rows,
     bands and tiles all start on the same line. Sections are --lx-gap (16px) apart.
   - Controls: chips 26px, buttons 28px, pills 18px, tabs 24px. Corners: window 14 · card 12 · band 8 · control 6.
   - Feature rows: the three pictures share one frame, --lx-frame (44px) in from the painting on every side.
   - Warm paper surfaces, never #FFF; hairlines, not borders. Brick red once per picture.
   - Every name is fictional sample content. No real customers, firms or people; figures are sample UI. */

:root {
  --lx-paper: #FCFBF9;
  --lx-paper-2: #F5F3EF;
  --lx-paper-3: #ECE9E4;
  --lx-hair: rgba(31, 29, 26, 0.08);
  --lx-hair-2: rgba(31, 29, 26, 0.14);
  --lx-ink: #1F1D1A;
  --lx-ink-2: #5E5952;
  --lx-ink-3: #8F8981;
  --lx-ok: #3F7752;   --lx-ok-tint: #E6EFE7;
  --lx-warn: #9A5F1C; --lx-warn-tint: #F6EBDB;
  --lx-bad: #9A3B36;  --lx-bad-tint: #F4E5E2;
  --lx-t-xs: 11px; --lx-t-s: 12px; --lx-t-m: 14px; --lx-t-l: 20px;
  --lx-pad: 28px; --lx-gap: 16px;
  --lx-r-win: 14px; --lx-r-card: 12px; --lx-r-band: 8px; --lx-r-ctl: 6px;
  --lx-shadow-2: 0 0 0 1px rgba(31, 29, 26, 0.07), 0 2px 4px -1px rgba(31, 29, 26, 0.06),
                 0 18px 36px -14px rgba(31, 29, 26, 0.22), 0 48px 80px -36px rgba(31, 29, 26, 0.26);
}

/* ---------- Base ---------- */
.lx { font-family: var(--font-sans); font-size: var(--lx-t-s); line-height: 1.45; color: var(--lx-ink); text-align: left;
  font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; letter-spacing: -0.003em; }
.lx p { margin: 0; }
.lx b, .lx strong { font-weight: 500; }
.lx ol, .lx ul { list-style: none; margin: 0; padding: 0; }
.lx-ic { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lx-ic--xs { width: 12px; height: 12px; stroke-width: 2; }
.lx-muted { color: var(--lx-ink-2); }
.lx-faint { color: var(--lx-ink-3); }
.lx-logo { width: 14px; height: 14px; flex: none; }
.lx-title { font-size: var(--lx-t-l); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; }

/* Surfaces */
.lx-win { background: var(--lx-paper); border-radius: var(--lx-r-win); box-shadow: var(--lx-shadow-2); overflow: hidden; }
.lx-card { background: var(--lx-paper); border-radius: var(--lx-r-card); box-shadow: var(--lx-shadow-2); }
.lx-glass { background: rgba(250, 248, 245, 0.74); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 0 1px rgba(31, 29, 26, 0.06), 0 18px 40px -16px rgba(31, 29, 26, 0.24); }

/* Pills, chips, buttons, tabs: one size each */
.lx-pill { display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 7px; border-radius: 999px; font-size: var(--lx-t-xs); font-weight: 500; white-space: nowrap; background: var(--lx-paper-3); color: var(--lx-ink-2); flex: none; }
.lx-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.lx-pill--ok { background: var(--lx-ok-tint); color: var(--lx-ok); }
.lx-pill--warn { background: var(--lx-warn-tint); color: var(--lx-warn); }
.lx-pill--bad { background: var(--lx-bad-tint); color: var(--lx-bad); }
.lx-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: var(--lx-r-ctl); background: var(--lx-paper); box-shadow: inset 0 0 0 1px var(--lx-hair-2); font-size: var(--lx-t-s); color: var(--lx-ink); white-space: nowrap; min-width: 0; }
.lx-chip .lx-ic { color: var(--lx-ink-2); }
.lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--lx-r-ctl); background: var(--lx-ink); color: var(--lx-paper); font-size: var(--lx-t-s); font-weight: 500; white-space: nowrap; box-shadow: 0 1px 2px rgba(31, 29, 26, 0.22); }
.lx-tabs { display: flex; gap: 4px; margin-left: -9px; } /* the first tab's text lines up with the content edge */
.lx-tabs span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--lx-r-ctl); color: var(--lx-ink-2); white-space: nowrap; }
.lx-tabs .is-on { background: var(--lx-paper-3); color: var(--lx-ink); font-weight: 500; }
.lx-tabs i { font-style: normal; font-weight: 400; color: var(--lx-ink-3); }

/* People and Lex. People get an initial; Lex, the agent, a brick disc with a four-point spark (#i-lex) */
.lx-ini { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--lx-paper-3); color: var(--lx-ink-2); font-size: 9px; font-weight: 500; line-height: 1; }
.lx-agent { width: 16px; height: 16px; flex: none; display: block; }

/* "Working" text and the step spinner */
.lx-shimmer { background: linear-gradient(90deg, var(--lx-ink-2) 0%, var(--lx-ink-2) 40%, var(--lx-ink-3) 50%, var(--lx-ink-2) 60%, var(--lx-ink-2) 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: lx-shimmer 2.4s linear infinite; }
@keyframes lx-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@keyframes lx-spin { to { transform: rotate(360deg); } }
.lx-caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: var(--lx-ink); animation: lx-blink 1.1s steps(1) infinite; }
@keyframes lx-blink { 50% { opacity: 0; } }

/* Step list with a thread line: done, then the one in progress */
.lx-steps { display: grid; }
.lx-steps li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; min-height: 30px; padding: 3px 0; box-sizing: border-box; color: var(--lx-ink-2); }
.lx-steps li::before { content: ""; grid-column: 1; grid-row: 1; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box; }
.lx-steps li::after { content: ""; position: absolute; left: 6.5px; top: calc(50% + 10px); height: calc(100% - 20px); width: 1px; background: var(--lx-hair-2); }
.lx-steps li:last-child::after { display: none; }
.lx-steps li > :first-child { grid-column: 2; min-width: 0; }
.lx-steps b { color: var(--lx-ink); }
.lx-steps .is-done::before { background: var(--lx-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.2l2.2 2.2 4.6-4.8' fill='none' stroke='%23FCFBF9' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.lx-steps .is-now::before { background: none; border: 1.5px solid rgba(31, 29, 26, 0.16); border-top-color: var(--lx-ink); animation: lx-spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .lx-shimmer, .lx-caret, .lx-steps .is-now::before { animation: none; }
  .lx-shimmer { color: var(--lx-ink-2); background: none; }
}

/* ======================================================================
   One platform cards (dark): a quiet list on the left and the open item beside it. The window starts at
   the text's left edge and runs off the card's right and bottom edges; the detail panel's text stays
   inside the visible part.
   ====================================================================== */
/* Off-white rather than paper: the window runs off the card's bottom edge onto the page (#FAFAF9), so it needs
   its own tone to read as a separate surface there (Akshat, 24 Nov 2026) */
.lxp { --lx-paper: #F5F4F1; --lx-paper-2: #ECEAE6; --lx-paper-3: #E5E3DE; } /* a cooler, lighter off-white (Akshat: #F3F0EB read too brown) */
.lxp { position: absolute; left: var(--s-10); right: 0; top: 0; bottom: -40px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  border-radius: var(--lx-r-win) 0 0 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22), 0 36px 72px -28px rgba(0, 0, 0, 0.6); }
.lxp__list { display: grid; align-content: start; gap: var(--lx-gap); padding: var(--lx-pad) 16px 0 var(--lx-pad); min-width: 0; }
.lxp__list .lx-tabs { margin-top: -4px; }
.lxp__group { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--lx-r-band); background: var(--lx-paper-2); font-size: var(--lx-t-xs); color: var(--lx-ink-3); }
.lxp__group b { color: var(--lx-ink); }
.lxp__rows { display: grid; gap: 2px; margin-top: -10px; }
.lxp__row { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--lx-r-band); min-width: 0; }
.lxp__row.is-on { background: var(--lx-paper-3); }
.lxp__name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lxp__name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lxp__name .lx-logo { width: 12px; height: 12px; }
.lxp__meta { display: flex; align-items: center; gap: 8px; font-size: var(--lx-t-xs); color: var(--lx-ink-3); white-space: nowrap; overflow: hidden; }
.lxp__meta .lx-ini + span { margin-left: -2px; color: var(--lx-ink-2); }
.lxp__detail { margin-top: 64px; padding: 20px 20px 0; border-radius: var(--lx-r-card) 0 0 0; background: var(--lx-paper); box-shadow: -1px -1px 0 0 var(--lx-hair-2); display: grid; align-content: start; gap: 6px; min-width: 0; }
.lxp__crumb { font-size: var(--lx-t-xs); color: var(--lx-ink-3); }
.lxp__h { font-size: var(--lx-t-m); font-weight: 500; line-height: 1.35; }
.lxp__desc { color: var(--lx-ink-2); }
.lxp .lxp__label { margin-top: 14px; font-size: var(--lx-t-xs); color: var(--lx-ink-3); }
.lxp__feed { display: grid; gap: 10px; margin-top: 4px; }
.lxp__feed li { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 8px; align-items: start; color: var(--lx-ink-2); }
.lxp__feed b { color: var(--lx-ink); }

/* Narrower cards (1025–1200px desktops, tablets): the list alone */
@container (max-width: 520px) {
  .lxp { grid-template-columns: minmax(0, 1fr); }
  .lxp__detail { display: none; }
  .lxp__list { padding-right: var(--lx-pad); }
}
@media (max-width: 1024px) { .lxp { left: var(--s-12); } }
/* Phones: the whole window is drawn at 70%, as a screenshot would be, so nothing is cut mid-word */
@media (max-width: 640px) {
  .lxp { --k: 0.7; left: var(--s-6); right: auto; bottom: auto; width: calc((100cqw - var(--s-6)) / var(--k)); height: calc((100% + 40px) / var(--k));
    transform: scale(var(--k)); transform-origin: 0 0; }
}

/* ======================================================================
   Painted media slots (feature rows): the painting is dulled so the product is the subject.
   Akshat, 24 Nov 2026: quieter everywhere except the home hero and the "One platform" cards.
   ====================================================================== */
.lxm { background: var(--lx-paper-2); border: 0; border-radius: var(--radius-l); --lx-frame: 44px; }
.lxm .pv__bg { filter: saturate(0.6) contrast(0.86) brightness(1.05); }
.lxm::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(246, 244, 240, 0.26); pointer-events: none; }
.lxm > .lx { position: absolute; inset: var(--lx-frame); }
/* Upload and review queue sit further in, so they read as a screenshot on the painting, not a panel over it:
   8.75% of the slot on every side (56px at 1440, ~41px at 1100), Akshat's marked size, 24 Nov 2026 */
.lxm > .lxu, .lxm > .lxd { inset: 8.75cqw; }

/* ---------- Feature row 1: agents. A request typed to Lex, and Lex working through it ---------- */
.lxm > .lxa { bottom: auto; top: 50%; transform: translateY(-50%); display: grid; }
.lxa__ask { position: relative; z-index: 1; padding: 18px 20px 16px; }
.lxa__text { font-size: var(--lx-t-m); line-height: 1.5; }
.lxa__foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; min-width: 0; }
.lxa__foot .lx-chip { overflow: hidden; }
.lxa__foot .lx-chip span { overflow: hidden; text-overflow: ellipsis; }
.lxa__send { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; flex: none; border-radius: 50%; background: var(--lx-ink); color: var(--lx-paper); }
.lxa__run { margin: -12px 16px 0; padding: 24px 20px 10px; border-radius: 0 0 var(--lx-r-card) var(--lx-r-card); }
.lxa__head { display: flex; align-items: center; gap: 10px; min-height: 30px; margin-left: -2px; }
.lxa__head .lx-agent { width: 18px; height: 18px; }
.lxa__head .lx-faint { margin-left: auto; font-size: var(--lx-t-xs); }

/* ---------- Feature row 2: one calm upload card, centred ---------- */
.lxu { display: grid; place-content: center; justify-items: center; padding: var(--lx-pad); text-align: center; }
.lxu__icon { width: 32px; height: 32px; color: var(--lx-ink-3); stroke-width: 1.4; }
.lxu .lx-title { margin-top: 16px; }
.lxu .lx-btn { margin-top: 20px; }
.lxu .lxu__or { margin-top: 28px; color: var(--lx-ink-3); }
.lxu__src { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }

/* ---------- Feature row 3: the review queue ---------- */
.lxd { display: grid; align-content: start; gap: var(--lx-gap); padding: var(--lx-pad) 0 0; }
.lxd > * { margin: 0 var(--lx-pad); }
.lxd .lxd__sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--lx-ink-2); }
.lxd__sub .lx-agent { width: 14px; height: 14px; }
.lxd__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lxd__stat { display: grid; gap: 2px; padding: 8px 12px; border-radius: var(--lx-r-band); background: var(--lx-paper-2); }
.lxd__stat b { font-size: var(--lx-t-l); line-height: 1.2; letter-spacing: -0.02em; }
.lxd__stat span { font-size: var(--lx-t-xs); color: var(--lx-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lxd > .lx-tabs { margin-left: calc(var(--lx-pad) - 9px); margin-top: -2px; }
.lxd__table { display: grid; margin-top: -6px; }
.lxd__tr { display: grid; grid-template-columns: minmax(0, 1fr) 100px 60px; align-items: center; column-gap: 12px; min-height: 40px; padding: 0 12px; border-bottom: 1px solid var(--lx-hair); }
.lxd__tr:last-child { border-bottom: 0; }
.lxd__tr--head { min-height: 28px; border: 0; border-radius: var(--lx-r-band); background: var(--lx-paper-2); font-size: var(--lx-t-xs); color: var(--lx-ink-3); }
.lxd__doc { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 10px; align-items: center; min-width: 0; }
.lxd__doc .lx-logo { grid-row: 1 / span 2; }
.lxd__doc b, .lxd__doc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.lxd__doc span { grid-column: 2; font-size: var(--lx-t-xs); color: var(--lx-ink-3); }
.lxd__tr .lx-pill { justify-self: start; }
.lxd__when { font-size: var(--lx-t-xs); color: var(--lx-ink-3); }

/* Narrower slots (1025–1200px desktops, tablets): a smaller frame and fewer, whole elements */
@container (max-width: 560px) {
  .lxm { --lx-frame: 32px; }
  .lxm > .lx { --lx-pad: 20px; }
  .lxa__matter { display: none; }
  .lxd__stats { display: none; }
  .lxd__tr { grid-template-columns: minmax(0, 1fr) 100px; }
  .lxd__tr > :nth-child(3) { display: none; }
  .lxd__tr:nth-child(n+5) { display: none; }
  .lxd__tr:nth-child(4) { border-bottom: 0; }
}
@container (max-width: 460px) { .lxm { --lx-frame: 24px; } }
/* Phones: the slot grows to fit the picture, so every row shows and long names wrap instead of being cut */
@media (max-width: 767px) {
  .feature-row__media.lxm { aspect-ratio: auto; display: grid; padding: var(--s-8) var(--s-4); }
  .lxm > .lx, .lxm > .lxa { position: relative; inset: auto; transform: none; }
  .lxu { padding: 36px 20px; }
  .lxd { padding-bottom: 8px; }
  .lxu .lx-title { text-wrap: balance; }
  .lxu__src { max-width: 200px; } /* two chips a row */
  .lxd__tr:nth-child(n+5) { display: grid; }
  .lxd__tr { grid-template-columns: minmax(0, 1fr); row-gap: 6px; padding-top: 10px; padding-bottom: 10px; } /* the status drops under the name */
  .lxd__tr--head { padding-top: 0; padding-bottom: 0; }
  .lxd__tr--head > :nth-child(2) { display: none; }
  .lxd__doc .lx-logo { grid-row: 1; margin-top: 1px; }
  .lxd__doc { align-items: start; }
  .lxd__tr .lx-pill { margin-left: 24px; }
  .lxa__pw { display: none; }
}
.lx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ======================================================================
   LexOS page (platform/lexos), 24 Nov 2026. The same system as home: Inter, 11/12/14/20, one --lx-pad per
   window, pills 18 / chips 26 / buttons 28, brick only for Lex and the redline. Sample content, fictional names.
   ====================================================================== */
/* Shared bits: a clause with its number in a gutter, the redline, a citation badge, placeholder lines */
.lx del { color: var(--lx-ink-3); text-decoration: line-through; text-decoration-color: var(--lx-bad); }
.lx ins { color: var(--lx-bad); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.lx-cl { display: grid; grid-template-columns: 34px minmax(0, 1fr); line-height: 1.6; color: var(--lx-ink-2); }
.lx-cl .n { color: var(--lx-ink-3); }
.lx-cl ins, .lx-nw { white-space: nowrap; }
.lx-cl.is-hit { margin: 0 -10px; padding: 6px 10px; border-radius: var(--lx-r-ctl); background: var(--lx-warn-tint); color: var(--lx-ink); }
.lx-cite { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 999px;
  background: var(--lx-paper-3); color: var(--lx-ink-2); font-size: var(--lx-t-xs); font-weight: 500; line-height: 1; vertical-align: 1px; }
.lx-skel { display: grid; gap: 10px; }
.lx-skel i { display: block; height: 6px; border-radius: 3px; background: var(--lx-paper-3); }
.lx-skel i:nth-child(2) { width: 94%; }
.lx-skel i:nth-child(4) { width: 62%; }

/* ---------- Hero: one window on the painting (Akshat's Contract Intelligence reference). Lex on the left,
   the agreement on the right. The window runs off the bottom edge; nothing is cut mid-line. ---------- */
/* Akshat, 24 Nov 2026 (round 2): a squarer card and a slightly smaller window inside it */
@media (min-width: 641px) { .product-hero__media:has(> .lxh) { aspect-ratio: 1280 / 780; } }
.lxh { position: absolute; left: 8cqw; right: 8cqw; top: 8cqw; bottom: 0; display: grid; grid-template-rows: auto minmax(0, 1fr);
  border-radius: var(--lx-r-win) var(--lx-r-win) 0 0; }
.lxh__bar { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 var(--lx-pad); border-bottom: 1px solid var(--lx-hair); min-width: 0; }
.lxh__crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--lx-ink-3); white-space: nowrap; }
.lxh__crumbs b { color: var(--lx-ink); }
.lxh__crumbs .lx-pill { margin-left: 4px; }
.lxh__send { margin-left: auto; }
.lxh__body { display: grid; grid-template-columns: min(400px, 40%) minmax(0, 1fr); min-height: 0; }
.lxh__chat { display: flex; flex-direction: column; gap: 20px; padding: var(--lx-pad) var(--lx-pad) 20px; border-right: 1px solid var(--lx-hair); min-width: 0; min-height: 0; overflow: hidden; }
.lxh__q { align-self: flex-end; max-width: 86%; padding: 8px 12px; border-radius: var(--lx-r-band); background: var(--lx-paper-2); }
.lxh__a { display: grid; gap: 10px; }
.lxh__who { display: flex; align-items: center; gap: 8px; }
.lxh__trace { display: flex; align-items: center; gap: 6px; margin-top: -4px; font-size: var(--lx-t-xs); color: var(--lx-ink-3); }
.lxh__list { display: grid; gap: 6px; }
.lxh__list li { position: relative; padding-left: 14px; }
.lxh__list li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 4px; height: 4px; border-radius: 50%; background: var(--lx-ink-3); }
.lxh__next { display: flex; align-items: center; gap: 8px; color: var(--lx-ink-2); }
/* Lex writing: lines draw in one after another, hold, then fade and start again (static under reduced motion) */
.lxh__note { margin: -8px 0 0 24px; gap: 9px; }
.lxh__note i:nth-child(2) { width: 88%; }
.lxh__note i:nth-child(3) { width: 54%; }
.lx-write i { transform-origin: 0 50%; animation: lx-write 9s cubic-bezier(0.3, 0.6, 0.2, 1) infinite both; }
.lx-write i:nth-child(2) { animation-delay: 0.7s; }
.lx-write i:nth-child(3) { animation-delay: 1.4s; }
.lx-write i:nth-child(4) { animation-delay: 2.1s; }
@keyframes lx-write { 0% { transform: scaleX(0); opacity: 1; } 18% { transform: scaleX(1); } 82% { transform: scaleX(1); opacity: 1; } 94%, 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lx-write i { animation: none; } }
.lxh__ask { margin-top: auto; display: grid; gap: 12px; padding: 12px 12px 12px 14px; border-radius: var(--lx-r-card); background: var(--lx-paper); box-shadow: inset 0 0 0 1px var(--lx-hair-2); }
.lxh__foot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lxh__file { overflow: hidden; }
.lxh__file span { overflow: hidden; text-overflow: ellipsis; }
.lxh__go { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; flex: none; border-radius: 50%; background: var(--lx-ink); color: var(--lx-paper); }
.lxh__doc { display: grid; justify-items: center; padding: 24px var(--lx-pad) 0; background: var(--lx-paper-2); min-width: 0; overflow: hidden; }
.lxh__page { width: 100%; max-width: 600px; box-sizing: border-box; padding: 32px 40px 0; display: grid; align-content: start; gap: 10px;
  border-radius: var(--lx-r-band) var(--lx-r-band) 0 0; background: var(--lx-paper); box-shadow: 0 0 0 1px var(--lx-hair), 0 10px 30px -18px rgba(31, 29, 26, 0.3); }
.lxh__title { font-size: var(--lx-t-m); font-weight: 500; }
.lxh__parties { margin-top: -6px !important; font-size: var(--lx-t-xs); color: var(--lx-ink-3); }
.lxh__h { margin-top: 10px !important; font-weight: 500; }
.lxh__page .lx-skel { margin-top: 2px; }

/* 1100px desktops: a tighter window, the same parts */
@container (max-width: 1060px) {
  .lxh { --lx-pad: 24px; }
  .lxh__bar { height: 48px; }
  .lxh__chat { gap: 16px; padding-bottom: 16px; }
  .lxh__page { padding: 24px 28px 0; }
  .lxh__trace { display: none; }
}
@container (max-width: 1060px) { .lxh__later { display: none; } }
/* Tablets: the window keeps both panes but drops the extras */
@container (max-width: 820px) {
  .lxh { --lx-pad: 20px; left: 5cqw; right: 5cqw; top: 5cqw; }
  .lxh__ask, .lxh__more { display: none; }
  .lxh__body { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
  .lxh__doc { padding-top: 16px; }
  .lxh__page { padding: 20px 20px 0; }
}
/* Phones: the window stands on its own (not cropped); Lex's answer first, then the clause it changed */
@media (max-width: 640px) {
  .lxh { position: relative; inset: auto; border-radius: var(--lx-r-win); }
  .lxh__send, .lxh__crumbs .lx-pill { display: none; }
  .lxh__body { grid-template-columns: minmax(0, 1fr); }
  .lxh__chat { border-right: 0; border-bottom: 1px solid var(--lx-hair); }
  .lxh__doc { padding: 16px 16px 0; }
  .lxh__page { padding: 18px 18px 14px; border-radius: var(--lx-r-band) var(--lx-r-band) 0 0; }
  .lxh__title, .lxh__parties { display: none; } /* the bar above already names the agreement */
  .lxh__page .lxh__h:first-of-type { margin-top: 0 !important; }
}

/* ---------- Feature rows: the four pictures share one frame, 8.75% of the slot (as upload and review on home) ---------- */
.lxm > .lxr, .lxm > .lxw, .lxm > .lxk, .lxm > .lxn { inset: 8.75cqw; }

/* Row 1, review: the clause with the proposed redline, and Lex's note in the margin */
.lxr { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lxr__bar { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 var(--lx-pad); border-bottom: 1px solid var(--lx-hair); white-space: nowrap; min-width: 0; }
.lxr__bar b { overflow: hidden; text-overflow: ellipsis; }
.lxr__by { margin-left: auto; font-size: var(--lx-t-xs); }
.lxr__body { display: grid; grid-template-columns: minmax(0, 1fr) 216px; min-height: 0; }
.lxr__doc { display: grid; align-content: start; gap: 10px; padding: var(--lx-pad) 20px 0 var(--lx-pad); }
.lxr__h { font-weight: 500; }
.lxr__h--next { margin-top: 10px !important; }
.lxr__doc .lx-skel { margin-top: 2px; }
.lxr__notes { display: grid; align-content: start; gap: 8px; padding: 20px var(--lx-pad) 0 12px; background: var(--lx-paper-2); box-shadow: inset 1px 0 0 var(--lx-hair); }
.lxr__note { display: grid; gap: 10px; padding: 14px; border-radius: var(--lx-r-band); background: var(--lx-paper); box-shadow: 0 0 0 1px var(--lx-hair), 0 4px 12px -8px rgba(31, 29, 26, 0.24); }
.lxr__note--quiet { padding: 8px 12px; box-shadow: 0 0 0 1px var(--lx-hair); }
.lxr__nh { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lxr__nh .lx-pill, .lxr__nh .lx-faint { margin-left: auto; }
.lxr__note--quiet .lx-pill { margin-left: 0; }
.lxr__acts { display: flex; gap: 6px; margin-top: 2px; }
.lxr__acts .lx-chip { height: 28px; }

/* Row 2, a workflow: four steps, the third running (Akshat's Legora references) */
.lxw { display: grid; align-content: start; gap: var(--lx-gap); padding: var(--lx-pad); }
.lxw__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lxw__head .lx-pill { margin-top: 4px; }
.lxw__sub { margin-top: 4px !important; color: var(--lx-ink-2); }
.lxw__steps { display: grid; gap: 8px; }
.lxw__steps li { position: relative; display: grid; gap: 4px; min-height: 58px; align-content: center; padding: 8px 44px 8px 14px; box-sizing: border-box;
  border-radius: var(--lx-r-band); background: var(--lx-paper-2); }
.lxw__steps li::after { content: ""; position: absolute; right: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--lx-hair-2); }
.lxw__steps .is-done::after { border: 0; background: var(--lx-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.2l2.2 2.2 4.6-4.8' fill='none' stroke='%23FCFBF9' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.lxw__steps .is-now { background: var(--lx-paper); box-shadow: 0 0 0 1px var(--lx-hair-2); }
.lxw__steps .is-now::after { border-color: rgba(31, 29, 26, 0.16); border-top-color: var(--lx-ink); animation: lx-spin 0.9s linear infinite; }
.lxw__n { font-size: var(--lx-t-xs); color: var(--lx-ink-3); }
.lxw__steps p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.lxw__steps .lx-agent { width: 14px; height: 14px; }
.lxw__steps .is-now .lx-shimmer { flex: 1 1 0%; min-width: 0; } /* wraps beside Lex's mark instead of under it */
.lxw__src { display: inline-flex; gap: 6px; margin-left: 2px; }
.lxw__steps .lx-chip .lx-ini { margin-left: -3px; }
@media (prefers-reduced-motion: reduce) { .lxw__steps .is-now::after { animation: none; } }

/* Row 3, the firm's knowledge: one list of playbooks, precedents and past matters */
.lxk { display: grid; align-content: start; gap: var(--lx-gap); padding: var(--lx-pad) 0 0; }
.lxk > *, .lxk > .lxk__band { margin: 0 var(--lx-pad); } /* the band is a <p>, which .lx p would otherwise reset */
.lxk__sub { margin-top: 4px !important; color: var(--lx-ink-2); }
.lxk__band { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 6px 0 12px; border-radius: var(--lx-r-band); background: var(--lx-paper-2); color: var(--lx-ink-2); white-space: nowrap; }
.lxk__band > span:first-of-type { overflow: hidden; text-overflow: ellipsis; }
.lxk__band b { color: var(--lx-ink); }
.lxk__band .lx-agent { width: 14px; height: 14px; }
.lxk__band .lx-chip { margin-left: auto; height: 28px; }
.lxk__table { display: grid; margin-top: -2px; }
.lxk__tr { display: grid; grid-template-columns: minmax(0, 1fr) 92px 52px; align-items: center; column-gap: 12px; min-height: 38px; padding: 0 12px; border-bottom: 1px solid var(--lx-hair); }
.lxk__tr:last-child { border-bottom: 0; }
.lxk__tr--head { min-height: 28px; border: 0; border-radius: var(--lx-r-band); background: var(--lx-paper-2); font-size: var(--lx-t-xs); color: var(--lx-ink-3); }
.lxk__tr > :last-child { font-size: var(--lx-t-xs); text-align: right; }
.lxk__name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lxk__name .lx-ic { color: var(--lx-ink-3); }
.lxk__name b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Row 4, the overview: sample counts by status, one square per matter */
.lxn { --lxn-r: #D3A464; --lxn-p: #CBC6BE; --lxn-s: #7C9F86;
  display: grid; align-content: start; gap: var(--lx-gap); padding: var(--lx-pad); }
.lxn__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lxn__head .lx-ic--xs { color: var(--lx-ink-3); margin-right: -2px; }
.lxn__figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.lxn__figs p { display: grid; gap: 2px; }
.lxn__figs b { font-size: var(--lx-t-l); line-height: 1.2; letter-spacing: -0.02em; }
.lxn__figs span { display: flex; align-items: center; gap: 6px; font-size: var(--lx-t-xs); color: var(--lx-ink-2); white-space: nowrap; }
.lxn__figs .r span::before, .lxn__figs .p span::before, .lxn__figs .s span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--lxn-p); }
.lxn__figs .r span::before { background: var(--lxn-r); }
.lxn__figs .s span::before { background: var(--lxn-s); }
.lxn i { display: block; border-radius: 2px; background: var(--lxn-p); }
.lxn i.r { background: var(--lxn-r); }
.lxn i.s { background: var(--lxn-s); }
.lxn__bar { display: flex; gap: 2px; height: 20px; margin-top: -4px; }
.lxn__bar i { flex: 1 1 0; }
.lxn__table { display: grid; margin-top: 4px; }
.lxn__tr { display: grid; grid-template-columns: minmax(0, 1fr) 118px 44px; align-items: center; column-gap: 12px; min-height: 38px; padding: 0 12px; border-bottom: 1px solid var(--lx-hair); }
.lxn__tr:last-child { border-bottom: 0; }
.lxn__tr--head { min-height: 28px; border: 0; border-radius: var(--lx-r-band); background: var(--lx-paper-2); font-size: var(--lx-t-xs); color: var(--lx-ink-3); }
.lxn__tr > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lxn__tr > :last-child { text-align: right; font-weight: 500; }
.lxn__tr--head > :last-child { font-weight: 400; }
.lxn__mini { display: flex; gap: 2px; }
.lxn__mini i { width: 6px; height: 12px; flex: none; }

/* Narrower slots (1025–1200px desktops, tablets): smaller margin, fewer whole parts */
@container (max-width: 560px) {
  .lxr__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .lxr__bar { height: 44px; }
  .lxr__doc { padding: 16px var(--lx-pad) 16px; }
  .lxr__more, .lxr__by, .lxr__h { display: none; }
  .lxr__notes { padding: 12px var(--lx-pad); box-shadow: inset 0 1px 0 var(--lx-hair); }
  .lxr__note { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 12px; }
  .lxr__nh { grid-column: 1 / -1; }
  .lxr__nh .lx-pill { margin-left: 4px; }
  .lxr__acts { margin: 0; }
  .lxr__acts .lx-chip { display: none; }
  .lxw { gap: 12px; }
  .lxw__n, .lxw__sub { display: none; }
  .lxw__steps li { min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
  .lxw__head .lx-pill { margin-top: 2px; }
  .lxk__sub, .lxk__more { display: none; }
  .lxk__tr { grid-template-columns: minmax(0, 1fr) 52px; }
  .lxk__kind { display: none; }
  .lxk__tr:nth-child(n+5) { display: none; }
  .lxk__tr:nth-child(4) { border-bottom: 0; }
  .lxn { gap: 12px; }
  .lxn__figs > :first-child { display: none; }
  .lxn__figs { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
  .lxn__tr:nth-child(5) { display: none; }
  .lxn__tr:nth-child(4) { border-bottom: 0; }
  .lxn__tr { grid-template-columns: minmax(0, 1fr) 44px; }
  .lxn__tr > :nth-child(2) { display: none; }
}
/* Phones: each picture grows to fit, so every part shows and nothing is cut */
@media (max-width: 767px) {
  .lxm > .lxr, .lxm > .lxw, .lxm > .lxk, .lxm > .lxn { inset: auto; }
  .lxr__body { grid-template-columns: minmax(0, 1fr); }
  .lxr__doc { padding-bottom: 20px; }
  .lxr__notes { padding: 16px; box-shadow: inset 0 1px 0 var(--lx-hair); }
  .lxr__more { display: grid; }
  .lxr__acts .lx-chip { display: inline-flex; }
  .lxr__note--quiet { display: none; }
  .lxw__n { display: block; }
  .lxw__steps li { min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .lxk { padding-bottom: 6px; }
  .lxk__tr:nth-child(n+5) { display: grid; }
  .lxk__tr:nth-child(4) { border-bottom: 1px solid var(--lx-hair); }
  .lxk__band .lx-chip { display: none; }
  .lxn__tr:nth-child(5) { display: grid; }
  .lxn__tr:nth-child(4) { border-bottom: 1px solid var(--lx-hair); }
  .lxr__note { grid-template-columns: minmax(0, 1fr); }
  .lxr__h { display: block; }
  .lxw__steps p { display: block; line-height: 1.7; }
  .lxw__steps p > * { vertical-align: middle; }
  .lxw__steps .lx-agent { display: inline-block; margin: -2px 6px 0 0; }
  .lxw__steps .lx-chip { margin: 0 2px; }
  .lxw__src { margin-left: 6px; }
  .lxk__name { align-items: flex-start; }
  .lxk__name > :first-child { margin-top: 1px; }
  .lxk__name b { white-space: normal; }
  .lxk__tr { padding-top: 9px; padding-bottom: 9px; }
  .lxk__tr--head { padding-top: 0; padding-bottom: 0; }
  .lxn__head .lx-chip { display: none; }
}
/* Tablets and small desktops (768–1080px), where the two-column slots are under ~450px: the LexOS slots grow to
   fit their window, as on phones, so nothing is clipped. The inset stays the same on every side. */
@media (min-width: 768px) and (max-width: 1080px) {
  .feature-row__media.lxm:has(> .lxr, > .lxw, > .lxk, > .lxn) { aspect-ratio: auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding: 36px; }
  .lxm > .lxr, .lxm > .lxw, .lxm > .lxk, .lxm > .lxn { position: relative; inset: auto; }
}
/* The smallest slots (tablets around 800px): names wrap rather than being cut, and the period chip steps aside */
@container (max-width: 400px) {
  .lxk__name { align-items: flex-start; }
  .lxk__name > :first-child { margin-top: 1px; }
  .lxk__name b { white-space: normal; }
  .lxk__tr { padding-top: 9px; padding-bottom: 9px; }
  .lxk__tr--head { padding-top: 0; padding-bottom: 0; }
  .lxn__head .lx-chip { display: none; }
}

/* ======================================================================
   LexOS "Why" cards (round 2, 24 Nov 2026): three benefits, each a small product card on a dulled painting.
   Collaboration (two cursors on one draft), getting more done (Lex's finished work, scrolling), research you can check.
   ====================================================================== */
.why-card__media.lxy { padding: 0; overflow: hidden; place-items: center; container-type: inline-size; } /* the light dotted surface from site.css, no painting (Akshat, 24 Nov 2026) */
.lxy > .lx { position: relative; width: 76%; }
.lxy .lx-card { padding: 20px; }

/* Collaboration: one draft, two people's cursors drifting over it */
.lxc__h { font-size: var(--lx-t-m); font-weight: 500; }
.lxc__meta { display: flex; align-items: center; gap: 8px; margin-top: 4px !important; color: var(--lx-ink-3); font-size: var(--lx-t-xs); }
.lxc__people { display: flex; margin-left: auto; }
.lxc__people .lx-ini { box-shadow: 0 0 0 2px var(--lx-paper); }
.lxc__people .lx-ini + .lx-ini { margin-left: -1px; }
.lxc__doc { display: grid; gap: 10px; margin-top: 16px; }
.lxc__doc .lx-skel { margin-top: 6px; }
.lxc__doc .lx-cl { margin: 2px -8px; padding: 5px 8px; }
.lxc__cur { position: absolute; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; animation: lxc-a 7s ease-in-out infinite alternate; }
.lxc__cur svg { width: 16px; height: 16px; flex: none; fill: var(--lx-ink); stroke: var(--lx-paper); stroke-width: 1.5; stroke-linejoin: round; }
.lxc__cur .lx-chip { height: 24px; margin-top: 12px; padding: 0 8px; box-shadow: 0 0 0 1px var(--lx-hair-2), 0 6px 14px -8px rgba(31, 29, 26, 0.35); }
.lxc__cur--a { left: 50%; top: 66%; }
.lxc__cur--b { left: 4%; top: 82%; animation-name: lxc-b; animation-duration: 8.5s; }
.lxc__cur--b svg { fill: var(--lx-paper); stroke: var(--lx-ink); }
@keyframes lxc-a { 0% { transform: translate(0, 0); } 45% { transform: translate(-26px, 10px); } 100% { transform: translate(-8px, -14px); } }
@keyframes lxc-b { 0% { transform: translate(0, 0); } 50% { transform: translate(24px, -12px); } 100% { transform: translate(44px, 2px); } }

/* Getting more done: what Lex finished today, scrolling slowly under a fade */
.lxq__head { display: flex; align-items: center; gap: 8px; }
.lxq__head .lx-faint { margin-left: auto; font-size: var(--lx-t-xs); }
.lxq__view { height: 186px; margin-top: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.lxq__list { animation: lxq 22s linear infinite; }
.lxq__list li { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 10px; align-items: center; min-height: 31px; color: var(--lx-ink-2); }
.lxq__list li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--lx-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.2l2.2 2.2 4.6-4.8' fill='none' stroke='%23FCFBF9' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.lxq__list b { color: var(--lx-ink); }
@keyframes lxq { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* Research you can check: the question, the firm's own sources, and an answer with its citations */
.lxs__q { padding: 8px 12px; border-radius: var(--lx-r-band); background: var(--lx-paper-2); }
.lxs__trace { display: flex; align-items: center; gap: 6px; margin-top: 14px !important; font-size: var(--lx-t-xs); color: var(--lx-ink-3); }
.lxs__a { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px !important; }
.lxs__a .lx-agent { margin-top: 1px; }
.lxs__docs { display: grid; margin-top: 14px; border-top: 1px solid var(--lx-hair); }
.lxs__docs li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; min-height: 32px; border-bottom: 1px solid var(--lx-hair); }
.lxs__docs li:last-child { border-bottom: 0; }
.lxs__docs span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (prefers-reduced-motion: reduce) { .lxc__cur, .lxq__list { animation: none; } }
/* Small squares (tablets, where the card sits beside its text): fewer parts, never cut */
@container (max-width: 380px) {
  .lxy > .lx { width: 84%; }
  .lxy .lx-card { padding: 16px; }
  .lxq__view { height: 155px; }
}

/* ======================================================================
   LexReview page (platform/lexreview), 25 Nov 2026. Same system: Inter, 11/12/14/20, one --lx-pad per window,
   pills 18 / chips 26 / buttons 28, brick only for Lex's mark. Sample content, fictional names.
   ====================================================================== */
/* ---------- Hero, round 2 (Akshat, 25 Nov 2026: the first one was confusing, half empty and didn't read as a product).
   Now the LexOS hero window (.lxh, above) with LexReview content, so the two pages show one product: the founder's brief,
   Lex's draft with the terms it used, the matter's state, and the draft beside it with each term cited. ---------- */
.lx .lxv__fee { display: flex; align-items: center; gap: 8px; margin-left: auto; white-space: nowrap; }
.lx .lxv__state { margin-top: auto; padding: 4px 12px; border-radius: var(--lx-r-band); background: var(--lx-paper-2); }
.lxv__state li { min-height: 36px; }
.lxv__state .is-next { color: var(--lx-ink-3); }
.lxv__state .is-next::before { border: 1.5px solid var(--lx-hair-2); }
.lxv__state .lx-steps li::after, .lxv__state li::after { top: calc(50% + 9px); height: calc(100% - 18px); }
.lx .lxv__sub { display: block; font-size: var(--lx-t-xs); color: var(--lx-ink-3); }
.lxv .lxh__trace:not(.lxh__later) { display: flex; } /* the playbook line stays at every size */
@container (max-width: 1060px) { .lxv .lxh__ask { display: none; } } /* 1100px desktops: the matter's state closes the pane */
.lxv .lxh__ack { margin-top: -8px; }
.lxv__state + .lxh__ask { margin-top: 0; }
.lxv .lxh__page .lx-cl + .lxh__h { margin-top: 10px !important; }

/* ---------- LexReview "How it works": four step pictures, one frame (8.75% of the slot, as the home feature rows) ---------- */
.steps__media .pvs > .lxt { position: absolute; inset: 8.75cqw; }
/* Step 1 is the home "Agents" picture (composer and Lex's run, .lxa): same side inset as the other steps, centred */
.steps__media .pvs > .lxa { position: absolute; left: 8.75cqw; right: 8.75cqw; top: 50%; transform: translateY(-50%); display: grid; }
.lxt { display: flex; flex-direction: column; padding: var(--lx-pad); }
.lxt__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lxt__head > .lx-pill, .lxt__locked { margin-top: 2px; }
.lxt__label { font-size: var(--lx-t-xs); color: var(--lx-ink-3); }
.lxt .lx-title { margin-top: 4px; }
.lxt__body { display: grid; align-content: start; gap: 12px; margin: 20px 0 16px; }
.lxt__body--doc { gap: 10px; }
.lxt__body--doc .lx-skel { margin-top: 6px; }
.lxt__body--fill { flex: 1 1 auto; grid-template-rows: minmax(0, 1fr); }
.lxt__brief { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 14px 14px 12px 16px; border-radius: var(--lx-r-band); background: var(--lx-paper-2); box-shadow: inset 0 0 0 1px var(--lx-hair); font-size: var(--lx-t-m); line-height: 1.55; }
.lxt__brief .lx-chip { margin-top: auto; font-size: var(--lx-t-s); }
.lxt__h { font-weight: 500; }
.lx .lxt__h ~ .lxt__h { margin-top: 6px; }
.lxt__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--lx-hair); white-space: nowrap; }
.lxt__note { display: flex; align-items: center; gap: 8px; color: var(--lx-ink-2); }
.lxt__note .lx-ic { color: var(--lx-ink-3); }
.lxt__kv { display: grid; margin: 16px 0 0; }
.lxt__head .lx-title { white-space: nowrap; }
.lxt__kv > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 40px; border-bottom: 1px solid var(--lx-hair); }
.lxt__kv > div:last-child { border-bottom: 0; }
.lxt__kv dt { color: var(--lx-ink-2); }
.lxt__kv dd { margin: 0; font-weight: 500; }
/* "Locked": the fee's lock closes when its step comes up */
.lxt__locked { display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 7px; border-radius: 999px; background: var(--lx-paper-3); color: var(--lx-ink); font-size: var(--lx-t-xs); font-weight: 500; white-space: nowrap; }
.lxt__locked .lx-ic { width: 11px; height: 11px; }
.lxt__who { display: flex; align-items: center; gap: 10px; }
.lxt__who .lx-ini { width: 28px; height: 28px; font-size: var(--lx-t-xs); }
.lxt__who > span:last-child { display: grid; line-height: 1.35; }
.lxt__who .lx-faint { font-size: var(--lx-t-xs); }
.lxt .lx-steps { margin-top: 4px; }

/* ---------- LexReview "Why" cards, round 2 (25 Nov 2026): Akshat's Harvey references, in our words, on the light dotted
   surface (.lxy, as LexOS). An agent menu, a lawyer's named cursor on the draft, and what came back since your last visit. ---------- */
/* An agent drafts it: the "assign to an agent" menu, Draft MSA picked; the last row fades out of the menu */
.lxg { display: grid; justify-items: end; gap: 8px; }
.lxg__btn { height: 28px; padding: 0 12px; background: var(--lx-paper-2); box-shadow: inset 0 0 0 1px var(--lx-hair); font-weight: 500; }
.lxy .lxg__menu { position: relative; justify-self: stretch; padding: 6px; overflow: hidden; }
.lxg__list { position: relative; height: calc(36px * 4 + 20px); overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.lxg__list li { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; white-space: nowrap; }
.lxg__list .lx-ic { color: var(--lx-ink-3); }
.lxg__list .is-on .lx-ic { color: var(--lx-ink); }
.lxg__hl { position: absolute; left: 6px; right: 6px; top: 6px; height: 36px; border-radius: var(--lx-r-band); background: var(--lx-paper-3); opacity: 0.7; transform: translateY(36px); }
/* A qualified lawyer signs it off: her named cursor on the clause she is checking (dark tag, as Akshat's reference) */
.lxj__pill { margin-left: auto; }
.lxj .lxj__cl { margin: 2px -8px; padding: 5px 8px; border-radius: var(--lx-r-ctl); background: var(--lx-warn-tint); color: var(--lx-ink); }
.lxj .lxc__doc .lx-skel { margin-top: 6px; }
.lxj__cur { position: absolute; right: 6%; top: 58%; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; }
.lxj__cur svg { width: 16px; height: 16px; flex: none; fill: var(--lx-ink); stroke: var(--lx-paper); stroke-width: 1.5; stroke-linejoin: round; }
.lxj__tag { display: inline-flex; align-items: center; height: 24px; margin-top: 12px; padding: 0 9px; border-radius: var(--lx-r-ctl); background: var(--lx-ink); color: var(--lx-paper);
  white-space: nowrap; box-shadow: 0 0 0 1.5px var(--lx-paper), 0 6px 14px -8px rgba(31, 29, 26, 0.45); }
/* Within 48 hours: what came back since your last visit, one small card per document */
.lxz { display: grid; gap: 8px; }
.lxy .lxz > .lx-card { box-shadow: 0 0 0 1px var(--lx-hair), 0 1px 2px rgba(31, 29, 26, 0.04), 0 10px 24px -16px rgba(31, 29, 26, 0.22); }
.lxy .lxz__note { display: grid; gap: 12px; padding: 18px 20px; }
.lxz__note .lx-agent { width: 18px; height: 18px; }
.lxz__note p { font-size: var(--lx-t-m); line-height: 1.45; }
.lxy .lxz__doc { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; min-width: 0; }
.lxz__doc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lxy .lxz__ghost { height: 28px; opacity: 0.5; }
@container (max-width: 380px) {
  .lxy .lxz__note { padding: 14px 16px; gap: 10px; }
  .lxy .lxz__doc { height: 40px; padding: 0 14px; }
  .lxy .lxg__menu { padding: 4px; }
  .lxy .lxz__ghost { display: none; }
  .lxg__hl { left: 4px; right: 4px; top: 4px; height: 32px; transform: translateY(32px); }
  .lxg__list { height: calc(32px * 4 + 16px); }
  .lxg__list li { height: 32px; }
}

/* ---------- Motion. Each picture plays once when it first comes into view (scripts/site.js adds .is-playing to
   [data-play]); the step pictures replay when their step becomes active. Without JavaScript, or with reduced motion,
   nothing moves and the static state is the end state. Opacity and transform only, so nothing shifts. ---------- */
@keyframes lx-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes lx-pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes lx-out { to { opacity: 0; } }
@keyframes lx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lx-shackle { from { transform: translateY(-3px); } }
@media (prefers-reduced-motion: no-preference) {
  /* Hero: Lex's answer arrives line by line, then the matter's state; the draft's citations mark in as their terms land */
  html:not(.no-js) .lxv[data-play] .lxh__a > *, html:not(.no-js) .lxv[data-play] .lxh__list > li, html:not(.no-js) [data-play] .lxv__state > li { animation: lx-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both paused; }
  html:not(.no-js) .lxv[data-play] .lxh__a > :nth-child(1) { animation-delay: 0.3s; }
  html:not(.no-js) .lxv[data-play] .lxh__a > :nth-child(2) { animation-delay: 0.7s; }
  html:not(.no-js) .lxv[data-play] .lxh__a > :nth-child(3) { animation-delay: 1.1s; }
  html:not(.no-js) .lxv[data-play] .lxh__a > :nth-child(4) { animation-name: none; }
  html:not(.no-js) .lxv[data-play] .lxh__list > li:nth-child(1) { animation-delay: 1.4s; }
  html:not(.no-js) .lxv[data-play] .lxh__list > li:nth-child(2) { animation-delay: 1.6s; }
  html:not(.no-js) .lxv[data-play] .lxh__list > li:nth-child(3) { animation-delay: 1.8s; }
  html:not(.no-js) [data-play] .lxv__state > li:nth-child(1) { animation-delay: 2.3s; }
  html:not(.no-js) [data-play] .lxv__state > li:nth-child(2) { animation-delay: 2.5s; }
  html:not(.no-js) .lxv[data-play] .lxh__page .lx-cite { animation: lx-pop 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) 2s both paused; }
  /* Why cards: the highlight moves to Draft MSA; the lawyer's cursor arrives and the clause lights; the documents arrive */
  html:not(.no-js) [data-play] .lxg__hl { animation: lxg-pick 0.45s cubic-bezier(0.3, 0, 0.2, 1) 1s both paused; }
  html:not(.no-js) [data-play] .lxj__cur { animation: lxj-in 1.3s cubic-bezier(0.25, 0.7, 0.2, 1) 0.4s both paused; }
  html:not(.no-js) [data-play] .lxj__cl { animation: lxj-mark 0.5s ease 1.6s both paused; }
  html:not(.no-js) .lxz[data-play] > * { animation: lx-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both paused; }
  html:not(.no-js) .lxz[data-play] > :nth-child(1) { animation-delay: 0.3s; }
  html:not(.no-js) .lxz[data-play] > :nth-child(2) { animation-delay: 0.8s; }
  html:not(.no-js) .lxz[data-play] > :nth-child(3) { animation-delay: 1s; }
  html:not(.no-js) .lxz[data-play] > :nth-child(4) { animation-delay: 1.2s; }
  html:not(.no-js) .lxz[data-play] > :nth-child(5) { animation-delay: 1.4s; }
  /* Step 2: the "Locked" tag arrives and its shackle closes */
  html:not(.no-js) [data-play] .lxt__locked { animation: lx-in 0.4s ease-out 0.5s both paused; }
  html:not(.no-js) [data-play] .lxt__shackle { animation: lx-shackle 0.35s cubic-bezier(0.3, 0, 0.2, 1) 1s both paused; }
  /* Same prefix as the paused rules above, plus .is-playing, so these always win */
  html:not(.no-js) .lxv[data-play].is-playing .lxh__a > *, html:not(.no-js) .lxv[data-play].is-playing .lxh__list > li,
  html:not(.no-js) [data-play].is-playing .lxv__state > li, html:not(.no-js) .lxv[data-play].is-playing .lxh__page .lx-cite,
  html:not(.no-js) [data-play].is-playing .lxg__hl, html:not(.no-js) [data-play].is-playing .lxj__cur,
  html:not(.no-js) [data-play].is-playing .lxj__cl, html:not(.no-js) .lxz[data-play].is-playing > *,
  html:not(.no-js) [data-play].is-playing .pvs.is-active .lxt__locked, html:not(.no-js) [data-play].is-playing .pvs.is-active .lxt__shackle { animation-play-state: running; }
  .steps__media .pvs:not(.is-active) .lxt__locked, .steps__media .pvs:not(.is-active) .lxt__shackle { animation-name: none; } /* replays when its step comes back */
}
@keyframes lxg-pick { from { transform: translateY(0); } }
@keyframes lxj-in { from { opacity: 0; transform: translate(56px, 40px); } 30% { opacity: 1; } }
@keyframes lxj-mark { from { background-color: transparent; } }

/* ---------- Responsive ---------- */
/* Narrow step slots (1025–1200px desktops): a smaller margin and fewer, whole parts */
@container (max-width: 540px) {
  .lxt { --lx-pad: 20px; }
  .lxt .lxt__more { display: none; }
  .lxt__body { margin: 16px 0 12px; }
  .lxt__kv { margin-top: 12px; }
  .lxt__kv > div { min-height: 36px; }
  .lxt__foot { padding-top: 12px; }
}
@media (max-width: 1024px) {
  .steps__media.lxm { aspect-ratio: auto; max-height: none; display: grid; padding: 40px; }
  .steps__media .pvs { position: relative; inset: auto; }
  .steps__media .pvs:not(.is-active) { display: none; }
  .steps__media .pvs > .lxt { position: relative; inset: auto; min-height: 300px; }
  .steps__media .pvs > .lxa { position: relative; inset: auto; transform: none; }
}
/* Tablets: the hero window grows to fit its content, as on phones, so no line is cut at the card's bottom edge */
@media (min-width: 641px) and (max-width: 1000px) {
  .product-hero__media:has(> .lxv) { aspect-ratio: auto; display: grid; padding: 40px 40px 0; }
  .lxv { position: relative; inset: auto; }
}
/* Phones: the step picture grows to fit; the hero follows the LexOS hero's phone rules (.lxh) */
@media (max-width: 640px) {
  .lx .lxv__fee, .lxv__more { display: none; }
  .steps__media.lxm { padding: var(--s-8) var(--s-4); }
  .steps__media .pvs > .lxt { min-height: 0; }
  .lxt__foot { margin-top: 20px; }
}
