/* ==========================================================================
   Mankai CRM Marketing - Site Component System (lx-)
   v9 permanent redesign. Lexend Home 6 design language rebuilt natively for
   WordPress: inset rounded panels, pill navigation, solid surfaces, real
   product screenshots. No glassmorphism. All values come from tokens.css.

   Index:
     1. Base + helpers          8. Feature tabs
     2. Buttons                 9. Dark finance band
     3. Header + nav           10. Split showcases (galleries, portal, wp)
     4. Hero                   11. Automation grid + integrations
     5. Frames (browser/phone) 12. Phones (mobile PWA)
     6. Marquee                13. Pricing + setup + compare
     7. Bento                  14. Founder, FAQ, final CTA, footer
                               15. Lightbox, sticky CTA, reveals, responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base + helpers
   -------------------------------------------------------------------------- */
.lx-container { width: var(--container); max-width: 100%; margin-inline: auto; }
.lx-container--wide { width: var(--container-wide); max-width: 100%; }

/* Prevent screenshot sliders / wide media from forcing page-level horizontal scroll. */
html { overflow-x: clip; }

.lx-section { padding-block: var(--section-pad); }
.lx-section--tight { padding-block: calc(var(--section-pad) * 0.66); }

/* Inset rounded panel sections (Lexend signature) */
.lx-panel {
  margin-inline: var(--inset);
  border-radius: var(--radius-inset);
}
.lx-panel--dark {
  background: var(--night);
  color: var(--night-ink);
}
.lx-panel--cream { background: var(--paper-sunken); }

.lx-section--cream { background: var(--paper-sunken); }

/* Section headings */
.lx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  font-size: var(--text-eyebrow);
  font-weight: 660;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.lx-eyebrow .lx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}
.lx-eyebrow--gold .lx-dot { background: var(--gold); }
.lx-eyebrow--onDark {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--ink-soft);
}

.lx-head { max-width: 54rem; margin-bottom: clamp(36px, 4.5vw, 60px); }
.lx-head--center { margin-inline: auto; text-align: center; }
.lx-head .lx-eyebrow { margin-bottom: var(--space-4); }
.lx-h2 {
  font-size: var(--text-h2);
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
.lx-sub {
  font-size: var(--text-lede);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 40rem;
}
.lx-head--center .lx-sub { margin-inline: auto; }
.lx-panel--dark .lx-h2 { color: #FFFFFF; }
.lx-panel--dark .lx-sub { color: var(--night-soft); }

/* Amber tilted highlight (Lexend motif) */
.lx-highlight {
  display: inline-block;
  padding: 0 0.18em;
  background: var(--gold);
  color: var(--ink);
  border-radius: 6px;
  transform: rotate(-1.2deg);
}

.lx-fine {
  font-size: var(--text-caption);
  line-height: 1.55;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   2. Buttons
   -------------------------------------------------------------------------- */
.lx-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 22px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 640;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--speed) var(--ease-soft), color var(--speed) var(--ease-soft), border-color var(--speed) var(--ease-soft), transform var(--speed) var(--ease-out);
}
.lx-btn:hover { transform: translateY(-1px); }
.lx-btn:active { transform: none; }
.lx-btn .lx-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 15px;
  flex: 0 0 auto;
  transition: transform var(--speed) var(--ease-out);
}
.lx-btn:hover .lx-arrow { transform: translateX(3px); }

.lx-btn--primary { background: var(--accent); color: #FFFFFF; }
.lx-btn--primary:hover { background: var(--accent-deep); color: #FFFFFF; }
.lx-btn--primary .lx-arrow { background: #FFFFFF; color: var(--accent); }

.lx-btn--ink { background: var(--ink); color: #FFFFFF; }
.lx-btn--ink:hover { background: #14161d; color: #FFFFFF; }
.lx-btn--ink .lx-arrow { background: #FFFFFF; color: var(--ink); }

.lx-btn--ghost {
  background: var(--paper-raised);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.lx-btn--ghost:hover { border-color: var(--ink-faint); color: var(--ink); }
.lx-btn--ghost .lx-arrow { background: var(--ink); color: #FFFFFF; }

.lx-btn--light { background: #FFFFFF; color: var(--ink); }
.lx-btn--light:hover { background: var(--paper-sunken); color: var(--ink); }
.lx-btn--light .lx-arrow { background: var(--ink); color: #FFFFFF; }

.lx-btn--sm { min-height: 42px; padding: 4px 4px 4px 16px; font-size: var(--text-caption); }
.lx-btn--sm .lx-arrow { width: 30px; height: 30px; font-size: 13px; }

.lx-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   3. Header + navigation (integrated Lexend-style bar, no pill)
   -------------------------------------------------------------------------- */
.mk-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background var(--speed) var(--ease-soft), border-color var(--speed) var(--ease-soft), box-shadow var(--speed) var(--ease-soft);
}
.mk-header.is-scrolled { box-shadow: var(--shadow-s); }

/* Homepage: the header shares the dark hero background and blends into it.
   When scrolled it becomes a solid night bar. */
body.mk-home .mk-header {
  background: transparent;
  border-bottom-color: transparent;
}
body.mk-home .mk-header.is-scrolled {
  background: var(--night);
  border-bottom-color: var(--night-line);
  box-shadow: 0 8px 24px -12px rgb(0 0 0 / 0.45);
}

.lx-header-bar {
  width: var(--container-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.lx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  min-width: 0;
  justify-self: start;
}
.lx-brand:hover { color: var(--ink); }
.lx-brand img { width: 34px; height: 34px; display: block; flex: 0 0 auto; }
.lx-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  line-height: 1;
}
.lx-brand-name {
  font-weight: 760;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.lx-brand-by {
  font-size: 10.5px;
  font-weight: 540;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink-faint);
  white-space: nowrap;
}
body.mk-home .mk-header .lx-brand { color: #FFFFFF; }
body.mk-home .mk-header .lx-brand-by { color: var(--night-soft); }

.lx-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 18px);
  justify-self: center;
  grid-column: 2;
}
.lx-nav > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-small);
  font-weight: 590;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 10px 10px;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--radius-s);
  transition: color var(--speed) var(--ease-soft);
}
.lx-nav > a:hover { color: var(--ink); }
.lx-nav > a.is-active { color: var(--accent-deep); }
body.mk-home .mk-header .lx-nav > a { color: var(--night-soft); }
body.mk-home .mk-header .lx-nav > a:hover { color: #FFFFFF; }
body.mk-home .mk-header .lx-nav > a.is-active { color: var(--gold); }
.lx-nav-caret { font-size: 10px; transition: transform var(--speed) var(--ease-out); }
.lx-nav-drop.is-open .lx-nav-caret { transform: rotate(180deg); }

/* Features: layer 1 = compact flyout (3 options). Layer 2 = full-width mega. */
.lx-nav-drop { position: static; }
.lx-nav-features-anchor { position: relative; display: inline-flex; }
.lx-nav-features-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-small);
  font-weight: 590;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 10px 10px;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--radius-s);
  transition: color var(--speed) var(--ease-soft);
}
.lx-nav-features-btn:hover { color: var(--ink); }
body.mk-home .mk-header .lx-nav-features-btn { color: var(--night-soft); }
body.mk-home .mk-header .lx-nav-features-btn:hover,
body.mk-home .mk-header .lx-nav-drop.is-open .lx-nav-features-btn { color: #FFFFFF; }

.lx-nav-flyout {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  transform: translateY(6px);
  width: min(320px, calc(100vw - 32px));
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--speed) var(--ease-out), transform var(--speed) var(--ease-out), visibility 0s linear var(--speed);
  z-index: 130;
}
.lx-nav-drop.is-open:not(.is-mega) .lx-nav-flyout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity var(--speed) var(--ease-out), transform var(--speed) var(--ease-out);
}
.lx-nav-flyout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.lx-nav-flyout-item:hover,
.lx-nav-flyout-item:focus-visible { background: var(--paper-sunken); }
.lx-nav-flyout-item strong {
  display: block;
  font-size: var(--text-small);
  font-weight: 680;
  line-height: 1.3;
}
.lx-nav-flyout-item small {
  display: block;
  margin-top: 2px;
  font-size: var(--text-caption);
  color: var(--ink-faint);
  line-height: 1.35;
}
.lx-nav-flyout-chevron {
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink-faint);
}
.lx-nav-flyout-all {
  display: block;
  margin-top: 4px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: var(--text-small);
  font-weight: 640;
  color: var(--ink);
}
.lx-nav-flyout-all:hover { color: var(--accent-deep); }

.lx-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: var(--container-wide);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: clamp(22px, 2.2vw, 32px) clamp(22px, 2.2vw, 36px) 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--speed) var(--ease-out), transform var(--speed) var(--ease-out), visibility 0s linear var(--speed);
  max-height: calc(100vh - var(--header-h) - 16px);
  overflow-y: auto;
  z-index: 120;
}
.lx-nav-drop.is-mega .lx-mega.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity var(--speed) var(--ease-out), transform var(--speed) var(--ease-out);
}
.lx-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) clamp(28px, 4vw, 64px);
}
.lx-mega-group h4 {
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-small);
  font-weight: 680;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}
.lx-mega-group ul { list-style: none; margin: 0; padding: 0; }
.lx-mega-group li a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 10px;
  margin-inline: -10px;
  border-radius: var(--radius-s);
  transition: background var(--speed) var(--ease-soft);
}
.lx-mega-group li a:hover,
.lx-mega-group li a:focus-visible { background: var(--paper-sunken); }
.lx-mega-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-s);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #CF4D49;
  color: #FFFFFF;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.lx-mega-icon svg { width: 16px; height: 16px; }
/* Solid per-feature icon colors (no wash / glass). */
.lx-mega-icon:has([data-icon="dashboard"]) { background: #CF4D49; }
.lx-mega-icon:has([data-icon="clients"]) { background: #3B6B8C; }
.lx-mega-icon:has([data-icon="sessions"]) { background: #EAAB6B; }
.lx-mega-icon:has([data-icon="calendar"]) { background: #2E9E6B; }
.lx-mega-icon:has([data-icon="availability"]) { background: #C48A2E; }
.lx-mega-icon:has([data-icon="inbox"]) { background: #3D7A8C; }
.lx-mega-icon:has([data-icon="email"]) { background: #C45C3E; }
.lx-mega-icon:has([data-icon="forms"]) { background: #5A7D5A; }
.lx-mega-icon:has([data-icon="documents"]) { background: #6B5B4F; }
.lx-mega-icon:has([data-icon="quotes"]) { background: #B84F4B; }
.lx-mega-icon:has([data-icon="invoices"]) { background: #2E7D6B; }
.lx-mega-icon:has([data-icon="payments"]) { background: #1F7A4D; }
.lx-mega-icon:has([data-icon="retainers"]) { background: #B86B3A; }
.lx-mega-icon:has([data-icon="expenses"]) { background: #8B5A2B; }
.lx-mega-icon:has([data-icon="coupons"]) { background: #B85A6A; }
.lx-mega-icon:has([data-icon="galleries"]) { background: #4A6FA5; }
.lx-mega-icon:has([data-icon="media"]) { background: #5C7A6B; }
.lx-mega-icon:has([data-icon="portal"]) { background: #2F5D7A; }
.lx-mega-icon:has([data-icon="print"]) { background: #7A5C3E; }
.lx-mega-icon:has([data-icon="workflows"]) { background: #A93732; }
.lx-mega-icon:has([data-icon="website"]) { background: #35607A; }
.lx-mega-icon:has([data-icon="portfolio"]) { background: #D08A3E; }
.lx-mega-icon:has([data-icon="branding"]) { background: #A93732; }
.lx-mega-icon:has([data-icon="mobile"]) { background: #272A34; }
.lx-mega-icon:has([data-icon="wordpress"]) { background: #21759B; }
.lx-mega-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lx-mega-text strong { font-size: var(--text-small); font-weight: 640; color: var(--ink); line-height: 1.3; }
.lx-mega-text small { font-size: var(--text-caption); color: var(--ink-faint); line-height: 1.35; }
.lx-mega-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin: var(--space-5) calc(-1 * clamp(22px, 2.2vw, 36px)) 0;
  padding: 14px clamp(22px, 2.2vw, 36px);
  background: var(--paper-sunken);
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  font-size: var(--text-small);
  color: var(--ink-soft);
}
.lx-mega-back {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 640;
  color: var(--ink);
  cursor: pointer;
}
.lx-mega-back:hover { color: var(--accent-deep); }
.lx-mega-foot-links { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.lx-mega-foot-links a { font-weight: 640; color: var(--ink); }
.lx-mega-foot-links a:hover { color: var(--accent-deep); }

@media (max-width: 720px) {
  .lx-mega-grid { grid-template-columns: 1fr; }
}

.lx-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  justify-self: end;
  grid-column: 3;
}
.lx-header-actions .lx-login {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 6px;
}
.lx-header-actions .lx-login:hover { color: var(--ink); }
body.mk-home .mk-header .lx-login { color: var(--night-soft); }
body.mk-home .mk-header .lx-login:hover { color: #FFFFFF; }
.lx-header-actions .lx-btn { min-height: 46px; }

.mk-nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--ink);
}
body.mk-home .mk-header .mk-nav-toggle { color: #FFFFFF; }

/* Mobile sheet: expandable Features directory */
.lx-sheet-features { border-bottom: 1px solid var(--line); }
.lx-sheet-features > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-2);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 660;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.lx-sheet-features > summary::-webkit-details-marker { display: none; }
.lx-sheet-features > summary svg { transition: transform var(--speed) var(--ease-out); }
.lx-sheet-features[open] > summary svg { transform: rotate(180deg); }
.lx-sheet-features-body { padding: 0 var(--space-2) var(--space-4); }
.lx-sheet-cat {
  border-bottom: 1px solid var(--line);
}
.lx-sheet-cat > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 640;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.lx-sheet-cat > summary::-webkit-details-marker { display: none; }
.lx-sheet-cat > summary svg {
  flex: 0 0 auto;
  color: var(--ink-faint);
  transition: transform var(--speed) var(--ease-out);
}
.lx-sheet-cat[open] > summary svg { transform: rotate(180deg); }
.lx-sheet-cat-body {
  display: flex;
  flex-direction: column;
  padding: 0 0 var(--space-3);
}
.lx-sheet-group-label {
  margin: var(--space-3) 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.lx-sheet-group-label:first-child { margin-top: 0; }

/* Reset giant .mk-sheet-nav a styles for nested feature rows. */
.mk-sheet-nav .lx-sheet-feature,
.mk-sheet-nav .lx-sheet-all {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-soft);
  border-bottom: 0;
  opacity: 1;
  transform: none;
  transition: color var(--speed) var(--ease-soft);
}
.mk-sheet.is-open .mk-sheet-nav .lx-sheet-feature,
.mk-sheet.is-open .mk-sheet-nav .lx-sheet-all {
  opacity: 1;
  transform: none;
  transition: color var(--speed) var(--ease-soft);
}
.mk-sheet-nav .lx-sheet-feature:hover,
.mk-sheet-nav .lx-sheet-all:hover { color: var(--ink); }
.mk-sheet-nav .lx-sheet-feature .lx-mega-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}
.mk-sheet-nav .lx-sheet-feature .lx-mega-icon svg { width: 16px; height: 16px; }
.lx-sheet-feature-label {
  min-width: 0;
  flex: 1 1 auto;
  text-wrap: balance;
}
.mk-sheet-nav .lx-sheet-all {
  font-weight: 660;
  color: var(--accent-deep);
  margin-top: var(--space-3);
  padding-block: 12px;
}

@media (max-width: 1080px) {
  .lx-nav { display: none; }
  .mk-nav-toggle { display: inline-flex; }
  .lx-header-actions .lx-login { display: none; }
  .lx-header-bar {
    width: 100%;
    padding-inline: var(--space-4);
    grid-template-columns: 1fr auto;
  }
  .lx-header-actions { grid-column: 2; }
}
@media (max-width: 560px) {
  .lx-header-actions .lx-btn { min-height: 40px; padding: 4px 4px 4px 14px; font-size: var(--text-caption); }
  .lx-header-actions .lx-btn .lx-arrow { width: 28px; height: 28px; }
}
@media (max-width: 420px) {
  .lx-brand { gap: 8px; }
  .lx-brand img { width: 30px; height: 30px; }
  .lx-brand-name { font-size: 0.95rem; }
  .lx-brand-by { font-size: 10px; }
}
@media (max-width: 340px) {
  /* Narrowest phones: keep product name, drop byline */
  .lx-brand-by { display: none; }
}

/* --------------------------------------------------------------------------
   4. Hero (full-bleed dark section, header blends into it)
   -------------------------------------------------------------------------- */
.lx-hero {
  position: relative;
  margin: calc(-1 * var(--header-h)) 0 0;
  border-radius: 0 0 var(--radius-inset) var(--radius-inset);
  background:
    radial-gradient(900px 420px at 18% -12%, rgb(207 77 73 / 0.1) 0%, transparent 60%),
    radial-gradient(760px 400px at 86% 2%, rgb(234 171 107 / 0.08) 0%, transparent 55%),
    var(--night);
  color: var(--night-ink);
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(44px, 6.5vw, 92px)) 0 0;
}
.lx-hero-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  font-size: var(--text-eyebrow);
  font-weight: 660;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.lx-hero-badge .lx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.lx-hero h1 {
  font-size: var(--text-hero);
  font-weight: 770;
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: #FFFFFF;
  margin: 0 0 var(--space-5);
  max-width: 17ch;
  text-wrap: balance;
}
.lx-hero-sub {
  font-size: var(--text-lede);
  line-height: 1.6;
  color: var(--night-soft);
  max-width: 42rem;
  margin: 0 0 var(--space-6);
}
.lx-hero .lx-btn-row { justify-content: center; margin-bottom: var(--space-5); }
.lx-hero-founder {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-caption);
  color: var(--night-faint);
  margin: 0 0 clamp(36px, 5vw, 60px);
}
.lx-hero-founder img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.lx-hero-founder strong { color: var(--night-soft); font-weight: 640; }

/* Hero product stage: browser-framed dashboard bleeding off the panel edge */
.lx-hero-stage {
  position: relative;
  width: min(1120px, 94%);
  margin-inline: auto;
  margin-bottom: calc(-1 * clamp(28px, 4vw, 64px));
}
.lx-hero-stage .lx-frame { box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.55); }

/* Floating phone (desktop only) */
.lx-hero-phone {
  position: absolute;
  right: -3%;
  bottom: -6%;
  width: min(19%, 210px);
  z-index: 3;
  display: none;
}
@media (min-width: 1024px) { .lx-hero-phone { display: block; } }
html.hx-motion .lx-hero-phone { animation: lx-drift var(--drift-duration) var(--ease-soft) infinite alternate; }
@keyframes lx-drift {
  from { transform: translateY(-5px); }
  to { transform: translateY(6px); }
}

@media (max-width: 640px) {
  .lx-hero { padding-top: calc(var(--header-h) + 32px); }
  .lx-hero h1 { font-size: clamp(2.1rem, 8.6vw, 2.6rem); max-width: 13ch; }
  .lx-hero-sub { font-size: 1.05rem; max-width: 24rem; }
  .lx-hero .lx-btn-row { width: 100%; }
  .lx-hero .lx-btn-row .lx-btn { width: 100%; justify-content: space-between; }
  .lx-hero-stage { width: 100%; margin-bottom: -16px; }
  .lx-hero-stage .lx-frame { border-radius: 12px 12px 0 0; }
}

/* --------------------------------------------------------------------------
   5. Screenshot frames
   -------------------------------------------------------------------------- */
.lx-frame {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-m);
}
.lx-frame-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px 14px;
  background: #F4F2EE;
  border-bottom: 1px solid var(--line);
}
.lx-frame-dots { display: flex; gap: 5px; }
.lx-frame-dots span { width: 9px; height: 9px; border-radius: 50%; background: #D9D4CA; }
.lx-frame-url {
  margin-inline: auto;
  font-size: 11px;
  font-weight: 560;
  color: var(--ink-faint);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px 14px;
}
.lx-frame img { display: block; width: 100%; height: auto; }

/* Dark chrome variant (on night panels) */
.lx-frame--dark { border-color: var(--night-line); }
.lx-frame--dark .lx-frame-bar { background: var(--night-raised); border-color: var(--night-line); }
.lx-frame--dark .lx-frame-dots span { background: var(--night-line); }
.lx-frame--dark .lx-frame-url { background: var(--night); border-color: var(--night-line); color: var(--night-soft); }

/* Plain shot (no chrome) */
.lx-shot {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: var(--shadow-s);
}
.lx-shot img { display: block; width: 100%; height: auto; }

/* Phone frame */
.lx-phone {
  border: 6px solid var(--ink);
  border-radius: 34px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-l);
}
.lx-phone img { display: block; width: 100%; height: auto; border-radius: 28px; }

.lx-frame-note {
  margin-top: var(--space-3);
  font-size: var(--text-caption);
  color: var(--ink-faint);
  text-align: center;
}

/* Lightbox affordance */
.lx-zoom { position: relative; cursor: zoom-in; }
.lx-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   6. Capability marquee
   -------------------------------------------------------------------------- */
.lx-marquee {
  overflow: hidden;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.lx-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
}
html.hx-motion .lx-marquee-track { animation: lx-marquee 44s linear infinite; }
.lx-marquee:hover .lx-marquee-track { animation-play-state: paused; }
.lx-marquee .lx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: var(--text-small);
  font-weight: 580;
  color: var(--ink-soft);
  white-space: nowrap;
}
.lx-marquee .lx-chip::before { content: none; }
.lx-marquee .lx-chip::after {
  content: '\00b7';
  margin: 0 1.1em;
  color: var(--ink-faint);
  font-weight: 500;
}
@keyframes lx-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  html.hx-motion .lx-marquee-track { animation: none; }
}

/* --------------------------------------------------------------------------
   7. Bento (core platform)
   -------------------------------------------------------------------------- */
.lx-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
}
.lx-card {
  position: relative;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: clamp(24px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
  transition: transform var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out);
}
.lx-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.lx-card--cream { background: var(--paper-sunken); }
.lx-card--night {
  background: var(--night);
  border-color: var(--night-line);
  color: var(--night-ink);
}
.lx-card.lx-card--night h3 { color: #FFFFFF; }
.lx-card.lx-card--night > p { color: var(--night-soft); }
.lx-span-7 { grid-column: span 7; }
.lx-span-5 { grid-column: span 5; }
.lx-span-4 { grid-column: span 4; }
.lx-span-6 { grid-column: span 6; }
.lx-card-kicker {
  font-size: var(--text-eyebrow);
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.lx-card--night .lx-card-kicker { color: var(--gold); }
.lx-card h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.16;
  color: var(--ink);
  margin: 0;
}
.lx-card > p {
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 34rem;
}
.lx-card-media {
  margin-top: auto;
  padding-top: var(--space-4);
}
.lx-card-media .lx-shot,
.lx-card-media .lx-frame { box-shadow: var(--shadow-s); }
.lx-bento-cta { margin-top: var(--space-6); text-align: center; }

/* --------------------------------------------------------------------------
   8. Feature tabs
   -------------------------------------------------------------------------- */
.lx-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.lx-tab-btn {
  padding: 12px 22px;
  min-height: 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  font-family: inherit;
  font-size: var(--text-small);
  font-weight: 620;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--speed) var(--ease-soft), color var(--speed) var(--ease-soft), border-color var(--speed) var(--ease-soft);
}
.lx-tab-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.lx-tab-btn[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}
.lx-tab-panel { display: none; }
.lx-tab-panel.is-active { display: grid; }
html.hx-motion .lx-tab-panel.is-active { animation: lx-tab-in 320ms var(--ease-out); }
@keyframes lx-tab-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.lx-tab-panel {
  grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.lx-tab-copy h3 {
  font-size: var(--text-h3);
  font-weight: 720;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 var(--space-3);
}
.lx-tab-copy p {
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 var(--space-4);
}

/* Checklist (shared) */
.lx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lx-list li {
  position: relative;
  padding-left: 30px;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--ink-soft);
}
.lx-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--leaf-tint);
}
.lx-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  width: 9px;
  height: 6px;
  border-left: 2px solid var(--leaf-deep);
  border-bottom: 2px solid var(--leaf-deep);
  transform: rotate(-45deg);
}
.lx-panel--dark .lx-list li { color: var(--night-soft); }
.lx-panel--dark .lx-list li::before { background: rgb(46 158 107 / 0.22); }
.lx-panel--dark .lx-list li::after { border-color: var(--leaf); }

/* --------------------------------------------------------------------------
   9. Dark finance band
   -------------------------------------------------------------------------- */
.lx-finance-grid {
  display: grid;
  grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.8fr);
  gap: var(--space-5);
  align-items: stretch;
}
.lx-finance-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.lx-finance-side .lx-shot { border-color: var(--night-line); box-shadow: none; }
.lx-finance-foot {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.lx-finance-foot .lx-mini {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-m);
  background: var(--night-raised);
}
.lx-mini strong { display: block; color: #FFFFFF; font-weight: 660; font-size: var(--text-small); margin-bottom: 4px; }
.lx-mini span { font-size: var(--text-caption); color: var(--night-soft); line-height: 1.5; display: block; }

/* --------------------------------------------------------------------------
   10. Split showcases
   -------------------------------------------------------------------------- */
.lx-split {
  display: grid;
  grid-template-columns: minmax(0, 6.6fr) minmax(0, 5.4fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.lx-split--copy-first { grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr); }
.lx-split--copy-first .lx-split-media { order: 2; }
.lx-split-media,
.lx-split-copy { min-width: 0; max-width: 100%; }
.lx-split-copy .lx-eyebrow { margin-bottom: var(--space-4); }
.lx-split-copy h2 {
  font-size: var(--text-h2);
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: -0.026em;
  color: var(--ink);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
.lx-split-copy > p {
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 var(--space-5);
  max-width: 34rem;
}
.lx-split-copy .lx-list { margin-bottom: var(--space-5); }

/* Small crops row under a split */
.lx-crops {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.lx-crops figure { margin: 0; }
.lx-crops figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

/* --------------------------------------------------------------------------
   11. Automation grid + integrations
   -------------------------------------------------------------------------- */
.lx-fgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.lx-fgrid .lx-card { padding: 0; }
.lx-fgrid .lx-card .lx-fgrid-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.lx-fgrid .lx-shot { border-width: 0 0 1px; border-radius: 0; box-shadow: none; }
.lx-fgrid h3 { font-size: 1.15rem; }

/* --------------------------------------------------------------------------
   12. Mobile PWA phones
   Desktop: 3-phone fan. Mobile: one centered phone via lx-slider.
   -------------------------------------------------------------------------- */
.lx-phones-slider {
  margin-top: var(--space-7);
  overflow: hidden;
}
.lx-phone { width: 100%; }
.lx-phone-caption {
  margin-top: var(--space-3);
  text-align: center;
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--night-soft);
}

/* Mobile / tablet: one phone at a time, centered */
.lx-phones-slider .lx-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 0;
}
.lx-phones-slider .lx-phone {
  width: min(260px, 68vw);
  margin-inline: auto;
}
.lx-phones-slider .lx-slider-controls {
  margin-top: var(--space-5);
}
.lx-phones-slider .lx-slider-dots {
  justify-content: center;
  flex-wrap: wrap;
  overflow: visible;
  mask-image: none;
}
.lx-panel--dark .lx-phones-slider .lx-slider-dot {
  background: var(--night-raised);
  border-color: var(--night-line);
  color: var(--night-soft);
}
.lx-panel--dark .lx-phones-slider .lx-slider-dot[aria-selected="true"] {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--ink);
}

/* Desktop: fan of three phones, no pager */
@media (min-width: 761px) {
  .lx-phones-slider .lx-slider-viewport {
    overflow: visible;
  }
  .lx-phones-slider .lx-slider-track {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(20px, 3.4vw, 52px);
    width: auto;
    transform: none !important;
  }
  .lx-phones-slider .lx-slide {
    flex: 0 0 auto;
    width: min(250px, 24%);
    max-width: 250px;
    padding: 0;
  }
  .lx-phones-slider .lx-slide:nth-child(2) {
    width: min(282px, 27%);
    max-width: 282px;
    margin-top: 28px;
  }
  .lx-phones-slider .lx-slide:nth-child(n + 4) { display: none; }
  .lx-phones-slider .lx-phone { width: 100%; }
  .lx-phones-slider .lx-slider-controls { display: none; }
}

/* --------------------------------------------------------------------------
   13. Pricing + setup + compare
   -------------------------------------------------------------------------- */
.lx-pricing-band {
  background:
    radial-gradient(820px 400px at 82% -10%, rgb(234 171 107 / 0.1) 0%, transparent 55%),
    var(--night);
}
.lx-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: center;
}
.lx-plan {
  background: #FFFFFF;
  border-radius: var(--radius-l);
  padding: clamp(24px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.lx-plan--featured {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  border: 2px solid var(--accent);
  padding: clamp(36px, 3.6vw, 48px) clamp(28px, 2.8vw, 36px);
  margin-block: -20px;
  box-shadow: 0 28px 48px -20px rgb(0 0 0 / 0.55);
}
.lx-plan--featured .lx-plan-head h3 {
  font-size: 1.35rem;
}
.lx-plan--featured .lx-plan-price strong {
  font-size: clamp(2.8rem, 3.2vw, 3.15rem);
  color: var(--ink);
}
.lx-plan--featured .lx-btn--primary {
  min-height: 52px;
}
.lx-plan-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.lx-plan-head h3 { margin: 0; font-size: 1.2rem; font-weight: 720; color: var(--ink); letter-spacing: -0.01em; }
.lx-plan-tab {
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #FFFFFF;
  border: 0;
}
.lx-plan-price { display: flex; align-items: baseline; gap: 6px; }
.lx-plan-price strong {
  font-size: 2.6rem;
  font-weight: 770;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.lx-plan-price span { font-size: var(--text-small); color: var(--ink-faint); font-weight: 560; }
.lx-plan-for { font-size: var(--text-small); line-height: 1.55; color: var(--ink-soft); margin: 0; }
.lx-plan .lx-list { flex: 1 0 auto; }
.lx-plan .lx-btn { justify-content: space-between; width: 100%; }
.lx-plan-note { font-size: var(--text-caption); color: var(--ink-faint); line-height: 1.5; margin: 0; }
.lx-plan-note a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

.lx-pricing-foot {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--text-caption);
  line-height: 1.6;
  color: var(--night-soft);
  max-width: 52rem;
  margin-inline: auto;
}

/* Setup strip */
.lx-setup-strip {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-l);
  background: var(--night-raised);
  border: 1px solid var(--night-line);
}
.lx-setup-strip p { margin: 0; font-size: var(--text-small); line-height: 1.55; color: var(--night-soft); }
.lx-setup-strip strong { color: #FFFFFF; font-weight: 660; }

/* Setup dialog */
.lx-setup-dialog {
  width: min(620px, 92vw);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: var(--shadow-l);
}
.lx-setup-dialog::backdrop { background: rgb(27 30 39 / 0.6); }
.lx-setup-dialog h3 { margin: 0 0 var(--space-2); font-size: var(--text-h3); font-weight: 720; }
.lx-setup-dialog .lx-price-line { font-weight: 660; color: var(--accent-deep); margin: 0 0 var(--space-4); }
.lx-setup-dialog p, .lx-setup-dialog li { font-size: var(--text-small); line-height: 1.6; color: var(--ink-soft); }
.lx-setup-dialog ol { padding-left: 1.3em; margin: 0 0 var(--space-4); }
.lx-setup-dialog ol li { margin-bottom: 6px; }
.lx-setup-dialog .lx-btn-row { margin-top: var(--space-5); }

/* Comparison table */
.lx-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--paper-raised);
}
.lx-compare-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lx-compare-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: var(--text-small);
}
.lx-compare-table th, .lx-compare-table td {
  padding: 13px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.lx-compare-table thead th {
  position: sticky;
  top: 0;
  background: var(--paper-sunken);
  font-weight: 680;
  color: var(--ink);
  z-index: 2;
}
.lx-compare-table thead th span { display: block; font-size: 11px; font-weight: 560; color: var(--ink-faint); margin-top: 2px; }
.lx-cmp-feature {
  position: sticky;
  left: 0;
  background: var(--paper-raised);
  text-align: left !important;
  font-weight: 620;
  color: var(--ink) !important;
  min-width: 210px;
  z-index: 1;
}
.lx-compare-table thead .lx-cmp-feature { background: var(--paper-sunken); z-index: 3; }
.lx-compare-table .is-mankai { background: var(--leaf-tint); }
.lx-cmp-y, .lx-cmp-p, .lx-cmp-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.lx-cmp-y { background: var(--leaf-tint); color: var(--leaf-deep); }
.lx-cmp-p { background: var(--gold-tint); color: var(--gold-deep); }
.lx-cmp-n { background: var(--paper-sunken); color: var(--ink-faint); }
.lx-compare-hint {
  display: none;
  font-size: var(--text-caption);
  color: var(--ink-faint);
  margin-bottom: var(--space-3);
  text-align: center;
}
.lx-compare-note {
  margin-top: var(--space-4);
  font-size: var(--text-caption);
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   14. Founder, FAQ, final CTA, footer
   -------------------------------------------------------------------------- */
.lx-faq-stack { width: 100%; }

.hx-acc-item { border-bottom: 1px solid var(--line); }
.hx-acc-btn {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: 20px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-body);
  font-weight: 640;
  color: var(--ink);
  text-align: left;
}
.hx-acc-num {
  flex: 0 0 auto;
  width: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.hx-acc-btn .hx-acc-icon {
  margin-left: auto;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--speed) var(--ease-out), background var(--speed) var(--ease-soft), border-color var(--speed) var(--ease-soft);
}
.hx-acc-icon::before { content: '+'; font-size: 16px; line-height: 1; color: var(--ink-soft); }
.hx-acc-item.is-open .hx-acc-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.hx-acc-item.is-open .hx-acc-icon::before { color: #FFFFFF; }
.hx-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms var(--ease-out);
}
.hx-acc-body-inner {
  padding: 0 40px var(--space-5) 42px;
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: none;
}
.hx-acc-body-inner a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }

/* Final CTA: cream inset */
.lx-final {
  padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 80px);
  text-align: center;
}
.lx-final .lx-h2 { max-width: 22ch; margin-inline: auto; }
.lx-final .lx-sub { margin-inline: auto; margin-bottom: var(--space-6); }
.lx-final .lx-btn-row { justify-content: center; }
.lx-final .lx-fine { margin-top: var(--space-5); }
.lx-final .lx-fine a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

/* Footer: dark inset */
.lx-footer {
  margin: var(--inset);
  margin-top: 0;
  border-radius: var(--radius-inset);
  background: var(--night);
  color: var(--night-soft);
  padding: clamp(44px, 5vw, 72px) 0 clamp(24px, 3vw, 36px);
}
.lx-footer a { color: var(--night-soft); transition: color var(--speed) var(--ease-soft); }
.lx-footer a:hover { color: #FFFFFF; }
.lx-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--night-line);
}
.lx-footer-brand .lx-brand { color: #FFFFFF; margin-bottom: var(--space-4); }
.lx-footer-brand p { font-size: var(--text-small); line-height: 1.6; margin: 0; max-width: 22rem; }
.lx-footer h4 {
  font-size: var(--text-eyebrow);
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-faint);
  margin: 0 0 var(--space-4);
}
.lx-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lx-footer ul a { font-size: var(--text-small); }
.lx-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-5);
  font-size: var(--text-caption);
  color: var(--night-faint);
}
.lx-footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.lx-footer-legal a { font-size: var(--text-caption); }

/* --------------------------------------------------------------------------
   15. Lightbox, sticky CTA, reveal system
   -------------------------------------------------------------------------- */
.lx-lightbox {
  border: 0;
  border-radius: var(--radius-m);
  padding: 0;
  background: transparent;
  max-width: min(1400px, 94vw);
  width: auto;
}
.lx-lightbox::backdrop { background: rgb(27 30 39 / 0.82); }
.lx-lightbox img {
  display: block;
  max-width: min(1400px, 94vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-m);
}
.lx-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #FFFFFF;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  box-shadow: var(--shadow-m);
}

/* Sticky mobile CTA (JS: .mk-sticky-cta) */
.mk-sticky-cta {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--night);
  color: var(--night-ink);
  border-top: 1px solid var(--night-line);
  padding: 10px 10px 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 28px rgb(20 18 16 / 0.2);
  transform: translateY(110%);
  transition: transform 320ms var(--ease-out);
  font-size: var(--text-small);
  font-weight: 600;
}
.mk-sticky-cta.is-visible { transform: none; }
.mk-sticky-cta-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.mk-sticky-cta-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #FFFFFF;
}
.mk-sticky-cta-main .lx-btn {
  flex: 0 0 auto;
  pointer-events: none; /* whole row is the hit target */
}
.mk-sticky-cta-close {
  flex: 0 0 auto;
  background: none;
  border: 0;
  color: var(--night-soft);
  cursor: pointer;
  padding: 8px;
  display: inline-flex;
}
@media (max-width: 820px) { .mk-sticky-cta { display: flex; } }

/* Scroll reveal ([data-hx], gated by html.hx-motion) */
html.hx-motion [data-hx] {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-duration) var(--ease-out), transform var(--reveal-duration) var(--ease-out);
  transition-delay: calc(var(--hx-order, 0) * var(--reveal-stagger));
}
html.hx-motion [data-hx="left"] { transform: translateX(calc(-1 * var(--reveal-distance))); }
html.hx-motion [data-hx="right"] { transform: translateX(var(--reveal-distance)); }
html.hx-motion [data-hx="scale"] { transform: translateY(12px) scale(0.975); }
html.hx-motion [data-hx].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.hx-motion [data-hx] { opacity: 1; transform: none; transition: none; }
  html.hx-motion .lx-hero-phone { animation: none; }
  html.hx-motion .lx-tab-panel.is-active { animation: none; }
}

/* Anchor offset below sticky header */
section[id], div[id="setup"] { scroll-margin-top: calc(var(--header-h) + 14px); }

/* --------------------------------------------------------------------------
   15b. Inner page head + chip nav (Features hub, archives)
   -------------------------------------------------------------------------- */
.lx-page-head {
  padding: clamp(48px, 6vw, 88px) 0 clamp(32px, 4vw, 56px);
  text-align: center;
}
.lx-page-head h1 {
  font-size: var(--text-h1);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: var(--space-4) 0;
  text-wrap: balance;
}
.lx-page-head .lx-sub { margin-inline: auto; }
.lx-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.lx-chip-row a {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  font-size: var(--text-caption);
  font-weight: 620;
  color: var(--ink-soft);
  transition: border-color var(--speed) var(--ease-soft), color var(--speed) var(--ease-soft);
}
.lx-chip-row a:hover { border-color: var(--ink-faint); color: var(--ink); }

/* Features hub: stacked split sections with generous rhythm */
.lx-feature-row { padding-block: clamp(40px, 5vw, 72px); }
.lx-feature-row + .lx-feature-row { border-top: 1px solid var(--line); }
.lx-feature-row .lx-split-media .lx-shot + .lx-shot { margin-top: var(--space-4); }

/* --------------------------------------------------------------------------
   15c. Screenshot slider (one visible slide, arrows, dots, swipe, keyboard)
   -------------------------------------------------------------------------- */
.lx-slider {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden; /* never let slides/controls widen the page */
}
.lx-slider-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-m);
}
.lx-slider-track {
  display: flex;
  align-items: flex-start;
  width: 100%;
}
html.hx-motion .lx-slider-track { transition: transform 380ms var(--ease-out); }
.lx-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}
.lx-slide .lx-frame,
.lx-slide .lx-shot { box-shadow: none; }

/* Tabs row + arrow row — side-by-side arrows were overflowing on mobile */
.lx-slider-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: var(--space-4);
  max-width: 100%;
  min-width: 0;
}
.lx-slider-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 1px 4px;
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent);
}
.lx-slider-dots::-webkit-scrollbar { display: none; }
.lx-slider-dot {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper-raised);
  font-family: inherit;
  font-size: var(--text-caption);
  font-weight: 620;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color var(--speed) var(--ease-soft), background var(--speed) var(--ease-soft), border-color var(--speed) var(--ease-soft);
}
.lx-slider-dot:hover { border-color: var(--ink-faint); color: var(--ink); }
.lx-slider-dot[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}
.lx-panel--dark .lx-slider-dot {
  background: var(--night-raised);
  border-color: var(--night-line);
  color: var(--night-soft);
}
.lx-panel--dark .lx-slider-dot[aria-selected="true"] {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--ink);
}
.lx-slider-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.lx-slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper-raised);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex: 0 0 auto;
  transition: background var(--speed) var(--ease-soft), border-color var(--speed) var(--ease-soft);
}
.lx-slider-btn:hover { border-color: var(--ink-faint); }
.lx-slider-btn:disabled { opacity: 0.35; cursor: default; }
.lx-panel--dark .lx-slider-btn { background: var(--night-raised); border-color: var(--night-line); color: var(--night-ink); }

@media (min-width: 721px) {
  .lx-slider-dots {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    mask-image: none;
  }
}

/* --------------------------------------------------------------------------
   15d. Feature archive + single templates
   -------------------------------------------------------------------------- */
.lx-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--text-caption);
  color: var(--ink-faint);
  margin-bottom: var(--space-4);
}
.lx-crumbs a { color: var(--ink-soft); }
.lx-crumbs a:hover { color: var(--ink); }

.lx-fdir-group { margin-bottom: clamp(36px, 4vw, 56px); }
.lx-fdir-group > h2 {
  font-size: var(--text-h3);
  font-weight: 720;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.lx-fdir {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.lx-fdir-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: transform var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out), border-color var(--speed) var(--ease-soft);
}
.lx-fdir-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); border-color: var(--line-strong); }
.lx-fdir-card strong { display: block; font-size: var(--text-body); font-weight: 660; color: var(--ink); line-height: 1.3; }
.lx-fdir-card small { display: block; font-size: var(--text-caption); color: var(--ink-soft); line-height: 1.45; margin-top: 2px; }
@media (max-width: 980px) { .lx-fdir { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lx-fdir { grid-template-columns: 1fr; } }

.lx-feature-hero {
  padding: clamp(32px, 4vw, 56px) 0 clamp(20px, 2.5vw, 32px);
  text-align: center;
}
.lx-feature-hero .lx-crumbs {
  justify-content: center;
  margin-bottom: var(--space-4);
}
.lx-feature-hero .lx-eyebrow { margin-bottom: var(--space-3); }
.lx-feature-hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 var(--space-3);
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}
.lx-feature-hero .lx-sub {
  max-width: 34rem;
  margin-inline: auto;
  font-size: var(--text-body);
}

.lx-feature-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(20px, 2.5vw, 32px);
  align-items: start;
}
.lx-feature-gallery {
  width: 100%;
  margin-top: clamp(40px, 5vw, 72px);
}
.lx-feature-gallery-title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-h3);
  font-weight: 720;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.lx-feature-gallery .lx-slider-viewport {
  overflow: hidden;
  height: auto;
}
.lx-feature-gallery .lx-slider-track {
  align-items: flex-start;
}
.lx-feature-gallery .lx-frame {
  box-shadow: var(--shadow-m);
  height: auto;
}
.lx-feature-gallery .lx-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
}
/* Phone shots stay compact so the full screen stays readable. */
.lx-feature-gallery .lx-slide--phone {
  display: flex;
  justify-content: center;
}
.lx-feature-gallery .lx-slide--phone .lx-phone {
  width: min(280px, 62vw);
  max-width: 280px;
  margin-inline: auto;
}
.lx-feature-gallery .lx-slide--phone .lx-phone img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
/* Detail crops keep a natural panel width instead of stretching full-bleed. */
.lx-feature-gallery .lx-slide--crop {
  display: flex;
  justify-content: center;
}
.lx-feature-gallery .lx-slide--crop .lx-frame {
  width: min(640px, 100%);
  margin-inline: auto;
}
.lx-feature-related {
  margin-top: clamp(40px, 5vw, 64px);
}
.lx-feature-prose {
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: none;
}
.lx-feature-prose h2 { font-size: var(--text-h3); font-weight: 720; color: var(--ink); margin: var(--space-6) 0 var(--space-3); letter-spacing: -0.015em; }
.lx-feature-prose p { margin: 0 0 var(--space-4); }
.lx-feature-prose ul { padding-left: 1.3em; margin: 0 0 var(--space-4); }
.lx-feature-prose li { margin-bottom: var(--space-2); }
.lx-feature-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: var(--space-5); }
.lx-feature-aside .lx-card { padding: var(--space-5); }
.lx-feature-aside .lx-card h3 { font-size: 1.05rem; }
.lx-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 980px) {
  .lx-feature-body { grid-template-columns: 1fr; }
  .lx-feature-aside { position: static; }
  .lx-related { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .lx-span-7, .lx-span-5 { grid-column: span 6; }
}

@media (max-width: 980px) {
  .lx-bento > * { grid-column: 1 / -1; }
  /* minmax(0,1fr) — bare 1fr lets screenshot sliders blow out the page width */
  .lx-tab-panel { grid-template-columns: minmax(0, 1fr); }
  .lx-split, .lx-split--copy-first { grid-template-columns: minmax(0, 1fr); }
  .lx-split--copy-first .lx-split-media { order: 0; }
  .lx-finance-grid { grid-template-columns: minmax(0, 1fr); }
  .lx-finance-foot { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .lx-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-integrations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-plans { grid-template-columns: minmax(0, 1fr); max-width: 540px; margin-inline: auto; align-items: stretch; }
  .lx-plan--featured { margin-block: 0; order: -1; }
  .lx-footer-grid { grid-template-columns: 1fr 1fr; }
  .lx-compare-hint { display: block; }
  .lx-compare-table { min-width: 760px; font-size: var(--text-caption); }
  .lx-compare-table th, .lx-compare-table td { padding: 10px 10px; }
  .lx-cmp-feature { min-width: 150px; max-width: 170px; font-size: 12.5px; line-height: 1.35; box-shadow: 6px 0 12px -8px rgb(39 42 52 / 0.22); }

  /* Dark/cream panels and footer go edge-to-edge on smaller screens. */
  .lx-panel,
  .lx-footer {
    margin-inline: 0;
    border-radius: 0;
  }
  .lx-footer { margin: 0; }
  .lx-final { padding-inline: var(--space-5); }

}

@media (max-width: 640px) {
  .lx-section { padding-block: 68px; }
  .lx-head { margin-bottom: var(--space-6); text-align: center; }
  .lx-head .lx-sub { margin-inline: auto; }
  .lx-h2 { font-size: clamp(1.7rem, 7.4vw, 2.2rem); }
  .lx-card { padding: 24px 20px; }
  .lx-card > p { max-width: none; }
  .lx-split-copy { text-align: center; }
  .lx-split-copy > p { margin-inline: auto; }
  .lx-split-copy .lx-list { text-align: left; max-width: 24rem; margin-inline: auto; }
  .lx-split-copy .lx-btn-row { justify-content: center; }
  .lx-crops { grid-template-columns: 1fr; gap: var(--space-4); }
  .lx-fgrid { grid-template-columns: 1fr; }
  .lx-integrations { grid-template-columns: 1fr; }
  .lx-tabs-nav { gap: 6px; }
  .lx-tab-btn { padding: 10px 16px; min-height: 44px; font-size: var(--text-caption); }
  .lx-setup-strip { flex-direction: column; align-items: stretch; text-align: center; }
  .lx-setup-strip .lx-btn { justify-content: space-between; }
  .lx-final { text-align: center; padding-inline: var(--space-4); }
  .lx-footer-grid { grid-template-columns: 1fr; gap: var(--space-6); text-align: center; }
  .lx-footer-brand .lx-brand { justify-content: center; }
  .lx-footer-brand p { margin-inline: auto; }
  .lx-footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); }
  .lx-footer-legal { justify-content: center; }
  .lx-btn-row .lx-btn { width: 100%; justify-content: space-between; }
  .lx-bento-cta .lx-btn, .lx-tabs ~ * .lx-btn { width: auto; }
  .hx-acc-btn { padding: 18px 2px; gap: 10px; }
  .hx-acc-body-inner { padding-left: 36px; padding-right: 4px; }
}

@media (max-width: 360px) {
  .lx-eyebrow { padding: 6px 12px; font-size: 11px; }
  .lx-plan-price strong { font-size: 2.2rem; }
}
