/* ==========================================================================
   SmSt App landing pages
   Shared frame only. Each app carries its own palette, type treatment and
   composition in works.css, stocks.css and finances.css.
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  src: url("https://static.smartstock.africa/font/figtree.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("https://static.smartstock.africa/font/jost.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Inconsolata";
  src: url("https://static.smartstock.africa/font/inconsolata.ttf") format("truetype");
  font-display: swap;
}

:root {
  --lp-paper: #f3f7fd;
  --lp-surface: #ffffff;
  --lp-ink: #0f172a;
  --lp-ink-soft: #334155;
  --lp-muted: #64748b;
  --lp-rule: #dbe4f1;
  --lp-accent: #1e4fa3;
  --lp-accent-deep: #12305c;
  --lp-accent-soft: #e9f0fa;
  --lp-on-accent: #ffffff;
  --lp-display: "Jost", "Segoe UI", system-ui, sans-serif;
  --lp-sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --lp-mono: "Inconsolata", ui-monospace, "SFMono-Regular", monospace;
  --lp-gutter: clamp(1.1rem, 3.7vw, 2.75rem);
  --lp-radius-sm: 6px;
  --lp-radius: 12px;
  --lp-radius-lg: 20px;
  --lp-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 22px 48px -34px rgba(15, 23, 42, 0.34);
  --lp-shadow-lift: 0 2px 4px rgba(15, 23, 42, 0.05), 0 36px 70px -34px rgba(15, 23, 42, 0.4);
  --lp-ease: cubic-bezier(0.22, 0.72, 0.28, 1);
  --lp-header: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.lp {
  margin: 0;
  background: var(--lp-paper);
  color: var(--lp-ink);
  font-family: var(--lp-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lp::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 800;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.lp h1,
body.lp h2,
body.lp h3,
body.lp h4,
body.lp p,
body.lp ul,
body.lp ol,
body.lp figure {
  margin: 0;
}

body.lp ul,
body.lp ol {
  padding: 0;
  list-style: none;
}

body :where(a) {
  color: inherit;
  text-decoration: none;
}

body :where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}

body.lp button {
  cursor: pointer;
}

body.lp img,
body.lp svg {
  display: block;
  max-width: 100%;
}

body.lp :focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

body.lp ::selection {
  background: var(--lp-accent-soft);
  color: var(--lp-accent-deep);
}

.lp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.lp-skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 900;
  transform: translateY(-180%);
  padding: 0.65rem 1rem;
  border-radius: var(--lp-radius-sm);
  background: var(--lp-accent);
  color: var(--lp-on-accent);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 180ms var(--lp-ease);
}

.lp-skip:focus {
  transform: translateY(0);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.lp-icon {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.lp-shell {
  width: min(1180px, calc(100% - (var(--lp-gutter) * 2)));
  margin-inline: auto;
}

.lp-num {
  font-family: var(--lp-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ------------------------------------------------------------------ header */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 600;
  height: var(--lp-header);
  border-bottom: 1px solid var(--lp-rule);
  background: color-mix(in srgb, var(--lp-paper) 88%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
}

.lp-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.lp-brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--lp-accent);
  color: var(--lp-on-accent);
  font-family: var(--lp-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28);
}

.lp-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.lp-brand__text strong {
  font-family: var(--lp-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lp-brand__text small {
  margin-top: 0.22rem;
  color: var(--lp-muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.lp-nav__link {
  position: relative;
  padding: 0.48rem 0.72rem;
  border-radius: 7px;
  color: var(--lp-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 180ms var(--lp-ease), background 180ms var(--lp-ease);
}

.lp-nav__link:hover {
  background: var(--lp-accent-soft);
  color: var(--lp-ink);
}

.lp-nav__link.is-current {
  color: var(--lp-accent-deep);
}

.lp-nav__link.is-current::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--lp-accent);
}

.lp-nav__link--quiet {
  color: var(--lp-ink-soft);
}

.lp-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lp-login {
  color: var(--lp-ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
}

.lp-login:hover {
  color: var(--lp-accent);
}

.lp-menu {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--lp-rule);
  border-radius: 8px;
  background: var(--lp-surface);
  color: var(--lp-ink);
}

.lp-menu .lp-icon {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------------ drawer */
.lp-drawer-open {
  overflow: hidden;
}

.lp-drawer {
  position: fixed;
  inset: 0;
  z-index: 700;
}

.lp-drawer[hidden] {
  display: none;
}

.lp-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.42);
}

.lp-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  background: var(--lp-surface);
  box-shadow: -20px 0 60px rgb(15 23 42 / 0.18);
}

.lp-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--lp-rule);
}

.lp-icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--lp-rule);
  border-radius: 8px;
  background: transparent;
}

.lp-drawer__nav {
  display: grid;
  gap: 0.15rem;
  padding-block: 1rem;
}

.lp-drawer__nav a {
  padding: 0.72rem 0.5rem;
  border-bottom: 1px solid var(--lp-rule);
  font-family: var(--lp-display);
  font-size: 1.15rem;
}

.lp-drawer__nav a[aria-current="page"] {
  color: var(--lp-accent);
}

.lp-drawer__foot {
  display: grid;
  gap: 0.6rem;
  margin-top: auto;
}

/* ------------------------------------------------------------------ type */
.lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--lp-accent);
  font-family: var(--lp-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.lp-display {
  font-family: var(--lp-display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.lp-lede {
  max-width: 58ch;
  color: var(--lp-ink-soft);
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.16rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.lp-title {
  font-family: var(--lp-display);
  font-size: clamp(1.9rem, 1.4rem + 2.1vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}

.lp-title--small {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.2rem);
}

.lp-note {
  color: var(--lp-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.lp-body {
  max-width: 62ch;
  color: var(--lp-ink-soft);
  line-height: 1.72;
}

.lp-section {
  padding-block: clamp(4rem, 7vw, 7rem);
}

.lp-section--tight {
  padding-block: clamp(3rem, 5vw, 4.75rem);
}

.lp-section__head {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.lp-section__head .lp-title {
  max-width: 18ch;
}

.lp-section__head--wide {
  max-width: 900px;
}

/* ------------------------------------------------------------------ actions */
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--lp-radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  transition:
    background 180ms var(--lp-ease),
    border-color 180ms var(--lp-ease),
    color 180ms var(--lp-ease),
    transform 180ms var(--lp-ease),
    box-shadow 180ms var(--lp-ease);
}

.lp-btn:hover {
  transform: translateY(-1px);
}

.lp-btn--solid {
  background: var(--lp-accent);
  color: var(--lp-on-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2);
}

.lp-btn--solid:hover {
  background: var(--lp-accent-deep);
}

.lp-btn--ghost {
  border-color: var(--lp-rule);
  background: var(--lp-surface);
  color: var(--lp-ink);
}

.lp-btn--ghost:hover {
  border-color: var(--lp-accent);
  color: var(--lp-accent);
}

.lp-btn--quiet {
  padding-inline: 0.2rem;
  color: var(--lp-accent);
}

.lp-btn--small {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
}

.lp-btn--large {
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  font-size: 0.98rem;
}

.lp-btn--block {
  width: 100%;
}

.lp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--lp-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.lp-text-link .lp-icon {
  width: 0.95em;
  height: 0.95em;
  transition: transform 180ms var(--lp-ease);
}

.lp-text-link:hover .lp-icon {
  transform: translateX(3px);
}

/* ------------------------------------------------------------------ preview frame */
.lp-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lp-rule);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-lift);
}

.lp-preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--lp-rule);
  background: var(--lp-accent-soft);
}

.lp-preview__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--lp-accent-deep);
  font-family: var(--lp-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lp-preview__label .lp-icon {
  width: 14px;
  height: 14px;
}

.lp-preview__dots {
  display: flex;
  gap: 5px;
}

.lp-preview__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.24;
}

.lp-preview__body {
  padding: clamp(0.9rem, 2vw, 1.35rem);
}

.lp-mini-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.lp-mini-head h3 {
  font-family: var(--lp-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.lp-mini-head p {
  margin-top: 0.25rem;
  color: var(--lp-muted);
  font-size: 0.78rem;
}

.lp-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.48rem;
  border-radius: 4px;
  background: var(--lp-accent-soft);
  color: var(--lp-accent-deep);
  font-family: var(--lp-mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.lp-tag--ok {
  background: #e7efe5;
  color: #3f6b4a;
}

.lp-tag--warn {
  background: #f6ecd7;
  color: #8a5a12;
}

.lp-tag--out {
  background: #f7e6e1;
  color: #9c3b2e;
}

.lp-tag--muted {
  background: var(--lp-accent-soft);
  color: var(--lp-muted);
}

.lp-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--lp-rule);
  background: var(--lp-rule);
}

.lp-stat {
  padding: 0.65rem 0.7rem;
  background: var(--lp-surface);
}

.lp-stat__label {
  color: var(--lp-muted);
  font-size: 0.66rem;
  line-height: 1.2;
}

.lp-stat__value {
  margin-top: 0.28rem;
  font-family: var(--lp-mono);
  font-size: clamp(0.95rem, 0.82rem + 0.35vw, 1.12rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.lp-table th {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--lp-rule);
  color: var(--lp-muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.lp-table td {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--lp-rule);
  vertical-align: middle;
}

.lp-table tr:last-child td {
  border-bottom: 0;
}

.lp-table .is-num {
  font-family: var(--lp-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.lp-table .is-down {
  color: #9c3b2e;
}

.lp-table .is-up {
  color: #3f6b4a;
}

.lp-rule {
  height: 1px;
  border: 0;
  background: var(--lp-rule);
}

.lp-footnote {
  color: var(--lp-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------------ footer */
.lp-footer {
  border-top: 1px solid var(--lp-rule);
  background: var(--lp-surface);
  padding-block: clamp(2.5rem, 4vw, 4rem) 1.5rem;
}

.lp-footer__top {
  display: flex;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 5rem);
}

.lp-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  max-width: 330px;
}

.lp-footer__name {
  font-family: var(--lp-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lp-footer__blurb {
  margin-top: 0.4rem;
  color: var(--lp-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.lp-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
}

.lp-footer__links > div {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.lp-footer__label {
  margin-bottom: 0.25rem;
  color: var(--lp-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lp-footer__links a {
  color: var(--lp-muted);
  font-size: 0.84rem;
  transition: color 160ms var(--lp-ease);
}

.lp-footer__links a:hover {
  color: var(--lp-accent);
}

.lp-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1rem;
  border-top: 1px solid var(--lp-rule);
  color: var(--lp-muted);
  font-size: 0.76rem;
}

/* ------------------------------------------------------------------ motion */
.js.lp-reveal-ready .lp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms var(--lp-ease),
    transform 620ms var(--lp-ease);
}

.js.lp-reveal-ready .lp-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js.lp-reveal-ready .lp-reveal[data-delay="1"] {
  transition-delay: 70ms;
}

.js.lp-reveal-ready .lp-reveal[data-delay="2"] {
  transition-delay: 140ms;
}

.js.lp-reveal-ready .lp-reveal[data-delay="3"] {
  transition-delay: 210ms;
}

.headerLogo,
.footerLogo{
  width: 50px;
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .lp-nav {
    display: none;
  }

  .lp-menu {
    display: grid;
  }

  .lp-login {
    display: none;
  }

  .lp-header__inner{
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  :root {
    --lp-header: 66px;
  }

  .lp-header__actions .lp-btn {
    display: none;
  }

  .lp-brand__text small {
    display: none;
  }

  .lp-footer__top {
    display: grid;
  }

  .lp-footer__links {
    grid-template-columns: 1fr 1fr;
  }

  .lp-footer__bottom {
    display: grid;
  }

  .lp-stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .lp-table thead {
    display: none;
  }

  .lp-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.15rem 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--lp-rule);
  }

  .lp-table tr:last-child {
    border-bottom: 0;
  }

  .lp-table td,
  .lp-table th {
    padding: 0.1rem 0;
    border-bottom: 0;
  }

  .lp-table td:nth-child(n + 3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js.lp-reveal-ready .lp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lp-btn,
  .lp-text-link .lp-icon {
    transition: none;
  }
}
