/* messydesk.app: one stylesheet for both pages. The colours are the logo's: its dark plate, and the
   three cords (yellow, orange, electric blue). The type is the house font the plugins use. */

:root {
  --bg: #16161c;
  --plate: #1f1f27;
  --edge: #2c2c36;
  --text: #e6e6ec;
  --muted: #9a9aa8;
  --blue: #2979ff;
  --orange: #ffa726;
  --yellow: #ffd54f;
  --pink: #ec4f9c;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  padding: 0 16px;
  color: var(--text);
  background: var(--bg);
  font-family: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

main, footer {
  max-width: 640px;
  margin: 0 auto;
}

a { color: var(--blue); }
a:hover { color: #5c9bff; }

/* The front page: the cat, the name, a sentence, then the desk itself and four plates. It is wider
   than the other pages so the screenshot can breathe. */
body.front main { max-width: 1040px; }
.hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 56px 0 8px;
}
.hero img {
  flex: none;
  width: 88px;
  height: 88px;
}
.hero h1 {
  margin: 0 0 2px;
  line-height: 1.1;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.tagline {
  margin: 0;
  font-size: 21px;
  color: var(--text);
}
.status {
  margin: 36px auto 0;
  max-width: 30em;
  padding: 16px 20px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--plate);
  color: var(--muted);
}
.status strong { color: var(--text); font-weight: 600; }

/* The testers page: a short header, then numbered steps. */
.page-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 40px 0 8px;
}
.page-head img { width: 48px; height: 48px; }
.page-head a { color: var(--text); text-decoration: none; font-weight: 800; font-size: 22px; }
h1.page-title { margin: 16px 0 4px; font-size: 34px; font-weight: 800; }
.lead { margin: 0 0 32px; color: var(--muted); }

section.step {
  margin: 0 0 18px;
  padding: 20px 22px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--plate);
}
section.step h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 22px;
}
section.step h2 .n {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--bg);
  background: var(--yellow);
  transform: translateY(-2px);
}
section.step p { margin: 8px 0; }
section.step ol, section.step ul { margin: 8px 0; padding-left: 1.3em; }
.muted { color: var(--muted); }
.menu { font-weight: 600; white-space: nowrap; }
code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--edge);
}

.button {
  display: inline-block;
  margin: 6px 0 4px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #4a8dff; color: #fff; }
.button[aria-disabled="true"] {
  background: var(--edge);
  color: var(--muted);
  pointer-events: none;
}
button.button { border: none; font: inherit; font-weight: 700; cursor: pointer; }

/* The signup page's form: a plate like a step, a label over each field. */
form.signup {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--plate);
}
form.signup label { margin: 14px 0 6px; font-weight: 600; }
form.signup label:first-child { margin-top: 0; }
form.signup input, form.signup textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
form.signup input:focus, form.signup textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; }
form.signup textarea { resize: vertical; }
form.signup .hint { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
form.signup .cf-turnstile { margin: 18px 0 4px; }
form.signup .button { align-self: flex-start; }

/* Both pages: who made it, and the engine's badge, which the Tracktion Engine Personal licence asks
   for (clause 1.8). */
footer {
  margin-top: 48px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--edge);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}
footer .badge { display: inline-block; margin-bottom: 14px; }
footer .badge img { height: 36px; width: auto; display: block; }
footer p { margin: 4px 0; }

@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero { padding-top: 36px; gap: 14px; }
  .hero img { width: 64px; height: 64px; }
  .hero h1 { font-size: 32px; }
  .tagline { font-size: 19px; }
  section.step, form.signup { padding: 16px 16px; }
}

/* The front page's other parts: the window
   framed like a plate, the two feature plates and the closing call. */
.shot {
  margin: 36px 0 0;
  padding: 10px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: var(--plate);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  gap: 18px;
  margin: 56px 0 0;
}
.feature {
  padding: 22px 24px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--plate);
}
.feature h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}
.feature p { margin: 0; color: var(--muted); }
.dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.yellow { background: var(--yellow); }
.dot.orange { background: var(--orange); }
.dot.blue { background: var(--blue); }
.dot.pink { background: var(--pink); }

.closing {
  margin: 64px auto 0;
  max-width: 34em;
  text-align: center;
}
.closing h2 { margin: 0 0 8px; font-size: 30px; font-weight: 800; }
.closing p { margin: 8px 0; color: var(--muted); }
.closing .button { margin-top: 10px; padding: 14px 28px; font-size: 18px; }

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; grid-auto-flow: row; }
  .shot { padding: 6px; border-radius: 12px; }
  .shot img { border-radius: 6px; }
}
