/* ==========================================
   LANDING — "Market Ledger"
   Warm, editorial, ledger-inspired redesign.
   Minimal motion: one fade/slide-up reveal per
   section, no scroll-jacking, no particles.
   ========================================== */

html {
  scroll-behavior: auto !important;
  overflow-x: hidden;
}

:root {
  --lm-paper: #f6efe0;
  --lm-paper-deep: #efe3c8;
  --lm-ink: #2a2115;
  --lm-ink-soft: #4a3f2e;
  --lm-muted: #6b5e49;
  --lm-line: rgba(42, 33, 21, 0.14);
  --lm-line-strong: rgba(42, 33, 21, 0.28);
  --lm-terracotta: #c1592c;
  --lm-terracotta-dark: #9c4520;
  /* white text on --lm-terracotta = 3.9:1. buttons need 4.5. */
  --lm-terracotta-btn: #ad4c1f;
  --lm-forest: #3f5c46;
  --lm-forest-dark: #2c4232;
  --lm-gold: #b8894a;
  --lm-card-border: #ddcda3;
  --lm-red: #a4402a;

  --font-display: var(--rc-font-display);
  --font-body: var(--rc-font-body);
}

/* vendor toast sets Lato. inherit page font. */
body .iziToast,
body .iziToast-rtl {
  font-family: inherit;
}

body {
  font-family: var(--font-body);
  background: var(--lm-paper);
  color: var(--lm-ink-soft);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--lm-ink);
}

/* ==========================================
   SCROLL REVEAL (minimal — one fade+rise, no scrub)
   ========================================== */

.lm-reveal {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: no-preference) {
  .lm-reveal {
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }
  .lm-reveal.lm-in {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lm-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================
   HEADER / NAV
   ========================================== */

.lm-header {
  background: rgba(246, 239, 224, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lm-line-strong);
  height: 74px;
  /* bootstrap fixed scale: modals (1055) sit above */
  z-index: 1030;
}

.lm-logo img {
  height: 34px;
}

.lm-header .navmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lm-header .navmenu ul li a {
  color: var(--lm-ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 3px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.lm-header .navmenu ul li a:hover,
.lm-header .navmenu ul li a.active {
  color: var(--lm-terracotta-dark);
  background: rgba(193, 89, 44, 0.08);
}

.lm-nav-cta {
  font-family: var(--font-display);
  background: var(--lm-terracotta-btn) !important;
  color: var(--lm-paper) !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  border-radius: 3px !important;
  margin-left: 10px;
}

.lm-nav-cta:hover {
  background: var(--lm-terracotta-dark) !important;
  color: var(--lm-paper) !important;
}

.lm-mobile-header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.lm-nav-cta-mobile {
  font-family: var(--font-display);
  background: var(--lm-terracotta-btn);
  color: var(--lm-paper) !important;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}

.lm-mobile-nav-toggle,
.lm-header .mobile-nav-toggle {
  color: var(--lm-ink);
  font-size: 28px;
  cursor: pointer;
}

/* frontend.css turns toggle white when menu open. menu bg is paper - white invisible. */
body.mobile-nav-active .lm-header .mobile-nav-toggle {
  color: var(--lm-ink);
  /* frontend.css pins it absolute top-right, on top of Login pill. keep in flow. */
  position: static;
  font-size: 28px;
  margin-right: 0;
}

@media (max-width: 1200px) {
  .lm-mobile-header-actions {
    display: flex;
  }
  .lm-header .navmenu {
    display: none;
  }
  body.mobile-nav-active .lm-header .navmenu {
    display: block;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    height: calc(100vh - 74px);
    overflow-y: auto;
    background: var(--lm-paper);
    padding: 20px;
    border-top: 1px solid var(--lm-line-strong);
    z-index: 9999;
  }
  body.mobile-nav-active .lm-header .navmenu ul {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: transparent;
    box-shadow: none;
  }
  body.mobile-nav-active .lm-header .navmenu ul li a {
    display: block;
    padding: 12px 16px;
    width: 100%;
  }
}

/* ==========================================
   HERO
   ========================================== */

.lm-hero {
  background: var(--lm-paper);
  padding-top: 148px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.lm-hero .container {
  position: relative;
  z-index: 2;
}

.lm-hero-row {
  gap: 48px 0;
}

.lm-hero-text h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.lm-hero-text h1 em {
  font-style: normal;
  font-weight: 800;
  color: var(--lm-terracotta);
}

.lm-hero-sub {
  font-size: 17px;
  color: var(--lm-muted);
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 560px;
}

.lm-hero-actions {
  display: flex;
  gap: 12px 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.lm-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lm-ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1.5px solid var(--lm-line-strong);
  padding-bottom: 2px;
}

.lm-hero-link:hover {
  color: var(--lm-terracotta-dark);
  border-bottom-color: var(--lm-terracotta);
}

.lm-pullquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--lm-terracotta-dark);
  margin: 18px auto 0;
  max-width: 560px;
}

.lm-btn-primary {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lm-terracotta-btn);
  color: var(--lm-paper);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(42, 33, 21, 0.18);
}

.lm-btn-primary:hover {
  background: var(--lm-terracotta-dark);
  color: var(--lm-paper);
  box-shadow: 0 4px 12px rgba(42, 33, 21, 0.2);
}

/* demo CTA next to the primary one. outline: Get Started stays the lead. */
.lm-btn-secondary {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: transparent;
  color: var(--lm-terracotta-dark);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 26px;
  border: 2px solid var(--lm-terracotta-btn);
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lm-btn-secondary:hover {
  background: var(--lm-terracotta-btn);
  color: var(--lm-paper);
}

.lm-demo-cta {
  padding: 64px 0;
  background: var(--lm-paper-deep);
  border-top: 1px solid var(--lm-line);
  border-bottom: 1px solid var(--lm-line);
}

.lm-demo-cta .lm-section-sub {
  margin-bottom: 28px;
}

/* Try the demo popup. frames /demo/request?embed=1. frontend.css paints
   header navy + close btn white disc: undo. */
.lm-demo-modal .modal-dialog {
  max-width: 460px;
}
.lm-demo-modal .modal-content {
  background: var(--lm-paper);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(42, 33, 21, 0.3);
  overflow: hidden;
}
.lm-demo-modal .modal-header {
  position: relative;
  justify-content: center;
  background: var(--lm-paper);
  color: var(--lm-ink);
  border: 0;
  padding: 22px 56px 0;
}
.lm-demo-modal .modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--lm-ink);
  margin: 0;
}
.lm-demo-modal .btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  margin: 0;
  background-color: transparent;
  opacity: 0.55;
}
.lm-demo-modal .btn-close:hover {
  opacity: 1;
}
.lm-demo-modal .modal-body {
  padding: 0;
}
.lm-demo-modal iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
  background: var(--lm-paper);
}
body.modal-open .modal-backdrop.show {
  opacity: 1;
  background: rgba(42, 33, 21, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@media (max-width: 575px) {
  .lm-demo-modal .modal-dialog {
    margin: 10px;
  }
  .lm-demo-modal .modal-header {
    padding: 18px 56px 0;
  }
  .lm-demo-modal iframe {
    height: calc(100dvh - 190px);
  }
}

.lm-trust-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--lm-line-strong);
  padding-top: 24px;
}

.lm-trust-item {
  display: flex;
  flex-direction: column;
}

.lm-trust-num {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 700;
  color: var(--lm-ink);
}

.lm-trust-lbl {
  font-size: 12px;
  color: var(--lm-muted);
  margin-top: 2px;
}

.lm-trust-divider {
  width: 1px;
  height: 32px;
  background: var(--lm-line-strong);
}

/* ── Hero visual: receipt-card stack ── */

.lm-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.lm-card-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 2;
}

.lm-rcard {
  background: #fffcf4;
  border: 1.5px solid var(--lm-card-border);
  border-radius: 6px;
  padding: 16px 20px;
  box-shadow: 4px 4px 0 rgba(42, 33, 21, 0.08);
}

.lm-rcard--gl {
  background: #f7f1ff;
  border-color: #ddc9f5;
}

.lm-rcard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--lm-muted);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lm-rcard-header i {
  color: var(--lm-terracotta);
  font-size: 15px;
}

.lm-rcard-value {
  display: block;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  color: var(--lm-ink);
  margin-bottom: 2px;
}

.lm-rcard-label {
  display: block;
  font-size: 12px;
  color: var(--lm-muted);
  margin-bottom: 12px;
}

.lm-rcard-bar {
  background: rgba(42, 33, 21, 0.08);
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
}

.lm-rcard-progress {
  background: var(--lm-terracotta);
  height: 100%;
  border-radius: 4px;
}

.lm-rcard-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lm-forest-dark);
  margin-bottom: 6px;
}

.lm-rcard-auto {
  margin-left: auto;
  background: rgba(63, 92, 70, 0.12);
  color: var(--lm-forest-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.lm-rcard-gl-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6d3fa0;
  margin-bottom: 8px;
}

.lm-rcard-gl-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  padding: 3px 0;
  color: var(--lm-ink-soft);
}

.lm-rcard-gl-entry + .lm-rcard-gl-entry {
  border-top: 1px dashed #ddc9f5;
  margin-top: 2px;
  padding-top: 5px;
}

.lm-gl-side {
  width: 22px;
  font-weight: 700;
  color: var(--lm-forest);
  flex-shrink: 0;
}

.lm-gl-side--cr {
  color: var(--lm-red);
}

.lm-gl-amt {
  margin-left: auto;
  font-weight: 700;
  color: var(--lm-ink);
}

.lm-rcard--loan {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--lm-ink-soft);
}

.lm-rcard--loan i {
  color: var(--lm-forest);
  font-size: 18px;
  flex-shrink: 0;
}

/* ==========================================
   "ALIVE" LAYER — orbit motif,
   tactile hovers. Slow, purposeful, no scroll-jack.
   ========================================== */

.lm-rcard {
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out;
  will-change: transform;
}
.lm-rcard:hover {
  box-shadow: 6px 8px 0 rgba(42, 33, 21, 0.12);
}

.lm-archetype-card {
  transition:
    transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.3),
    box-shadow 0.25s ease;
}
.lm-archetype-card:hover {
  transform: translateY(-6px);
}
.lm-archetype-card:hover .lm-archetype-icon {
  transform: scale(1.08);
}
.lm-archetype-icon {
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.lm-rcard-value[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ==========================================
   EYEBROW + SECTION TITLES
   ========================================== */

.lm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  color: var(--lm-terracotta-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lm-eyebrow--light {
  color: #e8b98c;
}

.lm-eyebrow--light::before {
  background: #e8b98c;
}

.lm-eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--lm-terracotta);
  display: inline-block;
}

.lm-section-h2 {
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.lm-section-h2--light {
  color: var(--lm-paper);
}

.lm-section-sub {
  font-size: 17px;
  color: var(--lm-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.lm-text-center {
  text-align: center;
}

/* ==========================================
   ARCHETYPES
   ========================================== */

.lm-archetypes {
  background: var(--lm-paper-deep);
  border-top: 1px solid var(--lm-line-strong);
  border-bottom: 1px solid var(--lm-line-strong);
  padding: 76px 0;
}

.lm-archetype-card {
  background: #fffcf4;
  border: 1.5px solid var(--lm-card-border);
  border-radius: 6px;
  padding: 28px 24px;
  height: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.lm-archetype-card:hover {
  transform: translateY(-4px);
  box-shadow: 4px 6px 0 rgba(42, 33, 21, 0.1);
}

.lm-archetype-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(193, 89, 44, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 14px;
  color: var(--lm-terracotta-dark);
}

.lm-archetype-label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lm-terracotta-dark);
  margin-bottom: 6px;
}

.lm-archetype-h {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.lm-archetype-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.lm-archetype-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--lm-ink-soft);
  line-height: 1.5;
}

.lm-archetype-list li i {
  color: var(--lm-forest);
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 0.78rem;
}

/* ==========================================
   PROBLEM — real ledger table
   ========================================== */

.lm-problem {
  background: var(--lm-paper);
  padding: 84px 0;
}

.lm-compare-wrap {
  max-width: 880px;
  margin: 0 auto;
  border: 1.5px solid var(--lm-ink);
  border-radius: 4px;
  overflow: hidden;
  background: #fffcf4;
}

.lm-compare-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--lm-ink);
}

.lm-compare-head .lm-compare-col {
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lm-compare-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lm-paper);
}

.lm-compare-label--old i {
  color: #d98a6f;
}

.lm-compare-label--new i {
  color: #8fc9a0;
}

.lm-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--lm-line);
}

.lm-compare-row:last-child {
  border-bottom: none;
}

.lm-compare-col {
  padding: 15px 22px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.lm-compare-col--old {
  color: var(--lm-muted);
  border-right: 1px solid var(--lm-line);
}

.lm-compare-col--new {
  color: var(--lm-ink);
  font-weight: 400;
}

@media (max-width: 600px) {
  .lm-compare-head,
  .lm-compare-row {
    grid-template-columns: 1fr;
  }
  .lm-compare-col--old {
    border-right: none;
    border-bottom: 1px solid var(--lm-line);
  }
}

/* ==========================================
   FEATURES
   ========================================== */

.lm-features {
  background: var(--lm-paper-deep);
  padding: 84px 0;
}

.lm-feat-card {
  background: #fffcf4;
  border: 1.5px solid var(--lm-card-border);
  border-radius: 6px;
  padding: 28px;
  height: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.lm-feat-card:hover {
  transform: translateY(-3px);
  box-shadow: 3px 5px 0 rgba(42, 33, 21, 0.1);
}

.lm-feat-card--large {
  padding: 36px;
  background: var(--lm-ink);
  border-color: var(--lm-ink);
}

.lm-feat-card--large h3,
.lm-feat-card--large p {
  color: var(--lm-paper);
}

.lm-feat-card--large p {
  color: rgba(246, 239, 224, 0.88);
  opacity: 1;
}

.lm-feat-card--large .lm-feat-icon {
  background: rgba(246, 239, 224, 0.12);
  color: #e8b98c;
}

.lm-feat-card--accent {
  background: rgba(193, 89, 44, 0.05);
  border-color: rgba(193, 89, 44, 0.3);
}

.lm-feat-card--recon {
  background: rgba(63, 92, 70, 0.04);
  border-color: rgba(63, 92, 70, 0.25);
}

.lm-feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(193, 89, 44, 0.1);
  color: var(--lm-terracotta-dark);
  font-size: 20px;
}

.lm-feat-card--recon .lm-feat-icon {
  background: rgba(63, 92, 70, 0.12);
  color: var(--lm-forest-dark);
}

.lm-feat-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.lm-feat-card:not(.lm-feat-card--large) p {
  font-size: 14px;
  color: var(--lm-muted);
  line-height: 1.65;
  margin: 0 0 16px;
}

.lm-feat-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: #e8b98c;
  background: rgba(246, 239, 224, 0.12);
  padding: 4px 10px;
  border-radius: 10px;
}

.lm-feat-badge {
  display: inline-block;
  background: var(--lm-terracotta-btn);
  color: var(--lm-paper);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* ==========================================
   HOW IT WORKS
   ========================================== */

.lm-how {
  background: var(--lm-paper);
  padding: 84px 0;
}

.lm-step-card {
  background: #fffcf4;
  border: 1.5px solid var(--lm-card-border);
  border-radius: 8px;
  padding: 36px 28px;
  height: 100%;
  position: relative;
}

.lm-step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: rgba(193, 89, 44, 0.22);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}

.lm-step-icon {
  width: 48px;
  height: 48px;
  background: rgba(63, 92, 70, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--lm-forest-dark);
  font-size: 21px;
}

.lm-step-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
}

.lm-step-card p {
  font-size: 15px;
  color: var(--lm-muted);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================
   ROLES
   ========================================== */

.lm-roles {
  background: var(--lm-paper-deep);
  padding: 84px 0;
}

.lm-role-card {
  border-radius: 8px;
  padding: 36px;
  height: 100%;
}

.lm-role-card--admin {
  background: var(--lm-ink);
  border: 1.5px solid var(--lm-ink);
}

.lm-role-card--member {
  background: #fffcf4;
  border: 1.5px solid var(--lm-card-border);
}

.lm-role-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(246, 239, 224, 0.18);
}

.lm-role-card--member .lm-role-header {
  border-bottom-color: var(--lm-line-strong);
}

.lm-role-header i {
  font-size: 26px;
  color: #e8b98c;
}

.lm-role-card--member .lm-role-header i {
  color: var(--lm-terracotta-dark);
}

.lm-role-header h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--lm-paper);
  margin: 0;
}

.lm-role-card--member .lm-role-header h3 {
  color: var(--lm-ink);
}

.lm-role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.lm-role-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(246, 239, 224, 0.8);
  line-height: 1.5;
}

.lm-role-list--light li {
  color: var(--lm-ink-soft);
}

.lm-role-list li i {
  color: #8fc9a0;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.lm-role-list--light li i {
  color: var(--lm-forest);
}

/* ==========================================
   ACCOUNTING CALLOUT (the one deliberate dark/ink section)
   ========================================== */

.lm-accounting {
  background: var(--lm-ink);
  padding: 90px 0;
  position: relative;
}

.lm-accounting .container {
  position: relative;
}

.lm-acct-sub {
  font-size: 16px;
  color: rgba(246, 239, 224, 0.68);
  line-height: 1.7;
  margin-bottom: 28px;
}

.lm-acct-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lm-acct-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: rgba(246, 239, 224, 0.85);
}

.lm-acct-point i {
  color: #8fc9a0;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.lm-gl-preview {
  background: #322a1d;
  border: 1px solid rgba(246, 239, 224, 0.14);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.lm-gl-row {
  display: grid;
  grid-template-columns: 60px 80px 1fr 70px 70px;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(246, 239, 224, 0.1);
  color: rgba(246, 239, 224, 0.72);
  align-items: center;
}

.lm-gl-row:last-of-type {
  border-bottom: none;
}

.lm-gl-header {
  background: rgba(246, 239, 224, 0.05);
  color: rgba(246, 239, 224, 0.72);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lm-gl-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  color: #8fc9a0;
  background: rgba(143, 201, 160, 0.08);
  border-top: 1px solid rgba(246, 239, 224, 0.1);
}

/* ==========================================
   FOOTER
   ========================================== */

.lm-footer {
  background: var(--lm-ink);
  /* frontend.css .footer centres text + italicises p. reset. */
  text-align: left;
  font-family: var(--font-body);
}

.lm-footer p {
  font-style: normal;
  font-size: 14px;
  margin: 0 0 8px;
}

.lm-footer-top {
  padding-top: 60px;
  padding-bottom: 40px;
}

.lm-footer-logo {
  height: 34px;
  margin-bottom: 16px;
  display: block;
}

.lm-footer-desc {
  font-size: 14px;
  color: rgba(246, 239, 224, 0.7);
  line-height: 1.7;
  margin-bottom: 20px;
}

.lm-footer-heading {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: rgba(246, 239, 224, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.lm-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lm-footer-links li a {
  font-size: 14px;
  color: rgba(246, 239, 224, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lm-footer-links li a:hover {
  color: #e8b98c;
}

.lm-footer-contact {
  font-size: 13px;
  color: rgba(246, 239, 224, 0.7);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.lm-footer-contact i {
  color: #e8b98c;
  flex-shrink: 0;
  margin-top: 2px;
}

.lm-footer-bottom {
  border-top: 1px solid rgba(246, 239, 224, 0.12);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  text-align: left;
}

.lm-footer-bottom .copyright {
  font-size: 13px;
  color: rgba(246, 239, 224, 0.6);
}

.lm-social-links {
  gap: 10px;
}

.lm-social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(246, 239, 224, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(246, 239, 224, 0.5);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s ease;
}

.lm-social-links a:hover {
  border-color: #e8b98c;
  color: #e8b98c;
}

/* ==========================================
   FAQ / CONTACT (reuse frontend.css structure, retint)
   ========================================== */

.lm-faq,
.lm-contact {
  background: var(--lm-paper);
  padding: 84px 0;
}

/* ---- FAQ plain list ---- */

.lm-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lm-faq-static-item {
  background: #fffcf4;
  border: 1.5px solid var(--lm-card-border);
  border-radius: 4px;
  padding: 18px 22px;
}

.lm-faq-static-q {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lm-ink);
  margin-bottom: 8px;
}

.lm-faq-static-a {
  margin: 0;
  color: var(--lm-ink-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

.lm-contact .info-item {
  margin-bottom: 22px;
}

.lm-contact .info-item i {
  color: var(--lm-terracotta-dark);
  font-size: 22px;
  margin-right: 14px;
}

.lm-contact .info-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.lm-contact .info-item p {
  color: var(--lm-muted);
  font-size: 14px;
}

.lm-contact .form-control {
  background: #fffcf4;
  border: 1.5px solid var(--lm-card-border);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--lm-ink);
}

.lm-contact .form-control:focus {
  border-color: var(--lm-terracotta);
  box-shadow: none;
}

.lm-contact #contactSubmit {
  background: var(--lm-terracotta-btn);
  border: none;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--lm-ink);
}

.lm-contact #contactSubmit:hover {
  background: var(--lm-terracotta-dark);
}

/* ==========================================
   SCROLL TOP
   ========================================== */

.lm-scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 24px;
  bottom: 24px;
  z-index: 1030;
  background: var(--lm-ink);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--lm-paper);
  font-size: 20px;
  text-decoration: none;
}

.lm-scroll-top.active {
  visibility: visible;
  opacity: 1;
}

.lm-scroll-top:hover {
  background: var(--lm-terracotta);
  color: var(--lm-paper);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* ===== Pricing — retint the shared TrueCost-driven markup, structure untouched ===== */
.lm-pricing {
  padding: 100px 0;
  background: var(--lm-paper);
  position: relative;
}
.lm-pricing .pricing-hero {
  display: none;
}
.lm-pricing #pricing-cards-container {
  margin-bottom: 3rem;
}

.lm-pricing .pricing-card {
  background: #fffcf4 !important;
  border-radius: 4px !important;
  border: 1.5px solid var(--lm-card-border) !important;
  box-shadow: 5px 6px 0 rgba(42, 33, 21, 0.06) !important;
}
.lm-pricing .pricing-card:hover {
  box-shadow: 7px 9px 0 rgba(42, 33, 21, 0.1) !important;
  transform: translateY(-4px);
}
.lm-pricing .pricing-card.popular {
  border: 2px solid var(--lm-terracotta) !important;
  transform: none !important;
  box-shadow: 6px 8px 0 rgba(193, 89, 44, 0.18) !important;
}
.lm-pricing .pricing-card.popular:hover {
  transform: translateY(-4px) !important;
  box-shadow: 8px 11px 0 rgba(193, 89, 44, 0.22) !important;
}
.lm-pricing .pricing-card .popular-badge {
  background: var(--lm-terracotta-btn) !important;
  font-family: var(--font-display) !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
}
.lm-pricing .pricing-card .card-header {
  background: transparent !important;
}
.lm-pricing .pricing-card.popular .card-header {
  background: transparent !important;
}
.lm-pricing .pricing-card .plan-name {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  color: var(--lm-ink) !important;
}
.lm-pricing .pricing-card.popular .plan-name {
  color: var(--lm-terracotta-dark) !important;
}
.lm-pricing .pricing-card .price-container .price {
  font-family: var(--font-display) !important;
  color: var(--lm-ink) !important;
}
.lm-pricing .pricing-card.popular .price-container .price {
  color: var(--lm-terracotta-dark) !important;
}
.lm-pricing .pricing-card .price-container .currency,
.lm-pricing .pricing-card .price-container .period {
  color: var(--lm-muted) !important;
}
/* nunito 500 not loaded. was rendering 400. say so. */
.lm-pricing .pricing-card .price-container .period {
  font-weight: 400 !important;
}
.lm-pricing .pricing-card .card-body {
  background: transparent !important;
}
.lm-pricing .pricing-card .features-list li {
  border-bottom: 1px dashed var(--lm-card-border) !important;
  color: var(--lm-ink-soft) !important;
  font-family: var(--font-body) !important;
}
.lm-pricing .features-list li i {
  color: var(--lm-forest) !important;
}
.lm-pricing .pricing-card.popular .features-list li i {
  color: var(--lm-terracotta) !important;
}
.lm-pricing .pricing-card .cta-btn {
  border-radius: 4px !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
}
.lm-pricing .pricing-card .cta-btn.btn-primary,
.lm-pricing .pricing-card .cta-btn.btn-dark {
  background: var(--lm-terracotta-btn) !important;
  box-shadow: 3px 4px 0 rgba(42, 33, 21, 0.16) !important;
}
.lm-pricing .pricing-card .cta-btn.btn-primary:hover,
.lm-pricing .pricing-card .cta-btn.btn-dark:hover {
  background: var(--lm-terracotta-dark) !important;
  transform: translate(-1px, -1px) !important;
  box-shadow: 4px 5px 0 rgba(42, 33, 21, 0.2) !important;
}
.lm-pricing .pricing-card .cta-btn.btn-outline-primary {
  background: transparent !important;
  color: var(--lm-terracotta-dark) !important;
  border-color: var(--lm-terracotta) !important;
}
.lm-pricing .pricing-card .cta-btn.btn-outline-primary:hover {
  background: var(--lm-terracotta) !important;
  color: #fffcf4 !important;
}
.lm-pricing .enterprise-card {
  background: var(--lm-ink) !important;
  border-radius: 4px !important;
}
.lm-pricing .enterprise-badge {
  background: var(--lm-gold) !important;
  color: var(--lm-ink) !important;
}
.lm-pricing .enterprise-cta-note {
  color: rgba(246, 239, 224, 0.75) !important;
}
.lm-pricing .enterprise-card .plan-name,
.lm-pricing .enterprise-price-label,
.lm-pricing .enterprise-tagline,
.lm-pricing .enterprise-features .features-list li {
  color: #f6efe0 !important;
}
.lm-pricing .enterprise-features .features-list li i {
  color: var(--lm-gold) !important;
}
.lm-pricing .enterprise-cta .cta-btn.btn-enterprise {
  background: var(--lm-gold) !important;
  color: var(--lm-ink) !important;
}
.lm-pricing #pricing-cards-container .spinner-border {
  color: var(--lm-terracotta) !important;
}

/* ===== Trust strip — small, factual, sits between accounting and FAQ ===== */
.lm-trust-strip {
  background: var(--lm-paper-deep);
  border-top: 1px solid var(--lm-card-border);
  border-bottom: 1px solid var(--lm-card-border);
  padding: 36px 0;
}
.lm-trust-strip .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  text-align: center;
}
.lm-trust-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--lm-ink-soft);
}
.lm-trust-strip-item i {
  font-size: 18px;
  color: var(--lm-forest);
}

@media (max-width: 768px) {
  .lm-hero {
    padding-top: 110px;
    padding-bottom: 60px;
  }
  .lm-trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }
  .lm-trust-divider {
    display: none;
  }
  .lm-role-card--admin,
  .lm-role-card--member {
    padding: 24px;
  }
  .lm-gl-row {
    grid-template-columns: 50px 70px 1fr 60px 60px;
    font-size: 11px;
  }
  .lm-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .lm-archetypes,
  .lm-problem,
  .lm-features,
  .lm-how,
  .lm-roles,
  .lm-accounting,
  .lm-pricing,
  .lm-faq,
  .lm-contact {
    padding: 56px 0;
  }
  .lm-trust-strip .row {
    gap: 18px 28px;
  }
}

@media (max-width: 480px) {
  .lm-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    text-align: center;
  }
  .lm-btn-primary,
  .lm-btn-secondary {
    text-align: center;
    justify-content: center;
    width: 100%;
  }
  .lm-hero-link {
    align-self: center;
  }
  .lm-gl-row {
    grid-template-columns: 42px 76px 1fr 50px;
  }
  .lm-gl-row span:last-child {
    display: none;
  }
}

/* ===== trust strip + footer, phone ===== */
@media (max-width: 768px) {
  .lm-trust-strip .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
    justify-items: start;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ==========================================
   READABILITY + PHONE FIXES
   ========================================== */

/* pricing.css toggle is bootstrap blue. retint to landing. */
.lm-pricing .pricing-cycle-toggle {
  background: #fffcf4;
  border: 1.5px solid var(--lm-card-border);
}

.lm-pricing .pricing-cycle-toggle .cycle-btn {
  color: var(--lm-ink-soft);
  min-height: 44px;
}

.lm-pricing .pricing-cycle-toggle .cycle-btn.active {
  background: var(--lm-paper);
  color: var(--lm-terracotta-dark);
  box-shadow: 0 1px 4px rgba(42, 33, 21, 0.14);
}

.lm-pricing .pricing-cycle-toggle .cycle-badge {
  background: rgba(63, 92, 70, 0.14);
  color: var(--lm-forest-dark);
}

/* long plan lists. phone shows first 6, button reveals rest. */
.lm-plan-more {
  display: none;
}

@media (max-width: 767px) {
  .lm-pricing .pricing-cycle-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    border-radius: 16px;
  }

  .lm-pricing .pricing-cycle-toggle .cycle-btn {
    flex-direction: column;
    gap: 2px;
    border-radius: 12px;
    padding: 6px 8px;
  }

  .lm-pricing .features-list.lm-plan-collapsed li:not(.lm-key) {
    display: none !important;
  }

  .lm-plan-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    margin: 4px 0 16px;
    background: transparent;
    border: 1.5px dashed var(--lm-card-border);
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--lm-terracotta-dark);
  }
}

/* labels are real text (screen readers). shown on phone only, where header row is gone. */
.lm-compare-tag {
  display: none;
}

@media (max-width: 600px) {
  .lm-compare-head {
    display: none;
  }

  .lm-compare-row {
    border-bottom: 1.5px solid var(--lm-line-strong);
  }

  .lm-compare-col {
    padding: 14px 18px;
  }

  .lm-compare-tag {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .lm-compare-col--old {
    background: rgba(164, 64, 42, 0.04);
  }

  .lm-compare-col--old .lm-compare-tag {
    color: var(--lm-red);
  }

  .lm-compare-col--new .lm-compare-tag {
    color: var(--lm-forest-dark);
  }
}

/* tap targets: 44px min on touch */
@media (max-width: 1199px) {
  .lm-nav-cta-mobile {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .lm-header .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  .lm-hero-link {
    min-height: 44px;
  }

  .lm-footer-links {
    gap: 0;
  }

  .lm-footer-links li a,
  .lm-footer-contact a,
  .lm-contact .info-item a {
    display: inline-block;
    padding: 10px 0;
  }

  /* padded link pushes text below icon. center them. */
  .lm-footer-contact {
    align-items: center;
    min-height: 44px;
    margin-bottom: 0;
  }

  .lm-footer-contact i {
    margin-top: 0;
  }

  .lm-social-links a {
    width: 44px;
    height: 44px;
  }
}

.lm-footer-contact a {
  color: inherit;
  text-decoration: none;
}

.lm-footer-contact a:hover {
  color: #e8b98c;
}

.lm-contact .info-item a {
  color: inherit;
  text-decoration: none;
}

.lm-contact .info-item a:hover {
  color: var(--lm-terracotta-dark);
}

/* ==========================================
   WHATSAPP FLOAT
   ========================================== */

.lm-wa-float {
  position: fixed;
  right: 24px;
  bottom: 80px;
  z-index: 1029;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 24px;
  /* whatsapp teal. brand green #25d366 fails white text. */
  background: #075e54;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(42, 33, 21, 0.25);
}

.lm-wa-float i {
  font-size: 22px;
}

.lm-wa-float:hover {
  background: #054d45;
  color: #fff;
}

@media (max-width: 767px) {
  /* back-to-top sat on row text. header nav already covers it on phone. */
  .lm-scroll-top {
    display: none !important;
  }

  /* bar not circle: circle sat over text. shown after hero (js adds .lm-show). footer padded so bar never hides it. */
  .lm-wa-float {
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    height: calc(52px + env(safe-area-inset-bottom));
    padding: 0 16px env(safe-area-inset-bottom);
    justify-content: center;
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(42, 33, 21, 0.18);
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }

  .lm-wa-float.lm-show {
    transform: none;
  }

  .lm-footer {
    padding-bottom: calc(52px + env(safe-area-inset-bottom));
  }
}
