/* ==========================================================================
   SmSt Works landing page
   Cool paper, corporate blue, a live board. The page borrows the app's shapes:
   the rail, the ruled timeline, the permission matrix and the job card.
   ========================================================================== */

.lp--works {
  --lp-paper: #f3f7fd;
  --lp-surface: #ffffff;
  --lp-ink: #0f172a;
  --lp-ink-soft: #334155;
  --lp-muted: #5a6b82;
  --lp-rule: #dbe4f1;
  --lp-accent: #1e4fa3;
  --lp-accent-deep: #0b1e3a;
  --lp-accent-soft: #e9f0fa;
  --lp-on-accent: #ffffff;
}

.lp--works .lp-kicker {
  color: #1e4fa3;
}

/* ------------------------------------------------------------------ hero */
.wk-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(ellipse 60% 55% at 92% 4%, rgba(47, 111, 237, 0.11), transparent 64%),
    linear-gradient(180deg, #f3f7fd 0%, #f7faff 56%, #f3f7fd 100%);
}

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

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

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

.wk-hero__title {
  margin-top: 1.1rem;
  color: #0b1e3a;
  font-size: clamp(3rem, 2.2rem + 5vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.wk-hero__copy .lp-lede {
  margin-top: 1.3rem;
  max-width: 38ch;
  color: #334155;
}

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

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

/* ------------------------------------------------------------------ board */
.wk-board {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #c9d6e8;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(11, 30, 58, 0.04),
    0 32px 70px -34px rgba(11, 30, 58, 0.42);
}

.wk-board__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 0;
  background: linear-gradient(180deg, #12305c 0%, #0b1e3a 100%);
  color: #dbe8fd;
}

.wk-board__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--lp-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.wk-board__railline {
  width: 1px;
  height: 18px;
  margin-block: 0.1rem 0.3rem;
  background: rgba(255, 255, 255, 0.18);
}

.wk-board__railicon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #93b4f5;
}

.wk-board__railicon .lp-icon {
  width: 16px;
  height: 16px;
}

.wk-board__railicon.is-active {
  background: rgba(219, 232, 253, 0.14);
  color: #fff;
}

.wk-board__canvas {
  min-width: 0;
  padding: clamp(0.9rem, 2.1vw, 1.4rem);
  background: #fff;
}

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

.wk-board__crumb {
  color: #64748b;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}

.wk-board__crumb span {
  margin-inline: 0.15rem;
  color: #52627a;
}

.wk-board__head h2 {
  margin-top: 0.35rem;
  font-family: var(--lp-display);
  font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.wk-board__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-block: 0.9rem 1.1rem;
  border: 1px solid #e9eff8;
  background: #e9eff8;
}

.wk-stat {
  padding: 0.5rem 0.55rem;
  background: #fff;
}

.wk-stat span {
  display: block;
  color: #64748b;
  font-size: 0.58rem;
  line-height: 1.2;
}

.wk-stat strong {
  display: block;
  margin-top: 0.3rem;
  color: #0f172a;
  font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.08rem);
  font-weight: 600;
  line-height: 1;
}

.wk-stat--warn strong {
  color: #8a5a12;
}

/* --------------------------------------------------------------- timeline */
.wk-timeline {
  position: relative;
  display: grid;
  gap: 0.45rem;
  padding-bottom: 0.35rem;
}

.wk-timeline__ruler {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: end;
  gap: 0.65rem;
}

.wk-timeline__name {
  color: #64748b;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wk-timeline__ticks {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #dbe4f1;
  color: #52627a;
  font-family: var(--lp-mono);
  font-size: 0.53rem;
}

.wk-timeline__lane {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
  border-bottom: 1px solid #e9eff8;
}

.wk-timeline__lane:last-of-type {
  border-bottom: 0;
}

.wk-timeline__job {
  min-width: 0;
}

.wk-timeline__job strong,
.wk-timeline__job small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wk-timeline__job strong {
  color: #1e293b;
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.2;
}

.wk-timeline__job small {
  color: #52627a;
  font-size: 0.55rem;
  line-height: 1.2;
}

.wk-avatar {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: none;
  border-radius: 50%;
  background: #dbe8fd;
  color: #12305c;
  font-family: var(--lp-mono);
  font-size: 0.52rem;
  font-weight: 600;
}

.wk-avatar--large {
  width: 40px;
  height: 40px;
  font-size: 0.72rem;
}

.wk-timeline__track {
  position: relative;
  height: 26px;
  border-left: 1px solid #e9eff8;
  background-image: linear-gradient(90deg, #e9eff8 1px, transparent 1px);
  background-size: 25% 100%;
}

.wk-job {
  position: absolute;
  top: 4px;
  left: var(--start);
  width: var(--span);
  height: 18px;
  overflow: hidden;
  padding-inline: 0.38rem;
  border-radius: 3px;
  color: #fff;
  font-size: 0.51rem;
  font-weight: 500;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wk-job--done {
  background: #93b4f5;
  color: #0b1e3a;
}

.wk-job--run {
  background: #1e4fa3;
}

.wk-job--wait {
  border: 1px dashed #93b4f5;
  background: #eff5ff;
  color: #1e4fa3;
}

.wk-timeline__now {
  position: absolute;
  top: 1.35rem;
  bottom: 0.15rem;
  left: calc(94px + 0.65rem + 78%);
  width: 1px;
  background: #1e4fa3;
}

.wk-timeline__now::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1e4fa3;
}

.wk-board__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e9eff8;
  color: #64748b;
  font-size: 0.6rem;
}

.wk-live {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #1e6b45;
  vertical-align: 1px;
}

/* --------------------------------------------------------------- contrast */
.wk-contrast {
  background: #fff;
}

.wk-contrast .lp-section__head {
  max-width: 690px;
}

.wk-contrast__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--lp-rule);
  border-radius: var(--lp-radius);
  background: var(--lp-rule);
  overflow: hidden;
}

.wk-contrast__col {
  padding: clamp(1.3rem, 3vw, 2.4rem);
  background: #fff;
}

.wk-contrast__col--old {
  background: #f7faff;
}

.wk-contrast__label {
  margin-bottom: 1.1rem;
  color: var(--lp-muted);
  font-family: var(--lp-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.wk-contrast__col--new .wk-contrast__label {
  color: var(--lp-accent);
}

.wk-contrast__col ul {
  display: grid;
  gap: 1.15rem;
}

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

.wk-contrast__col li strong {
  color: var(--lp-ink);
  font-weight: 600;
}

.wk-contrast__mark {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #e9eff8;
  color: #52627a;
  font-family: var(--lp-mono);
  font-size: 0.58rem;
}

.wk-contrast__col--new .wk-contrast__mark {
  background: #dbe8fd;
  color: #1e4fa3;
}

.wk-contrast__mark .lp-icon {
  width: 0.8rem;
  height: 0.8rem;
}

/* ------------------------------------------------------------------- jobs */
.wk-job-section {
  background: #f3f7fd;
}

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

.wk-job-copy .lp-title {
  margin-top: 1rem;
  max-width: 13ch;
}

.wk-job-copy .lp-body {
  margin-top: 1.2rem;
}

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

.wk-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;
}

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

.wk-job-card {
  background: #fff;
}

.wk-recipe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
  align-items: stretch;
  gap: 0.55rem;
  margin-top: 1.15rem;
  padding: 0.75rem;
  border: 1px solid #e9eff8;
  border-radius: 8px;
  background: #f7faff;
}

.wk-recipe__label {
  margin-bottom: 0.6rem;
  color: #64748b;
  font-family: var(--lp-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wk-recipe__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 0.38rem;
  border-bottom: 1px solid #e9eff8;
  color: #334155;
  font-size: 0.75rem;
}

.wk-recipe__line:last-child {
  border-bottom: 0;
}

.wk-recipe__line strong {
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.wk-recipe__side--out .wk-recipe__line strong {
  color: #1e6b45;
}

.wk-recipe__arrow {
  display: grid;
  place-items: center;
  color: #1e4fa3;
}

.wk-recipe__arrow .lp-icon {
  width: 16px;
  height: 16px;
}

.wk-job-card__stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-left: 2px solid #1e6b45;
  background: #f1f7f2;
  color: #334155;
  font-size: 0.76rem;
  line-height: 1.5;
}

.wk-job-card__stock p + p {
  margin-top: 0.12rem;
}

.wk-job-card__stock strong {
  color: #0f172a;
  font-weight: 600;
}

/* ------------------------------------------------------------------ ranks */
.wk-ranks {
  background: #fff;
}

.wk-ranks__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3.2rem);
}

.wk-matrix {
  background: #fff;
}

.wk-role-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--lp-rule);
  border-radius: 7px;
  background: #f7faff;
}

.wk-role {
  flex: 1;
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.wk-role.is-active {
  background: #fff;
  color: #1e4fa3;
  box-shadow: 0 1px 3px rgba(11, 30, 58, 0.1);
}

.wk-matrix__rows {
  margin-top: 0.9rem;
  border-top: 1px solid #e9eff8;
}

.wk-matrix__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.63rem 0;
  border-bottom: 1px solid #e9eff8;
  color: #334155;
  font-size: 0.8rem;
}

.wk-allow {
  min-width: 36px;
  color: #1e6b45;
  font-family: var(--lp-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-align: right;
}

.wk-allow.is-off {
  color: #52627a;
}

.wk-matrix__foot {
  margin-top: 0.85rem;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.5;
}

.wk-ranks__copy {
  display: grid;
  align-content: center;
  gap: 1.1rem;
}

.wk-rule-block {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--lp-rule);
}

.wk-rule-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.wk-rule-block__label {
  color: var(--lp-accent);
  font-family: var(--lp-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.wk-rule-block h3 {
  margin-top: 0.35rem;
  font-family: var(--lp-display);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.wk-rule-block p:last-child {
  margin-top: 0.45rem;
  max-width: 40ch;
  color: var(--lp-ink-soft);
  font-size: 0.9rem;
  line-height: 1.62;
}

/* ------------------------------------------------------------------- shop */
.wk-shop {
  background: #f3f7fd;
}

.wk-shop__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3.2rem);
}

.wk-loyalty {
  grid-row: span 2;
}

.wk-loyalty .lp-preview__body {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 100%;
}

.wk-customer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--lp-rule);
}

.wk-customer h3,
.wk-supplier h3,
.wk-guide h3 {
  font-family: var(--lp-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.wk-customer h3 {
  font-size: 1.2rem;
}

.wk-customer p,
.wk-supplier p {
  margin-top: 0.2rem;
  color: var(--lp-muted);
  font-size: 0.78rem;
}

.wk-customer > strong {
  margin-left: auto;
  color: var(--lp-accent);
  font-size: 1.4rem;
  font-weight: 600;
}

.wk-points {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--lp-ink-soft);
  font-size: 0.82rem;
}

.wk-points .lp-num {
  color: var(--lp-accent);
  font-weight: 600;
}

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

.wk-supplier:last-of-type {
  border-bottom: 0;
}

.wk-supplier h3 {
  font-size: 1rem;
}

.wk-guide .lp-preview__body {
  display: grid;
  gap: 0.45rem;
}

.wk-guide__eyebrow {
  color: var(--lp-accent);
  font-family: var(--lp-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wk-guide h3 {
  font-size: 1.15rem;
}

.wk-guide__lines {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.wk-guide__lines span {
  height: 5px;
  border-radius: 2px;
  background: #e9eff8;
}

.wk-guide__lines span:nth-child(2) {
  width: 88%;
}

.wk-guide__lines span:nth-child(3) {
  width: 64%;
}

/* -------------------------------------------------------------------- cta */
.wk-cta {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: #0b1e3a;
  color: #e9eff8;
}

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

.wk-cta .lp-kicker {
  color: #93b4f5;
}

.wk-cta .lp-title {
  margin-top: 0.8rem;
  max-width: 18ch;
  color: #fff;
}

.wk-cta .lp-body {
  margin-top: 0.8rem;
  max-width: 52ch;
  color: #b8c4d6;
}

.wk-cta .lp-btn--solid {
  background: #fff;
  color: #0b1e3a;
}

.wk-cta .lp-btn--solid:hover {
  background: #dbe8fd;
}

.wk-cta .lp-btn--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
}

.wk-cta .lp-btn--ghost:hover {
  border-color: #93b4f5;
  color: #fff;
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .wk-hero__grid,
  .wk-job-grid,
  .wk-ranks__grid {
    grid-template-columns: 1fr;
  }

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

  .wk-hero__visual {
    margin-top: 0.5rem;
  }

  .wk-contrast__grid {
    grid-template-columns: 1fr;
  }

  .wk-shop__grid {
    grid-template-columns: 1fr;
  }

  .wk-loyalty {
    grid-row: auto;
  }

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

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

  .wk-hero__title {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .wk-board {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .wk-board__rail {
    display: none;
  }

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

  .wk-timeline__ruler,
  .wk-timeline__lane {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .wk-timeline__job small {
    display: none;
  }

  .wk-timeline__now {
    left: calc(76px + 0.65rem + 78%);
  }

  .wk-job {
    font-size: 0.45rem;
    padding-inline: 0.25rem;
  }

  .wk-recipe {
    grid-template-columns: 1fr;
  }

  .wk-recipe__arrow {
    transform: rotate(90deg);
  }

  .wk-job-card__stock {
    display: grid;
    gap: 0.35rem;
  }
}
