/* Landing page only. Kept out of styles.css so the marketing site can be bold
   without any risk of leaking into the app's chrome. */

.ld-landing {
  --ink: #0d0d12;
  --ink-2: #1a1a22;
  --paper: #ffffff;
  --mist: #f6f6fa;
  --line: #e6e6ee;
  --dim: #6a6a7c;
  --brand: #2352c9;
  --brand-2: #3b6ce0;
  --brand-3: #0d9488;
  --accent: #12b981;
  /* The dark feature section's backdrop. Deliberately NOT --ink: that token is
     the primary *text* colour and flips to near-white in dark mode, which put
     white headings on a white panel. This one never inverts. */
  --panel-dark: #0d0d12;
  --radius: 18px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Nunito Sans", Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.ld-landing * { box-sizing: border-box; }
.ld-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- nav ---------- */
.ld-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.ld-nav.stuck { border-bottom-color: var(--line); background: rgba(255, 255, 255, .92); }
.ld-nav-in { display: flex; align-items: center; gap: 26px; height: 68px; }
.ld-logo { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.ld-logo span { color: var(--brand); }
.ld-nav-links { display: flex; gap: 22px; margin-left: 8px; }
.ld-nav-links a { color: var(--dim); text-decoration: none; font-size: 14.5px; font-weight: 550; transition: color .15s; }
.ld-nav-links a:hover { color: var(--ink); }
.ld-nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.ld-signin { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; }

.ld-btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s;
}
.ld-btn-primary {
  background: linear-gradient(115deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; box-shadow: 0 8px 22px -8px rgba(35, 82, 201, .65);
}
.ld-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(35, 82, 201, .75); }
.ld-btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.ld-btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.ld-btn-lg { padding: 15px 30px; font-size: 16.5px; }
/* The background is fixed white, so the text must be fixed dark. --ink is the
   theme's text token: in dark mode it flips to near-white and this button
   became white-on-white at 1.12:1 — invisible. Fourth instance of that trap
   (see .ld-sec.ink, .broker-band, .cta-light). */
.ld-btn-white { background: #fff; color: #14141b; }
.ld-btn-white:hover { transform: translateY(-2px); }

/* ---------- hero ---------- */
.ld-hero { position: relative; padding: 92px 0 40px; }
/* The mesh tracks the pointer. --mx/--my are set on the hero in JS and default
   to centre, so the gradient is right before the first mouse move and on any
   device that never sends one. */
.ld-hero { --mx: 50%; --my: 30%; }
.ld-hero-bg {
  position: absolute; inset: -160px 0 auto; height: 720px; z-index: 0;
  background:
    radial-gradient(38% 38% at var(--mx) var(--my), rgba(59, 108, 224, .34), transparent 64%),
    radial-gradient(46% 44% at 18% 22%, rgba(59, 108, 224, .26), transparent 62%),
    radial-gradient(40% 40% at 82% 12%, rgba(13, 148, 136, .20), transparent 60%),
    radial-gradient(50% 50% at 60% 60%, rgba(35, 82, 201, .16), transparent 65%);
  filter: blur(14px);
  animation: ld-drift 22s ease-in-out infinite alternate;
  transition: background .35s ease-out;
}
@keyframes ld-drift {
  from { transform: translate3d(-16px, -10px, 0) scale(1); }
  to   { transform: translate3d(20px, 16px, 0) scale(1.06); }
}
.ld-hero-in { position: relative; z-index: 1; text-align: center; }

.ld-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 26px;
  box-shadow: 0 3px 10px -4px rgba(13, 13, 18, .12);
}
.ld-pill b {
  background: var(--brand); color: #fff; border-radius: 999px;
  padding: 3px 9px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
}

.ld-hero h1 {
  margin: 0 0 20px; font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02;
  letter-spacing: -.035em; font-weight: 800;
}
.ld-grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 45%, var(--brand-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ld-sub {
  margin: 0 auto 32px; max-width: 620px; font-size: clamp(16.5px, 1.7vw, 19.5px);
  line-height: 1.6; color: var(--dim);
}
.ld-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ld-hero-note { margin-top: 16px; font-size: 13.5px; color: var(--dim); }

/* ---------- product mock ---------- */
.ld-shot {
  position: relative; z-index: 1; margin: 56px auto 0; max-width: 1060px;
  border-radius: 20px; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 40px 90px -40px rgba(13, 13, 18, .38), 0 8px 24px -12px rgba(13, 13, 18, .14);
  overflow: hidden;
}
.ld-shot-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--mist);
}
.ld-dot { width: 11px; height: 11px; border-radius: 50%; background: #d9d9e3; }
.ld-shot-title { margin-left: 10px; font-size: 12.5px; color: var(--dim); font-weight: 600; }
.ld-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px; }
.ld-col-h {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; font-weight: 700; color: var(--dim); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 9px;
}
.ld-col-h b { background: var(--mist); color: var(--ink-2); border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.ld-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; margin-bottom: 9px; text-align: left;
  box-shadow: 0 1px 2px rgba(13, 13, 18, .04);
}
.ld-card strong { display: block; font-size: 13.5px; letter-spacing: -.01em; }
.ld-card span { display: block; font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.ld-card em { display: block; font-size: 15px; font-weight: 800; font-style: normal; margin-top: 6px; }
.ld-bar { height: 4px; border-radius: 999px; background: var(--mist); margin-top: 8px; overflow: hidden; }
.ld-bar i { display: block; height: 100%; border-radius: 999px; transition: width .9s cubic-bezier(.2,.8,.2,1); }

/* The hero board advances a file through the stages on a loop. The product's
   whole promise is that work moves, so a frozen screenshot undersells it. The
   card lifts, fades, and re-enters in the next column — no layout thrash,
   because only opacity and transform animate. */
.ld-card { transition: opacity .42s ease, transform .42s cubic-bezier(.2,.8,.2,1); }
.ld-card.ld-leaving { opacity: 0; transform: translateX(14px) scale(.97); }
.ld-card.ld-arriving { animation: ld-land .52s cubic-bezier(.2,.8,.2,1); }
@keyframes ld-land {
  from { opacity: 0; transform: translateX(-16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.ld-card.ld-lit {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(35, 82, 201, .12), 0 6px 16px -8px rgba(35, 82, 201, .5);
}
.ld-col-h b { transition: background .3s, color .3s; }
.ld-col-h b.ld-bump { background: var(--brand); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .ld-card, .ld-card.ld-leaving, .ld-card.ld-arriving { animation: none; transition: none; opacity: 1; transform: none; }
}

/* Dragging for real. The caption promised it, so it has to work. */
.ld-board .ld-card { cursor: grab; touch-action: none; user-select: none; }
.ld-card.ld-dragging {
  position: fixed; z-index: 60; margin: 0; cursor: grabbing;
  transition: none; pointer-events: none;
  transform: rotate(-1.6deg) scale(1.03);
  box-shadow: 0 24px 48px -18px rgba(13, 13, 18, .42), 0 0 0 1px var(--brand);
}
.ld-board > div.ld-over {
  background: rgba(35, 82, 201, .06);
  outline: 2px dashed rgba(35, 82, 201, .45); outline-offset: 4px; border-radius: 12px;
}

/* ---------- capability strip ---------- */
.ld-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 72px; background: var(--mist); }
.ld-strip-in { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding: 20px 0; }
.ld-strip span { font-size: 13px; font-weight: 650; color: var(--dim); display: inline-flex; align-items: center; gap: 8px; }
.ld-strip span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); }

/* ---------- proof band ---------- */
.ld-proof { padding: 84px 0 78px; border-bottom: 1px solid var(--line); }
.ld-proof-in {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 34px;
}
.ld-proof-cell { position: relative; padding-left: 20px; }
.ld-proof-cell::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
  opacity: .55;
}
.ld-proof-n {
  font-size: clamp(30px, 3.1vw, 40px); font-weight: 800; letter-spacing: -.035em;
  line-height: 1; margin-bottom: 11px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ld-proof-l { font-size: 14px; line-height: 1.58; color: var(--dim); }

@media (max-width: 900px) { .ld-proof-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ld-proof-in { grid-template-columns: 1fr; } .ld-proof { padding: 58px 0; } }

/* ---------- sections ---------- */
/* 96px between every section, eight times over, was ~400px of the page's
   length on its own and made the whole thing feel airless-but-endless. */
.ld-sec { padding: 74px 0; }
.ld-sec.alt { background: var(--mist); }
/* Was a near-black slab. Now a lit violet canvas — the same family as the hero
   mesh, so the page reads as one piece instead of a bright top and a black
   hole in the middle. Text goes back to the normal ink tokens, which means the
   whole section inherits dark mode for free instead of fighting it. */
.ld-sec.feat {
  color: var(--ink);
  background:
    radial-gradient(58% 52% at 12% 0%, rgba(59, 108, 224, .16), transparent 64%),
    radial-gradient(46% 46% at 88% 8%, rgba(13, 148, 136, .11), transparent 66%),
    radial-gradient(60% 50% at 70% 100%, rgba(35, 82, 201, .10), transparent 68%),
    linear-gradient(180deg, #fbfaff 0%, #f2eefc 100%);
}
.ld-eyebrow {
  font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.ld-sec.feat .ld-eyebrow { color: var(--brand); }
/* 46px extra-bold on six headings meant nothing was subordinate to anything.
   Slightly smaller, and the section leads tighten up under them. */
.ld-h2 { margin: 0 0 14px; font-size: clamp(29px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
.ld-lead { margin: 0 0 34px; max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--dim); }
.ld-center { text-align: center; }
.ld-center .ld-lead { margin-left: auto; margin-right: auto; }

/* alternating feature rows */
.ld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ld-row + .ld-row { margin-top: 96px; }
.ld-row.flip .ld-row-copy { order: 2; }

/* Four full-width zigzags in a row was the same beat four times, and roughly
   2,200px of it. Two-up cards say the same words in half the height and give
   the section a shape of its own instead of repeating the one above. */
.ld-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ld-quad .ld-row,
.ld-quad .ld-row.flip {
  display: flex; flex-direction: column; gap: 22px; margin: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 1px 2px rgba(60,40,120,.04), 0 18px 40px -34px rgba(60,40,120,.5);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, border-color .18s;
}
.ld-quad .ld-row:hover {
  transform: translateY(-3px); border-color: rgba(35,82,201,.28);
  box-shadow: 0 1px 2px rgba(60,40,120,.05), 0 26px 50px -30px rgba(60,40,120,.55);
}
/* The alternation is what made it monotonous — cancel it. */
.ld-quad .ld-row .ld-row-copy,
.ld-quad .ld-row.flip .ld-row-copy { order: 0; }
/* A bordered, shadowed panel inside a bordered, shadowed card is a box in a
   box. Inside the quad the panel becomes a flat tinted well, full width. */
.ld-quad .ld-panel {
  order: 1; margin: 0 0 -4px; width: 100%; margin-top: auto;
  border: 0; box-shadow: none; background: var(--mist);
  border-radius: 14px; padding: 16px;
}
/* Subordinate to the section h2, which is the point of a hierarchy. */
.ld-quad .ld-row h3 { font-size: 20.5px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.ld-quad .ld-row p { font-size: 15.5px; margin-bottom: 16px; }
.ld-quad .ld-ticks li { font-size: 14.5px; }

@media (max-width: 900px) { .ld-quad { grid-template-columns: 1fr; } }
.ld-row h3 { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.025em; line-height: 1.15; }
.ld-row p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.65; color: var(--dim); }
.ld-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ld-ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; }
.ld-tick {
  flex: 0 0 auto; width: 21px; height: 21px; border-radius: 50%; margin-top: 1px;
  background: rgba(17, 124, 89, .12); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
}
.ld-panel {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: 0 24px 60px -34px rgba(13, 13, 18, .34); padding: 20px; overflow: hidden;
}
.ld-sec.alt .ld-panel { background: #fff; }

/* mini widgets inside panels */
.ld-kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.ld-kv:last-child { border-bottom: 0; }
.ld-kv b { font-weight: 750; }
/* --accent (#12b981) is a fill colour: as 14px type on white it is 2.5:1.
   --green/--red come from styles.css and invert with the theme, so they
   clear AA in both — a hardcoded dark green only fixed light mode. */
.ld-kv .up { color: var(--green); }
.ld-kv .down { color: var(--red); }

/* Security cards — a calm three-up grid of controls that are actually built. */
.ld-sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .ld-sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ld-sec-grid { grid-template-columns: 1fr; } }
.ld-sc {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 22px 20px; box-shadow: 0 18px 44px -34px rgba(13, 13, 18, .3);
}
.ld-sc-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 13px;
  background: color-mix(in srgb, var(--brand, #4b74f5) 12%, transparent);
  color: var(--brand, #4b74f5);
}
.ld-sc h4 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.01em; }
.ld-sc p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--dim); }
.ld-soc-note {
  max-width: 640px; margin: 0 auto; font-size: 14px; line-height: 1.6; color: var(--dim);
  padding: 16px 20px; border: 1px dashed var(--line); border-radius: var(--radius);
  background: color-mix(in srgb, var(--line) 22%, transparent);
}
.ld-soc-note strong { color: var(--ink, inherit); }

/* Per-feature pages (/borrower-portal.html etc.) */
.ft-hero { padding: 132px 0 44px; text-align: center; }
.ft-hero h1 {
  font-size: clamp(33px, 5.2vw, 54px); letter-spacing: -.03em; line-height: 1.04;
  margin: 6px 0 16px;
}
.ft-hero p { max-width: 640px; margin: 0 auto 28px; font-size: 18px; line-height: 1.6; color: var(--dim); }
.ft-more { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.ft-more-link {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  padding: 11px 18px; border-radius: 999px; font-weight: 650; font-size: 14.5px;
  border: 1px solid var(--line); color: var(--ink, inherit); background: #fff;
  transition: transform .12s, box-shadow .12s;
}
.ft-more-link:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -18px rgba(13,13,18,.4); }
.ld-sec.alt .ft-more-link { background: #fff; }
.ld-lender {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 9px;
}
.ld-lender.best { border-color: var(--brand); background: rgba(35, 82, 201, .045); }
.ld-rank {
  width: 30px; height: 30px; border-radius: 9px; background: var(--mist);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
}
.ld-lender.best .ld-rank { background: var(--brand); color: #fff; }
.ld-lender-main { flex: 1; min-width: 0; }
.ld-lender-main strong { display: block; font-size: 14px; }
.ld-lender-main span { font-size: 12px; color: var(--dim); }
.ld-lender-num { text-align: right; font-weight: 800; font-size: 14.5px; }
.ld-badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; background: rgba(35, 82, 201, .1); color: var(--brand);
}

.ld-ring { display: flex; align-items: center; gap: 18px; }
.ld-ring-svg { flex: 0 0 auto; }
.ld-ring-num { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }

/* ---------- feature grid ---------- */
.ld-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ld-tile {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: #fff;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, border-color .18s;
}
.ld-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -26px rgba(13, 13, 18, .3); border-color: #d6d6e4; }
.ld-tile-ico {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(35, 82, 201,.12), rgba(13, 148, 136,.12)); color: var(--brand);
}
.ld-tile h4 { margin: 0 0 7px; font-size: 16.5px; letter-spacing: -.015em; }
.ld-tile p { margin: 0; font-size: 14.5px; line-height: 1.58; color: var(--dim); }
/* Cards float on the violet canvas: near-white, a violet-tinted hairline, and
   a soft coloured shadow rather than a grey one. */
.ld-sec.feat .ld-tile {
  background: rgba(255,255,255,.86);
  border-color: rgba(35, 82, 201,.13);
  box-shadow: 0 1px 2px rgba(60,40,120,.05), 0 14px 34px -28px rgba(60,40,120,.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ld-sec.feat .ld-tile:hover { border-color: rgba(35, 82, 201,.3); }

/* ---------- real product screens ----------
   A tab strip over a single browser frame. All seven images live in the DOM
   stacked on top of each other and cross-fade, so switching never reflows the
   page; only the first has a src, the rest are fetched the first time they are
   shown (see screenTabs in index.html). */
.ld-screens { margin-top: 8px; }
.ld-screen-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px;
}
.ld-screen-tab {
  font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer;
  padding: 9px 17px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--dim);
  transition: transform .16s cubic-bezier(.2,.8,.2,1), color .16s, border-color .16s, background .16s, box-shadow .16s;
}
.ld-screen-tab:hover { transform: translateY(-2px); color: var(--ink); border-color: var(--brand); }
.ld-screen-tab[aria-selected="true"] {
  background: linear-gradient(115deg, var(--brand), var(--brand-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 24px -12px rgba(35, 82, 201, .8);
}
.ld-screen-tab:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

.ld-screen-stage {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--paper);
  box-shadow: 0 40px 90px -44px rgba(13, 13, 18, .42), 0 6px 20px -12px rgba(13, 13, 18, .12);
}
.ld-screen-chrome {
  display: flex; align-items: center; gap: 7px; padding: 11px 15px;
  border-bottom: 1px solid var(--line); background: var(--mist);
}
.ld-screen-url {
  margin-left: 10px; font-size: 12.5px; color: var(--dim); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* The pane holds its own height so a taller or phone-shaped shot does not
   make the page jump when you switch tabs. */
.ld-screen-pane { position: relative; aspect-ratio: 1440 / 900; background: var(--mist); }
.ld-screen-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transition: opacity .34s ease;
}
.ld-screen-img.on { opacity: 1; }
/* The borrower shot is a phone. Letterbox rather than crop — and drop-shadow
   rather than box-shadow, because drop-shadow follows the contained image's
   real edges, so the phone reads as floating instead of sitting in a grey
   rectangle. The stage also shortens for this tab (see screenTabs). */
.ld-screen-img.phone {
  object-fit: contain; padding: 26px 0;
  filter: drop-shadow(0 20px 38px rgba(13, 13, 18, .22));
  background:
    radial-gradient(56% 78% at 50% 0%, rgba(35, 82, 201, .10), transparent 72%),
    var(--mist);
}
.ld-screen-cap {
  margin: 20px auto 0; max-width: 640px; text-align: center;
  font-size: 15.5px; line-height: 1.6; color: var(--dim);
  transition: opacity .22s;
}
.ld-screen-cap.swap { opacity: 0; }

@media (max-width: 720px) {
  .ld-screen-tab { font-size: 13px; padding: 8px 13px; }
  .ld-screen-cap { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-screen-img, .ld-screen-cap { transition: none; }
}

/* ---------- feature bento ---------- */
/* Same twelve facts as the old flat grid, arranged so there is somewhere to
   look first. Six columns: two headliners at three each, then rows of three
   at two each, closing on one full-width. */
.ld-feat-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 560px; pointer-events: none;
  background:
    radial-gradient(42% 50% at 26% 30%, rgba(59, 108, 224, .22), transparent 70%),
    radial-gradient(38% 44% at 76% 18%, rgba(13, 148, 136, .14), transparent 70%);
  filter: blur(10px);
}
.ld-sec.feat { position: relative; overflow: clip; }
.ld-sec.feat .ld-wrap { position: relative; z-index: 1; }

.ld-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ld-bento .ld-tile {
  position: relative; overflow: hidden;
  grid-column: span 2; margin: 0;
  padding: 26px 24px;
  display: flex; flex-direction: column;
}
.ld-bento .ld-tile-lg { grid-column: span 3; padding: 32px 30px; }
.ld-bento .ld-tile-wide {
  grid-column: span 6;
  flex-direction: row; align-items: flex-start; gap: 20px;
  background: linear-gradient(120deg, rgba(59, 108, 224,.14), rgba(13, 148, 136,.08));
  border-color: rgba(147, 178, 245,.28);
}

/* The old 14.5px body was a wall. Bigger, looser. */
.ld-sec.feat .ld-bento .ld-tile h4 { font-size: 18px; margin-bottom: 9px; letter-spacing: -.02em; }
.ld-sec.feat .ld-bento .ld-tile p { font-size: 15px; line-height: 1.62; color: #5c5c72; }
.ld-sec.feat .ld-bento .ld-tile-lg h4 { font-size: 22px; }
.ld-sec.feat .ld-bento .ld-tile-lg p { font-size: 16px; }
.ld-sec.feat .ld-bento .ld-tile-wide h4 { font-size: 20px; }
.ld-bento .ld-tile-ico { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 17px; }
.ld-bento .ld-tile-wide .ld-tile-ico { margin-bottom: 0; flex: none; }
.ld-sec.feat .ld-bento .ld-tile-ico {
  background: linear-gradient(135deg, rgba(35, 82, 201,.13), rgba(13, 148, 136,.13));
  color: var(--brand);
}

/* Capability chips on the two headliners — a second read for scanners. */
.ld-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 18px; }
.ld-chips span {
  font-size: 12px; font-weight: 650; padding: 5px 11px; border-radius: 999px;
  background: rgba(35, 82, 201,.07); border: 1px solid rgba(35, 82, 201,.16); color: var(--brand);
}

/* A soft light follows the cursor across whichever tile it is over. Pure
   compositing — a gradient on a pseudo-element, no layout, no repaint of text. */
.ld-bento .ld-tile::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity .28s;
  background: radial-gradient(220px circle at var(--tx, 50%) var(--ty, 50%), rgba(59, 108, 224,.13), transparent 62%);
}
.ld-bento .ld-tile:hover::before { opacity: 1; }
.ld-bento .ld-tile:hover { transform: translateY(-3px); border-color: rgba(59, 108, 224,.4); }
.ld-bento .ld-tile:focus-within { outline: 2px solid var(--brand-2); outline-offset: 3px; }

/* The border itself lights up on the edge nearest the cursor. A 1px padding
   box masked out of its own fill leaves only the frame painted, so the glow
   rides the outline rather than washing over the card. */
.ld-bento .ld-tile::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--tx, 50%) var(--ty, 50%),
              rgba(35, 82, 201, .85), rgba(13, 148, 136, .45) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.ld-bento .ld-tile:hover::after { opacity: 1; }

/* The tiles assemble instead of appearing all at once. --i is set per tile. */
.ld-bento .ld-tile {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 45ms),
              transform .55s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 45ms),
              border-color .18s, box-shadow .18s;
}
.ld-bento.seen .ld-tile { opacity: 1; transform: none; }
/* Hover must not fight the reveal transform once the tile has landed. */
.ld-bento.seen .ld-tile:hover { transform: translateY(-3px); }

/* ---------- the effect: the grid sorts itself ----------
   Five plain-English pills. Pick one and the cards physically travel to their
   new positions rather than blinking into place — measured before and after
   the reflow, then animated back across the gap (FLIP). Filtering is also the
   useful thing to do here: twelve cards is a lot to read, and a broker who
   only cares about compliance can say so in one click. */
.ld-filters {
  display: flex; flex-wrap: wrap; gap: 9px; justify-content: center;
  margin: 0 0 32px;
}
.ld-filter {
  font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer;
  padding: 10px 19px; border-radius: 999px;
  border: 1px solid rgba(35, 82, 201,.18); background: rgba(255,255,255,.7);
  color: var(--ink-2); display: inline-flex; align-items: center; gap: 9px;
  transition: transform .16s cubic-bezier(.2,.8,.2,1), border-color .16s, background .16s, color .16s, box-shadow .16s;
}
.ld-filter:hover { transform: translateY(-2px); border-color: rgba(35, 82, 201,.42); }
.ld-filter b {
  font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(35, 82, 201,.1); color: var(--brand);
}
.ld-filter[aria-pressed="true"] {
  background: linear-gradient(115deg, var(--brand), var(--brand-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 24px -10px rgba(35, 82, 201,.7);
}
.ld-filter[aria-pressed="true"] b { background: rgba(255,255,255,.22); color: #fff; }
.ld-filter:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

/* Filtered views drop the editorial spans so the survivors pack evenly
   instead of leaving holes where the headliners used to be. */
.ld-bento.filtered .ld-tile,
.ld-bento.filtered .ld-tile-lg,
.ld-bento.filtered .ld-tile-wide { grid-column: span 2; padding: 26px 24px; }
.ld-bento.filtered .ld-tile-wide { flex-direction: column; }
.ld-bento.filtered .ld-tile-wide .ld-tile-ico { margin-bottom: 17px; }
.ld-bento .ld-tile[hidden] { display: none; }

/* The live TRID clock. */
.ld-trid-clock {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid rgba(35, 82, 201, .14);
}
.ld-trid-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.ld-trid-row + .ld-trid-row { margin-top: 5px; }
.ld-trid-row span { color: var(--dim); }
.ld-trid-row b { color: var(--ink); font-weight: 700; }
.ld-trid-left {
  margin-top: 10px; display: flex; align-items: baseline; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.ld-trid-left b {
  font-size: 21px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--brand), var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ld-trid-left span { font-size: 12px; color: var(--dim); }
.ld-trid-tick {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #12b981; margin-right: 6px; vertical-align: 1px;
  animation: ld-pulse 2s ease-in-out infinite;
}
@keyframes ld-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

@media (prefers-reduced-motion: reduce) {
  .ld-bento .ld-tile { opacity: 1; transform: none; transition: none; }
  .ld-bento .ld-tile::after { display: none; }
  .ld-trid-tick { animation: none; }
}

@media (max-width: 1000px) {
  .ld-bento { grid-template-columns: repeat(4, 1fr); }
  .ld-bento .ld-tile, .ld-bento .ld-tile-lg { grid-column: span 2; }
  .ld-bento .ld-tile-wide { grid-column: span 4; }
}
@media (max-width: 680px) {
  .ld-bento { grid-template-columns: 1fr; gap: 13px; }
  .ld-bento .ld-tile, .ld-bento .ld-tile-lg, .ld-bento .ld-tile-wide { grid-column: span 1; }
  .ld-bento .ld-tile-lg { padding: 26px 24px; }
  .ld-bento .ld-tile-wide { flex-direction: column; gap: 14px; }
  .ld-bento .ld-tile-wide .ld-tile-ico { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-bento .ld-tile:hover { transform: none; }
  .ld-bento .ld-tile::before { display: none; }
}

/* ---------- closing ---------- */
.ld-cta-box {
  position: relative; overflow: hidden; border-radius: 26px; padding: 68px 40px; text-align: center;
  background: linear-gradient(120deg, #4c2a9e 0%, var(--brand) 45%, #a3439b 100%);
  color: #fff;
}
.ld-cta-box::after {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 62%);
}
.ld-cta-box h2 { position: relative; margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.03em; }
.ld-cta-box p { position: relative; margin: 0 auto 30px; max-width: 520px; font-size: 17px; opacity: .9; line-height: 1.6; }
.ld-cta-box .ld-hero-ctas { position: relative; }

.ld-foot { border-top: 1px solid var(--line); padding: 48px 0 40px; background: var(--mist); }
.ld-foot-in { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.ld-foot h5 { margin: 0 0 12px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
/* Footer column titles are h2 on the feature pages (h5 skipped three levels in
   the outline); pin what the h1–h4 rule in styles.css would otherwise change. */
.ld-foot h2 { margin: 0 0 12px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 700; line-height: inherit; }
.ld-foot a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14.5px; margin-bottom: 9px; }
.ld-foot a:hover { color: var(--brand); }
.ld-foot-note { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); line-height: 1.6; }
/* The legal line and the Terms · Privacy · Disclaimers row under the note —
   links in a sentence, not the stacked column links above. */
.ld-foot-legal { margin: 10px 0 0; font-size: 12.5px; color: var(--dim); line-height: 1.6; }
.ld-foot .ld-foot-legal a { display: inline; margin: 0; font-size: inherit; color: inherit; text-decoration: underline; }

/* ---------- motion ---------- */
.ld-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.ld-reveal.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ld-landing * { animation: none !important; transition: none !important; }
  .ld-reveal,
  .ld-bento .ld-tile { opacity: 1; transform: none; }
}

/* ---------- mobile menu ---------- */
.ld-burger {
  display: none; flex-direction: column; gap: 4px; justify-content: center;
  width: 40px; height: 40px; padding: 0 9px; border: 0; border-radius: 11px;
  background: transparent; cursor: pointer;
}
.ld-burger span {
  display: block; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .16s;
}
.ld-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ld-burger.open span:nth-child(2) { opacity: 0; }
.ld-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.ld-mobile {
  display: grid; gap: 2px; padding: 10px 24px 18px;
  border-top: 1px solid var(--line); background: var(--paper);
}
.ld-mobile[hidden] { display: none; }
.ld-mobile a {
  padding: 13px 4px; color: var(--ink); text-decoration: none;
  font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line);
}
.ld-mobile a:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .ld-row, .ld-row.flip .ld-row-copy { grid-template-columns: 1fr; order: 0; }
  .ld-row { gap: 34px; }
  .ld-nav-links { display: none; }
  .ld-burger { display: flex; }
  .ld-signin { display: none; }
  .ld-board { grid-template-columns: repeat(2, 1fr); }
  .ld-foot-in { grid-template-columns: 1fr 1fr; }
  .ld-sec { padding: 68px 0; }
}
@media (max-width: 560px) {
  .ld-board { grid-template-columns: 1fr; }
  .ld-foot-in { grid-template-columns: 1fr; }
  .ld-cta-box { padding: 48px 22px; }
}

/* Dark mode: the app has a toggle, so the marketing page must not glare. */
:root[data-theme="dark"] .ld-landing {
  --ink: #f2f2f7; --ink-2: #e2e2ec; --paper: #0f0f14; --mist: #16161d;
  --line: #26262f; --dim: #9a9aae;
}
:root[data-theme="dark"] .ld-nav { background: rgba(15, 15, 20, .8); }
:root[data-theme="dark"] .ld-nav.stuck { background: rgba(15, 15, 20, .94); }
:root[data-theme="dark"] .ld-shot,
:root[data-theme="dark"] .ld-card,
:root[data-theme="dark"] .ld-panel,
:root[data-theme="dark"] .ld-tile,
:root[data-theme="dark"] .ld-pill { background: #14141b; }
:root[data-theme="dark"] .ld-sec.alt .ld-panel { background: #14141b; }
/* The footer's "more" links kept their white pill while --ink went light, so in
   dark mode they read 1.1:1: white on white, on all four pages that use this. */
:root[data-theme="dark"] .ft-more-link,
:root[data-theme="dark"] .ld-sec.alt .ft-more-link { background: #14141b; }
:root[data-theme="dark"] .ld-btn-ghost { color: var(--ink); }

/* The features canvas paints its own violet wash, so dark mode has to restate
   it — otherwise the light gradient sits on top of the dark page. */
:root[data-theme="dark"] .ld-sec.feat {
  background:
    radial-gradient(58% 52% at 12% 0%, rgba(59, 108, 224, .20), transparent 64%),
    radial-gradient(46% 46% at 88% 8%, rgba(13, 148, 136, .13), transparent 66%),
    linear-gradient(180deg, #14121d 0%, #100e18 100%);
}
:root[data-theme="dark"] .ld-sec.feat .ld-tile {
  background: rgba(30, 28, 42, .8);
  border-color: rgba(147, 178, 245, .16);
  box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -28px rgba(0,0,0,.9);
}
:root[data-theme="dark"] .ld-sec.feat .ld-bento .ld-tile p { color: #b3b3c7; }
/* --brand measures 2.7:1 on a dark page, so EVERY eyebrow needs lifting in
   dark mode — not only the ones in the features section. Same for the logo's
   accent word and the "Best" badge, which both use --brand directly. */
:root[data-theme="dark"] .ld-eyebrow,
:root[data-theme="dark"] .ld-sec.feat .ld-eyebrow { color: #93b2f5; }
:root[data-theme="dark"] .ld-logo span { color: #93b2f5; }
:root[data-theme="dark"] .ld-badge { color: #0b1220; background: #93b2f5; }
:root[data-theme="dark"] .ld-sec.feat .ld-bento .ld-tile-ico { color: #d3e0fb; }
:root[data-theme="dark"] .ld-chips span { background: rgba(147, 178, 245,.1); color: #d3e0fb; border-color: rgba(147, 178, 245,.2); }
:root[data-theme="dark"] .ld-filter { background: rgba(30,28,42,.8); border-color: rgba(147, 178, 245,.18); }
/* The line above outranks .ld-filter[aria-pressed="true"], so the selected
   pill needs restating at the same weight or it loses its gradient. */
:root[data-theme="dark"] .ld-filter[aria-pressed="true"] {
  background: linear-gradient(115deg, var(--brand), var(--brand-2));
  border-color: transparent; color: #fff;
}
:root[data-theme="dark"] .ld-filter b { background: rgba(147, 178, 245,.14); color: #d3e0fb; }
:root[data-theme="dark"] .ld-filter[aria-pressed="true"] b { background: rgba(255,255,255,.24); color: #fff; }
:root[data-theme="dark"] .ld-trid-clock { border-top-color: rgba(147, 178, 245,.16); }
:root[data-theme="dark"] .ld-trid-left b { background: linear-gradient(120deg, #789bf0, #0d9488); -webkit-background-clip: text; background-clip: text; }

/* The Emery band is dark in both themes now. Dark mode only needs to go a shade
   deeper so it still separates from the page around it, and to flip the chat
   panel — which is light-on-navy by default — over to the dark product look. */
:root[data-theme="dark"] .ld-nina-sec {
  background: linear-gradient(170deg, #0a1120 0%, #070d19 58%, #06121a 100%);
}
:root[data-theme="dark"] .ld-nina-chat {
  background: rgba(20, 20, 27, .95); color: var(--ink);
  border-color: rgba(147, 178, 245, .14);
}
:root[data-theme="dark"] .ld-nina-ask { background: #14141b; }
:root[data-theme="dark"] .ld-nina-bub { background: #1e1e29; border-color: #2c2c3a; }

/* ---------- Emery (flagship section) ----------
   The one dark band on the page. Every other section is white cards on a pale
   wash, which made the whole thing read as a single undifferentiated sheet —
   this gives the page a spine, and puts the weight on the differentiator.
   Deep navy rather than black: black fought the blue, navy carries it. */
.ld-nina-sec {
  position: relative;
  background: linear-gradient(170deg, #101a33 0%, #0c1426 58%, #0b1a24 100%);
  color: #eef2fb;
  border: 0;
  overflow: hidden;
}
.ld-nina-sec .ld-eyebrow { color: #93b2f5; }
/* .ld-grad is tuned for a white page: its first stop is the brand blue, which
   lands at 2.6:1 on this navy — the word "acts" was effectively unreadable.
   Lift every stop for the dark band (8.2 / 10.3 / 11.7 : 1). */
.ld-nina-sec .ld-grad {
  background: linear-gradient(100deg, #93b2f5 0%, #7dd3fc 48%, #5eead4 100%);
  -webkit-background-clip: text; background-clip: text;
}
.ld-nina-sec .ld-lead,
.ld-nina-sec .ld-ticks li { color: #b3c1da; }
.ld-nina-sec .ld-ticks li strong { color: #fff; }
.ld-nina-sec .ld-tick { background: rgba(20, 184, 166, .18); color: #5eead4; }
.ld-nina-sec .ld-btn-ghost { color: #eef2fb; border-color: rgba(147, 178, 245, .34); }
.ld-nina-sec .ld-btn-ghost:hover { border-color: #93b2f5; }
.ld-nina-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 620px; pointer-events: none;
  background:
    radial-gradient(46% 52% at 22% 34%, rgba(59, 108, 224, .40), transparent 70%),
    radial-gradient(40% 46% at 78% 20%, rgba(13, 148, 136, .28), transparent 70%);
  filter: blur(8px);
}
.ld-nina-in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: 60px; align-items: center;
}
.ld-nina-copy .ld-h2 { margin: 10px 0 16px; }
.ld-nina-copy .ld-ticks { margin-bottom: 26px; }

/* The chat panel stays light — it is a screenshot of a light-mode product, and
   floating it on the navy is what makes the section read as a product shot
   rather than a dark marketing slab. */
.ld-nina-chat {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(147, 178, 245, .18);
  border-radius: var(--radius);
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, .58), 0 2px 6px rgba(0, 0, 0, .3);
  padding: 18px;
  color: var(--ink);
}
.ld-nina-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.ld-nina-head strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.ld-nina-head span { font-size: 12.5px; color: var(--dim); }
.ld-nina-av {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 12px rgba(35, 82, 201, .34);
}
.ld-nina-av.sm { width: 26px; height: 26px; font-size: 11.5px; margin-top: 3px; box-shadow: none; }

.ld-nina-msg { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 12px; }
/* Each turn arrives rather than appearing. */
.ld-nina-msg.ld-pop { animation: ld-pop .42s cubic-bezier(.2,.8,.2,1); }
@keyframes ld-pop {
  from { opacity: 0; transform: translateY(9px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
/* A caret while her question is being typed, so it reads as live input. */
.ld-nina-msg.ld-typing .ld-nina-bub::after {
  content: ''; display: inline-block; width: 2px; height: 13px;
  margin-left: 2px; vertical-align: -2px; background: currentColor;
  animation: ld-caret 1.05s steps(1) infinite;
}
.ld-nina-msg.ld-typing .ld-nina-bub { min-height: 19px; }
.ld-nina-msg.me { justify-content: flex-end; }
.ld-nina-bub {
  border-radius: 14px; padding: 11px 14px; max-width: 92%;
  background: var(--mist); border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.5;
}
.ld-nina-msg.me .ld-nina-bub {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent; color: #fff; font-weight: 550;
}
.ld-nina-bub b { font-weight: 750; }
.ld-nina-bub p { margin: 5px 0 0; }
.ld-nina-dim { color: var(--dim); font-size: 12.5px; }
/* Mirrors the confirmation line the real Emery prints after she changes a file. */
.ld-nina-did {
  display: flex; gap: 6px; align-items: flex-start;
  margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line);
  color: var(--green); font-weight: 650; font-size: 12.5px;   /* --accent is 2.5:1 as type */
}
.ld-nina-did::before { content: '✓'; font-weight: 800; }

.ld-nina-ask {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--dim); font-size: 13.5px; background: #fff;
}
.ld-nina-ask i {
  width: 2px; height: 15px; background: var(--brand); border-radius: 2px;
  animation: ld-caret 1.15s steps(1) infinite;
}
@keyframes ld-caret { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .ld-nina-ask i { animation: none } }

@media (max-width: 900px) {
  .ld-nina-in { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- "Remove the friction" cards ---------- */
.ld-fric-grid { margin-top: 8px; }
.ld-fric {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ld-fric:hover { border-color: #d4d4e2; box-shadow: 0 10px 30px -18px rgba(20,20,40,.35); transform: translateY(-2px); }
.ld-fric-pain {
  font-weight: 750; font-size: 15.5px; line-height: 1.35; color: var(--ink);
  padding-left: 26px; position: relative; letter-spacing: -.01em;
}
.ld-fric-pain::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 15px; height: 15px;
  border-radius: 50%; border: 2px solid #e3b3b3;
  background: radial-gradient(circle at 50% 50%, #fbe3e3 40%, transparent 42%);
}
.ld-fric-fix {
  display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; line-height: 1.5;
  color: var(--dim); padding-top: 12px; border-top: 1px solid var(--line);
}
.ld-fric-fix .ld-tick { flex: none; margin-top: 1px; }

/* ---------- loan lifecycle strip ---------- */
.ld-flow {
  list-style: none; margin: 6px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px;
  counter-reset: none;
}
.ld-flow li {
  position: relative; text-align: center; padding: 20px 10px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.ld-flow li:not(:last-child)::after {
  content: ''; position: absolute; right: -6px; top: 50%; width: 12px; height: 2px;
  background: var(--line); z-index: 1;
}
.ld-flow-n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 4px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
}
.ld-flow b { font-size: 15px; letter-spacing: -.01em; color: var(--ink); }
.ld-flow span:not(.ld-flow-n) { font-size: 12.5px; line-height: 1.4; color: var(--dim); }

@media (max-width: 860px) {
  .ld-flow { grid-template-columns: repeat(2, 1fr); }
  .ld-flow li::after { display: none; }
}

/* Dark mode: match the lifted surface every other card uses (#14141b) so the
   friction and lifecycle cards read as raised, not flat against the page. The
   site toggles theme via [data-theme="dark"], so target that, not the media query. */
:root[data-theme="dark"] .ld-fric,
:root[data-theme="dark"] .ld-flow li { background: #14141b; }
:root[data-theme="dark"] .ld-fric:hover { border-color: #34343f; box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
