/* brain.fightclub.pro — one stylesheet, no framework, no build step.
   Matches the product: nothing to install to read it.
   Shares its look with the rest of the house (secret-lab): ink, gold, a serif
   that is not a UI font, and a mono that is the same one you read code in. */

:root {
  --ink: #0a0b0d;
  --ink-2: #0f1114;
  --surface: #15181c;
  --surface-2: #191d22;
  --line: #23272d;
  --line-2: #2e343c;
  --text: #ece6d8;
  --muted: #8b8a82;
  --faint: #5b5b54;
  --gold: #e9b46a;
  --gold-soft: #f4d59e;
  --cold: #6b78c4;
  --green: #7fb98a;
  --red: #c2603f;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* grain + grid atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 5%, transparent 75%);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.wrap.narrow { max-width: 860px; }

a { color: inherit; text-decoration: none; }
p a, li a, td a { color: var(--gold); border-bottom: 1px solid rgba(233,180,106,0.28); }
p a:hover, li a:hover, td a:hover { border-bottom-color: var(--gold); }

/* ---------- nav ---------- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.brand { font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em; font-size: 17px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand .dot { width: 9px; height: 9px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 14px var(--gold); animation: pulse 3.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.nav-links { display: flex; gap: 22px; align-items: center; font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--muted); }
.nav-links a { transition: color 0.2s; border: 0; }
.nav-links a:hover { color: var(--text); }
.nav-links a.on { color: var(--gold); }
@media (max-width: 1100px) { .nav-links { display: none; } }
/* Phones and narrow tablets: the links fold behind a Menu button. A checkbox and its label
   rather than a script, so the menu works with JavaScript off and needs no extra file. */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-menu { display: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; cursor: pointer; user-select: none; }
.nav-toggle:focus-visible + .nav-menu { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 1100px) {
  .nav-menu { display: inline-flex; margin-left: auto; }
  .nav-toggle:checked ~ .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    position: absolute; top: 70px; left: 0; right: 0;
    padding: 18px 20px 22px; background: var(--ink); border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked + .nav-menu { color: var(--gold); border-color: var(--gold); }
}
.host.legal { opacity: 0.8; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
@media (max-width: 620px) { .nav-inner { gap: 12px; } .nav-actions { gap: 6px; } .nav-actions .btn { padding: 8px 10px; font-size: 11px; letter-spacing: 0.04em; } }
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  pre { font-size: 12.5px; padding: 14px 14px; }
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 11px 20px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 2px;
  transition: all 0.22s ease;
  display: inline-block;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--gold); color: var(--ink); box-shadow: 0 0 30px -6px var(--gold); border-bottom-color: var(--gold); }
.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid:hover { box-shadow: 0 0 38px -4px var(--gold); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--muted); }
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--faint); box-shadow: none; }
.cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- type ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 82px);
  line-height: 0.99;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-soft); }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 8px;
}
.lede { font-size: 20px; color: var(--muted); max-width: 32em; margin-bottom: 34px; }
.lede b, .sec-body b, .prose b { color: var(--text); font-weight: 600; }

.sec-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.sec-body { font-size: 18.5px; color: var(--muted); max-width: 36em; }
.sec-body p + p, .prose p + p { margin-top: 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

section { padding: 88px 0; }
section.tight { padding: 60px 0; }
.banded { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.hero { padding: 96px 0 76px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 58px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.split { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 62px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } }
/* A grid column defaults to min-width:auto, so one wide child (a pre, a long word) widens the
   whole column past the screen instead of scrolling inside it. */
.hero-grid > *, .split > *, .grid > *, .doc > * { min-width: 0; }

.prose { font-size: 18.5px; color: var(--muted); max-width: 40em; }
.prose h3 { color: var(--text); margin-top: 34px; }
.prose ul, .prose ol { margin: 14px 0 14px 22px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--faint); }

/* ---------- code ---------- */
pre, code, kbd { font-family: var(--mono); }
pre {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-2);
  border-radius: 4px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.75;
  margin: 18px 0;
  color: var(--text);
}
:not(pre) > code { overflow-wrap: anywhere; }
pre .c { color: var(--faint); }
pre .g { color: var(--gold); }
pre .o { color: var(--muted); }
pre .r { color: var(--red); }
pre .k { color: var(--cold); }
p code, li code, td code, h3 code, .sec-body code {
  background: rgba(233,180,106,0.07);
  border: 1px solid rgba(233,180,106,0.16);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.86em;
  color: var(--gold-soft);
}
/* Kept on one line where there is room; on a phone a path longer than the screen wraps. */
@media (min-width: 561px) { p code, li code, h3 code, .sec-body code { white-space: nowrap; } }
/* Code in a table cell may wrap: one long flag list otherwise widens the table past the page. */
td code { overflow-wrap: anywhere; }
/* Fixed columns: the widths come from the colgroup, never from the longest word in a cell. */
table.cols-20-40-40 { table-layout: fixed; width: 100%; }
table.cols-20-40-40 td, table.cols-20-40-40 th { overflow-wrap: anywhere; }

/* ---------- panels and cards ---------- */
.card {
  background: linear-gradient(165deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.03);
}
/* The hero sentence points at the sample brief beside it, or below it once the grid stacks. */
.brief-ptr { color: var(--gold); border-bottom: 1px dashed var(--gold); white-space: nowrap; }
.brief-ptr::after { content: " \2192"; }
@media (max-width: 920px) { .brief-ptr::after { content: " \2193"; } }
.card { transition: border-color 0.25s, box-shadow 0.25s; }
.hero-grid:has(.brief-ptr:hover) .card, .card:target { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 40px rgba(232,177,95,0.18); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.card-head .name { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.tagline { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--gold); display: flex; align-items: center; gap: 7px; text-transform: uppercase; }
.tagline .glow { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.card-foot { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 11px; color: var(--faint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.door {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 24px;
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s;
  display: block;
}
.door:hover { border-color: var(--gold); transform: translateY(-3px); }
.door .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.door h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; margin-bottom: 9px; letter-spacing: -0.01em; }
.door p { font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.door .more { font-family: var(--mono); font-size: 12px; color: var(--gold); margin-top: 14px; display: block; }

/* stat blocks */
.stat { border-left: 1px solid var(--line); padding-left: 20px; }
.stat .n { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--gold-soft); }
.stat .l { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* callouts */
.note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: var(--ink-2);
  border-radius: 4px;
  padding: 18px 22px;
  font-size: 16.5px;
  color: var(--muted);
  margin: 22px 0;
}
.note.warn { border-left-color: var(--red); }
.note strong { color: var(--text); }

/* ---------- ticker band ---------- */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); overflow: hidden; position: relative; z-index: 2; }
.ticker { display: flex; gap: 56px; padding: 15px 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--faint); white-space: nowrap; animation: scroll 38s linear infinite; }
.ticker span { display: inline-flex; gap: 56px; }
.ticker b { color: var(--gold); font-weight: 500; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- tables ---------- */
table { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 20px 0; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  border-bottom-color: var(--line-2);
}
td { color: var(--muted); }
td:first-child { color: var(--text); }
td.yes { color: var(--gold); }
td.no { color: var(--faint); }
tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* flag tables */
table.flags td:first-child { font-family: var(--mono); font-size: 13px; color: var(--gold-soft); white-space: nowrap; }
table.flags td { padding: 9px 14px; font-size: 15px; }

/* ---------- docs layout ---------- */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 100px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: transparent transparent; scrollbar-gutter: stable; padding-right: 6px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9; }
@media (max-width: 900px) { .toc { position: static; max-height: none; overflow: visible; border-bottom: 1px solid var(--line); padding-bottom: 18px; } }
.toc:hover { scrollbar-color: var(--line) transparent; }
.toc::-webkit-scrollbar { width: 6px; }
.toc::-webkit-scrollbar-track { background: transparent; }
.toc::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.toc:hover::-webkit-scrollbar-thumb { background: var(--line); }
.toc::-webkit-scrollbar-thumb:hover, .toc::-webkit-scrollbar-thumb:active { background: var(--gold); }
.toc div.t { color: var(--faint); letter-spacing: 0.16em; text-transform: uppercase; font-size: 10.5px; margin-bottom: 10px; }
.toc a { display: block; color: var(--muted); border: 0; padding: 1px 0; }
.toc a:hover { color: var(--gold); }
.doc-body { min-width: 0; max-width: 52em; }
.doc-body h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 58px 0 16px; padding-top: 8px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { margin: 32px 0 8px; color: var(--text); }
.doc-body p, .doc-body ul, .doc-body ol { color: var(--muted); font-size: 17.5px; }
.doc-body p { margin-bottom: 14px; }
.doc-body ul, .doc-body ol { margin: 0 0 16px 22px; }
.doc-body li { margin-bottom: 8px; }
.doc-body li::marker { color: var(--faint); }
.doc-head { padding: 64px 0 8px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 18px; }
.doc-head .lede { margin-bottom: 40px; }

.cmd { scroll-margin-top: 96px; }
.cmd h3 { font-family: var(--mono); font-size: 16px; color: var(--gold); font-weight: 500; }
.anchor { color: var(--faint); font-family: var(--mono); font-size: 13px; margin-left: 8px; opacity: 0; transition: opacity .2s; border: 0; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }

/* ---------- pricing ---------- */
.price { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--gold-soft); }
.price small { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.plan { border: 1px solid var(--line); border-radius: 5px; background: var(--surface); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--gold); box-shadow: 0 0 60px -30px var(--gold); }
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.plan ul { list-style: none; margin: 20px 0; font-size: 15.5px; color: var(--muted); }
.plan ul li { margin-bottom: 9px; padding-left: 18px; position: relative; }
.plan ul li::before { content: "·"; position: absolute; left: 4px; color: var(--gold); }
.plan .perhead { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.02em; margin: -4px 0 4px; }
.plan .btn { margin-top: auto; text-align: center; }

/* ---------- reveal ---------- */
.obs { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.2,0.7,0.2,1), transform 0.8s cubic-bezier(0.2,0.7,0.2,1); }
.obs.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(16px); animation: rise 0.85s cubic-bezier(0.2,0.7,0.2,1) forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.16s; }
.stagger > *:nth-child(3) { animation-delay: 0.28s; }
.stagger > *:nth-child(4) { animation-delay: 0.40s; }
.stagger > *:nth-child(5) { animation-delay: 0.52s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .obs, .stagger > *, .card { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .ticker { animation: none; }
}

/* ---------- final cta ---------- */
.final { text-align: center; padding: 110px 0; position: relative; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(233,180,106,0.10), transparent 70%);
}
.final h2 { font-size: clamp(36px, 5.4vw, 64px); margin-bottom: 22px; }
.final p { font-size: 18.5px; color: var(--muted); max-width: 30em; margin: 0 auto 34px; }
.final .cta-row { justify-content: center; }
.final pre { text-align: left; max-width: 640px; margin: 26px auto; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0; position: relative; z-index: 2; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }
.host { color: var(--muted); }
