/* TenNex public landing page — plain CSS. Everything is scoped to .lp */

:root {
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
}

.lp {
  --lp-amber: #f5a623;
  --lp-amber-deep: #8a5a06;
  --lp-ink: #1f2937;
  --lp-ink-strong: #171a1f;
  --lp-paper: #fcf8f0;
  --lp-paper-deep: #f5eddd;
  --lp-sheet: #fffdf8;
  --lp-line: #e6dcc8;
  --lp-green: #1f8b4d;
  --lp-green-ink: #187a41;
  --lp-green-light: #6ed394;
  --lp-red: #b63d3d;
  --lp-muted: #5e5b53;
  --lp-muted-ink: rgba(252, 248, 240, 0.66);

  overflow-x: clip;
  background: var(--lp-paper);
  color: var(--lp-ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.5;
  color-scheme: light;
  text-rendering: optimizeLegibility;
}

.lp *,
.lp *::before,
.lp *::after {
  box-sizing: border-box;
}
.lp :where(h1, h2, h3, p, ul, ol, dl, dd, table) {
  margin: 0;
  padding: 0;
}
.lp :where(ul, ol) {
  list-style: none;
}
.lp a {
  color: inherit;
}
.lp :focus-visible {
  outline: 3px solid var(--lp-green);
  outline-offset: 3px;
}
.lp-footer :focus-visible {
  outline-color: var(--lp-amber);
}

.lp-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.lp-skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--lp-ink);
  color: var(--lp-amber);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.lp-skip:focus {
  top: 1rem;
}

/* Brand (replaces the React <Logo /> component) --------------------------- */
.tn-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.tn-brand svg {
  display: block;
}
.tn-brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-variation-settings:
    "opsz" 32,
    "wdth" 92;
  letter-spacing: -0.04em;
}

/* Type -------------------------------------------------------------------- */
.lp-h2 {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.2vw, 4.8rem);
  font-weight: 700;
  font-variation-settings:
    "opsz" 72,
    "wdth" 90;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.lp-kicker {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lp-muted);
}

/* Buttons ----------------------------------------------------------------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.8rem 1.35rem;
  border: 1.5px solid var(--lp-ink);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}
.lp-btn-ink {
  background: var(--lp-ink);
  color: var(--lp-amber);
}
.lp-btn-ink:hover {
  background: var(--lp-ink-strong);
  transform: translateY(-2px);
}
.lp-btn-ghost {
  background: transparent;
  color: var(--lp-ink);
}
.lp-btn-ghost:hover {
  background: var(--lp-ink);
  color: var(--lp-paper);
  transform: translateY(-2px);
}
.lp-btn-sm {
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}
.lp a.lp-btn-ink,
.lp a.lp-btn-ink:hover {
  color: var(--lp-amber);
}
.lp a.lp-btn-ghost {
  color: var(--lp-ink);
}
.lp a.lp-btn-ghost:hover {
  color: var(--lp-paper);
}

/* Navigation -------------------------------------------------------------- */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--lp-amber);
  border-bottom: 1.5px solid var(--lp-ink);
}
.lp-nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
}
.lp-logo-link {
  display: inline-flex;
  color: var(--lp-ink);
  text-decoration: none;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  font-size: 0.96rem;
  font-weight: 500;
}
.lp-nav-links a {
  position: relative;
  padding: 0.35rem 0;
  text-decoration: none;
}
.lp-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--lp-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.lp-nav-links a:hover::after {
  transform: scaleX(1);
}

/* Hero -------------------------------------------------------------------- */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 4.75rem 0 5.5rem;
  background: var(--lp-amber);
  border-bottom: 1.5px solid var(--lp-ink);
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 55px,
    rgba(31, 41, 55, 0.09) 55px 56.5px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 58%);
  mask-image: linear-gradient(90deg, transparent 0, #000 58%);
  opacity: 0.7;
}
.lp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.82fr);
  gap: 4rem;
  align-items: center;
}
.lp-hero-copy > * {
  opacity: 0;
  animation: lp-rise 760ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.lp-hero-copy > *:nth-child(2) {
  animation-delay: 80ms;
}
.lp-hero-copy > *:nth-child(3) {
  animation-delay: 150ms;
}
.lp-hero-copy > *:nth-child(4) {
  animation-delay: 210ms;
}

.lp-h1-lead {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.55rem, 8vw, 7.4rem);
  font-weight: 700;
  font-variation-settings:
    "opsz" 96,
    "wdth" 88;
  line-height: 0.84;
  letter-spacing: -0.055em;
}
.lp-h1-tail {
  display: block;
  margin-top: 1.35rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.15rem);
  font-weight: 500;
  font-variation-settings:
    "opsz" 32,
    "wdth" 96;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.lp-lede {
  max-width: 35rem;
  margin-top: 2rem;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.55;
  color: rgba(31, 41, 55, 0.86);
}
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
}
.lp-hero-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 34rem;
  margin-top: 1.6rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(31, 41, 55, 0.78);
}
.lp-inline-check {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.1rem;
  color: var(--lp-ink);
}

/* Receipt ----------------------------------------------------------------- */
.lp-hero-art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 470px;
  padding: 0.5rem 1rem 1.5rem 0;
  opacity: 0;
  animation: lp-settle 900ms 260ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.lp-receipt {
  position: relative;
  padding: 1.55rem 1.5rem 1rem;
  background: var(--lp-sheet);
  border: 1.5px solid var(--lp-ink);
  border-radius: 8px;
  box-shadow: 9px 9px 0 rgba(31, 41, 55, 0.16);
  transform: rotate(-1.2deg);
}
.lp-receipt-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.lp-receipt-title {
  margin-top: 0.18rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  font-variation-settings:
    "opsz" 32,
    "wdth" 94;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.lp-receipt-meta {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--lp-muted);
}
.lp-receipt-sum {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lp-line);
}
.lp-receipt-label {
  font-size: 0.78rem;
  color: var(--lp-muted);
}
.lp-receipt-value {
  margin-top: 0.05rem;
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: 700;
  font-variation-settings:
    "opsz" 48,
    "wdth" 90;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.lp-receipt-sub {
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: var(--lp-muted);
}
.lp-meter {
  height: 7px;
  margin-top: 0.8rem;
  background: var(--lp-paper-deep);
  border: 1px solid var(--lp-line);
}
.lp-meter span {
  display: block;
  height: 100%;
  background: var(--lp-green);
}
.lp-roll {
  margin-top: 1.1rem;
  border-top: 1px solid var(--lp-line);
}
.lp-roll-row {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) 4.2rem auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--lp-line);
  font-size: 0.84rem;
}
.lp-roll-unit {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lp-roll-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--lp-muted);
}
.lp-roll-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.lp-roll-state {
  min-width: 4.6rem;
  font-size: 0.64rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.lp-roll-state--paid {
  color: var(--lp-green-ink);
}
.lp-roll-state--due {
  color: var(--lp-amber-deep);
}
.lp-roll-state--empty {
  color: #6b675e;
}
.lp-receipt-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  font-size: 0.68rem;
  color: var(--lp-muted);
}
.lp-barcode {
  width: 58%;
  height: 18px;
  margin-top: 0.55rem;
  opacity: 0.7;
  background-image: repeating-linear-gradient(
    90deg,
    var(--lp-ink) 0 2px,
    transparent 2px 5px,
    var(--lp-ink) 5px 6px,
    transparent 6px 10px
  );
}
.lp-stamp {
  position: absolute;
  top: -0.55rem;
  right: -0.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  padding: 0.5rem 0.8rem 0.42rem;
  background: rgba(255, 253, 248, 0.92);
  border: 2px solid var(--lp-green);
  border-radius: 8px;
  color: var(--lp-green-ink);
  text-transform: uppercase;
  transform: rotate(7deg);
  animation: lp-stamp 560ms 850ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.lp-stamp span {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}
.lp-stamp small {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.lp-mpesa-chip {
  position: absolute;
  left: -1.35rem;
  bottom: -0.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 21rem;
  padding: 0.66rem 0.85rem;
  background: #fff;
  border: 1.5px solid var(--lp-ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(31, 41, 55, 0.18);
  transform: rotate(0.8deg);
}
.lp-mpesa-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--lp-green);
  color: #fff;
  border-radius: 50%;
}
.lp-mpesa-check svg {
  width: 13px;
  height: 13px;
}
.lp-mpesa-chip strong {
  display: block;
  font-size: 0.77rem;
  line-height: 1.2;
}
.lp-mpesa-chip div > span {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.68rem;
  color: var(--lp-muted);
}

/* Ticker ------------------------------------------------------------------ */
.lp-ticker {
  overflow: hidden;
  background: var(--lp-ink);
  color: var(--lp-paper);
  border-bottom: 1.5px solid var(--lp-ink);
}
.lp-ticker-track {
  display: flex;
  width: max-content;
  animation: lp-ticker 44s linear infinite;
}
.lp-ticker-group {
  display: flex;
  align-items: center;
}
.lp-ticker-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.92rem 1.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.lp-ticker-square {
  display: block;
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--lp-amber);
}

/* Sections ---------------------------------------------------------------- */
.lp-section {
  padding: 6.5rem 0;
  background: var(--lp-paper);
  scroll-margin-top: 90px;
}
.lp-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: end;
}
.lp-section-intro {
  max-width: 34rem;
  padding-bottom: 0.45rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--lp-muted);
}
.lp-aside {
  margin-top: 1.2rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--lp-amber);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lp-ink);
}

/* Feature ledger ---------------------------------------------------------- */
.lp-features {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 4rem;
  border-top: 1.5px solid var(--lp-ink);
}
.lp-feature {
  display: flex;
  flex-direction: column;
  padding: 2.4rem 0 2.6rem;
  border-bottom: 1.5px solid var(--lp-ink);
}
.lp-feature-a {
  grid-column: span 7;
  padding-right: 2.5rem;
}
.lp-feature-b {
  grid-column: span 5;
  padding-left: 2.5rem;
  border-left: 1.5px solid var(--lp-ink);
}
.lp-feature-c {
  grid-column: span 5;
  padding-right: 2.5rem;
}
.lp-feature-d {
  grid-column: span 7;
  padding-left: 2.5rem;
  border-left: 1.5px solid var(--lp-ink);
}
.lp-feature-copy h3 {
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  font-variation-settings:
    "opsz" 32,
    "wdth" 94;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.lp-feature-copy p {
  max-width: 43ch;
  margin-top: 0.7rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--lp-muted);
}
.lp-art {
  margin-top: auto;
  padding: 1rem;
  background: #fff;
  border: 1.5px solid var(--lp-ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(31, 41, 55, 0.12);
  font-size: 0.84rem;
}
.lp-art-payment,
.lp-art-arrears,
.lp-art-water,
.lp-art-ticket {
  margin-top: 1.7rem;
}
.lp-pay-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lp-mpesa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0.34rem 0.48rem;
  background: var(--lp-green);
  color: #fff;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lp-pay-amount {
  min-width: 0;
}
.lp-pay-amount strong {
  display: block;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.lp-pay-amount span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  color: var(--lp-muted);
}
.lp-chip {
  flex: none;
  margin-left: auto;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
}
.lp-chip--green {
  background: #eaf9ef;
  color: var(--lp-green-ink);
}
.lp-pay-link {
  height: 1.1rem;
  margin-left: 0.6rem;
  border-left: 1.5px dashed #cfc5b2;
}
.lp-invoice-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--lp-line);
  font-size: 0.72rem;
  color: var(--lp-muted);
}
.lp-invoice-paid {
  margin-left: auto;
  color: var(--lp-green-ink);
  font-weight: 600;
}
.lp-arrears {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.lp-arrears li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.73rem;
}
.lp-arrears li > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-arrears-amount {
  font-variant-numeric: tabular-nums;
  color: var(--lp-muted);
}
.lp-days {
  min-width: 3.6rem;
  padding: 0.2rem 0.35rem;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  text-align: center;
  border-radius: 6px;
}
.lp-days--low {
  background: #f6efe0;
  color: #6d5a2c;
}
.lp-days--mid {
  background: #fff1d6;
  color: var(--lp-amber-deep);
}
.lp-days--high {
  background: #fde8e8;
  color: var(--lp-red);
}
.lp-art-note {
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--lp-line);
  font-size: 0.67rem;
  color: var(--lp-muted);
}
.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}
.lp-table th {
  padding: 0 0 0.45rem;
  border-bottom: 1px solid var(--lp-ink);
  font-size: 0.64rem;
  font-weight: 600;
  text-align: left;
  color: var(--lp-muted);
}
.lp-table td {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--lp-line);
}
.lp-table th:last-child,
.lp-table td:last-child {
  text-align: right;
  font-weight: 600;
}
.lp-ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.lp-ticket-head strong {
  display: block;
  font-size: 0.84rem;
}
.lp-ticket-head span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--lp-muted);
}
.lp-photo-tag {
  flex: none;
  padding: 0.22rem 0.4rem;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  font-size: 0.6rem !important;
  font-weight: 600;
  color: var(--lp-muted);
}
.lp-ticket-steps {
  display: flex;
  margin-top: 1rem;
}
.lp-ticket-steps li {
  position: relative;
  flex: 1;
  padding-top: 0.8rem;
  border-top: 1.5px solid #ded4c2;
  font-size: 0.64rem;
  color: var(--lp-muted);
}
.lp-ticket-steps li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 8px;
  height: 8px;
  background: #fff;
  border: 1.5px solid var(--lp-ink);
  border-radius: 50%;
}
.lp-ticket-steps li.is-done {
  color: var(--lp-green-ink);
  font-weight: 600;
}
.lp-ticket-steps li.is-done::before {
  background: var(--lp-green);
  border-color: var(--lp-green);
}

/* Ink portfolio ----------------------------------------------------------- */
.lp-ink {
  background: var(--lp-ink);
  color: var(--lp-paper);
}
.lp-ink .lp-h2 {
  color: var(--lp-paper);
}
.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 5rem;
  align-items: center;
}
.lp-body {
  max-width: 34rem;
  margin-top: 1.6rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--lp-muted);
}
.lp-ink .lp-body {
  color: var(--lp-muted-ink);
}
.lp-counts {
  display: flex;
  gap: 2.6rem;
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(252, 248, 240, 0.18);
}
.lp-counts dt {
  font-size: 0.72rem;
  color: rgba(252, 248, 240, 0.56);
}
.lp-counts dd {
  margin-top: 0.1rem;
  font-family: var(--font-display);
  font-size: 2.55rem;
  font-weight: 700;
  font-variation-settings:
    "opsz" 48,
    "wdth" 90;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--lp-amber);
}
.lp-checks {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 2rem;
}
.lp-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 37rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--lp-ink);
}
.lp-checks svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.16rem;
  color: var(--lp-green-ink);
}
.lp-ink .lp-checks li {
  color: rgba(252, 248, 240, 0.82);
}
.lp-ink .lp-checks svg {
  color: var(--lp-green-light);
}
.lp-portfolio {
  padding: 1.25rem;
  background: #171d24;
  border: 1.5px solid rgba(252, 248, 240, 0.18);
  border-radius: 10px;
  box-shadow: 8px 8px 0 rgba(245, 166, 35, 0.22);
}
.lp-portfolio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(252, 248, 240, 0.16);
  font-size: 0.7rem;
  color: rgba(252, 248, 240, 0.58);
}
.lp-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
}
.lp-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lp-block-label {
  width: 1rem;
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--lp-amber);
}
.lp-unit-row {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
}
.lp-unit {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: rgba(252, 248, 240, 0.05);
  border: 1px solid rgba(252, 248, 240, 0.13);
  border-radius: 1px;
  font-size: 0.55rem;
  font-variant-numeric: tabular-nums;
  color: rgba(252, 248, 240, 0.76);
  transition:
    background-color 140ms ease,
    transform 140ms ease;
}
.lp-unit:hover {
  background: rgba(252, 248, 240, 0.16);
  transform: translateY(-1px);
}
.lp-unit--vacant {
  background: var(--lp-amber);
  border-color: var(--lp-amber);
  color: var(--lp-ink);
  font-weight: 700;
}
.lp-unit--repair {
  background: var(--lp-red);
  border-color: var(--lp-red);
  color: #fff;
  font-weight: 700;
}
.lp-unit.is-current {
  outline: 2px solid var(--lp-paper);
  outline-offset: 1px;
}
.lp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(252, 248, 240, 0.16);
  font-size: 0.7rem;
  color: rgba(252, 248, 240, 0.7);
}
.lp-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.lp-key {
  width: 8px;
  height: 8px;
  display: block;
}
.lp-key--occupied {
  background: rgba(252, 248, 240, 0.2);
  border: 1px solid rgba(252, 248, 240, 0.4);
}
.lp-key--vacant {
  background: var(--lp-amber);
}
.lp-key--repair {
  background: var(--lp-red);
}
.lp-unit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  background: var(--lp-paper);
  color: var(--lp-ink);
}
.lp-unit-card-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.lp-unit-card-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.15rem;
  height: 2.15rem;
  background: var(--lp-amber);
  border: 1.5px solid var(--lp-ink);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}
.lp-unit-card strong {
  display: block;
  font-size: 0.8rem;
}
.lp-unit-card-main div span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.65rem;
  color: var(--lp-muted);
}
.lp-unit-card-rent {
  flex: none;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lp-unit-card-rent span {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 400;
  color: var(--lp-muted);
}

/* Tenant phone ------------------------------------------------------------ */
.lp-split--flip .lp-copy {
  order: 2;
}
.lp-split--flip .lp-phone-wrap {
  order: 1;
}
.lp-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lp-phone-caption {
  font-size: 0.72rem;
  color: var(--lp-muted);
}
.lp-phone {
  width: min(300px, 100%);
  padding: 9px;
  background: var(--lp-ink);
  border: 1.5px solid var(--lp-ink);
  border-radius: 42px;
  box-shadow: 12px 12px 0 var(--lp-amber);
}
.lp-phone-screen {
  position: relative;
  overflow: hidden;
  padding-top: 1.35rem;
  background: var(--lp-sheet);
  border-radius: 32px;
}
.lp-phone-screen::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 92px;
  height: 18px;
  transform: translateX(-50%);
  background: var(--lp-ink);
  border-radius: 0 0 12px 12px;
}
.lp-phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 1.2rem 0.1rem;
  font-size: 0.62rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lp-phone-signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 8px;
}
.lp-phone-signal i {
  display: block;
  width: 2px;
  background: var(--lp-ink);
}
.lp-phone-signal i:nth-child(1) {
  height: 3px;
}
.lp-phone-signal i:nth-child(2) {
  height: 5px;
}
.lp-phone-signal i:nth-child(3) {
  height: 7px;
}
.lp-phone-signal i:nth-child(4) {
  height: 8px;
}
.lp-phone-content {
  padding: 1rem 1.15rem 0;
}
.lp-phone-hi {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  font-variation-settings:
    "opsz" 32,
    "wdth" 94;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.lp-phone-sub {
  margin-top: 0.18rem;
  font-size: 0.67rem;
  color: var(--lp-muted);
}
.lp-phone-balance {
  display: flex;
  flex-direction: column;
  margin-top: 0.95rem;
  padding: 0.8rem;
  background: var(--lp-amber);
  border: 1.5px solid var(--lp-ink);
}
.lp-phone-balance > span:first-child {
  font-size: 0.67rem;
}
.lp-phone-balance strong {
  margin-top: 0.1rem;
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 700;
  font-variation-settings:
    "opsz" 32,
    "wdth" 90;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.lp-phone-pay {
  margin-top: 0.65rem;
  padding: 0.5rem;
  background: var(--lp-ink);
  color: var(--lp-amber);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}
.lp-phone-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--lp-line);
  font-size: 0.72rem;
}
.lp-phone-line strong {
  font-variant-numeric: tabular-nums;
}
.lp-phone-ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.68rem;
  background: #eef7f1;
  border: 1px solid #cfe3d4;
}
.lp-phone-ticket strong {
  display: block;
  font-size: 0.7rem;
  line-height: 1.25;
}
.lp-phone-ticket span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  color: var(--lp-muted);
}
.lp-phone-ticket em {
  flex: none;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 700;
  color: var(--lp-green-ink);
}
.lp-phone-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.7rem 0.1rem 0.9rem;
  border-top: 1px solid var(--lp-line);
  font-size: 0.59rem;
  color: #6b675e;
}
.lp-phone-nav .is-on {
  font-weight: 700;
  color: var(--lp-ink);
  box-shadow: inset 0 -2px 0 var(--lp-amber);
}

/* Steps ------------------------------------------------------------------- */
.lp-steps-section {
  background: var(--lp-paper-deep);
  border-top: 1.5px solid var(--lp-ink);
  border-bottom: 1.5px solid var(--lp-ink);
}
.lp-section-head--steps {
  align-items: end;
}
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3.5rem;
  border-top: 1.5px solid var(--lp-ink);
}
.lp-steps li {
  padding: 2rem 2rem 0 0;
}
.lp-steps li + li {
  padding-left: 2rem;
  border-left: 1.5px solid var(--lp-ink);
}
.lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  background: var(--lp-amber);
  border: 1.5px solid var(--lp-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lp-steps h3 {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  font-variation-settings:
    "opsz" 32,
    "wdth" 94;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lp-steps p {
  max-width: 32ch;
  margin-top: 0.6rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--lp-muted);
}

/* CTA --------------------------------------------------------------------- */
.lp-cta {
  padding: 5.5rem 0;
  background: var(--lp-amber);
  border-bottom: 1.5px solid var(--lp-ink);
}
.lp-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.2rem 3rem;
}
.lp-cta .lp-h2 {
  grid-column: 1;
}
.lp-cta p {
  grid-column: 1;
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(31, 41, 55, 0.86);
}
.lp-cta-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.lp-text-link {
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-text-link:hover {
  text-decoration-thickness: 2px;
}

/* Footer ------------------------------------------------------------------ */
.lp-footer {
  padding: 3.75rem 0 1.5rem;
  background: var(--lp-ink);
  color: var(--lp-paper);
}
.lp-footer .tn-brand {
  color: var(--lp-paper);
}
.lp-footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}
.lp-footer-brand p {
  max-width: 16rem;
  margin-top: 1rem;
  font-size: 0.84rem;
  color: rgba(252, 248, 240, 0.55);
}
.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.75rem;
  max-width: 34rem;
  justify-content: flex-end;
  font-size: 0.86rem;
  color: rgba(252, 248, 240, 0.76);
}
.lp-footer-links a {
  text-decoration: none;
}
.lp-footer-links a:hover {
  color: var(--lp-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(252, 248, 240, 0.16);
  font-size: 0.72rem;
  color: rgba(252, 248, 240, 0.5);
}

/* Motion ------------------------------------------------------------------ */
@keyframes lp-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes lp-settle {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}
@keyframes lp-stamp {
  from {
    opacity: 0;
    transform: rotate(18deg) scale(1.7);
  }
  to {
    opacity: 1;
    transform: rotate(7deg) scale(1);
  }
}
@keyframes lp-ticker {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .lp-hero-grid {
    gap: 2.5rem;
  }
  .lp-split {
    gap: 3.5rem;
  }
  .lp-feature-a,
  .lp-feature-c {
    padding-right: 2rem;
  }
  .lp-feature-b,
  .lp-feature-d {
    padding-left: 2rem;
  }
}

@media (max-width: 960px) {
  .lp-hero {
    padding: 3.75rem 0 5.5rem;
  }
  .lp-hero-grid {
    grid-template-columns: 1fr;
  }
  .lp-hero-art {
    justify-self: center;
    max-width: 520px;
    margin-top: 2.5rem;
    padding-right: 1.5rem;
  }
  .lp-split,
  .lp-split--flip {
    grid-template-columns: 1fr;
  }
  .lp-split--flip .lp-copy {
    order: 0;
  }
  .lp-split--flip .lp-phone-wrap {
    order: 1;
  }
  .lp-phone-wrap {
    margin-top: 3rem;
  }
  .lp-section-head {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .lp-section-intro {
    padding-bottom: 0;
  }
  .lp-steps {
    grid-template-columns: 1fr;
  }
  .lp-steps li {
    padding: 1.75rem 0;
  }
  .lp-steps li + li {
    padding-left: 0;
    border-left: 0;
    border-top: 1.5px solid var(--lp-ink);
  }
  .lp-steps p {
    max-width: 46ch;
  }
}

@media (max-width: 820px) {
  .lp-nav-links {
    display: none;
  }
  .lp-nav-inner {
    justify-content: space-between;
    gap: 1rem;
  }
  .lp-features {
    grid-template-columns: 1fr;
  }
  .lp-feature,
  .lp-feature-a,
  .lp-feature-b,
  .lp-feature-c,
  .lp-feature-d {
    grid-column: 1 / -1;
    padding: 2rem 0;
    border-left: 0;
  }
  .lp-feature-b,
  .lp-feature-d {
    border-top: 0;
  }
  .lp-feature-copy h3 {
    max-width: 26ch;
  }
  .lp-cta-inner {
    display: block;
  }
  .lp-cta p {
    margin-top: 1.2rem;
  }
  .lp-cta-actions {
    margin-top: 1.8rem;
  }
  .lp-footer-grid {
    flex-direction: column;
    gap: 2rem;
  }
  .lp-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .lp-wrap {
    padding: 0 1.15rem;
  }
  .lp-nav-inner {
    min-height: 66px;
  }
  .lp-hero {
    padding: 2.75rem 0 4.5rem;
  }
  .lp-h1-lead {
    font-size: clamp(3.2rem, 15.5vw, 4.6rem);
  }
  .lp-h1-tail {
    margin-top: 1rem;
    font-size: 1.35rem;
  }
  .lp-lede {
    margin-top: 1.5rem;
  }
  .lp-actions {
    align-items: stretch;
  }
  .lp-actions .lp-btn {
    width: 100%;
  }
  .lp-hero-art {
    padding: 0 0.4rem 1.2rem 0;
    margin-top: 2rem;
  }
  .lp-receipt {
    padding: 1.25rem 1rem 0.9rem;
  }
  .lp-receipt-value {
    font-size: 1.72rem;
  }
  .lp-roll-row {
    grid-template-columns: 1.7rem minmax(0, 1fr) 3.6rem auto;
    gap: 0.35rem;
    font-size: 0.72rem;
  }
  .lp-roll-state {
    min-width: 3.9rem;
    font-size: 0.58rem;
  }
  .lp-stamp {
    top: -0.7rem;
    right: -0.1rem;
    padding: 0.4rem 0.62rem;
  }
  .lp-stamp span {
    font-size: 0.76rem;
  }
  .lp-mpesa-chip {
    left: 0;
    bottom: -1rem;
    padding: 0.55rem 0.65rem;
  }
  .lp-mpesa-chip strong {
    font-size: 0.7rem;
  }
  .lp-mpesa-chip div > span {
    font-size: 0.62rem;
  }
  .lp-ticker-item {
    padding: 0.8rem 1.2rem;
    font-size: 0.78rem;
  }
  .lp-section {
    padding: 4.25rem 0;
  }
  .lp-h2 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }
  .lp-features {
    margin-top: 2.5rem;
  }
  .lp-art {
    padding: 0.8rem;
  }
  .lp-invoice-row {
    gap: 0.5rem;
    font-size: 0.66rem;
  }
  .lp-arrears li {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.25rem;
  }
  .lp-arrears li .lp-days {
    grid-column: 2;
    justify-self: end;
  }
  .lp-portfolio {
    padding: 0.9rem;
  }
  .lp-unit {
    font-size: 0.47rem;
  }
  .lp-unit-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .lp-counts {
    gap: 1.6rem;
  }
  .lp-counts dd {
    font-size: 2.1rem;
  }
  .lp-cta {
    padding: 4rem 0;
  }
  .lp-footer {
    padding-top: 3rem;
  }
  .lp-footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-copy > *,
  .lp-hero-art,
  .lp-stamp {
    opacity: 1;
    animation: none;
  }
  .lp-ticker-track {
    animation: none;
  }
  .lp *,
  .lp *::before,
  .lp *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
