/* Showcase site — what Bootstrap lacks for the marketing pages. No animation anywhere
   (inherited from lexio.css): hover states change colour, never move or fade.

   Visual idea: Lexio is a measuring instrument. The hero sits on faint graph paper, and its
   centrepiece is the product itself — a roadmap and an action card, built in HTML — rather
   than an illustration. Everything else stays quiet: white sections, one tinted band, cards
   with a hairline border and a single soft shadow reserved for product mock-ups. */

:root, [data-bs-theme="light"] {
  --lx-grid: rgba(75, 63, 217, .07);
  --lx-mock-shadow: 0 1px 2px rgba(21, 24, 51, .06), 0 18px 48px -12px rgba(21, 24, 51, .18);
  --lx-icon-bg: #F1F0FE;
  --lx-band-bg: #F6F7FB;
  --lx-cta-bg: #1B1F3B;
  --lx-cta-fg: #FFFFFF;
}
[data-bs-theme="dark"] {
  --lx-grid: rgba(140, 130, 255, .08);
  --lx-mock-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 48px -12px rgba(0, 0, 0, .6);
  --lx-icon-bg: #25234A;
  --lx-band-bg: #11142A;
  --lx-cta-bg: #25234A;
  --lx-cta-fg: #FFFFFF;
}

/* ---------- type scale of the marketing pages (Segoe UI) ---------- */
.lx-show h1 { font-size: clamp(2.25rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; }
.lx-show h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -.028em; font-weight: 700; }
.lx-show h3 { letter-spacing: -.012em; }
.lx-show h1, .lx-show h2 { text-wrap: balance; }
.lx-show .lead { font-size: 1.2rem; line-height: 1.55; max-width: 60ch; }
.lx-section { padding: 5.5rem 0; }
.lx-section-head { max-width: 46rem; margin-bottom: 3rem; }
.lx-section-head.text-center { margin-left: auto; margin-right: auto; }
.lx-section-head .lead { margin-left: inherit; margin-right: inherit; }
.lx-band { background: var(--lx-band-bg); border-top: 1px solid var(--bs-border-color); border-bottom: 1px solid var(--bs-border-color); }
@media (max-width: 767.98px) { .lx-section { padding: 3.5rem 0; } }

/* ---------- navigation ---------- */
.lx-show-nav { --bs-navbar-padding-y: .9rem; background: color-mix(in srgb, var(--bs-body-bg) 92%, transparent); }
.lx-show-nav .nav-link { color: var(--bs-body-color); }
.lx-show-nav .nav-link:hover { color: var(--bs-primary); }

/* ---------- hero: graph paper, the product as centrepiece ---------- */
.lx-hero {
  position: relative; padding: 5rem 0 5.5rem;
  background-color: var(--bs-body-bg);
  background-image:
    linear-gradient(var(--lx-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--lx-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--bs-border-color);
}
.lx-hero h1 { max-width: 19ch; }
.lx-pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .45rem;
  border: 1px solid var(--bs-primary-border-subtle); border-radius: 99px; background: var(--bs-body-bg);
  font-size: .875rem; font-weight: 600; color: var(--bs-primary-text-emphasis);
}
.lx-pill .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--bs-success); margin-left: .3rem; }
.lx-reassure { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.75rem 0 0; padding: 0; list-style: none;
  font-size: .925rem; color: var(--bs-secondary-color); }
.lx-reassure .bi { color: var(--bs-success); margin-right: .35rem; }

/* ---------- product mock-ups (HTML, never an image) ---------- */
.lx-mock { position: relative; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
  border-radius: 1rem; box-shadow: var(--lx-mock-shadow); overflow: hidden; }
.lx-mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem; border-bottom: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); font-size: .8rem; }
.lx-mock-bar .where { font-family: var(--bs-font-monospace); color: var(--bs-secondary-color); }
.lx-mock-title { padding: 1rem 1.1rem .5rem; }
.lx-mock-row { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center;
  padding: .75rem 1.1rem; border-top: 1px solid var(--bs-border-color); font-size: .9rem; }
.lx-mock-row .page { font-weight: 600; color: var(--bs-emphasis-color); line-height: 1.3; }
.lx-mock-row .why { font-size: .8rem; color: var(--bs-secondary-color); line-height: 1.35; }
.lx-mock-row .gain { font-family: var(--bs-font-monospace); font-size: .8rem; color: var(--bs-secondary-color); white-space: nowrap; }
.lx-op { display: inline-block; min-width: 5.6rem; text-align: center; padding: .25rem .5rem; border-radius: .4rem;
  font-size: .75rem; font-weight: 600; }
.lx-op-enrich { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.lx-op-add { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.lx-op-merge { background: var(--bs-info-bg-subtle); color: var(--bs-info-text-emphasis); }
.lx-op-decide { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); }
/* the action card overlaps the roadmap on large screens, stacks under it on small ones */
.lx-mock-stack { position: relative; }
.lx-mock-card { margin-top: 1rem; }
@media (min-width: 992px) {
  .lx-mock-stack { padding-bottom: 7.5rem; }
  .lx-mock-card { position: absolute; right: -1.25rem; bottom: 0; width: 72%; margin: 0; }
}
.lx-fiche-row { display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; padding: .55rem 0; }
.lx-fiche-row + .lx-fiche-row { border-top: 1px dashed var(--bs-border-color); }
.lx-fiche-row .bi { color: var(--bs-primary); font-size: 1.05rem; line-height: 1.4; }
.lx-fiche-row .k { font-size: .78rem; font-weight: 600; color: var(--bs-secondary-color); }
.lx-fiche-row .v { font-size: .9rem; color: var(--bs-body-color); line-height: 1.45; }

/* ---------- facts strip under the hero ---------- */
.lx-facts { padding: 1.75rem 0; border-bottom: 1px solid var(--bs-border-color); }
.lx-fact { display: flex; align-items: center; gap: .75rem; font-size: .925rem; font-weight: 600; color: var(--bs-emphasis-color); }

/* ---------- icon tiles ---------- */
.lx-icon { display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.5rem; height: 2.5rem; border-radius: .7rem; background: var(--lx-icon-bg); color: var(--bs-primary); font-size: 1.15rem; }
.lx-icon-sm { width: 2rem; height: 2rem; border-radius: .55rem; font-size: 1rem; }

/* ---------- cards of the marketing pages ---------- */
.lx-card { height: 100%; padding: 1.5rem; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 1rem; }
.lx-card h3 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
.lx-card p { color: var(--bs-secondary-color); margin: 0; }
a.lx-card { display: block; color: inherit; text-decoration: none; }
a.lx-card:hover { border-color: var(--bs-primary-border-subtle); }

/* ---------- the method: a real sequence, numbered ---------- */
.lx-steps { counter-reset: none; }
.lx-step { position: relative; height: 100%; padding: 1.4rem 1.4rem 1.5rem; background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color); border-radius: 1rem; }
.lx-step-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.lx-step-num { font-family: var(--bs-font-monospace); font-weight: 600; font-size: .85rem; color: var(--bs-primary);
  display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
  border: 1px solid var(--bs-primary-border-subtle); border-radius: 50%; background: var(--bs-body-bg); }
.lx-step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.lx-step p { color: var(--bs-secondary-color); font-size: .95rem; margin: 0; }

/* ---------- tools: a quiet list, icons carry the rhythm ---------- */
.lx-tool { display: flex; gap: 1rem; }
.lx-tool h3 { font-size: 1.05rem; margin: .15rem 0 .3rem; }
.lx-tool p { color: var(--bs-secondary-color); margin: 0; font-size: .95rem; }

/* ---------- comparison ---------- */
.lx-compare { --bs-table-bg: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 1rem; overflow: hidden; }
.lx-compare table { margin: 0; }
.lx-compare th, .lx-compare td { padding: 1rem 1.25rem; vertical-align: middle; font-size: .95rem; }
.lx-compare thead th { font-size: .9rem; color: var(--bs-emphasis-color); background: var(--bs-tertiary-bg); }
.lx-compare .lx-us { background: color-mix(in srgb, var(--bs-primary-bg-subtle) 55%, var(--bs-body-bg)); }
.lx-compare tbody tr:last-child > * { border-bottom: 0; }

/* ---------- dark call-to-action band ---------- */
.lx-cta { background: var(--lx-cta-bg); color: var(--lx-cta-fg); border-radius: 1.25rem; padding: 3rem; }
.lx-cta h2, .lx-cta .h2 { color: var(--lx-cta-fg); }
.lx-cta p { color: rgba(255, 255, 255, .78); }
.lx-cta .btn-light { --bs-btn-color: #1B1F3B; font-weight: 600; }
.lx-cta .btn-outline-light { font-weight: 600; }
@media (max-width: 767.98px) { .lx-cta { padding: 2rem 1.5rem; } }

/* ---------- FAQ ---------- */
.lx-faq { border: 1px solid var(--bs-border-color); border-radius: 1rem; background: var(--bs-body-bg); }
.lx-faq details { padding: 1.1rem 1.4rem; }
.lx-faq details + details { border-top: 1px solid var(--bs-border-color); }
.lx-faq summary { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; cursor: pointer;
  list-style: none; color: var(--bs-emphasis-color); }
.lx-faq summary::-webkit-details-marker { display: none; }
.lx-faq summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--bs-primary); }
.lx-faq details[open] summary::after { content: "−"; }
.lx-faq details p { margin: .75rem 0 0; color: var(--bs-secondary-color); }

/* ---------- pricing ---------- */
.lx-plan { position: relative; display: flex; flex-direction: column; height: 100%; padding: 2rem 1.75rem;
  background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 1.25rem; }
.lx-plan.is-featured { border: 2px solid var(--bs-primary); box-shadow: var(--lx-mock-shadow);
  background: linear-gradient(180deg, var(--bs-primary-bg-subtle) 0, var(--bs-body-bg) 11rem); }
.lx-plan-flag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: .3rem .8rem;
  border-radius: 99px; background: var(--bs-primary); color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap; }
[data-bs-theme="dark"] .lx-plan-flag { color: #0F1222; }
.lx-plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.lx-plan h2 { font-size: 1.35rem !important; margin: 0; letter-spacing: -.015em; }
.lx-plan .pitch { color: var(--bs-secondary-color); font-size: .95rem; min-height: 3rem; }
.lx-price { margin: 1.25rem 0 1.5rem; }
.lx-price .amount { font-size: 3rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--bs-emphasis-color); }
.lx-price .per { color: var(--bs-secondary-color); margin-left: .35rem; }
.lx-kv { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.lx-kv li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--bs-border-color); }
.lx-kv li span:first-child { color: var(--bs-secondary-color); }
.lx-kv li strong { color: var(--bs-emphasis-color); }
.lx-checks { list-style: none; padding: 0; margin: 0 0 1.75rem; flex-grow: 1; font-size: .925rem; }
.lx-checks li { display: flex; gap: .55rem; padding: .3rem 0; }
.lx-checks .bi { color: var(--bs-success); }
.lx-credit-list { border: 1px solid var(--bs-border-color); border-radius: 1rem; background: var(--bs-body-bg); overflow: hidden; }
.lx-credit-list .list-group-item { border-left: 0; border-right: 0; padding: .9rem 1.25rem; }
.lx-credit-list .list-group-item:first-child { border-top: 0; }
.lx-credit-list .list-group-item:last-child { border-bottom: 0; }
.lx-credit-n { font-family: var(--bs-font-monospace); font-weight: 600; color: var(--bs-emphasis-color); white-space: nowrap; }

/* ---------- legal pages ---------- */
.lx-prose { max-width: 46rem; }
.lx-prose h2 { font-size: 1.35rem !important; margin-top: 2.25rem; }

/* ---------- footer ---------- */
.lx-footer { padding: 3.5rem 0 2.5rem; background: var(--lx-band-bg); border-top: 1px solid var(--bs-border-color); }
.lx-footer h2 { font-size: .9rem !important; font-weight: 600; color: var(--bs-emphasis-color); margin-bottom: .9rem; letter-spacing: 0 !important; }
.lx-footer ul { list-style: none; padding: 0; margin: 0; }
.lx-footer li { padding: .2rem 0; }
.lx-footer a { color: var(--bs-secondary-color); text-decoration: none; }
.lx-footer a:hover { color: var(--bs-primary); }
