/* Systematic Trading: shared styles for the home page and legal pages. No external fonts or scripts. */
:root {
  --bg: #000;
  --panel: #0a0a0a;
  --line: #1c1c1c;
  --line-2: #2c2c2c;
  --text: #ededed;
  --muted: #a1a1a1;
  --dim: #6e6e6e;
  --up: #26a69a;
  --down: #ef5350;
  --max: 1080px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: underline; text-decoration-color: #555; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 16px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; height: 68px; gap: 32px; }
.wordmark { font-weight: 650; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; color: var(--text); white-space: nowrap; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav { display: none; } .site-header .btn { margin-left: auto; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 6px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  background: var(--text); color: #000; border: 1px solid var(--text);
}
.btn:hover { background: #fff; color: #000; }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-line:hover { background: var(--panel); color: var(--text); border-color: #444; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* hero */
.hero { padding: 112px 0 104px; }
@media (max-width: 600px) { .hero { padding: 64px 0 64px; } }
h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.07; letter-spacing: -0.03em; font-weight: 650; margin: 0 0 24px; max-width: 15em; }
.lede { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 37em; margin: 0 0 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { margin: 28px 0 0; font-size: 14px; color: var(--dim); }

/* sections: heading on the left, content on the right */
.sec { border-top: 1px solid var(--line); padding: 88px 0; }
@media (max-width: 600px) { .sec { padding: 56px 0; } }
.sec .wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; }
@media (max-width: 860px) { .sec .wrap { grid-template-columns: 1fr; gap: 24px; } }
h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 650; margin: 0; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 620; margin: 0 0 6px; letter-spacing: -0.01em; }
.sec p { color: var(--muted); margin: 0 0 18px; }
.sec p:last-child { margin-bottom: 0; }

.rows > div { padding: 22px 0; border-top: 1px solid var(--line); }
.rows > div:first-child { padding-top: 0; border-top: 0; }
.rows p { margin: 0; }

/* chart */
.figure { margin: 40px 0 28px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); padding: 16px 12px 8px; }
.figure figcaption { font-size: 13.5px; color: var(--dim); padding: 10px 6px 4px; border-top: 1px solid var(--line); margin-top: 8px; line-height: 1.55; }
.chart text { font-family: var(--sans); }

/* plain list with hairlines */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--text); }
.list li:first-child { border-top: 0; padding-top: 0; }

/* membership */
.price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.price b { font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-weight: 650; color: var(--text); }
.price span { color: var(--muted); }
.sec .price-sub { color: var(--dim); font-size: 15px; margin-bottom: 32px; }
.admins { list-style: none; margin: 8px 0 18px; padding: 0; border: 1px solid var(--line); border-radius: 4px; }
.admins li { display: flex; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); }
.admins li:first-child { border-top: 0; }
.admins .who { font-weight: 600; }
.admins .how { color: var(--muted); font-size: 15px; }
.sec .small { font-size: 14.5px; color: var(--dim); }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 15px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--dim); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.site-footer p { margin: 0 0 10px; max-width: 72em; line-height: 1.6; }

/* legal pages */
.doc { max-width: 740px; padding: 64px 0 88px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 42px); margin-bottom: 8px; }
.doc .updated { font-size: 14px; color: var(--dim); margin: 0 0 40px; }
.doc h2 { font-size: 20px; margin: 40px 0 10px; }
.doc p, .doc li { color: #bdbdbd; font-size: 16.5px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .callout { border: 1px solid var(--line-2); padding: 18px 20px; border-radius: 4px; margin: 0 0 8px; background: var(--panel); }
.doc .callout p { margin: 0; }
.doc .caps { text-transform: uppercase; font-size: 14.5px; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 28px; }
.back:hover { color: var(--text); }
@media (max-width: 600px) { .figure { padding: 10px 2px 6px; } }
/* logo */
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark img { width: 36px; height: 36px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: center; }
.hero-logo { width: 100%; height: auto; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-logo { order: -1; width: 260px; margin-left: -12px; }
}
.admins .who { user-select: all; }
.sec p strong { color: var(--text); font-weight: 600; }
