/* Warehouse Stock Flow landing. "Estantería": the page is the front of a pallet rack.
   A perforated upright runs down the left edge, white beams separate the bays. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
}

:root {
  --beam: #f26a1b;
  --beam-text: #b4470a;
  --ink: #15171c;
  --ink-soft: #454a55;
  --concrete: #eceef1;
  --panel: #ffffff;
  --line: #d3d7de;
  --ok: #17794c;
  --alert: #c0352b;
  --up: 104px;
  --pad: 48px;
  --title: "Schibsted Grotesk", "Arial Black", Arial, sans-serif;
  --text: "Public Sans", Arial, Helvetica, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--beam);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.limits a:focus-visible,
.foot a:focus-visible {
  outline-color: #ffffff;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
}

.skip:focus {
  left: 0;
}

/* ---------- Rack: upright + content ---------- */

.rack {
  position: relative;
  padding-left: var(--up);
  min-height: 100vh;
}

.rack::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--up);
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='104' height='64'%3E%3Crect x='30' y='17' width='10' height='30' rx='5' fill='%23F26A1B'/%3E%3Crect x='64' y='17' width='10' height='30' rx='5' fill='%23F26A1B'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: left 96px;
  background-size: 104px 64px;
}

.in {
  max-width: 1240px;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.in--text {
  max-width: 880px;
}

/* Section name set vertically on the upright */
.upword {
  position: absolute;
  left: calc(var(--up) * -1 + 26px);
  top: 40px;
  width: calc(var(--up) - 52px);
  display: flex;
  justify-content: center;
  padding: 16px 0;
  background: #ffffff;
  border-radius: 3px;
}

.upword span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

main > section,
.bayhead {
  position: relative;
}

/* ---------- Beams ---------- */

.beam {
  position: relative;
  height: 22px;
  background: #ffffff;
}

.beam::before,
.beam::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 5px;
  margin-top: -2.5px;
  background: var(--ink);
}

.beam::before {
  left: 14px;
}

.beam::after {
  right: 14px;
}

.beam--top {
  height: auto;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--title);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 26px;
  height: 28px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a {
  padding: 12px 0;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--beam);
}

/* ---------- Shared pieces ---------- */

.kicker {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--title);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  background: var(--ink);
  color: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}

a.cta:hover {
  background: #000000;
}

.cta--soon {
  background: transparent;
  color: var(--ink);
  border-style: dashed;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: default;
}

.more {
  display: inline-block;
  padding: 10px 0;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.more--light {
  color: #ffffff;
  text-decoration-color: var(--beam);
}

.screen {
  width: 100%;
  border: 4px solid var(--ink);
  background: var(--concrete);
}

.code {
  display: inline-block;
  padding: 3px 9px 3px 8px;
  background: var(--ink);
  color: #ffffff;
  border-left: 5px solid var(--beam);
  border-radius: 3px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}

.pill--ok {
  background: #e2f1e9;
  color: var(--ok);
}

.pill--low {
  background: #f8e3e0;
  color: var(--alert);
}

.dash li {
  position: relative;
  padding-left: 26px;
}

.dash li + li {
  margin-top: 10px;
}

.dash li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 14px;
  height: 4px;
  background: var(--beam);
}

.sechead {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px 56px;
  align-items: end;
}

.sechead h2 {
  font-size: clamp(30px, 3.6vw, 50px);
}

.sechead p {
  max-width: 56ch;
}

/* ---------- Hero ---------- */

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: end;
  padding-top: 64px;
}

.hero__text {
  padding-bottom: 64px;
  align-self: center;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 0.98;
  max-width: 13ch;
}

.hero__lead {
  margin-top: 26px;
  max-width: 54ch;
  font-size: 20px;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 32px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 36px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts li {
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 3px;
}

.hero__load .screen {
  border-bottom: 0;
}

/* ---------- Example data (light strip, like the app's screens) ---------- */

.sample {
  background: var(--concrete);
}

.sample__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-top: 44px;
  padding-bottom: 44px;
}

.sample__intro {
  padding-right: 20px;
}

.sample h2 {
  font-size: 26px;
}

.sample__intro p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 16px;
}

.tag {
  padding: 18px 20px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.tag--low {
  border-left: 5px solid var(--alert);
}

.tag__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag__name {
  margin-top: 12px;
  font-weight: 600;
}

.tag__qty {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
}

.tag__qty small {
  font-weight: 500;
  font-size: 15px;
}

.tag__rows {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.tag__rows div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 15px;
}

.tag__rows div + div {
  border-top: 1px solid var(--line);
}

.tag__rows dt {
  color: var(--ink-soft);
}

.tag__rows dd {
  font-family: var(--mono);
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- Bays ---------- */

.bays .sechead {
  padding-top: 72px;
  padding-bottom: 8px;
}

.level {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
  padding-top: 48px;
}

.bay {
  display: flex;
  flex-direction: column;
}

.bay__no {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px 8px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bay__no b {
  color: var(--beam);
  font-family: var(--title);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.bay__no i {
  margin-left: auto;
  font-style: normal;
}

.bay__text {
  padding: 18px 0 22px;
}

.bay h3 {
  font-size: 23px;
  line-height: 1.12;
}

.bay__text p {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.5;
}

.bay__load {
  margin-top: auto;
  padding: 0 14px;
}

.bay__load .screen {
  border-bottom: 0;
}

/* ---------- Method ---------- */

.method {
  background: var(--concrete);
  padding: 72px 0 80px;
}

.method .sechead p {
  color: var(--ink-soft);
}

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.rule {
  padding: 24px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 6px solid var(--beam);
  border-radius: 6px;
}

.rule--wide {
  grid-column: 1 / -1;
}

.rule--wide .rule__lines {
  columns: 2;
  column-gap: 40px;
}

.rule__lines p {
  break-inside: avoid;
}

.rule h3 {
  font-size: 22px;
}

.rule__formula {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--concrete);
  border-radius: 3px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

.rule__lines {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.rule__lines p + p {
  margin-top: 10px;
}

.rule__example {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

.rule__example .code {
  flex: none;
}

/* ---------- Limits ---------- */

.limits {
  background: var(--ink);
  color: #ffffff;
  padding: 72px 0;
}

.limits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 72px;
}

.limits h2 {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--beam);
}

.limits__lead {
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.5;
}

.limits .dash {
  margin-top: 20px;
  color: #dfe2e8;
}

.limits .more {
  margin-top: 18px;
}

/* ---------- Start ---------- */

.start__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 64px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}

.start h2 {
  font-size: clamp(32px, 4.4vw, 60px);
}

.start p {
  margin-top: 16px;
  max-width: 58ch;
  font-size: 18px;
}

.start__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* ---------- Inner pages ---------- */

.bayhead .in {
  padding-top: 56px;
  padding-bottom: 48px;
}

.bayhead h1 {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 68px);
}

.bayhead__lead {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 19px;
}

.doc {
  background: var(--concrete);
  padding: 48px 0 72px;
  min-height: 30vh;
}

.sheet {
  padding: 26px 30px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.sheet + .sheet {
  margin-top: 14px;
}

.sheet h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 24px;
  line-height: 1.15;
}

.sheet h2 .code {
  letter-spacing: 0.04em;
}

.sheet p,
.sheet ul,
.sheet ol,
.sheet dl {
  margin-top: 14px;
}

.sheet p,
.sheet li,
.sheet dd {
  color: #2b2f37;
}

.sheet a {
  color: var(--beam-text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.cases div + div {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cases dt {
  font-weight: 600;
  color: var(--ink);
}

.cases dd {
  margin-top: 4px;
}

.steps {
  counter-reset: paso;
}

.steps li {
  position: relative;
  padding-left: 44px;
  counter-increment: paso;
}

.steps li + li {
  margin-top: 12px;
}

.steps li::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--beam-text);
}

/* ---------- Footer ---------- */

.foot {
  background: var(--ink);
  color: #dfe2e8;
  padding: 44px var(--pad) 32px;
  font-size: 15px;
}

.foot__in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 28px 72px;
  max-width: 1144px;
}

.foot__name {
  color: #ffffff;
  font-family: var(--title);
  font-weight: 800;
  font-size: 20px;
}

.foot__brand p + p {
  margin-top: 8px;
  max-width: 44ch;
}

.foot__nav {
  display: grid;
  gap: 4px;
  align-content: start;
}

.foot__nav a,
.foot__mail a {
  padding: 5px 0;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--beam);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.foot__mail span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beam);
}

.foot__mail a {
  display: inline-block;
  overflow-wrap: anywhere;
}

.foot__legal {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #343842;
  font-family: var(--mono);
  font-size: 12.5px;
  color: #b9bec8;
}

/* ---------- Medium widths ---------- */

@media (max-width: 1100px) {
  :root {
    --up: 72px;
    --pad: 32px;
  }

  .rack::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='64'%3E%3Crect x='18' y='17' width='9' height='30' rx='4.5' fill='%23F26A1B'/%3E%3Crect x='45' y='17' width='9' height='30' rx='4.5' fill='%23F26A1B'/%3E%3C/svg%3E");
    background-size: 72px 64px;
  }

  .nav {
    gap: 20px;
  }

  .upword {
    left: calc(var(--up) * -1 + 14px);
    width: calc(var(--up) - 28px);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
  }

  .level {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
  }

  .bay__load {
    padding: 0 48px;
  }

  .sample__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sample__intro {
    grid-column: 1 / -1;
  }
}

/* ---------- Phone ---------- */

@media (max-width: 760px) {
  :root {
    --up: 18px;
    --pad: 16px;
  }

  body {
    font-size: 16px;
  }

  .rack::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='44'%3E%3Crect x='6' y='12' width='6' height='20' rx='3' fill='%23F26A1B'/%3E%3C/svg%3E");
    background-size: 18px 44px;
    background-position: left 0;
  }

  .upword,
  .nav__wide {
    display: none;
  }

  .beam {
    height: 16px;
  }

  .beam::before,
  .beam::after {
    width: 12px;
    height: 4px;
    margin-top: -2px;
    left: 8px;
  }

  .beam::after {
    left: auto;
    right: 8px;
  }

  .beam--top {
    min-height: 56px;
    gap: 10px;
  }

  .beam--top::before,
  .beam--top::after {
    display: none;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .brand img {
    width: 21px;
    height: 23px;
  }

  .nav {
    gap: 12px;
    font-size: 11.5px;
    letter-spacing: 0.02em;
  }

  .nav a {
    padding: 16px 0;
  }

  .sechead {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 32px;
  }

  .hero__text {
    padding-bottom: 0;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: 40px;
  }

  .hero__lead {
    margin-top: 16px;
    font-size: 17px;
  }

  .hero__actions {
    margin-top: 22px;
  }

  .cta {
    width: 100%;
    padding: 0 14px;
  }

  .cta--soon {
    font-size: 13px;
  }

  .facts {
    margin-top: 22px;
    font-size: 11.5px;
  }

  /* Only the top of the stock list: the phone page stays short */
  .hero__load {
    padding: 0 20px;
  }

  .hero__load .screen {
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: top;
  }

  .sample__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .sample h2 {
    font-size: 22px;
  }

  .tag__qty {
    font-size: 32px;
  }

  .bays .sechead {
    padding-top: 40px;
    padding-bottom: 0;
  }

  .level {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .bay {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
  }

  .bay__no {
    grid-column: 1 / -1;
    padding: 4px 10px 6px;
  }

  .bay__no b {
    font-size: 26px;
  }

  .bay__load {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    padding: 0;
  }

  .bay__load .screen {
    border-width: 3px;
    border-bottom: 3px solid var(--ink);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
  }

  .bay__text {
    grid-column: 2;
    grid-row: 2;
    padding: 0;
  }

  .bay h3 {
    font-size: 19px;
  }

  .bay__text p {
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.45;
  }

  .method {
    padding: 40px 0 44px;
  }

  .rules {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 24px;
  }

  .rule {
    padding: 18px 16px;
  }

  .rule--wide .rule__lines {
    columns: 1;
  }

  .rule h3 {
    font-size: 20px;
  }

  .rule__lines {
    font-size: 15px;
  }

  .rule__formula,
  .rule__example {
    font-size: 13px;
  }

  .rule__example {
    flex-direction: column;
    gap: 8px;
  }

  .limits {
    padding: 40px 0;
  }

  .limits__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .limits__lead {
    font-size: 17px;
  }

  .start__grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
    padding-bottom: 44px;
  }

  .start h2 {
    font-size: 34px;
  }

  .start p {
    font-size: 16.5px;
  }

  .start__actions {
    align-items: stretch;
  }

  .bayhead .in {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .bayhead h1 {
    margin-top: 12px;
    font-size: 36px;
  }

  .bayhead__lead {
    font-size: 17px;
  }

  .kicker {
    font-size: 11.5px;
    letter-spacing: 0.1em;
  }

  .doc {
    padding: 24px 0 40px;
  }

  .sheet {
    padding: 18px 16px 20px;
  }

  .sheet h2 {
    font-size: 21px;
  }

  .foot {
    padding-top: 32px;
  }

  .foot__in {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}
