/*
 * PROMPT-254 — the spacebox.as early-access page. Mobile first; the system's own fonts (no web font is loaded); light and
 * dark from the visitor's setting. Served by server/spacebox/site.js under the console's CSP (style-src 'self').
 */
:root {
  --bg: #ffffff;
  --ink: #0b0b0c;
  --ink-dim: #4a4d52;
  --ink-faint: #74787e;
  --line: #e3e4e6;
  --panel: #f5f5f6;
  --accent: #0b0b0c;
  --accent-ink: #ffffff;
  --ok: #1f7a4d;
  --ok-soft: #e8f4ee;
  --warn: #8a5a00;
  --warn-soft: #fbf3e2;
  --fault: #b3261e;
  --fault-soft: #fcebea;
  --focus: #3b6fd8;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --ink: #f4f4f5;
    --ink-dim: #b9bcc1;
    --ink-faint: #8b8f95;
    --line: #26272a;
    --panel: #141416;
    --accent: #f4f4f5;
    --accent-ink: #0a0a0b;
    --ok: #6fcf9b;
    --ok-soft: #10251a;
    --warn: #e7b65c;
    --warn-soft: #2a200d;
    --fault: #f08a80;
    --fault-soft: #2c1412;
    --focus: #8fb2ff;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.top, main, .foot { width: 100%; max-width: 960px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 8px;
}
.brand { display: block; line-height: 0; }
.brand img { display: block; width: 160px; height: auto; }
.top-cta {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

section { padding: 40px 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: 36px; font-weight: 800; }
h2 { font-size: 26px; font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
p { margin: 0 0 14px; }

.hero { padding-top: 36px; padding-bottom: 44px; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.lede { font-size: 19px; color: var(--ink-dim); max-width: 38em; }

.button, button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  text-decoration: none;
  cursor: pointer;
}
button.secondary { color: var(--ink); background: transparent; border: 1.5px solid var(--ink); padding: 11px 22px; }

.points { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; gap: 18px; }
.points li {
  counter-increment: p;
  position: relative;
  padding-left: 46px;
  color: var(--ink-dim);
}
.points li::before {
  content: counter(p);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  line-height: 27px;
  text-align: center;
}
.points strong { display: block; color: var(--ink); font-size: 18px; }

.cards { display: grid; gap: 14px; margin-bottom: 18px; }
.card { background: var(--panel); border-radius: var(--radius); padding: 20px; }
.card p { color: var(--ink-dim); margin: 0; }
.who-note { color: var(--ink-dim); }

.proof p { display: grid; gap: 4px; margin: 0; }
.proof-figure { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.proof-text { font-size: 18px; color: var(--ink-dim); max-width: 34em; }

.signup { display: grid; gap: 18px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field label, legend { font-weight: 650; }
.hint { font-weight: 400; color: var(--ink-faint); font-size: 14px; }
input[type="email"], input[type="text"] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
}
input[type="email"]:focus, input[type="text"]:focus { border-color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
legend { padding: 0; margin-bottom: 8px; }
.choices { display: grid; gap: 8px; }
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  min-height: 48px;
  cursor: pointer;
}
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); }
.error { color: var(--fault); font-size: 15px; margin: 0; }
.field-bad input[type="email"], .field-bad input[type="text"], .field-bad .choice { border-color: var(--fault); }

/* the honeypot: never seen, never focused by a person */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; max-width: 520px; }
.notice h3 { margin-bottom: 6px; }
.notice p:last-child { margin-bottom: 0; }
.notice-ok { background: var(--ok-soft); }
.notice-ok h3 { color: var(--ok); }
.notice-wait { background: var(--warn-soft); }
.notice-wait h3 { color: var(--warn); }
.notice-bad { background: var(--fault-soft); }
.notice-bad h3 { color: var(--fault); }

.plain { margin: 0 0 22px; display: grid; gap: 4px; }
.plain dt { font-weight: 700; margin-top: 10px; }
.plain dd { margin: 0; color: var(--ink-dim); }
.removal { display: grid; gap: 10px; max-width: 520px; }
.removal-title { font-weight: 700; margin: 0; }

.foot { padding-top: 24px; padding-bottom: 40px; color: var(--ink-faint); font-size: 14px; }

@media (min-width: 720px) {
  body { font-size: 18px; }
  .brand img { width: 200px; }
  section { padding: 56px 0; }
  .hero { padding-top: 64px; padding-bottom: 72px; }
  h1 { font-size: 56px; max-width: 15em; }
  h2 { font-size: 32px; }
  .lede { font-size: 21px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .points { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .points li { padding-left: 0; padding-top: 44px; }
  .proof-figure { font-size: 64px; }
  .choices { grid-template-columns: repeat(3, 1fr); }
}
