/* Arcade Workbench website. Palette and look follow the app: paper, ink, arcade yellow. */
@font-face {
  font-family: 'Pixelify Sans';
  src: url('/fonts/pixelify-sans-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f1e9d8;
  --card: #fffcf5;
  --ink: #1d1a16;
  --ink-soft: #564d42;
  --yellow: #ffc933;
  --yellow-deep: #c48f00;
  --orange: #ff6a3d;
  --line: #cdbf9f;
  --ok: #1c6b3a;
  --err: #a3231a;
  --display: 'Pixelify Sans', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow: 4px 4px 0 var(--ink);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(29, 26, 22, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--yellow); color: var(--ink); padding: 0.6rem 1rem; border: 2px solid var(--ink); border-radius: 8px; font-weight: 700; }
.skip:focus { top: 1rem; }

/* Waitlist / download switch: set data-mode on <html> in index.html (see README). */
html[data-mode='waitlist'] .only-download,
html[data-mode='download'] .only-waitlist { display: none !important; }

/* Header */
.site-header { background: var(--ink); color: var(--card); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; padding-block: 0.65rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--display); font-size: 1.3rem; margin-right: auto; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.98rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.stripe { height: 6px; background: repeating-linear-gradient(90deg, #2f6fd6 0 32px, #d8552b 32px 64px, #1f9486 64px 96px, #c13a8b 96px 128px, #5a8a1c 128px 160px, #6b4fd1 160px 192px, var(--yellow) 192px 224px); }
.site-nav .btn { white-space: nowrap; }
@media (max-width: 720px) { .nav-extra { display: none; } }
@media (max-width: 480px) {
  .brand { font-size: 1.05rem; gap: 0.45rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .brand img { width: 28px; height: 28px; flex: none; }
  .btn.small { font-size: 0.875rem; padding: 0.4rem 0.65rem; }
  .btn.small .wide { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 700 1.05rem/1.2 var(--body); color: var(--ink); background: var(--yellow);
  border: 2px solid var(--ink); border-radius: 10px; padding: 0.8rem 1.25rem; min-height: 48px;
  box-shadow: var(--shadow); text-decoration: none; cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn.small { font-size: 0.95rem; padding: 0.45rem 0.85rem; min-height: 40px; box-shadow: none; border-color: var(--yellow); }
.btn.big { font-size: 1.2rem; padding: 1rem 1.6rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.tag { display: inline-block; font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 0.25rem 0.6rem; border-radius: 6px; margin-bottom: 1rem; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 36em; }
.hl { background: linear-gradient(transparent 62%, var(--yellow) 62%); }

/* Cards and frames */
.card { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); padding: 1.25rem; }
.shot { margin: 0; background: var(--card); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.shot img { width: 100%; }

/* Waitlist form */
.cta-card { margin-top: 1.75rem; max-width: 34rem; }
.cta-card h2 { font-size: 1.45rem; margin-bottom: 0.35em; }
.form-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
label { font-weight: 700; display: block; }
input[type='email'] {
  flex: 1 1 15rem; min-width: 0; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: 10px; padding: 0.7rem 0.9rem; min-height: 48px;
}
input[type='email']::placeholder { color: #6d6458; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small-print { font-size: 0.9rem; color: var(--ink-soft); margin: 0.85rem 0 0; }
.form-msg { margin: 0.75rem 0 0; font-weight: 700; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.cf-turnstile:not(:empty) { margin-top: 0.75rem; }

/* Sections */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band { background: var(--ink); color: var(--card); }
.band .card { color: var(--ink); }
.section-intro { max-width: 44em; margin-bottom: 2rem; }
.band .section-intro p { color: #e9dfc9; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: flow; }
@media (min-width: 620px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { counter-increment: flow; }
.flow li::before { content: counter(flow); display: grid; place-items: center; width: 2rem; height: 2rem; font-family: var(--display); background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; margin-bottom: 0.7rem; }
.flow h3 { margin-bottom: 0.3em; }
.flow p { margin: 0; }

.who { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 860px) { .who { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.who ul { margin: 0; padding-left: 1.2rem; }
.who li { margin-bottom: 0.5rem; }

/* Guided steps */
.rail { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 2.5rem; }
.rail li { font-family: var(--display); font-size: 1rem; background: var(--card); border: 2px solid var(--ink); border-radius: 8px; padding: 0.3rem 0.7rem; display: flex; gap: 0.5rem; align-items: center; }
.step { display: grid; gap: 1.5rem; align-items: center; margin-bottom: 3.5rem; }
.step:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .step { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; }
  .step:nth-of-type(even) .step-text { order: 2; }
}
.step-num { font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.4rem; }
.choices { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.choices li { background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: 0.55rem 0.8rem; }
.choices strong { font-family: var(--display); font-weight: 600; margin-right: 0.35rem; }
.then { margin: 3rem 0 0; font-size: 1.15rem; background: var(--card); border: 2px dashed var(--ink); border-radius: 12px; padding: 1rem 1.25rem; }

/* Final call to action */
.final { text-align: center; }
.final img { width: 96px; height: 96px; margin: 0 auto 1.25rem; }
.final p { max-width: 34em; margin-inline: auto; }

/* Footer */
.site-footer { background: var(--ink); color: #e9dfc9; padding: 2rem 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-left: auto; }
.site-footer p { margin: 0; }

/* Text pages (privacy, remove me, thanks, 404) */
.page { padding: clamp(2rem, 6vw, 4rem) 0; }
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose li { margin-bottom: 0.4rem; }
.placeholder { background: #ffe1d6; border: 2px dashed var(--err); border-radius: 6px; padding: 0 0.35rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
