/* PreFix Systems — shared styles. Brand teal carried over from the
   original eegvault.com/prefix page. */
:root {
  --teal: #1F6E78;
  --teal-dark: #155057;
  --teal-soft: #e6f1f2;
  --bg: #f7f9fb;
  --card: #ffffff;
  --text: #1a1f25;
  --muted: #5c6878;
  --border: #e2e8f0;
  --warn-bg: #fff6e5;
  --warn-line: #f5a623;
  --warn-text: #6b4d10;
  --error: #b3261e;
  --radius: 12px;
  --max: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --teal: #4fb3bf;
    --teal-dark: #8fd3db;
    --teal-soft: #13292c;
    --bg: #0f1418;
    --card: #161d22;
    --text: #e6ebef;
    --muted: #9aa7b4;
    --border: #26313a;
    --warn-bg: #2a2214;
    --warn-line: #d69a2d;
    --warn-text: #f0d29a;
    --error: #ff8a80;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--teal); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-dark); font-weight: 700; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 15px;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--text); background: var(--teal-soft); }
.nav a[aria-current="page"] { color: var(--teal-dark); font-weight: 600; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.02em; max-width: 820px; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 700px; margin: 0 0 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 700; color: var(--teal); margin-bottom: 12px; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px;
  background: var(--teal); color: #fff; font-weight: 600; text-decoration: none;
  border: none; font-size: 16px; font-family: inherit; cursor: pointer;
}
.btn:hover { background: var(--teal-dark); color: #fff; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #0f1418; } }
.btn.secondary { background: transparent; color: var(--teal-dark); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn:disabled { opacity: 0.6; cursor: default; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 48px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 20px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.narrow { max-width: 720px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
section.alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-dark); margin-bottom: 10px;
}
.tag.proto { background: var(--warn-bg); color: var(--warn-text); }

ul.clean { padding-left: 20px; margin: 0 0 14px; }
ul.clean li { margin-bottom: 6px; }

.notice {
  background: var(--warn-bg); border-left: 3px solid var(--warn-line);
  color: var(--warn-text); padding: 14px 18px; border-radius: 4px; font-size: 15px; margin: 16px 0;
}

/* Spec table */
.specs { width: 100%; border-collapse: collapse; font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.specs th { width: 34%; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }

/* Download */
.dl-box { text-align: center; }
.dl-box input {
  padding: 14px 16px; font-size: 16px; border: 1px solid var(--border); border-radius: 8px;
  width: 300px; max-width: 100%; text-align: center; background: var(--bg); color: var(--text);
}
.dl-box .actions { justify-content: center; margin-top: 14px; }
.dl-box .btn { min-width: 220px; }
.meta { color: var(--muted); font-size: 14px; margin-top: 8px; }
code { background: var(--teal-soft); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; word-break: break-all; }
ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 10px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 36px; }
  section { padding: 36px 0; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 6px; }
  .nav a { padding: 6px 9px; font-size: 14px; }
  .specs th { width: 42%; }
}
