:root {
  --bg: #0a0a0a;
  --card: #111111;
  --card-deep: #161616;
  --gold: #c9a84c;
  --gold-dim: rgba(201, 168, 76, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #f0ede8;
  --muted: #888680;
  --tertiary: #4a4845;
  --high: #4a9e6e;        --high-bg: rgba(74, 158, 110, 0.12);
  --medium: #c9a84c;      --medium-bg: rgba(201, 168, 76, 0.12);
  --low: #888680;         --low-bg: rgba(136, 134, 128, 0.12);
  --manip: #c0544a;       --manip-bg: rgba(192, 84, 74, 0.12);
  --intelligence: #378add;
  --physical: #1d9e75;
  --capital: #c9a84c;
  --human: #d4537e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 48px 20px 88px; }
.hidden { display: none !important; }

/* ---------- masthead ---------- */
.masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand-name { font-size: 22px; letter-spacing: 0.01em; }
.rule { height: 1px; background: var(--border); margin: 8px 0; }
.brand-label, .brand-thesis {
  font-family: "DM Mono", monospace; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.brand-thesis { color: var(--muted); text-align: right; }

/* ---------- lede ---------- */
.lede {
  font-family: "DM Sans", sans-serif; font-weight: 400;
  font-size: 27px; line-height: 1.35; letter-spacing: -0.01em; margin: 28px 0 8px;
}
.sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ---------- panels ---------- */
.panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; padding: 22px; margin-top: 18px;
  transition: border-color 0.15s ease;
}
.panel-title { font-size: 18px; font-weight: 400; margin-bottom: 6px; }
.panel-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.cta { background: transparent; }

label {
  display: block; font-family: "DM Mono", monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
input[type="text"], input[type="email"], textarea {
  width: 100%; background: var(--card-deep); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text); font-family: "DM Sans", sans-serif;
  font-weight: 300; font-size: 14.5px; padding: 11px 13px; outline: none;
  transition: border-color 0.15s ease;
}
input:focus, textarea:focus { border-color: var(--gold); }
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
::placeholder { color: var(--tertiary); }

/* honeypot — visually removed, still in DOM for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button {
  font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; border-radius: 4px; cursor: pointer; padding: 12px 22px;
  border: 1px solid var(--border); background: var(--card-deep); color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
button:hover:not(:disabled) { border-color: var(--border-hover); }
button:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #0a0a0a; font-weight: 500; margin-top: 14px; }
.btn-gold:hover:not(:disabled) { background: #d8b85e; border-color: #d8b85e; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.tool-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hint { font-family: "DM Mono", monospace; font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; }
.fineprint { font-size: 11px; color: var(--tertiary); margin-top: 12px; }

.status { font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: 0.06em; margin-top: 12px; min-height: 16px; }
.status.err { color: var(--manip); }
.status.ok { color: var(--gold); }

/* ---------- result ---------- */
.result { margin-top: 22px; border: 1px solid var(--border); background: var(--card-deep); border-radius: 4px; overflow: hidden; }
.result-bar { height: 3px; }
.result-body { padding: 20px; }
.verdict-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.verdict {
  font-family: "DM Mono", monospace; font-size: 12.5px; letter-spacing: 0.14em;
  padding: 5px 12px; border-radius: 3px; border: 1px solid transparent;
}
.pillar {
  font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 3px;
  border: 1px solid var(--border); color: var(--muted);
}
.read { font-size: 19px; font-weight: 400; line-height: 1.45; margin: 18px 0 16px; }
.divider { height: 1px; background: var(--border); margin-bottom: 16px; }
.field-label { font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 6px; }
.field-label.accent { color: var(--gold); }
.field-body { font-size: 14.5px; line-height: 1.55; margin-bottom: 14px; }
.disclaimer { font-size: 11px; color: var(--tertiary); font-style: italic; margin-top: 14px; }

.foot {
  font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--tertiary); text-align: center; margin-top: 32px;
}

/* signal colours */
.v-high { color: var(--high); background: var(--high-bg); border-color: rgba(74,158,110,0.3); }
.v-medium { color: var(--medium); background: var(--medium-bg); border-color: rgba(201,168,76,0.3); }
.v-low { color: var(--low); background: var(--low-bg); border-color: rgba(136,134,128,0.3); }
.v-manipulation { color: var(--manip); background: var(--manip-bg); border-color: rgba(192,84,74,0.3); }
.bar-high { background: var(--high); }
.bar-medium { background: var(--medium); }
.bar-low { background: var(--low); }
.bar-manipulation { background: var(--manip); }

/* pillar accents */
.p-intelligence { color: var(--intelligence); border-color: rgba(55,138,221,0.35); }
.p-physical { color: var(--physical); border-color: rgba(29,158,117,0.35); }
.p-capital { color: var(--capital); border-color: rgba(201,168,76,0.35); }
.p-human { color: var(--human); border-color: rgba(212,83,126,0.35); }

/* loading dots */
.dots span { animation: blink 1.1s infinite; }
.dots span:nth-child(2) { animation-delay: 0.18s; }
.dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dots span { animation: none; opacity: 0.7; }
}

@media (max-width: 540px) {
  .lede { font-size: 23px; }
  .wrap { padding: 36px 16px 72px; }
}
