/* ------------------------------------------------------------------ *
 *  SocratesOne shared shell
 *
 *  The common theme behind index.html, investors.html, and privacy.html:
 *  colour tokens, the framed panel, titlebar, footer, long-form
 *  typography, and the form controls all three pages share.
 *
 *  Page-specific rules stay inline in the page that needs them — the
 *  homepage Q&A engine, the investor status table, and so on. Anything
 *  that must look identical across the three pages belongs here.
 * ------------------------------------------------------------------ */

:root {
  --bg: #07090d;
  --panel: rgba(13, 17, 24, 0.92);
  --edge: rgba(127, 212, 193, 0.22);
  --ink: #e8eef7;
  --dim: #8b96a8;
  --faint: #5a6475;
  --accent: #7fd4c1;
  --accent-soft: rgba(127, 212, 193, 0.12);
  --warn: #e8b483;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* demoscene plasma sits between the solid bg and the content;
   the radial glow rides above it so the top of the page still lifts */
#plasma {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; image-rendering: pixelated;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1100px 500px at 50% -10%, rgba(127, 212, 193, 0.06), transparent 70%);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #06231c; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---- framed panel + titlebar ---- */
.frame {
  width: min(780px, calc(100vw - 24px));
  margin: 24px 0 12px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  min-height: min(680px, calc(100vh - 120px));
}
.titlebar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--edge);
  font-size: 13px;
  flex-wrap: wrap;
}
.titlebar .brand { color: var(--dim); }
.titlebar .brand b { color: var(--ink); font-weight: 600; }
.titlebar .controls { display: flex; gap: 14px; align-items: center; }
.titlebar a, .titlebar button.linklike {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--accent); text-decoration: none;
}
.titlebar a:hover, .titlebar button.linklike:hover { text-decoration: underline; }

main { padding: 22px 22px 26px; flex: 1; }

/* ---- long-form typography (investors, privacy) ---- */
h1 { color: var(--accent); font-size: 19px; font-weight: 600; margin: 0 0 8px; }
h1::before { content: "? "; }
h2 { color: var(--accent); font-size: 16px; font-weight: 600; margin: 30px 0 10px; }
h2::before { content: "> "; color: var(--faint); }
h3 { color: var(--accent); font-size: 14px; font-weight: 600; margin: 20px 0 6px; }
p { max-width: 66ch; margin: 0 0 14px; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--accent); }
code { color: var(--dim); }

ul { max-width: 66ch; margin: 0 0 14px; padding: 0; list-style: none; }
li { position: relative; margin: 0 0 5px; padding-left: 18px; }
li::before { content: "·"; position: absolute; left: 5px; color: var(--accent); }

.lede {
  color: var(--ink); font-size: 17px; font-weight: 600;
  margin: 0 0 18px; max-width: 62ch;
}
.back { display: inline-block; margin-top: 12px; color: var(--dim); text-decoration: none; }
.back:hover { color: var(--ink); text-decoration: underline; }
.back::before { content: "> "; color: var(--accent); }

/* ---- shared form controls ---- */
.field-row { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; max-width: 46ch; }
.field-row label { color: var(--dim); font-size: 13px; }
.field-row input[type="text"], .field-row input[type="email"], .field-row textarea {
  width: 100%; background: rgba(0, 0, 0, 0.45); color: var(--ink);
  border: 1px solid var(--edge); border-radius: 6px; padding: 9px 10px; font: inherit;
}
.field-row textarea { min-height: 96px; resize: vertical; }
.field-row input:focus, .field-row textarea:focus { outline: none; border-color: var(--accent); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; max-width: 62ch; margin-top: 6px; }
.consent-row input { margin-top: 4px; accent-color: var(--accent); }
.consent-row label { color: var(--ink); font-size: 14px; }
.btn-primary {
  background: var(--accent); color: #06231c; border: none; border-radius: 6px;
  padding: 9px 18px; font: inherit; font-weight: 700; cursor: pointer; align-self: flex-start;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }
.form-note { color: var(--warn); font-size: 13px; min-height: 1.2em; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- footer ---- */
footer {
  width: min(780px, calc(100vw - 24px));
  display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center;
  padding: 8px 0 26px; font-size: 12px; color: var(--faint);
}
footer a, footer button.linklike {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--faint); text-decoration: none;
}
footer a:hover, footer button.linklike:hover { color: var(--dim); text-decoration: underline; }
footer a[aria-current="page"] { color: var(--dim); }
footer .sep { user-select: none; }

@media (max-width: 520px) {
  body { font-size: 14px; }
  main { padding: 16px 14px 20px; }
}
