/* Emini Futures Day Trader — shared styles for the public site and the Trade Assist portal.
   Palette and type follow the Beat the Machine look: navy bar, cool gray page, gold accents. */
:root {
  --navy: #16263F;
  --navy-2: #1E3352;
  --navy-line: #2A3B55;
  --gold: #F2A93B;
  --gold-text: #8A5F06;
  --gold-hover: #5E4104;
  --page: #F2F4F7;
  --white: #FFFFFF;
  --ink: #16263F;
  --body: #3E4A5C;
  --muted: #5A6577;
  --line: #DCE1E8;
  --line-2: #E8ECF1;
  --input: #B4BDC9;
  --on-dark: #D3DAE5;
  --on-dark-muted: #A9B3C2;
  --cs: #0E7490;
  --ms: #2563EB;
  --as: #C2410C;
  --ok: #15803D;
  --warn-bg: #FFF8EB;
  --warn-line: #E9D3A6;
  --warn-ink: #3D3420;
  --radius: 10px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img { max-width: 100%; }
a { color: var(--gold-text); }
a:hover { color: var(--gold-hover); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.08; margin: 0; }
h1, h2 { text-transform: uppercase; letter-spacing: 0.01em; }
h1 { font-weight: 800; font-size: clamp(40px, 6vw, 64px); }
h2 { font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-weight: 700; font-size: 24px; }
p { margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.body-text { color: var(--body); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 20px; color: var(--body); max-width: 680px; }
.gold { color: var(--gold-text); }
.section { padding-top: 88px; padding-bottom: 88px; }
.section-tight { padding-top: 56px; padding-bottom: 56px; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.row-center { align-items: center; }
.row-between { justify-content: space-between; }
.grow { flex: 1 1 420px; min-width: 0; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-tight { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header { background: var(--navy); }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--white); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 24px; white-space: nowrap; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-name span { color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 2px 20px; font-size: 16px; margin-left: auto; }
.site-header .bar > .nav + .header-actions { flex: none; }
.nav a { color: var(--on-dark); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); font-weight: 600; border-bottom-color: var(--gold); }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 15px; }
.header-actions .who { color: var(--on-dark-muted); }
.header-actions a.plain { color: var(--on-dark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent; font: 600 16px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-pill { border-radius: 999px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #F5B85A; color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); color: var(--white); }
.btn-outline { background: var(--white); border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--page); color: var(--navy); }
.btn-outline-gold { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-outline-gold:hover { background: rgba(242, 169, 59, 0.12); color: var(--gold); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--page); color: var(--navy); }
.btn-ghost-dark { background: transparent; border-color: #5A6577; color: var(--white); }
.btn-ghost-dark:hover { border-color: var(--on-dark); color: var(--white); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: var(--white); }
.btn-ok:hover { color: var(--white); }
.btn-trade { background: var(--white); border-color: var(--gold-text); color: var(--gold-text); }
.btn-trade:hover { background: var(--warn-bg); color: var(--gold-hover); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cards, tables, notices */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card-tight { padding: 20px; }
.card h3 + p { margin-top: 10px; }
.card .body-text { line-height: 1.6; }
.tier-card { padding: 0; overflow: hidden; }
.tier-card .stripe { height: 6px; }
.tier-card .inner { padding: 28px; }
.step-num { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--gold-text); letter-spacing: 0.04em; }
.stat-strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip .grid-tight { padding-top: 36px; padding-bottom: 36px; }
.stat-value { font-family: var(--mono); font-size: 30px; font-weight: 600; }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 16px 20px; font-size: 15px; line-height: 1.6; color: var(--warn-ink); }
.notice a { color: #6B4E0F; }
.success { background: #ECFDF3; border: 1px solid #A7E3BD; color: #14532D; border-radius: var(--radius); padding: 16px 20px; }
.error-box { background: #FEF2F2; border: 1px solid #F5B5B5; color: #7F1D1D; border-radius: var(--radius); padding: 16px 20px; }
.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.data { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; font: 500 12px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 13px 14px; border-bottom: 1px solid var(--line); }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data .num { text-align: right; font-family: var(--mono); }
table.data th.num { text-align: right; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.dot-CS { background: var(--cs); } .dot-MS { background: var(--ms); } .dot-AS { background: var(--as); }
.tier-CS { color: var(--cs); } .tier-MS { color: var(--ms); } .tier-AS { color: var(--as); }
.stripe-CS { background: var(--cs); } .stripe-MS { background: var(--ms); } .stripe-AS { background: var(--as); }
.id-cell { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.id-cell:hover { color: var(--ink); }
.id-cell .mono { font-weight: 600; }
.kv { display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.kv > div:last-child { border-bottom: none; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-family: var(--mono); font-weight: 600; text-align: right; }
.param-value { font-family: var(--mono); font-size: 28px; font-weight: 600; margin-top: 6px; }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 3px; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps > li { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps .n { flex: 0 0 64px; font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--gold-text); }
.steps .t { flex: 1 1 280px; min-width: 0; }
.setting { background: var(--page); border-radius: 6px; padding: 12px 14px; }
.setting .k { color: var(--muted); font-size: 13px; }
.setting .v { font-family: var(--mono); font-weight: 600; margin-top: 2px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
.facts .k { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.facts .v { font-weight: 600; margin-top: 6px; font-size: 17px; }
.legal-caps { font-size: 14px; line-height: 1.75; letter-spacing: 0.01em; color: #2E333D; }
.placeholder { background: var(--line-2); border: 1px dashed var(--input); border-radius: var(--radius); padding: 24px; color: var(--muted); font-family: var(--mono); font-size: 14px; text-align: center; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 14px; border: 1px solid var(--input); border-radius: 6px; font: 16px var(--sans); background: var(--white); color: var(--ink); }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 140px; }
.field input.mono { font-family: var(--mono); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--body); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { margin: 0 0 18px; }

/* Tabs (strategy tier filter) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #C4CCD6; background: var(--white); color: var(--ink); font: 500 15px var(--sans); cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); font-weight: 600; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; }
.faq details p { margin-top: 12px; color: var(--body); line-height: 1.65; }

/* Portal-specific */
.admin-bar { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); }
.admin-bar .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; color: var(--warn-ink); }
.admin-tag { font: 600 12px var(--mono); border: 1px solid #C9A65E; border-radius: 4px; padding: 2px 6px; margin-right: 8px; }
.btn-admin { background: var(--white); border-color: #C9A65E; color: var(--warn-ink); }
.active-banner { background: var(--navy); color: var(--on-dark); border-radius: var(--radius); padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.active-banner strong { color: var(--white); font-family: var(--mono); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #4ADE80; display: inline-block; }
.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.layout-main { flex: 999 1 640px; min-width: 0; }
.layout-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card h2 { font-size: 20px; text-transform: none; letter-spacing: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.mini { background: var(--page); border-radius: 8px; padding: 14px; }
.mini .k { font-size: 13px; color: var(--muted); }
.mini .v { font-weight: 600; margin-top: 4px; }
.file-link { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; margin-top: 12px; }
.file-link:hover { background: var(--page); color: var(--ink); }
.chart-img { display: block; width: 100%; height: auto; border-radius: 6px; margin-top: 16px; }
.modal { position: fixed; inset: 0; background: rgba(22, 38, 63, 0.6); display: none; align-items: flex-start; justify-content: center; padding: 72px 16px; z-index: 40; overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 980px; background: var(--white); border-radius: 12px; padding: 28px; }
.modal-box.narrow { max-width: 460px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.center-page { min-height: calc(100vh - 160px); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.narrow-card { width: 100%; max-width: 460px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark); }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-top: 64px; }
.site-footer .col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer .col .h { font-weight: 600; color: var(--white); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .legal { margin-top: 48px; padding: 24px 0 32px; border-top: 1px solid var(--navy-line); font-size: 13px; line-height: 1.65; color: var(--on-dark-muted); }
.site-footer .legal strong, .site-footer .legal a { color: #E6E9EF; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--white); }

@media (max-width: 640px) {
  .brand-name { font-size: 20px; white-space: normal; line-height: 1.05; }
  .nav { margin-left: 0; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .facts { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
}
