/* ============================================================
   RunOrNot — coming soon
   Ink-violet system from styles.css, scoped to this page so
   index.html is untouched.

   Layout is deliberately off-centre: a sticky left rail carries the
   only product statement on the page, and the right column scrolls
   the evidence past it. Nothing is centre-stacked.
   ============================================================ */

:root {
  --bg: #07070e;
  --bg-raised: #0c0c17;
  --line: rgba(148, 138, 255, 0.13);
  --line-strong: rgba(148, 138, 255, 0.28);
  --violet: #9d7bff;
  --blue: #4d8dff;
  --grad: linear-gradient(100deg, #a87bff 10%, #4d8dff 90%);
  --text: #edecf6;
  --muted: #9c98b8;
  --faint: #6d6a8a;
  --deny: #ff7070;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", -apple-system, system-ui, sans-serif;
  --display: "Chakra Petch", var(--sans);
  --gut: 64px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.cs {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Aurora pinned to the upper left, behind the rail — the page's weight
   sits off-centre on purpose. */
body.cs::before {
  content: "";
  position: fixed;
  top: -280px; left: -200px;
  width: 1100px; height: 900px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 42% 46% at 40% 38%, rgba(140, 90, 255, 0.20), transparent 66%),
    radial-gradient(ellipse 38% 42% at 66% 30%, rgba(60, 120, 255, 0.14), transparent 66%);
}
body.cs::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(148,138,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,138,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 20% 20%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 20%, #000 10%, transparent 70%);
}

a { color: var(--text); text-decoration: none; }
::selection { background: rgba(157, 123, 255, 0.35); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--violet); color: #0b0b14;
  padding: 8px 16px; border-radius: 6px; z-index: 100;
  font-weight: 600; transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

/* ---------------- top bar ---------------- */

.cs-top {
  position: relative;
  z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 24px var(--gut);
}
.cs-brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--display); font-weight: 700; font-size: 20px;
  letter-spacing: 0.01em;
}
.cs-brand img { display: block; }
.cs-brand i {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.cs-domain {
  font-family: var(--mono); font-size: 12.5px;
  letter-spacing: 0.06em; color: var(--faint);
}

/* ---------------- the asymmetric split ---------------- */

.cs-brief {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 41fr) minmax(0, 59fr);
  gap: 0 78px;
  padding: 0 var(--gut) 90px;
  align-items: start;
}

/* ---- left rail: sticky, the only product voice on the page ---- */

.rail { position: sticky; top: 34px; }
.rail-inner { padding: 26px 0 0; max-width: 30rem; }

.status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 15px 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(148, 138, 255, 0.06);
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--violet);
  animation: cs-pulse 2.4s ease-out infinite;
}
@keyframes cs-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(157, 123, 255, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(157, 123, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(157, 123, 255, 0); }
}

.rail h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.018em;
  margin: 22px 0 24px;
}
.rail h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.claim {
  font-size: 16px;
  color: var(--muted);
  border-left: 2px solid var(--line-strong);
  padding-left: 18px;
}

/* ---- notify ---- */

.notify { margin-top: 34px; }
.notify-label {
  display: block;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.notify-row {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(10, 10, 19, 0.72);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.notify-row:focus-within {
  border-color: rgba(148, 138, 255, 0.6);
  box-shadow: 0 0 26px rgba(140, 100, 255, 0.14);
}
.notify input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--text);
  font-family: var(--mono); font-size: 14px;
  padding: 13px 16px;
}
.notify input::placeholder { color: var(--faint); }
.notify button {
  flex-shrink: 0;
  border: 0; border-left: 1px solid var(--line);
  background: rgba(148, 138, 255, 0.14);
  color: var(--text);
  font-family: var(--display); font-weight: 600; font-size: 14.5px;
  padding: 0 22px;
  cursor: pointer;
  transition: background 0.15s;
}
.notify button:hover { background: rgba(148, 138, 255, 0.24); }
.notify button:disabled { opacity: 0.55; cursor: default; }

.notify-status {
  min-height: 1.5em;
  margin-top: 9px;
  font-family: var(--mono); font-size: 12px;
  color: var(--faint);
}
.notify-status.is-ok { color: #46d39a; }
.notify-status.is-bad { color: var(--deny); }

.rail-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--faint);
  max-width: 34ch;
}
.rail-note a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.rail-note a:hover { color: var(--text); }

/* ---------------- right column: the dossier ---------------- */

.dossier { padding: 30px 0 0; min-width: 0; }

.kicker {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet);
}
.dossier-lede {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
  max-width: 54ch;
}

.evidence { list-style: none; margin-top: 44px; }

.ev {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0 6px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.ev:first-child { border-top: 0; padding-top: 0; }

.ev-no {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding-top: 5px;
}
.ev-body { min-width: 0; }
.ev h2 {
  font-family: var(--display);
  font-size: 21px; font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.ev-stat {
  margin: 12px 0 12px;
  font-family: var(--mono);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
}
.ev-stat b {
  font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.ev-stat span { font-size: 12.5px; color: var(--faint); letter-spacing: 0.04em; }
.ev-stat span b { font-size: 12.5px; letter-spacing: 0.04em; }

.ev-body > p { color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.ev-body > p b { color: var(--text); font-weight: 600; }

.ev-src {
  margin-top: 12px;
  font-family: var(--mono); font-size: 11.5px !important;
  color: var(--faint) !important;
  letter-spacing: 0.02em;
}
.ev-src a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.ev-src a:hover { color: var(--violet); }

/* ---------------- blast radius ---------------- */

.calc {
  margin-top: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 10, 19, 0.6);
  padding: 30px;
}
.calc h2 {
  font-family: var(--display); font-size: 26px; font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 12px;
}
.calc-lede {
  margin-top: 10px;
  color: var(--muted); font-size: 15.5px;
  max-width: 56ch;
}

.calc-controls {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px 26px;
}
.ctrl label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 9px;
}
.ctrl output { color: var(--violet); font-weight: 700; letter-spacing: 0.02em; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px;
  background: rgba(148, 138, 255, 0.20);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; border-radius: 50%;
  background: #cfc4ff;
  border: 2px solid #6b5bd6;
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: #cfc4ff; border: 2px solid #6b5bd6;
  cursor: grab;
}

.calc-out { margin-top: 26px; }

.calc-grid {
  display: flex; flex-wrap: wrap; gap: 3px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(7, 7, 14, 0.5);
  min-height: 74px;
  align-content: flex-start;
}
.calc-grid i {
  width: 5px; height: 5px; border-radius: 1px;
  background: rgba(157, 123, 255, 0.22);
  display: block;
}
.calc-grid i.is-seen { background: #46d39a; }
.calc-grid i.is-hidden-dot { display: none; }

.calc-nums {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px 26px;
}
.calc-nums dt {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint);
}
.calc-nums dd {
  font-family: var(--mono); font-size: 27px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.calc-nums .is-hot dd { color: var(--deny); }

.calc-foot {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text);
}
.calc-caveat {
  margin-top: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.closer {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------------- foot ---------------- */

.cs-foot {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 26px;
  padding: 22px var(--gut) 30px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* ---------------- responsive ---------------- */

@media (max-width: 1080px) {
  :root { --gut: 40px; }
  .cs-brief { gap: 0 48px; }
}

@media (max-width: 900px) {
  :root { --gut: 26px; }
  .cs-brief {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
    padding-bottom: 64px;
  }
  .rail { position: static; }
  .rail-inner { padding-top: 8px; max-width: 34rem; }
  .dossier { padding-top: 0; }
  .rail h1 { font-size: clamp(34px, 8vw, 48px); }
}

@media (max-width: 560px) {
  body.cs { font-size: 16px; }
  .cs-top { padding: 18px var(--gut); }
  .ev { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ev-no { padding-top: 0; margin-bottom: 6px; }
  .calc { padding: 22px 18px; border-radius: 12px; }
  .calc-nums dd { font-size: 23px; }
  .cs-foot { padding-bottom: 26px; }
  .cs-foot-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
