/* The landing page (slopbox.cloud). The packing floor: your mess goes in
   one end of a little machine and comes out as identical sealed boxes,
   stacked on a pallet. Colours come straight from the logo: its ink, its
   kraft, its slime. Fonts are self-hosted, so a visit tells nobody else. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/instrument-sans.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/fonts/public-sans.woff2) format("woff2"); }

:root {
  --ink: #1d2129;
  --ink-2: #4a505c;
  --kraft: #c68b4e;
  --kraft-hi: #e3ae6a;
  --kraft-lo: #a87437;
  --slime: #6cd46e;
  --slime-deep: #2c7a3d;
  --floor: #e6e9e3;
  --paper: #fbfbf8;
  --line: #d6d9d2;
  --display: "Instrument Sans", system-ui, sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
/* `hidden` must win over any display a class sets (.btn is inline-flex). */
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.6 var(--body); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--slime-deep); outline-offset: 3px; border-radius: 4px; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1160px; margin: 0 auto; padding: 1.1rem 1.5rem; }
.wordmark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font: 700 1.35rem/1 var(--display); letter-spacing: -0.015em; }
.bar nav { display: flex; gap: 1.6rem; align-items: center; font-weight: 500; }
.bar nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.bar nav a:not(.btn):hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 0.55rem; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--body); padding: 0.85rem 1.3rem; border-radius: 999px; text-decoration: none; }
.btn.go { background: var(--slime); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.btn.go:hover { background: #7fe081; }
.btn.small { padding: 0.6rem 1rem; font-size: 0.95rem; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: rgba(29,33,41,.06); }
.btn svg { width: 1.05em; height: 1.05em; }

/* Hero: headline left, the promise and the button right, the floor underneath. */
.hero { background: var(--floor); border-radius: 28px; max-width: 1160px; margin: 0 auto;
  padding: 3.2rem 3rem 0; overflow: hidden; }
.hero .words { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1rem 3rem; align-items: end; }
.hero h1 { font: 700 clamp(2.4rem, 5.4vw, 4.4rem)/1.02 var(--display); letter-spacing: -0.025em;
  margin: 0; max-width: 15ch; text-wrap: balance; }
.hero .subhead { font: 600 clamp(1.3rem, 2.4vw, 1.9rem)/1.2 var(--display); letter-spacing: -0.01em;
  color: var(--ink-2); margin: 0.7rem 0 0; max-width: 24ch; text-wrap: balance; }
.hero .lede { max-width: 34ch; color: var(--ink-2); font-size: 1.15rem; margin: 0 0 1.4rem; }
.hero .cta { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.hero .alt { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--ink-2); }

/* The floor. machine.js lays the scene out and scales it to fit. */
.stage-wrap { position: relative; width: 100%; margin-top: -1.5rem; pointer-events: none; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.stage > * { position: absolute; }
.stage .plate { pointer-events: auto; }

.file { width: 46px; height: 58px; background: #fff; border-radius: 5px 12px 5px 5px;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 14px -6px rgba(29,33,41,.35); overflow: hidden; }
.file::before { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 4px;
  border-radius: 2px; background: var(--c); }
.file::after { content: ""; position: absolute; left: 6px; right: 14px; top: 20px; height: 22px;
  background: repeating-linear-gradient(#d9dce1 0 3px, transparent 3px 7px); }
.file span { position: absolute; left: 4px; right: 4px; bottom: 3px; font: 600 6.5px/1 var(--body);
  color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.belt { top: 262px; height: 18px; border-radius: 9px; background:
  repeating-linear-gradient(90deg, #3a404c 0 14px, #2a2f38 14px 28px); animation: belt 0.9s linear infinite; }
@keyframes belt { to { background-position: 28px 0; } }
.legs { top: 280px; height: 50px;
  background: linear-gradient(90deg, var(--ink-2) 0 8px, transparent 8px) 0 0 / 105px 100% repeat-x; }

.machine { top: 120px; width: 210px; height: 150px; z-index: 5; }
.machine .body { position: absolute; inset: 22px 0 0; background: var(--ink); border-radius: 22px 22px 8px 8px; }
.machine .chute { position: absolute; bottom: 0; width: 34px; height: 54px; background: #12151b; }
.machine .chute.in { left: 0; border-radius: 0 10px 0 0; }
.machine .chute.out { right: 0; border-radius: 10px 0 0 0; }
.machine .port { position: absolute; left: 72px; top: 44px; width: 66px; height: 66px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #a6f0a7, var(--slime) 45%, #3f9f4f);
  border: 6px solid #343a46; overflow: hidden; }
.machine .port::after { content: ""; position: absolute; inset: 10px; border-radius: 50%;
  border: 3px dashed rgba(29,33,41,.35); animation: churn 2.8s linear infinite; }
@keyframes churn { to { transform: rotate(360deg); } }
.machine .lamp { position: absolute; left: 154px; top: 38px; width: 12px; height: 12px; border-radius: 50%;
  background: #3a404c; transition: background .15s; }
.machine.busy .lamp { background: var(--slime); box-shadow: 0 0 12px var(--slime); }
.machine .stack { position: absolute; left: 30px; top: 0; width: 26px; height: 30px; background: #343a46;
  border-radius: 6px 6px 0 0; }
.machine .plate { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
  font: 600 10px/1 var(--display); color: #8a909b; letter-spacing: 0.02em; }
.machine.busy { animation: thrum .22s ease-in-out 3; }
@keyframes thrum { 50% { transform: translateY(-2px) rotate(-0.4deg); } }

.box { width: 40px; height: 34px; background: var(--kraft); border-radius: 3px;
  box-shadow: inset 0 -5px 0 var(--kraft-lo), inset 0 3px 0 var(--kraft-hi); }
.box::before { content: ""; position: absolute; left: 16px; width: 8px; top: 0; height: 13px; background: #d9b07c; }
.box::after { content: ""; position: absolute; right: 5px; bottom: 9px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--slime); box-shadow: 0 0 0 1.5px var(--slime-deep); }

.pallet { top: 262px; height: 22px; }
.pallet .slats { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: #8d8572; border-radius: 1px; }
.pallet .feet { position: absolute; left: 0; right: 0; top: 6px; height: 14px;
  background: linear-gradient(90deg, #6f6857 0 18px, transparent 18px) 0 0 / 86px 100% repeat-x; }

/* How it works — a real sequence, so it gets numbers. */
.start { max-width: 1160px; margin: 0 auto; padding: 5rem 1.5rem 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.start h2, .pricing h2 { font: 700 2.2rem/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 1.5rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.2rem 1rem; }
.steps li::before { content: counter(s); grid-row: span 2; width: 2.6rem; height: 2.6rem; border-radius: 10px;
  display: grid; place-items: center; background: var(--kraft); color: #fff;
  font: 700 1.2rem/1 var(--display); box-shadow: inset 0 -4px 0 var(--kraft-lo); }
.steps b { font: 650 1.15rem/1.3 var(--display); letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--ink-2); }

/* Three little scenes beside the steps, one per step: the app into
   Applications, a file into Slopbox, a file sealed into a folder. */
.scenes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: sc; }
.scene { counter-increment: sc; position: relative; display: flex; align-items: center; justify-content: center;
  gap: 1.4rem; background: var(--floor); border-radius: 18px; padding: 1.6rem 1.4rem 1.6rem 3.4rem; min-height: 124px; }
.scene::before { content: counter(sc); position: absolute; left: 1rem; top: 1rem; width: 1.6rem; height: 1.6rem;
  border-radius: 7px; display: grid; place-items: center; background: var(--kraft); color: #fff;
  font: 700 0.85rem/1 var(--display); box-shadow: inset 0 -3px 0 var(--kraft-lo); }
.scene .appicon { width: 64px; height: 64px; flex: none; }
.scene .arrow { position: relative; flex: 0 1 72px; height: 3px; border-radius: 2px; background: var(--ink-2); }
.scene .arrow::after { content: ""; position: absolute; right: -2px; top: -6px; border: 7.5px solid transparent;
  border-left: 10px solid var(--ink-2); border-right: 0; }
.scene .lock { position: absolute; left: 50%; top: -30px; width: 22px; height: 18px; margin-left: -11px;
  border-radius: 4px; background: var(--slime); box-shadow: inset 0 -2px 0 var(--slime-deep); }
.scene .lock::before { content: ""; position: absolute; left: 4px; top: -9px; width: 14px; height: 13px;
  border: 3px solid var(--slime-deep); border-bottom: 0; border-radius: 8px 8px 0 0; box-sizing: border-box; }
.scene .folder { position: relative; flex: none; width: 76px; height: 56px; border-radius: 4px 8px 8px 8px; }
.scene .folder::before { content: ""; position: absolute; left: 0; top: -9px; width: 30px; height: 12px;
  border-radius: 5px 5px 0 0; background: inherit; filter: brightness(.94); }
.scene .folder.blue { background: #8fb8e8; }
.scene .folder.kraft { background: var(--kraft); box-shadow: inset 0 -5px 0 var(--kraft-lo); }
.scene .tag { position: absolute; left: 50%; bottom: -1.5rem; transform: translateX(-50%); white-space: nowrap;
  font: 600 0.78rem/1 var(--body); color: var(--ink-2); }
.scene .paper { position: relative; flex: none; width: 46px; height: 58px; background: #fff; border-radius: 5px 12px 5px 5px;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 14px -6px rgba(29,33,41,.35); }
.scene .paper::before { content: ""; position: absolute; left: 7px; right: 7px; top: 10px; height: 4px; border-radius: 2px; background: #5b8def; }
.scene .paper::after { content: ""; position: absolute; left: 7px; right: 14px; top: 20px; height: 24px;
  background: repeating-linear-gradient(#d9dce1 0 3px, transparent 3px 7px); }
.scene .note { position: absolute; right: 1rem; bottom: 0.7rem; display: inline-flex; align-items: center; gap: 0.35rem;
  background: #fff; border-radius: 999px; padding: 0.3rem 0.7rem; font: 600 0.78rem/1 var(--body); color: var(--slime-deep);
  box-shadow: 0 0 0 1px var(--line); }
.scene .note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--slime); }

/* Pricing: two shipping labels. */
.pricing { max-width: 1160px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.labels { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.label { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 2.2rem 1.8rem 1.8rem; }
.label::before { content: ""; position: absolute; left: 50%; top: -10px; width: 90px; height: 20px; margin-left: -45px;
  background: var(--kraft-hi); opacity: .85; border-radius: 2px; transform: rotate(-2deg); }
.label h3 { font: 650 1.15rem/1.3 var(--display); margin: 0; color: var(--ink-2); }
.label .amount { font: 700 2.6rem/1.1 var(--display); letter-spacing: -0.02em; margin: 0.3rem 0 0.7rem; color: var(--ink); }
.label p { margin: 0; color: var(--ink-2); }
.label .rate { margin: -0.3rem 0 0.7rem; font: 600 1.05rem/1.3 var(--display); color: var(--ink); }
.pricing-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pricing-head h2 { margin: 0; }
.region { display: flex; align-items: center; gap: 0.6rem; color: var(--ink-2); font-size: 0.95rem; }
.region select { font: 500 0.95rem/1.2 var(--body); color: var(--ink); background: #fff; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 0.45rem 0.7rem; }
.pricing .fine { margin: 1.4rem 0 0; color: var(--ink-2); font-size: 0.95rem; max-width: 60ch; }

.foot { max-width: 1160px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; border-top: 2px dashed var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; align-items: center; }
.foot .wordmark { font-size: 1.1rem; }
.foot nav { display: flex; gap: 1.5rem; justify-content: flex-end; flex-wrap: wrap; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: 0.92rem; max-width: 60ch; }

@media (max-width: 820px) {
  .hero { border-radius: 0; padding: 2.2rem 1.25rem 0; }
  .hero .words, .start, .labels { grid-template-columns: 1fr; }
  .start { gap: 2.5rem; }
  .bar nav a:not(.btn) { display: none; }
  .foot { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .belt, .machine .port::after, .machine.busy { animation: none; }
}
