/* TradeAdapt site mockups, 2026-11-17. One stylesheet for every page.
   Brand: ground #0a0a0a, green #00ff00 as the accent on dark, Inter, no shadows. */

:root {
  --ground: #0a0a0a;
  --surface: #101010;
  --surface-2: #151515;
  --line: #222222;
  --line-strong: #333333;
  --text: #f2f2f2;
  --muted: #a6a6a6;      /* 8.0:1 on the ground */
  --faint: #8a8a8a;      /* 5.6:1 on the ground: small labels only */
  --green: #00ff00;
  --green-dim: #0b3d0b;
  --amber: #ffb000;
  --red: #ff4444;
  --radius: 12px;
  --wrap: 1160px;
  --gutter: 24px;
  --section: 120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.022em; line-height: 1.12; }
h1 { font-size: clamp(38px, 6.2vw, 72px); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.012em; line-height: 1.3; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.green { color: var(--green); }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--green); color: #000; padding: 8px 12px; z-index: 100; }

/* ---------- Mockup ribbon ---------- */
.ribbon {
  background: #161200; color: #ffd66b; border-bottom: 1px solid #3a3000;
  font-size: 12.5px; letter-spacing: 0.04em; text-align: center; padding: 7px 16px;
}
.ribbon a { color: #ffd66b; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 52px; height: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { background: var(--surface-2); }
.header-cta { margin-left: 8px; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 8px 12px; font-size: 14px; font-weight: 600;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--green); color: var(--green); }
.menu-panel {
  position: absolute; right: 0; top: 46px; width: min(86vw, 300px);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px;
}
.menu-panel a { display: block; padding: 12px 12px; text-decoration: none; border-radius: 8px; font-weight: 500; }
.menu-panel a[aria-current="page"] { color: var(--green); }
.menu-panel a + a { border-top: 1px solid var(--line); border-radius: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--green); color: #031003; }
.btn-primary:hover { background: #5cff5c; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-note { font-size: 13.5px; color: var(--faint); margin-top: 14px; }
.textlink { color: var(--green); text-decoration: none; font-weight: 600; }
.textlink:hover { text-decoration: underline; }
.textlink::after { content: " \2192"; }

/* ---------- Sections ---------- */
section { padding: var(--section) 0; }
.section-tight { padding: 72px 0; }
.rule { border-top: 1px solid var(--line); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 20px;
}
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 660px; line-height: 1.55; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 + p { margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }
.hero h1 { max-width: 15ch; }
.hero h1.wide { max-width: 18ch; }
.hero .lede { margin: 28px 0 36px; }
.hero-sub { padding: 88px 0 56px; }
.hero-sub h1 { font-size: clamp(36px, 5vw, 60px); max-width: 18ch; }

/* ---------- Product frame ---------- */
.frame { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: #060606; }
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.frame-dot { width: 10px; height: 10px; border-radius: 50%; background: #2c2c2c; }
.frame-url {
  margin-left: 10px; font-size: 12.5px; color: var(--faint); background: var(--ground); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 12px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.app-logo {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; font-size: 16px;
}
.app-logo i {
  width: 28px; height: 28px; border-radius: 7px; border: 1px dashed #5a5a5a; display: inline-flex; align-items: center;
  justify-content: center; font-style: normal; font-size: 11px; color: var(--muted); font-weight: 600;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted);
  white-space: nowrap;
}
.chip.live { color: var(--green); border-color: #0f5a0f; }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chip.early { color: var(--amber); border-color: #5a4300; }
.chip.soon { color: var(--muted); border-style: dashed; }
.chip.no { color: #ff8a8a; border-color: #5a1f1f; }
.app-head .push { margin-left: auto; }
.app-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.app-strip div { padding: 14px 18px; border-right: 1px solid var(--line); min-width: 0; }
.app-strip div:last-child { border-right: 0; }
.app-strip b { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 4px; }
.app-strip span { font-size: 15px; font-weight: 600; }
.frame img { width: 100%; }
figure { margin: 0; }
figcaption { font-size: 13.5px; color: var(--faint); margin-top: 14px; line-height: 1.5; max-width: 820px; }

/* ---------- Cards and grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.top { align-items: start; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--surface); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card p:last-child { margin-bottom: 0; }
.card .eyebrow { margin-bottom: 14px; font-size: 12px; }
a.card { text-decoration: none; display: block; transition: border-color .15s; }
a.card:hover { border-color: var(--green); }
.card-lead { border-color: #145214; background: linear-gradient(180deg, #0c160c 0%, var(--surface) 70%); }
.card .textlink { display: inline-block; margin-top: 18px; }

/* numbered steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 8px 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero); font-size: 15px; font-weight: 600; color: var(--green);
  letter-spacing: 0.08em; padding-top: 3px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; max-width: 640px; }
.step .chip { margin-top: 12px; }

/* tick and cross lists */
.list li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.list li:first-child { border-top: 0; }
.list li strong { color: var(--text); font-weight: 600; }
.list li::before { position: absolute; left: 0; top: 11px; font-weight: 700; }
.list.yes li::before { content: "\2713"; color: var(--green); }
.list.never li::before { content: "\2715"; color: #ff8a8a; }
.list.later li::before { content: "\25CB"; color: var(--faint); }

/* status rows (used instead of wide tables so phones never scroll sideways) */
.status { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.status-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 18px 22px; border-top: 1px solid var(--line); align-items: center; }
.status-row:first-child { border-top: 0; }
.status-row p { margin: 0; color: var(--muted); font-size: 15px; grid-column: 1 / -1; }
.status-row strong { font-weight: 600; font-size: 16px; }

/* definition rows */
.terms { border-top: 1px solid var(--line); }
.terms div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 600; }
.terms dd { margin: 0; color: var(--muted); }
dl { margin: 0; }

/* phone illustration */
.phone { width: 300px; max-width: 100%; margin: 0 auto; border: 1px solid var(--line-strong); border-radius: 34px; padding: 10px; background: #050505; }
.phone-screen { border-radius: 25px; overflow: hidden; border: 1px solid var(--line); background: var(--ground); font-size: 13px; }
.phone .app-head { padding: 12px 14px; gap: 8px; }
.phone .app-logo { font-size: 14px; }
.p-block { padding: 14px; border-bottom: 1px solid var(--line); }
.p-block:last-child { border-bottom: 0; }
.p-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 8px; }
.p-pos { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.p-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.p-kv b { display: block; font-size: 9.5px; letter-spacing: 0.12em; color: var(--faint); font-weight: 600; text-transform: uppercase; }
.p-kv span { font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.p-quote { border-left: 2px solid var(--green); padding: 2px 0 2px 12px; color: var(--text); line-height: 1.5; }
.p-aloud { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 11.5px; color: var(--green); border: 1px solid #0f5a0f; border-radius: 999px; padding: 4px 10px; font-weight: 600; }
.p-log li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 4px 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-log li b { color: var(--faint); font-weight: 500; }
.p-pic { height: 92px; border: 1px solid var(--line); border-radius: 8px; background-size: cover; background-position: 88% 45%; }

/* ---------- Forms (mock) ---------- */
.form { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 32px; background: var(--surface); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field small { color: var(--faint); font-size: 12.5px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--ground); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 11px 12px; width: 100%; min-width: 0;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.form-note { font-size: 13px; color: #ffd66b; border: 1px dashed #5a4300; border-radius: 8px; padding: 10px 12px; margin: 20px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex: none; }

/* ---------- Notes ---------- */
.note { border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 8px; padding: 18px 20px; color: var(--muted); font-size: 15.5px; background: var(--surface); }
.note strong { color: var(--text); }
.note.amber { border-left-color: var(--amber); }
.draft {
  border: 1px dashed #7a5a00; background: #141000; color: #ffd66b; border-radius: 8px; padding: 14px 18px;
  font-size: 14.5px; font-weight: 500; margin-bottom: 40px;
}
.prose h2 { font-size: 24px; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.todo { color: #ffd66b; }

/* ---------- CTA band ---------- */
.cta { text-align: center; padding: 104px 0; }
.cta h2 { max-width: 20ch; margin: 0 auto 18px; }
.cta .lede { margin: 0 auto 32px; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14.5px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-grid h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 14px; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--green); }
.foot-logo { width: 150px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 16px; }
.risk { border-top: 1px solid var(--line); padding-top: 28px; font-size: 13px; line-height: 1.6; color: var(--faint); }
.risk strong { color: var(--muted); }
.risk p { margin-bottom: 10px; max-width: 980px; }
.risk-strip { border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; font-size: 13.5px; color: var(--faint); margin-top: 40px; }
.risk-strip strong { color: var(--muted); }

/* ---------- Mockup index ---------- */
.idx-list { display: grid; gap: 12px; }
.idx-list a { display: grid; grid-template-columns: 220px 1fr auto; gap: 20px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--surface); }
.idx-list a:hover { border-color: var(--green); }
.idx-list b { font-weight: 600; }
.idx-list span { color: var(--muted); font-size: 15px; }
.idx-list code { color: var(--green); font-size: 13.5px; font-family: Consolas, "SF Mono", monospace; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  :root { --section: 88px; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .grid-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav, .header-cta { display: none; }
  .menu { display: block; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 68px; }
  body { font-size: 16px; }
  .hero { padding: 56px 0 48px; }
  .hero-sub { padding: 52px 0 36px; }
  .hero .lede { margin: 22px 0 28px; }
  .section-head { margin-bottom: 36px; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .card, .form { padding: 22px; }
  .btn-row .btn { width: 100%; }
  .step { grid-template-columns: 40px 1fr; gap: 6px 12px; padding: 24px 0; }
  .terms div { grid-template-columns: 1fr; gap: 4px; }
  .app-strip { grid-template-columns: 1fr 1fr; }
  .app-strip div:nth-child(2) { border-right: 0; }
  .app-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .frame .frame-shot { height: 340px; object-fit: cover; object-position: 100% 30%; }
  .app-head .push { margin-left: 0; }
  .status-row { grid-template-columns: 1fr; padding: 16px 18px; }
  .status-row .chip { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding: 72px 0; }
  .idx-list a { grid-template-columns: 1fr; gap: 6px; }
  .site-header .wrap { height: 60px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, a.card { transition: none; } }

/* ---------- The working chart on Home (assets/chart/) ---------- */
.chip.sample { color: #ffd66b; border-color: #5a4300; }
.live-chart { min-height: 520px; background: #0b0b0f; }
.live-chart .tcc { margin: 0; border: 0; border-radius: 0; }
.live-chart .tcc-wrap { height: 520px; }
@media (max-width: 640px) {
  .live-chart { min-height: 380px; }
  .live-chart .tcc-wrap { height: 340px; }
}
/* The chart's own variables, as the app's Black theme sets them (desktop-app-v6/themes/black.json). */
.live-chart {
  --tcu-ground: #0a0a0a; --tcu-s1: #0e0e13; --tcu-s2: #13131a; --tcu-s3: #191922;
  --tcu-line: #1e1e27; --tcu-line2: #2c2c38; --tcu-line3: #4a4a5c;
  --tcu-ink: #f3f5f7; --tcu-ink2: #b9c0c9; --tcu-dim: #8a929c;
  --tcu-brand: #00ff00; --tcu-brandline: #0d6b0d; --tcu-brandwash: rgba(0,255,0,.12);
  --tcu-profit: #32cd32; --tcu-loss: #ff3b3b; --tcu-warn: #ffc34d;
  --tcu-ui: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tcu-display: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tcu-mono: Consolas, "Cascadia Mono", monospace;
  font-size: 13px; line-height: 1.4; color: var(--tcu-ink);
}

/* ---------- The NinjaTrader logo placeholder (official asset to come) ---------- */
.nt-logo {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; margin: 18px;   /* their rule: 18px clear on every side */
  padding: 9px 14px; border: 1px dashed #c8102e; border-radius: 6px; background: #14080a; color: #ff8a98;
  font-size: 12.5px; line-height: 1.25; white-space: nowrap; vertical-align: middle;
}
.nt-logo b { font-weight: 700; color: #ffb3bc; }
.nt-logo i { font-style: normal; font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: #d9707d; }
.nt-line { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.nt-line p { margin: 0; }
.nt-line .nt-logo { margin-left: 0; flex: none; }
.nt-inline { margin: 14px 0 0 -18px; display: block; }
.status-row .nt-logo, .card .nt-logo { margin: 18px 18px 0 0; }
@media (max-width: 640px) { .nt-line { flex-direction: column; align-items: flex-start; } .nt-line .nt-logo { margin: 0 0 12px; } }

/* ---------- Live forms (2026-11-17): status, robot check, hidden field ---------- */
.form-note { color: var(--muted); border: 0; border-radius: 0; padding: 0; }
.form-note[data-kind="ok"] { color: var(--green); }
.form-note[data-kind="err"] { color: #ff8a8a; }
.form-note a { color: inherit; text-decoration: underline; }
.captcha small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* NinjaTrader's official wordmark (their file, never redrawn), with the 18px clear space their guidelines ask for */
.nt-logo-img { display: inline-block; height: 20px; width: auto; margin: 18px; vertical-align: middle; }
.nt-line .nt-logo-img { margin: 18px 18px 18px 0; flex: none; }
@media (max-width: 640px) { .nt-line .nt-logo-img { margin: 18px 0; } }

/* ---------- The working demo on /experts/ (2026-11-17): the educator's demo page, framed ---------- */
.demo-embed { display: block; width: 100%; height: min(80vh, 860px); min-height: 600px; border: 0; background: #0a0a0a; }
.demo-row { margin-top: 18px; }
@media (max-width: 640px) { .demo-embed { height: 82vh; min-height: 640px; } }

/* ---------- The shared sample chart (src/widgets/chart.html), framed on Home and /experts/ ---------- */
.chart-embed { display: block; width: 100%; height: 600px; border: 0; background: #0a0a0a; }
@media (max-width: 640px) { .chart-embed { height: 480px; } }
