/* Brain marketing site: Early-Mac bitmap, matching the app. */
* { box-sizing: border-box; min-width: 0; }
:root {
  --desk: #EEEEE6; --paper: #FFFFFF; --ink: #111111; --ink-soft: #444440;
  --dither: #D9D9CE; --danger: #8E1B12;
  --font-display: "Charcoal", "Chicago", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --font-body: Geneva, Verdana, "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "SF Mono", Monaco, "Courier New", monospace;
}
html { color-scheme: light; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--ink); background-color: var(--desk);
  background-image: conic-gradient(var(--dither) 25%, transparent 0 50%, var(--dither) 0 75%, transparent 0);
  background-size: 4px 4px;
  padding: 20px 16px 60px;
}
/* The bitmap crunch stays on DISPLAY type only; body text renders smooth
   and readable (small jagged Geneva was the one complaint against v1). */
h1, h2, h3, .win-title span, nav.bar, .btn, .tag { -webkit-font-smoothing: none; }
.page { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.win { background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 rgba(17,17,17,0.9); }
.win-title {
  height: 28px; border-bottom: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(to bottom, var(--paper) 0 3px, var(--ink) 3px 4px);
}
.win-title span {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  background: var(--paper); padding: 2px 12px;
}
.win-body { padding: 22px; }
h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.2; margin: 0 0 10px; letter-spacing: 0.01em; }
h2 { font-family: var(--font-display); font-size: 19px; margin: 26px 0 8px; }
h2:first-child { margin-top: 0; }
p { margin: 0 0 12px; }
.lede { font-size: 18px; }
.soft { color: var(--ink-soft); font-size: 14px; }
a { color: var(--ink); }
nav.bar {
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 rgba(17,17,17,0.9);
  display: flex; align-items: center; gap: 2px; padding: 6px 10px; flex-wrap: wrap;
  font-family: var(--font-display);
}
nav.bar .brand { font-weight: 700; font-size: 16px; margin-right: 10px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
nav.bar a:not(.brand) { text-decoration: none; font-size: 13px; padding: 8px 10px; min-height: 40px; display: inline-flex; align-items: center; }
nav.bar a:not(.brand):hover, nav.bar a.on { background: var(--ink); color: var(--paper); }
.btn {
  display: inline-block; font-family: var(--font-display); font-size: 15px; text-decoration: none;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: 12px 22px; cursor: pointer; min-height: 44px;
}
.btn.quiet { background: var(--paper); color: var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.cell { border: 1px dotted var(--ink); padding: 14px; }
.cell h3 { font-family: var(--font-display); font-size: 15px; margin: 0 0 6px; }
.cell p { font-size: 14px; line-height: 1.6; margin: 0; color: var(--ink-soft); }
.steps { counter-reset: step; }
.step { border: 1px dotted var(--ink); padding: 14px 14px 14px 54px; position: relative; margin-bottom: 12px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 12px; top: 12px; width: 26px; height: 26px;
  border: 2px solid var(--ink); font-family: var(--font-display); font-weight: 700;
  display: flex; align-items: center; justify-content: center; background: var(--paper);
}
.step h3 { font-family: var(--font-display); font-size: 15px; margin: 0 0 4px; }
.step p { font-size: 14px; margin: 0; color: var(--ink-soft); }
pre.retro {
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  padding: 14px; font-family: var(--font-mono); font-size: 13px; overflow-x: auto; line-height: 1.5;
}
.diagram { display: block; margin: 10px auto; max-width: 100%; height: auto; image-rendering: pixelated; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.badge { border: 2px solid var(--ink); padding: 4px 10px; font-family: var(--font-display); font-size: 12px; background: var(--paper); box-shadow: 2px 2px 0 var(--ink); }
ul { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 6px; }
label { display: block; font-family: var(--font-display); font-size: 13px; margin: 14px 0 4px; }
input, textarea, select {
  width: 100%; font-family: var(--font-body); font-size: 16px;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink); padding: 10px;
}
input:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px dotted var(--ink); outline-offset: 2px; }
.tag { display: inline-block; border: 1px solid var(--ink); font-size: 11px; padding: 1px 7px; margin-left: 6px; vertical-align: middle; }
footer { text-align: center; font-size: 12px; color: var(--ink-soft); }

/* ---- app mockups: crisp HTML "screenshots" of the product ---- */
.appshot { border: 2px solid var(--ink); box-shadow: 4px 4px 0 rgba(17,17,17,0.9); background: var(--paper); margin: 14px 0; overflow: hidden; }
.appshot .as-title { height: 26px; border-bottom: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(to bottom, var(--paper) 0 3px, var(--ink) 3px 4px); }
.appshot .as-title span { font-family: var(--font-display); font-weight: 700; font-size: 12px; background: var(--paper); padding: 1px 10px; -webkit-font-smoothing: none; }
.appshot .as-meta { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px dotted var(--ink); font-size: 12px; color: var(--ink-soft); flex-wrap: wrap; }
.appshot .as-dot { width: 9px; height: 9px; border: 2px solid var(--ink); background: #1E5C31; display: inline-block; }
.appshot .as-chip { width: 12px; height: 12px; border: 2px solid var(--ink); display: inline-block; vertical-align: middle; }
.appshot .as-ants { outline: 2px dashed #1D3F7A; outline-offset: 2px; }
.appshot .as-body { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; padding: 12px 14px; overflow-x: auto; white-space: pre; color: var(--ink); }
.appshot .as-body b { font-weight: 700; }
.appshot .as-body .lnk { border-bottom: 1px solid var(--ink); }
.appshot .as-back { border-top: 2px solid var(--ink); padding: 8px 14px; font-size: 12px; }
.appshot .as-back h4 { font-family: var(--font-display); font-size: 11px; margin: 0 0 4px; color: var(--ink-soft); -webkit-font-smoothing: none; }
.appshot .as-back div { padding: 2px 0; color: var(--ink-soft); }
.appshot .as-back b { color: var(--ink); }

.plexshot { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 12px; padding: 16px; align-items: start; }
.plexshot h5 { font-family: var(--font-display); font-size: 11px; margin: 0 0 6px; color: var(--ink-soft); -webkit-font-smoothing: none; }
.plexshot .pn { display: flex; align-items: center; gap: 6px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); padding: 8px 10px; margin-bottom: 8px; font-size: 12px; background: var(--paper); position: relative; }
.plexshot .pn.fog { color: var(--ink-soft); background-image: conic-gradient(#D9D9CE 25%, transparent 0 50%, #D9D9CE 0 75%, transparent 0); background-size: 4px 4px; }
.plexshot .pc { border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 14px 10px; text-align: center; background: var(--paper); }
.plexshot .pc .t { font-family: var(--font-display); font-weight: 700; font-size: 15px; -webkit-font-smoothing: none; }
.plexshot .pc .p { font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 640px) { .plexshot { grid-template-columns: 1fr; } .appshot .as-body { white-space: pre-wrap; } }
.mark { image-rendering: pixelated; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
