/* Stupen site. Tokens from studio/brands/stupen/tokens.json (Stair section). */
@font-face { font-family: "Manrope"; src: url("fonts/manrope-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-200.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/golos-text-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/golos-text-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("fonts/martian-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("fonts/martian-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --plaster: #f3f3ef;
  --panel: #ffffff;
  --ink: #151515;
  --pencil: #55564f;
  --hairline: #cfcfc8;
  --nosing: #f5c400; /* fill only: never text */
  --dimension: #24477a;
  --highlight: #fff3b8;
  --night: #151515;
  --night-pencil: #a9aaa2;
  --night-dimension: #9db4dc;
  --display: "Manrope", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, sans-serif;
  --label: "Martian Mono", ui-monospace, monospace;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plaster); color: var(--ink); font: 17px/1.6 var(--body); }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--dimension); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
code { font-family: var(--label); font-size: 0.85em; background: var(--panel); border: 1px solid var(--hairline); padding: 1px 5px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--plaster); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 12px; }
.label { font-family: var(--label); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pencil); }

/* header */
.bar { display: flex; align-items: center; gap: 24px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; }
.nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { text-decoration: underline; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 2px; color: var(--ink); text-decoration: none; font-weight: 600; background: transparent; font: inherit; font-weight: 600; cursor: pointer; }
.btn.fill { background: var(--nosing); }
.btn:hover { background: var(--panel); }
.btn.fill:hover { background: var(--nosing); box-shadow: inset 0 -4px 0 var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 40px 72px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); margin-top: 10px; }
.hero .lede { font-size: 19px; color: var(--pencil); margin: 22px 0 30px; max-width: 34em; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero figure { margin: 0; }
.hero figcaption { margin-top: 6px; }

/* demo */
.demo { background: var(--panel); border-block: 1px solid var(--hairline); padding-block: 64px; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.demo h2 { font-size: clamp(32px, 4vw, 46px); margin: 10px 0 16px; }
.demo .intro { color: var(--pencil); max-width: 32em; }
.steps { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 0; margin-top: 30px; height: 260px; border-bottom: 3px solid var(--ink); }
.step { position: relative; border: none; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; border-top: 3px solid var(--ink); border-right: 3px solid var(--ink); font: inherit; text-align: left; min-width: 0; }
.step:nth-child(1) { height: 22%; } .step:nth-child(2) { height: 35%; } .step:nth-child(3) { height: 48%; } .step:nth-child(4) { height: 61%; }
.step:nth-child(5) { height: 74%; } .step:nth-child(6) { height: 87%; } .step:nth-child(7) { height: 100%; }
.step .n { font-family: var(--display); font-weight: 200; font-size: clamp(26px, 3.6vw, 44px); line-height: 1; padding: 6px 0 0 8px; }
.step .nose { position: absolute; left: 0; right: -3px; top: -9px; height: 7px; background: transparent; }
.step[aria-checked="true"] .nose { background: var(--nosing); }
.step.above { border-color: var(--hairline); color: var(--hairline); }
.step:hover .n { text-decoration: underline; text-decoration-thickness: 2px; }
.step:focus-visible { outline-offset: 4px; }
.scale { display: flex; justify-content: space-between; margin-top: 8px; color: var(--dimension); }
.chat { border: 1px solid var(--hairline); background: var(--plaster); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.chat .test { font-family: var(--label); font-size: 13px; background: var(--panel); border: 1px solid var(--hairline); padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat .msg { background: var(--panel); border: 1px solid var(--hairline); padding: 14px 16px; }
.chat .msg.you { background: var(--highlight); border-color: transparent; }
.chat .who { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.chat .level { font-family: var(--label); font-size: 12px; color: var(--dimension); }
.mock { font-size: 14px; color: var(--pencil); }

/* features */
.features { padding-block: 72px; }
.features h2 { font-size: clamp(30px, 4vw, 44px); max-width: 18em; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 3px solid var(--ink); }
.card { padding: 22px 22px 28px 0; border-bottom: 1px solid var(--hairline); }
.card + .card { padding-left: 22px; border-left: 1px solid var(--hairline); }
.card:nth-child(3n + 1) { padding-left: 0; border-left: none; }
.card .num { font-family: var(--display); font-weight: 200; font-size: 56px; line-height: 1; }
.card h3 { font-size: 22px; margin: 10px 0 8px; }
.card p { color: var(--pencil); }

/* status, support */
.status { padding-block: 0 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.status > div { border: 1px solid var(--hairline); background: var(--panel); padding: 26px; }
.status h2 { font-size: 30px; margin-bottom: 12px; }
.status p + p { margin-top: 10px; }
.support { border-left: 7px solid var(--nosing) !important; }

/* footer */
footer { background: var(--night); color: var(--plaster); padding-block: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer a { color: var(--plaster); }
footer .label { color: var(--night-pencil); }
footer .brand { color: var(--plaster); font-size: 22px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer .fine { width: 100%; color: var(--night-pencil); font-size: 14px; }

/* docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-block: 24px 72px; }
.toc { position: sticky; top: 16px; align-self: start; display: flex; flex-direction: column; gap: 6px; font-size: 15px; border-left: 3px solid var(--ink); padding-left: 16px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin: 8px 0 18px; }
.doc h2 { font-size: 30px; margin: 52px 0 14px; padding-top: 14px; border-top: 3px solid var(--ink); }
.doc h3 { font-size: 21px; margin: 26px 0 8px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15.5px; }
.doc th { text-align: left; font-family: var(--label); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pencil); border-bottom: 2px solid var(--ink); padding: 8px 10px; }
.doc td { border-bottom: 1px solid var(--hairline); padding: 9px 10px; vertical-align: top; }
.doc td.lv { font-family: var(--display); font-weight: 200; font-size: 26px; width: 50px; line-height: 1; }
.doc tr.limit td { background: var(--highlight); }
.doc tr.limit td:first-child { box-shadow: inset 6px 0 0 var(--nosing); }
.doc .note { border-left: 4px solid var(--dimension); background: var(--panel); padding: 12px 16px; margin: 18px 0; }
.tablewrap { overflow-x: auto; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-content: center; gap: 18px; text-align: left; }
.lost h1 { font-size: clamp(40px, 7vw, 76px); }

@media (max-width: 860px) {
  .hero, .demo-grid, .status, .docs { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 16px 48px; gap: 28px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card, .card + .card { padding: 20px 0; border-left: none; }
  .toc { position: static; border-left: none; padding-left: 0; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  .steps { height: 200px; }
}
@media (max-width: 520px) {
  .bar { flex-wrap: wrap; gap: 12px; }
  .nav { margin-left: 0; width: 100%; }
  .step .n { padding-left: 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  .step .nose { transition: background-color 160ms ease-out; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.docs.single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
