/* ==========================================================================
   SmSt Stocks landing page
   Carton brown on warm paper. The page is built like a catalogue: large item
   names, ruled figures, a ledger and a phone that shows the public shelf.
   ========================================================================== */

.lp--stocks {
  --lp-paper: #f7f4ee;
  --lp-surface: #fffdf9;
  --lp-ink: #17130e;
  --lp-ink-soft: #3a3228;
  --lp-muted: #726657;
  --lp-rule: #e5ddcf;
  --lp-accent: #a65a17;
  --lp-accent-deep: #3d220a;
  --lp-accent-soft: #f2e2cf;
  --lp-on-accent: #fffdf9;
}

.lp--stocks .lp-kicker {
  color: #8a5216;
}

/* ------------------------------------------------------------------ hero */
.st-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.8rem, 6vw, 5.4rem) clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(ellipse 55% 50% at 8% 4%, rgba(189, 119, 56, 0.1), transparent 62%),
    linear-gradient(180deg, #f7f4ee 0%, #fbf8f2 52%, #f7f4ee 100%);
}

.st-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--lp-rule);
}

.st-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 5.5vw, 5.5rem);
}

.st-hero__copy {
  max-width: 35rem;
}

.st-hero__title {
  margin-top: 1.1rem;
  color: #3d220a;
  font-size: clamp(3.1rem, 2.1rem + 5.4vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.st-hero__copy .lp-lede {
  margin-top: 1.3rem;
  max-width: 37ch;
  color: #3a3228;
}

.st-hero__copy .lp-actions {
  margin-top: 1.8rem;
}

.st-hero__visual {
  min-width: 0;
}

/* ------------------------------------------------------------------ board */
.st-board {
  overflow: hidden;
  border: 1px solid #d8cdba;
  border-radius: 16px;
  background: #fffdf9;
  box-shadow:
    0 1px 2px rgba(61, 34, 9, 0.05),
    0 30px 70px -34px rgba(61, 34, 9, 0.4);
}

.st-board__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 0.9rem;
  border-bottom: 1px solid #efe9de;
}

.st-board__crumb {
  color: #7a6a55;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
}

.st-board__crumb span {
  margin-inline: 0.15rem;
  color: #7a6a55;
}

.st-board__head h2 {
  margin-top: 0.3rem;
  font-family: var(--lp-display);
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.st-board__range {
  padding: 0.28rem 0.48rem;
  border: 1px solid #e5ddcf;
  border-radius: 4px;
  color: #726657;
  font-family: var(--lp-mono);
  font-size: 0.62rem;
}

.st-board__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #efe9de;
  border-bottom: 1px solid #efe9de;
}

.st-board__stats > div {
  padding: 0.7rem 0.75rem;
  background: #fffdf9;
}

.st-board__stats span {
  display: block;
  color: #7a6a55;
  font-size: 0.58rem;
  line-height: 1.2;
}

.st-board__stats strong {
  display: block;
  margin-top: 0.35rem;
  color: #17130e;
  font-size: clamp(0.88rem, 0.76rem + 0.4vw, 1.05rem);
  font-weight: 600;
  line-height: 1;
}

.st-board__stats .is-warn strong {
  color: #8a5a12;
}

.st-board__split {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 1px;
  background: #efe9de;
  border-bottom: 1px solid #efe9de;
}

.st-health,
.st-flow {
  padding: 0.85rem 0.8rem;
  background: #fffdf9;
}

.st-board__label {
  color: #7a6a55;
  font-family: var(--lp-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.st-donut {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  margin: 0.7rem auto 0.6rem;
  border-radius: 50%;
  background: conic-gradient(#3f6b4a 0 80%, #c58b4c 80% 95%, #9c3b2e 95% 100%);
  position: relative;
}

.st-donut::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #fffdf9;
}

.st-donut span,
.st-donut small {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.st-donut span {
  margin-top: 0.35rem;
  font-family: var(--lp-mono);
  font-size: 1.2rem;
  font-weight: 600;
}

.st-donut small {
  margin-top: -0.65rem;
  color: #7a6a55;
  font-size: 0.55rem;
}

.st-health__legend {
  display: grid;
  gap: 0.25rem;
  color: #726657;
  font-size: 0.6rem;
}

.st-health__legend span,
.st-flow__legend span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.st-health__legend i,
.st-flow__legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.st-health__legend .is-in,
.st-flow__legend .is-in {
  color: #3f6b4a;
}

.st-health__legend .is-low {
  color: #a65a17;
}

.st-health__legend .is-out,
.st-flow__legend .is-out {
  color: #9c3b2e;
}

.st-flow__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.st-flow__head > span {
  color: #7a6a55;
  font-family: var(--lp-mono);
  font-size: 0.6rem;
}

.st-flow__chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 92px;
  margin-top: 0.55rem;
  padding-top: 0.3rem;
  border-bottom: 1px solid #e5ddcf;
  background-image: linear-gradient(180deg, #efe9de 1px, transparent 1px);
  background-size: 100% 25%;
}

.st-flow__chart span {
  flex: 1;
  height: var(--h);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #d29a63, #a65a17);
  opacity: 0.86;
}

.st-flow__chart span:nth-child(3n) {
  background: linear-gradient(180deg, #b6dcc4, #3f6b4a);
}

.st-flow__legend {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.45rem;
  color: #726657;
  font-size: 0.58rem;
}

.st-board__low {
  padding: 0.8rem 1.15rem 1rem;
}

.st-board__lowhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
}

.st-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-block: 0.45rem;
  border-top: 1px solid #efe9de;
  font-size: 0.72rem;
}

.st-row__name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3a3228;
}

.st-row .lp-num {
  color: #726657;
  font-size: 0.67rem;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ item */
.st-item-section {
  background: #fffdf9;
}

.st-item-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.st-item-copy .lp-title {
  margin-top: 1rem;
  max-width: 14ch;
}

.st-item-copy .lp-body {
  margin-top: 1.2rem;
}

.st-checks {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.st-checks li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.65rem;
  color: var(--lp-ink-soft);
  font-size: 0.91rem;
  line-height: 1.55;
}

.st-checks .lp-icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  color: var(--lp-accent);
}

.st-product {
  background: #fffdf9;
}

.st-product__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #efe9de;
}

.st-product__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 26%, #e6c9a8, transparent 48%),
    linear-gradient(145deg, #6d3f0f, #3d220a);
  color: #f2e2cf;
  font-family: var(--lp-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.st-product__head h3 {
  font-family: var(--lp-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.st-product__head p {
  margin-top: 0.25rem;
  color: #7a6a55;
  font-size: 0.75rem;
}

.st-product__figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 0.85rem;
  background: #efe9de;
  border: 1px solid #efe9de;
}

.st-product__figures > div,
.st-product__stock > div {
  padding: 0.6rem 0.65rem;
  background: #fffdf9;
}

.st-product__figures span,
.st-product__stock span {
  display: block;
  color: #7a6a55;
  font-size: 0.6rem;
  line-height: 1.2;
}

.st-product__figures strong,
.st-product__stock strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.st-product__stock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 0.55rem;
  background: #efe9de;
  border: 1px solid #efe9de;
}

.st-product__history {
  margin-top: 1rem;
}

.st-history__row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding-block: 0.45rem;
  border-bottom: 1px solid #efe9de;
  color: #3a3228;
  font-size: 0.73rem;
}

.st-history__row:last-child {
  border-bottom: 0;
}

.st-history__row .lp-num {
  font-size: 0.7rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------ ledger */
.st-ledger-section {
  background: #f7f4ee;
}

.st-ledger {
  margin-top: clamp(2rem, 4vw, 3.2rem);
  background: #fffdf9;
}

.st-ledger__tabs {
  display: flex;
  gap: 0.15rem;
}

.st-ledger__tabs button {
  padding: 0.32rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #5f5142;
  font-size: 0.65rem;
  font-weight: 600;
}

.st-ledger__tabs button.is-active {
  border-color: #d8cdba;
  background: #fffdf9;
  color: #6d3f0f;
}

.st-ledger__table {
  min-width: 540px;
}

.st-ledger .lp-preview__body {
  overflow-x: auto;
}

.st-ledger__empty {
  padding-top: 1rem;
  color: #726657;
  font-size: 0.8rem;
}

/* ----------------------------------------------------------------- reorder */
.st-reorder-section {
  background: #fffdf9;
}

.st-reorder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.st-reorder-card {
  overflow: hidden;
  border: 1px solid #d8cdba;
  border-radius: 10px;
  background: #fffdf9;
  box-shadow: 0 26px 60px -40px rgba(61, 34, 9, 0.4);
}

.st-reorder-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #efe9de;
  background: #f9f3ea;
}

.st-reorder-card__head h3 {
  margin-top: 0.3rem;
  font-family: var(--lp-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.st-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid #efe9de;
}

.st-order-row strong {
  display: block;
  color: #17130e;
  font-size: 0.85rem;
  font-weight: 600;
}

.st-order-row span:not(.lp-num) {
  display: block;
  margin-top: 0.15rem;
  color: #7a6a55;
  font-size: 0.7rem;
}

.st-order-row > .lp-num {
  color: #6d3f0f;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.st-reorder-card__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: #3d220a;
  color: #f2e2cf;
  font-size: 0.8rem;
}

.st-reorder-card__total strong {
  color: #fffdf9;
  font-size: 1.05rem;
  font-weight: 600;
}

.st-reorder-copy .lp-title {
  margin-top: 1rem;
  max-width: 12ch;
}

.st-reorder-copy .lp-body {
  margin-top: 1.2rem;
}

/* ------------------------------------------------------------------ public */
.st-public-section {
  background: #f2e2cf;
}

.st-public-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.st-public-copy .lp-title {
  margin-top: 1rem;
  max-width: 14ch;
}

.st-public-copy .lp-body {
  margin-top: 1.2rem;
}

.st-public-copy .st-checks {
  margin-top: 1.5rem;
}

.st-phone-wrap {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.st-phone {
  position: relative;
  width: min(315px, 88%);
  padding: 10px;
  border: 1px solid #6d3f0f;
  border-radius: 34px;
  background: #3d220a;
  box-shadow: 0 30px 70px -30px rgba(61, 34, 9, 0.5);
}

.st-phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 2;
  width: 72px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #241e17;
}

.st-phone__screen {
  padding: 1.7rem 0.95rem 0.95rem;
  border-radius: 25px;
  background: #fffdf9;
}

.st-phone__eyebrow {
  color: #8a5216;
  font-family: var(--lp-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.st-phone__screen h3 {
  margin-top: 0.3rem;
  font-family: var(--lp-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.st-phone__meta {
  margin-top: 0.2rem;
  color: #7a6a55;
  font-size: 0.67rem;
}

.st-catalogue {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.st-catalogue article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.45rem;
  border: 1px solid #efe9de;
  border-radius: 6px;
  background: #fffdf9;
}

.st-catalogue__art {
  height: 56px;
  border-radius: 4px;
  background: #e8e1d4;
}

.st-catalogue__art--coffee {
  background:
    radial-gradient(circle at 42% 42%, #6d3f0f 0 32%, transparent 33%),
    linear-gradient(135deg, #e6c9a8, #a65a17);
}

.st-catalogue__art--flour {
  background:
    linear-gradient(90deg, transparent 48%, #fffdf9 49% 51%, transparent 52%),
    linear-gradient(180deg, #f2e2cf, #d8cdba);
}

.st-catalogue__art--oil {
  background:
    radial-gradient(ellipse 28% 50% at 50% 60%, #d29a63 0 60%, transparent 61%),
    linear-gradient(180deg, #f9f3ea, #e6c9a8);
}

.st-catalogue strong,
.st-catalogue span,
.st-catalogue em {
  display: block;
}

.st-catalogue strong {
  color: #17130e;
  font-size: 0.72rem;
  line-height: 1.25;
}

.st-catalogue span {
  margin-top: 0.15rem;
  color: #6d3f0f;
  font-size: 0.68rem;
  font-weight: 600;
}

.st-catalogue em {
  margin-top: 0.2rem;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 600;
}

.st-stock {
  color: #3f6b4a;
}

.st-stock--low {
  color: #8a5a12;
}

.st-stock--out {
  color: #9c3b2e;
}

.st-phone__cta {
  width: 100%;
  min-height: 36px;
  margin-top: 0.85rem;
  border: 0;
  border-radius: 4px;
  background: #a65a17;
  color: #fffdf9;
  font-size: 0.72rem;
  font-weight: 600;
}

.st-phone__caption {
  color: #6d3f0f;
  font-size: 0.72rem;
}

/* ----------------------------------------------------------------- reports */
.st-reports-section {
  background: #fffdf9;
}

.st-reports__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
}

.st-reports__head .lp-title {
  margin-top: 0.8rem;
  max-width: 13ch;
}

.st-report-list {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  border-top: 1px solid var(--lp-rule);
}

.st-report {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--lp-rule);
}

.st-report__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: #f2e2cf;
  color: #6d3f0f;
}

.st-report__icon .lp-icon {
  width: 16px;
  height: 16px;
}

.st-report strong {
  display: block;
  color: #17130e;
  font-size: 0.9rem;
  font-weight: 600;
}

.st-report div span {
  display: block;
  margin-top: 0.15rem;
  color: #7a6a55;
  font-size: 0.75rem;
}

/* -------------------------------------------------------------------- cta */
.st-cta {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: #3d220a;
  color: #f2e2cf;
}

.st-cta__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.st-cta .lp-kicker {
  color: #d29a63;
}

.st-cta .lp-title {
  margin-top: 0.8rem;
  max-width: 16ch;
  color: #fffdf9;
}

.st-cta .lp-body {
  margin-top: 0.8rem;
  max-width: 50ch;
  color: #e6c9a8;
}

.st-cta .lp-btn--solid {
  background: #f2e2cf;
  color: #3d220a;
}

.st-cta .lp-btn--solid:hover {
  background: #fffdf9;
}

.st-cta .lp-btn--ghost {
  border-color: rgba(242, 226, 207, 0.28);
  background: transparent;
  color: #fffdf9;
}

.st-cta .lp-btn--ghost:hover {
  border-color: #d29a63;
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .st-hero__grid,
  .st-item-grid,
  .st-reorder-grid,
  .st-public-grid {
    grid-template-columns: 1fr;
  }

  .st-hero__copy {
    max-width: 44rem;
  }

  .st-reorder-copy {
    order: -1;
  }

  .st-reports__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .st-cta__inner {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .st-hero {
    padding-top: 2rem;
  }

  .st-hero__title {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .st-board__stats {
    grid-template-columns: 1fr 1fr;
  }

  .st-board__split {
    grid-template-columns: 1fr;
  }

  .st-product__figures,
  .st-product__stock {
    grid-template-columns: 1fr;
  }

  .st-ledger__tabs {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .st-report {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .st-report > .lp-tag {
    display: none;
  }

  .st-phone {
    width: min(295px, 100%);
  }
}

.lp-tag--muted {
  color: #5f5142;
}
