/* ==========================================================================
   FINLOGIC — LANDING PAGE REDESIGN
   Implements Figma "Landing Page (Desktop)" (node 5810:44522).
   Scoped under .fl-landing so css/main.css + css/theme.css are untouched
   and the other pages keep the existing theme.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Roboto+Mono:wght@400&display=swap');

.fl-landing {
  /* Brand */
  --lp-ink:        #0d1b2a;
  --lp-ink-2:      #132840;
  --lp-ink-deep:   #0a1420;
  --lp-green:      #00873e;
  --lp-green-lit:  #00be02;
  --lp-green-soft: #e8f5ee;
  --lp-mint:       #7ed8a8;
  /* Text */
  --lp-body:       #808080;
  --lp-muted:      #5c6b7b;
  --lp-muted-2:    #8a97a4;
  --lp-muted-3:    #9aa8b5;
  --lp-on-dark:    #b8c2cc;
  --lp-on-dark-2:  #dce3e9;
  --lp-lilac:      #8686b6;
  /* Surfaces */
  --lp-bg-50:      #f9f9fb;
  --lp-bg-51:      #f9fafb;
  --lp-surface:    #f4f6f5;
  --lp-slate:      #e8ecf0;
  --lp-sand:       #efe6d8;
  --lp-line:       #e5e9ec;
  --lp-hairline:   #eee;
  --lp-star:       #f5ab33;
  /* Measured height of the site's position:fixed .header-wrapper.
     98px once the lg navbar is expanded, 75px once it collapses. The hero
     clears this instead of the theme's hard-coded .header-top padding. */
  --lp-header-h:   98px;
  /* Gap above the hero badge. The Figma frames have no header, so their
     92px (desktop, node 5810:44526) and 24px (mobile, node 5810:45141)
     top offsets are reproduced as clear space BELOW the fixed header. */
  --lp-hero-gap:   92px;
  /* Sampled from the top edge of images/home-hero.png (rgb 218,220,240, +/-5
     across the full width). The art band starts below the fixed header, so the
     strip above it is painted this instead of --lp-bg-50, which showed a seam. */
  --lp-hero-sky:   #dadcf0;
  /* Recipes */
  --lp-card-dark:  linear-gradient(145deg, #0d1b2a 0%, #132840 71.429%);
  --lp-shadow-sm:  0 10px 24px rgba(0,0,0,.08);
  --lp-shadow-md:  0 20px 50px rgba(0,0,0,.06);
  --lp-shadow-lg:  0 30px 70px rgba(13,27,42,.25);

  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--lp-ink);
  background: #fff;
  /* theme.css sets a fixed px line-height that every descendant inherits,
     which inflates the small type. The Figma frames are leading-normal. */
  line-height: normal;
}

.fl-landing *,
.fl-landing *::before,
.fl-landing *::after { box-sizing: border-box; }

/* Neutralise the theme's `p { color: var(--fl-body) }` without out-ranking the
   component rules below. :where() contributes no specificity, so this stays at
   (0,1,0) and any later single-class rule (.lp-qr-cap, .lp-tst-text, ...) wins. */
.fl-landing :where(p) { margin: 0; color: inherit; line-height: normal; }
.fl-landing h1, .fl-landing h2, .fl-landing h3,
.fl-landing h4, .fl-landing h5, .fl-landing h6 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  color: var(--lp-ink);
  margin: 0;
  letter-spacing: normal;
  line-height: 1.16;
}
.fl-landing a { text-decoration: none; }

/* 1440 frame with 70px gutters => 1300px of CONTENT. Everything here is
   border-box, so the max-width has to carry the 24px gutters on top of the
   1300, otherwise every section renders 48px narrower than the frame. */
.lp-wrap { width: 100%; max-width: calc(1300px + 48px); margin: 0 auto; padding: 0 24px; }
.lp-narrow { max-width: 1032px; margin: 0 auto; width: 100%; }
.lp-section { padding: 72px 0; position: relative; }

/* Texture behind the light sections. The Figma frames (5810:44606, 44728,
   44770, 44936) all layer the same export over white at object-cover /
   opacity 50. Drop it in as images/section-texture.png; until then the
   radial-dot layer underneath stands in, and it also covers a failed load. */
.lp-texture::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    url("../images/section-texture.png"),
    radial-gradient(rgba(13,27,42,.045) 1px, transparent 1px);
  background-size: cover, 22px 22px;
  background-position: center, top left;
  background-repeat: no-repeat, repeat;
  opacity: .5;
  pointer-events: none;
}
.lp-section > * { position: relative; z-index: 1; }

.lp-h2 { font-size: 32px; font-weight: 800; text-align: center; }
.lp-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 16px; border-radius: 1000px;
  background: var(--lp-green-soft); color: var(--lp-green);
  font-size: 12px; font-weight: 700; white-space: nowrap;
  align-self: flex-start; flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   1. HERO
   -------------------------------------------------------------------------- */
.lp-hero { background: var(--lp-bg-50); position: relative; overflow: hidden; }
.lp-hero-top {
  position: relative;
  background: var(--lp-hero-sky);
  padding: calc(var(--lp-header-h) + var(--lp-hero-gap)) 0 120px;
  /* The Figma hero art band is 802px tall (node 5810:44525). It starts below
     the fixed header so the copy keeps the same position over the artwork
     that the mockup has. */
  min-height: calc(802px + var(--lp-header-h));
}
.lp-hero-media {
  position: absolute; top: var(--lp-header-h); right: 0; bottom: 0; left: 0;
  z-index: 0; pointer-events: none;
}
/* <picture> is inline by default and has no height of its own, so the img's
   height: 100% would resolve against nothing. */
.lp-hero-media picture { display: block; width: 100%; height: 100%; }
.lp-hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block;
}
.lp-hero-inner { position: relative; z-index: 2; }
.lp-hero-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

.lp-hero h1 {
  font-size: 52px; font-weight: 800; line-height: 1.16;
  max-width: 760px; color: var(--lp-ink);
}
.lp-hero h1 .g { color: var(--lp-green); }
.lp-hero-sub {
  font-size: 16px; font-weight: 400; letter-spacing: -.16px;
  color: var(--lp-body); max-width: 560px;
}
.lp-hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.lp-hero-trust { font-size: 13px; color: var(--lp-lilac); }
/* This build's compiled main.css only kept the bare d-none/d-md-none/d-lg-none
   Bootstrap utilities (no d-md-block, d-lg-inline-flex, etc. - see includes/
   header.php's already-dead "d-none d-lg-inline-flex" button for the same gap),
   so the long/short hero copy can't be toggled with Bootstrap's responsive
   display utilities. Use dedicated classes instead, flipped in the 767px query
   below. */
.lp-hero h1 br.lp-break-md { display: inline; }
.lp-hero-sub-long, .lp-hero-trust-long { display: block; }
.lp-hero-sub-short, .lp-hero-trust-short { display: none; }

/* Store badges — built markup (180x52 per Figma nodes 5810:44535 / 5810:44566)
   with the real Apple / Google Play logo marks in the icon slot. */
.lp-store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px; border-radius: 8px;
  background: #000; color: #fff; min-width: 180px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.lp-store:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.22); }
.lp-store img { display: block; width: auto; height: 30px; flex: 0 0 auto; }
.lp-store span { display: block; line-height: 1.15; }
.lp-store .s1 { font-size: 10px; font-weight: 500; opacity: .85; }
.lp-store .s2 { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }

/* Stats band */
.lp-stats { background: var(--lp-ink); }
.lp-stats-inner {
  height: 148px; display: flex; align-items: center; justify-content: center;
  gap: 116px; flex-wrap: wrap;
}
.lp-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
/* tabular figures so the counter doesn't reflow while it ticks */
.lp-stat b { font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.lp-stat span { font-size: 12px; font-weight: 400; color: var(--lp-muted-3); }

/* Floating QR card. Fixed rather than absolute inside the hero, so it stays
   on the right for the whole page instead of scrolling away with the hero. */
.lp-qr {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  padding: 24px; border-radius: 16px;
  background: linear-gradient(132deg, #0d1b2a 0%, #132840 71.429%);
  border: 1px solid rgba(210,210,228,.3);
  box-shadow: 0 30px 60px rgba(13,27,42,.3);
  display: flex; flex-direction: column; gap: 16px;
}
.lp-qr-head { display: flex; align-items: center; gap: 41px; }
.lp-qr-tag {
  display: inline-flex; align-items: center; justify-content: center;
  height: 24px; padding: 0 12px; border-radius: 1000px;
  background: rgba(0,190,2,.15); color: var(--lp-mint);
  font-size: 10px; font-weight: 600; flex: 0 0 auto;
}
.lp-qr-close {
  width: 24px; height: 24px; border: 0; border-radius: 1000px;
  background: rgba(255,255,255,.1); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer; padding: 0;
}
.lp-qr-tile {
  width: 147px; height: 147px; border-radius: 10px; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.lp-qr-tile img { width: 129px; height: 129px; object-fit: contain; display: block; }
.lp-qr-cap {
  font-size: 14px; font-weight: 800; color: #fff; text-align: center;
  width: 138px; line-height: normal;
}

/* --------------------------------------------------------------------------
   2. FEATURE SECTION — two modules, 6 cards
   -------------------------------------------------------------------------- */
.lp-features { background: #fff; }
.lp-feature-grid { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.lp-frow { display: flex; gap: 32px; align-items: stretch; width: 1032px; max-width: 100%; }
.lp-col-wide { width: 600px; flex: 0 0 600px; display: flex; }
.lp-col-narrow { width: 400px; flex: 0 0 400px; display: flex; flex-direction: column; gap: 32px; }

.lp-card { border-radius: 16px; padding: 24px; display: flex; flex-direction: column;
           justify-content: space-between; gap: 24px; flex: 1; }
.lp-card-t { font-size: 20px; font-weight: 700; letter-spacing: -.2px; line-height: 1.16; color: var(--lp-ink); }
.lp-card-s { font-size: 16px; font-weight: 400; letter-spacing: -.16px; color: var(--lp-muted); }
.lp-card--grey { background: var(--lp-surface); }
.lp-card--mint { background: var(--lp-green-soft); }
.lp-card--mint .lp-card-s { color: #3a5c48; }
.lp-card--r24 { border-radius: 24px; }

.lp-dark {
  background: var(--lp-card-dark); border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column; gap: 48px; flex: 1; color: #fff;
}
.lp-dark h3 { font-size: 26px; font-weight: 800; color: #fff; max-width: 380px; }
.lp-dark .lp-sub { font-size: 16px; letter-spacing: -.16px; color: var(--lp-on-dark); max-width: 380px; }

.lp-fx { display: flex; flex-direction: column; gap: 12px; }
.lp-fx-row { display: flex; gap: 12px; }
.lp-fx-tile {
  flex: 1 0 0; min-width: 0; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; gap: 8px;
}
.lp-fx-tile--on { background: rgba(0,190,2,.15); border-color: rgba(255,255,255,.3); }
.lp-fx-tile i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--lp-mint); }
.lp-fx-tile b { font-size: 20px; font-weight: 800; color: #fff; }

.lp-chips { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* Nodes 5810:44750/44752 wrap the plain chips in self-stretch rows so all
   three match the taller payment chip's height. */
.lp-who .lp-chips { gap: 8px; align-items: stretch; }
.lp-chip {
  background: #fff; border-radius: 8px; padding: 12px 16px;
  font-size: 13px; font-weight: 800; color: var(--lp-ink); white-space: nowrap;
}
.lp-chip--yt { color: red; }

.lp-rate { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.lp-rate b { font-size: 28px; font-weight: 800; color: var(--lp-green); }
/* Scoped off .lp-live, which is also a span here - the design has that pill
   white on green (nodes 5810:44669/44670), and this rule out-ranked it. */
.lp-rate span:not(.lp-live) { font-size: 13px; color: #5c8a6b; }
.lp-live {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 22px; padding: 0 10px; border-radius: 1000px;
  background: var(--lp-green); color: #fff; font-size: 10px; font-weight: 700;
}
/* The bullet was a text glyph; as an element it can pulse, with an expanding
   ring behind it, the way a live-status indicator reads. */
.lp-live-dot {
  position: relative; flex: 0 0 auto;
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: lp-live-blink 1.6s ease-in-out infinite;
}
.lp-live-dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .9);
  animation: lp-live-ring 1.6s ease-out infinite;
}
@keyframes lp-live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes lp-live-ring {
  0%   { transform: scale(.5); opacity: .9; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-live-dot { animation: none; }
  .lp-live-dot::after { display: none; }
}
.lp-big { font-size: 30px; font-weight: 800; color: var(--lp-green); }
.lp-swatches { display: flex; gap: 10px; }
.lp-swatch { width: 52px; height: 32px; border-radius: 6px; }

/* Phone mock */
/* Shares an element with .lp-dark, which is flex-direction: column — this row
   is the Figma layout (node 5810:44687: row, gap 32, items-center, h 420). */
.lp-app { display: flex; flex-direction: row; gap: 32px; align-items: center; height: 420px; border-radius: 24px; }
.lp-app-copy { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.lp-phone {
  width: 170px; flex: 0 0 170px; height: 336px; padding: 8px; border-radius: 24px;
  background: rgba(184,194,204,.3); overflow: hidden;
}
/* The mockup carries its own device bezels and its white backdrop has been
   keyed out, so it sits straight on the dark card — no .lp-phone frame around
   it, which would have been a bezel inside a bezel. `contain` because the art
   is already composed; cropping it would cut a phone in half. */
.lp-appshot {
  /* The old phone was 170px of a 600px card. This mockup is near square, so
     it eats width the copy needs — 250 leaves the heading and paragraph a
     readable column instead of a 164px ribbon. */
  flex: 0 0 250px; width: 250px; max-width: 100%;
  height: 100%; max-height: 356px;
  object-fit: contain; object-position: center;
  display: block;
}
.lp-phone-in {
  background: #fff; border-radius: 16px; padding: 18px; height: 100%;
  /* 11px not the frame's 12px: six gaps x 1px absorbs the 6px that system font
     metrics add over the Figma text, so the stack fits the 336px phone. */
  display: flex; flex-direction: column; gap: 11px;
}
.lp-ph-lab { font-size: 9px; font-weight: 600; color: var(--lp-muted-2); }
.lp-ph-bal { font-size: 19px; font-weight: 800; color: var(--lp-ink); }
.lp-ph-grid { display: flex; flex-direction: column; gap: 8px; }
.lp-ph-row { display: flex; gap: 8px; }
.lp-ph-act {
  flex: 1 0 0; min-width: 0; background: var(--lp-surface); border-radius: 10px;
  padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.lp-ph-ico {
  width: 26px; height: 26px; border-radius: 8px; color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.lp-ph-act b { font-size: 8px; font-weight: 700; color: var(--lp-ink); }
.lp-ph-div { height: 1px; background: #ededed; }
.lp-ph-tx { display: flex; gap: 8px; align-items: center; }
.lp-ph-tx-ico {
  width: 22px; height: 22px; border-radius: 1000px; background: var(--lp-green-soft);
  color: var(--lp-green); font-size: 9px;
  display: flex; align-items: center; justify-content: center; flex: 0 0 22px;
}
.lp-ph-tx b { font-size: 8px; font-weight: 700; color: var(--lp-ink); display: block; }
.lp-ph-tx span:not(.lp-ph-tx-ico) { font-size: 7px; color: var(--lp-muted-2); }

/* --------------------------------------------------------------------------
   3. WHO IT'S FOR
   -------------------------------------------------------------------------- */
.lp-who-grid { display: flex; gap: 24px; align-items: stretch; }
.lp-who {
  flex: 1 0 0; min-width: 0; border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.lp-who h3 { font-size: 24px; font-weight: 800; }
.lp-who p { font-size: 14px; letter-spacing: -.14px; }
.lp-who--slate { background: var(--lp-slate); }
.lp-who--slate p { color: #4a5969; }
.lp-who--ink { background: var(--lp-ink); }
.lp-who--ink h3 { color: #fff; }
.lp-who--ink p { color: var(--lp-on-dark); }
.lp-who--sand { background: var(--lp-sand); }
.lp-who--sand h3 { font-size: 20px; }
.lp-who--sand p { color: #6b5d4a; font-size: 13.5px; }

.lp-mini-row { display: flex; gap: 16px; align-items: stretch; }
.lp-mini {
  flex: 1 0 0; min-width: 0; background: #fff; border-radius: 8px; padding: 12px 16px;
  box-shadow: var(--lp-shadow-sm); display: flex; flex-direction: column;
}
.lp-mini--lg { border-radius: 14px; padding: 16px 20px; flex: 0 1 auto; }
.lp-mini i { font-style: normal; font-size: 10px; font-weight: 600; color: var(--lp-muted-2); }
.lp-mini b { font-size: 20px; font-weight: 800; color: var(--lp-ink); }
.lp-mini u { text-decoration: none; font-size: 10px; font-weight: 700; color: var(--lp-green); }

.lp-dchip {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 12px 16px; color: #fff;
  font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px;
}
.lp-dchip i { font-style: normal; font-size: 10px; font-weight: 600; color: var(--lp-mint); }
.lp-dchip b { font-size: 20px; font-weight: 800; }

/* --------------------------------------------------------------------------
   4. CORE SERVICE
   -------------------------------------------------------------------------- */
.lp-core-head { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.lp-core-head .k { font-size: 15px; color: var(--lp-muted); }
.lp-core-grid { display: flex; gap: 24px; align-items: stretch; }
.lp-core {
  flex: 1 0 0; min-width: 0; border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.lp-core--light { background: #fff; border: 1px solid var(--lp-line); }
.lp-core--dark { background: var(--lp-ink); }
.lp-core h3 { font-size: 24px; font-weight: 800; }
.lp-core--dark h3 { color: #fff; }
.lp-core p.s { font-size: 14px; letter-spacing: -.14px; color: var(--lp-muted); max-width: 428px; }
.lp-core--dark p.s { color: var(--lp-on-dark); }
.lp-pill--dark { background: rgba(255,255,255,.1); color: var(--lp-mint); }

.lp-checks { display: flex; flex-direction: column; gap: 12px; }
.lp-check { display: flex; gap: 8px; align-items: center; color: #3a4a5c; }
.lp-check .t { font-size: 13px; font-weight: 700; }
.lp-check .x { font-size: 14px; letter-spacing: -.14px; }
.lp-core--dark .lp-check { color: var(--lp-on-dark-2); }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 24px; border-radius: 8px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.lp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(13,27,42,.18); }
.lp-btn--ink { background: var(--lp-ink); color: #fff; }
.lp-btn--ink:hover { color: #fff; }
.lp-btn--lit { background: var(--lp-green-lit); color: #fff; }
.lp-btn--lit:hover { color: #fff; }
.lp-btn--green { background: var(--lp-green); color: #fff; height: 50px; }
.lp-btn--green:hover { color: #fff; }
.lp-btn--outline { border: 1.5px solid rgba(255,255,255,.2); color: #fff; height: 50px; }
.lp-btn--outline:hover { color: #fff; background: rgba(255,255,255,.06); }
.lp-self-start { align-self: flex-start; }

/* --------------------------------------------------------------------------
   5. VIRTUAL CARD ISSUANCE (developers)
   -------------------------------------------------------------------------- */
.lp-dev { background: var(--lp-ink); position: relative; overflow: hidden; }
/* Figma node 5810:44816 tiles its export at 608x608 from the top-left over
   #0d1b2a at opacity 2. Drop it in as images/dev-pattern.png; the dot layer
   underneath stands in until then. */
.lp-dev::before {
  content: ""; position: absolute; inset: 0; opacity: .02; pointer-events: none;
  background-image:
    url("../images/dev-pattern.png"),
    radial-gradient(#fff 1px, transparent 1px);
  background-size: 608px 608px, 28px 28px;
  background-position: top left, top left;
  background-repeat: repeat, repeat;
}
.lp-dev-grid { display: flex; gap: 124px; align-items: center; justify-content: center; }
.lp-dev-copy { display: flex; flex-direction: column; gap: 24px; }
.lp-dev h2 { font-size: 32px; font-weight: 800; color: #fff; max-width: 500px; text-align: left; }
.lp-dev-sub { font-size: 16px; color: var(--lp-on-dark); max-width: 460px; }
.lp-tag-dev {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 16px; border-radius: 1000px;
  background: rgba(0,190,2,.1); border: 1px solid rgba(0,190,2,.2);
  color: var(--lp-mint); font-size: 11px; font-weight: 700;
  align-self: flex-start; flex: 0 0 auto;
}
.lp-dev-checks { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.lp-dev-check { display: flex; gap: 10px; align-items: center; }
.lp-dev-check .t { font-size: 14px; font-weight: 700; color: var(--lp-mint); }
.lp-dev-check .x { font-size: 16px; color: var(--lp-on-dark-2); }
.lp-dev-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.lp-code {
  background: var(--lp-ink-deep); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.4);
  overflow: hidden; flex: 0 1 auto; min-width: 0;
}
.lp-code-bar {
  display: flex; align-items: center; gap: 8px; padding: 16px;
  background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.06);
}
.lp-dot { width: 10px; height: 10px; border-radius: 1000px; flex: 0 0 10px; }
.lp-code-bar .p { font-family: 'Roboto Mono', monospace; font-size: 12px; color: var(--lp-muted-2); }
.lp-code-body {
  padding: 24px 16px; font-family: 'Roboto Mono', monospace; font-size: 12.5px;
  display: flex; flex-direction: column; gap: 2px; overflow-x: auto;
}
.lp-code-body .l { white-space: pre; }
.lp-code-body .i1 { padding-left: 16px; }
.lp-code-body .i2 { padding-left: 32px; }
.lp-code-body .sp { height: 14px; }
.c-key { color: #569cd6; }
.c-txt { color: #dce3e9; }
.c-str { color: #ce9178; }
.c-prop { color: #9cdcfe; }
.c-num { color: #b5cea8; }
.c-com { color: #4a5668; }

/* --------------------------------------------------------------------------
   6. TESTIMONIALS
   -------------------------------------------------------------------------- */
.lp-tst { background: var(--lp-bg-51); padding: 25px 0 72px; position: relative; overflow: hidden; }
.lp-tst-quote {
  position: absolute; left: 50%; transform: translateX(-80px); top: -70px;
  font-size: 260px; font-weight: 800; color: var(--lp-ink); opacity: .04;
  line-height: 1; pointer-events: none; user-select: none;
}
.lp-tst-inner { display: flex; flex-direction: column; gap: 33px; align-items: center; position: relative; z-index: 1; }
/* The stage was a fixed 300px with the card absolutely centred inside it.
   Longer quotes make the card taller than that, and it spilled over the
   heading and the dots — so the card sits in flow and the stage grows with
   it, keeping 300px as the floor. The ghosts stay absolute either side. */
.lp-tst-stage {
  position: relative; width: 100%; max-width: 1300px; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.lp-tst-card {
  position: relative;
  width: 560px; min-height: 267px; border-radius: 24px; padding: 32px;
  background: var(--lp-ink); box-shadow: var(--lp-shadow-lg);
  display: flex; flex-direction: column; gap: 40px;
  transition: opacity .35s ease;
}
.lp-tst-card::after {
  content: "\201D"; position: absolute; right: 42px; top: -34px;
  font-size: 90px; font-weight: 800; color: #fff; opacity: .08; line-height: 1;
}
.lp-tst-stars { font-size: 16px; color: var(--lp-star); }
.lp-tst-text { font-size: 20px; font-weight: 600; color: #fff; max-width: 440px; line-height: 1.45; }
.lp-tst-who { display: flex; gap: 14px; align-items: center; }
.lp-tst-av {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 1000px;
  background: #60609f; border: 2px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: #fff;
}
.lp-tst-av--img { background-size: cover; background-position: center top; font-size: 0; }
.lp-tst-who b { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.lp-tst-who span:not(.lp-tst-av) { font-size: 12px; color: var(--lp-muted-2); }

.lp-tst-ghost {
  position: absolute; top: 50%; width: 340px; height: 220px;
  background: #fff; border-radius: 20px; padding: 32px; opacity: .5;
  box-shadow: var(--lp-shadow-md); font-size: 12px;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.lp-tst-ghost p:not(.lp-tst-stars) { color: var(--lp-muted-2); max-width: 284px; }
.lp-tst-ghost .lp-tst-stars { font-size: 12px; }
.lp-tst-ghost--l { left: 0;  transform: translateY(-50%) rotate(-6deg); }
.lp-tst-ghost--r { right: 0; transform: translateY(-50%) rotate(6deg); }

.lp-tst-ctrl { display: flex; gap: 24px; align-items: center; }
.lp-nav {
  width: 44px; height: 44px; border-radius: 1000px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; padding: 0; transition: transform .18s ease;
}
.lp-nav:hover { transform: translateY(-2px); }
.lp-nav--prev { background: #fff; border: 1px solid var(--lp-line); color: var(--lp-ink); }
.lp-nav--next { background: var(--lp-ink); border: 1px solid var(--lp-ink); color: #fff; }
.lp-dots { display: flex; gap: 8px; align-items: center; }
.lp-dots button {
  width: 8px; height: 8px; border: 0; padding: 0; border-radius: 1000px;
  background: #d0d7dd; cursor: pointer; transition: width .25s ease, background .25s ease;
}
.lp-dots button.is-on { width: 24px; border-radius: 4px; background: var(--lp-ink); }

/* --------------------------------------------------------------------------
   7. FAQ
   -------------------------------------------------------------------------- */
.lp-faq-list { width: 100%; }
.lp-faq-item { border-bottom: 1px solid var(--lp-hairline); }
.lp-faq-item:last-child { border-bottom: 1px solid var(--lp-hairline); }
.lp-faq-q {
  width: 100%; background: none; border: 0; padding: 24px 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  text-align: left; font-family: inherit;
}
.lp-faq-q span { font-size: 16px; font-weight: 700; color: var(--lp-ink); }
.lp-faq-q i { font-style: normal; font-size: 18px; font-weight: 400; color: var(--lp-muted-2); }
.lp-faq-item.is-open .lp-faq-q { padding-bottom: 14px; }
.lp-faq-item.is-open .lp-faq-q i { color: var(--lp-ink); }
.lp-faq-a { display: none; padding-bottom: 24px; }
.lp-faq-item.is-open .lp-faq-a { display: block; }
.lp-faq-a p { font-size: 14.5px; color: var(--lp-muted); max-width: 680px; }
.lp-faq-foot { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; }
.lp-faq-foot .m { color: var(--lp-muted); }
.lp-faq-foot a { font-weight: 700; color: var(--lp-green); }

/* --------------------------------------------------------------------------
   8. BLOG
   -------------------------------------------------------------------------- */
.lp-blog { background: #fff; }
.lp-blog h2 { font-size: 38px; font-weight: 800; text-align: center; }
.lp-blog-grid { display: flex; gap: 24px; align-items: stretch; }
.lp-post {
  flex: 1 0 0; min-width: 0; background: #fff; border: 1px solid var(--lp-hairline);
  border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lp-post:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow-md); }
.lp-post-img { height: 240px; width: 100%; background-size: cover; background-position: center; }
.lp-post-img--1 { background-image: linear-gradient(180deg,#0d1b2a 0%,#132840 60%,#0a1420 100%); }
.lp-post-img--2 { background-image: linear-gradient(180deg,#00873e 0%,#00612d 70%); }
.lp-post-img--3 { background-image: linear-gradient(180deg,#4a5668 0%,#2d3748 70%); }
.lp-post-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lp-tagp {
  align-self: flex-start; padding: 8px 16px; border-radius: 1000px;
  font-size: 10.5px; font-weight: 700;
  background: var(--lp-green-soft); color: var(--lp-green);
}
.lp-tagp--2 { background: var(--lp-sand); color: #8a6d3a; }
.lp-tagp--3 { background: #eef2ff; color: #4d5edb; }
.lp-post h3 { font-size: 18px; font-weight: 800; padding-top: 10px; }
.lp-post .ex { font-size: 13px; color: var(--lp-muted); padding: 4px 0 16px; }
.lp-post .rd { font-size: 14px; font-weight: 700; color: var(--lp-green); margin-top: auto; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .fl-landing { --lp-header-h: 75px; }
}
@media (max-width: 1200px) {
  .lp-qr { display: none; }
  .lp-dev-grid { gap: 56px; }
  .lp-tst-ghost { display: none; }
}
@media (max-width: 1080px) {
  .lp-frow { flex-direction: column; width: 100%; }
  .lp-col-wide, .lp-col-narrow { width: 100%; flex: 1 1 auto; }
  .lp-who-grid, .lp-core-grid, .lp-blog-grid, .lp-dev-grid { flex-direction: column; }
  /* .lp-post keeps overflow:hidden (to clip the rounded-corner cover image), and in a flex-basis:0 column layout inside an auto-height container that makes its automatic min-size 0 (CSS Flexbox §4.5), so it collapses to ~2px instead of stacking full-height like the who/core cards (which don't set overflow:hidden). Switch to a content-sized basis. */
  .lp-post { flex: 1 1 auto; }
  .lp-dev h2, .lp-dev-sub { max-width: none; }
  .lp-code { width: 100%; }
  .lp-stats-inner { gap: 48px; height: auto; padding: 32px 0; }
}
@media (max-width: 767px) {
  /* Figma's mobile frame (5810:45138, 390 wide) uses a 16px side gutter
     throughout (hero copy, stats band, blog cards all sit at x=16) - not the
     desktop 24px, which was leaving every mobile section 16px too narrow. */
  .lp-wrap { padding: 0 16px; }

  .lp-section { padding: 48px 0; }
  .fl-landing { --lp-hero-gap: 24px; }
  .lp-hero-top {
    padding: calc(var(--lp-header-h) + var(--lp-hero-gap)) 0 40px;
    /* was min-height:0, which collapsed the hero to its text height and left
       the absolutely-positioned artwork with nothing to fill - effectively
       invisible. Node 5810:45140 shows the art as a real ~284px band, so give
       the section enough room to show it. */
    min-height: 620px;
  }
  .lp-hero-media { top: 0; }
  /* The portrait artwork puts faces and laptops directly behind the subhead
     and the trust line, which made both unreadable. This is a haze in the
     hero's OWN background colour, fading out by 62% — not the white card that
     was removed earlier: there is no edge to see, the copy just sits on a
     calmer version of the same sky, and the figures below stay untouched. */
  .lp-hero-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(218, 220, 240, .70) 0%,
      rgba(218, 220, 240, .55) 30%,
      rgba(218, 220, 240, .25) 42%,
      rgba(218, 220, 240, 0)   52%
    );
  }
  /* No scrim card behind the copy - text sits directly over the artwork,
     same as desktop. */
  /* Mobile hero is centred, unlike the left-set desktop one. */
  .lp-hero-copy {
    position: relative; z-index: 1; max-width: 100%;
    align-items: center; text-align: center;
  }
  /* Sized off the reference: "Money without borders for" measures 315px at
     24/800 against the reference's ~318, and 30px leading matches its 30px
     line pitch. The max-widths pin both blocks to the same two-line breaks. */
  .lp-hero h1 { font-size: 24px; line-height: 30px; max-width: 330px; }
  .lp-hero-sub { font-size: 14px; line-height: 20px; max-width: 320px; }
  /* --lp-lilac is a pale tint that reads fine on the flat desktop hero but
     disappears against the illustration here, right where the haze has faded
     out. Muted grey keeps it quiet without making it unreadable. */
  .lp-hero-trust { color: var(--lp-muted); }
  .lp-hero h1 br.lp-break-md { display: none; }
  .lp-hero-sub-long, .lp-hero-trust-long { display: none; }
  .lp-hero-sub-short, .lp-hero-trust-short { display: block; }

  /* Badges side by side at the frame's own math: (358 - 16 gap) / 2 = 171,
     matching nodes 5810:45150/45181 (171.76 each) almost exactly. */
  .lp-hero-actions { flex-wrap: nowrap; gap: 16px; width: 100%; align-self: stretch; }
  .lp-store { min-width: 0; flex: 1 1 0; height: 46px; padding: 0 12px; gap: 8px; }
  .lp-store img { height: 26px; }
  .lp-store .s1 { font-size: 9px; }
  .lp-store .s2 { font-size: 14px; }

  .lp-h2, .lp-dev h2 { font-size: 24px; }
  .lp-blog h2 { font-size: 28px; }
  .lp-app { height: auto; flex-direction: column; align-items: center; }
  .lp-app .lp-app-copy { align-self: stretch; }
  /* flex-basis follows the main axis, so `flex: 0 0 340px` would become a
     340px HEIGHT once this stack turns into a column. Size it by width here
     and let the aspect ratio pick the height. */
  .lp-app .lp-appshot {
    flex: 0 0 auto; width: 100%; max-width: 340px; height: auto; max-height: none;
  }
  .lp-mini-row, .lp-frow, .lp-fx-row { flex-wrap: wrap; }
  .lp-tst-card { width: 100%; position: static; transform: none; }
  .lp-tst-stage { min-height: 0; }
  .lp-tst-text { font-size: 17px; }
  .lp-tst-quote { display: none; }

  /* Was flex-wrap with a flat 28px gap, which broke 4 stats onto two lines
     and overlapped the chat widget (node 5810:45208: all four sit on one
     84px-tall row). space-between + no-wrap + smaller type keeps them on
     one line at 358px content width. */
  .lp-stats-inner { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .lp-stat { flex: 0 0 auto; white-space: nowrap; }
  .lp-stat b { font-size: 20px; }
  .lp-stat span { font-size: 9px; }

  .lp-dev-grid { gap: 32px; }
}

/* Phones only — the portrait hero artwork (614x1278, aspect .48).
   Covering a 390-wide box renders it 812 tall, so the 620px hero would crop
   192px. Cropped from the top that is only sky; cropped from the bottom it
   would take the people, which are the point of the picture. 720px tall plus
   a bottom anchor trims 92px of sky and leaves every figure whole, with the
   heading, subhead, badges and trust line all sitting above the horizon. */
@media (max-width: 575.98px) {
  .lp-hero-top { min-height: 720px; }
  .lp-hero-media img { object-position: center bottom; }
}

/* utilities */
.lp-stack { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.lp-stack--l { align-items: flex-start; }
.lp-gap16 { display: flex; flex-direction: column; gap: 16px; }
.lp-gap12 { display: flex; flex-direction: column; gap: 12px; }
.lp-gap8  { display: flex; flex-direction: column; gap: 8px; }
