/* The About page: littlebits.io's design language, as Little Screens' home page has it (its tokens
   are from DMS-Docs/src/css/custom.css), kept apart from app.css because the two use the same class
   names for different things. The CSP allows no inline styles. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --bg: #ffffff;
  --soft: #f7f8fb;
  --ink: #1f2733;
  --slate: #475569;
  --line: #e6e9f0;
  --line-strong: #cbd5e1;
  --accent: #4f6ef7;
  --accent-soft: rgba(79, 110, 247, 0.1);
  --accent-ink: #3e56c1;
  /* White on the brand's #4f6ef7 is 4.28:1, under the 4.5:1 that text needs, so buttons use the
     deeper accent, as the rest of the site does. */
  --button: #3e56c1;
  --button-hover: #2f45a6;
  --error: #b42318;
  --ok: #17694a;
  --ok-soft: #e6f4ed;
  --warn: #8a4b00;
  --warn-soft: #fff6e6;
  --warn-line: #f0d9a8;
  --shadow: 0 40px 80px -40px rgba(40, 55, 95, 0.32), 0 8px 20px -12px rgba(40, 55, 95, 0.16);
  /* Devices drawn as dark glass, as on Little Screens, and the mark's periwinkle for paper. */
  --glass: #1a2030;
  --glass-edge: #313a4e;
  --glass-2: #2a3349;
  --feed: #5b6fb5;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --soft: #1e293b;
    --ink: #f1f5f9;
    --slate: #cbd5e1;
    --line: #334155;
    --line-strong: #475569;
    --accent: #8ea2fb;
    --accent-soft: rgba(142, 162, 251, 0.16);
    --accent-ink: #aab9fc;
    --button: #4a63d9;
    --button-hover: #5b73e4;
    --error: #f28b82;
    --ok: #63c995;
    --ok-soft: #16301f;
    --warn: #f2b661;
    --warn-soft: #352a14;
    --warn-line: #5a4520;
    --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
    --glass: #05070b;
    --glass-edge: #475569;
    --glass-2: #1a2231;
    --feed: #7d93df;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 28px;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: var(--button);
  color: #ffffff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--button-hover);
}

.button.ghost {
  border-color: var(--line-strong);
  background: var(--bg);
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--accent);
}

.button.small {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14.5px;
  white-space: nowrap;
}

.button:disabled {
  opacity: 0.65;
  cursor: default;
}

/* ---------- Top ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}

.mark-feed {
  fill: #5b6fb5;
}

.mark-body {
  fill: #1a2030;
  stroke: var(--glass-edge);
  stroke-width: 0.5;
}

.mark-page {
  fill: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .mark-feed {
    fill: #7d93df;
  }

  .mark-body {
    fill: #3b4a66;
    stroke: none;
  }
}

.mark-line {
  fill: #2a3349;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-link {
  padding: 8px 12px;
  color: var(--slate);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.top-link:hover {
  color: var(--ink);
}

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

.hero {
  padding-top: 52px;
  padding-bottom: 48px;
  text-align: center;
}

h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.07;
  text-wrap: balance;
}

.hl {
  display: block;
  color: var(--accent);
}

.sub {
  max-width: 60ch;
  margin: 18px auto 24px;
  color: var(--slate);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.here {
  margin-top: 18px;
  color: var(--slate);
  font-size: 15.5px;
  text-wrap: balance;
}

.here a {
  font-weight: 600;
}

/* ---------- The demo: a guest, the terminal and its printer, and you ---------- */

.demo {
  padding: 48px 0 52px;
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.demo h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  text-align: center;
}

.demo-intro {
  margin-top: 6px;
  color: var(--slate);
  font-size: 17px;
  text-align: center;
  text-wrap: balance;
}

.stage {
  display: grid;
  grid-template: auto 1fr / 300px minmax(0, 1fr);
  gap: 0 56px;
  margin-top: 30px;
}

.guest {
  grid-row: 1 / 3;
}

.demo-label {
  margin-bottom: 10px;
  color: var(--slate);
  font-size: 15.5px;
}

.demo-label b {
  color: var(--ink);
  font-weight: 700;
}

/* --- What's on the devices: always light, whatever the page is. --- */

.phone,
.term,
.printer {
  --brand: #1e4d40;
  --on-brand: #ffffff;
  --d-ink: #1f2733;
  --d-ink-2: #3b4556;
  --d-muted: #566173;
  --d-line: #e2e5eb;
  --d-track: #eceff3;
  --d-ok: #1e7f55;
  --d-ok-soft: #e6f4ed;
  --d-warn: #8a4b00;
  --d-warn-dot: #c77a0a;
  --d-warn-soft: #fff6e6;
  --d-warn-line: #f0d9a8;
}

/* --- The phone --- */

.phone {
  width: 300px;
  padding: 9px;
  border-radius: 46px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow);
}

.phone-screen {
  height: 618px;
  border-radius: 37px;
  overflow: hidden;
  background: #f5f6f8;
  color: var(--d-ink);
  font-size: 13px;
  line-height: 1.4;
  color-scheme: light;
}

.p-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Focused so it's read out, not to be used. */
.p-screen:focus {
  outline: none;
}

.phone button {
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.phone button:focus-visible {
  outline: 2px solid #4f6ef7;
  outline-offset: 2px;
}

.phone svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p-head {
  padding: 30px 20px 18px;
  background: var(--brand);
  color: var(--on-brand);
}

.p-event {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.p-tag {
  opacity: 0.86;
}

.p-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
  font-weight: 600;
}

.p-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8be0b0;
}

[data-paper='out'] .p-chip i {
  background: #ffd27a;
}

.p-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 16px 0;
  padding: 18px 16px;
  border-radius: 16px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 11.5px;
}

.p-drop strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
}

.p-drop-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.p-drop-icon svg {
  width: 20px;
  height: 20px;
}

.p-files {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
  padding: 22px 16px;
  border-radius: 22px 22px 0 0;
  background: #ffffff;
  box-shadow: 0 -10px 30px -16px rgba(16, 24, 40, 0.3);
}

.p-files > p {
  font-size: 15px;
  font-weight: 800;
}

.p-files button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 14px;
  background: #f3f5f8;
  color: var(--d-muted);
  font-size: 12px;
  text-align: left;
}

.p-files button:hover {
  background: #e8ecf2;
}

.p-files button strong {
  display: block;
  color: var(--d-ink);
  font-size: 13.5px;
  font-weight: 700;
}

.p-type {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
}

.p-type.pdf {
  background: #b03a2e;
}

.p-type.xls {
  background: #1d6b45;
}

.p-type.jpg {
  background: #3e56c1;
}

.p-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 24px 14px 10px 8px;
  border-bottom: 1px solid var(--d-line);
  background: #ffffff;
}

.p-bar.plain {
  padding-left: 20px;
}

.p-bar button {
  padding: 8px;
  border-radius: 10px;
  background: none;
}

.p-bar button svg {
  width: 20px;
  height: 20px;
}

.p-bar p {
  min-width: 0;
  color: var(--d-muted);
  font-size: 12px;
}

.p-bar strong {
  display: block;
  color: var(--d-ink);
  font-size: 14.5px;
  font-weight: 800;
}

.p-bar p > span {
  display: block;
}

.p-preview {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  background: #e6eaf0;
}

.p-preview .sheet {
  height: min(208px, 84%);
  box-shadow: 0 10px 22px -10px rgba(16, 24, 40, 0.35);
}

.p-panel {
  padding: 8px 16px 2px;
  border-radius: 18px 18px 0 0;
  background: #ffffff;
}

.p-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-weight: 700;
}

.p-row + .p-row {
  border-top: 1px solid #eef0f4;
}

.p-seg,
.p-stepper {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 152px;
  padding: 3px;
  border-radius: 11px;
  background: var(--d-track);
}

.p-stepper {
  justify-content: space-between;
  width: 122px;
}

.p-seg button,
.p-stepper button {
  min-height: 32px;
  border-radius: 8px;
  background: none;
  color: var(--d-ink-2);
  font-weight: 600;
}

.p-seg button {
  flex: 1;
}

.p-stepper button {
  width: 36px;
  background: #ffffff;
  font-size: 17px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
}

.p-stepper button:disabled {
  opacity: 0.4;
  cursor: default;
}

.p-stepper output {
  font-size: 15px;
  font-weight: 800;
}

.p-seg button[aria-pressed='true'] {
  background: #ffffff;
  color: var(--d-ink);
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.16);
}

.p-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--d-line);
  background: #ffffff;
}

.p-foot > p {
  color: var(--d-ink-2);
  font-size: 12.5px;
  text-align: center;
}

.phone .p-go {
  min-height: 44px;
  border-radius: 13px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 14.5px;
  font-weight: 800;
}

.phone .p-go:hover {
  background: #163b31;
}

.phone .p-go.plain {
  border: 1px solid #d5dae3;
  background: #ffffff;
  color: var(--d-ink);
}

.phone .p-go.plain:hover {
  background: #f3f5f8;
}

.p-status .p-card {
  margin: 14px 14px 0;
  padding: 16px;
  border: 1px solid var(--d-line);
  border-radius: 18px;
  background: #ffffff;
}

.p-status .p-foot {
  margin-top: auto;
}

.p-status .p-foot:not(:has(button:not([hidden]))) {
  display: none;
}

.p-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
}

.p-icon svg {
  grid-area: 1 / 1;
  width: 23px;
  height: 23px;
  visibility: hidden;
}

[data-job='printing'] .i-printer,
[data-job='printed'] .i-check,
:is([data-job='waiting'], [data-job='paused']) .i-alert {
  visibility: visible;
}

.p-title {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.p-text {
  margin-top: 4px;
  color: var(--d-ink-2);
  font-size: 13.5px;
}

.p-progress {
  height: 7px;
  margin-top: 14px;
  border-radius: 4px;
  background: var(--d-track);
  overflow: hidden;
}

.p-progress i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--brand);
  transform: translateX(-100%);
}

[data-job='printed'] .p-hero {
  border-color: #b4d9c6;
  background: var(--d-ok-soft);
}

[data-job='printed'] .p-icon {
  background: var(--d-ok);
}

:is([data-job='waiting'], [data-job='paused']) .p-hero {
  border-color: var(--d-warn-line);
  background: var(--d-warn-soft);
}

:is([data-job='waiting'], [data-job='paused']) .p-icon {
  background: var(--d-warn-dot);
}

:is([data-job='waiting'], [data-job='printed']) .p-progress {
  display: none;
}

.p-where {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--d-muted);
  font-size: 12.5px;
}

.p-where > span {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e4eae8;
}

.p-where svg {
  width: 19px;
  height: 19px;
}

.p-where strong {
  display: block;
  color: var(--d-ink);
  font-size: 15px;
  font-weight: 800;
}

/* --- A printed page: the document that was chosen, grey unless it's in colour --- */

.sheet {
  container-type: size;
  position: relative;
  aspect-ratio: 210 / 297;
  background: #ffffff;
  overflow: hidden;
}

[data-colour='mono'] .sheet {
  filter: grayscale(1);
}

.art {
  position: absolute;
  inset: 0;
  display: none;
  padding: 9cqw;
}

[data-doc='running'] .art.running,
[data-doc='plan'] .art.plan,
[data-doc='sign'] .art.sign {
  display: grid;
}

.art.running {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 5cqw;
}

.art.running b {
  width: 58%;
  height: 9cqw;
  margin-bottom: 3cqw;
  border-radius: 1cqw;
  background: #1e4d40;
}

.art.running i {
  height: 6cqw;
  background: linear-gradient(90deg, #7fb3a2 0 15cqw, transparent 15cqw 20cqw, #d3dad7 20cqw);
}

.art.running i:nth-of-type(3n) {
  width: 78%;
}

.art.running i:nth-of-type(4n + 2) {
  width: 88%;
}

.art.running i:nth-of-type(3) {
  background: linear-gradient(90deg, #1e4d40 0 15cqw, transparent 15cqw 20cqw, #7fb3a2 20cqw);
}

.art.plan {
  grid-template: 10cqw repeat(3, 1fr) / repeat(3, 1fr);
  gap: 7cqw;
  padding-bottom: 22cqw;
}

.art.plan b {
  grid-column: 1 / -1;
  width: 48%;
  border-radius: 1cqw;
  background: #1e4d40;
}

.art.plan i {
  aspect-ratio: 1;
  align-self: center;
  border: 1.6cqw solid #7fb3a2;
  border-radius: 50%;
  background: #e4f1ec;
}

.art.plan i:nth-of-type(5) {
  border-color: #c9783b;
  background: #f6e3d3;
}

.art.sign {
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 0;
  background: #1e4d40;
  color: #ffffff;
}

.art.sign b {
  align-self: end;
  font-size: 17cqw;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.art.sign i {
  width: 100%;
  margin-top: 22cqw;
  padding: 7cqw;
  background: #c9783b;
  font-size: 7cqw;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

/* --- The terminal: sizes are in cqw so it scales --- */

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

.term {
  padding: 4%;
  border-radius: 22px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow);
}

.term-screen {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--brand);
  color: var(--d-ink);
  line-height: 1.25;
  overflow: hidden;
}

.t-head {
  display: flex;
  align-items: center;
  gap: 3.4cqw;
  height: 21.5cqw;
  padding: 0 5.6cqw;
  color: var(--on-brand);
  font-size: 2.9cqw;
}

.t-head strong {
  display: block;
  font-size: 4.5cqw;
  font-weight: 800;
}

.t-logo {
  flex: none;
  display: grid;
  grid-template-columns: repeat(2, 4cqw);
  place-content: center;
  gap: 1.2cqw;
  width: 14.5cqw;
  height: 12.5cqw;
  border-radius: 2.6cqw;
  background: #ffffff;
}

.t-logo i {
  height: 6.4cqw;
  border-radius: 1cqw 3cqw;
  background: #1e4d40;
}

.t-logo i + i {
  border-radius: 3cqw 1cqw;
  background: #c9783b;
}

.t-body {
  display: flex;
  align-items: flex-start;
  gap: 4.6cqw;
  height: 78.5cqw;
  padding: 5.6cqw;
  border-radius: 5.6cqw 5.6cqw 0 0;
  background: #ffffff;
}

.t-qr {
  flex: none;
  width: 45cqw;
  height: 45cqw;
  fill: #000000;
  shape-rendering: crispEdges;
}

.t-words {
  display: flex;
  flex-direction: column;
  padding-top: 5cqw;
  color: var(--d-muted);
  font-size: 2.9cqw;
}

.t-words strong {
  color: var(--d-ink);
  font-size: 5.4cqw;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.t-words .gap {
  margin-top: 4cqw;
}

.t-words b {
  color: var(--d-ink);
  font-size: 4cqw;
  font-weight: 800;
}

.t-words em {
  color: var(--d-ink);
  font-size: 7cqw;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.t-strip {
  position: absolute;
  inset: auto 5.6cqw 5.6cqw;
  display: flex;
  align-items: center;
  gap: 3cqw;
  min-height: 12.5cqw;
  padding: 2cqw 4cqw;
  border-radius: 7cqw;
  background: var(--d-ok-soft);
  font-size: 3.3cqw;
}

.t-strip i {
  flex: none;
  width: 2.4cqw;
  height: 2.4cqw;
  border-radius: 50%;
  background: var(--d-ok);
}

.t-strip p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 2cqw;
  color: var(--d-ink-2);
}

.t-strip strong {
  color: var(--d-ink);
  font-size: 3.9cqw;
  font-weight: 800;
}

[data-job='printing'] .t-strip {
  background: #e1e9e7;
}

[data-job='printing'] .t-strip i {
  background: var(--brand);
}

[data-paper='out'] .t-strip {
  background: var(--d-warn-soft);
  box-shadow: inset 0 0 0 0.4cqw var(--d-warn-line);
}

[data-paper='out'] .t-strip i {
  background: var(--d-warn-dot);
}

[data-paper='out'] .t-strip p {
  color: var(--d-warn);
}

/* --- The printer: the mark, big. Paper in the top, the page out of the front. --- */

.printer {
  position: relative;
  aspect-ratio: 1.02;
}

.pr-feed {
  position: absolute;
  inset: 2% 24% 62%;
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.35s;
}

.pr-feed i {
  position: absolute;
  inset: 0;
  border-radius: 5px 5px 0 0;
  background: var(--feed);
}

.pr-feed i:nth-child(1) {
  inset: 0 -3% 0 3%;
  opacity: 0.45;
}

.pr-feed i:nth-child(2) {
  inset: 4% -1.5% 0 1.5%;
  opacity: 0.7;
}

.pr-feed i:nth-child(3) {
  top: 8%;
}

[data-paper='out'] .pr-feed {
  transform: translateY(-26%);
  opacity: 0;
}

.pr-body {
  position: absolute;
  inset: 26% 2% 36%;
  border-radius: 24px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 24px 40px -26px rgba(40, 55, 95, 0.55);
}

.pr-light {
  position: absolute;
  top: 26%;
  right: 7%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #63c995;
}

[data-paper='out'] .pr-light {
  background: #f2b661;
}

.pr-slot {
  position: absolute;
  inset: auto 19% 12%;
  height: 7px;
  border-radius: 4px;
  background: #000000;
  box-shadow: 0 1px 0 var(--glass-2);
}

/* In front of the printer, from the slot down: the page slides out from under its top edge. */
.pr-out {
  position: absolute;
  z-index: 1;
  inset: 59.5% 24% 0;
  overflow: hidden;
}

/* The foot of the page comes out first; most of it stays in view. It starts just above the slot: the
   part that shows is a little over half the page. */
.pr-out .sheet {
  position: absolute;
  bottom: 0;
  width: 100%;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.12);
  transform: translateY(-56%);
}

@keyframes feed {
  to {
    transform: none;
  }
}

:is([data-job='printing'], [data-job='paused']) .pr-out .sheet {
  animation: feed 2.7s linear forwards;
}

:is([data-job='printing'], [data-job='paused']) .p-progress i {
  animation: feed 2.7s linear forwards;
}

[data-job='paused'] :is(.pr-out .sheet, .p-progress i) {
  animation-play-state: paused;
}

[data-job='printed'] .pr-out .sheet {
  transform: none;
}

.paper-button {
  display: block;
  min-height: 44px;
  margin: 16px auto 0;
  padding: 0 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}

.paper-button:hover {
  border-color: var(--accent);
}

/* --- You: littlebits.io's product window, round the event page's print jobs --- */

.you {
  margin-top: 18px;
}

.window {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-bottom: 1px solid var(--line);
}

.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-bar span {
  margin-left: 10px;
  padding: 1px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--slate);
  font-size: 12.5px;
}

.y-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 218px;
  min-height: 178px;
}

/* Fixed, so the columns stay put when the statuses change. */
.y-jobs {
  align-self: start;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.y-jobs th:nth-child(1) {
  width: 26%;
}

.y-jobs th:nth-child(3) {
  width: 15%;
}

.y-jobs th:nth-child(4) {
  width: 24%;
}

.y-jobs td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.y-jobs caption {
  padding: 10px 18px 2px;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.y-jobs :is(th, td) {
  padding: 5px 8px;
  text-align: left;
  white-space: nowrap;
}

.y-jobs :is(th, td):first-child {
  padding-left: 18px;
}

.y-jobs th {
  color: var(--slate);
  font-size: 12.5px;
  font-weight: 600;
}

.y-jobs td {
  border-top: 1px solid var(--line);
}

.y-jobs .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 99px;
  background: var(--line);
  font-size: 12.5px;
  font-weight: 600;
}

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

.pill.busy {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.pill.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.y-alert {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-left: 1px solid var(--line);
  color: var(--slate);
  font-size: 13.5px;
  line-height: 1.45;
  transition: background-color 0.25s;
}

.y-alert svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.y-alert strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.y-mail,
[data-paper='out'] .y-none {
  display: none;
}

[data-paper='out'] .y-mail {
  display: block;
}

[data-paper='out'] .y-alert {
  background: var(--warn-soft);
  color: var(--warn);
}

.demo-note {
  max-width: 78ch;
  margin: 30px auto 0;
  color: var(--slate);
  font-size: 14px;
  text-align: center;
  text-wrap: balance;
}

/* ---------- Features ---------- */

.features {
  padding-top: 100px;
  padding-bottom: 92px;
}

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

.feature > p,
.also p,
.steps p,
.alone p,
.contact-words p {
  color: var(--slate);
  text-wrap: pretty;
}

.feature > p {
  max-width: 56ch;
  margin-top: 6px;
}

.picture {
  position: relative;
  height: 272px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--soft);
  overflow: hidden;
}

/* Two events' terminals, running off the bottom edge. */
.term.mini {
  position: absolute;
  width: 52%;
  padding: 10px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}

.term.mini.one {
  --brand: #b4462f;
  left: 5%;
  top: 34px;
}

.term.mini.two {
  --brand: #d9b45b;
  right: 5%;
  top: 62px;
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 0 0 6px var(--soft);
}

.term.mini .t-words .gap {
  margin-top: 3cqw;
}

.term.dark .term-screen {
  background: #0c0f16;
  border-top: 1.4cqw solid var(--brand);
}

.term.dark .t-head {
  color: #ffffff;
}

.term.dark .t-body {
  margin: 0 3cqw;
  height: 74cqw;
  border-radius: 5cqw;
  background: #181c24;
}

.term.dark .t-qr {
  width: 42cqw;
  height: 42cqw;
  padding: 2cqw;
  border-radius: 2cqw;
  background: #ffffff;
}

.term.dark .t-words {
  color: #a6afbf;
}

.term.dark .t-words :is(strong, b) {
  color: #f1f4f9;
}

.term.dark .t-words em {
  color: var(--brand);
}

.term.dark .t-strip {
  inset: auto 8cqw 7cqw;
  background: #16301f;
}

.term.dark .t-strip i {
  background: #63c995;
}

.term.dark .t-strip p {
  color: #a6afbf;
}

.term.dark .t-strip strong {
  color: #f1f4f9;
}

/* What people bring: a fan of documents. */
.pic-files {
  display: grid;
  place-items: center;
}

.file {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 124px;
  height: 172px;
  padding: 13px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.14), 0 16px 26px -18px rgba(16, 24, 40, 0.5);
}

.file b {
  align-self: flex-start;
  margin-bottom: 3px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--kind);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.file i {
  height: 8px;
  border-radius: 3px;
  background: #d8dde5;
}

.file i:last-child {
  width: 60%;
}

.file u {
  flex: 1;
  border-radius: 5px;
  background: linear-gradient(160deg, var(--kind) 55%, transparent 55.5%), color-mix(in srgb, var(--kind) 28%, #ffffff);
}

.f4 {
  flex-wrap: wrap;
  flex-direction: row;
  align-content: flex-start;
  gap: 5px;
}

.f4 b {
  margin-right: 30px;
}

.file s {
  flex: 0 0 46px;
  height: 22px;
  border-radius: 3px;
  background: #d5e7dd;
}

.f1 {
  --kind: #2b579a;
  transform: translate(-166px, 18px) rotate(-11deg);
}

.f2 {
  --kind: #b5532a;
  transform: translate(-84px, -2px) rotate(-5deg);
}

.f3 {
  --kind: #b03a2e;
  transform: translateY(-9px);
}

.f4 {
  --kind: #1d6b45;
  transform: translate(84px, -2px) rotate(5deg);
}

.f5 {
  --kind: #3e56c1;
  transform: translate(166px, 18px) rotate(11deg);
}

/* Alert emails, the newest in front. */
.pic-mail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 8%;
}

.mail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
  font-size: 13.5px;
  line-height: 1.4;
}

.mail svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #c77a0a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mail p {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.mail strong {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}

.mail time {
  align-self: flex-start;
  color: var(--slate);
  font-size: 13px;
}

/* A report, running off the bottom edge. */
.report {
  position: absolute;
  inset: 34px 8% -20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  font-size: 15px;
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.report-head strong {
  font-size: 17px;
  font-weight: 700;
}

.report-head span {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.report-row {
  display: grid;
  grid-template-columns: 1fr 70px 70px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.report-row.head {
  border: 0;
  padding-bottom: 5px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 600;
}

.report-row span:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.also {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.also h3 {
  font-size: 17px;
}

.also p {
  margin-top: 4px;
  font-size: 15.5px;
}

/* ---------- Hiring ---------- */

.band {
  padding: 84px 0;
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  margin-top: 36px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 800;
}

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

.steps p {
  margin-top: 6px;
  font-size: 15.5px;
}

.alone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: 52px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}

.alone p {
  max-width: 66ch;
  margin-top: 4px;
  font-size: 15.5px;
}

.alone .button {
  flex: none;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 56px;
  padding-block: 88px;
}

.contact-words p {
  max-width: 44ch;
  margin-top: 16px;
  font-size: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}

.contact-form label {
  color: var(--slate);
  font-size: 14px;
  font-weight: 600;
}

.optional {
  font-weight: 400;
}

.contact-form :is(input, textarea) {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

@media (prefers-color-scheme: dark) {
  .contact-form {
    background: var(--soft);
  }

  .contact-form :is(input, textarea) {
    background: var(--bg);
  }
}

.contact-form textarea {
  resize: vertical;
}

.contact-form :is(input, textarea):focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.trap {
  position: absolute;
  left: -9999px;
}

.spam-check:empty {
  display: none;
}

.form-error {
  color: var(--error);
  font-size: 14.5px;
  font-weight: 600;
}

.form-note {
  color: var(--slate);
  font-size: 14px;
}

/* Focused so it's read out, not to be used. */
#contactSent:focus {
  outline: none;
}

#contactSent p {
  color: var(--slate);
  overflow-wrap: anywhere;
}

/* ---------- Foot ---------- */

.foot {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  background: var(--soft);
  color: var(--slate);
  font-size: 14px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px 40px;
}

.foot-brand {
  margin-bottom: 10px;
}

.foot-brand a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.foot a {
  color: var(--ink);
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

.foot li + li {
  margin-top: 8px;
}

/* ---------- Narrower ---------- */

@media (max-width: 1060px) {
  .stage {
    column-gap: 36px;
  }

  .bench {
    column-gap: 28px;
  }

  .y-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .y-alert {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    min-height: 66px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .y-alert svg {
    flex: none;
  }
}

@media (max-width: 900px) {
  .demo-label .wide {
    display: none;
  }
}

@media (max-width: 820px) {
  .wrap {
    padding-inline: 20px;
  }

  .top {
    padding-inline: 20px;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 40px;
  }

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

  /* The terminal and printer above the phone, so both are in view when Print is pressed. */
  .stage {
    grid-template: none / minmax(0, 1fr);
    gap: 26px;
    margin-top: 26px;
  }

  .guest {
    grid-row: auto;
  }

  .bench {
    order: -1;
    gap: 18px;
  }

  .bench .demo-label {
    font-size: 14px;
  }

  .term {
    border-radius: 16px;
  }

  .pr-body {
    border-radius: 16px;
  }

  .paper-button {
    width: 100%;
    margin-top: 12px;
    padding: 0 8px;
  }

  .phone {
    margin-inline: auto;
  }

  .phone-screen {
    height: 464px;
  }

  .p-row {
    padding: 4px 0;
  }

  .p-head {
    padding: 20px 20px 12px;
  }

  .p-chip {
    margin-top: 8px;
  }

  .p-drop {
    margin-top: 12px;
    padding: 12px 14px;
  }

  .p-files {
    gap: 6px;
    margin-top: 12px;
    padding: 12px 16px;
  }

  .p-files button {
    padding: 7px 10px;
  }

  .p-bar {
    padding-top: 18px;
  }

  .you {
    margin-top: 0;
  }

  .features {
    padding-top: 76px;
    padding-bottom: 68px;
  }

  .feature-grid,
  .also,
  .steps,
  .contact,
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .band {
    padding: 64px 0;
  }

  .alone {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .contact {
    gap: 32px;
    padding-block: 64px;
  }

  .contact-form {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .sign-in,
  .top-link .wide {
    display: none;
  }

  h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .actions .button {
    width: 100%;
  }

  .y-jobs {
    font-size: 13px;
  }

  .y-jobs :is(th, td).num {
    display: none;
  }

  .y-jobs th:nth-child(1) {
    width: 31%;
  }

  .y-jobs th:nth-child(4) {
    width: 29%;
  }

  .term.mini {
    width: 58%;
  }

  .f1 {
    transform: translate(-104px, 18px) rotate(-11deg);
  }

  .f2 {
    transform: translate(-52px, -2px) rotate(-5deg);
  }

  .f4 {
    transform: translate(52px, -2px) rotate(5deg);
  }

  .f5 {
    transform: translate(104px, 18px) rotate(11deg);
  }

  .pic-mail {
    padding: 0 5%;
  }

  .mail time {
    display: none;
  }

  .report {
    inset-inline: 5%;
  }
}

@media (max-width: 430px) {
  .top {
    gap: 8px;
  }

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

  .top nav {
    gap: 4px;
  }

  .top-link {
    padding: 8px 6px;
    font-size: 13.5px;
  }

  .button.small {
    padding: 0 12px;
    font-size: 13.5px;
  }
}

@media (max-width: 350px) {
  .top {
    padding-inline: 12px;
  }

  .top .button {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pr-feed,
  .y-alert {
    transition: none;
  }

  :is([data-job='printing'], [data-job='paused']) :is(.pr-out .sheet, .p-progress i) {
    animation-duration: 1ms;
  }
}
