/* ── The Reality Machine — site stylesheet ─────────────────────────────────────────
   Design brief (Daniel): the game's 8-bit identity, executed with professional
   restraint. Pixel type for display/nav only; body copy in a modern readable sans;
   generous spacing, disciplined palette, crisp pixel borders. Retro on purpose,
   never homebrew. */

:root {
  --void: #07070e;
  --panel: #0e0e1a;
  --panel-2: #121222;
  --border: #2a2a44;
  --text: #d8d8e8;
  --text-dim: #8a8aa8;
  --cyan: #57e6d8;
  --cyan-dim: #2a7a72;
  --gold: #f0c24e;
  --gold-dim: #8a7030;
  --green: #00ff7f;   /* the app's bright monochrome-display green */
  --term: #33FF33;    /* terminal-green highlight — About-page callouts ONLY (Daniel's 8-26 scope) */
  --red: #e05a5a;
  --purple: #b48ae0;
  --px: 'Press Start 2P', monospace;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Subtle scanlines on hero surfaces only — texture, not costume. */
.scan { position: relative; }
.scan::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 3px, rgba(0,0,0,0.14) 3px 4px);
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
header.site {
  border-bottom: 2px solid var(--border);
  background: rgba(7,7,14,0.92); backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font-family: var(--px); font-size: 11px; color: var(--green); text-decoration: none; letter-spacing: 1px; white-space: nowrap; }
.brand:hover { color: var(--cyan); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { font-family: var(--px); font-size: 8px; color: var(--text-dim); text-decoration: none; letter-spacing: 1px; padding: 6px 2px; }
.nav-links a:hover { color: var(--cyan); }
.nav-links a.active { color: var(--gold); }
.nav-links a.cta { color: var(--void); background: var(--green); padding: 8px 14px; border: 2px solid var(--green); }
.nav-links a.cta:hover { background: var(--cyan); border-color: var(--cyan); color: var(--void); }

/* ── Pixel primitives ── */
.pxbox { background: var(--panel); border: 2px solid var(--border); box-shadow: 4px 4px 0 rgba(0,0,0,0.5); }
.pxbtn {
  display: inline-block; font-family: var(--px); font-size: 10px; letter-spacing: 1px;
  padding: 14px 26px; text-decoration: none; cursor: pointer;
  color: var(--void); background: var(--green); border: 2px solid var(--green);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.6);
}
.pxbtn:hover { background: var(--cyan); border-color: var(--cyan); transform: translate(-1px,-1px); box-shadow: 5px 5px 0 rgba(0,0,0,0.6); }
.pxbtn.secondary { background: transparent; color: var(--cyan); border-color: var(--cyan-dim); }
.pxbtn.secondary:hover { border-color: var(--cyan); background: rgba(87,230,216,0.08); }
/* Pre-launch: an inert "coming soon" button — visibly present, obviously not live. */
.pxbtn.disabled { background: var(--panel-2, #121222); color: var(--text-dim); border-color: var(--border);
  cursor: default; pointer-events: none; box-shadow: 4px 4px 0 rgba(0,0,0,0.35); }

h1, h2, h3 { font-family: var(--px); line-height: 1.6; }
h1 { font-size: clamp(18px, 3.2vw, 30px); color: var(--text); }
h2 { font-size: 15px; color: var(--gold); margin-bottom: 18px; letter-spacing: 1px; }
h3 { font-size: 10px; color: var(--cyan); margin-bottom: 10px; letter-spacing: 1px; }
p  { margin-bottom: 14px; }
.dim { color: var(--text-dim); }
.accent { color: var(--cyan); }
.term { color: var(--term); }
.gold { color: var(--gold); }
a { color: var(--cyan); }

section { padding: 72px 0; }
section.alt { background: var(--panel); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); }

/* ── Hero ── */
.hero { padding: 88px 0 72px; text-align: center; }
.hero .kicker { font-family: var(--px); font-size: 9px; color: var(--green); letter-spacing: 2px; margin-bottom: 20px; }
.hero h1 { margin-bottom: 22px; }
.hero .sub { max-width: 640px; margin: 0 auto 34px; color: var(--text-dim); font-size: 18px; }
.hero .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Placeholder art slots (Daniel supplies final art) ── */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(45deg, var(--panel) 0 12px, var(--panel-2) 12px 24px);
  border: 2px dashed var(--border); color: var(--text-dim);
  font-family: var(--px); font-size: 8px; line-height: 2; padding: 12px;
}

/* ── Pillars ── */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pillar { padding: 26px 22px; }
.pillar .num { font-family: var(--px); font-size: 20px; color: var(--gold); display: block; margin-bottom: 14px; }
.pillar h3 { min-height: 42px; }
.pillar p { font-size: 15px; color: var(--text-dim); margin: 0; }

/* ── Screens gallery ── */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.shot img { width: 100%; display: block; border: 2px solid var(--border); image-rendering: auto; }
.shot figcaption { font-family: var(--px); font-size: 7px; color: var(--text-dim); padding: 10px 2px; letter-spacing: 1px; line-height: 1.9; }

/* At-the-table set: fixed 3-across (5 rows), clickable into the lightbox. */
.shots15 { grid-template-columns: repeat(3, 1fr); }
.shots15 .shot { cursor: pointer; margin: 0; }
.shots15 .shot img { transition: border-color .15s; }
.shots15 .shot:hover img { border-color: var(--gold); }
@media (max-width: 900px) { .shots15 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shots15 { grid-template-columns: 1fr; } }

/* ── Lightbox ── */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.92); padding: 30px 64px; }
.lightbox.open { display: flex; }
.lightbox figure { max-width: min(1280px, 100%); max-height: 100%; margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); display: block; margin: 0 auto;
  border: 2px solid var(--border); }
.lightbox figcaption { font-family: var(--px); font-size: 8px; color: var(--text); padding: 14px 2px 4px;
  letter-spacing: 1px; line-height: 1.9; }
.lb-count { font-family: var(--px); font-size: 7px; color: var(--text-dim); letter-spacing: 1px; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 101;
  font-size: 44px; line-height: 1; padding: 14px 16px; cursor: pointer;
  background: transparent; color: var(--text-dim); border: 2px solid var(--border); }
.lb-arrow:hover { color: var(--gold); border-color: var(--gold); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-close { position: absolute; top: 14px; right: 14px; z-index: 101; font-size: 20px; padding: 10px 14px;
  cursor: pointer; background: transparent; color: var(--text-dim); border: 2px solid var(--border); }
.lb-close:hover { color: var(--gold); border-color: var(--gold); }
@media (max-width: 700px) { .lightbox { padding: 16px 8px; } .lb-arrow { padding: 8px 10px; font-size: 30px; } }

/* ── Feature grids / lists ── */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.fcard { padding: 24px 22px; }
.fcard ul { list-style: none; margin-top: 6px; }
.fcard li { padding: 5px 0 5px 20px; position: relative; font-size: 15px; color: var(--text); }
.fcard li::before { content: '▸'; position: absolute; left: 0; color: var(--green); }
.fcard li .dim { font-size: 13.5px; }

/* Avatar strip */
.avatars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.avatars img { width: 100%; display: block; border: 2px solid var(--border); }

/* ── FAQ ── */
details.faq { border: 2px solid var(--border); background: var(--panel); margin-bottom: 12px; }
details.faq summary {
  cursor: pointer; padding: 16px 20px; font-family: var(--px); font-size: 9px;
  color: var(--cyan); letter-spacing: 1px; line-height: 1.9; list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: '+ '; color: var(--gold); }
details.faq[open] summary::before { content: '− '; }
details.faq .a { padding: 0 20px 18px; color: var(--text-dim); font-size: 15.5px; }
details.faq .a p { margin-bottom: 10px; }

/* ── Comparison / honesty table ── */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { border: 2px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top; }
.compare th { font-family: var(--px); font-size: 8px; color: var(--gold); letter-spacing: 1px; line-height: 1.9; background: var(--panel); }
.compare td:first-child { color: var(--text-dim); }
.compare .yes { color: var(--green); }
.compare .no { color: var(--red); }

/* ── Notes / callouts ── */
.note { border-left: 4px solid var(--gold); background: var(--panel); padding: 16px 20px; margin: 20px 0; font-size: 15px; color: var(--text-dim); }
.note b { color: var(--gold); }
.note.green { border-color: var(--green); } .note.green b { color: var(--green); }
.note.red { border-color: var(--red); } .note.red b { color: var(--red); }

/* Steps (download page) */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--px); font-size: 14px; color: var(--gold); flex-shrink: 0;
  width: 44px; height: 44px; border: 2px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ── Footer ── */
footer.site { border-top: 2px solid var(--border); padding: 44px 0 60px; font-size: 13px; color: var(--text-dim); }
footer.site .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
footer.site .brand { display: block; margin-bottom: 12px; }
footer.site a { color: var(--text-dim); } footer.site a:hover { color: var(--cyan); }
footer.site .legal { margin-top: 26px; font-size: 12px; line-height: 1.8; color: #5a5a74; }

@media (max-width: 720px) {
  .nav { height: auto; flex-wrap: wrap; padding: 12px 0; }
  .nav-links { margin-left: 0; flex-wrap: wrap; gap: 14px; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
}
